yellowdog_client.namespaces – Namespace¶
All functionality is accessed via the yellowdog_client.namespaces.NamespaceClient.
- class yellowdog_client.namespaces.NamespacesClient¶
The API interface exposed by the YellowDog Namespaces Service
- abstract create_namespace(request)¶
Creates a namespace.
- Parameters:
request (
CreateNamespaceRequest) – the request containing the data to create the namespace- Return type:
- Returns:
the namespace ID
- abstract delete_namespace(namespace_id)¶
Deletes a namespace.
- abstract delete_namespace_policy(namespace)¶
Deletes the namespace policy for the specified namespace if it exists.
- abstract get_namespace(namespace_id)¶
Gets the namespace with a matching ID.
- abstract get_namespace_policies(search)¶
Returns a search client for searching namespace policies.
- Parameters:
search (
NamespacePolicySearch) – the search criteria- Return type:
SearchClient[NamespacePolicy]- Returns:
a search client for searching namespace policies
- abstract get_namespace_policy(namespace)¶
Requests the namespace policy for the specified namespace.
- Parameters:
namespace (
str) – the namespace- Return type:
- Returns:
the namespace policy
- abstract get_namespaces(search)¶
Returns a search client for namespaces that match the NamespaceSearch parameter.
- Parameters:
search (
NamespaceSearch) – the search object to filter and sort results- Return type:
SearchClient[Namespace]- Returns:
a search client for matching namespaces
- abstract save_namespace_policy(namespace_policy)¶
Submits a namespace policy to either save or update.
- Parameters:
namespace_policy (
NamespacePolicy) – the namespace policy to submit- Return type:
- class yellowdog_client.namespaces.NamespacesClientImpl(service_proxy)¶
- Parameters:
service_proxy (
NamespacesServiceProxy)
- create_namespace(request)¶
Creates a namespace.
- Parameters:
request (
CreateNamespaceRequest) – the request containing the data to create the namespace- Return type:
- Returns:
the namespace ID
- delete_namespace(namespace_id)¶
Deletes a namespace.
- Parameters:
namespace_id (
str) – the ID of the namespace to delete
- delete_namespace_policy(namespace)¶
Deletes the namespace policy for the specified namespace if it exists.
- get_namespace(namespace_id)¶
Gets the namespace with a matching ID.
- get_namespace_policies(search)¶
Returns a search client for searching namespace policies.
- Parameters:
search (
NamespacePolicySearch) – the search criteria- Return type:
SearchClient[NamespacePolicy]- Returns:
a search client for searching namespace policies
- get_namespace_policy(namespace)¶
Requests the namespace policy for the specified namespace.
- Parameters:
namespace (
str) – the namespace- Return type:
- Returns:
the namespace policy
- get_namespaces(search)¶
Returns a search client for namespaces that match the NamespaceSearch parameter.
- Parameters:
search (
NamespaceSearch) – the search object to filter and sort results- Return type:
SearchClient[Namespace]- Returns:
a search client for matching namespaces
- save_namespace_policy(namespace_policy)¶
Submits a namespace policy to either save or update.
- Parameters:
namespace_policy (
NamespacePolicy) – the namespace policy to submit- Return type:
- class yellowdog_client.namespaces.NamespacesServiceProxy(proxy)¶
- Parameters:
proxy (
Proxy)
- create_namespace(request)¶
- Parameters:
request (
CreateNamespaceRequest)- Return type:
- get_namespace_policies(search, slice_reference)¶
- Parameters:
search (
NamespacePolicySearch)slice_reference (
SliceReference)
- Return type:
- save_namespace_policy(namespace_policy)¶
- Parameters:
namespace_policy (
NamespacePolicy)- Return type:
- search_namespaces(search, slice_reference)¶
- Parameters:
search (
NamespaceSearch)slice_reference (
SliceReference)
- Return type: