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.



688
689
690
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 688

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



674
675
676
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 674

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)


680
681
682
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 680

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



686
687
688
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 686

def repricing_condition
  @repricing_condition
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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