Class: Google::Apis::MigrationcenterV1::RegionPreferences
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1::RegionPreferences
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1/classes.rb,
lib/google/apis/migrationcenter_v1/representations.rb,
lib/google/apis/migrationcenter_v1/representations.rb
Overview
The user preferences relating to target regions.
Instance Attribute Summary collapse
-
#preferred_regions ⇒ Array<String>
A list of preferred regions, ordered by the most preferred region first.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RegionPreferences
constructor
A new instance of RegionPreferences.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RegionPreferences
Returns a new instance of RegionPreferences.
4468 4469 4470 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4468 def initialize(**args) update!(**args) end |
Instance Attribute Details
#preferred_regions ⇒ Array<String>
A list of preferred regions, ordered by the most preferred region first. Set
only valid Google Cloud region names. See https://cloud.google.com/compute/
docs/regions-zones for available regions.
Corresponds to the JSON property preferredRegions
4466 4467 4468 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4466 def preferred_regions @preferred_regions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4473 4474 4475 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4473 def update!(**args) @preferred_regions = args[:preferred_regions] if args.key?(:preferred_regions) end |