Class: Google::Apis::ComputeAlpha::SnapshotSettingsAccessLocation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SnapshotSettingsAccessLocation

Returns a new instance of SnapshotSettingsAccessLocation.



47601
47602
47603
# File 'lib/google/apis/compute_alpha/classes.rb', line 47601

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

Instance Attribute Details

#locationsHash<String,Google::Apis::ComputeAlpha::SnapshotSettingsAccessLocationAccessLocationPreference>

List of regions that can restore a regional snapshot from the current region Corresponds to the JSON property locations



47599
47600
47601
# File 'lib/google/apis/compute_alpha/classes.rb', line 47599

def locations
  @locations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



47606
47607
47608
# File 'lib/google/apis/compute_alpha/classes.rb', line 47606

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