Class: Google::Apis::AutoscalerV1beta2::ZoneList

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

Returns a new instance of ZoneList.



695
696
697
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 695

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

Instance Attribute Details

#idString

Corresponds to the JSON property id

Returns:

  • (String)


673
674
675
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 673

def id
  @id
end

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

Corresponds to the JSON property items



678
679
680
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 678

def items
  @items
end

#kindString

Type of resource. Corresponds to the JSON property kind

Returns:

  • (String)


683
684
685
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 683

def kind
  @kind
end

#next_page_tokenString

Corresponds to the JSON property nextPageToken

Returns:

  • (String)


688
689
690
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 688

def next_page_token
  @next_page_token
end

[Output Only] Server-defined URL for this resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


693
694
695
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 693

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



700
701
702
703
704
705
706
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 700

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @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)
  @self_link = args[:self_link] if args.key?(:self_link)
end