Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CloudCommerceProcurement

import { CloudCommerceProcurement } from "https://googleapis.deno.dev/v1/cloudcommerceprocurement:v1.ts";

Partner API for the Cloud Commerce Procurement Service.

class CloudCommerceProcurement {
constructor(client?: CredentialsClient, baseUrl?: string);
async providersAccountsApprove(name: string, req: ApproveAccountRequest): Promise<Empty>;
async providersAccountsGet(name: string, opts?: ProvidersAccountsGetOptions): Promise<Account>;
async providersAccountsList(parent: string, opts?: ProvidersAccountsListOptions): Promise<ListAccountsResponse>;
async providersAccountsReject(name: string, req: RejectAccountRequest): Promise<Empty>;
async providersAccountsReset(name: string, req: ResetAccountRequest): Promise<Empty>;
async providersEntitlementsApprove(name: string, req: ApproveEntitlementRequest): Promise<Empty>;
async providersEntitlementsApprovePlanChange(name: string, req: ApproveEntitlementPlanChangeRequest): Promise<Empty>;
async providersEntitlementsGet(name: string): Promise<Entitlement>;
async providersEntitlementsList(parent: string, opts?: ProvidersEntitlementsListOptions): Promise<ListEntitlementsResponse>;
async providersEntitlementsPatch(
name: string,
): Promise<Entitlement>;
async providersEntitlementsReject(name: string, req: RejectEntitlementRequest): Promise<Empty>;
async providersEntitlementsRejectPlanChange(name: string, req: RejectEntitlementPlanChangeRequest): Promise<Empty>;
async providersEntitlementsSuspend(name: string, req: SuspendEntitlementRequest): Promise<Empty>;
}

§Constructors

§
new CloudCommerceProcurement(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
providersAccountsApprove(name: string, req: ApproveAccountRequest): Promise<Empty>
[src]

Grants an approval on an Account.

@param name

Required. The resource name of the account, with the format providers/{providerId}/accounts/{accountId}.

§
providersAccountsGet(name: string, opts?: ProvidersAccountsGetOptions): Promise<Account>
[src]

Gets a requested Account resource.

@param name

Required. The name of the account to retrieve.

§
providersAccountsList(parent: string, opts?: ProvidersAccountsListOptions): Promise<ListAccountsResponse>
[src]

Lists Accounts that the provider has access to.

@param parent

Required. The parent resource name.

§
providersAccountsReject(name: string, req: RejectAccountRequest): Promise<Empty>
[src]

Rejects an approval on an Account.

@param name

Required. The resource name of the account.

§
providersAccountsReset(name: string, req: ResetAccountRequest): Promise<Empty>
[src]

Resets an Account and cancels all associated Entitlements. Partner can only reset accounts they own rather than customer accounts.

@param name

Required. The resource name of the account.

§
providersEntitlementsApprove(name: string, req: ApproveEntitlementRequest): Promise<Empty>
[src]

Approves an entitlement that is in the EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED state. This method is invoked by the provider to approve the creation of the entitlement resource.

@param name

Required. The resource name of the entitlement, with the format providers/{providerId}/entitlements/{entitlementId}.

§
providersEntitlementsApprovePlanChange(name: string, req: ApproveEntitlementPlanChangeRequest): Promise<Empty>
[src]

Approves an entitlement plan change that is in the EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state. This method is invoked by the provider to approve the plan change on the entitlement resource.

@param name

Required. The resource name of the entitlement.

§
providersEntitlementsGet(name: string): Promise<Entitlement>
[src]

Gets a requested Entitlement resource.

@param name

Required. The name of the entitlement to retrieve.

§
providersEntitlementsList(parent: string, opts?: ProvidersEntitlementsListOptions): Promise<ListEntitlementsResponse>
[src]

Lists Entitlements for which the provider has read access.

@param parent

Required. The parent resource name.

§
providersEntitlementsPatch(name: string, req: Entitlement, opts?: ProvidersEntitlementsPatchOptions): Promise<Entitlement>
[src]

Updates an existing Entitlement.

@param name

Required. The name of the entitlement to update.

§
providersEntitlementsReject(name: string, req: RejectEntitlementRequest): Promise<Empty>
[src]

Rejects an entitlement that is in the EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED state. This method is invoked by the provider to reject the creation of the entitlement resource.

@param name

Required. The resource name of the entitlement.

§
providersEntitlementsRejectPlanChange(name: string, req: RejectEntitlementPlanChangeRequest): Promise<Empty>
[src]

Rejects an entitlement plan change that is in the EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state. This method is invoked by the provider to reject the plan change on the entitlement resource.

@param name

Required. The resource name of the entitlement.

§
providersEntitlementsSuspend(name: string, req: SuspendEntitlementRequest): Promise<Empty>
[src]

Requests suspension of an active Entitlement. This is not yet supported.

@param name

Required. The name of the entitlement to suspend.