Cloud Channel V1 API - Class Google::Cloud::Channel::V1::CustomerConstraints (v2.2.1)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Cloud Channel V1 API class Google::Cloud::Channel::V1::CustomerConstraints.
Represents constraints required to purchase the Offer for a customer.
Extended By
-
Google::Protobuf::MessageExts::ClassMethods
Includes
-
Google::Protobuf::MessageExts
Methods
#allowed_customer_types
def allowed_customer_types() -> ::Array<::Google::Cloud::Channel::V1::CloudIdentityInfo::CustomerType>
#allowed_customer_types=
def allowed_customer_types=(value) -> ::Array<::Google::Cloud::Channel::V1::CloudIdentityInfo::CustomerType>
#allowed_regions
def allowed_regions() -> ::Array<::String>
Returns
-
(::Array<::String>) — Allowed geographical regions of the customer.
#allowed_regions=
def allowed_regions=(value) -> ::Array<::String>
Parameter
-
value (::Array<::String>) — Allowed geographical regions of the customer.
Returns
-
(::Array<::String>) — Allowed geographical regions of the customer.
def promotional_order_types() -> ::Array<::Google::Cloud::Channel::V1::PromotionalOrderType>
def promotional_order_types=(value) -> ::Array<::Google::Cloud::Channel::V1::PromotionalOrderType>
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Cloud Channel V1 API - Class Google::Cloud::Channel::V1::CustomerConstraints (v2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-CustomerConstraints)\n- [2.2.0](/ruby/docs/reference/google-cloud-channel-v1/2.2.0/Google-Cloud-Channel-V1-CustomerConstraints)\n- [2.1.0](/ruby/docs/reference/google-cloud-channel-v1/2.1.0/Google-Cloud-Channel-V1-CustomerConstraints)\n- [2.0.1](/ruby/docs/reference/google-cloud-channel-v1/2.0.1/Google-Cloud-Channel-V1-CustomerConstraints)\n- [1.3.0](/ruby/docs/reference/google-cloud-channel-v1/1.3.0/Google-Cloud-Channel-V1-CustomerConstraints)\n- [1.2.0](/ruby/docs/reference/google-cloud-channel-v1/1.2.0/Google-Cloud-Channel-V1-CustomerConstraints)\n- [1.1.0](/ruby/docs/reference/google-cloud-channel-v1/1.1.0/Google-Cloud-Channel-V1-CustomerConstraints)\n- [1.0.1](/ruby/docs/reference/google-cloud-channel-v1/1.0.1/Google-Cloud-Channel-V1-CustomerConstraints)\n- [0.24.0](/ruby/docs/reference/google-cloud-channel-v1/0.24.0/Google-Cloud-Channel-V1-CustomerConstraints)\n- [0.23.2](/ruby/docs/reference/google-cloud-channel-v1/0.23.2/Google-Cloud-Channel-V1-CustomerConstraints)\n- [0.22.1](/ruby/docs/reference/google-cloud-channel-v1/0.22.1/Google-Cloud-Channel-V1-CustomerConstraints)\n- [0.21.0](/ruby/docs/reference/google-cloud-channel-v1/0.21.0/Google-Cloud-Channel-V1-CustomerConstraints)\n- [0.20.0](/ruby/docs/reference/google-cloud-channel-v1/0.20.0/Google-Cloud-Channel-V1-CustomerConstraints)\n- [0.19.0](/ruby/docs/reference/google-cloud-channel-v1/0.19.0/Google-Cloud-Channel-V1-CustomerConstraints)\n- [0.18.0](/ruby/docs/reference/google-cloud-channel-v1/0.18.0/Google-Cloud-Channel-V1-CustomerConstraints)\n- [0.17.0](/ruby/docs/reference/google-cloud-channel-v1/0.17.0/Google-Cloud-Channel-V1-CustomerConstraints)\n- [0.16.0](/ruby/docs/reference/google-cloud-channel-v1/0.16.0/Google-Cloud-Channel-V1-CustomerConstraints)\n- [0.15.0](/ruby/docs/reference/google-cloud-channel-v1/0.15.0/Google-Cloud-Channel-V1-CustomerConstraints)\n- [0.14.0](/ruby/docs/reference/google-cloud-channel-v1/0.14.0/Google-Cloud-Channel-V1-CustomerConstraints)\n- [0.13.0](/ruby/docs/reference/google-cloud-channel-v1/0.13.0/Google-Cloud-Channel-V1-CustomerConstraints)\n- [0.12.0](/ruby/docs/reference/google-cloud-channel-v1/0.12.0/Google-Cloud-Channel-V1-CustomerConstraints)\n- [0.11.0](/ruby/docs/reference/google-cloud-channel-v1/0.11.0/Google-Cloud-Channel-V1-CustomerConstraints)\n- [0.10.0](/ruby/docs/reference/google-cloud-channel-v1/0.10.0/Google-Cloud-Channel-V1-CustomerConstraints)\n- [0.9.5](/ruby/docs/reference/google-cloud-channel-v1/0.9.5/Google-Cloud-Channel-V1-CustomerConstraints) \nReference documentation and code samples for the Cloud Channel V1 API class Google::Cloud::Channel::V1::CustomerConstraints.\n\nRepresents constraints required to purchase the Offer for a customer. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #allowed_customer_types\n\n def allowed_customer_types() -\u003e ::Array\u003c::Google::Cloud::Channel::V1::CloudIdentityInfo::CustomerType\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Channel::V1::CloudIdentityInfo::CustomerType](./Google-Cloud-Channel-V1-CloudIdentityInfo-CustomerType)\\\u003e) --- Allowed Customer Type.\n\n### #allowed_customer_types=\n\n def allowed_customer_types=(value) -\u003e ::Array\u003c::Google::Cloud::Channel::V1::CloudIdentityInfo::CustomerType\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::Channel::V1::CloudIdentityInfo::CustomerType](./Google-Cloud-Channel-V1-CloudIdentityInfo-CustomerType)\\\u003e) --- Allowed Customer Type. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Channel::V1::CloudIdentityInfo::CustomerType](./Google-Cloud-Channel-V1-CloudIdentityInfo-CustomerType)\\\u003e) --- Allowed Customer Type.\n\n### #allowed_regions\n\n def allowed_regions() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Allowed geographical regions of the customer.\n\n### #allowed_regions=\n\n def allowed_regions=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) --- Allowed geographical regions of the customer. \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Allowed geographical regions of the customer.\n\n### #promotional_order_types\n\n def promotional_order_types() -\u003e ::Array\u003c::Google::Cloud::Channel::V1::PromotionalOrderType\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Channel::V1::PromotionalOrderType](./Google-Cloud-Channel-V1-PromotionalOrderType)\\\u003e) --- Allowed Promotional Order Type. Present for Promotional offers.\n\n### #promotional_order_types=\n\n def promotional_order_types=(value) -\u003e ::Array\u003c::Google::Cloud::Channel::V1::PromotionalOrderType\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::Channel::V1::PromotionalOrderType](./Google-Cloud-Channel-V1-PromotionalOrderType)\\\u003e) --- Allowed Promotional Order Type. Present for Promotional offers. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Channel::V1::PromotionalOrderType](./Google-Cloud-Channel-V1-PromotionalOrderType)\\\u003e) --- Allowed Promotional Order Type. Present for Promotional offers."]]