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

public class ExternalVpnGatewaysClient : ClientBase<ExternalVpnGateways.ExternalVpnGatewaysClient>

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

Client for ExternalVpnGateways

Inheritance

Object > ClientBase > ClientBase<ExternalVpnGateways.ExternalVpnGatewaysClient> > 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(ClientBase.ClientBaseConfiguration)

protected ExternalVpnGatewaysClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

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

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

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

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.

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

The call object.

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

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

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.

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

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

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.

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

The call object.

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

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

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.

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

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

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

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.

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

The call object.

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

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

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.

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

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

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.

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

The call object.

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

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

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.

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

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

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

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

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

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.

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

The call object.

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

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

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.

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.

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

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

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.

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

The call object.

TestIamPermissionsAsync(TestIamPermissionsExternalVpnGatewayRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

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

The call object.