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.
3677 3678 3679 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3677 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
3675 3676 3677 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3675 def preferred_regions @preferred_regions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3682 3683 3684 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3682 def update!(**args) @preferred_regions = args[:preferred_regions] if args.key?(:preferred_regions) end |