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 |
Google\Cloud\Channel\V1\RepricingConfig\EntitlementGranularity
Applies the repricing configuration at the entitlement level. This is the only supported value for CustomerRepricingConfig. |
↳ channel_partner_granularity |
Google\Cloud\Channel\V1\RepricingConfig\ChannelPartnerGranularity
Applies the repricing configuration at the channel partner level. This is the only supported value for ChannelPartnerRepricingConfig. |
↳ 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. This is the only supported value for CustomerRepricingConfig.
Returns | |
---|---|
Type | Description |
Google\Cloud\Channel\V1\RepricingConfig\EntitlementGranularity|null |
hasEntitlementGranularity
setEntitlementGranularity
Applies the repricing configuration at the entitlement level. This is the only supported value for CustomerRepricingConfig.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Channel\V1\RepricingConfig\EntitlementGranularity
|
Returns | |
---|---|
Type | Description |
$this |
getChannelPartnerGranularity
Applies the repricing configuration at the channel partner level.
This is the only supported value for ChannelPartnerRepricingConfig.
Returns | |
---|---|
Type | Description |
Google\Cloud\Channel\V1\RepricingConfig\ChannelPartnerGranularity|null |
hasChannelPartnerGranularity
setChannelPartnerGranularity
Applies the repricing configuration at the channel partner level.
This is the only supported value for ChannelPartnerRepricingConfig.
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 |