class TargetTcpProxies extends Resource (View source)

The "targetTcpProxies" collection of methods.

Typical usage is:

 $computeService = new Google\Service\Compute(...);
 $targetTcpProxies = $computeService->targetTcpProxies;

Methods

aggregatedList(string $project, array $optParams = [])

Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

delete(string $project, string $targetTcpProxy, array $optParams = [])

Deletes the specified TargetTcpProxy resource. (targetTcpProxies.delete)

get(string $project, string $targetTcpProxy, array $optParams = [])

Returns the specified TargetTcpProxy resource. (targetTcpProxies.get)

insert(string $project, TargetTcpProxy $postBody, array $optParams = [])

Creates a TargetTcpProxy resource in the specified project using the data included in the request. (targetTcpProxies.insert)

listTargetTcpProxies(string $project, array $optParams = [])

Retrieves the list of TargetTcpProxy resources available to the specified project. (targetTcpProxies.listTargetTcpProxies)

setBackendService(string $project, string $targetTcpProxy, TargetTcpProxiesSetBackendServiceRequest $postBody, array $optParams = [])

Changes the BackendService for TargetTcpProxy.

setProxyHeader(string $project, string $targetTcpProxy, TargetTcpProxiesSetProxyHeaderRequest $postBody, array $optParams = [])

Changes the ProxyHeaderType for TargetTcpProxy.

Details

TargetTcpProxyAggregatedList aggregatedList(string $project, array $optParams = [])

Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

(targetTcpProxies.aggregatedList)

Parameters

string $project

Name of the project scoping this request.

array $optParams

Optional parameters.

Return Value

TargetTcpProxyAggregatedList

Exceptions

Exception

Operation delete(string $project, string $targetTcpProxy, array $optParams = [])

Deletes the specified TargetTcpProxy resource. (targetTcpProxies.delete)

Parameters

string $project

Project ID for this request.

string $targetTcpProxy

Name of the TargetTcpProxy resource to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

TargetTcpProxy get(string $project, string $targetTcpProxy, array $optParams = [])

Returns the specified TargetTcpProxy resource. (targetTcpProxies.get)

Parameters

string $project

Project ID for this request.

string $targetTcpProxy

Name of the TargetTcpProxy resource to return.

array $optParams

Optional parameters.

Return Value

TargetTcpProxy

Exceptions

Exception

Operation insert(string $project, TargetTcpProxy $postBody, array $optParams = [])

Creates a TargetTcpProxy resource in the specified project using the data included in the request. (targetTcpProxies.insert)

Parameters

string $project

Project ID for this request.

TargetTcpProxy $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

TargetTcpProxyList listTargetTcpProxies(string $project, array $optParams = [])

Retrieves the list of TargetTcpProxy resources available to the specified project. (targetTcpProxies.listTargetTcpProxies)

Parameters

string $project

Project ID for this request.

array $optParams

Optional parameters.

Return Value

TargetTcpProxyList

Exceptions

Exception

Operation setBackendService(string $project, string $targetTcpProxy, TargetTcpProxiesSetBackendServiceRequest $postBody, array $optParams = [])

Changes the BackendService for TargetTcpProxy.

(targetTcpProxies.setBackendService)

Parameters

string $project

Project ID for this request.

string $targetTcpProxy

Name of the TargetTcpProxy resource whose BackendService resource is to be set.

TargetTcpProxiesSetBackendServiceRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation setProxyHeader(string $project, string $targetTcpProxy, TargetTcpProxiesSetProxyHeaderRequest $postBody, array $optParams = [])

Changes the ProxyHeaderType for TargetTcpProxy.

(targetTcpProxies.setProxyHeader)

Parameters

string $project

Project ID for this request.

string $targetTcpProxy

Name of the TargetTcpProxy resource whose ProxyHeader is to be set.

TargetTcpProxiesSetProxyHeaderRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception