Class: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1BudgetAmount

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

The budgeted amount for each usage period.

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) ⇒ GoogleCloudBillingBudgetsV1beta1BudgetAmount

Returns a new instance of GoogleCloudBillingBudgetsV1beta1BudgetAmount.


154
155
156
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 154

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

Instance Attribute Details

#last_period_amountGoogle::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1LastPeriodAmount

Describes a budget amount targeted to last period's spend. At this time, the amount is automatically 100% of last period's spend; that is, there are no other options yet. Future configuration will be described here (for example, configuring a percentage of last period's spend). Corresponds to the JSON property lastPeriodAmount


147
148
149
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 147

def last_period_amount
  @last_period_amount
end

#specified_amountGoogle::Apis::BillingbudgetsV1beta1::GoogleTypeMoney

Represents an amount of money with its currency type. Corresponds to the JSON property specifiedAmount


152
153
154
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 152

def specified_amount
  @specified_amount
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


159
160
161
162
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 159

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