Class protos.google.cloud.compute.v1beta.SnapshotRecycleBinPolicyService (7.10.0)

Represents a SnapshotRecycleBinPolicyService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.compute.v1beta.SnapshotRecycleBinPolicyService

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

get(request, callback)

public get(request: google.cloud.compute.v1beta.IGetSnapshotRecycleBinPolicyRequest, callback: google.cloud.compute.v1beta.SnapshotRecycleBinPolicyService.GetCallback): void;

Calls Get.

Parameters
Name Description
request IGetSnapshotRecycleBinPolicyRequest

GetSnapshotRecycleBinPolicyRequest message or plain object

callback GetCallback

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

Returns
Type Description
void

get(request)

public get(request: google.cloud.compute.v1beta.IGetSnapshotRecycleBinPolicyRequest): Promise<google.cloud.compute.v1beta.SnapshotRecycleBinPolicy>;

Calls Get.

Parameter
Name Description
request IGetSnapshotRecycleBinPolicyRequest

GetSnapshotRecycleBinPolicyRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1beta.SnapshotRecycleBinPolicy>

Promise

patch(request, callback)

public patch(request: google.cloud.compute.v1beta.IPatchSnapshotRecycleBinPolicyRequest, callback: google.cloud.compute.v1beta.SnapshotRecycleBinPolicyService.PatchCallback): void;

Calls Patch.

Parameters
Name Description
request IPatchSnapshotRecycleBinPolicyRequest

PatchSnapshotRecycleBinPolicyRequest message or plain object

callback PatchCallback

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

Returns
Type Description
void

patch(request)

public patch(request: google.cloud.compute.v1beta.IPatchSnapshotRecycleBinPolicyRequest): Promise<google.cloud.compute.v1beta.Operation>;

Calls Patch.

Parameter
Name Description
request IPatchSnapshotRecycleBinPolicyRequest

PatchSnapshotRecycleBinPolicyRequest message or plain object

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

Promise