Compute Engine v1 API - Class VpnTunnelsClientImpl (2.14.0)

public sealed class VpnTunnelsClientImpl : VpnTunnelsClient

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

VpnTunnels client wrapper implementation, for convenient use.

Inheritance

object > VpnTunnelsClient > VpnTunnelsClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The VpnTunnels API.

Constructors

VpnTunnelsClientImpl(VpnTunnelsClient, VpnTunnelsSettings, ILogger)

public VpnTunnelsClientImpl(VpnTunnels.VpnTunnelsClient grpcClient, VpnTunnelsSettings settings, ILogger logger)

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

Parameters
NameDescription
grpcClientVpnTunnelsVpnTunnelsClient

The underlying gRPC client.

settingsVpnTunnelsSettings

The base VpnTunnelsSettings 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 VpnTunnels.VpnTunnelsClient GrpcClient { get; }

The underlying gRPC VpnTunnels client

Property Value
TypeDescription
VpnTunnelsVpnTunnelsClient
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(AggregatedListVpnTunnelsRequest, CallSettings)

public override PagedEnumerable<VpnTunnelAggregatedList, KeyValuePair<string, VpnTunnelsScopedList>> AggregatedList(AggregatedListVpnTunnelsRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of VPN tunnels. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
NameDescription
requestAggregatedListVpnTunnelsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableVpnTunnelAggregatedListKeyValuePairstringVpnTunnelsScopedList

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

Overrides

AggregatedListAsync(AggregatedListVpnTunnelsRequest, CallSettings)

public override PagedAsyncEnumerable<VpnTunnelAggregatedList, KeyValuePair<string, VpnTunnelsScopedList>> AggregatedListAsync(AggregatedListVpnTunnelsRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of VPN tunnels. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
NameDescription
requestAggregatedListVpnTunnelsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableVpnTunnelAggregatedListKeyValuePairstringVpnTunnelsScopedList

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

Overrides

Delete(DeleteVpnTunnelRequest, CallSettings)

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

Deletes the specified VpnTunnel resource.

Parameters
NameDescription
requestDeleteVpnTunnelRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Overrides

DeleteAsync(DeleteVpnTunnelRequest, CallSettings)

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

Deletes the specified VpnTunnel resource.

Parameters
NameDescription
requestDeleteVpnTunnelRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Get(GetVpnTunnelRequest, CallSettings)

public override VpnTunnel Get(GetVpnTunnelRequest request, CallSettings callSettings = null)

Returns the specified VpnTunnel resource.

Parameters
NameDescription
requestGetVpnTunnelRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
VpnTunnel

The RPC response.

Overrides

GetAsync(GetVpnTunnelRequest, CallSettings)

public override Task<VpnTunnel> GetAsync(GetVpnTunnelRequest request, CallSettings callSettings = null)

Returns the specified VpnTunnel resource.

Parameters
NameDescription
requestGetVpnTunnelRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskVpnTunnel

A Task containing the RPC response.

Overrides

Insert(InsertVpnTunnelRequest, CallSettings)

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

Creates a VpnTunnel resource in the specified project and region using the data included in the request.

Parameters
NameDescription
requestInsertVpnTunnelRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Overrides

InsertAsync(InsertVpnTunnelRequest, CallSettings)

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

Creates a VpnTunnel resource in the specified project and region using the data included in the request.

Parameters
NameDescription
requestInsertVpnTunnelRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

List(ListVpnTunnelsRequest, CallSettings)

public override PagedEnumerable<VpnTunnelList, VpnTunnel> List(ListVpnTunnelsRequest request, CallSettings callSettings = null)

Retrieves a list of VpnTunnel resources contained in the specified project and region.

Parameters
NameDescription
requestListVpnTunnelsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableVpnTunnelListVpnTunnel

A pageable sequence of VpnTunnel resources.

Overrides

ListAsync(ListVpnTunnelsRequest, CallSettings)

public override PagedAsyncEnumerable<VpnTunnelList, VpnTunnel> ListAsync(ListVpnTunnelsRequest request, CallSettings callSettings = null)

Retrieves a list of VpnTunnel resources contained in the specified project and region.

Parameters
NameDescription
requestListVpnTunnelsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableVpnTunnelListVpnTunnel

A pageable asynchronous sequence of VpnTunnel resources.

Overrides

SetLabels(SetLabelsVpnTunnelRequest, CallSettings)

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

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

Parameters
NameDescription
requestSetLabelsVpnTunnelRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Overrides

SetLabelsAsync(SetLabelsVpnTunnelRequest, CallSettings)

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

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

Parameters
NameDescription
requestSetLabelsVpnTunnelRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides