Skip to content

Commit e87d466

Browse files
fix: [places] add oauth scopes to Places proto (#5990)
* fix: add oauth scopes to Places proto PiperOrigin-RevId: 720741557 Source-Link: googleapis/googleapis@280725e Source-Link: googleapis/googleapis-gen@194c4c3 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtcGxhY2VzLy5Pd2xCb3QueWFtbCIsImgiOiIxOTRjNGMzMjk0MWZlNTU5ZGQxYTk4NDhmNDg5MWRiNTk1NTYyYWY1In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 8da9b83 commit e87d466

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

packages/google-maps-places/protos/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) {

packages/google-maps-places/protos/protos.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-maps-places/src/v1/places_client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ export class PlacesClient {
360360
* @returns {string[]} List of default scopes.
361361
*/
362362
static get scopes() {
363-
return [];
363+
return ['https://www.googleapis.com/auth/cloud-platform'];
364364
}
365365

366366
getProjectId(): Promise<string>;

0 commit comments

Comments
 (0)