Class RoutesClientImpl (2.1.0)

public sealed class RoutesClientImpl : RoutesClient

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(Routes.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
NameDescription
grpcClientRoutes.RoutesClient

The underlying gRPC client.

settingsRoutesSettings

The base RoutesSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override Routes.RoutesClient GrpcClient { get; }

The underlying gRPC Routes client

Property Value
TypeDescription
Routes.RoutesClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

Delete(DeleteRouteRequest, CallSettings)

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

Deletes the specified Route resource.

Parameters
NameDescription
requestDeleteRouteRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, Operation>

The RPC response.

Overrides

DeleteAsync(DeleteRouteRequest, CallSettings)

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

Deletes the specified Route resource.

Parameters
NameDescription
requestDeleteRouteRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, Operation>>

A Task containing the RPC response.

Overrides

Get(GetRouteRequest, CallSettings)

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

Returns the specified Route resource. Gets a list of available routes by making a list() request.

Parameters
NameDescription
requestGetRouteRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Route

The RPC response.

Overrides

GetAsync(GetRouteRequest, CallSettings)

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

Returns the specified Route resource. Gets a list of available routes by making a list() request.

Parameters
NameDescription
requestGetRouteRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Route>

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, Operation>

The RPC response.

Overrides

InsertAsync(InsertRouteRequest, CallSettings)

public override async 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
NameDescription
requestInsertRouteRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, Operation>>

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<RouteList, Route>

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<RouteList, Route>

A pageable asynchronous sequence of Route resources.

Overrides