Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ConditionalOverride
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1ConditionalOverride
- 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
Specifies the override to conditionally apply.
Instance Attribute Summary collapse
-
#adjustment ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingAdjustment
A type that represents the various adjustments you can apply to a bill.
-
#rebilling_basis ⇒ String
Required.
-
#repricing_condition ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingCondition
Represents the various repricing conditions you can use for a conditional override.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1ConditionalOverride
constructor
A new instance of GoogleCloudChannelV1ConditionalOverride.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1ConditionalOverride
Returns a new instance of GoogleCloudChannelV1ConditionalOverride.
719 720 721 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 719 def initialize(**args) update!(**args) end |
Instance Attribute Details
#adjustment ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingAdjustment
A type that represents the various adjustments you can apply to a bill.
Corresponds to the JSON property adjustment
705 706 707 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 705 def adjustment @adjustment end |
#rebilling_basis ⇒ String
Required. The RebillingBasis to use for the applied override. Shows the
relative cost based on your repricing costs.
Corresponds to the JSON property rebillingBasis
711 712 713 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 711 def rebilling_basis @rebilling_basis end |
#repricing_condition ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingCondition
Represents the various repricing conditions you can use for a conditional
override.
Corresponds to the JSON property repricingCondition
717 718 719 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 717 def repricing_condition @repricing_condition end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
724 725 726 727 728 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 724 def update!(**args) @adjustment = args[:adjustment] if args.key?(:adjustment) @rebilling_basis = args[:rebilling_basis] if args.key?(:rebilling_basis) @repricing_condition = args[:repricing_condition] if args.key?(:repricing_condition) end |