Skip to content

Commit

Permalink
feat: [billing] added currency field to billing account message (#5855)
Browse files Browse the repository at this point in the history
* feat: added currency field to billing account message

PiperOrigin-RevId: 702355285

Source-Link: googleapis/googleapis@e5a3912

Source-Link: googleapis/googleapis-gen@82539f2
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpbGxpbmcvLk93bEJvdC55YW1sIiwiaCI6IjgyNTM5ZjJjYzk2NTFmMjA1ZTRhMTM0M2NmMWNjODdhMjg5MjJjZTgifQ==

* 🦉 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Dec 4, 2024
1 parent a96f190 commit c7e55d4
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/google-cloud-billing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
1. [Select or create a Cloud Platform project][projects].
1. [Enable billing for your project][billing].
1. [Enable the Cloud Billing API][enable_api].
1. [Set up authentication with a service account][auth] so you can access the
1. [Set up authentication][auth] so you can access the
API from your local workstation.

### Installing the client library
Expand Down Expand Up @@ -171,4 +171,4 @@ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
[projects]: https://console.cloud.google.com/project
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=cloudbilling.googleapis.com
[auth]: https://cloud.google.com/docs/authentication/getting-started
[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,17 @@ message BillingAccount {
// - `billingAccounts/{billing_account_id}`, for example,
// `billingAccounts/012345-567890-ABCDEF`
string parent = 6 [(google.api.field_behavior) = OUTPUT_ONLY];

// Optional. The currency in which the billing account is billed and charged,
// represented as an ISO 4217 code such as `USD`.
//
// Billing account currency is determined at the time of billing account
// creation and cannot be updated subsequently, so this field should not be
// set on update requests. In addition, a subaccount always matches the
// currency of its parent billing account, so this field should not be set on
// subaccount creation requests. Clients can read this field to determine the
// currency of an existing billing account.
string currency_code = 7 [(google.api.field_behavior) = OPTIONAL];
}

// Encapsulation of billing information for a Google Cloud Console project. A
Expand Down
6 changes: 6 additions & 0 deletions packages/google-cloud-billing/protos/protos.d.ts

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

23 changes: 23 additions & 0 deletions packages/google-cloud-billing/protos/protos.js

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

10 changes: 10 additions & 0 deletions packages/google-cloud-billing/protos/protos.json

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

0 comments on commit c7e55d4

Please sign in to comment.