openstack.shared_file_system.v2.share_type¶
The ShareType Class¶
The ShareType class inherits from
Resource.
- class openstack.shared_file_system.v2.share_type.ShareType(_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_type'¶
Singular form of key for resource.
- resources_key = 'share_types'¶
Plural form of key for resource.
- base_path = '/types'¶
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 = True¶
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.
- description¶
Properties Description of the share type
- extra_specs¶
List of extra specs for share types
- is_default¶
Indicates if share type is default
- is_public¶
Indicates if share type is public
- required_extra_specs¶
List of required extra specs for share types
- set_extra_specs(session, **specs)¶
Update extra_specs
This call will replace only the extra_specs with the same keys given here. Other keys will not be modified.
- Parameters:
session – The session to use for this request.
extra_specs – key/value extra_specs pairs to set or update
- Returns:
Updated self
- delete_extra_specs_property(session, prop)¶
Delete extra specs
- Parameters:
session – The session to use for this request.
prop – The property to delete.
- Returns:
None