Class: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest

Inherits:
Object
  • Object
show all
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 CreateBudget

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest

Returns a new instance of GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest.



174
175
176
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 174

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#budgetGoogle::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



172
173
174
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 172

def budget
  @budget
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



179
180
181
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 179

def update!(**args)
  @budget = args[:budget] if args.key?(:budget)
end