# Cloud Channel V1 API - Class Google::Cloud::Channel::V1::RepricingConfig (v2.6.0)

2.6.0 (latest) 2.5.0 2.4.1 2.3.0 2.2.1 2.1.0 2.0.1 1.3.0 1.2.0 1.1.0 1.0.1 0.24.0 0.23.2 0.22.1 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.5 Reference documentation and code samples for the Cloud Channel V1 API class Google::Cloud::Channel::V1::RepricingConfig.

Configuration for repricing a Google bill over a period of time.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #adjustment

    def adjustment() -> ::Google::Cloud::Channel::V1::RepricingAdjustment

**Returns**

- ([::Google::Cloud::Channel::V1::RepricingAdjustment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingAdjustment)) --- Required. Information about the adjustment.

### #adjustment=

    def adjustment=(value) -> ::Google::Cloud::Channel::V1::RepricingAdjustment

**Parameter**

- **value** ([::Google::Cloud::Channel::V1::RepricingAdjustment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingAdjustment)) --- Required. Information about the adjustment.
**Returns**

- ([::Google::Cloud::Channel::V1::RepricingAdjustment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingAdjustment)) --- Required. Information about the adjustment.

### #channel_partner_granularity

    def channel_partner_granularity() -> ::Google::Cloud::Channel::V1::RepricingConfig::ChannelPartnerGranularity

**Returns**

- ([::Google::Cloud::Channel::V1::RepricingConfig::ChannelPartnerGranularity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingConfig-ChannelPartnerGranularity)) --- Applies the repricing configuration at the channel partner level. Only [ChannelPartnerRepricingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-ChannelPartnerRepricingConfig "Google::Cloud::Channel::V1::ChannelPartnerRepricingConfig (class)") supports this value. Deprecated: This is no longer supported. Use [RepricingConfig.entitlement_granularity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingConfig#Google__Cloud__Channel__V1__RepricingConfig_entitlement_granularity_instance_ "Google::Cloud::Channel::V1::RepricingConfig#entitlement_granularity (method)") instead.


  Note: The following fields are mutually exclusive: `channel_partner_granularity`, `entitlement_granularity`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #channel_partner_granularity=

    def channel_partner_granularity=(value) -> ::Google::Cloud::Channel::V1::RepricingConfig::ChannelPartnerGranularity

**Parameter**

- **value** ([::Google::Cloud::Channel::V1::RepricingConfig::ChannelPartnerGranularity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingConfig-ChannelPartnerGranularity)) --- Applies the repricing configuration at the channel partner level. Only [ChannelPartnerRepricingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-ChannelPartnerRepricingConfig "Google::Cloud::Channel::V1::ChannelPartnerRepricingConfig (class)") supports this value. Deprecated: This is no longer supported. Use [RepricingConfig.entitlement_granularity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingConfig#Google__Cloud__Channel__V1__RepricingConfig_entitlement_granularity_instance_ "Google::Cloud::Channel::V1::RepricingConfig#entitlement_granularity (method)") instead.


  Note: The following fields are mutually exclusive: `channel_partner_granularity`, `entitlement_granularity`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Channel::V1::RepricingConfig::ChannelPartnerGranularity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingConfig-ChannelPartnerGranularity)) --- Applies the repricing configuration at the channel partner level. Only [ChannelPartnerRepricingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-ChannelPartnerRepricingConfig "Google::Cloud::Channel::V1::ChannelPartnerRepricingConfig (class)") supports this value. Deprecated: This is no longer supported. Use [RepricingConfig.entitlement_granularity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingConfig#Google__Cloud__Channel__V1__RepricingConfig_entitlement_granularity_instance_ "Google::Cloud::Channel::V1::RepricingConfig#entitlement_granularity (method)") instead.


  Note: The following fields are mutually exclusive: `channel_partner_granularity`, `entitlement_granularity`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #conditional_overrides

    def conditional_overrides() -> ::Array<::Google::Cloud::Channel::V1::ConditionalOverride>

**Returns**

- (::Array\<[::Google::Cloud::Channel::V1::ConditionalOverride](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-ConditionalOverride)\>) --- 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.

### #conditional_overrides=

    def conditional_overrides=(value) -> ::Array<::Google::Cloud::Channel::V1::ConditionalOverride>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Channel::V1::ConditionalOverride](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-ConditionalOverride)\>) --- 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.
**Returns**

- (::Array\<[::Google::Cloud::Channel::V1::ConditionalOverride](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-ConditionalOverride)\>) --- 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.

### #effective_invoice_month

    def effective_invoice_month() -> ::Google::Type::Date

**Returns**

- ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Type-Date)) --- Required. The YearMonth when these adjustments activate. The Day field needs to be "0" since we only accept YearMonth repricing boundaries.

### #effective_invoice_month=

    def effective_invoice_month=(value) -> ::Google::Type::Date

**Parameter**

- **value** ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Type-Date)) --- Required. The YearMonth when these adjustments activate. The Day field needs to be "0" since we only accept YearMonth repricing boundaries.
**Returns**

- ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Type-Date)) --- Required. The YearMonth when these adjustments activate. The Day field needs to be "0" since we only accept YearMonth repricing boundaries.

### #entitlement_granularity

    def entitlement_granularity() -> ::Google::Cloud::Channel::V1::RepricingConfig::EntitlementGranularity

**Returns**

- ([::Google::Cloud::Channel::V1::RepricingConfig::EntitlementGranularity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingConfig-EntitlementGranularity)) --- Required. Applies the repricing configuration at the entitlement level.


  Note: If a
  [ChannelPartnerRepricingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-ChannelPartnerRepricingConfig "Google::Cloud::Channel::V1::ChannelPartnerRepricingConfig (class)")
  using
  [RepricingConfig.EntitlementGranularity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingConfig-EntitlementGranularity "Google::Cloud::Channel::V1::RepricingConfig::EntitlementGranularity (class)")
  becomes effective, then no existing or future
  [RepricingConfig.ChannelPartnerGranularity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingConfig-ChannelPartnerGranularity "Google::Cloud::Channel::V1::RepricingConfig::ChannelPartnerGranularity (class)")
  will apply to the
  [RepricingConfig.EntitlementGranularity.entitlement](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingConfig-EntitlementGranularity#Google__Cloud__Channel__V1__RepricingConfig__EntitlementGranularity_entitlement_instance_ "Google::Cloud::Channel::V1::RepricingConfig::EntitlementGranularity#entitlement (method)").
  This is the recommended value for both
  [CustomerRepricingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-CustomerRepricingConfig "Google::Cloud::Channel::V1::CustomerRepricingConfig (class)")
  and
  [ChannelPartnerRepricingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-ChannelPartnerRepricingConfig "Google::Cloud::Channel::V1::ChannelPartnerRepricingConfig (class)").

  Note: The following fields are mutually exclusive: `entitlement_granularity`, `channel_partner_granularity`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #entitlement_granularity=

    def entitlement_granularity=(value) -> ::Google::Cloud::Channel::V1::RepricingConfig::EntitlementGranularity

**Parameter**

- **value** ([::Google::Cloud::Channel::V1::RepricingConfig::EntitlementGranularity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingConfig-EntitlementGranularity)) --- Required. Applies the repricing configuration at the entitlement level.


  Note: If a
  [ChannelPartnerRepricingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-ChannelPartnerRepricingConfig "Google::Cloud::Channel::V1::ChannelPartnerRepricingConfig (class)")
  using
  [RepricingConfig.EntitlementGranularity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingConfig-EntitlementGranularity "Google::Cloud::Channel::V1::RepricingConfig::EntitlementGranularity (class)")
  becomes effective, then no existing or future
  [RepricingConfig.ChannelPartnerGranularity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingConfig-ChannelPartnerGranularity "Google::Cloud::Channel::V1::RepricingConfig::ChannelPartnerGranularity (class)")
  will apply to the
  [RepricingConfig.EntitlementGranularity.entitlement](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingConfig-EntitlementGranularity#Google__Cloud__Channel__V1__RepricingConfig__EntitlementGranularity_entitlement_instance_ "Google::Cloud::Channel::V1::RepricingConfig::EntitlementGranularity#entitlement (method)").
  This is the recommended value for both
  [CustomerRepricingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-CustomerRepricingConfig "Google::Cloud::Channel::V1::CustomerRepricingConfig (class)")
  and
  [ChannelPartnerRepricingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-ChannelPartnerRepricingConfig "Google::Cloud::Channel::V1::ChannelPartnerRepricingConfig (class)").

  Note: The following fields are mutually exclusive: `entitlement_granularity`, `channel_partner_granularity`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Channel::V1::RepricingConfig::EntitlementGranularity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingConfig-EntitlementGranularity)) --- Required. Applies the repricing configuration at the entitlement level.


  Note: If a
  [ChannelPartnerRepricingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-ChannelPartnerRepricingConfig "Google::Cloud::Channel::V1::ChannelPartnerRepricingConfig (class)")
  using
  [RepricingConfig.EntitlementGranularity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingConfig-EntitlementGranularity "Google::Cloud::Channel::V1::RepricingConfig::EntitlementGranularity (class)")
  becomes effective, then no existing or future
  [RepricingConfig.ChannelPartnerGranularity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingConfig-ChannelPartnerGranularity "Google::Cloud::Channel::V1::RepricingConfig::ChannelPartnerGranularity (class)")
  will apply to the
  [RepricingConfig.EntitlementGranularity.entitlement](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RepricingConfig-EntitlementGranularity#Google__Cloud__Channel__V1__RepricingConfig__EntitlementGranularity_entitlement_instance_ "Google::Cloud::Channel::V1::RepricingConfig::EntitlementGranularity#entitlement (method)").
  This is the recommended value for both
  [CustomerRepricingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-CustomerRepricingConfig "Google::Cloud::Channel::V1::CustomerRepricingConfig (class)")
  and
  [ChannelPartnerRepricingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-ChannelPartnerRepricingConfig "Google::Cloud::Channel::V1::ChannelPartnerRepricingConfig (class)").

  Note: The following fields are mutually exclusive: `entitlement_granularity`, `channel_partner_granularity`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #rebilling_basis

    def rebilling_basis() -> ::Google::Cloud::Channel::V1::RebillingBasis

**Returns**

- ([::Google::Cloud::Channel::V1::RebillingBasis](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RebillingBasis)) --- Required. The [RebillingBasis](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RebillingBasis "Google::Cloud::Channel::V1::RebillingBasis (module)") to use for this bill. Specifies the relative cost based on repricing costs you will apply.

### #rebilling_basis=

    def rebilling_basis=(value) -> ::Google::Cloud::Channel::V1::RebillingBasis

**Parameter**

- **value** ([::Google::Cloud::Channel::V1::RebillingBasis](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RebillingBasis)) --- Required. The [RebillingBasis](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RebillingBasis "Google::Cloud::Channel::V1::RebillingBasis (module)") to use for this bill. Specifies the relative cost based on repricing costs you will apply.
**Returns**

- ([::Google::Cloud::Channel::V1::RebillingBasis](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RebillingBasis)) --- Required. The [RebillingBasis](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-RebillingBasis "Google::Cloud::Channel::V1::RebillingBasis (module)") to use for this bill. Specifies the relative cost based on repricing costs you will apply.