Compute Engine v1 API - Class Routers.RoutersClient (2.4.0)

public class RoutersClient : ClientBase<Routers.RoutersClient>

Reference documentation and code samples for the Compute Engine v1 API class Routers.RoutersClient.

Client for Routers

Inheritance

Object > ClientBase > ClientBase<Routers.RoutersClient> > Routers.RoutersClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

RoutersClient()

protected RoutersClient()

Protected parameterless constructor to allow creation of test doubles.

RoutersClient(CallInvoker)

public RoutersClient(CallInvoker callInvoker)

Creates a new client for Routers that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

RoutersClient(ChannelBase)

public RoutersClient(ChannelBase channel)

Creates a new client for Routers

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

RoutersClient(ClientBase.ClientBaseConfiguration)

protected RoutersClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

AggregatedList(AggregatedListRoutersRequest, CallOptions)

public virtual RouterAggregatedList AggregatedList(AggregatedListRoutersRequest request, CallOptions options)

Retrieves an aggregated list of routers.

Parameters
NameDescription
requestAggregatedListRoutersRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
RouterAggregatedList

The response received from the server.

AggregatedList(AggregatedListRoutersRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Retrieves an aggregated list of routers.

Parameters
NameDescription
requestAggregatedListRoutersRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
RouterAggregatedList

The response received from the server.

AggregatedListAsync(AggregatedListRoutersRequest, CallOptions)

public virtual AsyncUnaryCall<RouterAggregatedList> AggregatedListAsync(AggregatedListRoutersRequest request, CallOptions options)

Retrieves an aggregated list of routers.

Parameters
NameDescription
requestAggregatedListRoutersRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<RouterAggregatedList>

The call object.

AggregatedListAsync(AggregatedListRoutersRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Retrieves an aggregated list of routers.

Parameters
NameDescription
requestAggregatedListRoutersRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
AsyncUnaryCall<RouterAggregatedList>

The call object.

CreateOperationsClientForRegionOperations()

public virtual Operations.OperationsClient CreateOperationsClientForRegionOperations()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to RegionOperations.

Returns
TypeDescription
Operations.OperationsClient

A new Operations client for the same target as this client.

Delete(DeleteRouterRequest, CallOptions)

public virtual Operation Delete(DeleteRouterRequest request, CallOptions options)

Deletes the specified Router resource.

Parameters
NameDescription
requestDeleteRouterRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Delete(DeleteRouterRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Deletes the specified Router resource.

Parameters
NameDescription
requestDeleteRouterRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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(DeleteRouterRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteRouterRequest request, CallOptions options)

Deletes the specified Router resource.

Parameters
NameDescription
requestDeleteRouterRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

DeleteAsync(DeleteRouterRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Deletes the specified Router resource.

Parameters
NameDescription
requestDeleteRouterRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

Get(GetRouterRequest, CallOptions)

public virtual Router Get(GetRouterRequest request, CallOptions options)

Returns the specified Router resource. Gets a list of available routers by making a list() request.

Parameters
NameDescription
requestGetRouterRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Router

The response received from the server.

Get(GetRouterRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Returns the specified Router resource. Gets a list of available routers by making a list() request.

Parameters
NameDescription
requestGetRouterRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
Router

The response received from the server.

GetAsync(GetRouterRequest, CallOptions)

public virtual AsyncUnaryCall<Router> GetAsync(GetRouterRequest request, CallOptions options)

Returns the specified Router resource. Gets a list of available routers by making a list() request.

Parameters
NameDescription
requestGetRouterRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Router>

The call object.

GetAsync(GetRouterRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Returns the specified Router resource. Gets a list of available routers by making a list() request.

Parameters
NameDescription
requestGetRouterRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
AsyncUnaryCall<Router>

The call object.

GetNatMappingInfo(GetNatMappingInfoRoutersRequest, CallOptions)

public virtual VmEndpointNatMappingsList GetNatMappingInfo(GetNatMappingInfoRoutersRequest request, CallOptions options)

Retrieves runtime Nat mapping information of VM endpoints.

Parameters
NameDescription
requestGetNatMappingInfoRoutersRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
VmEndpointNatMappingsList

The response received from the server.

GetNatMappingInfo(GetNatMappingInfoRoutersRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual VmEndpointNatMappingsList GetNatMappingInfo(GetNatMappingInfoRoutersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Retrieves runtime Nat mapping information of VM endpoints.

Parameters
NameDescription
requestGetNatMappingInfoRoutersRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
VmEndpointNatMappingsList

The response received from the server.

GetNatMappingInfoAsync(GetNatMappingInfoRoutersRequest, CallOptions)

public virtual AsyncUnaryCall<VmEndpointNatMappingsList> GetNatMappingInfoAsync(GetNatMappingInfoRoutersRequest request, CallOptions options)

Retrieves runtime Nat mapping information of VM endpoints.

Parameters
NameDescription
requestGetNatMappingInfoRoutersRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<VmEndpointNatMappingsList>

The call object.

GetNatMappingInfoAsync(GetNatMappingInfoRoutersRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<VmEndpointNatMappingsList> GetNatMappingInfoAsync(GetNatMappingInfoRoutersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Retrieves runtime Nat mapping information of VM endpoints.

Parameters
NameDescription
requestGetNatMappingInfoRoutersRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
AsyncUnaryCall<VmEndpointNatMappingsList>

The call object.

GetRouterStatus(GetRouterStatusRouterRequest, CallOptions)

public virtual RouterStatusResponse GetRouterStatus(GetRouterStatusRouterRequest request, CallOptions options)

Retrieves runtime information of the specified router.

Parameters
NameDescription
requestGetRouterStatusRouterRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
RouterStatusResponse

The response received from the server.

GetRouterStatus(GetRouterStatusRouterRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual RouterStatusResponse GetRouterStatus(GetRouterStatusRouterRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Retrieves runtime information of the specified router.

Parameters
NameDescription
requestGetRouterStatusRouterRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
RouterStatusResponse

The response received from the server.

GetRouterStatusAsync(GetRouterStatusRouterRequest, CallOptions)

public virtual AsyncUnaryCall<RouterStatusResponse> GetRouterStatusAsync(GetRouterStatusRouterRequest request, CallOptions options)

Retrieves runtime information of the specified router.

Parameters
NameDescription
requestGetRouterStatusRouterRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<RouterStatusResponse>

The call object.

GetRouterStatusAsync(GetRouterStatusRouterRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<RouterStatusResponse> GetRouterStatusAsync(GetRouterStatusRouterRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Retrieves runtime information of the specified router.

Parameters
NameDescription
requestGetRouterStatusRouterRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
AsyncUnaryCall<RouterStatusResponse>

The call object.

Insert(InsertRouterRequest, CallOptions)

public virtual Operation Insert(InsertRouterRequest request, CallOptions options)

Creates a Router resource in the specified project and region using the data included in the request.

Parameters
NameDescription
requestInsertRouterRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Insert(InsertRouterRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Creates a Router resource in the specified project and region using the data included in the request.

Parameters
NameDescription
requestInsertRouterRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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(InsertRouterRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertRouterRequest request, CallOptions options)

Creates a Router resource in the specified project and region using the data included in the request.

Parameters
NameDescription
requestInsertRouterRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

InsertAsync(InsertRouterRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Creates a Router resource in the specified project and region using the data included in the request.

Parameters
NameDescription
requestInsertRouterRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

List(ListRoutersRequest, CallOptions)

public virtual RouterList List(ListRoutersRequest request, CallOptions options)

Retrieves a list of Router resources available to the specified project.

Parameters
NameDescription
requestListRoutersRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
RouterList

The response received from the server.

List(ListRoutersRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Retrieves a list of Router resources available to the specified project.

Parameters
NameDescription
requestListRoutersRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
RouterList

The response received from the server.

ListAsync(ListRoutersRequest, CallOptions)

public virtual AsyncUnaryCall<RouterList> ListAsync(ListRoutersRequest request, CallOptions options)

Retrieves a list of Router resources available to the specified project.

Parameters
NameDescription
requestListRoutersRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<RouterList>

The call object.

ListAsync(ListRoutersRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Retrieves a list of Router resources available to the specified project.

Parameters
NameDescription
requestListRoutersRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
AsyncUnaryCall<RouterList>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override Routers.RoutersClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
Routers.RoutersClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.Routers.RoutersClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Patch(PatchRouterRequest, CallOptions)

public virtual Operation Patch(PatchRouterRequest request, CallOptions options)

Patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.

Parameters
NameDescription
requestPatchRouterRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Patch(PatchRouterRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.

Parameters
NameDescription
requestPatchRouterRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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.

PatchAsync(PatchRouterRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchRouterRequest request, CallOptions options)

Patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.

Parameters
NameDescription
requestPatchRouterRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

PatchAsync(PatchRouterRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.

Parameters
NameDescription
requestPatchRouterRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

Preview(PreviewRouterRequest, CallOptions)

public virtual RoutersPreviewResponse Preview(PreviewRouterRequest request, CallOptions options)

Preview fields auto-generated during router create and update operations. Calling this method does NOT create or update the router.

Parameters
NameDescription
requestPreviewRouterRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
RoutersPreviewResponse

The response received from the server.

Preview(PreviewRouterRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual RoutersPreviewResponse Preview(PreviewRouterRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Preview fields auto-generated during router create and update operations. Calling this method does NOT create or update the router.

Parameters
NameDescription
requestPreviewRouterRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
RoutersPreviewResponse

The response received from the server.

PreviewAsync(PreviewRouterRequest, CallOptions)

public virtual AsyncUnaryCall<RoutersPreviewResponse> PreviewAsync(PreviewRouterRequest request, CallOptions options)

Preview fields auto-generated during router create and update operations. Calling this method does NOT create or update the router.

Parameters
NameDescription
requestPreviewRouterRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<RoutersPreviewResponse>

The call object.

PreviewAsync(PreviewRouterRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<RoutersPreviewResponse> PreviewAsync(PreviewRouterRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Preview fields auto-generated during router create and update operations. Calling this method does NOT create or update the router.

Parameters
NameDescription
requestPreviewRouterRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
AsyncUnaryCall<RoutersPreviewResponse>

The call object.

Update(UpdateRouterRequest, CallOptions)

public virtual Operation Update(UpdateRouterRequest request, CallOptions options)

Updates the specified Router resource with the data included in the request. This method conforms to PUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload.

Parameters
NameDescription
requestUpdateRouterRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Update(UpdateRouterRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Updates the specified Router resource with the data included in the request. This method conforms to PUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload.

Parameters
NameDescription
requestUpdateRouterRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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.

UpdateAsync(UpdateRouterRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UpdateAsync(UpdateRouterRequest request, CallOptions options)

Updates the specified Router resource with the data included in the request. This method conforms to PUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload.

Parameters
NameDescription
requestUpdateRouterRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

UpdateAsync(UpdateRouterRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Updates the specified Router resource with the data included in the request. This method conforms to PUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload.

Parameters
NameDescription
requestUpdateRouterRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.