Class TargetTcpProxies.TargetTcpProxiesClient (2.1.0)

public class TargetTcpProxiesClient : ClientBase<TargetTcpProxies.TargetTcpProxiesClient>

Client for TargetTcpProxies

Inheritance

Object > ClientBase > ClientBase<TargetTcpProxies.TargetTcpProxiesClient> > TargetTcpProxies.TargetTcpProxiesClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

TargetTcpProxiesClient()

protected TargetTcpProxiesClient()

Protected parameterless constructor to allow creation of test doubles.

TargetTcpProxiesClient(CallInvoker)

public TargetTcpProxiesClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

TargetTcpProxiesClient(ChannelBase)

public TargetTcpProxiesClient(ChannelBase channel)

Creates a new client for TargetTcpProxies

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

TargetTcpProxiesClient(ClientBase.ClientBaseConfiguration)

protected TargetTcpProxiesClient(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(DeleteTargetTcpProxyRequest, CallOptions)

public virtual Operation Delete(DeleteTargetTcpProxyRequest request, CallOptions options)

Deletes the specified TargetTcpProxy resource.

Parameters
NameDescription
requestDeleteTargetTcpProxyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Delete(DeleteTargetTcpProxyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Deletes the specified TargetTcpProxy resource.

Parameters
NameDescription
requestDeleteTargetTcpProxyRequest

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

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

Deletes the specified TargetTcpProxy resource.

Parameters
NameDescription
requestDeleteTargetTcpProxyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

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

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

Deletes the specified TargetTcpProxy resource.

Parameters
NameDescription
requestDeleteTargetTcpProxyRequest

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

public virtual TargetTcpProxy Get(GetTargetTcpProxyRequest request, CallOptions options)

Returns the specified TargetTcpProxy resource. Gets a list of available target TCP proxies by making a list() request.

Parameters
NameDescription
requestGetTargetTcpProxyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TargetTcpProxy

The response received from the server.

Get(GetTargetTcpProxyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Returns the specified TargetTcpProxy resource. Gets a list of available target TCP proxies by making a list() request.

Parameters
NameDescription
requestGetTargetTcpProxyRequest

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
TargetTcpProxy

The response received from the server.

GetAsync(GetTargetTcpProxyRequest, CallOptions)

public virtual AsyncUnaryCall<TargetTcpProxy> GetAsync(GetTargetTcpProxyRequest request, CallOptions options)

Returns the specified TargetTcpProxy resource. Gets a list of available target TCP proxies by making a list() request.

Parameters
NameDescription
requestGetTargetTcpProxyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<TargetTcpProxy>

The call object.

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

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

Returns the specified TargetTcpProxy resource. Gets a list of available target TCP proxies by making a list() request.

Parameters
NameDescription
requestGetTargetTcpProxyRequest

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

The call object.

Insert(InsertTargetTcpProxyRequest, CallOptions)

public virtual Operation Insert(InsertTargetTcpProxyRequest request, CallOptions options)

Creates a TargetTcpProxy resource in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertTargetTcpProxyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Insert(InsertTargetTcpProxyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Creates a TargetTcpProxy resource in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertTargetTcpProxyRequest

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

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

Creates a TargetTcpProxy resource in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertTargetTcpProxyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

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

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

Creates a TargetTcpProxy resource in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertTargetTcpProxyRequest

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

public virtual TargetTcpProxyList List(ListTargetTcpProxiesRequest request, CallOptions options)

Retrieves the list of TargetTcpProxy resources available to the specified project.

Parameters
NameDescription
requestListTargetTcpProxiesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TargetTcpProxyList

The response received from the server.

List(ListTargetTcpProxiesRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Retrieves the list of TargetTcpProxy resources available to the specified project.

Parameters
NameDescription
requestListTargetTcpProxiesRequest

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
TargetTcpProxyList

The response received from the server.

ListAsync(ListTargetTcpProxiesRequest, CallOptions)

public virtual AsyncUnaryCall<TargetTcpProxyList> ListAsync(ListTargetTcpProxiesRequest request, CallOptions options)

Retrieves the list of TargetTcpProxy resources available to the specified project.

Parameters
NameDescription
requestListTargetTcpProxiesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<TargetTcpProxyList>

The call object.

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

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

Retrieves the list of TargetTcpProxy resources available to the specified project.

Parameters
NameDescription
requestListTargetTcpProxiesRequest

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

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override TargetTcpProxies.TargetTcpProxiesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

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

SetBackendService(SetBackendServiceTargetTcpProxyRequest, CallOptions)

public virtual Operation SetBackendService(SetBackendServiceTargetTcpProxyRequest request, CallOptions options)

Changes the BackendService for TargetTcpProxy.

Parameters
NameDescription
requestSetBackendServiceTargetTcpProxyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

SetBackendService(SetBackendServiceTargetTcpProxyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Changes the BackendService for TargetTcpProxy.

Parameters
NameDescription
requestSetBackendServiceTargetTcpProxyRequest

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.

SetBackendServiceAsync(SetBackendServiceTargetTcpProxyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> SetBackendServiceAsync(SetBackendServiceTargetTcpProxyRequest request, CallOptions options)

Changes the BackendService for TargetTcpProxy.

Parameters
NameDescription
requestSetBackendServiceTargetTcpProxyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

SetBackendServiceAsync(SetBackendServiceTargetTcpProxyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Changes the BackendService for TargetTcpProxy.

Parameters
NameDescription
requestSetBackendServiceTargetTcpProxyRequest

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.

SetProxyHeader(SetProxyHeaderTargetTcpProxyRequest, CallOptions)

public virtual Operation SetProxyHeader(SetProxyHeaderTargetTcpProxyRequest request, CallOptions options)

Changes the ProxyHeaderType for TargetTcpProxy.

Parameters
NameDescription
requestSetProxyHeaderTargetTcpProxyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

SetProxyHeader(SetProxyHeaderTargetTcpProxyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Changes the ProxyHeaderType for TargetTcpProxy.

Parameters
NameDescription
requestSetProxyHeaderTargetTcpProxyRequest

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.

SetProxyHeaderAsync(SetProxyHeaderTargetTcpProxyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> SetProxyHeaderAsync(SetProxyHeaderTargetTcpProxyRequest request, CallOptions options)

Changes the ProxyHeaderType for TargetTcpProxy.

Parameters
NameDescription
requestSetProxyHeaderTargetTcpProxyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

SetProxyHeaderAsync(SetProxyHeaderTargetTcpProxyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Changes the ProxyHeaderType for TargetTcpProxy.

Parameters
NameDescription
requestSetProxyHeaderTargetTcpProxyRequest

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.