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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ entitlement_granularity |
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 |
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 |
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<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 |
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 |
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 |
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 |
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 |
RepricingAdjustment|null |
hasAdjustment
clearAdjustment
setAdjustment
Required. Information about the adjustment.
Parameter | |
---|---|
Name | Description |
var |
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<ConditionalOverride>
|
Returns | |
---|---|
Type | Description |
$this |
getGranularity
Returns | |
---|---|
Type | Description |
string |