Represents a LicenseCodes
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.LicenseCodesPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new LicenseCodes service.
| Parameters | |
|---|---|
| Name | Description |
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 | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IGetLicenseCodeRequest
GetLicenseCodeRequest message or plain object |
callback |
GetCallback
Node-style callback called with the error, if any, and LicenseCode |
| Returns | |
|---|---|
| Type | Description |
void |
|
get(request)
public get(request: google.cloud.compute.v1.IGetLicenseCodeRequest): Promise<google.cloud.compute.v1.LicenseCode>;Calls Get.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetLicenseCodeRequest
GetLicenseCodeRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ITestIamPermissionsLicenseCodeRequest
TestIamPermissionsLicenseCodeRequest message or plain object |
callback |
TestIamPermissionsCallback
Node-style callback called with the error, if any, and TestPermissionsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
testIamPermissions(request)
public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsLicenseCodeRequest): Promise<google.cloud.compute.v1.TestPermissionsResponse>;Calls TestIamPermissions.
| Parameter | |
|---|---|
| Name | Description |
request |
ITestIamPermissionsLicenseCodeRequest
TestIamPermissionsLicenseCodeRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.compute.v1.TestPermissionsResponse> |
Promise |