Class: Google::Apis::MigrationcenterV1alpha1::PreferenceSet
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::PreferenceSet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb
Overview
The preferences that apply to all assets in a given context.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#database_preferences ⇒ Google::Apis::MigrationcenterV1alpha1::DatabasePreferences
DatabasePreferences enables you to create sets of preferences for your migrated databases.
-
#description ⇒ String
A description of the preference set.
-
#display_name ⇒ String
User-friendly display name.
-
#name ⇒ String
Output only.
-
#region_preferences ⇒ Google::Apis::MigrationcenterV1alpha1::RegionPreferences
The user preferences relating to target regions.
-
#update_time ⇒ String
Output only.
-
#virtual_machine_preferences ⇒ Google::Apis::MigrationcenterV1alpha1::VirtualMachinePreferences
VirtualMachinePreferences enables you to create sets of preferences, for example, a geographical location and pricing track, for your migrated virtual machines.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PreferenceSet
constructor
A new instance of PreferenceSet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PreferenceSet
Returns a new instance of PreferenceSet.
5141 5142 5143 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5141 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The timestamp when the preference set was created.
Corresponds to the JSON property createTime
5100 5101 5102 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5100 def create_time @create_time end |
#database_preferences ⇒ Google::Apis::MigrationcenterV1alpha1::DatabasePreferences
DatabasePreferences enables you to create sets of preferences for your
migrated databases.
Corresponds to the JSON property databasePreferences
5106 5107 5108 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5106 def database_preferences @database_preferences end |
#description ⇒ String
A description of the preference set.
Corresponds to the JSON property description
5111 5112 5113 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5111 def description @description end |
#display_name ⇒ String
User-friendly display name. Maximum length is 63 characters.
Corresponds to the JSON property displayName
5116 5117 5118 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5116 def display_name @display_name end |
#name ⇒ String
Output only. Name of the preference set.
Corresponds to the JSON property name
5121 5122 5123 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5121 def name @name end |
#region_preferences ⇒ Google::Apis::MigrationcenterV1alpha1::RegionPreferences
The user preferences relating to target regions.
Corresponds to the JSON property regionPreferences
5126 5127 5128 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5126 def region_preferences @region_preferences end |
#update_time ⇒ String
Output only. The timestamp when the preference set was last updated.
Corresponds to the JSON property updateTime
5131 5132 5133 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5131 def update_time @update_time end |
#virtual_machine_preferences ⇒ Google::Apis::MigrationcenterV1alpha1::VirtualMachinePreferences
VirtualMachinePreferences enables you to create sets of preferences, for
example, a geographical location and pricing track, for your migrated virtual
machines. The set of preferences influence recommendations for migrating
virtual machine assets.
Corresponds to the JSON property virtualMachinePreferences
5139 5140 5141 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5139 def virtual_machine_preferences @virtual_machine_preferences end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5146 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @database_preferences = args[:database_preferences] if args.key?(:database_preferences) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @region_preferences = args[:region_preferences] if args.key?(:region_preferences) @update_time = args[:update_time] if args.key?(:update_time) @virtual_machine_preferences = args[:virtual_machine_preferences] if args.key?(:virtual_machine_preferences) end |