Class: Google::Apis::ComputeAlpha::HostsScopedList

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

Returns a new instance of HostsScopedList



8061
8062
8063
# File 'generated/google/apis/compute_alpha/classes.rb', line 8061

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

Instance Attribute Details

#hostsArray<Google::Apis::ComputeAlpha::Host>

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



8053
8054
8055
# File 'generated/google/apis/compute_alpha/classes.rb', line 8053

def hosts
  @hosts
end

#warningGoogle::Apis::ComputeAlpha::HostsScopedList::Warning

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



8059
8060
8061
# File 'generated/google/apis/compute_alpha/classes.rb', line 8059

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8066
8067
8068
8069
# File 'generated/google/apis/compute_alpha/classes.rb', line 8066

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