Class protos.google.cloud.compute.v1.LicenseCodes (4.1.0)

Represents a LicenseCodes

Inheritance

$protobuf.rpc.Service > protos.google.cloud.compute.v1.LicenseCodes

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new LicenseCodes service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

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

Creates new LicenseCodes service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
LicenseCodes

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

get(request, callback)

public get(request: google.cloud.compute.v1.IGetLicenseCodeRequest, callback: google.cloud.compute.v1.LicenseCodes.GetCallback): void;

Calls Get.

Parameters
NameDescription
request IGetLicenseCodeRequest

GetLicenseCodeRequest message or plain object

callback GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetLicenseCodeRequest): Promise<google.cloud.compute.v1.LicenseCode>;

Calls Get.

Parameter
NameDescription
request IGetLicenseCodeRequest

GetLicenseCodeRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.LicenseCode>

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsLicenseCodeRequest, callback: google.cloud.compute.v1.LicenseCodes.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
NameDescription
request ITestIamPermissionsLicenseCodeRequest

TestIamPermissionsLicenseCodeRequest message or plain object

callback TestIamPermissionsCallback

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

Returns
TypeDescription
void

testIamPermissions(request)

public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsLicenseCodeRequest): Promise<google.cloud.compute.v1.TestPermissionsResponse>;

Calls TestIamPermissions.

Parameter
NameDescription
request ITestIamPermissionsLicenseCodeRequest

TestIamPermissionsLicenseCodeRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.TestPermissionsResponse>

Promise