Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingConfig
- 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
Configuration for repricing a Google bill over a period of time.
Instance Attribute Summary collapse
-
#adjustment ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingAdjustment
A type that represents the various adjustments you can apply to a bill.
-
#channel_partner_granularity ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingConfigChannelPartnerGranularity
Applies the repricing configuration at the channel partner level.
-
#conditional_overrides ⇒ Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1ConditionalOverride>
The conditional overrides to apply for this configuration.
-
#effective_invoice_month ⇒ Google::Apis::CloudchannelV1::GoogleTypeDate
Represents a whole or partial calendar date, such as a birthday.
-
#entitlement_granularity ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingConfigEntitlementGranularity
Applies the repricing configuration at the entitlement level.
-
#rebilling_basis ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1RepricingConfig
constructor
A new instance of GoogleCloudChannelV1RepricingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1RepricingConfig
Returns a new instance of GoogleCloudChannelV1RepricingConfig.
3120 3121 3122 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3120 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
3080 3081 3082 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3080 def adjustment @adjustment end |
#channel_partner_granularity ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingConfigChannelPartnerGranularity
Applies the repricing configuration at the channel partner level. The channel
partner value is derived from the resource name. Takes an empty json object.
Deprecated: This is no longer supported. Use RepricingConfig.
EntitlementGranularity instead.
Corresponds to the JSON property channelPartnerGranularity
3088 3089 3090 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3088 def channel_partner_granularity @channel_partner_granularity end |
#conditional_overrides ⇒ Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1ConditionalOverride>
The conditional overrides to apply for this configuration. If you list
multiple overrides, only the first valid override is used. If you don't list
any overrides, the API uses the normal adjustment and rebilling basis.
Corresponds to the JSON property conditionalOverrides
3095 3096 3097 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3095 def conditional_overrides @conditional_overrides end |
#effective_invoice_month ⇒ Google::Apis::CloudchannelV1::GoogleTypeDate
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following: * A full date, with non-zero year, month, and day values. * A month
and day, with a zero year (for example, an anniversary). * A year on its own,
with a zero month and a zero day. * A year and month, with a zero day (for
example, a credit card expiration date). Related types: * google.type.
TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
Corresponds to the JSON property effectiveInvoiceMonth
3107 3108 3109 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3107 def effective_invoice_month @effective_invoice_month end |
#entitlement_granularity ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingConfigEntitlementGranularity
Applies the repricing configuration at the entitlement level.
Corresponds to the JSON property entitlementGranularity
3112 3113 3114 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3112 def entitlement_granularity @entitlement_granularity end |
#rebilling_basis ⇒ String
Required. The RebillingBasis to use for this bill. Specifies the relative cost
based on repricing costs you will apply.
Corresponds to the JSON property rebillingBasis
3118 3119 3120 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3118 def rebilling_basis @rebilling_basis end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3125 3126 3127 3128 3129 3130 3131 3132 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3125 def update!(**args) @adjustment = args[:adjustment] if args.key?(:adjustment) @channel_partner_granularity = args[:channel_partner_granularity] if args.key?(:channel_partner_granularity) @conditional_overrides = args[:conditional_overrides] if args.key?(:conditional_overrides) @effective_invoice_month = args[:effective_invoice_month] if args.key?(:effective_invoice_month) @entitlement_granularity = args[:entitlement_granularity] if args.key?(:entitlement_granularity) @rebilling_basis = args[:rebilling_basis] if args.key?(:rebilling_basis) end |