openstack.shared_file_system.v2.service¶
The Service Class¶
The Service class inherits from
Resource.
- class openstack.shared_file_system.v2.service.Service(_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 = 'service'¶
Singular form of key for resource.
- resources_key = 'services'¶
Plural form of key for resource.
- base_path = '/services'¶
The base part of the URI for this resource.
- allow_create = False¶
Allow create operation for this resource.
- allow_fetch = False¶
Allow get operation for this resource.
- allow_commit = True¶
Allow update operation for this resource.
- allow_delete = False¶
Allow delete operation for this resource.
- allow_list = True¶
Allow list operation for this resource.
- allow_head = False¶
Allow head operation for this resource.
- availability_zone¶
Properties The availability zone of service
- binary¶
The service binary name.
- host¶
The service host name.
- name¶
Service name
- state¶
The current state of the service.
- status¶
The service status, which is enabled or disabled.
- updated_at¶
The date and time stamp when the resource was last updated within the service’s database.
- enable(session)¶
Enable service.
- disable(session)¶
Disable service.