class ProjectsLocationsGrpcRoutes extends Resource (View source)

The "grpcRoutes" collection of methods.

Typical usage is:

 $networkservicesService = new Google\Service\NetworkServices(...);
 $grpcRoutes = $networkservicesService->projects_locations_grpcRoutes;

Methods

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

Creates a new GrpcRoute in a given project and location. (grpcRoutes.create)

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

Deletes a single GrpcRoute. (grpcRoutes.delete)

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

Gets details of a single GrpcRoute. (grpcRoutes.get)

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

Lists GrpcRoutes in a given project and location.

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

Updates the parameters of a single GrpcRoute. (grpcRoutes.patch)

Details

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

Creates a new GrpcRoute in a given project and location. (grpcRoutes.create)

Parameters

string $parent

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

GrpcRoute $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a single GrpcRoute. (grpcRoutes.delete)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets details of a single GrpcRoute. (grpcRoutes.get)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

GrpcRoute

Exceptions

Exception

ListGrpcRoutesResponse listProjectsLocationsGrpcRoutes(string $parent, array $optParams = [])

Lists GrpcRoutes in a given project and location.

(grpcRoutes.listProjectsLocationsGrpcRoutes)

Parameters

string $parent

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

array $optParams

Optional parameters.

Return Value

ListGrpcRoutesResponse

Exceptions

Exception

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

Updates the parameters of a single GrpcRoute. (grpcRoutes.patch)

Parameters

string $name

Identifier. Name of the GrpcRoute resource. It matches pattern projects/locations/global/grpcRoutes/

GrpcRoute $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception