Compute Engine v1 API - Class InstanceGroups.InstanceGroupsClient (2.17.0)

public class InstanceGroups.InstanceGroupsClient : ClientBase<InstanceGroups.InstanceGroupsClient>

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

Client for InstanceGroups

Inheritance

object > ClientBase > ClientBaseInstanceGroupsInstanceGroupsClient > InstanceGroups.InstanceGroupsClient

Namespace

Google.Cloud.Compute.V1

Assembly

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 CallInvoker

The callInvoker to use to make remote calls.

InstanceGroupsClient(ChannelBase)

public InstanceGroupsClient(ChannelBase channel)

Creates a new client for InstanceGroups

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

InstanceGroupsClient(ClientBaseConfiguration)

protected InstanceGroupsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The 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 AddInstancesInstanceGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

AddInstances(AddInstancesInstanceGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation AddInstances(AddInstancesInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 AddInstancesInstanceGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An 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 AddInstancesInstanceGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

AddInstancesAsync(AddInstancesInstanceGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> AddInstancesAsync(AddInstancesInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 AddInstancesInstanceGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

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. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListInstanceGroupsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
InstanceGroupAggregatedList

The response received from the server.

AggregatedList(AggregatedListInstanceGroupsRequest, Metadata, DateTime?, CancellationToken)

public virtual InstanceGroupAggregatedList AggregatedList(AggregatedListInstanceGroupsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the list of instance groups and sorts them by zone. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListInstanceGroupsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An 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. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListInstanceGroupsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallInstanceGroupAggregatedList

The call object.

AggregatedListAsync(AggregatedListInstanceGroupsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<InstanceGroupAggregatedList> AggregatedListAsync(AggregatedListInstanceGroupsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the list of instance groups and sorts them by zone. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListInstanceGroupsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallInstanceGroupAggregatedList

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
OperationsOperationsClient

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 DeleteInstanceGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Delete(DeleteInstanceGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Delete(DeleteInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 DeleteInstanceGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An 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 DeleteInstanceGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteInstanceGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 DeleteInstanceGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

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 GetInstanceGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
InstanceGroup

The response received from the server.

Get(GetInstanceGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual InstanceGroup Get(GetInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 GetInstanceGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An 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 GetInstanceGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallInstanceGroup

The call object.

GetAsync(GetInstanceGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<InstanceGroup> GetAsync(GetInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 GetInstanceGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallInstanceGroup

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 InsertInstanceGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Insert(InsertInstanceGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Insert(InsertInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request InsertInstanceGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An 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 InsertInstanceGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertInstanceGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request InsertInstanceGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

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 ListInstanceGroupsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
InstanceGroupList

The response received from the server.

List(ListInstanceGroupsRequest, Metadata, DateTime?, CancellationToken)

public virtual InstanceGroupList List(ListInstanceGroupsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 ListInstanceGroupsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An 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 ListInstanceGroupsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallInstanceGroupList

The call object.

ListAsync(ListInstanceGroupsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<InstanceGroupList> ListAsync(ListInstanceGroupsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 ListInstanceGroupsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallInstanceGroupList

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. The filter query parameter is supported, but only for expressions that use eq (equal) or ne (not equal) operators.

Parameters
Name Description
request ListInstancesInstanceGroupsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
InstanceGroupsListInstances

The response received from the server.

ListInstances(ListInstancesInstanceGroupsRequest, Metadata, DateTime?, CancellationToken)

public virtual InstanceGroupsListInstances ListInstances(ListInstancesInstanceGroupsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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
Name Description
request ListInstancesInstanceGroupsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An 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. The filter query parameter is supported, but only for expressions that use eq (equal) or ne (not equal) operators.

Parameters
Name Description
request ListInstancesInstanceGroupsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallInstanceGroupsListInstances

The call object.

ListInstancesAsync(ListInstancesInstanceGroupsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<InstanceGroupsListInstances> ListInstancesAsync(ListInstancesInstanceGroupsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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
Name Description
request ListInstancesInstanceGroupsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallInstanceGroupsListInstances

The call object.

NewInstance(ClientBaseConfiguration)

protected override InstanceGroups.InstanceGroupsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
InstanceGroupsInstanceGroupsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.InstanceGroups.InstanceGroupsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

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 RemoveInstancesInstanceGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

RemoveInstances(RemoveInstancesInstanceGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation RemoveInstances(RemoveInstancesInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 RemoveInstancesInstanceGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An 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 RemoveInstancesInstanceGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

RemoveInstancesAsync(RemoveInstancesInstanceGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> RemoveInstancesAsync(RemoveInstancesInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 RemoveInstancesInstanceGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

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 SetNamedPortsInstanceGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

SetNamedPorts(SetNamedPortsInstanceGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation SetNamedPorts(SetNamedPortsInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Sets the named ports for the specified instance group.

Parameters
Name Description
request SetNamedPortsInstanceGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An 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 SetNamedPortsInstanceGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

SetNamedPortsAsync(SetNamedPortsInstanceGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> SetNamedPortsAsync(SetNamedPortsInstanceGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Sets the named ports for the specified instance group.

Parameters
Name Description
request SetNamedPortsInstanceGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.