Class protos.google.cloud.commerce.consumer.procurement.v1.LicenseManagementService (0.5.0)

Represents a LicenseManagementService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.commerce.consumer.procurement.v1.LicenseManagementService

Package

@google-cloud/procurement

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new LicenseManagementService service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

assign(request, callback)

public assign(request: google.cloud.commerce.consumer.procurement.v1.IAssignRequest, callback: google.cloud.commerce.consumer.procurement.v1.LicenseManagementService.AssignCallback): void;

Calls Assign.

Parameters
Name Description
request IAssignRequest

AssignRequest message or plain object

callback AssignCallback

Node-style callback called with the error, if any, and AssignResponse

Returns
Type Description
void

assign(request)

public assign(request: google.cloud.commerce.consumer.procurement.v1.IAssignRequest): Promise<google.cloud.commerce.consumer.procurement.v1.AssignResponse>;

Calls Assign.

Parameter
Name Description
request IAssignRequest

AssignRequest message or plain object

Returns
Type Description
Promise<google.cloud.commerce.consumer.procurement.v1.AssignResponse>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): LicenseManagementService;

Creates new LicenseManagementService service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
LicenseManagementService

RPC service. Useful where requests and/or responses are streamed.

enumerateLicensedUsers(request, callback)

public enumerateLicensedUsers(request: google.cloud.commerce.consumer.procurement.v1.IEnumerateLicensedUsersRequest, callback: google.cloud.commerce.consumer.procurement.v1.LicenseManagementService.EnumerateLicensedUsersCallback): void;

Calls EnumerateLicensedUsers.

Parameters
Name Description
request IEnumerateLicensedUsersRequest

EnumerateLicensedUsersRequest message or plain object

callback EnumerateLicensedUsersCallback

Node-style callback called with the error, if any, and EnumerateLicensedUsersResponse

Returns
Type Description
void

enumerateLicensedUsers(request)

public enumerateLicensedUsers(request: google.cloud.commerce.consumer.procurement.v1.IEnumerateLicensedUsersRequest): Promise<google.cloud.commerce.consumer.procurement.v1.EnumerateLicensedUsersResponse>;

Calls EnumerateLicensedUsers.

Parameter
Name Description
request IEnumerateLicensedUsersRequest

EnumerateLicensedUsersRequest message or plain object

Returns
Type Description
Promise<google.cloud.commerce.consumer.procurement.v1.EnumerateLicensedUsersResponse>

Promise

getLicensePool(request, callback)

public getLicensePool(request: google.cloud.commerce.consumer.procurement.v1.IGetLicensePoolRequest, callback: google.cloud.commerce.consumer.procurement.v1.LicenseManagementService.GetLicensePoolCallback): void;

Calls GetLicensePool.

Parameters
Name Description
request IGetLicensePoolRequest

GetLicensePoolRequest message or plain object

callback GetLicensePoolCallback

Node-style callback called with the error, if any, and LicensePool

Returns
Type Description
void

getLicensePool(request)

public getLicensePool(request: google.cloud.commerce.consumer.procurement.v1.IGetLicensePoolRequest): Promise<google.cloud.commerce.consumer.procurement.v1.LicensePool>;

Calls GetLicensePool.

Parameter
Name Description
request IGetLicensePoolRequest

GetLicensePoolRequest message or plain object

Returns
Type Description
Promise<google.cloud.commerce.consumer.procurement.v1.LicensePool>

Promise

unassign(request, callback)

public unassign(request: google.cloud.commerce.consumer.procurement.v1.IUnassignRequest, callback: google.cloud.commerce.consumer.procurement.v1.LicenseManagementService.UnassignCallback): void;

Calls Unassign.

Parameters
Name Description
request IUnassignRequest

UnassignRequest message or plain object

callback UnassignCallback

Node-style callback called with the error, if any, and UnassignResponse

Returns
Type Description
void

unassign(request)

public unassign(request: google.cloud.commerce.consumer.procurement.v1.IUnassignRequest): Promise<google.cloud.commerce.consumer.procurement.v1.UnassignResponse>;

Calls Unassign.

Parameter
Name Description
request IUnassignRequest

UnassignRequest message or plain object

Returns
Type Description
Promise<google.cloud.commerce.consumer.procurement.v1.UnassignResponse>

Promise

updateLicensePool(request, callback)

public updateLicensePool(request: google.cloud.commerce.consumer.procurement.v1.IUpdateLicensePoolRequest, callback: google.cloud.commerce.consumer.procurement.v1.LicenseManagementService.UpdateLicensePoolCallback): void;

Calls UpdateLicensePool.

Parameters
Name Description
request IUpdateLicensePoolRequest

UpdateLicensePoolRequest message or plain object

callback UpdateLicensePoolCallback

Node-style callback called with the error, if any, and LicensePool

Returns
Type Description
void

updateLicensePool(request)

public updateLicensePool(request: google.cloud.commerce.consumer.procurement.v1.IUpdateLicensePoolRequest): Promise<google.cloud.commerce.consumer.procurement.v1.LicensePool>;

Calls UpdateLicensePool.

Parameter
Name Description
request IUpdateLicensePoolRequest

UpdateLicensePoolRequest message or plain object

Returns
Type Description
Promise<google.cloud.commerce.consumer.procurement.v1.LicensePool>

Promise