openstack.shared_file_system.v2.share_replica¶
The ShareReplica Class¶
The ShareReplica class inherits from
Resource.
- class openstack.shared_file_system.v2.share_replica.ShareReplica(_synchronized=False, connection=None, **attrs)¶
The base resource
- Parameters:
_synchronized – This is not intended to be used directly. See
new()andexisting().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._connectionin Resource code should protect itself with a check for None.
- resource_key = 'share_replica'¶
Singular form of key for resource.
- resources_key = 'share_replicas'¶
Plural form of key for resource.
- base_path = 'share-replicas'¶
The base part of the URI for this resource.
- allow_create = True¶
Allow create operation for this resource.
- allow_fetch = True¶
Allow get operation for this resource.
- allow_commit = False¶
Allow update operation for this resource.
- allow_delete = True¶
Allow delete operation for this resource.
- allow_list = True¶
Allow list operation for this resource.
- allow_head = False¶
Allow head operation for this resource.
- share_id¶
properties The UUID of the share from which to create a share replica.
- status¶
The status of a share replica. List of possible values: available, error, creating, deleting, or error_deleting.
- cast_rules_to_readonly¶
If the share replica has its cast_rules_to_readonly attribute set to True, all existing access rules will be cast to read/only.
- updated_at¶
The date and time stamp when the resource was last updated within the service’s database. If a resource was never updated after it was created, the value of this parameter is set to null.
- share_network_id¶
The share network ID where the resource is exported to.
- share_server_id¶
The UUID of the share server.
- host¶
The host name of the share replica.
- replica_state¶
The replica state of a share replica.
- created_at¶
The date and time stamp when the resource was created within the service’s database.
- reset_status(session, status)¶
Reset the status of the share replica
- reset_replica_state(session, replica_state)¶
Reset replica_state of the share replica
- force_delete(session, *, ignore_missing=False)¶
Force-delete share replica
- promote(session)¶
Promote share replica
- resync(session)¶
Resync share replica