Class: Google::Apis::ComputeAlpha::NetworkAttachmentsScopedList

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

Defined Under Namespace

Classes: Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkAttachmentsScopedList

Returns a new instance of NetworkAttachmentsScopedList.



25386
25387
25388
# File 'lib/google/apis/compute_alpha/classes.rb', line 25386

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

Instance Attribute Details

#network_attachmentsArray<Google::Apis::ComputeAlpha::NetworkAttachment>

A list of NetworkAttachments contained in this scope. Corresponds to the JSON property networkAttachments



25378
25379
25380
# File 'lib/google/apis/compute_alpha/classes.rb', line 25378

def network_attachments
  @network_attachments
end

#warningGoogle::Apis::ComputeAlpha::NetworkAttachmentsScopedList::Warning

Informational warning which replaces the list of network attachments when the list is empty. Corresponds to the JSON property warning



25384
25385
25386
# File 'lib/google/apis/compute_alpha/classes.rb', line 25384

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



25391
25392
25393
25394
# File 'lib/google/apis/compute_alpha/classes.rb', line 25391

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