Represents a Snapshots
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.SnapshotsPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Snapshots 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): Snapshots;
Creates new Snapshots 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 |
Snapshots | RPC service. Useful where requests and/or responses are streamed. |
delete(request, callback)
public delete(request: google.cloud.compute.v1.IDeleteSnapshotRequest, callback: google.cloud.compute.v1.Snapshots.DeleteCallback): void;
Calls Delete.
Name | Description |
request |
google.cloud.compute.v1.IDeleteSnapshotRequest
DeleteSnapshotRequest message or plain object |
callback |
google.cloud.compute.v1.Snapshots.DeleteCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
delete(request)
public delete(request: google.cloud.compute.v1.IDeleteSnapshotRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Delete.
Name | Description |
request |
google.cloud.compute.v1.IDeleteSnapshotRequest
DeleteSnapshotRequest message or plain object |
Type | Description |
Promise<google.cloud.compute.v1.Operation> | Promise |
get(request, callback)
public get(request: google.cloud.compute.v1.IGetSnapshotRequest, callback: google.cloud.compute.v1.Snapshots.GetCallback): void;
Calls Get.
Name | Description |
request |
IGetSnapshotRequest
GetSnapshotRequest message or plain object |
callback |
google.cloud.compute.v1.Snapshots.GetCallback
Node-style callback called with the error, if any, and Snapshot |
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetSnapshotRequest): Promise<google.cloud.compute.v1.Snapshot>;
Calls Get.
Name | Description |
request |
IGetSnapshotRequest
GetSnapshotRequest message or plain object |
Type | Description |
Promise<google.cloud.compute.v1.Snapshot> | Promise |
getIamPolicy(request, callback)
public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicySnapshotRequest, callback: google.cloud.compute.v1.Snapshots.GetIamPolicyCallback): void;
Calls GetIamPolicy.
Name | Description |
request |
IGetIamPolicySnapshotRequest
GetIamPolicySnapshotRequest message or plain object |
callback |
google.cloud.compute.v1.Snapshots.GetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
Type | Description |
void |
getIamPolicy(request)
public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicySnapshotRequest): Promise<google.cloud.compute.v1.Policy>;
Calls GetIamPolicy.
Name | Description |
request |
IGetIamPolicySnapshotRequest
GetIamPolicySnapshotRequest message or plain object |
Type | Description |
Promise<google.cloud.compute.v1.Policy> | Promise |
insert(request, callback)
public insert(request: google.cloud.compute.v1.IInsertSnapshotRequest, callback: google.cloud.compute.v1.Snapshots.InsertCallback): void;
Calls Insert.
Name | Description |
request |
google.cloud.compute.v1.IInsertSnapshotRequest
InsertSnapshotRequest message or plain object |
callback |
google.cloud.compute.v1.Snapshots.InsertCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
insert(request)
public insert(request: google.cloud.compute.v1.IInsertSnapshotRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Insert.
Name | Description |
request |
google.cloud.compute.v1.IInsertSnapshotRequest
InsertSnapshotRequest message or plain object |
Type | Description |
Promise<google.cloud.compute.v1.Operation> | Promise |
list(request, callback)
public list(request: google.cloud.compute.v1.IListSnapshotsRequest, callback: google.cloud.compute.v1.Snapshots.ListCallback): void;
Calls List.
Name | Description |
request |
IListSnapshotsRequest
ListSnapshotsRequest message or plain object |
callback |
google.cloud.compute.v1.Snapshots.ListCallback
Node-style callback called with the error, if any, and SnapshotList |
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListSnapshotsRequest): Promise<google.cloud.compute.v1.SnapshotList>;
Calls List.
Name | Description |
request |
IListSnapshotsRequest
ListSnapshotsRequest message or plain object |
Type | Description |
Promise<google.cloud.compute.v1.SnapshotList> | Promise |
setIamPolicy(request, callback)
public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicySnapshotRequest, callback: google.cloud.compute.v1.Snapshots.SetIamPolicyCallback): void;
Calls SetIamPolicy.
Name | Description |
request |
ISetIamPolicySnapshotRequest
SetIamPolicySnapshotRequest message or plain object |
callback |
google.cloud.compute.v1.Snapshots.SetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
Type | Description |
void |
setIamPolicy(request)
public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicySnapshotRequest): Promise<google.cloud.compute.v1.Policy>;
Calls SetIamPolicy.
Name | Description |
request |
ISetIamPolicySnapshotRequest
SetIamPolicySnapshotRequest message or plain object |
Type | Description |
Promise<google.cloud.compute.v1.Policy> | Promise |
setLabels(request, callback)
public setLabels(request: google.cloud.compute.v1.ISetLabelsSnapshotRequest, callback: google.cloud.compute.v1.Snapshots.SetLabelsCallback): void;
Calls SetLabels.
Name | Description |
request |
google.cloud.compute.v1.ISetLabelsSnapshotRequest
SetLabelsSnapshotRequest message or plain object |
callback |
google.cloud.compute.v1.Snapshots.SetLabelsCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
setLabels(request)
public setLabels(request: google.cloud.compute.v1.ISetLabelsSnapshotRequest): Promise<google.cloud.compute.v1.Operation>;
Calls SetLabels.
Name | Description |
request |
google.cloud.compute.v1.ISetLabelsSnapshotRequest
SetLabelsSnapshotRequest message or plain object |
Type | Description |
Promise<google.cloud.compute.v1.Operation> | Promise |
testIamPermissions(request, callback)
public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsSnapshotRequest, callback: google.cloud.compute.v1.Snapshots.TestIamPermissionsCallback): void;
Calls TestIamPermissions.
Name | Description |
request |
ITestIamPermissionsSnapshotRequest
TestIamPermissionsSnapshotRequest message or plain object |
callback |
google.cloud.compute.v1.Snapshots.TestIamPermissionsCallback
Node-style callback called with the error, if any, and TestPermissionsResponse |
Type | Description |
void |
testIamPermissions(request)
public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsSnapshotRequest): Promise<google.cloud.compute.v1.TestPermissionsResponse>;
Calls TestIamPermissions.
Name | Description |
request |
ITestIamPermissionsSnapshotRequest
TestIamPermissionsSnapshotRequest message or plain object |
Type | Description |
Promise<google.cloud.compute.v1.TestPermissionsResponse> | Promise |