feat: Added OAuth scope for the service

PiperOrigin-RevId: 350670798
This commit is contained in:
Google APIs 2021-01-07 17:36:37 -08:00 committed by Copybara-Service
parent e843bea3e7
commit b241bbc1ad
3 changed files with 21 additions and 0 deletions

View File

@ -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.

View File

@ -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

View File

@ -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.