Constructor
new CloudChannelServiceClient(optionsopt)
Construct an instance of CloudChannelServiceClient.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
The configuration object. The options accepted by the constructor are described in detail in this document. The common options are: Properties
|
Members
apiEndpoint
The DNS address for this API service - same as servicePath(), exists for compatibility reasons.
port
The port for this API service.
scopes
The scopes needed to make gRPC calls for every method defined in this service.
servicePath
The DNS address for this API service.
Methods
activateEntitlement(request, optionsopt) → {Promise}
Activates a previously suspended entitlement. The entitlement must be in a suspended state for it to be activated. Entitlements suspended for pending ToS acceptance can't be activated using this method. An entitlement activation is a long-running operation and can result in updates to the state of the customer entitlement.
Possible Error Codes:
- PERMISSION_DENIED: If the customer doesn't belong to the reseller or if the reseller account making the request and reseller account being queried for are different.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
- NOT_FOUND: Entitlement resource not found.
- SUSPENSION_NOT_RESELLER_INITIATED: Can't activate an entitlement that is pending TOS acceptance. Only reseller initiated suspensions can be activated.
- NOT_SUSPENDED: Can't activate entitlements that are already in ACTIVE state. Can only activate suspended entitlements.
- INTERNAL: Any non-user error related to a technical issue in the backend. In this case, contact Cloud Channel support.
- UNKNOWN: Any non-user error related to a technical issue in the backend. In this case, contact Cloud Channel support.
Return Value:
Long Running Operation ID.
To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const [operation] = await client.activateEntitlement(request);
const [response] = await operation.promise();
cancelEntitlement(request, optionsopt) → {Promise}
Cancels a previously fulfilled entitlement. An entitlement cancellation is a long-running operation.
Possible Error Codes:
- PERMISSION_DENIED: If the customer doesn't belong to the reseller or if the reseller account making the request and reseller account being queried for are different.
- FAILED_PRECONDITION: If there are any Google Cloud projects linked to the Google Cloud entitlement's Cloud Billing subaccount.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
- NOT_FOUND: Entitlement resource not found.
- DELETION_TYPE_NOT_ALLOWED: Cancel is only allowed for Google Workspace add-ons or entitlements for Google Cloud's development platform.
- INTERNAL: Any non-user error related to a technical issue in the backend. In this case, contact Cloud Channel support.
- UNKNOWN: Any non-user error related to a technical issue in the backend. In this case, contact Cloud Channel support.
Return Value:
Long Running Operation ID.
To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The response will contain google.protobuf.Empty on success. The Operation metadata will contain an instance of OperationMetadata.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const [operation] = await client.cancelEntitlement(request);
const [response] = await operation.promise();
changeOffer(request, optionsopt) → {Promise}
Updates the Offer for an existing customer entitlement.
An entitlement update is a long-running operation and results in updates to the entitlement as a result of fulfillment.
Possible Error Codes:
- PERMISSION_DENIED: If the customer doesn't belong to the reseller.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
- NOT_FOUND: Offer or Entitlement resource not found.
- INTERNAL: Any non-user error related to a technical issue in the backend. In this case, contact Cloud Channel support.
- UNKNOWN: Any non-user error related to a technical issue in the backend. In this case, contact Cloud Channel support.
Return Value:
Long Running Operation ID.
To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const [operation] = await client.changeOffer(request);
const [response] = await operation.promise();
changeParameters(request, optionsopt) → {Promise}
Change parameters of the entitlement
An entitlement parameters update is a long-running operation and results in updates to the entitlement as a result of fulfillment.
Possible Error Codes:
- PERMISSION_DENIED: If the customer doesn't belong to the reseller.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request. For example, if the number of seats being changed to is greater than the allowed number of max seats for the resource. Or decreasing seats for a commitment based plan.
- NOT_FOUND: Entitlement resource not found.
- INTERNAL: Any non-user error related to a technical issue in the backend. In this case, contact Cloud Channel support.
- UNKNOWN: Any non-user error related to a technical issue in the backend. In this case, contact Cloud Channel support.
Return Value:
Long Running Operation ID.
To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const [operation] = await client.changeParameters(request);
const [response] = await operation.promise();
changeRenewalSettings(request, optionsopt) → {Promise}
Updates the renewal settings for an existing customer entitlement.
An entitlement update is a long-running operation and results in updates to the entitlement as a result of fulfillment.
Possible Error Codes:
- PERMISSION_DENIED: If the customer doesn't belong to the reseller.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
- NOT_FOUND: Entitlement resource not found.
- NOT_COMMITMENT_PLAN: Renewal Settings are only applicable for a commitment plan. Can't enable or disable renewal for non-commitment plans.
- INTERNAL: Any non user error related to a technical issue in the backend. In this case, contact Cloud Channel support.
- UNKNOWN: Any non user error related to a technical issue in the backend. In this case, contact Cloud Channel support.
Return Value:
Long Running Operation ID.
To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const [operation] = await client.changeRenewalSettings(request);
const [response] = await operation.promise();
(async) checkActivateEntitlementProgress(name) → {Promise}
Check the status of the long running operation returned by activateEntitlement().
Parameters:
| Name | Type | Description |
|---|---|---|
name |
String |
The operation name that will be passed. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const decodedOperation = await checkActivateEntitlementProgress(name);
console.log(decodedOperation.result);
console.log(decodedOperation.done);
console.log(decodedOperation.metadata);
(async) checkCancelEntitlementProgress(name) → {Promise}
Check the status of the long running operation returned by cancelEntitlement().
Parameters:
| Name | Type | Description |
|---|---|---|
name |
String |
The operation name that will be passed. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const decodedOperation = await checkCancelEntitlementProgress(name);
console.log(decodedOperation.result);
console.log(decodedOperation.done);
console.log(decodedOperation.metadata);
(async) checkChangeOfferProgress(name) → {Promise}
Check the status of the long running operation returned by changeOffer().
Parameters:
| Name | Type | Description |
|---|---|---|
name |
String |
The operation name that will be passed. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const decodedOperation = await checkChangeOfferProgress(name);
console.log(decodedOperation.result);
console.log(decodedOperation.done);
console.log(decodedOperation.metadata);
(async) checkChangeParametersProgress(name) → {Promise}
Check the status of the long running operation returned by changeParameters().
Parameters:
| Name | Type | Description |
|---|---|---|
name |
String |
The operation name that will be passed. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const decodedOperation = await checkChangeParametersProgress(name);
console.log(decodedOperation.result);
console.log(decodedOperation.done);
console.log(decodedOperation.metadata);
(async) checkChangeRenewalSettingsProgress(name) → {Promise}
Check the status of the long running operation returned by changeRenewalSettings().
Parameters:
| Name | Type | Description |
|---|---|---|
name |
String |
The operation name that will be passed. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const decodedOperation = await checkChangeRenewalSettingsProgress(name);
console.log(decodedOperation.result);
console.log(decodedOperation.done);
console.log(decodedOperation.metadata);
checkCloudIdentityAccountsExist(request, optionsopt) → {Promise}
Confirms the existence of Cloud Identity accounts, based on the domain and whether the Cloud Identity accounts are owned by the reseller.
Possible Error Codes:
- PERMISSION_DENIED: If the reseller account making the request and the reseller account being queried for are different.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
- INVALID_VALUE: Invalid domain value in the request.
- NOT_FOUND: If there is no CloudIdentityCustomerAccount customer for the domain specified in the request.
Return Value:
List of CloudIdentityCustomerAccount resources if any exist for
the domain, otherwise an error is returned.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
(async) checkCreateEntitlementProgress(name) → {Promise}
Check the status of the long running operation returned by createEntitlement().
Parameters:
| Name | Type | Description |
|---|---|---|
name |
String |
The operation name that will be passed. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const decodedOperation = await checkCreateEntitlementProgress(name);
console.log(decodedOperation.result);
console.log(decodedOperation.done);
console.log(decodedOperation.metadata);
(async) checkProvisionCloudIdentityProgress(name) → {Promise}
Check the status of the long running operation returned by provisionCloudIdentity().
Parameters:
| Name | Type | Description |
|---|---|---|
name |
String |
The operation name that will be passed. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const decodedOperation = await checkProvisionCloudIdentityProgress(name);
console.log(decodedOperation.result);
console.log(decodedOperation.done);
console.log(decodedOperation.metadata);
(async) checkStartPaidServiceProgress(name) → {Promise}
Check the status of the long running operation returned by startPaidService().
Parameters:
| Name | Type | Description |
|---|---|---|
name |
String |
The operation name that will be passed. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const decodedOperation = await checkStartPaidServiceProgress(name);
console.log(decodedOperation.result);
console.log(decodedOperation.done);
console.log(decodedOperation.metadata);
(async) checkSuspendEntitlementProgress(name) → {Promise}
Check the status of the long running operation returned by suspendEntitlement().
Parameters:
| Name | Type | Description |
|---|---|---|
name |
String |
The operation name that will be passed. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const decodedOperation = await checkSuspendEntitlementProgress(name);
console.log(decodedOperation.result);
console.log(decodedOperation.done);
console.log(decodedOperation.metadata);
(async) checkTransferEntitlementsProgress(name) → {Promise}
Check the status of the long running operation returned by transferEntitlements().
Parameters:
| Name | Type | Description |
|---|---|---|
name |
String |
The operation name that will be passed. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const decodedOperation = await checkTransferEntitlementsProgress(name);
console.log(decodedOperation.result);
console.log(decodedOperation.done);
console.log(decodedOperation.metadata);
(async) checkTransferEntitlementsToGoogleProgress(name) → {Promise}
Check the status of the long running operation returned by transferEntitlementsToGoogle().
Parameters:
| Name | Type | Description |
|---|---|---|
name |
String |
The operation name that will be passed. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const decodedOperation = await checkTransferEntitlementsToGoogleProgress(name);
console.log(decodedOperation.result);
console.log(decodedOperation.done);
console.log(decodedOperation.metadata);
close() → {Promise}
Terminate the gRPC channel and close the client.
The client will no longer be usable and all future behavior is undefined.
Returns:
| Type | Description |
|---|---|
| Promise |
A promise that resolves when the client is closed. |
createChannelPartnerLink(request, optionsopt) → {Promise}
Initiates a channel partner link between a distributor and a reseller or between resellers in an n-tier reseller channel. To accept the invite, the invited partner should follow the invite_link_uri provided in the response. If the link creation is accepted, a valid link is set up between the two involved parties. To call this method, you must be a distributor.
Possible Error Codes:
- PERMISSION_DENIED: If the reseller account making the request and the reseller account being queried for are different.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
- ALREADY_EXISTS: If the ChannelPartnerLink sent in the request already exists.
- NOT_FOUND: If no Cloud Identity customer exists for domain provided.
- INTERNAL: Any non-user error related to a technical issue in the backend. In this case, contact Cloud Channel support.
- UNKNOWN: Any non-user error related to a technical issue in the backend. In this case, contact Cloud Channel support.
Return Value:
Newly created ChannelPartnerLink resource if successful,
otherwise error is returned.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
createCustomer(request, optionsopt) → {Promise}
Creates a new Customer resource under the reseller or distributor account.
Possible Error Codes:
- PERMISSION_DENIED: If the reseller account making the request and the reseller account being queried for are different.
- INVALID_ARGUMENT:
- Missing or invalid required parameters in the request.
- Domain field value doesn't match the domain specified in primary email.
Return Value:
If successful, the newly created Customer resource, otherwise
returns an error.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
createEntitlement(request, optionsopt) → {Promise}
Creates an entitlement for a customer.
Possible Error Codes:
- PERMISSION_DENIED: If the customer doesn't belong to the reseller.
- INVALID_ARGUMENT:
- Missing or invalid required parameters in the request.
- Cannot purchase an entitlement if there is already an entitlement for customer, for a SKU from the same product family.
- INVALID_VALUE: Offer passed in isn't valid. Make sure OfferId is valid. If it is valid, then contact Google Channel support for further troubleshooting.
- NOT_FOUND: If the customer or offer resource is not found for the reseller.
- ALREADY_EXISTS: This failure can happen in the following cases:
- If the SKU has been already purchased for the customer.
- If the customer's primary email already exists. In this case retry after changing the customer's primary contact email.
- CONDITION_NOT_MET or FAILED_PRECONDITION: This
failure can happen in the following cases:
- Purchasing a SKU that requires domain verification and the domain has not been verified.
- Purchasing an Add-On SKU like Vault or Drive without purchasing the pre-requisite SKU, such as Google Workspace Business Starter.
- Applicable only for developer accounts: reseller and resold
domain. Must meet the following domain naming requirements:
- Domain names must start with goog-test.
- Resold domain names must include the reseller domain.
- INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel Support in this case.
- UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel Support in this case.
Return Value:
Long Running Operation ID.
To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const [operation] = await client.createEntitlement(request);
const [response] = await operation.promise();
customerPath(account, customer) → {string}
Return a fully-qualified customer resource name string.
Parameters:
| Name | Type | Description |
|---|---|---|
account |
string | |
customer |
string |
Returns:
| Type | Description |
|---|---|
| string |
Resource name string. |
deleteCustomer(request, optionsopt) → {Promise}
Deletes the given Customer permanently and irreversibly.
Possible Error Codes:
- PERMISSION_DENIED: If the account making the request does not own this customer.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
- FAILED_PRECONDITION: If the customer has existing entitlements.
- NOT_FOUND: No Customer resource found for the name specified in the request.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
entitlementPath(account, customer, entitlement) → {string}
Return a fully-qualified entitlement resource name string.
Parameters:
| Name | Type | Description |
|---|---|---|
account |
string | |
customer |
string | |
entitlement |
string |
Returns:
| Type | Description |
|---|---|
| string |
Resource name string. |
getChannelPartnerLink(request, optionsopt) → {Promise}
Returns a requested ChannelPartnerLink resource. To call this method, you must be a distributor.
Possible Error Codes:
- PERMISSION_DENIED: If the reseller account making the request and the reseller account being queried for are different.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
- NOT_FOUND: ChannelPartnerLink resource not found. Results due invalid channel partner link name.
Return Value:
ChannelPartnerLink resource if found, otherwise returns an error.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
getCustomer(request, optionsopt) → {Promise}
Returns a requested Customer resource.
Possible Error Codes:
- PERMISSION_DENIED: If the reseller account making the request and the reseller account being queried for are different.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
- NOT_FOUND: If the customer resource doesn't exist. Usually the result of an invalid name parameter.
Return Value:
Customer resource if found, error otherwise.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
getEntitlement(request, optionsopt) → {Promise}
Returns a requested Entitlement resource.
Possible Error Codes:
- PERMISSION_DENIED: If the customer doesn't belong to the reseller.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
- NOT_FOUND: If the entitlement is not found for the customer.
Return Value:
If found, the requested Entitlement resource, otherwise returns
an error.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
getProjectId() → {Promise}
Return the project ID used by this class.
Returns:
| Type | Description |
|---|---|
| Promise |
A promise that resolves to string containing the project ID. |
initialize() → {Promise}
Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.
You can await on this method if you want to make sure the client is initialized.
Returns:
| Type | Description |
|---|---|
| Promise |
A promise that resolves to an authenticated service stub. |
listChannelPartnerLinks(request, optionsopt) → {Promise}
List ChannelPartnerLinks belonging to a distributor. To call this method, you must be a distributor.
Possible Error Codes:
- PERMISSION_DENIED: If the reseller account making the request and the reseller account being queried for are different.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
Return Value:
If successful, returns the list of ChannelPartnerLink resources
for the distributor account, otherwise returns an error.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
listChannelPartnerLinksAsync(request, optionsopt) → {Object}
Equivalent to listChannelPartnerLinks, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing ChannelPartnerLink. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
const iterable = client.listChannelPartnerLinksAsync(request);
for await (const response of iterable) {
// process response
}
listChannelPartnerLinksStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Stream |
An object stream which emits an object representing ChannelPartnerLink on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listCustomers(request, optionsopt) → {Promise}
List downstream Customers.
Possible Error Codes:
- PERMISSION_DENIED: If the reseller account making the request and the reseller account being queried for are different.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
Return Value:
List of Customers pertaining to the reseller or empty list if
there are none.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
listCustomersAsync(request, optionsopt) → {Object}
Equivalent to listCustomers, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing Customer. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
const iterable = client.listCustomersAsync(request);
for await (const response of iterable) {
// process response
}
listCustomersStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Stream |
An object stream which emits an object representing Customer on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listEntitlements(request, optionsopt) → {Promise}
List Entitlements belonging to a customer.
Possible Error Codes:
- PERMISSION_DENIED: If the customer doesn't belong to the reseller.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
Return Value:
List of Entitlements belonging to the customer, or empty list if
there are none.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
listEntitlementsAsync(request, optionsopt) → {Object}
Equivalent to listEntitlements, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing Entitlement. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
const iterable = client.listEntitlementsAsync(request);
for await (const response of iterable) {
// process response
}
listEntitlementsStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Stream |
An object stream which emits an object representing Entitlement on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listOffers(request, optionsopt) → {Promise}
Lists the Offers the reseller can sell.
Possible Error Codes:
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
listOffersAsync(request, optionsopt) → {Object}
Equivalent to listOffers, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing Offer. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
const iterable = client.listOffersAsync(request);
for await (const response of iterable) {
// process response
}
listOffersStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Stream |
An object stream which emits an object representing Offer on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listProducts(request, optionsopt) → {Promise}
Lists the Products the reseller is authorized to sell.
Possible Error Codes:
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
listProductsAsync(request, optionsopt) → {Object}
Equivalent to listProducts, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing Product. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
const iterable = client.listProductsAsync(request);
for await (const response of iterable) {
// process response
}
listProductsStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Stream |
An object stream which emits an object representing Product on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listPurchasableOffers(request, optionsopt) → {Promise}
Lists the Purchasable Offers for the following cases:
- Offers that can be newly purchased for a customer
- Offers that can be changed to, for an entitlement.
Possible Error Codes:
- PERMISSION_DENIED: If the customer doesn't belong to the reseller
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
listPurchasableOffersAsync(request, optionsopt) → {Object}
Equivalent to listPurchasableOffers, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing PurchasableOffer. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
const iterable = client.listPurchasableOffersAsync(request);
for await (const response of iterable) {
// process response
}
listPurchasableOffersStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Stream |
An object stream which emits an object representing PurchasableOffer on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listPurchasableSkus(request, optionsopt) → {Promise}
Lists the Purchasable SKUs for following cases:
- SKUs that can be newly purchased for a customer
- SKUs that can be upgraded/downgraded to, for an entitlement.
Possible Error Codes:
- PERMISSION_DENIED: If the customer doesn't belong to the reseller
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
listPurchasableSkusAsync(request, optionsopt) → {Object}
Equivalent to listPurchasableSkus, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing PurchasableSku. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
const iterable = client.listPurchasableSkusAsync(request);
for await (const response of iterable) {
// process response
}
listPurchasableSkusStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Stream |
An object stream which emits an object representing PurchasableSku on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listSkus(request, optionsopt) → {Promise}
Lists the SKUs for a product the reseller is authorized to sell.
Possible Error Codes:
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
listSkusAsync(request, optionsopt) → {Object}
Equivalent to listSkus, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing Sku. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
const iterable = client.listSkusAsync(request);
for await (const response of iterable) {
// process response
}
listSkusStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Stream |
An object stream which emits an object representing Sku on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listTransferableOffers(request, optionsopt) → {Promise}
List TransferableOffers of a customer based on Cloud Identity ID or Customer Name in the request.
This method is used when a reseller gets the entitlement information of a customer that is not owned. The reseller should provide the customer's Cloud Identity ID or Customer Name.
Possible Error Codes:
- PERMISSION_DENIED, due to one of the following reasons: (a) If the customer doesn't belong to the reseller and no auth token or invalid auth token is supplied. (b) If the reseller account making the request and the reseller account being queried for are different.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
Return Value: List of TransferableOffer for the given customer and SKU.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
listTransferableOffersAsync(request, optionsopt) → {Object}
Equivalent to listTransferableOffers, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing TransferableOffer. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
const iterable = client.listTransferableOffersAsync(request);
for await (const response of iterable) {
// process response
}
listTransferableOffersStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Stream |
An object stream which emits an object representing TransferableOffer on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listTransferableSkus(request, optionsopt) → {Promise}
List TransferableSkus of a customer based on Cloud Identity ID or Customer Name in the request.
This method is used when a reseller lists the entitlements information of a customer that is not owned. The reseller should provide the customer's Cloud Identity ID or Customer Name.
Possible Error Codes:
- PERMISSION_DENIED, due to one of the following reasons:
- If the customer doesn't belong to the reseller and no auth token, or an invalid auth token is supplied.
- If the reseller account making the request and the reseller account being queried for are different.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
Return Value:
List of TransferableSku for the given customer.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
listTransferableSkusAsync(request, optionsopt) → {Object}
Equivalent to listTransferableSkus, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing TransferableSku. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
const iterable = client.listTransferableSkusAsync(request);
for await (const response of iterable) {
// process response
}
listTransferableSkusStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Stream |
An object stream which emits an object representing TransferableSku on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
matchAccountFromCustomerName(customerName) → {string}
Parse the account from Customer resource.
Parameters:
| Name | Type | Description |
|---|---|---|
customerName |
string |
A fully-qualified path representing Customer resource. |
Returns:
| Type | Description |
|---|---|
| string |
A string representing the account. |
matchAccountFromEntitlementName(entitlementName) → {string}
Parse the account from Entitlement resource.
Parameters:
| Name | Type | Description |
|---|---|---|
entitlementName |
string |
A fully-qualified path representing Entitlement resource. |
Returns:
| Type | Description |
|---|---|
| string |
A string representing the account. |
matchAccountFromOfferName(offerName) → {string}
Parse the account from Offer resource.
Parameters:
| Name | Type | Description |
|---|---|---|
offerName |
string |
A fully-qualified path representing Offer resource. |
Returns:
| Type | Description |
|---|---|
| string |
A string representing the account. |
matchCustomerFromCustomerName(customerName) → {string}
Parse the customer from Customer resource.
Parameters:
| Name | Type | Description |
|---|---|---|
customerName |
string |
A fully-qualified path representing Customer resource. |
Returns:
| Type | Description |
|---|---|
| string |
A string representing the customer. |
matchCustomerFromEntitlementName(entitlementName) → {string}
Parse the customer from Entitlement resource.
Parameters:
| Name | Type | Description |
|---|---|---|
entitlementName |
string |
A fully-qualified path representing Entitlement resource. |
Returns:
| Type | Description |
|---|---|
| string |
A string representing the customer. |
matchEntitlementFromEntitlementName(entitlementName) → {string}
Parse the entitlement from Entitlement resource.
Parameters:
| Name | Type | Description |
|---|---|---|
entitlementName |
string |
A fully-qualified path representing Entitlement resource. |
Returns:
| Type | Description |
|---|---|
| string |
A string representing the entitlement. |
matchOfferFromOfferName(offerName) → {string}
Parse the offer from Offer resource.
Parameters:
| Name | Type | Description |
|---|---|---|
offerName |
string |
A fully-qualified path representing Offer resource. |
Returns:
| Type | Description |
|---|---|
| string |
A string representing the offer. |
matchProductFromProductName(productName) → {string}
Parse the product from Product resource.
Parameters:
| Name | Type | Description |
|---|---|---|
productName |
string |
A fully-qualified path representing Product resource. |
Returns:
| Type | Description |
|---|---|
| string |
A string representing the product. |
matchProductFromSkuName(skuName) → {string}
Parse the product from Sku resource.
Parameters:
| Name | Type | Description |
|---|---|---|
skuName |
string |
A fully-qualified path representing Sku resource. |
Returns:
| Type | Description |
|---|---|
| string |
A string representing the product. |
matchSkuFromSkuName(skuName) → {string}
Parse the sku from Sku resource.
Parameters:
| Name | Type | Description |
|---|---|---|
skuName |
string |
A fully-qualified path representing Sku resource. |
Returns:
| Type | Description |
|---|---|
| string |
A string representing the sku. |
offerPath(account, offer) → {string}
Return a fully-qualified offer resource name string.
Parameters:
| Name | Type | Description |
|---|---|---|
account |
string | |
offer |
string |
Returns:
| Type | Description |
|---|---|
| string |
Resource name string. |
productPath(product) → {string}
Return a fully-qualified product resource name string.
Parameters:
| Name | Type | Description |
|---|---|---|
product |
string |
Returns:
| Type | Description |
|---|---|
| string |
Resource name string. |
provisionCloudIdentity(request, optionsopt) → {Promise}
Creates a Cloud Identity for the given customer using the customer's information or the information provided here, if present.
Possible Error Codes:
- PERMISSION_DENIED: If the customer doesn't belong to the reseller.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
- NOT_FOUND: If the customer is not found for the reseller.
- ALREADY_EXISTS: If the customer's primary email already exists. In this case, retry after changing the customer's primary contact email.
- INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support in this case.
- UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support in this case.
Return Value:
Long Running Operation ID.
To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const [operation] = await client.provisionCloudIdentity(request);
const [response] = await operation.promise();
skuPath(product, sku) → {string}
Return a fully-qualified sku resource name string.
Parameters:
| Name | Type | Description |
|---|---|---|
product |
string | |
sku |
string |
Returns:
| Type | Description |
|---|---|
| string |
Resource name string. |
startPaidService(request, optionsopt) → {Promise}
Starts paid service for a trial entitlement.
Starts paid service for a trial entitlement immediately. This method is only applicable if a plan has already been set up for a trial entitlement but has some trial days remaining.
Possible Error Codes:
- PERMISSION_DENIED: If the customer doesn't belong to the reseller.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
- NOT_FOUND: Entitlement resource not found.
- FAILED_PRECONDITION/NOT_IN_TRIAL: This method only works for entitlement on trial plans.
- INTERNAL: Any non-user error related to a technical issue in the backend. In this case, contact Cloud Channel support.
- UNKNOWN: Any non-user error related to a technical issue in the backend. In this case, contact Cloud Channel support.
Return Value:
Long Running Operation ID.
To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const [operation] = await client.startPaidService(request);
const [response] = await operation.promise();
suspendEntitlement(request, optionsopt) → {Promise}
Suspends a previously fulfilled entitlement. An entitlement suspension is a long-running operation.
Possible Error Codes:
- PERMISSION_DENIED: If the customer doesn't belong to the reseller.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
- NOT_FOUND: Entitlement resource not found.
- NOT_ACTIVE: Entitlement is not active.
- INTERNAL: Any non-user error related to a technical issue in the backend. In this case, contact Cloud Channel support.
- UNKNOWN: Any non-user error related to a technical issue in the backend. In this case, contact Cloud Channel support.
Return Value:
Long Running Operation ID.
To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const [operation] = await client.suspendEntitlement(request);
const [response] = await operation.promise();
transferEntitlements(request, optionsopt) → {Promise}
Transfers customer entitlements to new reseller.
Possible Error Codes:
- PERMISSION_DENIED: If the customer doesn't belong to the reseller.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
- NOT_FOUND: If the customer or offer resource is not found for the reseller.
- ALREADY_EXISTS: If the SKU has been already transferred for the customer.
-
CONDITION_NOT_MET or FAILED_PRECONDITION: This failure can happen in the
following cases:
- Transferring a SKU that requires domain verification and the domain has not been verified.
- Transferring an Add-On SKU like Vault or Drive without transferring the pre-requisite SKU, such as G Suite Basic
- Applicable only for
developer accounts: reseller and resold domain must follow the domain
naming convention as follows:
- Domain names must start with goog-test.
- Resold domain names must include the reseller domain.
- All transferring entitlements must be specified.
- INTERNAL: Any non-user error related to a technical issue in the backend. Please contact Cloud Channel Support in this case.
- UNKNOWN: Any non-user error related to a technical issue in the backend. Please contact Cloud Channel Support in this case.
Return Value:
Long Running Operation ID.
To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const [operation] = await client.transferEntitlements(request);
const [response] = await operation.promise();
transferEntitlementsToGoogle(request, optionsopt) → {Promise}
Transfers customer entitlements from current reseller to Google.
Possible Error Codes:
- PERMISSION_DENIED: If the customer doesn't belong to the reseller.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
- NOT_FOUND: If the customer or offer resource is not found for the reseller.
- ALREADY_EXISTS: If the SKU has been already transferred for the customer.
- CONDITION_NOT_MET or FAILED_PRECONDITION: This failure can happen in
the following cases:
- Transferring a SKU that requires domain verification and the domain has not been verified.
- Transferring an Add-On SKU like Vault or Drive without purchasing the pre-requisite SKU, such as G Suite Basic
- Applicable only for
developer accounts: reseller and resold domain must follow the domain
naming convention as follows:
- Domain names must start with goog-test.
- Resold domain names must include the reseller domain.
- INTERNAL: Any non-user error related to a technical issue in the backend. Please contact Cloud Channel Support in this case.
- UNKNOWN: Any non-user error related to a technical issue in the backend. Please contact Cloud Channel Support in this case.
Return Value:
Long Running Operation ID.
To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The response will contain google.protobuf.Empty on success. The Operation metadata will contain an instance of OperationMetadata.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
Example
const [operation] = await client.transferEntitlementsToGoogle(request);
const [response] = await operation.promise();
updateChannelPartnerLink(request, optionsopt) → {Promise}
Updates a channel partner link. A distributor calls this method to change a link's status. For example, suspend a partner link. To call this method, you must be a distributor.
Possible Error Codes:
- PERMISSION_DENIED: If the reseller account making the request and the reseller account being queried for are different.
- INVALID_ARGUMENT:
- Missing or invalid required parameters in the request.
- Updating link state from invited to active or suspended.
- Sending reseller_cloud_identity_id, invite_url or name in update mask.
- NOT_FOUND: ChannelPartnerLink resource not found.
- INTERNAL: Any non-user error related to a technical issue in the backend. In this case, contact Cloud Channel support.
- UNKNOWN: Any non-user error related to a technical issue in the backend. In this case, contact Cloud Channel support.
Return Value:
If successful, the updated ChannelPartnerLink resource, otherwise
returns an error.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|
updateCustomer(request, optionsopt) → {Promise}
Updates an existing Customer resource belonging to the reseller or distributor.
Possible Error Codes:
- PERMISSION_DENIED: If the reseller account making the request and the reseller account being queried for are different.
- INVALID_ARGUMENT: Missing or invalid required parameters in the request.
- NOT_FOUND: No Customer resource found for the name specified in the request.
Return Value:
If successful, the updated Customer resource, otherwise returns
an error.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
| Type | Description |
|---|---|
| Promise |
|