InstanceConfigurationNvmeAttachVolumeDetails

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

Bases: InstanceConfigurationAttachVolumeDetails

InstanceConfigurationNvmeAttachVolumeDetails model.

Methods:

__init__(**kwargs)

Initializes a new InstanceConfigurationNvmeAttachVolumeDetails 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.

Attributes:

device

Gets the device of this InstanceConfigurationAttachVolumeDetails.

display_name

Gets the display_name of this InstanceConfigurationAttachVolumeDetails.

is_read_only

Gets the is_read_only of this InstanceConfigurationAttachVolumeDetails.

is_shareable

Gets the is_shareable of this InstanceConfigurationAttachVolumeDetails.

type

[Required] Gets the type of this InstanceConfigurationAttachVolumeDetails.

__init__(**kwargs)

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

Parameters
  • display_name (str) – The value to assign to the display_name property of this InstanceConfigurationNvmeAttachVolumeDetails.

  • is_read_only (bool) – The value to assign to the is_read_only property of this InstanceConfigurationNvmeAttachVolumeDetails.

  • device (str) – The value to assign to the device property of this InstanceConfigurationNvmeAttachVolumeDetails.

  • is_shareable (bool) – The value to assign to the is_shareable property of this InstanceConfigurationNvmeAttachVolumeDetails.

  • type (str) – The value to assign to the type property of this InstanceConfigurationNvmeAttachVolumeDetails.

property device

Gets the device of this InstanceConfigurationAttachVolumeDetails. The device name.

Returns

The device of this InstanceConfigurationAttachVolumeDetails.

Return type

str

property display_name

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

Returns

The display_name of this InstanceConfigurationAttachVolumeDetails.

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.

property is_read_only

Gets the is_read_only of this InstanceConfigurationAttachVolumeDetails. Whether the attachment should be created in read-only mode.

Returns

The is_read_only of this InstanceConfigurationAttachVolumeDetails.

Return type

bool

property is_shareable

Gets the is_shareable of this InstanceConfigurationAttachVolumeDetails. Whether the attachment should be created in shareable mode. If an attachment is created in shareable mode, then other instances can attach the same volume, provided that they also create their attachments in shareable mode. Only certain volume types can be attached in shareable mode. Defaults to false if not specified.

Returns

The is_shareable of this InstanceConfigurationAttachVolumeDetails.

Return type

bool

property type

[Required] Gets the type of this InstanceConfigurationAttachVolumeDetails. The type of volume. The only supported values are “iscsi”, “paravirtualized”, and “nvme”.

Returns

The type of this InstanceConfigurationAttachVolumeDetails.

Return type

str