Skip to content

Commit 280725e

Browse files
Google APIscopybara-github
authored andcommitted
fix: add oauth scopes to Places proto
PiperOrigin-RevId: 720741557
1 parent 89a0f8e commit 280725e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

google/maps/places/v1/places_service.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ option php_namespace = "Google\\Maps\\Places\\V1";
4747
// https://developers.google.com/maps/documentation/places/web-service/choose-fields
4848
service Places {
4949
option (google.api.default_host) = "places.googleapis.com";
50+
option (google.api.oauth_scopes) =
51+
"https://www.googleapis.com/auth/cloud-platform";
5052

5153
// Search for places near locations.
5254
rpc SearchNearby(SearchNearbyRequest) returns (SearchNearbyResponse) {

google/maps/places/v1/places_v1.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ documentation:
1212
retrieval endpoints for a Place.
1313
overview: '<!--#include file="/geo/platform/places/g3doc/overview.md"-->'
1414

15+
authentication:
16+
rules:
17+
- selector: "*"
18+
oauth:
19+
canonical_scopes: https://www.googleapis.com/auth/cloud-platform
20+
1521
publishing:
1622
new_issue_uri: https://issuetracker.google.com/issues/new?component=188872&template=1815671
1723
documentation_uri: https://developers.google.com/maps/documentation/places/web-service/

0 commit comments

Comments
 (0)