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

public class Routers.RoutersClient : ClientBase<Routers.RoutersClient>

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

Client for Routers

Inheritance

object > ClientBase > ClientBaseRoutersRoutersClient > Routers.RoutersClient

Namespace

GoogleCloudGoogle.Cloud.ComputeV1

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(ClientBaseConfiguration)

protected RoutersClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

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, DateTime?, CancellationToken)

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

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.

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
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
AsyncUnaryCallRouterAggregatedList

The call object.

AggregatedListAsync(AggregatedListRoutersRequest, Metadata, DateTime?, CancellationToken)

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

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.

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
AsyncUnaryCallRouterAggregatedList

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
OperationsOperationsClient

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, DateTime?, CancellationToken)

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

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.

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(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
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteRouterRequest, Metadata, DateTime?, CancellationToken)

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

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.

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

public virtual Router Get(GetRouterRequest request, CallOptions options)

Returns the specified Router resource.

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, DateTime?, CancellationToken)

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

Returns the specified Router resource.

Parameters
NameDescription
requestGetRouterRequest

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
Router

The response received from the server.

GetAsync(GetRouterRequest, CallOptions)

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

Returns the specified Router resource.

Parameters
NameDescription
requestGetRouterRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallRouter

The call object.

GetAsync(GetRouterRequest, Metadata, DateTime?, CancellationToken)

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

Returns the specified Router resource.

Parameters
NameDescription
requestGetRouterRequest

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
AsyncUnaryCallRouter

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, DateTime?, CancellationToken)

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

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.

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
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
AsyncUnaryCallVmEndpointNatMappingsList

The call object.

GetNatMappingInfoAsync(GetNatMappingInfoRoutersRequest, Metadata, DateTime?, CancellationToken)

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

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.

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
AsyncUnaryCallVmEndpointNatMappingsList

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, DateTime?, CancellationToken)

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

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.

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
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
AsyncUnaryCallRouterStatusResponse

The call object.

GetRouterStatusAsync(GetRouterStatusRouterRequest, Metadata, DateTime?, CancellationToken)

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

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.

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
AsyncUnaryCallRouterStatusResponse

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, DateTime?, CancellationToken)

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

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.

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(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
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertRouterRequest, Metadata, DateTime?, CancellationToken)

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

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.

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(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, DateTime?, CancellationToken)

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

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.

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
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
AsyncUnaryCallRouterList

The call object.

ListAsync(ListRoutersRequest, Metadata, DateTime?, CancellationToken)

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

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.

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
AsyncUnaryCallRouterList

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
RoutersRoutersClient
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, DateTime?, CancellationToken)

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

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.

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.

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
AsyncUnaryCallOperation

The call object.

PatchAsync(PatchRouterRequest, Metadata, DateTime?, CancellationToken)

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

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.

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.

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, DateTime?, CancellationToken)

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

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.

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
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
AsyncUnaryCallRoutersPreviewResponse

The call object.

PreviewAsync(PreviewRouterRequest, Metadata, DateTime?, CancellationToken)

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

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.

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
AsyncUnaryCallRoutersPreviewResponse

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, DateTime?, CancellationToken)

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

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.

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.

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
AsyncUnaryCallOperation

The call object.

UpdateAsync(UpdateRouterRequest, Metadata, DateTime?, CancellationToken)

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

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.

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.