Class protos.google.cloud.compute.v1.InstantSnapshots (4.3.0)

Represents an InstantSnapshots

Inheritance

$protobuf.rpc.Service > protos.google.cloud.compute.v1.InstantSnapshots

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new InstantSnapshots service.

Parameters
NameDescription
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.v1.IAggregatedListInstantSnapshotsRequest, callback: google.cloud.compute.v1.InstantSnapshots.AggregatedListCallback): void;

Calls AggregatedList.

Parameters
NameDescription
request IAggregatedListInstantSnapshotsRequest

AggregatedListInstantSnapshotsRequest message or plain object

callback AggregatedListCallback

Node-style callback called with the error, if any, and InstantSnapshotAggregatedList

Returns
TypeDescription
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListInstantSnapshotsRequest): Promise<google.cloud.compute.v1.InstantSnapshotAggregatedList>;

Calls AggregatedList.

Parameter
NameDescription
request IAggregatedListInstantSnapshotsRequest

AggregatedListInstantSnapshotsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
InstantSnapshots

RPC service. Useful where requests and/or responses are streamed.

delete(request, callback)

public delete(request: google.cloud.compute.v1.IDeleteInstantSnapshotRequest, callback: google.cloud.compute.v1.InstantSnapshots.DeleteCallback): void;

Calls Delete.

Parameters
NameDescription
request IDeleteInstantSnapshotRequest

DeleteInstantSnapshotRequest message or plain object

callback DeleteCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

delete(request)

public delete(request: google.cloud.compute.v1.IDeleteInstantSnapshotRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Delete.

Parameter
NameDescription
request IDeleteInstantSnapshotRequest

DeleteInstantSnapshotRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise

get(request, callback)

public get(request: google.cloud.compute.v1.IGetInstantSnapshotRequest, callback: google.cloud.compute.v1.InstantSnapshots.GetCallback): void;

Calls Get.

Parameters
NameDescription
request IGetInstantSnapshotRequest

GetInstantSnapshotRequest message or plain object

callback GetCallback

Node-style callback called with the error, if any, and InstantSnapshot

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetInstantSnapshotRequest): Promise<google.cloud.compute.v1.InstantSnapshot>;

Calls Get.

Parameter
NameDescription
request IGetInstantSnapshotRequest

GetInstantSnapshotRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.InstantSnapshot>

Promise

getIamPolicy(request, callback)

public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest, callback: google.cloud.compute.v1.InstantSnapshots.GetIamPolicyCallback): void;

Calls GetIamPolicy.

Parameters
NameDescription
request IGetIamPolicyInstantSnapshotRequest

GetIamPolicyInstantSnapshotRequest message or plain object

callback GetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns
TypeDescription
void

getIamPolicy(request)

public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyInstantSnapshotRequest): Promise<google.cloud.compute.v1.Policy>;

Calls GetIamPolicy.

Parameter
NameDescription
request IGetIamPolicyInstantSnapshotRequest

GetIamPolicyInstantSnapshotRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Policy>

Promise

insert(request, callback)

public insert(request: google.cloud.compute.v1.IInsertInstantSnapshotRequest, callback: google.cloud.compute.v1.InstantSnapshots.InsertCallback): void;

Calls Insert.

Parameters
NameDescription
request IInsertInstantSnapshotRequest

InsertInstantSnapshotRequest message or plain object

callback InsertCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

insert(request)

public insert(request: google.cloud.compute.v1.IInsertInstantSnapshotRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Insert.

Parameter
NameDescription
request IInsertInstantSnapshotRequest

InsertInstantSnapshotRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise

list(request, callback)

public list(request: google.cloud.compute.v1.IListInstantSnapshotsRequest, callback: google.cloud.compute.v1.InstantSnapshots.ListCallback): void;

Calls List.

Parameters
NameDescription
request IListInstantSnapshotsRequest

ListInstantSnapshotsRequest message or plain object

callback ListCallback

Node-style callback called with the error, if any, and InstantSnapshotList

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListInstantSnapshotsRequest): Promise<google.cloud.compute.v1.InstantSnapshotList>;

Calls List.

Parameter
NameDescription
request IListInstantSnapshotsRequest

ListInstantSnapshotsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.InstantSnapshotList>

Promise

setIamPolicy(request, callback)

public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest, callback: google.cloud.compute.v1.InstantSnapshots.SetIamPolicyCallback): void;

Calls SetIamPolicy.

Parameters
NameDescription
request ISetIamPolicyInstantSnapshotRequest

SetIamPolicyInstantSnapshotRequest message or plain object

callback SetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns
TypeDescription
void

setIamPolicy(request)

public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest): Promise<google.cloud.compute.v1.Policy>;

Calls SetIamPolicy.

Parameter
NameDescription
request ISetIamPolicyInstantSnapshotRequest

SetIamPolicyInstantSnapshotRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Policy>

Promise

setLabels(request, callback)

public setLabels(request: google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest, callback: google.cloud.compute.v1.InstantSnapshots.SetLabelsCallback): void;

Calls SetLabels.

Parameters
NameDescription
request ISetLabelsInstantSnapshotRequest

SetLabelsInstantSnapshotRequest message or plain object

callback SetLabelsCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

setLabels(request)

public setLabels(request: google.cloud.compute.v1.ISetLabelsInstantSnapshotRequest): Promise<google.cloud.compute.v1.Operation>;

Calls SetLabels.

Parameter
NameDescription
request ISetLabelsInstantSnapshotRequest

SetLabelsInstantSnapshotRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest, callback: google.cloud.compute.v1.InstantSnapshots.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
NameDescription
request ITestIamPermissionsInstantSnapshotRequest

TestIamPermissionsInstantSnapshotRequest message or plain object

callback TestIamPermissionsCallback

Node-style callback called with the error, if any, and TestPermissionsResponse

Returns
TypeDescription
void

testIamPermissions(request)

public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotRequest): Promise<google.cloud.compute.v1.TestPermissionsResponse>;

Calls TestIamPermissions.

Parameter
NameDescription
request ITestIamPermissionsInstantSnapshotRequest

TestIamPermissionsInstantSnapshotRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.TestPermissionsResponse>

Promise