feat: Added OAuth scope for the service
PiperOrigin-RevId: 350670798
This commit is contained in:
parent
e843bea3e7
commit
b241bbc1ad
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue