Class: Google::Apis::MigrationcenterV1::RegionPreferences

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_regionsArray<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

Returns:

  • (Array<String>)


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