public sealed class RoutesClientImpl : RoutesClient
Routes client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The Routes API.
Constructors
RoutesClientImpl(Routes.RoutesClient, RoutesSettings)
public RoutesClientImpl(Routes.RoutesClient grpcClient, RoutesSettings settings)
Constructs a client wrapper for the Routes service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | Routes.RoutesClient The underlying gRPC client. |
settings | RoutesSettings The base RoutesSettings used within this client. |
Properties
DeleteOperationsClient
public override OperationsClient DeleteOperationsClient { get; }
The long-running operations client for Delete
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public override Routes.RoutesClient GrpcClient { get; }
The underlying gRPC Routes client
Property Value | |
---|---|
Type | Description |
Routes.RoutesClient |
InsertOperationsClient
public override OperationsClient InsertOperationsClient { get; }
The long-running operations client for Insert
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
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 |
Operation<Operation, Operation> | The RPC response. |
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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
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 | |
---|---|
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. |
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 | |
---|---|
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 |
Task<Route> | A Task containing the RPC response. |
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 |
Operation<Operation, Operation> | The RPC response. |
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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
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 |
PagedEnumerable<RouteList, Route> | A pageable sequence of Route resources. |
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 |
PagedAsyncEnumerable<RouteList, Route> | A pageable asynchronous sequence of Route resources. |