Class: Google::Apis::ComputeV1::InstanceList

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

Overview

Contains a list of instances.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ InstanceList

Returns a new instance of InstanceList



5240
5241
5242
# File 'generated/google/apis/compute_v1/classes.rb', line 5240

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

Instance Attribute Details

#idString

[Output Only] The unique identifier for the resource. This identifier is defined by the server. Corresponds to the JSON property id

Returns:

  • (String)


5213
5214
5215
# File 'generated/google/apis/compute_v1/classes.rb', line 5213

def id
  @id
end

#itemsArray<Google::Apis::ComputeV1::Instance>

[Output Only] A list of instances. Corresponds to the JSON property items



5218
5219
5220
# File 'generated/google/apis/compute_v1/classes.rb', line 5218

def items
  @items
end

#kindString

[Output Only] Type of resource. Always compute#instanceList for lists of Instance resources. Corresponds to the JSON property kind

Returns:

  • (String)


5224
5225
5226
# File 'generated/google/apis/compute_v1/classes.rb', line 5224

def kind
  @kind
end

#next_page_tokenString

[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


5233
5234
5235
# File 'generated/google/apis/compute_v1/classes.rb', line 5233

def next_page_token
  @next_page_token
end

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

Returns:

  • (String)


5238
5239
5240
# File 'generated/google/apis/compute_v1/classes.rb', line 5238

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5245
5246
5247
5248
5249
5250
5251
# File 'generated/google/apis/compute_v1/classes.rb', line 5245

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