Class: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse

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

Response for ListBudgets

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

Returns a new instance of GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse.



256
257
258
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 256

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

Instance Attribute Details

#budgetsArray<Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Budget>

List of the budgets owned by the requested billing account. Corresponds to the JSON property budgets



248
249
250
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 248

def budgets
  @budgets
end

#next_page_tokenString

If not empty, indicates that there may be more budgets that match the request; this value should be passed in a new ListBudgetsRequest. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


254
255
256
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 254

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



261
262
263
264
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 261

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