Represents a Licenses
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.LicensesPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new Licenses service.
| 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): Licenses;Creates new Licenses service using the specified rpc implementation.
| Name | Description |
| rpcImpl |
$protobuf.RPCImpl
RPC implementation |
| requestDelimited |
boolean
Whether requests are length-delimited |
| responseDelimited |
boolean
Whether responses are length-delimited |
| Type | Description |
| Licenses | RPC service. Useful where requests and/or responses are streamed. |
delete(request, callback)
public delete(request: google.cloud.compute.v1.IDeleteLicenseRequest, callback: google.cloud.compute.v1.Licenses.DeleteCallback): void;Calls Delete.
| Name | Description |
| request |
google.cloud.compute.v1.IDeleteLicenseRequest
DeleteLicenseRequest message or plain object |
| callback |
google.cloud.compute.v1.Licenses.DeleteCallback
Node-style callback called with the error, if any, and Operation |
| Type | Description |
| void |
delete(request)
public delete(request: google.cloud.compute.v1.IDeleteLicenseRequest): Promise<google.cloud.compute.v1.Operation>;Calls Delete.
| Name | Description |
| request |
google.cloud.compute.v1.IDeleteLicenseRequest
DeleteLicenseRequest message or plain object |
| Type | Description |
| Promise<google.cloud.compute.v1.Operation> | Promise |
get(request, callback)
public get(request: google.cloud.compute.v1.IGetLicenseRequest, callback: google.cloud.compute.v1.Licenses.GetCallback): void;Calls Get.
| Name | Description |
| request |
IGetLicenseRequest
GetLicenseRequest message or plain object |
| callback |
google.cloud.compute.v1.Licenses.GetCallback
Node-style callback called with the error, if any, and License |
| Type | Description |
| void |
get(request)
public get(request: google.cloud.compute.v1.IGetLicenseRequest): Promise<google.cloud.compute.v1.License>;Calls Get.
| Name | Description |
| request |
IGetLicenseRequest
GetLicenseRequest message or plain object |
| Type | Description |
| Promise<google.cloud.compute.v1.License> | Promise |
getIamPolicy(request, callback)
public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyLicenseRequest, callback: google.cloud.compute.v1.Licenses.GetIamPolicyCallback): void;Calls GetIamPolicy.
| Name | Description |
| request |
IGetIamPolicyLicenseRequest
GetIamPolicyLicenseRequest message or plain object |
| callback |
google.cloud.compute.v1.Licenses.GetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
| Type | Description |
| void |
getIamPolicy(request)
public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyLicenseRequest): Promise<google.cloud.compute.v1.Policy>;Calls GetIamPolicy.
| Name | Description |
| request |
IGetIamPolicyLicenseRequest
GetIamPolicyLicenseRequest message or plain object |
| Type | Description |
| Promise<google.cloud.compute.v1.Policy> | Promise |
insert(request, callback)
public insert(request: google.cloud.compute.v1.IInsertLicenseRequest, callback: google.cloud.compute.v1.Licenses.InsertCallback): void;Calls Insert.
| Name | Description |
| request |
IInsertLicenseRequest
InsertLicenseRequest message or plain object |
| callback |
google.cloud.compute.v1.Licenses.InsertCallback
Node-style callback called with the error, if any, and Operation |
| Type | Description |
| void |
insert(request)
public insert(request: google.cloud.compute.v1.IInsertLicenseRequest): Promise<google.cloud.compute.v1.Operation>;Calls Insert.
| Name | Description |
| request |
IInsertLicenseRequest
InsertLicenseRequest message or plain object |
| Type | Description |
| Promise<google.cloud.compute.v1.Operation> | Promise |
list(request, callback)
public list(request: google.cloud.compute.v1.IListLicensesRequest, callback: google.cloud.compute.v1.Licenses.ListCallback): void;Calls List.
| Name | Description |
| request |
IListLicensesRequest
ListLicensesRequest message or plain object |
| callback |
google.cloud.compute.v1.Licenses.ListCallback
Node-style callback called with the error, if any, and LicensesListResponse |
| Type | Description |
| void |
list(request)
public list(request: google.cloud.compute.v1.IListLicensesRequest): Promise<google.cloud.compute.v1.LicensesListResponse>;Calls List.
| Name | Description |
| request |
IListLicensesRequest
ListLicensesRequest message or plain object |
| Type | Description |
| Promise<google.cloud.compute.v1.LicensesListResponse> | Promise |
setIamPolicy(request, callback)
public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyLicenseRequest, callback: google.cloud.compute.v1.Licenses.SetIamPolicyCallback): void;Calls SetIamPolicy.
| Name | Description |
| request |
ISetIamPolicyLicenseRequest
SetIamPolicyLicenseRequest message or plain object |
| callback |
google.cloud.compute.v1.Licenses.SetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
| Type | Description |
| void |
setIamPolicy(request)
public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyLicenseRequest): Promise<google.cloud.compute.v1.Policy>;Calls SetIamPolicy.
| Name | Description |
| request |
ISetIamPolicyLicenseRequest
SetIamPolicyLicenseRequest message or plain object |
| Type | Description |
| Promise<google.cloud.compute.v1.Policy> | Promise |
testIamPermissions(request, callback)
public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsLicenseRequest, callback: google.cloud.compute.v1.Licenses.TestIamPermissionsCallback): void;Calls TestIamPermissions.
| Name | Description |
| request |
ITestIamPermissionsLicenseRequest
TestIamPermissionsLicenseRequest message or plain object |
| callback |
google.cloud.compute.v1.Licenses.TestIamPermissionsCallback
Node-style callback called with the error, if any, and TestPermissionsResponse |
| Type | Description |
| void |
testIamPermissions(request)
public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsLicenseRequest): Promise<google.cloud.compute.v1.TestPermissionsResponse>;Calls TestIamPermissions.
| Name | Description |
| request |
ITestIamPermissionsLicenseRequest
TestIamPermissionsLicenseRequest message or plain object |
| Type | Description |
| Promise<google.cloud.compute.v1.TestPermissionsResponse> | Promise |