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

Represents a SnapshotSettingsService

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new SnapshotSettingsService service.

Parameters
NameDescription
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): SnapshotSettingsService;

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

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

get(request, callback)

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

Calls Get.

Parameters
NameDescription
request IGetSnapshotSettingRequest

GetSnapshotSettingRequest message or plain object

callback GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetSnapshotSettingRequest): Promise<google.cloud.compute.v1.SnapshotSettings>;

Calls Get.

Parameter
NameDescription
request IGetSnapshotSettingRequest

GetSnapshotSettingRequest message or plain object

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

Promise

patch(request, callback)

public patch(request: google.cloud.compute.v1.IPatchSnapshotSettingRequest, callback: google.cloud.compute.v1.SnapshotSettingsService.PatchCallback): void;

Calls Patch.

Parameters
NameDescription
request IPatchSnapshotSettingRequest

PatchSnapshotSettingRequest message or plain object

callback PatchCallback

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

Returns
TypeDescription
void

patch(request)

public patch(request: google.cloud.compute.v1.IPatchSnapshotSettingRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Patch.

Parameter
NameDescription
request IPatchSnapshotSettingRequest

PatchSnapshotSettingRequest message or plain object

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

Promise