public class 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 > ClientBase<VpcAccessService.VpcAccessServiceClient> > VpcAccessService.VpcAccessServiceClientNamespace
Google.Cloud.VpcAccess.V1Assembly
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(ClientBase.ClientBaseConfiguration)
protected VpcAccessServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration 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, Nullable<DateTime>, CancellationToken)
public virtual Operation CreateConnector(CreateConnectorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Operation> | The call object. |
CreateConnectorAsync(CreateConnectorRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> CreateConnectorAsync(CreateConnectorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Operation> | 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 |
Locations.LocationsClient | 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 |
Operations.OperationsClient | 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, Nullable<DateTime>, CancellationToken)
public virtual Operation DeleteConnector(DeleteConnectorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Operation> | The call object. |
DeleteConnectorAsync(DeleteConnectorRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> DeleteConnectorAsync(DeleteConnectorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Operation> | 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, Nullable<DateTime>, CancellationToken)
public virtual Connector GetConnector(GetConnectorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Connector> | The call object. |
GetConnectorAsync(GetConnectorRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Connector> GetConnectorAsync(GetConnectorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Connector> | 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, Nullable<DateTime>, CancellationToken)
public virtual ListConnectorsResponse ListConnectors(ListConnectorsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<ListConnectorsResponse> | The call object. |
ListConnectorsAsync(ListConnectorsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<ListConnectorsResponse> ListConnectorsAsync(ListConnectorsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<ListConnectorsResponse> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override VpcAccessService.VpcAccessServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
VpcAccessService.VpcAccessServiceClient |