Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Constraints

Inherits:
Object
  • Object
show all
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 the constraints for buying the Offer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1Constraints

Returns a new instance of GoogleCloudChannelV1Constraints.



730
731
732
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 730

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#customer_constraintsGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerConstraints

Represents constraints required to purchase the Offer for a customer. Corresponds to the JSON property customerConstraints



728
729
730
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 728

def customer_constraints
  @customer_constraints
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



735
736
737
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 735

def update!(**args)
  @customer_constraints = args[:customer_constraints] if args.key?(:customer_constraints)
end