Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerConstraints
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerConstraints
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudchannel_v1/classes.rb,
lib/google/apis/cloudchannel_v1/representations.rb,
lib/google/apis/cloudchannel_v1/representations.rb
Overview
Represents constraints required to purchase the Offer for a customer.
Instance Attribute Summary collapse
-
#allowed_customer_types ⇒ Array<String>
Allowed Customer Type.
-
#allowed_regions ⇒ Array<String>
Allowed geographical regions of the customer.
-
#promotional_order_types ⇒ Array<String>
Allowed Promotional Order Type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1CustomerConstraints
constructor
A new instance of GoogleCloudChannelV1CustomerConstraints.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1CustomerConstraints
Returns a new instance of GoogleCloudChannelV1CustomerConstraints.
747 748 749 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 747 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_customer_types ⇒ Array<String>
Allowed Customer Type.
Corresponds to the JSON property allowedCustomerTypes
735 736 737 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 735 def allowed_customer_types @allowed_customer_types end |
#allowed_regions ⇒ Array<String>
Allowed geographical regions of the customer.
Corresponds to the JSON property allowedRegions
740 741 742 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 740 def allowed_regions @allowed_regions end |
#promotional_order_types ⇒ Array<String>
Allowed Promotional Order Type. Present for Promotional offers.
Corresponds to the JSON property promotionalOrderTypes
745 746 747 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 745 def promotional_order_types @promotional_order_types end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
752 753 754 755 756 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 752 def update!(**args) @allowed_customer_types = args[:allowed_customer_types] if args.key?(:allowed_customer_types) @allowed_regions = args[:allowed_regions] if args.key?(:allowed_regions) @promotional_order_types = args[:promotional_order_types] if args.key?(:promotional_order_types) end |