The sushy.resources.system.storage.volume Module¶
-
class
sushy.resources.system.storage.volume.ActionsField(*args, **kwargs)¶ Bases:
sushy.resources.base.CompositeField-
initialize= <sushy.resources.common.InitializeActionField object>¶
-
-
class
sushy.resources.system.storage.volume.Volume(connector, path='', redfish_version=None, registries=None, reader=None)¶ Bases:
sushy.resources.base.ResourceBaseThis class adds the Storage Volume resource
-
block_size_bytes= <sushy.resources.base.Field object>¶ The size of the smallest addressable unit of this volume in bytes.
-
capacity_bytes= <sushy.resources.base.Field object>¶ The size in bytes of this Volume.
-
delete_volume(payload=None)¶ Delete the volume.
- Parameters
payload – May contain @Redfish.OperationApplyTime property
- Raises
ConnectionError
- Raises
HTTPError
-
encrypted= <sushy.resources.base.Field object>¶ Is this Volume encrypted.
-
get_allowed_initialize_volume_values()¶ Get the allowed values for initializing the volume.
- Returns
A set with the allowed values.
-
identifiers= <sushy.resources.common.IdentifiersListField object>¶ The Durable names for the volume.
-
identity= <sushy.resources.base.Field object>¶ The Volume identity string
-
initialize_volume(value)¶ Initialize the volume.
- Parameters
value – The InitializeType value.
- Raises
InvalidParameterValueError, if the target value is not allowed.
-
name= <sushy.resources.base.Field object>¶ The name of the resource
-
operation_apply_time_support= <sushy.resources.common.OperationApplyTimeSupportField object>¶ Indicates if a client is allowed to request for a specific apply time of a create, delete, or action operation of a given resource
-
volume_type= <sushy.resources.base.MappedField object>¶ The type of this volume.
-
-
class
sushy.resources.system.storage.volume.VolumeCollection(connector, path, redfish_version=None, registries=None)¶ Bases:
sushy.resources.base.ResourceCollectionBaseThis class represents the Storage Volume collection
-
create_volume(payload)¶ Create a volume.
- Parameters
payload – The payload representing the new volume to create.
- Raises
ConnectionError
- Raises
HTTPError
-
property
max_size_bytes¶ Max size available (in bytes) among all Volume resources.
Returns the cached value until it (or its parent resource) is refreshed.
-
property
max_volume_size_bytes¶ Max size available (in bytes) among all Volume resources.
Returns the cached value until it (or its parent resource) is refreshed.
-
operation_apply_time_support= <sushy.resources.common.OperationApplyTimeSupportField object>¶ Indicates if a client is allowed to request for a specific apply time of a create, delete, or action operation of a given resource
-
property
volumes_sizes_bytes¶ Sizes of all Volumes in bytes in VolumeCollection resource.
Returns the list of cached values until it (or its parent resource) is refreshed.
-