Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
feat: update serviceusage v1beta1 API (#10)
Browse files Browse the repository at this point in the history
* feat: update serviceusage v1beta1 API

Committer: @xiaozhenliu-gg5
PiperOrigin-RevId: 376207067

Source-Link: googleapis/googleapis@1c20dcf

Source-Link: googleapis/googleapis-gen@d2c0525

* 🦉 Updates from OwlBot

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Justin Beckwith <justin.beckwith@gmail.com>
  • Loading branch information
3 people committed May 29, 2021
1 parent 2fa7011 commit 8a98520
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 5 additions & 2 deletions protos/google/api/serviceusage/v1beta1/serviceusage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ option java_package = "com.google.api.serviceusage.v1beta1";
option php_namespace = "Google\\Api\\ServiceUsage\\V1beta1";
option ruby_package = "Google::Api::ServiceUsage::V1beta1";

// [Service Usage API](/service-usage/docs/overview)
// [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
service ServiceUsage {
option (google.api.default_host) = "serviceusage.googleapis.com";
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
option (google.api.oauth_scopes) =
"https://www.googleapis.com/auth/cloud-platform,"
"https://www.googleapis.com/auth/cloud-platform.read-only,"
"https://www.googleapis.com/auth/service.management";

// Enables a service so that it can be used with a project.
//
Expand Down
2 changes: 1 addition & 1 deletion protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions src/v1beta1/service_usage_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import {operationsProtos} from 'google-gax';
const version = require('../../../package.json').version;

/**
* [Service Usage API](/service-usage/docs/overview)
* [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
* @class
* @memberof v1beta1
*/
Expand Down Expand Up @@ -472,7 +472,11 @@ export class ServiceUsageClient {
* @returns {string[]} List of default scopes.
*/
static get scopes() {
return ['https://www.googleapis.com/auth/cloud-platform'];
return [
'https://www.googleapis.com/auth/cloud-platform',
'https://www.googleapis.com/auth/cloud-platform.read-only',
'https://www.googleapis.com/auth/service.management',
];
}

getProjectId(): Promise<string>;
Expand Down

0 comments on commit 8a98520

Please sign in to comment.