CreateCcdCommitmentDetails¶
-
class
oci.ccd_offers.models.CreateCcdCommitmentDetails(**kwargs)¶ Bases:
objectCCD commitment creation details.
Methods
__init__(**kwargs)Initializes a new CreateCcdCommitmentDetails object with values from keyword arguments. Attributes
compartment_id[Required] Gets the compartment_id of this CreateCcdCommitmentDetails. defined_tagsGets the defined_tags of this CreateCcdCommitmentDetails. display_name[Required] Gets the display_name of this CreateCcdCommitmentDetails. filler_tenancy_idGets the filler_tenancy_id of this CreateCcdCommitmentDetails. freeform_tagsGets the freeform_tags of this CreateCcdCommitmentDetails. quantity[Required] Gets the quantity of this CreateCcdCommitmentDetails. secondary_skusGets the secondary_skus of this CreateCcdCommitmentDetails. subscription_id[Required] Gets the subscription_id of this CreateCcdCommitmentDetails. time_ccd_commitment_endsGets the time_ccd_commitment_ends of this CreateCcdCommitmentDetails. time_ccd_commitment_starts[Required] Gets the time_ccd_commitment_starts of this CreateCcdCommitmentDetails. usage_eligibilityGets the usage_eligibility of this CreateCcdCommitmentDetails. -
__init__(**kwargs)¶ Initializes a new CreateCcdCommitmentDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - quantity (int) – The value to assign to the quantity property of this CreateCcdCommitmentDetails.
- display_name (str) – The value to assign to the display_name property of this CreateCcdCommitmentDetails.
- subscription_id (str) – The value to assign to the subscription_id property of this CreateCcdCommitmentDetails.
- compartment_id (str) – The value to assign to the compartment_id property of this CreateCcdCommitmentDetails.
- filler_tenancy_id (str) – The value to assign to the filler_tenancy_id property of this CreateCcdCommitmentDetails.
- usage_eligibility (oci.ccd_offers.models.UsageEligibility) – The value to assign to the usage_eligibility property of this CreateCcdCommitmentDetails.
- secondary_skus (list[oci.ccd_offers.models.SecondarySkus]) – The value to assign to the secondary_skus property of this CreateCcdCommitmentDetails.
- time_ccd_commitment_starts (datetime) – The value to assign to the time_ccd_commitment_starts property of this CreateCcdCommitmentDetails.
- time_ccd_commitment_ends (datetime) – The value to assign to the time_ccd_commitment_ends property of this CreateCcdCommitmentDetails.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateCcdCommitmentDetails.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateCcdCommitmentDetails.
-
compartment_id¶ [Required] Gets the compartment_id of this CreateCcdCommitmentDetails. The compartment OCID where you want to create the CCD commitment. Must be the root compartment OCID of a parent tenancy (if part of an organization), or a standalone tenancy to which the subscription is associated.
Returns: The compartment_id of this CreateCcdCommitmentDetails. Return type: str
Gets the defined_tags of this CreateCcdCommitmentDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {“Operations”: {“CostCenter”: “42”}}
Returns: The defined_tags of this CreateCcdCommitmentDetails. Return type: dict(str, dict(str, object))
-
display_name¶ [Required] Gets the display_name of this CreateCcdCommitmentDetails. The CCD commitment name. Ensure the name is unique across subscription IDs. Avoid entering confidential information.
Returns: The display_name of this CreateCcdCommitmentDetails. Return type: str
-
filler_tenancy_id¶ Gets the filler_tenancy_id of this CreateCcdCommitmentDetails. The tenancy OCID you want to apply filler usage to.
Returns: The filler_tenancy_id of this CreateCcdCommitmentDetails. Return type: str
Gets the freeform_tags of this CreateCcdCommitmentDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {“Department”: “Finance”}
Returns: The freeform_tags of this CreateCcdCommitmentDetails. Return type: dict(str, str)
-
quantity¶ [Required] Gets the quantity of this CreateCcdCommitmentDetails. The hourly quantity that the customer is committing to a CCD offer’s main SKU. For FLEX offers, this quantity must equal the CCD offer’s minQuantity and maxQuantity when both are provided. For example, if the quantity is 1000, then you are committing to a 1000 usage quantity value per hour.
Returns: The quantity of this CreateCcdCommitmentDetails. Return type: int
-
secondary_skus¶ Gets the secondary_skus of this CreateCcdCommitmentDetails. The bundled SKUs selected for this commitment. Supply quantity only for components whose offer quantity rule is CUSTOMER_SELECTED.
Returns: The secondary_skus of this CreateCcdCommitmentDetails. Return type: list[oci.ccd_offers.models.SecondarySkus]
-
subscription_id¶ [Required] Gets the subscription_id of this CreateCcdCommitmentDetails. The subscription OCID value the CCD offer is applicable to.
Returns: The subscription_id of this CreateCcdCommitmentDetails. Return type: str
-
time_ccd_commitment_ends¶ Gets the time_ccd_commitment_ends of this CreateCcdCommitmentDetails. The exclusive time the CCD commitment ends. The time gets computed using timeCcdCommitmentStarts from the ccdCommitment, and the minimum commitment term associated with CcdOffer. The default value is set as null at the time of CCD commitment creation.
Returns: The time_ccd_commitment_ends of this CreateCcdCommitmentDetails. Return type: datetime
-
time_ccd_commitment_starts¶ [Required] Gets the time_ccd_commitment_starts of this CreateCcdCommitmentDetails. The inclusive date and time when the CCD commitment will be effective. The date and time must be rounded up to the exact hour, and must be in the future. The format is defined by RFC 3339. For example, if you want to commit to a CCD on 2025-06-01 12:00:00, you should create a request any time before 2025-06-01 12:00:00. You can only create CCD for a Scheduled or Current CCD offer.
Returns: The time_ccd_commitment_starts of this CreateCcdCommitmentDetails. Return type: datetime
-
usage_eligibility¶ Gets the usage_eligibility of this CreateCcdCommitmentDetails.
Returns: The usage_eligibility of this CreateCcdCommitmentDetails. Return type: oci.ccd_offers.models.UsageEligibility
-