otcextensions.sdk.cce.v1.cluster¶
The CCE Cluster Class¶
The Cluster
class inherits from
Resource
.
- class otcextensions.sdk.cce.v1.cluster.Cluster(_synchronized=False, connection=None, **attrs)¶
The base resource
- Parameters:
_synchronized (bool) – This is not intended to be used directly. See
new()
andexisting()
.connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of
self._connection
in Resource code should protect itself with a check for None.
- base_path: str = '/clusters'¶
The base part of the URI for this resource.
- resources_key: ty.Optional[str] = ''¶
Plural form of key for resource.
- resource_key: ty.Optional[str] = ''¶
Singular form of key for resource.
- allow_list = True¶
Allow list operation for this resource.
- allow_create = True¶
Allow create operation for this resource.
- allow_delete = True¶
Allow delete operation for this resource.
- spec¶
specification
- status¶
Cluster status
- classmethod new(**kwargs)¶
Create a new instance of this resource.
When creating the instance set the
_synchronized
parameter ofResource
toFalse
to indicate that the resource does not yet exist on the server side. This marks all attributes passed in**kwargs
as “dirty” on the resource, and thusly tracked as necessary in subsequent calls such asupdate()
.- Parameters:
kwargs (dict) – Each of the named arguments will be set as attributes on the resulting Resource object.
- delete_nodes(session, node_names, headers=None)¶
Delete nodes from the cluster by their name