From b241bbc1ad920771707fe03e4cedd4e8c492e143 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 7 Jan 2021 17:36:37 -0800 Subject: [PATCH] feat: Added OAuth scope for the service PiperOrigin-RevId: 350670798 --- google/maps/routes/v1/route_service.proto | 1 + google/maps/routes/v1/routespreferred.yaml | 19 +++++++++++++++++++ .../maps/routes/v1alpha/route_service.proto | 1 + 3 files changed, 21 insertions(+) diff --git a/google/maps/routes/v1/route_service.proto b/google/maps/routes/v1/route_service.proto index c3512820..d9e9fc1a 100644 --- a/google/maps/routes/v1/route_service.proto +++ b/google/maps/routes/v1/route_service.proto @@ -35,6 +35,7 @@ option php_namespace = "Google\\Maps\\Routes\\V1"; // The Routes Preferred API. service RoutesPreferred { option (google.api.default_host) = "routespreferred.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/maps-platform.routespreferred"; // Returns the primary route along with optional alternate routes, given a set // of terminal and intermediate waypoints. diff --git a/google/maps/routes/v1/routespreferred.yaml b/google/maps/routes/v1/routespreferred.yaml index 939a4bd8..09615e02 100644 --- a/google/maps/routes/v1/routespreferred.yaml +++ b/google/maps/routes/v1/routespreferred.yaml @@ -6,3 +6,22 @@ title: Routes Preferred API apis: - name: google.maps.routes.v1.RoutesPreferred - name: google.maps.routes.v1alpha.RoutesAlpha + +authentication: + rules: + - selector: google.maps.routes.v1.RoutesPreferred.ComputeRouteMatrix + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/maps-platform.routespreferred + - selector: google.maps.routes.v1.RoutesPreferred.ComputeRoutes + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/maps-platform.routespreferred + - selector: google.maps.routes.v1alpha.RoutesAlpha.ComputeRouteMatrix + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/maps-platform.routespreferred + - selector: google.maps.routes.v1alpha.RoutesAlpha.ComputeRoutes + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/maps-platform.routespreferred diff --git a/google/maps/routes/v1alpha/route_service.proto b/google/maps/routes/v1alpha/route_service.proto index ec756bb1..b8cb29cc 100644 --- a/google/maps/routes/v1alpha/route_service.proto +++ b/google/maps/routes/v1alpha/route_service.proto @@ -35,6 +35,7 @@ option php_namespace = "Google\\Maps\\Routes\\V1alpha"; // The Routes Preferred API. service RoutesAlpha { option (google.api.default_host) = "routespreferred.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/maps-platform.routespreferred"; // Returns the primary route along with optional alternate routes, given a set // of terminal and intermediate waypoints.