Represents a MachineImages
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.MachineImagesPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new MachineImages 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): MachineImages;
Creates new MachineImages 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 |
MachineImages | RPC service. Useful where requests and/or responses are streamed. |
delete(request, callback)
public delete(request: google.cloud.compute.v1.IDeleteMachineImageRequest, callback: google.cloud.compute.v1.MachineImages.DeleteCallback): void;
Calls Delete.
Parameters | |
---|---|
Name | Description |
request |
IDeleteMachineImageRequest
DeleteMachineImageRequest message or plain object |
callback |
google.cloud.compute.v1.MachineImages.DeleteCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
delete(request)
public delete(request: google.cloud.compute.v1.IDeleteMachineImageRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Delete.
Parameter | |
---|---|
Name | Description |
request |
IDeleteMachineImageRequest
DeleteMachineImageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> | Promise |
get(request, callback)
public get(request: google.cloud.compute.v1.IGetMachineImageRequest, callback: google.cloud.compute.v1.MachineImages.GetCallback): void;
Calls Get.
Parameters | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.IGetMachineImageRequest
GetMachineImageRequest message or plain object |
callback |
google.cloud.compute.v1.MachineImages.GetCallback
Node-style callback called with the error, if any, and MachineImage |
Returns | |
---|---|
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetMachineImageRequest): Promise<google.cloud.compute.v1.MachineImage>;
Calls Get.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.IGetMachineImageRequest
GetMachineImageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.MachineImage> | Promise |
getIamPolicy(request, callback)
public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyMachineImageRequest, callback: google.cloud.compute.v1.MachineImages.GetIamPolicyCallback): void;
Calls GetIamPolicy.
Parameters | |
---|---|
Name | Description |
request |
IGetIamPolicyMachineImageRequest
GetIamPolicyMachineImageRequest message or plain object |
callback |
google.cloud.compute.v1.MachineImages.GetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
Returns | |
---|---|
Type | Description |
void |
getIamPolicy(request)
public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyMachineImageRequest): Promise<google.cloud.compute.v1.Policy>;
Calls GetIamPolicy.
Parameter | |
---|---|
Name | Description |
request |
IGetIamPolicyMachineImageRequest
GetIamPolicyMachineImageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Policy> | Promise |
insert(request, callback)
public insert(request: google.cloud.compute.v1.IInsertMachineImageRequest, callback: google.cloud.compute.v1.MachineImages.InsertCallback): void;
Calls Insert.
Parameters | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.IInsertMachineImageRequest
InsertMachineImageRequest message or plain object |
callback |
google.cloud.compute.v1.MachineImages.InsertCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
insert(request)
public insert(request: google.cloud.compute.v1.IInsertMachineImageRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Insert.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.IInsertMachineImageRequest
InsertMachineImageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> | Promise |
list(request, callback)
public list(request: google.cloud.compute.v1.IListMachineImagesRequest, callback: google.cloud.compute.v1.MachineImages.ListCallback): void;
Calls List.
Parameters | |
---|---|
Name | Description |
request |
IListMachineImagesRequest
ListMachineImagesRequest message or plain object |
callback |
google.cloud.compute.v1.MachineImages.ListCallback
Node-style callback called with the error, if any, and MachineImageList |
Returns | |
---|---|
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListMachineImagesRequest): Promise<google.cloud.compute.v1.MachineImageList>;
Calls List.
Parameter | |
---|---|
Name | Description |
request |
IListMachineImagesRequest
ListMachineImagesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.MachineImageList> | Promise |
setIamPolicy(request, callback)
public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyMachineImageRequest, callback: google.cloud.compute.v1.MachineImages.SetIamPolicyCallback): void;
Calls SetIamPolicy.
Parameters | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.ISetIamPolicyMachineImageRequest
SetIamPolicyMachineImageRequest message or plain object |
callback |
google.cloud.compute.v1.MachineImages.SetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
Returns | |
---|---|
Type | Description |
void |
setIamPolicy(request)
public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyMachineImageRequest): Promise<google.cloud.compute.v1.Policy>;
Calls SetIamPolicy.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.ISetIamPolicyMachineImageRequest
SetIamPolicyMachineImageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Policy> | Promise |
testIamPermissions(request, callback)
public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest, callback: google.cloud.compute.v1.MachineImages.TestIamPermissionsCallback): void;
Calls TestIamPermissions.
Parameters | |
---|---|
Name | Description |
request |
ITestIamPermissionsMachineImageRequest
TestIamPermissionsMachineImageRequest message or plain object |
callback |
google.cloud.compute.v1.MachineImages.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.ITestIamPermissionsMachineImageRequest): Promise<google.cloud.compute.v1.TestPermissionsResponse>;
Calls TestIamPermissions.
Parameter | |
---|---|
Name | Description |
request |
ITestIamPermissionsMachineImageRequest
TestIamPermissionsMachineImageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.TestPermissionsResponse> | Promise |