Compute Engine v1 API - Class TargetVpnGateways.TargetVpnGatewaysClient (2.10.0)

public class TargetVpnGateways.TargetVpnGatewaysClient : ClientBase<TargetVpnGateways.TargetVpnGatewaysClient>

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

Client for TargetVpnGateways

Inheritance

object > ClientBase > ClientBaseTargetVpnGatewaysTargetVpnGatewaysClient > TargetVpnGateways.TargetVpnGatewaysClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

TargetVpnGatewaysClient()

protected TargetVpnGatewaysClient()

Protected parameterless constructor to allow creation of test doubles.

TargetVpnGatewaysClient(CallInvoker)

public TargetVpnGatewaysClient(CallInvoker callInvoker)

Creates a new client for TargetVpnGateways that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

TargetVpnGatewaysClient(ChannelBase)

public TargetVpnGatewaysClient(ChannelBase channel)

Creates a new client for TargetVpnGateways

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

TargetVpnGatewaysClient(ClientBaseConfiguration)

protected TargetVpnGatewaysClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

AggregatedList(AggregatedListTargetVpnGatewaysRequest, CallOptions)

public virtual TargetVpnGatewayAggregatedList AggregatedList(AggregatedListTargetVpnGatewaysRequest request, CallOptions options)

Retrieves an aggregated list of target VPN gateways.

Parameters
NameDescription
requestAggregatedListTargetVpnGatewaysRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TargetVpnGatewayAggregatedList

The response received from the server.

AggregatedList(AggregatedListTargetVpnGatewaysRequest, Metadata, DateTime?, CancellationToken)

public virtual TargetVpnGatewayAggregatedList AggregatedList(AggregatedListTargetVpnGatewaysRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves an aggregated list of target VPN gateways.

Parameters
NameDescription
requestAggregatedListTargetVpnGatewaysRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
TargetVpnGatewayAggregatedList

The response received from the server.

AggregatedListAsync(AggregatedListTargetVpnGatewaysRequest, CallOptions)

public virtual AsyncUnaryCall<TargetVpnGatewayAggregatedList> AggregatedListAsync(AggregatedListTargetVpnGatewaysRequest request, CallOptions options)

Retrieves an aggregated list of target VPN gateways.

Parameters
NameDescription
requestAggregatedListTargetVpnGatewaysRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallTargetVpnGatewayAggregatedList

The call object.

AggregatedListAsync(AggregatedListTargetVpnGatewaysRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<TargetVpnGatewayAggregatedList> AggregatedListAsync(AggregatedListTargetVpnGatewaysRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves an aggregated list of target VPN gateways.

Parameters
NameDescription
requestAggregatedListTargetVpnGatewaysRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallTargetVpnGatewayAggregatedList

The call object.

CreateOperationsClientForRegionOperations()

public virtual Operations.OperationsClient CreateOperationsClientForRegionOperations()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to RegionOperations.

Returns
TypeDescription
OperationsOperationsClient

A new Operations client for the same target as this client.

Delete(DeleteTargetVpnGatewayRequest, CallOptions)

public virtual Operation Delete(DeleteTargetVpnGatewayRequest request, CallOptions options)

Deletes the specified target VPN gateway.

Parameters
NameDescription
requestDeleteTargetVpnGatewayRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Delete(DeleteTargetVpnGatewayRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Delete(DeleteTargetVpnGatewayRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified target VPN gateway.

Parameters
NameDescription
requestDeleteTargetVpnGatewayRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteAsync(DeleteTargetVpnGatewayRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteTargetVpnGatewayRequest request, CallOptions options)

Deletes the specified target VPN gateway.

Parameters
NameDescription
requestDeleteTargetVpnGatewayRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteTargetVpnGatewayRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteTargetVpnGatewayRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified target VPN gateway.

Parameters
NameDescription
requestDeleteTargetVpnGatewayRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

Get(GetTargetVpnGatewayRequest, CallOptions)

public virtual TargetVpnGateway Get(GetTargetVpnGatewayRequest request, CallOptions options)

Returns the specified target VPN gateway.

Parameters
NameDescription
requestGetTargetVpnGatewayRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TargetVpnGateway

The response received from the server.

Get(GetTargetVpnGatewayRequest, Metadata, DateTime?, CancellationToken)

public virtual TargetVpnGateway Get(GetTargetVpnGatewayRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified target VPN gateway.

Parameters
NameDescription
requestGetTargetVpnGatewayRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
TargetVpnGateway

The response received from the server.

GetAsync(GetTargetVpnGatewayRequest, CallOptions)

public virtual AsyncUnaryCall<TargetVpnGateway> GetAsync(GetTargetVpnGatewayRequest request, CallOptions options)

Returns the specified target VPN gateway.

Parameters
NameDescription
requestGetTargetVpnGatewayRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallTargetVpnGateway

The call object.

GetAsync(GetTargetVpnGatewayRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<TargetVpnGateway> GetAsync(GetTargetVpnGatewayRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified target VPN gateway.

Parameters
NameDescription
requestGetTargetVpnGatewayRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallTargetVpnGateway

The call object.

Insert(InsertTargetVpnGatewayRequest, CallOptions)

public virtual Operation Insert(InsertTargetVpnGatewayRequest request, CallOptions options)

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

Parameters
NameDescription
requestInsertTargetVpnGatewayRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Insert(InsertTargetVpnGatewayRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Insert(InsertTargetVpnGatewayRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestInsertTargetVpnGatewayRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

InsertAsync(InsertTargetVpnGatewayRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertTargetVpnGatewayRequest request, CallOptions options)

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

Parameters
NameDescription
requestInsertTargetVpnGatewayRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertTargetVpnGatewayRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertTargetVpnGatewayRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestInsertTargetVpnGatewayRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

List(ListTargetVpnGatewaysRequest, CallOptions)

public virtual TargetVpnGatewayList List(ListTargetVpnGatewaysRequest request, CallOptions options)

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

Parameters
NameDescription
requestListTargetVpnGatewaysRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TargetVpnGatewayList

The response received from the server.

List(ListTargetVpnGatewaysRequest, Metadata, DateTime?, CancellationToken)

public virtual TargetVpnGatewayList List(ListTargetVpnGatewaysRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestListTargetVpnGatewaysRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
TargetVpnGatewayList

The response received from the server.

ListAsync(ListTargetVpnGatewaysRequest, CallOptions)

public virtual AsyncUnaryCall<TargetVpnGatewayList> ListAsync(ListTargetVpnGatewaysRequest request, CallOptions options)

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

Parameters
NameDescription
requestListTargetVpnGatewaysRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallTargetVpnGatewayList

The call object.

ListAsync(ListTargetVpnGatewaysRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<TargetVpnGatewayList> ListAsync(ListTargetVpnGatewaysRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestListTargetVpnGatewaysRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallTargetVpnGatewayList

The call object.

NewInstance(ClientBaseConfiguration)

protected override TargetVpnGateways.TargetVpnGatewaysClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
TargetVpnGatewaysTargetVpnGatewaysClient
Overrides

SetLabels(SetLabelsTargetVpnGatewayRequest, CallOptions)

public virtual Operation SetLabels(SetLabelsTargetVpnGatewayRequest request, CallOptions options)

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

Parameters
NameDescription
requestSetLabelsTargetVpnGatewayRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

SetLabels(SetLabelsTargetVpnGatewayRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation SetLabels(SetLabelsTargetVpnGatewayRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestSetLabelsTargetVpnGatewayRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

SetLabelsAsync(SetLabelsTargetVpnGatewayRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> SetLabelsAsync(SetLabelsTargetVpnGatewayRequest request, CallOptions options)

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

Parameters
NameDescription
requestSetLabelsTargetVpnGatewayRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

SetLabelsAsync(SetLabelsTargetVpnGatewayRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> SetLabelsAsync(SetLabelsTargetVpnGatewayRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestSetLabelsTargetVpnGatewayRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.