class Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1UpdateBudgetRequest
Request for UpdateBudget
Attributes
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). The budget time period is configurable, with options such as month (default), quarter, year, or custom time period. Corresponds to the JSON property `budget` @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget]
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` @return [String]
Public Class Methods
# File lib/google/apis/billingbudgets_v1beta1/classes.rb, line 432 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/billingbudgets_v1beta1/classes.rb, line 437 def update!(**args) @budget = args[:budget] if args.key?(:budget) @update_mask = args[:update_mask] if args.key?(:update_mask) end