Class: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1UpdateBudgetRequest
- Inherits:
-
Object
- Object
- Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1UpdateBudgetRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/billingbudgets_v1beta1/classes.rb,
generated/google/apis/billingbudgets_v1beta1/representations.rb,
generated/google/apis/billingbudgets_v1beta1/representations.rb
Overview
Request for UpdateBudget
Instance Attribute Summary collapse
-
#budget ⇒ Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget
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).
-
#update_mask ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudBillingBudgetsV1beta1UpdateBudgetRequest
constructor
A new instance of GoogleCloudBillingBudgetsV1beta1UpdateBudgetRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudBillingBudgetsV1beta1UpdateBudgetRequest
Returns a new instance of GoogleCloudBillingBudgetsV1beta1UpdateBudgetRequest.
324 325 326 |
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 324 def initialize(**args) update!(**args) end |
Instance Attribute Details
#budget ⇒ Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget
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).
Corresponds to the JSON property budget
312 313 314 |
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 312 def budget @budget end |
#update_mask ⇒ String
Optional. Indicates which fields in the provided budget to update.
Read-only fields (such as name
) cannot be changed. If this is not
provided, then only fields with non-default values from the request are
updated. See
https://developers.google.com/protocol-buffers/docs/proto3#default for more
details about default values.
Corresponds to the JSON property updateMask
322 323 324 |
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 322 def update_mask @update_mask end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
329 330 331 332 |
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 329 def update!(**args) @budget = args[:budget] if args.key?(:budget) @update_mask = args[:update_mask] if args.key?(:update_mask) end |