Class: Google::Apis::ComputeAlpha::InstanceGroupsScopedList

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

Defined Under Namespace

Classes: Warning

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

Returns a new instance of InstanceGroupsScopedList



12332
12333
12334
# File 'generated/google/apis/compute_alpha/classes.rb', line 12332

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

Instance Attribute Details

#instance_groupsArray<Google::Apis::ComputeAlpha::InstanceGroup>

[Output Only] The list of instance groups that are contained in this scope. Corresponds to the JSON property instanceGroups



12324
12325
12326
# File 'generated/google/apis/compute_alpha/classes.rb', line 12324

def instance_groups
  @instance_groups
end

#warningGoogle::Apis::ComputeAlpha::InstanceGroupsScopedList::Warning

[Output Only] An informational warning that replaces the list of instance groups when the list is empty. Corresponds to the JSON property warning



12330
12331
12332
# File 'generated/google/apis/compute_alpha/classes.rb', line 12330

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12337
12338
12339
12340
# File 'generated/google/apis/compute_alpha/classes.rb', line 12337

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