Class protos.google.cloud.compute.v1.RegionInstanceGroups

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 google.cloud.compute.v1.IGetRegionInstanceGroupRequest

GetRegionInstanceGroupRequest message or plain object

callback google.cloud.compute.v1.RegionInstanceGroups.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 google.cloud.compute.v1.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 google.cloud.compute.v1.IListRegionInstanceGroupsRequest

ListRegionInstanceGroupsRequest message or plain object

callback google.cloud.compute.v1.RegionInstanceGroups.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 google.cloud.compute.v1.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 google.cloud.compute.v1.IListInstancesRegionInstanceGroupsRequest

ListInstancesRegionInstanceGroupsRequest message or plain object

callback google.cloud.compute.v1.RegionInstanceGroups.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 google.cloud.compute.v1.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 google.cloud.compute.v1.RegionInstanceGroups.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