Skip to content
Permalink
Browse files
feat: Added support for configurable budget time period (#447)
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/32522ef3-54e3-4f4c-8d06-d9a69bb391c5/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

PiperOrigin-RevId: 368871890
Source-Link: googleapis/googleapis@dd6ba75
PiperOrigin-RevId: 368871882
Source-Link: googleapis/googleapis@24f0828

fix: Updated some documentation links
  • Loading branch information
yoshi-automation committed Apr 23, 2021
1 parent 416a415 commit df1d0dbde2b2472f1d313970bad2b87d4f200555
Showing with 4,914 additions and 411 deletions.
  1. +40 −28 proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Budget.java
  2. +48 −0 ...oogle-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java
  3. +12 −0 ...ud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
  4. +70 −43 ...e-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetModelProto.java
  5. +9 −6 ...le-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetOrBuilder.java
  6. +191 −0 ...gle-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CalendarPeriod.java
  7. +999 −0 ...oogle-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriod.java
  8. +101 −0 ...ud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/CustomPeriodOrBuilder.java
  9. +738 −74 proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/Filter.java
  10. +116 −16 ...le-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/FilterOrBuilder.java
  11. +18 −10 ...e-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/LastPeriodAmount.java
  12. +8 −0 ...ogle-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/ThresholdRule.java
  13. +81 −17 ...-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto
  14. +14 −14 ...billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java
  15. +4 −4 ...dgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java
  16. +40 −28 ...e-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Budget.java
  17. +60 −12 ...d-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java
  18. +15 −3 ...budgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
  19. +71 −44 ...ud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java
  20. +9 −6 ...illingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetOrBuilder.java
  21. +191 −0 ...billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CalendarPeriod.java
  22. +1,001 −0 ...d-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriod.java
  23. +101 −0 ...budgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/CustomPeriodOrBuilder.java
  24. +740 −56 ...e-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java
  25. +116 −16 ...illingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java
  26. +18 −10 ...llingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/LastPeriodAmount.java
  27. +8 −0 ...-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/ThresholdRule.java
  28. +84 −19 ...oud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto
  29. +11 −5 synth.metadata
@@ -25,8 +25,8 @@
* A budget is a plan that describes what you expect to spend on Cloud
* projects, plus the rules to execute as spend is tracked against that plan,
* (for example, send an alert when 90% of the target spend is met).
* Currently all plans are monthly budgets so the usage period(s) tracked are
* implied (calendar months of usage back-to-back).
* The budget time period is configurable, with options such as month (default),
* quarter, year, or custom time period.
* </pre>
*
* Protobuf type {@code google.cloud.billing.budgets.v1.Budget}
@@ -308,8 +308,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
* <pre>
* Optional. Filters that define which resources are used to compute
* the actual spend against the budget.
* Optional. Filters that define which resources are used to compute the
* actual spend against the budget amount, such as projects, services, and the
* budget's time period, as well as other filters.
* </pre>
*
* <code>
@@ -326,8 +327,9 @@ public boolean hasBudgetFilter() {
*
*
* <pre>
* Optional. Filters that define which resources are used to compute
* the actual spend against the budget.
* Optional. Filters that define which resources are used to compute the
* actual spend against the budget amount, such as projects, services, and the
* budget's time period, as well as other filters.
* </pre>
*
* <code>
@@ -346,8 +348,9 @@ public com.google.cloud.billing.budgets.v1.Filter getBudgetFilter() {
*
*
* <pre>
* Optional. Filters that define which resources are used to compute
* the actual spend against the budget.
* Optional. Filters that define which resources are used to compute the
* actual spend against the budget amount, such as projects, services, and the
* budget's time period, as well as other filters.
* </pre>
*
* <code>
@@ -846,8 +849,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* A budget is a plan that describes what you expect to spend on Cloud
* projects, plus the rules to execute as spend is tracked against that plan,
* (for example, send an alert when 90% of the target spend is met).
* Currently all plans are monthly budgets so the usage period(s) tracked are
* implied (calendar months of usage back-to-back).
* The budget time period is configurable, with options such as month (default),
* quarter, year, or custom time period.
* </pre>
*
* Protobuf type {@code google.cloud.billing.budgets.v1.Budget}
@@ -1340,8 +1343,9 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
*
*
* <pre>
* Optional. Filters that define which resources are used to compute
* the actual spend against the budget.
* Optional. Filters that define which resources are used to compute the
* actual spend against the budget amount, such as projects, services, and the
* budget's time period, as well as other filters.
* </pre>
*
* <code>
@@ -1357,8 +1361,9 @@ public boolean hasBudgetFilter() {
*
*
* <pre>
* Optional. Filters that define which resources are used to compute
* the actual spend against the budget.
* Optional. Filters that define which resources are used to compute the
* actual spend against the budget amount, such as projects, services, and the
* budget's time period, as well as other filters.
* </pre>
*
* <code>
@@ -1380,8 +1385,9 @@ public com.google.cloud.billing.budgets.v1.Filter getBudgetFilter() {
*
*
* <pre>
* Optional. Filters that define which resources are used to compute
* the actual spend against the budget.
* Optional. Filters that define which resources are used to compute the
* actual spend against the budget amount, such as projects, services, and the
* budget's time period, as well as other filters.
* </pre>
*
* <code>
@@ -1405,8 +1411,9 @@ public Builder setBudgetFilter(com.google.cloud.billing.budgets.v1.Filter value)
*
*
* <pre>
* Optional. Filters that define which resources are used to compute
* the actual spend against the budget.
* Optional. Filters that define which resources are used to compute the
* actual spend against the budget amount, such as projects, services, and the
* budget's time period, as well as other filters.
* </pre>
*
* <code>
@@ -1428,8 +1435,9 @@ public Builder setBudgetFilter(
*
*
* <pre>
* Optional. Filters that define which resources are used to compute
* the actual spend against the budget.
* Optional. Filters that define which resources are used to compute the
* actual spend against the budget amount, such as projects, services, and the
* budget's time period, as well as other filters.
* </pre>
*
* <code>
@@ -1457,8 +1465,9 @@ public Builder mergeBudgetFilter(com.google.cloud.billing.budgets.v1.Filter valu
*
*
* <pre>
* Optional. Filters that define which resources are used to compute
* the actual spend against the budget.
* Optional. Filters that define which resources are used to compute the
* actual spend against the budget amount, such as projects, services, and the
* budget's time period, as well as other filters.
* </pre>
*
* <code>
@@ -1480,8 +1489,9 @@ public Builder clearBudgetFilter() {
*
*
* <pre>
* Optional. Filters that define which resources are used to compute
* the actual spend against the budget.
* Optional. Filters that define which resources are used to compute the
* actual spend against the budget amount, such as projects, services, and the
* budget's time period, as well as other filters.
* </pre>
*
* <code>
@@ -1497,8 +1507,9 @@ public com.google.cloud.billing.budgets.v1.Filter.Builder getBudgetFilterBuilder
*
*
* <pre>
* Optional. Filters that define which resources are used to compute
* the actual spend against the budget.
* Optional. Filters that define which resources are used to compute the
* actual spend against the budget amount, such as projects, services, and the
* budget's time period, as well as other filters.
* </pre>
*
* <code>
@@ -1518,8 +1529,9 @@ public com.google.cloud.billing.budgets.v1.FilterOrBuilder getBudgetFilterOrBuil
*
*
* <pre>
* Optional. Filters that define which resources are used to compute
* the actual spend against the budget.
* Optional. Filters that define which resources are used to compute the
* actual spend against the budget amount, such as projects, services, and the
* budget's time period, as well as other filters.
* </pre>
*
* <code>
@@ -252,6 +252,10 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
*
* <pre>
* Use the last period's actual spend as the budget for the present period.
* LastPeriodAmount can only be set when the budget's time period is a
* [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period].
* It cannot be set in combination with
* [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
* </pre>
*
* <code>.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;</code>
@@ -267,6 +271,10 @@ public boolean hasLastPeriodAmount() {
*
* <pre>
* Use the last period's actual spend as the budget for the present period.
* LastPeriodAmount can only be set when the budget's time period is a
* [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period].
* It cannot be set in combination with
* [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
* </pre>
*
* <code>.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;</code>
@@ -285,6 +293,10 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount getLastPeriodAmount(
*
* <pre>
* Use the last period's actual spend as the budget for the present period.
* LastPeriodAmount can only be set when the budget's time period is a
* [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period].
* It cannot be set in combination with
* [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
* </pre>
*
* <code>.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;</code>
@@ -931,6 +943,10 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
*
* <pre>
* Use the last period's actual spend as the budget for the present period.
* LastPeriodAmount can only be set when the budget's time period is a
* [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period].
* It cannot be set in combination with
* [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
* </pre>
*
* <code>.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;</code>
@@ -946,6 +962,10 @@ public boolean hasLastPeriodAmount() {
*
* <pre>
* Use the last period's actual spend as the budget for the present period.
* LastPeriodAmount can only be set when the budget's time period is a
* [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period].
* It cannot be set in combination with
* [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
* </pre>
*
* <code>.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;</code>
@@ -971,6 +991,10 @@ public com.google.cloud.billing.budgets.v1.LastPeriodAmount getLastPeriodAmount(
*
* <pre>
* Use the last period's actual spend as the budget for the present period.
* LastPeriodAmount can only be set when the budget's time period is a
* [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period].
* It cannot be set in combination with
* [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
* </pre>
*
* <code>.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;</code>
@@ -993,6 +1017,10 @@ public Builder setLastPeriodAmount(com.google.cloud.billing.budgets.v1.LastPerio
*
* <pre>
* Use the last period's actual spend as the budget for the present period.
* LastPeriodAmount can only be set when the budget's time period is a
* [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period].
* It cannot be set in combination with
* [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
* </pre>
*
* <code>.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;</code>
@@ -1013,6 +1041,10 @@ public Builder setLastPeriodAmount(
*
* <pre>
* Use the last period's actual spend as the budget for the present period.
* LastPeriodAmount can only be set when the budget's time period is a
* [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period].
* It cannot be set in combination with
* [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
* </pre>
*
* <code>.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;</code>
@@ -1046,6 +1078,10 @@ public Builder mergeLastPeriodAmount(
*
* <pre>
* Use the last period's actual spend as the budget for the present period.
* LastPeriodAmount can only be set when the budget's time period is a
* [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period].
* It cannot be set in combination with
* [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
* </pre>
*
* <code>.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;</code>
@@ -1071,6 +1107,10 @@ public Builder clearLastPeriodAmount() {
*
* <pre>
* Use the last period's actual spend as the budget for the present period.
* LastPeriodAmount can only be set when the budget's time period is a
* [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period].
* It cannot be set in combination with
* [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
* </pre>
*
* <code>.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;</code>
@@ -1084,6 +1124,10 @@ public Builder clearLastPeriodAmount() {
*
* <pre>
* Use the last period's actual spend as the budget for the present period.
* LastPeriodAmount can only be set when the budget's time period is a
* [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period].
* It cannot be set in combination with
* [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
* </pre>
*
* <code>.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;</code>
@@ -1105,6 +1149,10 @@ public Builder clearLastPeriodAmount() {
*
* <pre>
* Use the last period's actual spend as the budget for the present period.
* LastPeriodAmount can only be set when the budget's time period is a
* [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period].
* It cannot be set in combination with
* [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
* </pre>
*
* <code>.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;</code>
@@ -75,6 +75,10 @@
*
* <pre>
* Use the last period's actual spend as the budget for the present period.
* LastPeriodAmount can only be set when the budget's time period is a
* [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period].
* It cannot be set in combination with
* [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
* </pre>
*
* <code>.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;</code>
@@ -87,6 +91,10 @@
*
* <pre>
* Use the last period's actual spend as the budget for the present period.
* LastPeriodAmount can only be set when the budget's time period is a
* [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period].
* It cannot be set in combination with
* [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
* </pre>
*
* <code>.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;</code>
@@ -99,6 +107,10 @@
*
* <pre>
* Use the last period's actual spend as the budget for the present period.
* LastPeriodAmount can only be set when the budget's time period is a
* [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period].
* It cannot be set in combination with
* [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
* </pre>
*
* <code>.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;</code>

0 comments on commit df1d0db

Please sign in to comment.