Compute Engine v1 API - Class ExternalVpnGateways.ExternalVpnGatewaysClient (2.14.0)

public class ExternalVpnGateways.ExternalVpnGatewaysClient : ClientBase<ExternalVpnGateways.ExternalVpnGatewaysClient>

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

Client for ExternalVpnGateways

Inheritance

object > ClientBase > ClientBaseExternalVpnGatewaysExternalVpnGatewaysClient > ExternalVpnGateways.ExternalVpnGatewaysClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

ExternalVpnGatewaysClient()

protected ExternalVpnGatewaysClient()

Protected parameterless constructor to allow creation of test doubles.

ExternalVpnGatewaysClient(CallInvoker)

public ExternalVpnGatewaysClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

ExternalVpnGatewaysClient(ChannelBase)

public ExternalVpnGatewaysClient(ChannelBase channel)

Creates a new client for ExternalVpnGateways

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

ExternalVpnGatewaysClient(ClientBaseConfiguration)

protected ExternalVpnGatewaysClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateOperationsClientForGlobalOperations()

public virtual Operations.OperationsClient CreateOperationsClientForGlobalOperations()

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

Returns
TypeDescription
OperationsOperationsClient

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

Delete(DeleteExternalVpnGatewayRequest, CallOptions)

public virtual Operation Delete(DeleteExternalVpnGatewayRequest request, CallOptions options)

Deletes the specified externalVpnGateway.

Parameters
NameDescription
requestDeleteExternalVpnGatewayRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Delete(DeleteExternalVpnGatewayRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified externalVpnGateway.

Parameters
NameDescription
requestDeleteExternalVpnGatewayRequest

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(DeleteExternalVpnGatewayRequest, CallOptions)

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

Deletes the specified externalVpnGateway.

Parameters
NameDescription
requestDeleteExternalVpnGatewayRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteExternalVpnGatewayRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified externalVpnGateway.

Parameters
NameDescription
requestDeleteExternalVpnGatewayRequest

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(GetExternalVpnGatewayRequest, CallOptions)

public virtual ExternalVpnGateway Get(GetExternalVpnGatewayRequest request, CallOptions options)

Returns the specified externalVpnGateway. Get a list of available externalVpnGateways by making a list() request.

Parameters
NameDescription
requestGetExternalVpnGatewayRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ExternalVpnGateway

The response received from the server.

Get(GetExternalVpnGatewayRequest, Metadata, DateTime?, CancellationToken)

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

Returns the specified externalVpnGateway. Get a list of available externalVpnGateways by making a list() request.

Parameters
NameDescription
requestGetExternalVpnGatewayRequest

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
ExternalVpnGateway

The response received from the server.

GetAsync(GetExternalVpnGatewayRequest, CallOptions)

public virtual AsyncUnaryCall<ExternalVpnGateway> GetAsync(GetExternalVpnGatewayRequest request, CallOptions options)

Returns the specified externalVpnGateway. Get a list of available externalVpnGateways by making a list() request.

Parameters
NameDescription
requestGetExternalVpnGatewayRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallExternalVpnGateway

The call object.

GetAsync(GetExternalVpnGatewayRequest, Metadata, DateTime?, CancellationToken)

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

Returns the specified externalVpnGateway. Get a list of available externalVpnGateways by making a list() request.

Parameters
NameDescription
requestGetExternalVpnGatewayRequest

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
AsyncUnaryCallExternalVpnGateway

The call object.

Insert(InsertExternalVpnGatewayRequest, CallOptions)

public virtual Operation Insert(InsertExternalVpnGatewayRequest request, CallOptions options)

Creates a ExternalVpnGateway in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertExternalVpnGatewayRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Insert(InsertExternalVpnGatewayRequest, Metadata, DateTime?, CancellationToken)

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

Creates a ExternalVpnGateway in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertExternalVpnGatewayRequest

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(InsertExternalVpnGatewayRequest, CallOptions)

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

Creates a ExternalVpnGateway in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertExternalVpnGatewayRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertExternalVpnGatewayRequest, Metadata, DateTime?, CancellationToken)

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

Creates a ExternalVpnGateway in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertExternalVpnGatewayRequest

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(ListExternalVpnGatewaysRequest, CallOptions)

public virtual ExternalVpnGatewayList List(ListExternalVpnGatewaysRequest request, CallOptions options)

Retrieves the list of ExternalVpnGateway available to the specified project.

Parameters
NameDescription
requestListExternalVpnGatewaysRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ExternalVpnGatewayList

The response received from the server.

List(ListExternalVpnGatewaysRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves the list of ExternalVpnGateway available to the specified project.

Parameters
NameDescription
requestListExternalVpnGatewaysRequest

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
ExternalVpnGatewayList

The response received from the server.

ListAsync(ListExternalVpnGatewaysRequest, CallOptions)

public virtual AsyncUnaryCall<ExternalVpnGatewayList> ListAsync(ListExternalVpnGatewaysRequest request, CallOptions options)

Retrieves the list of ExternalVpnGateway available to the specified project.

Parameters
NameDescription
requestListExternalVpnGatewaysRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallExternalVpnGatewayList

The call object.

ListAsync(ListExternalVpnGatewaysRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves the list of ExternalVpnGateway available to the specified project.

Parameters
NameDescription
requestListExternalVpnGatewaysRequest

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
AsyncUnaryCallExternalVpnGatewayList

The call object.

NewInstance(ClientBaseConfiguration)

protected override ExternalVpnGateways.ExternalVpnGatewaysClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
ExternalVpnGatewaysExternalVpnGatewaysClient
Overrides

SetLabels(SetLabelsExternalVpnGatewayRequest, CallOptions)

public virtual Operation SetLabels(SetLabelsExternalVpnGatewayRequest request, CallOptions options)

Sets the labels on an ExternalVpnGateway. To learn more about labels, read the Labeling Resources documentation.

Parameters
NameDescription
requestSetLabelsExternalVpnGatewayRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

SetLabels(SetLabelsExternalVpnGatewayRequest, Metadata, DateTime?, CancellationToken)

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

Sets the labels on an ExternalVpnGateway. To learn more about labels, read the Labeling Resources documentation.

Parameters
NameDescription
requestSetLabelsExternalVpnGatewayRequest

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(SetLabelsExternalVpnGatewayRequest, CallOptions)

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

Sets the labels on an ExternalVpnGateway. To learn more about labels, read the Labeling Resources documentation.

Parameters
NameDescription
requestSetLabelsExternalVpnGatewayRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

SetLabelsAsync(SetLabelsExternalVpnGatewayRequest, Metadata, DateTime?, CancellationToken)

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

Sets the labels on an ExternalVpnGateway. To learn more about labels, read the Labeling Resources documentation.

Parameters
NameDescription
requestSetLabelsExternalVpnGatewayRequest

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.

TestIamPermissions(TestIamPermissionsExternalVpnGatewayRequest, CallOptions)

public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsExternalVpnGatewayRequest request, CallOptions options)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsExternalVpnGatewayRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TestPermissionsResponse

The response received from the server.

TestIamPermissions(TestIamPermissionsExternalVpnGatewayRequest, Metadata, DateTime?, CancellationToken)

public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsExternalVpnGatewayRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsExternalVpnGatewayRequest

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
TestPermissionsResponse

The response received from the server.

TestIamPermissionsAsync(TestIamPermissionsExternalVpnGatewayRequest, CallOptions)

public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsExternalVpnGatewayRequest request, CallOptions options)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsExternalVpnGatewayRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallTestPermissionsResponse

The call object.

TestIamPermissionsAsync(TestIamPermissionsExternalVpnGatewayRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsExternalVpnGatewayRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsExternalVpnGatewayRequest

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
AsyncUnaryCallTestPermissionsResponse

The call object.