Class: Google::Apis::ComputeAlpha::NodeTypesScopedList

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

Returns a new instance of NodeTypesScopedList.



21774
21775
21776
# File 'generated/google/apis/compute_alpha/classes.rb', line 21774

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

Instance Attribute Details

#node_typesArray<Google::Apis::ComputeAlpha::NodeType>

[Output Only] A list of node types contained in this scope. Corresponds to the JSON property nodeTypes



21766
21767
21768
# File 'generated/google/apis/compute_alpha/classes.rb', line 21766

def node_types
  @node_types
end

#warningGoogle::Apis::ComputeAlpha::NodeTypesScopedList::Warning

[Output Only] An informational warning that appears when the node types list is empty. Corresponds to the JSON property warning



21772
21773
21774
# File 'generated/google/apis/compute_alpha/classes.rb', line 21772

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21779
21780
21781
21782
# File 'generated/google/apis/compute_alpha/classes.rb', line 21779

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