Google Cloud Channel V1 Client - Class RepricingConfig (2.0.0-RC1)

Reference documentation and code samples for the Google Cloud Channel V1 Client class RepricingConfig.

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

Generated from protobuf message google.cloud.channel.v1.RepricingConfig

Namespace

Google \ Cloud \ Channel \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ entitlement_granularity Google\Cloud\Channel\V1\RepricingConfig\EntitlementGranularity

Applies the repricing configuration at the entitlement level. Note: If a ChannelPartnerRepricingConfig using RepricingConfig.EntitlementGranularity becomes effective, then no existing or future RepricingConfig.ChannelPartnerGranularity will apply to the RepricingConfig.EntitlementGranularity.entitlement. This is the recommended value for both CustomerRepricingConfig and ChannelPartnerRepricingConfig.

↳ channel_partner_granularity Google\Cloud\Channel\V1\RepricingConfig\ChannelPartnerGranularity

Applies the repricing configuration at the channel partner level. Only ChannelPartnerRepricingConfig supports this value. Deprecated: This is no longer supported. Use RepricingConfig.entitlement_granularity instead.

↳ effective_invoice_month Google\Type\Date

Required. The YearMonth when these adjustments activate. The Day field needs to be "0" since we only accept YearMonth repricing boundaries.

↳ adjustment Google\Cloud\Channel\V1\RepricingAdjustment

Required. Information about the adjustment.

↳ rebilling_basis int

Required. The RebillingBasis to use for this bill. Specifies the relative cost based on repricing costs you will apply.

↳ conditional_overrides array<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.

getEntitlementGranularity

Applies the repricing configuration at the entitlement level.

Note: If a ChannelPartnerRepricingConfig using RepricingConfig.EntitlementGranularity becomes effective, then no existing or future RepricingConfig.ChannelPartnerGranularity will apply to the RepricingConfig.EntitlementGranularity.entitlement. This is the recommended value for both CustomerRepricingConfig and ChannelPartnerRepricingConfig.

Returns
Type Description
Google\Cloud\Channel\V1\RepricingConfig\EntitlementGranularity|null

hasEntitlementGranularity

setEntitlementGranularity

Applies the repricing configuration at the entitlement level.

Note: If a ChannelPartnerRepricingConfig using RepricingConfig.EntitlementGranularity becomes effective, then no existing or future RepricingConfig.ChannelPartnerGranularity will apply to the RepricingConfig.EntitlementGranularity.entitlement. This is the recommended value for both CustomerRepricingConfig and ChannelPartnerRepricingConfig.

Parameter
Name Description
var Google\Cloud\Channel\V1\RepricingConfig\EntitlementGranularity
Returns
Type Description
$this

getChannelPartnerGranularity

Applies the repricing configuration at the channel partner level.

Only ChannelPartnerRepricingConfig supports this value. Deprecated: This is no longer supported. Use RepricingConfig.entitlement_granularity instead.

Returns
Type Description
Google\Cloud\Channel\V1\RepricingConfig\ChannelPartnerGranularity|null

hasChannelPartnerGranularity

setChannelPartnerGranularity

Applies the repricing configuration at the channel partner level.

Only ChannelPartnerRepricingConfig supports this value. Deprecated: This is no longer supported. Use RepricingConfig.entitlement_granularity instead.

Parameter
Name Description
var Google\Cloud\Channel\V1\RepricingConfig\ChannelPartnerGranularity
Returns
Type Description
$this

getEffectiveInvoiceMonth

Required. The YearMonth when these adjustments activate. The Day field needs to be "0" since we only accept YearMonth repricing boundaries.

Returns
Type Description
Google\Type\Date|null

hasEffectiveInvoiceMonth

clearEffectiveInvoiceMonth

setEffectiveInvoiceMonth

Required. The YearMonth when these adjustments activate. The Day field needs to be "0" since we only accept YearMonth repricing boundaries.

Parameter
Name Description
var Google\Type\Date
Returns
Type Description
$this

getAdjustment

Required. Information about the adjustment.

Returns
Type Description
Google\Cloud\Channel\V1\RepricingAdjustment|null

hasAdjustment

clearAdjustment

setAdjustment

Required. Information about the adjustment.

Parameter
Name Description
var Google\Cloud\Channel\V1\RepricingAdjustment
Returns
Type Description
$this

getRebillingBasis

Required. The RebillingBasis to use for this bill. Specifies the relative cost based on repricing costs you will apply.

Returns
Type Description
int

setRebillingBasis

Required. The RebillingBasis to use for this bill. Specifies the relative cost based on repricing costs you will apply.

Parameter
Name Description
var int
Returns
Type Description
$this

getConditionalOverrides

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
Type Description
Google\Protobuf\Internal\RepeatedField

setConditionalOverrides

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.

Parameter
Name Description
var array<Google\Cloud\Channel\V1\ConditionalOverride>
Returns
Type Description
$this

getGranularity

Returns
Type Description
string