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

docs: Update rules for currency_code in budget_amount #387

Merged
merged 2 commits into from Feb 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -189,9 +189,10 @@ public BudgetAmountCase getBudgetAmountCase() {
*
* <pre>
* A specified amount to use as the budget.
* `currency_code` is optional. If specified, it must match the
* currency of the billing account. The `currency_code` is provided on
* output.
* `currency_code` is optional. If specified when creating a budget, it must
* match the currency of the billing account. If specified when updating a
* budget, it must match the currency_code of the existing budget.
* The `currency_code` is provided on output.
* </pre>
*
* <code>.google.type.Money specified_amount = 1;</code>
Expand All @@ -207,9 +208,10 @@ public boolean hasSpecifiedAmount() {
*
* <pre>
* A specified amount to use as the budget.
* `currency_code` is optional. If specified, it must match the
* currency of the billing account. The `currency_code` is provided on
* output.
* `currency_code` is optional. If specified when creating a budget, it must
* match the currency of the billing account. If specified when updating a
* budget, it must match the currency_code of the existing budget.
* The `currency_code` is provided on output.
* </pre>
*
* <code>.google.type.Money specified_amount = 1;</code>
Expand All @@ -228,9 +230,10 @@ public com.google.type.Money getSpecifiedAmount() {
*
* <pre>
* A specified amount to use as the budget.
* `currency_code` is optional. If specified, it must match the
* currency of the billing account. The `currency_code` is provided on
* output.
* `currency_code` is optional. If specified when creating a budget, it must
* match the currency of the billing account. If specified when updating a
* budget, it must match the currency_code of the existing budget.
* The `currency_code` is provided on output.
* </pre>
*
* <code>.google.type.Money specified_amount = 1;</code>
Expand Down Expand Up @@ -690,9 +693,10 @@ public Builder clearBudgetAmount() {
*
* <pre>
* A specified amount to use as the budget.
* `currency_code` is optional. If specified, it must match the
* currency of the billing account. The `currency_code` is provided on
* output.
* `currency_code` is optional. If specified when creating a budget, it must
* match the currency of the billing account. If specified when updating a
* budget, it must match the currency_code of the existing budget.
* The `currency_code` is provided on output.
* </pre>
*
* <code>.google.type.Money specified_amount = 1;</code>
Expand All @@ -708,9 +712,10 @@ public boolean hasSpecifiedAmount() {
*
* <pre>
* A specified amount to use as the budget.
* `currency_code` is optional. If specified, it must match the
* currency of the billing account. The `currency_code` is provided on
* output.
* `currency_code` is optional. If specified when creating a budget, it must
* match the currency of the billing account. If specified when updating a
* budget, it must match the currency_code of the existing budget.
* The `currency_code` is provided on output.
* </pre>
*
* <code>.google.type.Money specified_amount = 1;</code>
Expand All @@ -736,9 +741,10 @@ public com.google.type.Money getSpecifiedAmount() {
*
* <pre>
* A specified amount to use as the budget.
* `currency_code` is optional. If specified, it must match the
* currency of the billing account. The `currency_code` is provided on
* output.
* `currency_code` is optional. If specified when creating a budget, it must
* match the currency of the billing account. If specified when updating a
* budget, it must match the currency_code of the existing budget.
* The `currency_code` is provided on output.
* </pre>
*
* <code>.google.type.Money specified_amount = 1;</code>
Expand All @@ -761,9 +767,10 @@ public Builder setSpecifiedAmount(com.google.type.Money value) {
*
* <pre>
* A specified amount to use as the budget.
* `currency_code` is optional. If specified, it must match the
* currency of the billing account. The `currency_code` is provided on
* output.
* `currency_code` is optional. If specified when creating a budget, it must
* match the currency of the billing account. If specified when updating a
* budget, it must match the currency_code of the existing budget.
* The `currency_code` is provided on output.
* </pre>
*
* <code>.google.type.Money specified_amount = 1;</code>
Expand All @@ -783,9 +790,10 @@ public Builder setSpecifiedAmount(com.google.type.Money.Builder builderForValue)
*
* <pre>
* A specified amount to use as the budget.
* `currency_code` is optional. If specified, it must match the
* currency of the billing account. The `currency_code` is provided on
* output.
* `currency_code` is optional. If specified when creating a budget, it must
* match the currency of the billing account. If specified when updating a
* budget, it must match the currency_code of the existing budget.
* The `currency_code` is provided on output.
* </pre>
*
* <code>.google.type.Money specified_amount = 1;</code>
Expand Down Expand Up @@ -815,9 +823,10 @@ public Builder mergeSpecifiedAmount(com.google.type.Money value) {
*
* <pre>
* A specified amount to use as the budget.
* `currency_code` is optional. If specified, it must match the
* currency of the billing account. The `currency_code` is provided on
* output.
* `currency_code` is optional. If specified when creating a budget, it must
* match the currency of the billing account. If specified when updating a
* budget, it must match the currency_code of the existing budget.
* The `currency_code` is provided on output.
* </pre>
*
* <code>.google.type.Money specified_amount = 1;</code>
Expand All @@ -843,9 +852,10 @@ public Builder clearSpecifiedAmount() {
*
* <pre>
* A specified amount to use as the budget.
* `currency_code` is optional. If specified, it must match the
* currency of the billing account. The `currency_code` is provided on
* output.
* `currency_code` is optional. If specified when creating a budget, it must
* match the currency of the billing account. If specified when updating a
* budget, it must match the currency_code of the existing budget.
* The `currency_code` is provided on output.
* </pre>
*
* <code>.google.type.Money specified_amount = 1;</code>
Expand All @@ -858,9 +868,10 @@ public com.google.type.Money.Builder getSpecifiedAmountBuilder() {
*
* <pre>
* A specified amount to use as the budget.
* `currency_code` is optional. If specified, it must match the
* currency of the billing account. The `currency_code` is provided on
* output.
* `currency_code` is optional. If specified when creating a budget, it must
* match the currency of the billing account. If specified when updating a
* budget, it must match the currency_code of the existing budget.
* The `currency_code` is provided on output.
* </pre>
*
* <code>.google.type.Money specified_amount = 1;</code>
Expand All @@ -881,9 +892,10 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
*
* <pre>
* A specified amount to use as the budget.
* `currency_code` is optional. If specified, it must match the
* currency of the billing account. The `currency_code` is provided on
* output.
* `currency_code` is optional. If specified when creating a budget, it must
* match the currency of the billing account. If specified when updating a
* budget, it must match the currency_code of the existing budget.
* The `currency_code` is provided on output.
* </pre>
*
* <code>.google.type.Money specified_amount = 1;</code>
Expand Down
Expand Up @@ -28,9 +28,10 @@ public interface BudgetAmountOrBuilder
*
* <pre>
* A specified amount to use as the budget.
* `currency_code` is optional. If specified, it must match the
* currency of the billing account. The `currency_code` is provided on
* output.
* `currency_code` is optional. If specified when creating a budget, it must
* match the currency of the billing account. If specified when updating a
* budget, it must match the currency_code of the existing budget.
* The `currency_code` is provided on output.
* </pre>
*
* <code>.google.type.Money specified_amount = 1;</code>
Expand All @@ -43,9 +44,10 @@ public interface BudgetAmountOrBuilder
*
* <pre>
* A specified amount to use as the budget.
* `currency_code` is optional. If specified, it must match the
* currency of the billing account. The `currency_code` is provided on
* output.
* `currency_code` is optional. If specified when creating a budget, it must
* match the currency of the billing account. If specified when updating a
* budget, it must match the currency_code of the existing budget.
* The `currency_code` is provided on output.
* </pre>
*
* <code>.google.type.Money specified_amount = 1;</code>
Expand All @@ -58,9 +60,10 @@ public interface BudgetAmountOrBuilder
*
* <pre>
* A specified amount to use as the budget.
* `currency_code` is optional. If specified, it must match the
* currency of the billing account. The `currency_code` is provided on
* output.
* `currency_code` is optional. If specified when creating a budget, it must
* match the currency of the billing account. If specified when updating a
* budget, it must match the currency_code of the existing budget.
* The `currency_code` is provided on output.
* </pre>
*
* <code>.google.type.Money specified_amount = 1;</code>
Expand Down
Expand Up @@ -215,9 +215,12 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() {
*
*
* <pre>
* Optional. The schema version of the notification sent to `pubsub_topic`.
* Optional. Required when
* [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
* is set. The schema version of the notification sent to
* [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic].
* Only "1.0" is accepted. It represents the JSON schema as defined in
* https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format
* https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.
* </pre>
*
* <code>string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand All @@ -240,9 +243,12 @@ public java.lang.String getSchemaVersion() {
*
*
* <pre>
* Optional. The schema version of the notification sent to `pubsub_topic`.
* Optional. Required when
* [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
* is set. The schema version of the notification sent to
* [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic].
* Only "1.0" is accepted. It represents the JSON schema as defined in
* https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format
* https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.
* </pre>
*
* <code>string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand Down Expand Up @@ -931,9 +937,12 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) {
*
*
* <pre>
* Optional. The schema version of the notification sent to `pubsub_topic`.
* Optional. Required when
* [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
* is set. The schema version of the notification sent to
* [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic].
* Only "1.0" is accepted. It represents the JSON schema as defined in
* https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format
* https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.
* </pre>
*
* <code>string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand All @@ -955,9 +964,12 @@ public java.lang.String getSchemaVersion() {
*
*
* <pre>
* Optional. The schema version of the notification sent to `pubsub_topic`.
* Optional. Required when
* [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
* is set. The schema version of the notification sent to
* [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic].
* Only "1.0" is accepted. It represents the JSON schema as defined in
* https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format
* https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.
* </pre>
*
* <code>string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand All @@ -979,9 +991,12 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() {
*
*
* <pre>
* Optional. The schema version of the notification sent to `pubsub_topic`.
* Optional. Required when
* [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
* is set. The schema version of the notification sent to
* [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic].
* Only "1.0" is accepted. It represents the JSON schema as defined in
* https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format
* https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.
* </pre>
*
* <code>string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand All @@ -1002,9 +1017,12 @@ public Builder setSchemaVersion(java.lang.String value) {
*
*
* <pre>
* Optional. The schema version of the notification sent to `pubsub_topic`.
* Optional. Required when
* [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
* is set. The schema version of the notification sent to
* [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic].
* Only "1.0" is accepted. It represents the JSON schema as defined in
* https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format
* https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.
* </pre>
*
* <code>string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand All @@ -1021,9 +1039,12 @@ public Builder clearSchemaVersion() {
*
*
* <pre>
* Optional. The schema version of the notification sent to `pubsub_topic`.
* Optional. Required when
* [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
* is set. The schema version of the notification sent to
* [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic].
* Only "1.0" is accepted. It represents the JSON schema as defined in
* https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format
* https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.
* </pre>
*
* <code>string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand Down
Expand Up @@ -72,9 +72,12 @@ public interface NotificationsRuleOrBuilder
*
*
* <pre>
* Optional. The schema version of the notification sent to `pubsub_topic`.
* Optional. Required when
* [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
* is set. The schema version of the notification sent to
* [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic].
* Only "1.0" is accepted. It represents the JSON schema as defined in
* https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format
* https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.
* </pre>
*
* <code>string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand All @@ -86,9 +89,12 @@ public interface NotificationsRuleOrBuilder
*
*
* <pre>
* Optional. The schema version of the notification sent to `pubsub_topic`.
* Optional. Required when
* [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
* is set. The schema version of the notification sent to
* [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic].
* Only "1.0" is accepted. It represents the JSON schema as defined in
* https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format
* https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.
* </pre>
*
* <code>string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand Down
@@ -1,4 +1,4 @@
// Copyright 2020 Google LLC
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -74,9 +74,10 @@ message BudgetAmount {
// Specification for what amount to use as the budget.
oneof budget_amount {
// A specified amount to use as the budget.
// `currency_code` is optional. If specified, it must match the
// currency of the billing account. The `currency_code` is provided on
// output.
// `currency_code` is optional. If specified when creating a budget, it must
// match the currency of the billing account. If specified when updating a
// budget, it must match the currency_code of the existing budget.
// The `currency_code` is provided on output.
google.type.Money specified_amount = 1;

// Use the last period's actual spend as the budget for the present period.
Expand Down Expand Up @@ -138,9 +139,12 @@ message NotificationsRule {
// for more details on Pub/Sub roles and permissions.
string pubsub_topic = 1 [(google.api.field_behavior) = OPTIONAL];

// Optional. The schema version of the notification sent to `pubsub_topic`.
// Optional. Required when
// [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
// is set. The schema version of the notification sent to
// [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic].
// Only "1.0" is accepted. It represents the JSON schema as defined in
// https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format
// https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.
string schema_version = 2 [(google.api.field_behavior) = OPTIONAL];

// Optional. Targets to send notifications to when a threshold is exceeded.
Expand Down