Skip to content

Commit

Permalink
fix: add oauth scopes to Places proto
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 720741557
  • Loading branch information
Google APIs authored and copybara-github committed Jan 29, 2025
1 parent 89a0f8e commit 280725e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions google/maps/places/v1/places_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ option php_namespace = "Google\\Maps\\Places\\V1";
// https://developers.google.com/maps/documentation/places/web-service/choose-fields
service Places {
option (google.api.default_host) = "places.googleapis.com";
option (google.api.oauth_scopes) =
"https://www.googleapis.com/auth/cloud-platform";

// Search for places near locations.
rpc SearchNearby(SearchNearbyRequest) returns (SearchNearbyResponse) {
Expand Down
6 changes: 6 additions & 0 deletions google/maps/places/v1/places_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ documentation:
retrieval endpoints for a Place.
overview: '<!--#include file="/geo/platform/places/g3doc/overview.md"-->'

authentication:
rules:
- selector: "*"
oauth:
canonical_scopes: https://www.googleapis.com/auth/cloud-platform

publishing:
new_issue_uri: https://issuetracker.google.com/issues/new?component=188872&template=1815671
documentation_uri: https://developers.google.com/maps/documentation/places/web-service/
Expand Down

0 comments on commit 280725e

Please sign in to comment.