Class: Google::Apis::ComputeBeta::NetworkAttachmentsScopedList

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



25545
25546
25547
# File 'lib/google/apis/compute_beta/classes.rb', line 25545

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

Instance Attribute Details

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

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



25537
25538
25539
# File 'lib/google/apis/compute_beta/classes.rb', line 25537

def network_attachments
  @network_attachments
end

#warningGoogle::Apis::ComputeBeta::NetworkAttachmentsScopedList::Warning

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



25543
25544
25545
# File 'lib/google/apis/compute_beta/classes.rb', line 25543

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



25550
25551
25552
25553
# File 'lib/google/apis/compute_beta/classes.rb', line 25550

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