Serverless VPC Access v1 API - Class VpcAccessService.VpcAccessServiceClient (2.4.0)

public class VpcAccessService.VpcAccessServiceClient : ClientBase<VpcAccessService.VpcAccessServiceClient>

Reference documentation and code samples for the Serverless VPC Access v1 API class VpcAccessService.VpcAccessServiceClient.

Client for VpcAccessService

Inheritance

object > ClientBase > ClientBaseVpcAccessServiceVpcAccessServiceClient > VpcAccessService.VpcAccessServiceClient

Namespace

Google.Cloud.VpcAccess.V1

Assembly

Google.Cloud.VpcAccess.V1.dll

Constructors

VpcAccessServiceClient()

protected VpcAccessServiceClient()

Protected parameterless constructor to allow creation of test doubles.

VpcAccessServiceClient(CallInvoker)

public VpcAccessServiceClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

VpcAccessServiceClient(ChannelBase)

public VpcAccessServiceClient(ChannelBase channel)

Creates a new client for VpcAccessService

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

VpcAccessServiceClient(ClientBaseConfiguration)

protected VpcAccessServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateConnector(CreateConnectorRequest, CallOptions)

public virtual Operation CreateConnector(CreateConnectorRequest request, CallOptions options)

Creates a Serverless VPC Access connector, returns an operation.

Parameters
Name Description
request CreateConnectorRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

CreateConnector(CreateConnectorRequest, Metadata, DateTime?, CancellationToken)

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

Creates a Serverless VPC Access connector, returns an operation.

Parameters
Name Description
request CreateConnectorRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

CreateConnectorAsync(CreateConnectorRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> CreateConnectorAsync(CreateConnectorRequest request, CallOptions options)

Creates a Serverless VPC Access connector, returns an operation.

Parameters
Name Description
request CreateConnectorRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

CreateConnectorAsync(CreateConnectorRequest, Metadata, DateTime?, CancellationToken)

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

Creates a Serverless VPC Access connector, returns an operation.

Parameters
Name Description
request CreateConnectorRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
Type Description
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

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

Returns
Type Description
OperationsOperationsClient

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

DeleteConnector(DeleteConnectorRequest, CallOptions)

public virtual Operation DeleteConnector(DeleteConnectorRequest request, CallOptions options)

Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the resource does not exist.

Parameters
Name Description
request DeleteConnectorRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

DeleteConnector(DeleteConnectorRequest, Metadata, DateTime?, CancellationToken)

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

Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the resource does not exist.

Parameters
Name Description
request DeleteConnectorRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

DeleteConnectorAsync(DeleteConnectorRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteConnectorAsync(DeleteConnectorRequest request, CallOptions options)

Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the resource does not exist.

Parameters
Name Description
request DeleteConnectorRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeleteConnectorAsync(DeleteConnectorRequest, Metadata, DateTime?, CancellationToken)

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

Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the resource does not exist.

Parameters
Name Description
request DeleteConnectorRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

GetConnector(GetConnectorRequest, CallOptions)

public virtual Connector GetConnector(GetConnectorRequest request, CallOptions options)

Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource does not exist.

Parameters
Name Description
request GetConnectorRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Connector

The response received from the server.

GetConnector(GetConnectorRequest, Metadata, DateTime?, CancellationToken)

public virtual Connector GetConnector(GetConnectorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource does not exist.

Parameters
Name Description
request GetConnectorRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Connector

The response received from the server.

GetConnectorAsync(GetConnectorRequest, CallOptions)

public virtual AsyncUnaryCall<Connector> GetConnectorAsync(GetConnectorRequest request, CallOptions options)

Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource does not exist.

Parameters
Name Description
request GetConnectorRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallConnector

The call object.

GetConnectorAsync(GetConnectorRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Connector> GetConnectorAsync(GetConnectorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource does not exist.

Parameters
Name Description
request GetConnectorRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallConnector

The call object.

ListConnectors(ListConnectorsRequest, CallOptions)

public virtual ListConnectorsResponse ListConnectors(ListConnectorsRequest request, CallOptions options)

Lists Serverless VPC Access connectors.

Parameters
Name Description
request ListConnectorsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListConnectorsResponse

The response received from the server.

ListConnectors(ListConnectorsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListConnectorsResponse ListConnectors(ListConnectorsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists Serverless VPC Access connectors.

Parameters
Name Description
request ListConnectorsRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListConnectorsResponse

The response received from the server.

ListConnectorsAsync(ListConnectorsRequest, CallOptions)

public virtual AsyncUnaryCall<ListConnectorsResponse> ListConnectorsAsync(ListConnectorsRequest request, CallOptions options)

Lists Serverless VPC Access connectors.

Parameters
Name Description
request ListConnectorsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListConnectorsResponse

The call object.

ListConnectorsAsync(ListConnectorsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListConnectorsResponse> ListConnectorsAsync(ListConnectorsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists Serverless VPC Access connectors.

Parameters
Name Description
request ListConnectorsRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListConnectorsResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override VpcAccessService.VpcAccessServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
VpcAccessServiceVpcAccessServiceClient
Overrides