The cinderclient.v1.volume_types Module

Volume Type interface.

class cinderclient.v1.volume_types.VolumeType(manager, info, loaded=False)

Bases: cinderclient.base.Resource

A Volume Type is the type of volume to be created

get_keys()

Get extra specs from a volume type.

Parameters:vol_type – The VolumeType to get extra specs from
set_keys(metadata)

Set extra specs on a volume type.

:param type : The VolumeType to set extra spec on :param metadata: A dict of key/value pairs to be set

unset_keys(keys)

Unset extra specs on a volue type.

Parameters:
  • type_id – The VolumeType to unset extra spec on
  • keys – A list of keys to be unset
class cinderclient.v1.volume_types.VolumeTypeManager(api)

Bases: cinderclient.base.ManagerWithFind

Manage VolumeType resources.

create(name)

Create a volume type.

Parameters:name – Descriptive name of the volume type
Return type:VolumeType
delete(volume_type)

Delete a specific volume_type.

Parameters:volume_type – The ID of the VolumeType to get.
get(volume_type)

Get a specific volume type.

Parameters:volume_type – The ID of the VolumeType to get.
Return type:VolumeType
list()

Get a list of all volume types.

Return type:list of VolumeType.
resource_class

alias of VolumeType

This Page