Class protos.google.cloud.compute.v1.RegionInstanceGroups (4.1.0)

Represents a RegionInstanceGroups

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

get(request, callback)

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

Calls Get.

Parameters
NameDescription
request IGetRegionInstanceGroupRequest

GetRegionInstanceGroupRequest message or plain object

callback GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetRegionInstanceGroupRequest): Promise<google.cloud.compute.v1.InstanceGroup>;

Calls Get.

Parameter
NameDescription
request IGetRegionInstanceGroupRequest

GetRegionInstanceGroupRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
NameDescription
request IListRegionInstanceGroupsRequest

ListRegionInstanceGroupsRequest message or plain object

callback ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListRegionInstanceGroupsRequest): Promise<google.cloud.compute.v1.RegionInstanceGroupList>;

Calls List.

Parameter
NameDescription
request IListRegionInstanceGroupsRequest

ListRegionInstanceGroupsRequest message or plain object

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

Promise

listInstances(request, callback)

public listInstances(request: google.cloud.compute.v1.IListInstancesRegionInstanceGroupsRequest, callback: google.cloud.compute.v1.RegionInstanceGroups.ListInstancesCallback): void;

Calls ListInstances.

Parameters
NameDescription
request IListInstancesRegionInstanceGroupsRequest

ListInstancesRegionInstanceGroupsRequest message or plain object

callback ListInstancesCallback

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

Returns
TypeDescription
void

listInstances(request)

public listInstances(request: google.cloud.compute.v1.IListInstancesRegionInstanceGroupsRequest): Promise<google.cloud.compute.v1.RegionInstanceGroupsListInstances>;

Calls ListInstances.

Parameter
NameDescription
request IListInstancesRegionInstanceGroupsRequest

ListInstancesRegionInstanceGroupsRequest message or plain object

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

Promise

setNamedPorts(request, callback)

public setNamedPorts(request: google.cloud.compute.v1.ISetNamedPortsRegionInstanceGroupRequest, callback: google.cloud.compute.v1.RegionInstanceGroups.SetNamedPortsCallback): void;

Calls SetNamedPorts.

Parameters
NameDescription
request ISetNamedPortsRegionInstanceGroupRequest

SetNamedPortsRegionInstanceGroupRequest message or plain object

callback SetNamedPortsCallback

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

Returns
TypeDescription
void

setNamedPorts(request)

public setNamedPorts(request: google.cloud.compute.v1.ISetNamedPortsRegionInstanceGroupRequest): Promise<google.cloud.compute.v1.Operation>;

Calls SetNamedPorts.

Parameter
NameDescription
request ISetNamedPortsRegionInstanceGroupRequest

SetNamedPortsRegionInstanceGroupRequest message or plain object

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

Promise