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.
4474 4475 4476 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4474 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
4472 4473 4474 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4472 def preferred_regions @preferred_regions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4479 4480 4481 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4479 def update!(**args) @preferred_regions = args[:preferred_regions] if args.key?(:preferred_regions) end |