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.



719
720
721
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 719

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



705
706
707
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 705

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)


711
712
713
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 711

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



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