Class: Google::Apis::ComputeBeta::SnapshotsScopedList

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

Returns a new instance of SnapshotsScopedList.



64062
64063
64064
# File 'lib/google/apis/compute_beta/classes.rb', line 64062

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

Instance Attribute Details

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

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



64054
64055
64056
# File 'lib/google/apis/compute_beta/classes.rb', line 64054

def snapshots
  @snapshots
end

#warningGoogle::Apis::ComputeBeta::SnapshotsScopedList::Warning

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



64060
64061
64062
# File 'lib/google/apis/compute_beta/classes.rb', line 64060

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



64067
64068
64069
64070
# File 'lib/google/apis/compute_beta/classes.rb', line 64067

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