Class RegionInstanceGroupManagers.RegionInstanceGroupManagersBase (1.3.0)

[BindServiceMethod(typeof(RegionInstanceGroupManagers), "BindService")]
public abstract class RegionInstanceGroupManagersBase

Base class for server-side implementations of RegionInstanceGroupManagers

Inheritance

Object > RegionInstanceGroupManagers.RegionInstanceGroupManagersBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

AbandonInstances(AbandonInstancesRegionInstanceGroupManagerRequest, ServerCallContext)

public virtual Task<Operation> AbandonInstances(AbandonInstancesRegionInstanceGroupManagerRequest request, ServerCallContext context)

Flags the specified instances to be immediately removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method. 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 has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.

Parameters
NameDescription
requestAbandonInstancesRegionInstanceGroupManagerRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

ApplyUpdatesToInstances(ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest, ServerCallContext)

public virtual Task<Operation> ApplyUpdatesToInstances(ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest request, ServerCallContext context)

Apply updates to selected instances the managed instance group.

Parameters
NameDescription
requestApplyUpdatesToInstancesRegionInstanceGroupManagerRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

CreateInstances(CreateInstancesRegionInstanceGroupManagerRequest, ServerCallContext)

public virtual Task<Operation> CreateInstances(CreateInstancesRegionInstanceGroupManagerRequest request, ServerCallContext context)

Creates instances with per-instance configs in this regional managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of the creating or actions with the listmanagedinstances method.

Parameters
NameDescription
requestCreateInstancesRegionInstanceGroupManagerRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

Delete(DeleteRegionInstanceGroupManagerRequest, ServerCallContext)

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

Deletes the specified managed instance group and all of the instances in that group.

Parameters
NameDescription
requestDeleteRegionInstanceGroupManagerRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

DeleteInstances(DeleteInstancesRegionInstanceGroupManagerRequest, ServerCallContext)

public virtual Task<Operation> DeleteInstances(DeleteInstancesRegionInstanceGroupManagerRequest request, ServerCallContext context)

Flags the specified instances in the managed instance group to be immediately deleted. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. The deleteInstances operation is marked DONE if the deleteInstances request is successful. The underlying actions take additional time. You must separately verify the status of the deleting action with the listmanagedinstances method. 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 has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.

Parameters
NameDescription
requestDeleteInstancesRegionInstanceGroupManagerRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

DeletePerInstanceConfigs(DeletePerInstanceConfigsRegionInstanceGroupManagerRequest, ServerCallContext)

public virtual Task<Operation> DeletePerInstanceConfigs(DeletePerInstanceConfigsRegionInstanceGroupManagerRequest request, ServerCallContext context)

Deletes selected per-instance configs for the managed instance group.

Parameters
NameDescription
requestDeletePerInstanceConfigsRegionInstanceGroupManagerRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

Get(GetRegionInstanceGroupManagerRequest, ServerCallContext)

public virtual Task<InstanceGroupManager> Get(GetRegionInstanceGroupManagerRequest request, ServerCallContext context)

Returns all of the details about the specified managed instance group.

Parameters
NameDescription
requestGetRegionInstanceGroupManagerRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<InstanceGroupManager>

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

Insert(InsertRegionInstanceGroupManagerRequest, ServerCallContext)

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

Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method. A regional managed instance group can contain up to 2000 instances.

Parameters
NameDescription
requestInsertRegionInstanceGroupManagerRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

List(ListRegionInstanceGroupManagersRequest, ServerCallContext)

public virtual Task<RegionInstanceGroupManagerList> List(ListRegionInstanceGroupManagersRequest request, ServerCallContext context)

Retrieves the list of managed instance groups that are contained within the specified region.

Parameters
NameDescription
requestListRegionInstanceGroupManagersRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<RegionInstanceGroupManagerList>

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

ListErrors(ListErrorsRegionInstanceGroupManagersRequest, ServerCallContext)

public virtual Task<RegionInstanceGroupManagersListErrorsResponse> ListErrors(ListErrorsRegionInstanceGroupManagersRequest request, ServerCallContext context)

Lists all errors thrown by actions on instances for a given regional managed instance group. The filter and orderBy query parameters are not supported.

Parameters
NameDescription
requestListErrorsRegionInstanceGroupManagersRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<RegionInstanceGroupManagersListErrorsResponse>

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

ListManagedInstances(ListManagedInstancesRegionInstanceGroupManagersRequest, ServerCallContext)

public virtual Task<RegionInstanceGroupManagersListInstancesResponse> ListManagedInstances(ListManagedInstancesRegionInstanceGroupManagersRequest request, ServerCallContext context)

Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported.

Parameters
NameDescription
requestListManagedInstancesRegionInstanceGroupManagersRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<RegionInstanceGroupManagersListInstancesResponse>

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

ListPerInstanceConfigs(ListPerInstanceConfigsRegionInstanceGroupManagersRequest, ServerCallContext)

public virtual Task<RegionInstanceGroupManagersListInstanceConfigsResp> ListPerInstanceConfigs(ListPerInstanceConfigsRegionInstanceGroupManagersRequest request, ServerCallContext context)

Lists all of the per-instance configs defined for the managed instance group. The orderBy query parameter is not supported.

Parameters
NameDescription
requestListPerInstanceConfigsRegionInstanceGroupManagersRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<RegionInstanceGroupManagersListInstanceConfigsResp>

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

Patch(PatchRegionInstanceGroupManagerRequest, ServerCallContext)

public virtual Task<Operation> Patch(PatchRegionInstanceGroupManagerRequest request, ServerCallContext context)

Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listmanagedinstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG.

Parameters
NameDescription
requestPatchRegionInstanceGroupManagerRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

PatchPerInstanceConfigs(PatchPerInstanceConfigsRegionInstanceGroupManagerRequest, ServerCallContext)

public virtual Task<Operation> PatchPerInstanceConfigs(PatchPerInstanceConfigsRegionInstanceGroupManagerRequest request, ServerCallContext context)

Inserts or patches per-instance configs for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.

Parameters
NameDescription
requestPatchPerInstanceConfigsRegionInstanceGroupManagerRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

RecreateInstances(RecreateInstancesRegionInstanceGroupManagerRequest, ServerCallContext)

public virtual Task<Operation> RecreateInstances(RecreateInstancesRegionInstanceGroupManagerRequest request, ServerCallContext context)

Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed 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 has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.

Parameters
NameDescription
requestRecreateInstancesRegionInstanceGroupManagerRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

Resize(ResizeRegionInstanceGroupManagerRequest, ServerCallContext)

public virtual Task<Operation> Resize(ResizeRegionInstanceGroupManagerRequest request, ServerCallContext context)

Changes the intended size of the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances. The resize operation is marked DONE if the resize request is successful. The underlying actions take additional time. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method. 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 has elapsed before the VM instance is removed or deleted.

Parameters
NameDescription
requestResizeRegionInstanceGroupManagerRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

SetInstanceTemplate(SetInstanceTemplateRegionInstanceGroupManagerRequest, ServerCallContext)

public virtual Task<Operation> SetInstanceTemplate(SetInstanceTemplateRegionInstanceGroupManagerRequest request, ServerCallContext context)

Sets the instance template to use when creating new instances or recreating instances in this group. Existing instances are not affected.

Parameters
NameDescription
requestSetInstanceTemplateRegionInstanceGroupManagerRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

SetTargetPools(SetTargetPoolsRegionInstanceGroupManagerRequest, ServerCallContext)

public virtual Task<Operation> SetTargetPools(SetTargetPoolsRegionInstanceGroupManagerRequest request, ServerCallContext context)

Modifies the target pools to which all new instances in this group are assigned. Existing instances in the group are not affected.

Parameters
NameDescription
requestSetTargetPoolsRegionInstanceGroupManagerRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

UpdatePerInstanceConfigs(UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest, ServerCallContext)

public virtual Task<Operation> UpdatePerInstanceConfigs(UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest request, ServerCallContext context)

Inserts or updates per-instance configs for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.

Parameters
NameDescription
requestUpdatePerInstanceConfigsRegionInstanceGroupManagerRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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