Skip to content

Commit b241bbc

Browse files
Google APIscopybara-github
authored andcommitted
feat: Added OAuth scope for the service
PiperOrigin-RevId: 350670798
1 parent e843bea commit b241bbc

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

google/maps/routes/v1/route_service.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ option php_namespace = "Google\\Maps\\Routes\\V1";
3535
// The Routes Preferred API.
3636
service RoutesPreferred {
3737
option (google.api.default_host) = "routespreferred.googleapis.com";
38+
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/maps-platform.routespreferred";
3839

3940
// Returns the primary route along with optional alternate routes, given a set
4041
// of terminal and intermediate waypoints.

google/maps/routes/v1/routespreferred.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,22 @@ title: Routes Preferred API
66
apis:
77
- name: google.maps.routes.v1.RoutesPreferred
88
- name: google.maps.routes.v1alpha.RoutesAlpha
9+
10+
authentication:
11+
rules:
12+
- selector: google.maps.routes.v1.RoutesPreferred.ComputeRouteMatrix
13+
oauth:
14+
canonical_scopes: |-
15+
https://www.googleapis.com/auth/maps-platform.routespreferred
16+
- selector: google.maps.routes.v1.RoutesPreferred.ComputeRoutes
17+
oauth:
18+
canonical_scopes: |-
19+
https://www.googleapis.com/auth/maps-platform.routespreferred
20+
- selector: google.maps.routes.v1alpha.RoutesAlpha.ComputeRouteMatrix
21+
oauth:
22+
canonical_scopes: |-
23+
https://www.googleapis.com/auth/maps-platform.routespreferred
24+
- selector: google.maps.routes.v1alpha.RoutesAlpha.ComputeRoutes
25+
oauth:
26+
canonical_scopes: |-
27+
https://www.googleapis.com/auth/maps-platform.routespreferred

google/maps/routes/v1alpha/route_service.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ option php_namespace = "Google\\Maps\\Routes\\V1alpha";
3535
// The Routes Preferred API.
3636
service RoutesAlpha {
3737
option (google.api.default_host) = "routespreferred.googleapis.com";
38+
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/maps-platform.routespreferred";
3839

3940
// Returns the primary route along with optional alternate routes, given a set
4041
// of terminal and intermediate waypoints.

0 commit comments

Comments
 (0)