Interface NamespacesClient
- All Known Implementing Classes:
NamespacesClientImpl
public interface NamespacesClient
The API interface exposed by the YellowDog Namespaces Service
-
Method Summary
Modifier and TypeMethodDescriptioncreateNamespace
(CreateNamespaceRequest request) Creates a namespace.void
deleteNamespace
(String namespaceId) Deletes a namespace.void
deleteNamespacePolicy
(String namespace) Deletes the namespace policy for the specified namespace if it exists.getNamespace
(String namespaceId) Gets the namespace with a matching ID.Returns a search client for searching namespace policies.getNamespacePolicy
(String namespace) Requests the namespace policy for the specified namespace.getNamespaces
(NamespaceSearch search) Returns a search client for namespaces that match theNamespaceSearch
parameter.void
saveNamespacePolicy
(NamespacePolicy namespacePolicy) Submits a namespace policy to either save or update.
-
Method Details
-
getNamespace
-
getNamespaces
Returns a search client for namespaces that match theNamespaceSearch
parameter.- Parameters:
search
- the search object to filter and sort results- Returns:
- a search client for matching namespaces
-
createNamespace
Creates a namespace.- Parameters:
request
- the request containing the data to create the namespace- Returns:
- the namespace ID
-
deleteNamespace
Deletes a namespace.- Parameters:
namespaceId
- the ID of the namespace to delete
-
saveNamespacePolicy
Submits a namespace policy to either save or update.- Parameters:
namespacePolicy
- the namespace policy to submit
-
getNamespacePolicy
Requests the namespace policy for the specified namespace.- Parameters:
namespace
- the namespace- Returns:
- the namespace policy
-
deleteNamespacePolicy
Deletes the namespace policy for the specified namespace if it exists.- Parameters:
namespace
- the namespace
-
getNamespacePolicies
Returns a search client for searching namespace policies.- Parameters:
search
- the search criteria- Returns:
- a search client for searching namespace policies
-