Skip to content

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 authored May 29, 2021
1 parent 48ae0bd commit b35efd7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
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 packages/google-api-serviceusage/protos/protos.json

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

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 b35efd7

Please sign in to comment.