class ProjectsLocationsTcpRoutes extends Resource (View source)

The "tcpRoutes" collection of methods.

Typical usage is:

 $networkservicesService = new Google\Service\NetworkServices(...);
 $tcpRoutes = $networkservicesService->projects_locations_tcpRoutes;

Methods

create(string $parent, TcpRoute $postBody, array $optParams = [])

Creates a new TcpRoute in a given project and location. (tcpRoutes.create)

delete(string $name, array $optParams = [])

Deletes a single TcpRoute. (tcpRoutes.delete)

get(string $name, array $optParams = [])

Gets details of a single TcpRoute. (tcpRoutes.get)

listProjectsLocationsTcpRoutes(string $parent, array $optParams = [])

Lists TcpRoute in a given project and location.

patch(string $name, TcpRoute $postBody, array $optParams = [])

Updates the parameters of a single TcpRoute. (tcpRoutes.patch)

Details

Operation create(string $parent, TcpRoute $postBody, array $optParams = [])

Creates a new TcpRoute in a given project and location. (tcpRoutes.create)

Parameters

string $parent

Required. The parent resource of the TcpRoute. Must be in the format projects/locations/global.

TcpRoute $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a single TcpRoute. (tcpRoutes.delete)

Parameters

string $name

Required. A name of the TcpRoute to delete. Must be in the format projects/locations/global/tcpRoutes.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

TcpRoute get(string $name, array $optParams = [])

Gets details of a single TcpRoute. (tcpRoutes.get)

Parameters

string $name

Required. A name of the TcpRoute to get. Must be in the format projects/locations/global/tcpRoutes.

array $optParams

Optional parameters.

Return Value

TcpRoute

Exceptions

Exception

ListTcpRoutesResponse listProjectsLocationsTcpRoutes(string $parent, array $optParams = [])

Lists TcpRoute in a given project and location.

(tcpRoutes.listProjectsLocationsTcpRoutes)

Parameters

string $parent

Required. The project and location from which the TcpRoutes should be listed, specified in the format projects/locations/global.

array $optParams

Optional parameters.

Return Value

ListTcpRoutesResponse

Exceptions

Exception

Operation patch(string $name, TcpRoute $postBody, array $optParams = [])

Updates the parameters of a single TcpRoute. (tcpRoutes.patch)

Parameters

string $name

Identifier. Name of the TcpRoute resource. It matches pattern projects/locations/global/tcpRoutes/tcp_route_name>.

TcpRoute $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception