Class protos.google.cloud.compute.v1.InstantSnapshotGroups (6.13.0)

Represents an InstantSnapshotGroups

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new InstantSnapshotGroups 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): InstantSnapshotGroups;

Creates new InstantSnapshotGroups 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
InstantSnapshotGroups

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

delete(request, callback)

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

Calls Delete.

Parameters
Name Description
request IDeleteInstantSnapshotGroupRequest

DeleteInstantSnapshotGroupRequest 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.v1.IDeleteInstantSnapshotGroupRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Delete.

Parameter
Name Description
request IDeleteInstantSnapshotGroupRequest

DeleteInstantSnapshotGroupRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

get(request, callback)

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

Calls Get.

Parameters
Name Description
request IGetInstantSnapshotGroupRequest

GetInstantSnapshotGroupRequest message or plain object

callback GetCallback

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

Returns
Type Description
void

get(request)

public get(request: google.cloud.compute.v1.IGetInstantSnapshotGroupRequest): Promise<google.cloud.compute.v1.InstantSnapshotGroup>;

Calls Get.

Parameter
Name Description
request IGetInstantSnapshotGroupRequest

GetInstantSnapshotGroupRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.InstantSnapshotGroup>

Promise

getIamPolicy(request, callback)

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

Calls GetIamPolicy.

Parameters
Name Description
request IGetIamPolicyInstantSnapshotGroupRequest

GetIamPolicyInstantSnapshotGroupRequest 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.v1.IGetIamPolicyInstantSnapshotGroupRequest): Promise<google.cloud.compute.v1.Policy>;

Calls GetIamPolicy.

Parameter
Name Description
request IGetIamPolicyInstantSnapshotGroupRequest

GetIamPolicyInstantSnapshotGroupRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Policy>

Promise

insert(request, callback)

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

Calls Insert.

Parameters
Name Description
request IInsertInstantSnapshotGroupRequest

InsertInstantSnapshotGroupRequest 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.v1.IInsertInstantSnapshotGroupRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Insert.

Parameter
Name Description
request IInsertInstantSnapshotGroupRequest

InsertInstantSnapshotGroupRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

list(request, callback)

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

Calls List.

Parameters
Name Description
request IListInstantSnapshotGroupsRequest

ListInstantSnapshotGroupsRequest message or plain object

callback ListCallback

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

Returns
Type Description
void

list(request)

public list(request: google.cloud.compute.v1.IListInstantSnapshotGroupsRequest): Promise<google.cloud.compute.v1.ListInstantSnapshotGroups>;

Calls List.

Parameter
Name Description
request IListInstantSnapshotGroupsRequest

ListInstantSnapshotGroupsRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.ListInstantSnapshotGroups>

Promise

setIamPolicy(request, callback)

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

Calls SetIamPolicy.

Parameters
Name Description
request ISetIamPolicyInstantSnapshotGroupRequest

SetIamPolicyInstantSnapshotGroupRequest 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.v1.ISetIamPolicyInstantSnapshotGroupRequest): Promise<google.cloud.compute.v1.Policy>;

Calls SetIamPolicy.

Parameter
Name Description
request ISetIamPolicyInstantSnapshotGroupRequest

SetIamPolicyInstantSnapshotGroupRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Policy>

Promise

testIamPermissions(request, callback)

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

Calls TestIamPermissions.

Parameters
Name Description
request ITestIamPermissionsInstantSnapshotGroupRequest

TestIamPermissionsInstantSnapshotGroupRequest 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.v1.ITestIamPermissionsInstantSnapshotGroupRequest): Promise<google.cloud.compute.v1.TestPermissionsResponse>;

Calls TestIamPermissions.

Parameter
Name Description
request ITestIamPermissionsInstantSnapshotGroupRequest

TestIamPermissionsInstantSnapshotGroupRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.TestPermissionsResponse>

Promise