Class: Google::Apis::AutoscalerV1beta2::ListAutoscalerResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/autoscaler_v1beta2/classes.rb,
generated/google/apis/autoscaler_v1beta2/representations.rb,
generated/google/apis/autoscaler_v1beta2/representations.rb

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

Returns a new instance of ListAutoscalerResponse.


107
108
109
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 107

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

Instance Attribute Details

#itemsArray<Google::Apis::AutoscalerV1beta2::Autoscaler>

Autoscaler resources. Corresponds to the JSON property items


95
96
97
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 95

def items
  @items
end

#kindString

Type of resource. Corresponds to the JSON property kind

Returns:

  • (String)

100
101
102
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 100

def kind
  @kind
end

#next_page_tokenString

[Output only] A token used to continue a truncated list request. Corresponds to the JSON property nextPageToken

Returns:

  • (String)

105
106
107
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 105

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


112
113
114
115
116
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 112

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