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

public class TargetVpnGatewaysClient : ClientBase<TargetVpnGateways.TargetVpnGatewaysClient>

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

Client for TargetVpnGateways

Inheritance

Object > ClientBase > ClientBase<TargetVpnGateways.TargetVpnGatewaysClient> > 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(ClientBase.ClientBaseConfiguration)

protected TargetVpnGatewaysClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<TargetVpnGatewayAggregatedList>

The call object.

AggregatedListAsync(AggregatedListTargetVpnGatewaysRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<TargetVpnGatewayAggregatedList>

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
Operations.OperationsClient

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

DeleteAsync(DeleteTargetVpnGatewayRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

Get(GetTargetVpnGatewayRequest, CallOptions)

public virtual TargetVpnGateway Get(GetTargetVpnGatewayRequest request, CallOptions options)

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

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, Nullable<DateTime>, CancellationToken)

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

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

Parameters
NameDescription
requestGetTargetVpnGatewayRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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. Gets a list of available target VPN gateways by making a list() request.

Parameters
NameDescription
requestGetTargetVpnGatewayRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<TargetVpnGateway>

The call object.

GetAsync(GetTargetVpnGatewayRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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

Parameters
NameDescription
requestGetTargetVpnGatewayRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

InsertAsync(InsertTargetVpnGatewayRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<TargetVpnGatewayList>

The call object.

ListAsync(ListTargetVpnGatewaysRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<TargetVpnGatewayList>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
TargetVpnGateways.TargetVpnGatewaysClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.TargetVpnGateways.TargetVpnGatewaysClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

SetLabelsAsync(SetLabelsTargetVpnGatewayRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.