public class InstanceGroupsClient : ClientBase<InstanceGroups.InstanceGroupsClient>Client for InstanceGroups
Inheritance
Object > ClientBase > ClientBase<InstanceGroups.InstanceGroupsClient> > InstanceGroups.InstanceGroupsClientNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
InstanceGroupsClient()
protected InstanceGroupsClient()Protected parameterless constructor to allow creation of test doubles.
InstanceGroupsClient(CallInvoker)
public InstanceGroupsClient(CallInvoker callInvoker)Creates a new client for InstanceGroups that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description |
callInvoker |
CallInvokerThe callInvoker to use to make remote calls. |
InstanceGroupsClient(ChannelBase)
public InstanceGroupsClient(ChannelBase channel)Creates a new client for InstanceGroups
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
InstanceGroupsClient(ClientBase.ClientBaseConfiguration)
protected InstanceGroupsClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBase.ClientBaseConfigurationThe client configuration. |
Methods
AddInstances(AddInstancesInstanceGroupRequest, CallOptions)
public virtual Operation AddInstances(AddInstancesInstanceGroupRequest request, CallOptions options)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 | |
|---|---|
| Name | Description |
request |
AddInstancesInstanceGroupRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
AddInstances(AddInstancesInstanceGroupRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation AddInstances(AddInstancesInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 | |
|---|---|
| Name | Description |
request |
AddInstancesInstanceGroupRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
AddInstancesAsync(AddInstancesInstanceGroupRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> AddInstancesAsync(AddInstancesInstanceGroupRequest request, CallOptions options)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 | |
|---|---|
| Name | Description |
request |
AddInstancesInstanceGroupRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Operation> |
The call object. |
AddInstancesAsync(AddInstancesInstanceGroupRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> AddInstancesAsync(AddInstancesInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 | |
|---|---|
| Name | Description |
request |
AddInstancesInstanceGroupRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Operation> |
The call object. |
AggregatedList(AggregatedListInstanceGroupsRequest, CallOptions)
public virtual InstanceGroupAggregatedList AggregatedList(AggregatedListInstanceGroupsRequest request, CallOptions options)Retrieves the list of instance groups and sorts them by zone.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListInstanceGroupsRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupAggregatedList |
The response received from the server. |
AggregatedList(AggregatedListInstanceGroupsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual InstanceGroupAggregatedList AggregatedList(AggregatedListInstanceGroupsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Retrieves the list of instance groups and sorts them by zone.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListInstanceGroupsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupAggregatedList |
The response received from the server. |
AggregatedListAsync(AggregatedListInstanceGroupsRequest, CallOptions)
public virtual AsyncUnaryCall<InstanceGroupAggregatedList> AggregatedListAsync(AggregatedListInstanceGroupsRequest request, CallOptions options)Retrieves the list of instance groups and sorts them by zone.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListInstanceGroupsRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<InstanceGroupAggregatedList> |
The call object. |
AggregatedListAsync(AggregatedListInstanceGroupsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<InstanceGroupAggregatedList> AggregatedListAsync(AggregatedListInstanceGroupsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Retrieves the list of instance groups and sorts them by zone.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListInstanceGroupsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<InstanceGroupAggregatedList> |
The call object. |
CreateOperationsClientForZoneOperations()
public virtual Operations.OperationsClient CreateOperationsClientForZoneOperations()Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to ZoneOperations.
| Returns | |
|---|---|
| Type | Description |
Operations.OperationsClient |
A new Operations client for the same target as this client. |
Delete(DeleteInstanceGroupRequest, CallOptions)
public virtual Operation Delete(DeleteInstanceGroupRequest request, CallOptions options)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 | |
|---|---|
| Name | Description |
request |
DeleteInstanceGroupRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
Delete(DeleteInstanceGroupRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation Delete(DeleteInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 | |
|---|---|
| Name | Description |
request |
DeleteInstanceGroupRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
DeleteAsync(DeleteInstanceGroupRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteInstanceGroupRequest request, CallOptions options)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 | |
|---|---|
| Name | Description |
request |
DeleteInstanceGroupRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Operation> |
The call object. |
DeleteAsync(DeleteInstanceGroupRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 | |
|---|---|
| Name | Description |
request |
DeleteInstanceGroupRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Operation> |
The call object. |
Get(GetInstanceGroupRequest, CallOptions)
public virtual InstanceGroup Get(GetInstanceGroupRequest request, CallOptions options)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 | |
|---|---|
| Name | Description |
request |
GetInstanceGroupRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroup |
The response received from the server. |
Get(GetInstanceGroupRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual InstanceGroup Get(GetInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 | |
|---|---|
| Name | Description |
request |
GetInstanceGroupRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroup |
The response received from the server. |
GetAsync(GetInstanceGroupRequest, CallOptions)
public virtual AsyncUnaryCall<InstanceGroup> GetAsync(GetInstanceGroupRequest request, CallOptions options)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 | |
|---|---|
| Name | Description |
request |
GetInstanceGroupRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<InstanceGroup> |
The call object. |
GetAsync(GetInstanceGroupRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<InstanceGroup> GetAsync(GetInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 | |
|---|---|
| Name | Description |
request |
GetInstanceGroupRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<InstanceGroup> |
The call object. |
Insert(InsertInstanceGroupRequest, CallOptions)
public virtual Operation Insert(InsertInstanceGroupRequest request, CallOptions options)Creates an instance group in the specified project using the parameters that are included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertInstanceGroupRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
Insert(InsertInstanceGroupRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation Insert(InsertInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Creates an instance group in the specified project using the parameters that are included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertInstanceGroupRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
InsertAsync(InsertInstanceGroupRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> InsertAsync(InsertInstanceGroupRequest request, CallOptions options)Creates an instance group in the specified project using the parameters that are included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertInstanceGroupRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Operation> |
The call object. |
InsertAsync(InsertInstanceGroupRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> InsertAsync(InsertInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Creates an instance group in the specified project using the parameters that are included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertInstanceGroupRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Operation> |
The call object. |
List(ListInstanceGroupsRequest, CallOptions)
public virtual InstanceGroupList List(ListInstanceGroupsRequest request, CallOptions options)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 | |
|---|---|
| Name | Description |
request |
ListInstanceGroupsRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupList |
The response received from the server. |
List(ListInstanceGroupsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual InstanceGroupList List(ListInstanceGroupsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 | |
|---|---|
| Name | Description |
request |
ListInstanceGroupsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupList |
The response received from the server. |
ListAsync(ListInstanceGroupsRequest, CallOptions)
public virtual AsyncUnaryCall<InstanceGroupList> ListAsync(ListInstanceGroupsRequest request, CallOptions options)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 | |
|---|---|
| Name | Description |
request |
ListInstanceGroupsRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<InstanceGroupList> |
The call object. |
ListAsync(ListInstanceGroupsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<InstanceGroupList> ListAsync(ListInstanceGroupsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 | |
|---|---|
| Name | Description |
request |
ListInstanceGroupsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<InstanceGroupList> |
The call object. |
ListInstances(ListInstancesInstanceGroupsRequest, CallOptions)
public virtual InstanceGroupsListInstances ListInstances(ListInstancesInstanceGroupsRequest request, CallOptions options)Lists the instances in the specified instance group. The orderBy query parameter is not supported.
| Parameters | |
|---|---|
| Name | Description |
request |
ListInstancesInstanceGroupsRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupsListInstances |
The response received from the server. |
ListInstances(ListInstancesInstanceGroupsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual InstanceGroupsListInstances ListInstances(ListInstancesInstanceGroupsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Lists the instances in the specified instance group. The orderBy query parameter is not supported.
| Parameters | |
|---|---|
| Name | Description |
request |
ListInstancesInstanceGroupsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupsListInstances |
The response received from the server. |
ListInstancesAsync(ListInstancesInstanceGroupsRequest, CallOptions)
public virtual AsyncUnaryCall<InstanceGroupsListInstances> ListInstancesAsync(ListInstancesInstanceGroupsRequest request, CallOptions options)Lists the instances in the specified instance group. The orderBy query parameter is not supported.
| Parameters | |
|---|---|
| Name | Description |
request |
ListInstancesInstanceGroupsRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<InstanceGroupsListInstances> |
The call object. |
ListInstancesAsync(ListInstancesInstanceGroupsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<InstanceGroupsListInstances> ListInstancesAsync(ListInstancesInstanceGroupsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Lists the instances in the specified instance group. The orderBy query parameter is not supported.
| Parameters | |
|---|---|
| Name | Description |
request |
ListInstancesInstanceGroupsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<InstanceGroupsListInstances> |
The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override InstanceGroups.InstanceGroupsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBase.ClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
InstanceGroups.InstanceGroupsClient |
|
RemoveInstances(RemoveInstancesInstanceGroupRequest, CallOptions)
public virtual Operation RemoveInstances(RemoveInstancesInstanceGroupRequest request, CallOptions options)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 | |
|---|---|
| Name | Description |
request |
RemoveInstancesInstanceGroupRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
RemoveInstances(RemoveInstancesInstanceGroupRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation RemoveInstances(RemoveInstancesInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 | |
|---|---|
| Name | Description |
request |
RemoveInstancesInstanceGroupRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
RemoveInstancesAsync(RemoveInstancesInstanceGroupRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> RemoveInstancesAsync(RemoveInstancesInstanceGroupRequest request, CallOptions options)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 | |
|---|---|
| Name | Description |
request |
RemoveInstancesInstanceGroupRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Operation> |
The call object. |
RemoveInstancesAsync(RemoveInstancesInstanceGroupRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> RemoveInstancesAsync(RemoveInstancesInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 | |
|---|---|
| Name | Description |
request |
RemoveInstancesInstanceGroupRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Operation> |
The call object. |
SetNamedPorts(SetNamedPortsInstanceGroupRequest, CallOptions)
public virtual Operation SetNamedPorts(SetNamedPortsInstanceGroupRequest request, CallOptions options)Sets the named ports for the specified instance group.
| Parameters | |
|---|---|
| Name | Description |
request |
SetNamedPortsInstanceGroupRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
SetNamedPorts(SetNamedPortsInstanceGroupRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation SetNamedPorts(SetNamedPortsInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Sets the named ports for the specified instance group.
| Parameters | |
|---|---|
| Name | Description |
request |
SetNamedPortsInstanceGroupRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
SetNamedPortsAsync(SetNamedPortsInstanceGroupRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> SetNamedPortsAsync(SetNamedPortsInstanceGroupRequest request, CallOptions options)Sets the named ports for the specified instance group.
| Parameters | |
|---|---|
| Name | Description |
request |
SetNamedPortsInstanceGroupRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Operation> |
The call object. |
SetNamedPortsAsync(SetNamedPortsInstanceGroupRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> SetNamedPortsAsync(SetNamedPortsInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Sets the named ports for the specified instance group.
| Parameters | |
|---|---|
| Name | Description |
request |
SetNamedPortsInstanceGroupRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Operation> |
The call object. |