public class TargetVpnGatewaysClient : ClientBase<TargetVpnGateways.TargetVpnGatewaysClient>
Client for TargetVpnGateways
Inheritance
Object > ClientBase > ClientBase<TargetVpnGateways.TargetVpnGatewaysClient> > TargetVpnGateways.TargetVpnGatewaysClientNamespace
Google.Cloud.Compute.V1Assembly
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 | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
TargetVpnGatewaysClient(ChannelBase)
public TargetVpnGatewaysClient(ChannelBase channel)
Creates a new client for TargetVpnGateways
Parameter | |
---|---|
Name | Description |
channel | ChannelBase 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 | |
---|---|
Name | Description |
configuration | ClientBase.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 | |
---|---|
Name | Description |
request | AggregatedListTargetVpnGatewaysRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | AggregatedListTargetVpnGatewaysRequest 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 |
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 | |
---|---|
Name | Description |
request | AggregatedListTargetVpnGatewaysRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | AggregatedListTargetVpnGatewaysRequest 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<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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | DeleteTargetVpnGatewayRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | DeleteTargetVpnGatewayRequest 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. |
DeleteAsync(DeleteTargetVpnGatewayRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteTargetVpnGatewayRequest request, CallOptions options)
Deletes the specified target VPN gateway.
Parameters | |
---|---|
Name | Description |
request | DeleteTargetVpnGatewayRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | DeleteTargetVpnGatewayRequest 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. |
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 | |
---|---|
Name | Description |
request | GetTargetVpnGatewayRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | GetTargetVpnGatewayRequest 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 |
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 | |
---|---|
Name | Description |
request | GetTargetVpnGatewayRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | GetTargetVpnGatewayRequest 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<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 | |
---|---|
Name | Description |
request | InsertTargetVpnGatewayRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | InsertTargetVpnGatewayRequest 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. |
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 | |
---|---|
Name | Description |
request | InsertTargetVpnGatewayRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | InsertTargetVpnGatewayRequest 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. |
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 | |
---|---|
Name | Description |
request | ListTargetVpnGatewaysRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ListTargetVpnGatewaysRequest 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 |
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 | |
---|---|
Name | Description |
request | ListTargetVpnGatewaysRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ListTargetVpnGatewaysRequest 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<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 | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
TargetVpnGateways.TargetVpnGatewaysClient |