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.



3596
3597
3598
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3596

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


3594
3595
3596
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3594

def preferred_regions
  @preferred_regions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3601
3602
3603
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3601

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