Represents an InstanceSettingsService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.InstanceSettingsServicePackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new InstanceSettingsService 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): InstanceSettingsService;Creates new InstanceSettingsService 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 |
InstanceSettingsService |
RPC service. Useful where requests and/or responses are streamed. |
get(request, callback)
public get(request: google.cloud.compute.v1.IGetInstanceSettingRequest, callback: google.cloud.compute.v1.InstanceSettingsService.GetCallback): void;Calls Get.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetInstanceSettingRequest
GetInstanceSettingRequest message or plain object |
callback |
GetCallback
Node-style callback called with the error, if any, and InstanceSettings |
| Returns | |
|---|---|
| Type | Description |
void |
|
get(request)
public get(request: google.cloud.compute.v1.IGetInstanceSettingRequest): Promise<google.cloud.compute.v1.InstanceSettings>;Calls Get.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetInstanceSettingRequest
GetInstanceSettingRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.compute.v1.InstanceSettings> |
Promise |
patch(request, callback)
public patch(request: google.cloud.compute.v1.IPatchInstanceSettingRequest, callback: google.cloud.compute.v1.InstanceSettingsService.PatchCallback): void;Calls Patch.
| Parameters | |
|---|---|
| Name | Description |
request |
IPatchInstanceSettingRequest
PatchInstanceSettingRequest 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.v1.IPatchInstanceSettingRequest): Promise<google.cloud.compute.v1.Operation>;Calls Patch.
| Parameter | |
|---|---|
| Name | Description |
request |
IPatchInstanceSettingRequest
PatchInstanceSettingRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |