LaunchCreateVolumeFromAttributes

class oci.core.models.LaunchCreateVolumeFromAttributes(**kwargs)

Bases: oci.core.models.launch_create_volume_details.LaunchCreateVolumeDetails

The details of the volume to create for CreateVolume operation.

Attributes

VOLUME_CREATION_TYPE_ATTRIBUTES str(object=’’) -> str
compartment_id Gets the compartment_id of this LaunchCreateVolumeFromAttributes.
display_name Gets the display_name of this LaunchCreateVolumeFromAttributes.
kms_key_id Gets the kms_key_id of this LaunchCreateVolumeFromAttributes.
size_in_gbs [Required] Gets the size_in_gbs of this LaunchCreateVolumeFromAttributes.
volume_creation_type [Required] Gets the volume_creation_type of this LaunchCreateVolumeDetails.
vpus_per_gb Gets the vpus_per_gb of this LaunchCreateVolumeFromAttributes.

Methods

__init__(**kwargs) Initializes a new LaunchCreateVolumeFromAttributes object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
VOLUME_CREATION_TYPE_ATTRIBUTES = 'ATTRIBUTES'
__init__(**kwargs)

Initializes a new LaunchCreateVolumeFromAttributes object with values from keyword arguments. The default value of the volume_creation_type attribute of this class is ATTRIBUTES and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • volume_creation_type (str) – The value to assign to the volume_creation_type property of this LaunchCreateVolumeFromAttributes. Allowed values for this property are: “ATTRIBUTES”
  • compartment_id (str) – The value to assign to the compartment_id property of this LaunchCreateVolumeFromAttributes.
  • display_name (str) – The value to assign to the display_name property of this LaunchCreateVolumeFromAttributes.
  • kms_key_id (str) – The value to assign to the kms_key_id property of this LaunchCreateVolumeFromAttributes.
  • vpus_per_gb (int) – The value to assign to the vpus_per_gb property of this LaunchCreateVolumeFromAttributes.
  • size_in_gbs (int) – The value to assign to the size_in_gbs property of this LaunchCreateVolumeFromAttributes.
compartment_id

Gets the compartment_id of this LaunchCreateVolumeFromAttributes. The OCID of the compartment that contains the volume. If not provided, it will be inherited from the instance.

Returns:The compartment_id of this LaunchCreateVolumeFromAttributes.
Return type:str
display_name

Gets the display_name of this LaunchCreateVolumeFromAttributes. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.

Returns:The display_name of this LaunchCreateVolumeFromAttributes.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

kms_key_id

Gets the kms_key_id of this LaunchCreateVolumeFromAttributes. The OCID of the Vault service key to assign as the master encryption key for the volume.

Returns:The kms_key_id of this LaunchCreateVolumeFromAttributes.
Return type:str
size_in_gbs

[Required] Gets the size_in_gbs of this LaunchCreateVolumeFromAttributes. The size of the volume in GBs.

Returns:The size_in_gbs of this LaunchCreateVolumeFromAttributes.
Return type:int
volume_creation_type

[Required] Gets the volume_creation_type of this LaunchCreateVolumeDetails. Specifies the method for volume creation.

Allowed values for this property are: “ATTRIBUTES”

Returns:The volume_creation_type of this LaunchCreateVolumeDetails.
Return type:str
vpus_per_gb

Gets the vpus_per_gb of this LaunchCreateVolumeFromAttributes. The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service’s elastic performance options. See Block Volume Performance Levels for more information.

Allowed values:

  • 0: Represents Lower Cost option.
  • 10: Represents Balanced option.
  • 20: Represents Higher Performance option.
  • 30-120: Represents the Ultra High Performance option.
Returns:The vpus_per_gb of this LaunchCreateVolumeFromAttributes.
Return type:int