Class: Google::Apis::ComputeAlpha::SubnetworksScopedList

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

Returns a new instance of SubnetworksScopedList



22161
22162
22163
# File 'generated/google/apis/compute_alpha/classes.rb', line 22161

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

Instance Attribute Details

#subnetworksArray<Google::Apis::ComputeAlpha::Subnetwork>

List of subnetworks contained in this scope. Corresponds to the JSON property subnetworks



22154
22155
22156
# File 'generated/google/apis/compute_alpha/classes.rb', line 22154

def subnetworks
  @subnetworks
end

#warningGoogle::Apis::ComputeAlpha::SubnetworksScopedList::Warning

An informational warning that appears when the list of addresses is empty. Corresponds to the JSON property warning



22159
22160
22161
# File 'generated/google/apis/compute_alpha/classes.rb', line 22159

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22166
22167
22168
22169
# File 'generated/google/apis/compute_alpha/classes.rb', line 22166

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