Compute Engine v1 API - Class RoutesClientImpl (2.16.0)

public sealed class RoutesClientImpl : RoutesClient

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

Routes client wrapper implementation, for convenient use.

Inheritance

object > RoutesClient > RoutesClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The Routes API.

Constructors

RoutesClientImpl(RoutesClient, RoutesSettings, ILogger)

public RoutesClientImpl(Routes.RoutesClient grpcClient, RoutesSettings settings, ILogger logger)

Constructs a client wrapper for the Routes service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient RoutesRoutesClient

The underlying gRPC client.

settings RoutesSettings

The base RoutesSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
Type Description
OperationsClient
Overrides

GrpcClient

public override Routes.RoutesClient GrpcClient { get; }

The underlying gRPC Routes client

Property Value
Type Description
RoutesRoutesClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
Type Description
OperationsClient
Overrides

Methods

Delete(DeleteRouteRequest, CallSettings)

public override Operation<Operation, Operation> Delete(DeleteRouteRequest request, CallSettings callSettings = null)

Deletes the specified Route resource.

Parameters
Name Description
request DeleteRouteRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

DeleteAsync(DeleteRouteRequest, CallSettings)

public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteRouteRequest request, CallSettings callSettings = null)

Deletes the specified Route resource.

Parameters
Name Description
request DeleteRouteRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Get(GetRouteRequest, CallSettings)

public override Route Get(GetRouteRequest request, CallSettings callSettings = null)

Returns the specified Route resource.

Parameters
Name Description
request GetRouteRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Route

The RPC response.

Overrides

GetAsync(GetRouteRequest, CallSettings)

public override Task<Route> GetAsync(GetRouteRequest request, CallSettings callSettings = null)

Returns the specified Route resource.

Parameters
Name Description
request GetRouteRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRoute

A Task containing the RPC response.

Overrides

Insert(InsertRouteRequest, CallSettings)

public override Operation<Operation, Operation> Insert(InsertRouteRequest request, CallSettings callSettings = null)

Creates a Route resource in the specified project using the data included in the request.

Parameters
Name Description
request InsertRouteRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

InsertAsync(InsertRouteRequest, CallSettings)

public override Task<Operation<Operation, Operation>> InsertAsync(InsertRouteRequest request, CallSettings callSettings = null)

Creates a Route resource in the specified project using the data included in the request.

Parameters
Name Description
request InsertRouteRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

List(ListRoutesRequest, CallSettings)

public override PagedEnumerable<RouteList, Route> List(ListRoutesRequest request, CallSettings callSettings = null)

Retrieves the list of Route resources available to the specified project.

Parameters
Name Description
request ListRoutesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableRouteListRoute

A pageable sequence of Route resources.

Overrides

ListAsync(ListRoutesRequest, CallSettings)

public override PagedAsyncEnumerable<RouteList, Route> ListAsync(ListRoutesRequest request, CallSettings callSettings = null)

Retrieves the list of Route resources available to the specified project.

Parameters
Name Description
request ListRoutesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableRouteListRoute

A pageable asynchronous sequence of Route resources.

Overrides