Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ConditionalOverride

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

Specifies the override to conditionally apply.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1ConditionalOverride

Returns a new instance of GoogleCloudChannelV1ConditionalOverride.



709
710
711
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 709

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

Instance Attribute Details

#adjustmentGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingAdjustment

A type that represents the various adjustments you can apply to a bill. Corresponds to the JSON property adjustment



695
696
697
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 695

def adjustment
  @adjustment
end

#rebilling_basisString

Required. The RebillingBasis to use for the applied override. Shows the relative cost based on your repricing costs. Corresponds to the JSON property rebillingBasis

Returns:

  • (String)


701
702
703
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 701

def rebilling_basis
  @rebilling_basis
end

#repricing_conditionGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingCondition

Represents the various repricing conditions you can use for a conditional override. Corresponds to the JSON property repricingCondition



707
708
709
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 707

def repricing_condition
  @repricing_condition
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



714
715
716
717
718
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 714

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