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:
Gets the availability_domain of this OfferRestriction.
Gets the region of this OfferRestriction.
Gets 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.
- property 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
- property 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
- property 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]