OdaInstanceAttachment

class oci.oda.models.OdaInstanceAttachment(**kwargs)

Bases: object

Description of an ODA instance attachment.

Attributes

ATTACHMENT_TYPE_FUSION A constant which can be used with the attachment_type property of a OdaInstanceAttachment.
ATTACHMENT_TYPE_MAX A constant which can be used with the attachment_type property of a OdaInstanceAttachment.
LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a OdaInstanceAttachment.
LIFECYCLE_STATE_ATTACHING A constant which can be used with the lifecycle_state property of a OdaInstanceAttachment.
LIFECYCLE_STATE_DETACHING A constant which can be used with the lifecycle_state property of a OdaInstanceAttachment.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a OdaInstanceAttachment.
LIFECYCLE_STATE_INACTIVE A constant which can be used with the lifecycle_state property of a OdaInstanceAttachment.
attach_to_id [Required] Gets the attach_to_id of this OdaInstanceAttachment.
attachment_metadata Gets the attachment_metadata of this OdaInstanceAttachment.
attachment_type [Required] Gets the attachment_type of this OdaInstanceAttachment.
defined_tags Gets the defined_tags of this OdaInstanceAttachment.
freeform_tags Gets the freeform_tags of this OdaInstanceAttachment.
id [Required] Gets the id of this OdaInstanceAttachment.
instance_id [Required] Gets the instance_id of this OdaInstanceAttachment.
lifecycle_state [Required] Gets the lifecycle_state of this OdaInstanceAttachment.
owner Gets the owner of this OdaInstanceAttachment.
restricted_operations Gets the restricted_operations of this OdaInstanceAttachment.
time_created Gets the time_created of this OdaInstanceAttachment.
time_last_update Gets the time_last_update of this OdaInstanceAttachment.

Methods

__init__(**kwargs) Initializes a new OdaInstanceAttachment object with values from keyword arguments.
ATTACHMENT_TYPE_FUSION = 'FUSION'

A constant which can be used with the attachment_type property of a OdaInstanceAttachment. This constant has a value of “FUSION”

ATTACHMENT_TYPE_MAX = 'MAX'

A constant which can be used with the attachment_type property of a OdaInstanceAttachment. This constant has a value of “MAX”

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a OdaInstanceAttachment. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_ATTACHING = 'ATTACHING'

A constant which can be used with the lifecycle_state property of a OdaInstanceAttachment. This constant has a value of “ATTACHING”

LIFECYCLE_STATE_DETACHING = 'DETACHING'

A constant which can be used with the lifecycle_state property of a OdaInstanceAttachment. This constant has a value of “DETACHING”

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a OdaInstanceAttachment. This constant has a value of “FAILED”

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

A constant which can be used with the lifecycle_state property of a OdaInstanceAttachment. This constant has a value of “INACTIVE”

__init__(**kwargs)

Initializes a new OdaInstanceAttachment object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • id (str) – The value to assign to the id property of this OdaInstanceAttachment.
  • instance_id (str) – The value to assign to the instance_id property of this OdaInstanceAttachment.
  • attach_to_id (str) – The value to assign to the attach_to_id property of this OdaInstanceAttachment.
  • attachment_type (str) – The value to assign to the attachment_type property of this OdaInstanceAttachment. Allowed values for this property are: “FUSION”, “MAX”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • attachment_metadata (str) – The value to assign to the attachment_metadata property of this OdaInstanceAttachment.
  • restricted_operations (list[str]) – The value to assign to the restricted_operations property of this OdaInstanceAttachment.
  • owner (oci.oda.models.OdaInstanceOwner) – The value to assign to the owner property of this OdaInstanceAttachment.
  • time_created (datetime) – The value to assign to the time_created property of this OdaInstanceAttachment.
  • time_last_update (datetime) – The value to assign to the time_last_update property of this OdaInstanceAttachment.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this OdaInstanceAttachment. Allowed values for this property are: “ATTACHING”, “ACTIVE”, “DETACHING”, “INACTIVE”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this OdaInstanceAttachment.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this OdaInstanceAttachment.
attach_to_id

[Required] Gets the attach_to_id of this OdaInstanceAttachment. The OCID of the target instance (which could be any other OCI PaaS/SaaS resource), to which the ODA instance is or is being attached.

Returns:The attach_to_id of this OdaInstanceAttachment.
Return type:str
attachment_metadata

Gets the attachment_metadata of this OdaInstanceAttachment. Attachment-specific metadata, defined by the target service.

Returns:The attachment_metadata of this OdaInstanceAttachment.
Return type:str
attachment_type

[Required] Gets the attachment_type of this OdaInstanceAttachment. The type of attachment defined as an enum.

Allowed values for this property are: “FUSION”, “MAX”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The attachment_type of this OdaInstanceAttachment.
Return type:str
defined_tags

Gets the defined_tags of this OdaInstanceAttachment. Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns:The defined_tags of this OdaInstanceAttachment.
Return type:dict(str, dict(str, object))
freeform_tags

Gets the freeform_tags of this OdaInstanceAttachment. Simple key-value pair that is applied without any predefined name, type, or scope. Example: {“bar-key”: “value”}

Returns:The freeform_tags of this OdaInstanceAttachment.
Return type:dict(str, str)
id

[Required] Gets the id of this OdaInstanceAttachment. Unique immutable identifier that was assigned when the ODA instance attachment was created.

Returns:The id of this OdaInstanceAttachment.
Return type:str
instance_id

[Required] Gets the instance_id of this OdaInstanceAttachment. The OCID of the ODA instance to which the attachment applies.

Returns:The instance_id of this OdaInstanceAttachment.
Return type:str
lifecycle_state

[Required] Gets the lifecycle_state of this OdaInstanceAttachment. The current state of the attachment.

Allowed values for this property are: “ATTACHING”, “ACTIVE”, “DETACHING”, “INACTIVE”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this OdaInstanceAttachment.
Return type:str
owner

Gets the owner of this OdaInstanceAttachment.

Returns:The owner of this OdaInstanceAttachment.
Return type:oci.oda.models.OdaInstanceOwner
restricted_operations

Gets the restricted_operations of this OdaInstanceAttachment. List of operation names that are restricted while this ODA instance is attached.

Returns:The restricted_operations of this OdaInstanceAttachment.
Return type:list[str]
time_created

Gets the time_created of this OdaInstanceAttachment. The time the attachment was created. An RFC3339 formatted datetime string

Returns:The time_created of this OdaInstanceAttachment.
Return type:datetime
time_last_update

Gets the time_last_update of this OdaInstanceAttachment. The time the attachment was last modified. An RFC3339 formatted datetime string

Returns:The time_last_update of this OdaInstanceAttachment.
Return type:datetime