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.