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.



576
577
578
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 576

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



562
563
564
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 562

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)


568
569
570
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 568

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



574
575
576
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 574

def repricing_condition
  @repricing_condition
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



581
582
583
584
585
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 581

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