AttachIScsiVolumeDetails

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

Bases: oci.core.models.attach_volume_details.AttachVolumeDetails

AttachIScsiVolumeDetails model.

__init__(**kwargs)

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

Parameters:
  • device (str) -- The value to assign to the device property of this AttachIScsiVolumeDetails.
  • display_name (str) -- The value to assign to the display_name property of this AttachIScsiVolumeDetails.
  • instance_id (str) -- The value to assign to the instance_id property of this AttachIScsiVolumeDetails.
  • is_read_only (bool) -- The value to assign to the is_read_only property of this AttachIScsiVolumeDetails.
  • type (str) -- The value to assign to the type property of this AttachIScsiVolumeDetails.
  • volume_id (str) -- The value to assign to the volume_id property of this AttachIScsiVolumeDetails.
  • use_chap (bool) -- The value to assign to the use_chap property of this AttachIScsiVolumeDetails.
device

Gets the device of this AttachVolumeDetails. The device name.

Returns:The device of this AttachVolumeDetails.
Return type:str
display_name

Gets the display_name of this AttachVolumeDetails. A user-friendly name. Does not have to be unique, and it cannot be changed. Avoid entering confidential information.

Returns:The display_name of this AttachVolumeDetails.
Return type:str
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.

instance_id

[Required] Gets the instance_id of this AttachVolumeDetails. The OCID of the instance.

Returns:The instance_id of this AttachVolumeDetails.
Return type:str
is_read_only

Gets the is_read_only of this AttachVolumeDetails. Whether the attachment was created in read-only mode.

Returns:The is_read_only of this AttachVolumeDetails.
Return type:bool
type

[Required] Gets the type of this AttachVolumeDetails. The type of volume. The only supported value are "iscsi" and "paravirtualized".

Returns:The type of this AttachVolumeDetails.
Return type:str
use_chap

Gets the use_chap of this AttachIScsiVolumeDetails. Whether to use CHAP authentication for the volume attachment. Defaults to false.

Returns:The use_chap of this AttachIScsiVolumeDetails.
Return type:bool
volume_id

[Required] Gets the volume_id of this AttachVolumeDetails. The OCID of the volume.

Returns:The volume_id of this AttachVolumeDetails.
Return type:str