OfferRestriction¶
-
class
oci.ccd_offers.models.OfferRestriction(**kwargs)¶ Bases:
objectCCD offer applicability restrictions.
Methods
__init__(**kwargs)Initializes a new OfferRestriction object with values from keyword arguments. Attributes
availability_domainGets the availability_domain of this OfferRestriction. regionGets the region of this OfferRestriction. subscription_idsGets the subscription_ids of this OfferRestriction. -
__init__(**kwargs)¶ Initializes a new OfferRestriction object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - region (str) – The value to assign to the region property of this OfferRestriction.
- availability_domain (str) – The value to assign to the availability_domain property of this OfferRestriction.
- subscription_ids (list[str]) – The value to assign to the subscription_ids property of this OfferRestriction.
-
availability_domain¶ Gets the availability_domain of this OfferRestriction. The Availability Domain the CCD offer is applicable to. If you are setting availabilityDomain, ensure to also set the region property value.
Returns: The availability_domain of this OfferRestriction. Return type: str
-
region¶ Gets the region of this OfferRestriction. The region the CCD offer is applicable to. For example, a CCD offer applicable only to us-ashburn-1.
Returns: The region of this OfferRestriction. Return type: str
-
subscription_ids¶ Gets the subscription_ids of this OfferRestriction. The subscription OCIDs the CCD offer is applicable to.
Returns: The subscription_ids of this OfferRestriction. Return type: list[str]
-