Attachment

class oci.marketplace_publisher.models.Attachment(**kwargs)

Bases: object

Description of Attachment.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a Attachment.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a Attachment.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a Attachment.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a Attachment.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a Attachment.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a Attachment.
TYPE_CONTRACT_T_AND_C A constant which can be used with the type property of a Attachment.
TYPE_EULA A constant which can be used with the type property of a Attachment.
TYPE_MISC A constant which can be used with the type property of a Attachment.
TYPE_QUOTE A constant which can be used with the type property of a Attachment.
TYPE_TERMS_OF_USE A constant which can be used with the type property of a Attachment.
buyer_compartment_id Gets the buyer_compartment_id of this Attachment.
defined_tags [Required] Gets the defined_tags of this Attachment.
display_name [Required] Gets the display_name of this Attachment.
freeform_tags [Required] Gets the freeform_tags of this Attachment.
id [Required] Gets the id of this Attachment.
lifecycle_state [Required] Gets the lifecycle_state of this Attachment.
mime_type Gets the mime_type of this Attachment.
offer_id [Required] Gets the offer_id of this Attachment.
seller_compartment_id [Required] Gets the seller_compartment_id of this Attachment.
time_created [Required] Gets the time_created of this Attachment.
type [Required] Gets the type of this Attachment.

Methods

__init__(**kwargs) Initializes a new Attachment object with values from keyword arguments.
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

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

LIFECYCLE_STATE_CREATING = 'CREATING'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_DELETING = 'DELETING'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_UPDATING = 'UPDATING'

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

TYPE_CONTRACT_T_AND_C = 'CONTRACT_T_AND_C'

A constant which can be used with the type property of a Attachment. This constant has a value of “CONTRACT_T_AND_C”

TYPE_EULA = 'EULA'

A constant which can be used with the type property of a Attachment. This constant has a value of “EULA”

TYPE_MISC = 'MISC'

A constant which can be used with the type property of a Attachment. This constant has a value of “MISC”

TYPE_QUOTE = 'QUOTE'

A constant which can be used with the type property of a Attachment. This constant has a value of “QUOTE”

TYPE_TERMS_OF_USE = 'TERMS_OF_USE'

A constant which can be used with the type property of a Attachment. This constant has a value of “TERMS_OF_USE”

__init__(**kwargs)

Initializes a new Attachment 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 Attachment.
  • seller_compartment_id (str) – The value to assign to the seller_compartment_id property of this Attachment.
  • offer_id (str) – The value to assign to the offer_id property of this Attachment.
  • buyer_compartment_id (str) – The value to assign to the buyer_compartment_id property of this Attachment.
  • mime_type (str) – The value to assign to the mime_type property of this Attachment.
  • display_name (str) – The value to assign to the display_name property of this Attachment.
  • type (str) – The value to assign to the type property of this Attachment. Allowed values for this property are: “CONTRACT_T_AND_C”, “QUOTE”, “EULA”, “TERMS_OF_USE”, “MISC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • time_created (datetime) – The value to assign to the time_created property of this Attachment.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this Attachment. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, “DELETED”, “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 Attachment.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this Attachment.
buyer_compartment_id

Gets the buyer_compartment_id of this Attachment. OCID of the buyer’s tenancy (root compartment).

Returns:The buyer_compartment_id of this Attachment.
Return type:str
defined_tags

[Required] Gets the defined_tags of this Attachment. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns:The defined_tags of this Attachment.
Return type:dict(str, dict(str, object))
display_name

[Required] Gets the display_name of this Attachment. The name used to refer to the uploaded data.

Returns:The display_name of this Attachment.
Return type:str
freeform_tags

[Required] Gets the freeform_tags of this Attachment. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}

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

[Required] Gets the id of this Attachment. Unique identifier that is immutable on creation

Returns:The id of this Attachment.
Return type:str
lifecycle_state

[Required] Gets the lifecycle_state of this Attachment. The current state of the Offer.

Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this Attachment.
Return type:str
mime_type

Gets the mime_type of this Attachment. The MIME type of the uploaded data.

Returns:The mime_type of this Attachment.
Return type:str
offer_id

[Required] Gets the offer_id of this Attachment. Unique identifier of the associated offer that is immutable on creation

Returns:The offer_id of this Attachment.
Return type:str
seller_compartment_id

[Required] Gets the seller_compartment_id of this Attachment. OCID of the seller’s tenancy (root compartment).

Returns:The seller_compartment_id of this Attachment.
Return type:str
time_created

[Required] Gets the time_created of this Attachment. The time the the Offer was created. An RFC3339 formatted datetime string

Returns:The time_created of this Attachment.
Return type:datetime
type

[Required] Gets the type of this Attachment. The type of offer attachment.

Allowed values for this property are: “CONTRACT_T_AND_C”, “QUOTE”, “EULA”, “TERMS_OF_USE”, “MISC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The type of this Attachment.
Return type:str