Offer¶
-
class
oci.marketplace_private_offer.models.Offer(**kwargs)¶ Bases:
objectDescription of Offer.
Attributes
LIFECYCLE_STATE_ACTIVEA constant which can be used with the lifecycle_state property of a Offer. LIFECYCLE_STATE_CREATINGA constant which can be used with the lifecycle_state property of a Offer. LIFECYCLE_STATE_DELETEDA constant which can be used with the lifecycle_state property of a Offer. LIFECYCLE_STATE_DELETINGA constant which can be used with the lifecycle_state property of a Offer. LIFECYCLE_STATE_FAILEDA constant which can be used with the lifecycle_state property of a Offer. LIFECYCLE_STATE_UPDATINGA constant which can be used with the lifecycle_state property of a Offer. OFFER_STATUS_ACCEPTEDA constant which can be used with the offer_status property of a Offer. OFFER_STATUS_ACTIVEA constant which can be used with the offer_status property of a Offer. OFFER_STATUS_DRAFTA constant which can be used with the offer_status property of a Offer. OFFER_STATUS_ENDEDA constant which can be used with the offer_status property of a Offer. OFFER_STATUS_EXPIREDA constant which can be used with the offer_status property of a Offer. OFFER_STATUS_FAILED_ACCEPTA constant which can be used with the offer_status property of a Offer. OFFER_STATUS_FAILED_SENDA constant which can be used with the offer_status property of a Offer. OFFER_STATUS_PENDING_BUYERA constant which can be used with the offer_status property of a Offer. OFFER_STATUS_PENDING_MARKETPLACEA constant which can be used with the offer_status property of a Offer. buyer_compartment_idGets the buyer_compartment_id of this Offer. buyer_informationGets the buyer_information of this Offer. defined_tags[Required] Gets the defined_tags of this Offer. descriptionGets the description of this Offer. display_name[Required] Gets the display_name of this Offer. durationGets the duration of this Offer. freeform_tags[Required] Gets the freeform_tags of this Offer. id[Required] Gets the id of this Offer. lifecycle_detailsGets the lifecycle_details of this Offer. lifecycle_state[Required] Gets the lifecycle_state of this Offer. offer_statusGets the offer_status of this Offer. pricingGets the pricing of this Offer. publisher_summaryGets the publisher_summary of this Offer. resource_bundlesGets the resource_bundles of this Offer. seller_compartment_id[Required] Gets the seller_compartment_id of this Offer. seller_informationGets the seller_information of this Offer. time_accept_byGets the time_accept_by of this Offer. time_acceptedGets the time_accepted of this Offer. time_created[Required] Gets the time_created of this Offer. time_offer_endGets the time_offer_end of this Offer. time_start_dateGets the time_start_date of this Offer. time_updatedGets the time_updated of this Offer. Methods
__init__(**kwargs)Initializes a new Offer object with values from keyword arguments. -
LIFECYCLE_STATE_ACTIVE= 'ACTIVE'¶ A constant which can be used with the lifecycle_state property of a Offer. This constant has a value of “ACTIVE”
-
LIFECYCLE_STATE_CREATING= 'CREATING'¶ A constant which can be used with the lifecycle_state property of a Offer. This constant has a value of “CREATING”
-
LIFECYCLE_STATE_DELETED= 'DELETED'¶ A constant which can be used with the lifecycle_state property of a Offer. This constant has a value of “DELETED”
-
LIFECYCLE_STATE_DELETING= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a Offer. This constant has a value of “DELETING”
-
LIFECYCLE_STATE_FAILED= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a Offer. This constant has a value of “FAILED”
-
LIFECYCLE_STATE_UPDATING= 'UPDATING'¶ A constant which can be used with the lifecycle_state property of a Offer. This constant has a value of “UPDATING”
-
OFFER_STATUS_ACCEPTED= 'ACCEPTED'¶ A constant which can be used with the offer_status property of a Offer. This constant has a value of “ACCEPTED”
-
OFFER_STATUS_ACTIVE= 'ACTIVE'¶ A constant which can be used with the offer_status property of a Offer. This constant has a value of “ACTIVE”
-
OFFER_STATUS_DRAFT= 'DRAFT'¶ A constant which can be used with the offer_status property of a Offer. This constant has a value of “DRAFT”
-
OFFER_STATUS_ENDED= 'ENDED'¶ A constant which can be used with the offer_status property of a Offer. This constant has a value of “ENDED”
-
OFFER_STATUS_EXPIRED= 'EXPIRED'¶ A constant which can be used with the offer_status property of a Offer. This constant has a value of “EXPIRED”
-
OFFER_STATUS_FAILED_ACCEPT= 'FAILED_ACCEPT'¶ A constant which can be used with the offer_status property of a Offer. This constant has a value of “FAILED_ACCEPT”
-
OFFER_STATUS_FAILED_SEND= 'FAILED_SEND'¶ A constant which can be used with the offer_status property of a Offer. This constant has a value of “FAILED_SEND”
-
OFFER_STATUS_PENDING_BUYER= 'PENDING_BUYER'¶ A constant which can be used with the offer_status property of a Offer. This constant has a value of “PENDING_BUYER”
-
OFFER_STATUS_PENDING_MARKETPLACE= 'PENDING_MARKETPLACE'¶ A constant which can be used with the offer_status property of a Offer. This constant has a value of “PENDING_MARKETPLACE”
-
__init__(**kwargs)¶ Initializes a new Offer 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 Offer.
- display_name (str) – The value to assign to the display_name property of this Offer.
- seller_compartment_id (str) – The value to assign to the seller_compartment_id property of this Offer.
- buyer_compartment_id (str) – The value to assign to the buyer_compartment_id property of this Offer.
- description (str) – The value to assign to the description property of this Offer.
- time_start_date (datetime) – The value to assign to the time_start_date property of this Offer.
- duration (str) – The value to assign to the duration property of this Offer.
- time_created (datetime) – The value to assign to the time_created property of this Offer.
- time_updated (datetime) – The value to assign to the time_updated property of this Offer.
- time_accept_by (datetime) – The value to assign to the time_accept_by property of this Offer.
- time_accepted (datetime) – The value to assign to the time_accepted property of this Offer.
- time_offer_end (datetime) – The value to assign to the time_offer_end property of this Offer.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this 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’.
- lifecycle_details (str) – The value to assign to the lifecycle_details property of this Offer.
- offer_status (str) – The value to assign to the offer_status property of this Offer. Allowed values for this property are: “DRAFT”, “PENDING_MARKETPLACE”, “PENDING_BUYER”, “EXPIRED”, “ACCEPTED”, “ACTIVE”, “ENDED”, “FAILED_SEND”, “FAILED_ACCEPT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- publisher_summary (oci.marketplace_private_offer.models.PublisherSummary) – The value to assign to the publisher_summary property of this Offer.
- pricing (oci.marketplace_private_offer.models.Pricing) – The value to assign to the pricing property of this Offer.
- buyer_information (oci.marketplace_private_offer.models.BuyerInformation) – The value to assign to the buyer_information property of this Offer.
- seller_information (oci.marketplace_private_offer.models.SellerInformation) – The value to assign to the seller_information property of this Offer.
- resource_bundles (list[oci.marketplace_private_offer.models.ResourceBundle]) – The value to assign to the resource_bundles property of this Offer.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this Offer.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this Offer.
-
buyer_compartment_id¶ Gets the buyer_compartment_id of this Offer. OCID of the buyer’s tenancy (root compartment).
Returns: The buyer_compartment_id of this Offer. Return type: str
-
buyer_information¶ Gets the buyer_information of this Offer.
Returns: The buyer_information of this Offer. Return type: oci.marketplace_private_offer.models.BuyerInformation
[Required] Gets the defined_tags of this Offer. 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 Offer. Return type: dict(str, dict(str, object))
-
description¶ Gets the description of this Offer. The description of the offer
Returns: The description of this Offer. Return type: str
-
display_name¶ [Required] Gets the display_name of this Offer. Offer Identifier, can be renamed
Returns: The display_name of this Offer. Return type: str
-
duration¶ Gets the duration of this Offer. Duration the Offer will be active after its start date. An ISO8601 extended formatted string.
Returns: The duration of this Offer. Return type: str
[Required] Gets the freeform_tags of this Offer. 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 Offer. Return type: dict(str, str)
-
id¶ [Required] Gets the id of this Offer. Unique identifier that is immutable on creation
Returns: The id of this Offer. Return type: str
-
lifecycle_details¶ Gets the lifecycle_details of this Offer. A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
Returns: The lifecycle_details of this Offer. Return type: str
-
lifecycle_state¶ [Required] Gets the lifecycle_state of this Offer. 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 Offer. Return type: str
-
offer_status¶ Gets the offer_status of this Offer. A substate for lifeCycleStatus to give a more human readable version of the offer
Allowed values for this property are: “DRAFT”, “PENDING_MARKETPLACE”, “PENDING_BUYER”, “EXPIRED”, “ACCEPTED”, “ACTIVE”, “ENDED”, “FAILED_SEND”, “FAILED_ACCEPT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The offer_status of this Offer. Return type: str
-
pricing¶ Gets the pricing of this Offer.
Returns: The pricing of this Offer. Return type: oci.marketplace_private_offer.models.Pricing
-
publisher_summary¶ Gets the publisher_summary of this Offer.
Returns: The publisher_summary of this Offer. Return type: oci.marketplace_private_offer.models.PublisherSummary
-
resource_bundles¶ Gets the resource_bundles of this Offer. A list of Resource Bundles associated with an Offer.
Returns: The resource_bundles of this Offer. Return type: list[oci.marketplace_private_offer.models.ResourceBundle]
-
seller_compartment_id¶ [Required] Gets the seller_compartment_id of this Offer. OCID of the seller’s tenancy (root compartment).
Returns: The seller_compartment_id of this Offer. Return type: str
-
seller_information¶ Gets the seller_information of this Offer.
Returns: The seller_information of this Offer. Return type: oci.marketplace_private_offer.models.SellerInformation
-
time_accept_by¶ Gets the time_accept_by of this Offer. The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 formatted datetime string
Returns: The time_accept_by of this Offer. Return type: datetime
-
time_accepted¶ Gets the time_accepted of this Offer. The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime string
Returns: The time_accepted of this Offer. Return type: datetime
-
time_created¶ [Required] Gets the time_created of this Offer. The time the the Offer was created. An RFC3339 formatted datetime string
Returns: The time_created of this Offer. Return type: datetime
-
time_offer_end¶ Gets the time_offer_end of this Offer. The time the accepted Offer will end. An RFC3339 formatted datetime string
Returns: The time_offer_end of this Offer. Return type: datetime
-
time_start_date¶ Gets the time_start_date of this Offer. The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 formatted datetime string
Returns: The time_start_date of this Offer. Return type: datetime
-
time_updated¶ Gets the time_updated of this Offer. The time the Offer was updated. An RFC3339 formatted datetime string
Returns: The time_updated of this Offer. Return type: datetime
-