Represents an InstantSnapshots
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1beta.InstantSnapshotsPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new InstantSnapshots service.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
aggregatedList(request, callback)
public aggregatedList(request: google.cloud.compute.v1beta.IAggregatedListInstantSnapshotsRequest, callback: google.cloud.compute.v1beta.InstantSnapshots.AggregatedListCallback): void;Calls AggregatedList.
| Parameters | |
|---|---|
| Name | Description |
request |
IAggregatedListInstantSnapshotsRequest
AggregatedListInstantSnapshotsRequest message or plain object |
callback |
AggregatedListCallback
Node-style callback called with the error, if any, and InstantSnapshotAggregatedList |
| Returns | |
|---|---|
| Type | Description |
void |
|
aggregatedList(request)
public aggregatedList(request: google.cloud.compute.v1beta.IAggregatedListInstantSnapshotsRequest): Promise<google.cloud.compute.v1beta.InstantSnapshotAggregatedList>;Calls AggregatedList.
| Parameter | |
|---|---|
| Name | Description |
request |
IAggregatedListInstantSnapshotsRequest
AggregatedListInstantSnapshotsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.compute.v1beta.InstantSnapshotAggregatedList> |
Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): InstantSnapshots;Creates new InstantSnapshots 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 |
InstantSnapshots |
RPC service. Useful where requests and/or responses are streamed. |
delete(request, callback)
public delete(request: google.cloud.compute.v1beta.IDeleteInstantSnapshotRequest, callback: google.cloud.compute.v1beta.InstantSnapshots.DeleteCallback): void;Calls Delete.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteInstantSnapshotRequest
DeleteInstantSnapshotRequest message or plain object |
callback |
DeleteCallback
Node-style callback called with the error, if any, and Operation |
| Returns | |
|---|---|
| Type | Description |
void |
|
delete(request)
public delete(request: google.cloud.compute.v1beta.IDeleteInstantSnapshotRequest): Promise<google.cloud.compute.v1beta.Operation>;Calls Delete.
| Parameter | |
|---|---|
| Name | Description |
request |
IDeleteInstantSnapshotRequest
DeleteInstantSnapshotRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.compute.v1beta.Operation> |
Promise |
get(request, callback)
public get(request: google.cloud.compute.v1beta.IGetInstantSnapshotRequest, callback: google.cloud.compute.v1beta.InstantSnapshots.GetCallback): void;Calls Get.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetInstantSnapshotRequest
GetInstantSnapshotRequest message or plain object |
callback |
GetCallback
Node-style callback called with the error, if any, and InstantSnapshot |
| Returns | |
|---|---|
| Type | Description |
void |
|
get(request)
public get(request: google.cloud.compute.v1beta.IGetInstantSnapshotRequest): Promise<google.cloud.compute.v1beta.InstantSnapshot>;Calls Get.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetInstantSnapshotRequest
GetInstantSnapshotRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.compute.v1beta.InstantSnapshot> |
Promise |
getIamPolicy(request, callback)
public getIamPolicy(request: google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotRequest, callback: google.cloud.compute.v1beta.InstantSnapshots.GetIamPolicyCallback): void;Calls GetIamPolicy.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetIamPolicyInstantSnapshotRequest
GetIamPolicyInstantSnapshotRequest message or plain object |
callback |
GetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
| Returns | |
|---|---|
| Type | Description |
void |
|
getIamPolicy(request)
public getIamPolicy(request: google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotRequest): Promise<google.cloud.compute.v1beta.Policy>;Calls GetIamPolicy.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetIamPolicyInstantSnapshotRequest
GetIamPolicyInstantSnapshotRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.compute.v1beta.Policy> |
Promise |
insert(request, callback)
public insert(request: google.cloud.compute.v1beta.IInsertInstantSnapshotRequest, callback: google.cloud.compute.v1beta.InstantSnapshots.InsertCallback): void;Calls Insert.
| Parameters | |
|---|---|
| Name | Description |
request |
IInsertInstantSnapshotRequest
InsertInstantSnapshotRequest message or plain object |
callback |
InsertCallback
Node-style callback called with the error, if any, and Operation |
| Returns | |
|---|---|
| Type | Description |
void |
|
insert(request)
public insert(request: google.cloud.compute.v1beta.IInsertInstantSnapshotRequest): Promise<google.cloud.compute.v1beta.Operation>;Calls Insert.
| Parameter | |
|---|---|
| Name | Description |
request |
IInsertInstantSnapshotRequest
InsertInstantSnapshotRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.compute.v1beta.Operation> |
Promise |
list(request, callback)
public list(request: google.cloud.compute.v1beta.IListInstantSnapshotsRequest, callback: google.cloud.compute.v1beta.InstantSnapshots.ListCallback): void;Calls List.
| Parameters | |
|---|---|
| Name | Description |
request |
IListInstantSnapshotsRequest
ListInstantSnapshotsRequest message or plain object |
callback |
ListCallback
Node-style callback called with the error, if any, and InstantSnapshotList |
| Returns | |
|---|---|
| Type | Description |
void |
|
list(request)
public list(request: google.cloud.compute.v1beta.IListInstantSnapshotsRequest): Promise<google.cloud.compute.v1beta.InstantSnapshotList>;Calls List.
| Parameter | |
|---|---|
| Name | Description |
request |
IListInstantSnapshotsRequest
ListInstantSnapshotsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.compute.v1beta.InstantSnapshotList> |
Promise |
setIamPolicy(request, callback)
public setIamPolicy(request: google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotRequest, callback: google.cloud.compute.v1beta.InstantSnapshots.SetIamPolicyCallback): void;Calls SetIamPolicy.
| Parameters | |
|---|---|
| Name | Description |
request |
ISetIamPolicyInstantSnapshotRequest
SetIamPolicyInstantSnapshotRequest message or plain object |
callback |
SetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
| Returns | |
|---|---|
| Type | Description |
void |
|
setIamPolicy(request)
public setIamPolicy(request: google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotRequest): Promise<google.cloud.compute.v1beta.Policy>;Calls SetIamPolicy.
| Parameter | |
|---|---|
| Name | Description |
request |
ISetIamPolicyInstantSnapshotRequest
SetIamPolicyInstantSnapshotRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.compute.v1beta.Policy> |
Promise |
setLabels(request, callback)
public setLabels(request: google.cloud.compute.v1beta.ISetLabelsInstantSnapshotRequest, callback: google.cloud.compute.v1beta.InstantSnapshots.SetLabelsCallback): void;Calls SetLabels.
| Parameters | |
|---|---|
| Name | Description |
request |
ISetLabelsInstantSnapshotRequest
SetLabelsInstantSnapshotRequest message or plain object |
callback |
SetLabelsCallback
Node-style callback called with the error, if any, and Operation |
| Returns | |
|---|---|
| Type | Description |
void |
|
setLabels(request)
public setLabels(request: google.cloud.compute.v1beta.ISetLabelsInstantSnapshotRequest): Promise<google.cloud.compute.v1beta.Operation>;Calls SetLabels.
| Parameter | |
|---|---|
| Name | Description |
request |
ISetLabelsInstantSnapshotRequest
SetLabelsInstantSnapshotRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.compute.v1beta.Operation> |
Promise |
testIamPermissions(request, callback)
public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotRequest, callback: google.cloud.compute.v1beta.InstantSnapshots.TestIamPermissionsCallback): void;Calls TestIamPermissions.
| Parameters | |
|---|---|
| Name | Description |
request |
ITestIamPermissionsInstantSnapshotRequest
TestIamPermissionsInstantSnapshotRequest 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.v1beta.ITestIamPermissionsInstantSnapshotRequest): Promise<google.cloud.compute.v1beta.TestPermissionsResponse>;Calls TestIamPermissions.
| Parameter | |
|---|---|
| Name | Description |
request |
ITestIamPermissionsInstantSnapshotRequest
TestIamPermissionsInstantSnapshotRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.compute.v1beta.TestPermissionsResponse> |
Promise |