Class: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest
- Inherits:
-
Object
- Object
- Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/billingbudgets_v1beta1/classes.rb,
lib/google/apis/billingbudgets_v1beta1/representations.rb,
lib/google/apis/billingbudgets_v1beta1/representations.rb
Overview
Request for CreateBudget
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).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest
constructor
A new instance of GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest
Returns a new instance of GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest.
209 210 211 |
# File 'lib/google/apis/billingbudgets_v1beta1/classes.rb', line 209 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). The budget time period is
configurable, with options such as month (default), quarter, year, or custom
time period.
Corresponds to the JSON property budget
207 208 209 |
# File 'lib/google/apis/billingbudgets_v1beta1/classes.rb', line 207 def budget @budget end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
214 215 216 |
# File 'lib/google/apis/billingbudgets_v1beta1/classes.rb', line 214 def update!(**args) @budget = args[:budget] if args.key?(:budget) end |