Compute Engine v1 API - Class TargetVpnGatewaysClientImpl (2.5.0)

public sealed class TargetVpnGatewaysClientImpl : TargetVpnGatewaysClient

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

TargetVpnGateways client wrapper implementation, for convenient use.

Inheritance

Object > TargetVpnGatewaysClient > TargetVpnGatewaysClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The TargetVpnGateways API.

Constructors

TargetVpnGatewaysClientImpl(TargetVpnGateways.TargetVpnGatewaysClient, TargetVpnGatewaysSettings, ILogger)

public TargetVpnGatewaysClientImpl(TargetVpnGateways.TargetVpnGatewaysClient grpcClient, TargetVpnGatewaysSettings settings, ILogger logger)

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

Parameters
NameDescription
grpcClientTargetVpnGateways.TargetVpnGatewaysClient

The underlying gRPC client.

settingsTargetVpnGatewaysSettings

The base TargetVpnGatewaysSettings 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 TargetVpnGateways.TargetVpnGatewaysClient GrpcClient { get; }

The underlying gRPC TargetVpnGateways client

Property Value
TypeDescription
TargetVpnGateways.TargetVpnGatewaysClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
TypeDescription
OperationsClient
Overrides

SetLabelsOperationsClient

public override OperationsClient SetLabelsOperationsClient { get; }

The long-running operations client for SetLabels.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

AggregatedList(AggregatedListTargetVpnGatewaysRequest, CallSettings)

public override PagedEnumerable<TargetVpnGatewayAggregatedList, KeyValuePair<string, TargetVpnGatewaysScopedList>> AggregatedList(AggregatedListTargetVpnGatewaysRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of target VPN gateways.

Parameters
NameDescription
requestAggregatedListTargetVpnGatewaysRequest

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<TargetVpnGatewayAggregatedList, KeyValuePair<String, TargetVpnGatewaysScopedList>>

A pageable sequence of KeyValuePair<TKey,TValue> resources.

Overrides

AggregatedListAsync(AggregatedListTargetVpnGatewaysRequest, CallSettings)

public override PagedAsyncEnumerable<TargetVpnGatewayAggregatedList, KeyValuePair<string, TargetVpnGatewaysScopedList>> AggregatedListAsync(AggregatedListTargetVpnGatewaysRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of target VPN gateways.

Parameters
NameDescription
requestAggregatedListTargetVpnGatewaysRequest

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<TargetVpnGatewayAggregatedList, KeyValuePair<String, TargetVpnGatewaysScopedList>>

A pageable asynchronous sequence of KeyValuePair<TKey,TValue> resources.

Overrides

Delete(DeleteTargetVpnGatewayRequest, CallSettings)

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

Deletes the specified target VPN gateway.

Parameters
NameDescription
requestDeleteTargetVpnGatewayRequest

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(DeleteTargetVpnGatewayRequest, CallSettings)

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

Deletes the specified target VPN gateway.

Parameters
NameDescription
requestDeleteTargetVpnGatewayRequest

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(GetTargetVpnGatewayRequest, CallSettings)

public override TargetVpnGateway Get(GetTargetVpnGatewayRequest request, CallSettings callSettings = null)

Returns the specified target VPN gateway. Gets a list of available target VPN gateways by making a list() request.

Parameters
NameDescription
requestGetTargetVpnGatewayRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TargetVpnGateway

The RPC response.

Overrides

GetAsync(GetTargetVpnGatewayRequest, CallSettings)

public override Task<TargetVpnGateway> GetAsync(GetTargetVpnGatewayRequest request, CallSettings callSettings = null)

Returns the specified target VPN gateway. Gets a list of available target VPN gateways by making a list() request.

Parameters
NameDescription
requestGetTargetVpnGatewayRequest

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

A Task containing the RPC response.

Overrides

Insert(InsertTargetVpnGatewayRequest, CallSettings)

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

Creates a target VPN gateway in the specified project and region using the data included in the request.

Parameters
NameDescription
requestInsertTargetVpnGatewayRequest

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(InsertTargetVpnGatewayRequest, CallSettings)

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

Creates a target VPN gateway in the specified project and region using the data included in the request.

Parameters
NameDescription
requestInsertTargetVpnGatewayRequest

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(ListTargetVpnGatewaysRequest, CallSettings)

public override PagedEnumerable<TargetVpnGatewayList, TargetVpnGateway> List(ListTargetVpnGatewaysRequest request, CallSettings callSettings = null)

Retrieves a list of target VPN gateways available to the specified project and region.

Parameters
NameDescription
requestListTargetVpnGatewaysRequest

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<TargetVpnGatewayList, TargetVpnGateway>

A pageable sequence of TargetVpnGateway resources.

Overrides

ListAsync(ListTargetVpnGatewaysRequest, CallSettings)

public override PagedAsyncEnumerable<TargetVpnGatewayList, TargetVpnGateway> ListAsync(ListTargetVpnGatewaysRequest request, CallSettings callSettings = null)

Retrieves a list of target VPN gateways available to the specified project and region.

Parameters
NameDescription
requestListTargetVpnGatewaysRequest

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<TargetVpnGatewayList, TargetVpnGateway>

A pageable asynchronous sequence of TargetVpnGateway resources.

Overrides

SetLabels(SetLabelsTargetVpnGatewayRequest, CallSettings)

public override Operation<Operation, Operation> SetLabels(SetLabelsTargetVpnGatewayRequest request, CallSettings callSettings = null)

Sets the labels on a TargetVpnGateway. To learn more about labels, read the Labeling Resources documentation.

Parameters
NameDescription
requestSetLabelsTargetVpnGatewayRequest

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

SetLabelsAsync(SetLabelsTargetVpnGatewayRequest, CallSettings)

public override async Task<Operation<Operation, Operation>> SetLabelsAsync(SetLabelsTargetVpnGatewayRequest request, CallSettings callSettings = null)

Sets the labels on a TargetVpnGateway. To learn more about labels, read the Labeling Resources documentation.

Parameters
NameDescription
requestSetLabelsTargetVpnGatewayRequest

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