class AccountsChannelPartnerLinksChannelPartnerRepricingConfigs extends Resource (View source)

The "channelPartnerRepricingConfigs" collection of methods.

Typical usage is:

 $cloudchannelService = new Google\Service\Cloudchannel(...);
 $channelPartnerRepricingConfigs = $cloudchannelService->accounts_channelPartnerLinks_channelPartnerRepricingConfigs;

Methods

create(string $parent, GoogleCloudChannelV1ChannelPartnerRepricingConfig $postBody, array $optParams = [])

Creates a ChannelPartnerRepricingConfig. Call this method to set modifications for a specific ChannelPartner's bill. You can only create configs if the RepricingConfig.effective_invoice_month is a future month. If needed, you can create a config for the current month, with some restrictions. When creating a config for a future month, make sure there are no existing configs for that RepricingConfig.effective_invoice_month. The following restrictions are for creating configs in the current month. This functionality is reserved for recovering from an erroneous config, and should not be used for regular business cases. The new config will not modify exports used with other configs. Changes to the config may be immediate, but may take up to 24 hours. There is a limit of ten configs for any ChannelPartner or RepricingConfig.EntitlementGranularity.entitlement, for any RepricingConfig.effective_invoice_month. The contained ChannelPartnerRepricingConfig.repricing_config value must be different from the value used in the current config for a ChannelPartner. Possible Error Codes: PERMISSION_DENIED: If the account making the request and the account being queried are different. INVALID_ARGUMENT: Missing or invalid required parameters in the request. Also displays if the updated config is for the current month or past months. NOT_FOUND: The ChannelPartnerRepricingConfig specified does not exist or is not associated with the given account. INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the updated ChannelPartnerRepricingConfig resource, otherwise returns an error.

delete(string $name, array $optParams = [])

Deletes the given ChannelPartnerRepricingConfig permanently. You can only delete configs if their RepricingConfig.effective_invoice_month is set to a date after the current month. Possible error codes: PERMISSION_DENIED: The account making the request does not own this customer. INVALID_ARGUMENT: Required request parameters are missing or invalid. FAILED_PRECONDITION: The ChannelPartnerRepricingConfig is active or in the past. NOT_FOUND: No ChannelPartnerRepricingConfig found for the name in the request.

get(string $name, array $optParams = [])

Gets information about how a Distributor modifies their bill before sending it to a ChannelPartner. Possible Error Codes: PERMISSION_DENIED: If the account making the request and the account being queried are different. NOT_FOUND: The ChannelPartnerRepricingConfig was not found. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the ChannelPartnerRepricingConfig resource, otherwise returns an error.

listAccountsChannelPartnerLinksChannelPartnerRepricingConfigs(string $parent, array $optParams = [])

Lists information about how a Reseller modifies their bill before sending it to a ChannelPartner. Possible Error Codes: PERMISSION_DENIED: If the account making the request and the account being queried are different. NOT_FOUND: The ChannelPartnerRepricingConfig specified does not exist or is not associated with the given account. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the ChannelPartnerRepricingConfig resources. The data for each resource is displayed in the ascending order of:

  • Channel Partner ID RepricingConfig.effective_invoice_month ChannelPartnerRepricingConfig.update_time If unsuccessful, returns an error.

patch(string $name, GoogleCloudChannelV1ChannelPartnerRepricingConfig $postBody, array $optParams = [])

Updates a ChannelPartnerRepricingConfig. Call this method to set modifications for a specific ChannelPartner's bill. This method overwrites the existing CustomerRepricingConfig. You can only update configs if the RepricingConfig.effective_invoice_month is a future month. To make changes to configs for the current month, use CreateChannelPartnerRepricingConfig, taking note of its restrictions. You cannot update the RepricingConfig.effective_invoice_month. When updating a config in the future: This config must already exist. Possible Error Codes: PERMISSION_DENIED: If the account making the request and the account being queried are different. INVALID_ARGUMENT: Missing or invalid required parameters in the request. Also displays if the updated config is for the current month or past months. NOT_FOUND: The ChannelPartnerRepricingConfig specified does not exist or is not associated with the given account. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the updated ChannelPartnerRepricingConfig resource, otherwise returns an error.

Details

GoogleCloudChannelV1ChannelPartnerRepricingConfig create(string $parent, GoogleCloudChannelV1ChannelPartnerRepricingConfig $postBody, array $optParams = [])

Creates a ChannelPartnerRepricingConfig. Call this method to set modifications for a specific ChannelPartner's bill. You can only create configs if the RepricingConfig.effective_invoice_month is a future month. If needed, you can create a config for the current month, with some restrictions. When creating a config for a future month, make sure there are no existing configs for that RepricingConfig.effective_invoice_month. The following restrictions are for creating configs in the current month. This functionality is reserved for recovering from an erroneous config, and should not be used for regular business cases. The new config will not modify exports used with other configs. Changes to the config may be immediate, but may take up to 24 hours. There is a limit of ten configs for any ChannelPartner or RepricingConfig.EntitlementGranularity.entitlement, for any RepricingConfig.effective_invoice_month. The contained ChannelPartnerRepricingConfig.repricing_config value must be different from the value used in the current config for a ChannelPartner. Possible Error Codes: PERMISSION_DENIED: If the account making the request and the account being queried are different. INVALID_ARGUMENT: Missing or invalid required parameters in the request. Also displays if the updated config is for the current month or past months. NOT_FOUND: The ChannelPartnerRepricingConfig specified does not exist or is not associated with the given account. INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the updated ChannelPartnerRepricingConfig resource, otherwise returns an error.

(channelPartnerRepricingConfigs.create)

Parameters

string $parent

Required. The resource name of the ChannelPartner that will receive the repricing config. Parent uses the format: accounts/{account_id}/channelPartnerLinks/{channel_partner_id}

GoogleCloudChannelV1ChannelPartnerRepricingConfig $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudChannelV1ChannelPartnerRepricingConfig

Exceptions

Exception

GoogleProtobufEmpty delete(string $name, array $optParams = [])

Deletes the given ChannelPartnerRepricingConfig permanently. You can only delete configs if their RepricingConfig.effective_invoice_month is set to a date after the current month. Possible error codes: PERMISSION_DENIED: The account making the request does not own this customer. INVALID_ARGUMENT: Required request parameters are missing or invalid. FAILED_PRECONDITION: The ChannelPartnerRepricingConfig is active or in the past. NOT_FOUND: No ChannelPartnerRepricingConfig found for the name in the request.

(channelPartnerRepricingConfigs.delete)

Parameters

string $name

Required. The resource name of the channel partner repricing config rule to delete.

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

GoogleCloudChannelV1ChannelPartnerRepricingConfig get(string $name, array $optParams = [])

Gets information about how a Distributor modifies their bill before sending it to a ChannelPartner. Possible Error Codes: PERMISSION_DENIED: If the account making the request and the account being queried are different. NOT_FOUND: The ChannelPartnerRepricingConfig was not found. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the ChannelPartnerRepricingConfig resource, otherwise returns an error.

(channelPartnerRepricingConfigs.get)

Parameters

string $name

Required. The resource name of the ChannelPartnerRepricingConfig Format: accounts/{account_id}/channelPartnerLin ks/{channel_partner_id}/channelPartnerRepricingConfigs/{id}.

array $optParams

Optional parameters.

Return Value

GoogleCloudChannelV1ChannelPartnerRepricingConfig

Exceptions

Exception

GoogleCloudChannelV1ListChannelPartnerRepricingConfigsResponse listAccountsChannelPartnerLinksChannelPartnerRepricingConfigs(string $parent, array $optParams = [])

Lists information about how a Reseller modifies their bill before sending it to a ChannelPartner. Possible Error Codes: PERMISSION_DENIED: If the account making the request and the account being queried are different. NOT_FOUND: The ChannelPartnerRepricingConfig specified does not exist or is not associated with the given account. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the ChannelPartnerRepricingConfig resources. The data for each resource is displayed in the ascending order of:

  • Channel Partner ID RepricingConfig.effective_invoice_month ChannelPartnerRepricingConfig.update_time If unsuccessful, returns an error.

(channelPartnerRepricingConfigs.listAccountsChannelPartnerLinksChannelPartner RepricingConfigs)

Parameters

string $parent

Required. The resource name of the account's ChannelPartnerLink. Parent uses the format: accounts/{account_id}/channelPartnerLinks/{channel_partner_id}. Supports accounts/{account_id}/channelPartnerLinks/- to retrieve configs for all channel partners.

array $optParams

Optional parameters.

Return Value

GoogleCloudChannelV1ListChannelPartnerRepricingConfigsResponse

Exceptions

Exception

GoogleCloudChannelV1ChannelPartnerRepricingConfig patch(string $name, GoogleCloudChannelV1ChannelPartnerRepricingConfig $postBody, array $optParams = [])

Updates a ChannelPartnerRepricingConfig. Call this method to set modifications for a specific ChannelPartner's bill. This method overwrites the existing CustomerRepricingConfig. You can only update configs if the RepricingConfig.effective_invoice_month is a future month. To make changes to configs for the current month, use CreateChannelPartnerRepricingConfig, taking note of its restrictions. You cannot update the RepricingConfig.effective_invoice_month. When updating a config in the future: This config must already exist. Possible Error Codes: PERMISSION_DENIED: If the account making the request and the account being queried are different. INVALID_ARGUMENT: Missing or invalid required parameters in the request. Also displays if the updated config is for the current month or past months. NOT_FOUND: The ChannelPartnerRepricingConfig specified does not exist or is not associated with the given account. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the updated ChannelPartnerRepricingConfig resource, otherwise returns an error.

(channelPartnerRepricingConfigs.patch)

Parameters

string $name

Output only. Resource name of the ChannelPartnerRepricingConfig. Format: accounts/{account_id}/channelPartnerLi nks/{channel_partner_id}/channelPartnerRepricingConfigs/{id}.

GoogleCloudChannelV1ChannelPartnerRepricingConfig $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudChannelV1ChannelPartnerRepricingConfig

Exceptions

Exception