Class: Google::Apis::ComputeAlpha::SnapshotsScopedList

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

Returns a new instance of SnapshotsScopedList.



46654
46655
46656
# File 'lib/google/apis/compute_alpha/classes.rb', line 46654

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

Instance Attribute Details

#snapshotsArray<Google::Apis::ComputeAlpha::Snapshot>

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



46646
46647
46648
# File 'lib/google/apis/compute_alpha/classes.rb', line 46646

def snapshots
  @snapshots
end

#warningGoogle::Apis::ComputeAlpha::SnapshotsScopedList::Warning

[Output Only] Informational warning which replaces the list of snapshots when the list is empty. Corresponds to the JSON property warning



46652
46653
46654
# File 'lib/google/apis/compute_alpha/classes.rb', line 46652

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46659
46660
46661
46662
# File 'lib/google/apis/compute_alpha/classes.rb', line 46659

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