class Routes extends Resource (View source)

The "routes" collection of methods.

Typical usage is:

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

Methods

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

Deletes the specified Route resource. (routes.delete)

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

Returns the specified Route resource. (routes.get)

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

Creates a Route resource in the specified project using the data included in the request. (routes.insert)

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

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

Details

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

Deletes the specified Route resource. (routes.delete)

Parameters

string $project

Project ID for this request.

string $route

Name of the Route resource to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Returns the specified Route resource. (routes.get)

Parameters

string $project

Project ID for this request.

string $route

Name of the Route resource to return.

array $optParams

Optional parameters.

Return Value

Route

Exceptions

Exception

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

Creates a Route resource in the specified project using the data included in the request. (routes.insert)

Parameters

string $project

Project ID for this request.

Route $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

RouteList listRoutes(string $project, array $optParams = [])

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

(routes.listRoutes)

Parameters

string $project

Project ID for this request.

array $optParams

Optional parameters.

Return Value

RouteList

Exceptions

Exception