Compute Engine v1 API - Class InstanceGroups.InstanceGroupsBase (2.12.0)

[BindServiceMethod(typeof(InstanceGroups), "BindService")]
public abstract class InstanceGroups.InstanceGroupsBase

Reference documentation and code samples for the Compute Engine v1 API class InstanceGroups.InstanceGroupsBase.

Base class for server-side implementations of InstanceGroups

Inheritance

object > InstanceGroups.InstanceGroupsBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

AddInstances(AddInstancesInstanceGroupRequest, ServerCallContext)

public virtual Task<Operation> AddInstances(AddInstancesInstanceGroupRequest request, ServerCallContext context)

Adds a list of instances to the specified instance group. All of the instances in the instance group must be in the same network/subnetwork. Read Adding instances for more information.

Parameters
NameDescription
requestAddInstancesInstanceGroupRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

AggregatedList(AggregatedListInstanceGroupsRequest, ServerCallContext)

public virtual Task<InstanceGroupAggregatedList> AggregatedList(AggregatedListInstanceGroupsRequest request, ServerCallContext context)

Retrieves the list of instance groups and sorts them by zone.

Parameters
NameDescription
requestAggregatedListInstanceGroupsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskInstanceGroupAggregatedList

The response to send back to the client (wrapped by a task).

Delete(DeleteInstanceGroupRequest, ServerCallContext)

public virtual Task<Operation> Delete(DeleteInstanceGroupRequest request, ServerCallContext context)

Deletes the specified instance group. The instances in the group are not deleted. Note that instance group must not belong to a backend service. Read Deleting an instance group for more information.

Parameters
NameDescription
requestDeleteInstanceGroupRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

Get(GetInstanceGroupRequest, ServerCallContext)

public virtual Task<InstanceGroup> Get(GetInstanceGroupRequest request, ServerCallContext context)

Returns the specified zonal instance group. Get a list of available zonal instance groups by making a list() request. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead.

Parameters
NameDescription
requestGetInstanceGroupRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskInstanceGroup

The response to send back to the client (wrapped by a task).

Insert(InsertInstanceGroupRequest, ServerCallContext)

public virtual Task<Operation> Insert(InsertInstanceGroupRequest request, ServerCallContext context)

Creates an instance group in the specified project using the parameters that are included in the request.

Parameters
NameDescription
requestInsertInstanceGroupRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

List(ListInstanceGroupsRequest, ServerCallContext)

public virtual Task<InstanceGroupList> List(ListInstanceGroupsRequest request, ServerCallContext context)

Retrieves the list of zonal instance group resources contained within the specified zone. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead.

Parameters
NameDescription
requestListInstanceGroupsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskInstanceGroupList

The response to send back to the client (wrapped by a task).

ListInstances(ListInstancesInstanceGroupsRequest, ServerCallContext)

public virtual Task<InstanceGroupsListInstances> ListInstances(ListInstancesInstanceGroupsRequest request, ServerCallContext context)

Lists the instances in the specified instance group. The orderBy query parameter is not supported. The filter query parameter is supported, but only for expressions that use eq (equal) or ne (not equal) operators.

Parameters
NameDescription
requestListInstancesInstanceGroupsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskInstanceGroupsListInstances

The response to send back to the client (wrapped by a task).

RemoveInstances(RemoveInstancesInstanceGroupRequest, ServerCallContext)

public virtual Task<Operation> RemoveInstances(RemoveInstancesInstanceGroupRequest request, ServerCallContext context)

Removes one or more instances from the specified instance group, but does not delete those instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration before the VM instance is removed or deleted.

Parameters
NameDescription
requestRemoveInstancesInstanceGroupRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

SetNamedPorts(SetNamedPortsInstanceGroupRequest, ServerCallContext)

public virtual Task<Operation> SetNamedPorts(SetNamedPortsInstanceGroupRequest request, ServerCallContext context)

Sets the named ports for the specified instance group.

Parameters
NameDescription
requestSetNamedPortsInstanceGroupRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).