Class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1BudgetAmount
- Inherits:
-
Object
- Object
- Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1BudgetAmount
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/billingbudgets_v1/classes.rb,
lib/google/apis/billingbudgets_v1/representations.rb,
lib/google/apis/billingbudgets_v1/representations.rb
Overview
The budgeted amount for each usage period.
Instance Attribute Summary collapse
-
#last_period_amount ⇒ Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1LastPeriodAmount
Describes a budget amount targeted to the last Filter.calendar_period spend.
-
#specified_amount ⇒ Google::Apis::BillingbudgetsV1::GoogleTypeMoney
Represents an amount of money with its currency type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudBillingBudgetsV1BudgetAmount
constructor
A new instance of GoogleCloudBillingBudgetsV1BudgetAmount.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudBillingBudgetsV1BudgetAmount
Returns a new instance of GoogleCloudBillingBudgetsV1BudgetAmount.
109 110 111 |
# File 'lib/google/apis/billingbudgets_v1/classes.rb', line 109 def initialize(**args) update!(**args) end |
Instance Attribute Details
#last_period_amount ⇒ Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1LastPeriodAmount
Describes a budget amount targeted to the last Filter.calendar_period spend.
At this time, the amount is automatically 100% of the last calendar period's
spend; that is, there are no other options yet. Future configuration options
will be described here (for example, configuring a percentage of last period's
spend). LastPeriodAmount cannot be set for a budget configured with a Filter.
custom_period.
Corresponds to the JSON property lastPeriodAmount
102 103 104 |
# File 'lib/google/apis/billingbudgets_v1/classes.rb', line 102 def last_period_amount @last_period_amount end |
#specified_amount ⇒ Google::Apis::BillingbudgetsV1::GoogleTypeMoney
Represents an amount of money with its currency type.
Corresponds to the JSON property specifiedAmount
107 108 109 |
# File 'lib/google/apis/billingbudgets_v1/classes.rb', line 107 def specified_amount @specified_amount end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
114 115 116 117 |
# File 'lib/google/apis/billingbudgets_v1/classes.rb', line 114 def update!(**args) @last_period_amount = args[:last_period_amount] if args.key?(:last_period_amount) @specified_amount = args[:specified_amount] if args.key?(:specified_amount) end |