Represents a RegionInstanceGroups
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.RegionInstanceGroupsPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new RegionInstanceGroups 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): RegionInstanceGroups;
Creates new RegionInstanceGroups 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 |
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 | |
---|---|
Name | Description |
request |
IGetRegionInstanceGroupRequest
GetRegionInstanceGroupRequest message or plain object |
callback |
GetCallback
Node-style callback called with the error, if any, and InstanceGroup |
Returns | |
---|---|
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetRegionInstanceGroupRequest): Promise<google.cloud.compute.v1.InstanceGroup>;
Calls Get.
Parameter | |
---|---|
Name | Description |
request |
IGetRegionInstanceGroupRequest
GetRegionInstanceGroupRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IListRegionInstanceGroupsRequest
ListRegionInstanceGroupsRequest message or plain object |
callback |
ListCallback
Node-style callback called with the error, if any, and RegionInstanceGroupList |
Returns | |
---|---|
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListRegionInstanceGroupsRequest): Promise<google.cloud.compute.v1.RegionInstanceGroupList>;
Calls List.
Parameter | |
---|---|
Name | Description |
request |
IListRegionInstanceGroupsRequest
ListRegionInstanceGroupsRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IListInstancesRegionInstanceGroupsRequest
ListInstancesRegionInstanceGroupsRequest message or plain object |
callback |
ListInstancesCallback
Node-style callback called with the error, if any, and RegionInstanceGroupsListInstances |
Returns | |
---|---|
Type | Description |
void |
listInstances(request)
public listInstances(request: google.cloud.compute.v1.IListInstancesRegionInstanceGroupsRequest): Promise<google.cloud.compute.v1.RegionInstanceGroupsListInstances>;
Calls ListInstances.
Parameter | |
---|---|
Name | Description |
request |
IListInstancesRegionInstanceGroupsRequest
ListInstancesRegionInstanceGroupsRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
ISetNamedPortsRegionInstanceGroupRequest
SetNamedPortsRegionInstanceGroupRequest message or plain object |
callback |
SetNamedPortsCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
setNamedPorts(request)
public setNamedPorts(request: google.cloud.compute.v1.ISetNamedPortsRegionInstanceGroupRequest): Promise<google.cloud.compute.v1.Operation>;
Calls SetNamedPorts.
Parameter | |
---|---|
Name | Description |
request |
ISetNamedPortsRegionInstanceGroupRequest
SetNamedPortsRegionInstanceGroupRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> | Promise |