Class: Google::Apis::ComputeV1::NetworkAttachmentsScopedList

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/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.



23819
23820
23821
# File 'lib/google/apis/compute_v1/classes.rb', line 23819

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

Instance Attribute Details

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

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



23811
23812
23813
# File 'lib/google/apis/compute_v1/classes.rb', line 23811

def network_attachments
  @network_attachments
end

#warningGoogle::Apis::ComputeV1::NetworkAttachmentsScopedList::Warning

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



23817
23818
23819
# File 'lib/google/apis/compute_v1/classes.rb', line 23817

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23824
23825
23826
23827
# File 'lib/google/apis/compute_v1/classes.rb', line 23824

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