Compute Engine v1 API - Class InstanceGroups.InstanceGroupsClient (2.10.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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

InstanceGroupsClient(ChannelBase)

public InstanceGroupsClient(ChannelBase channel)

Creates a new client for InstanceGroups

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

InstanceGroupsClient(ClientBaseConfiguration)

protected InstanceGroupsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

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
NameDescription
requestAddInstancesInstanceGroupRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestAddInstancesInstanceGroupRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestAddInstancesInstanceGroupRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestAddInstancesInstanceGroupRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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.

Parameters
NameDescription
requestAggregatedListInstanceGroupsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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.

Parameters
NameDescription
requestAggregatedListInstanceGroupsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestAggregatedListInstanceGroupsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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.

Parameters
NameDescription
requestAggregatedListInstanceGroupsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
TypeDescription
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
NameDescription
requestDeleteInstanceGroupRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestDeleteInstanceGroupRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestDeleteInstanceGroupRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestDeleteInstanceGroupRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestGetInstanceGroupRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetInstanceGroupRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestGetInstanceGroupRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetInstanceGroupRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestInsertInstanceGroupRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestInsertInstanceGroupRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestInsertInstanceGroupRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestInsertInstanceGroupRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListInstanceGroupsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListInstanceGroupsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListInstanceGroupsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListInstanceGroupsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListInstancesInstanceGroupsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListInstancesInstanceGroupsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListInstancesInstanceGroupsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListInstancesInstanceGroupsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallInstanceGroupsListInstances

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
InstanceGroupsInstanceGroupsClient
Overrides

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
NameDescription
requestRemoveInstancesInstanceGroupRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestRemoveInstancesInstanceGroupRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestRemoveInstancesInstanceGroupRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestRemoveInstancesInstanceGroupRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestSetNamedPortsInstanceGroupRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestSetNamedPortsInstanceGroupRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestSetNamedPortsInstanceGroupRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestSetNamedPortsInstanceGroupRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.