Class: Google::Apis::MigrationcenterV1alpha1::PreferenceSet

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PreferenceSet

Returns a new instance of PreferenceSet.



3351
3352
3353
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3351

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. The timestamp when the preference set was created. Corresponds to the JSON property createTime

Returns:

  • (String)


3321
3322
3323
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3321

def create_time
  @create_time
end

#descriptionString

A description of the preference set. Corresponds to the JSON property description

Returns:

  • (String)


3326
3327
3328
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3326

def description
  @description
end

#display_nameString

User-friendly display name. Maximum length is 63 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


3331
3332
3333
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3331

def display_name
  @display_name
end

#nameString

Output only. Name of the preference set. Corresponds to the JSON property name

Returns:

  • (String)


3336
3337
3338
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3336

def name
  @name
end

#update_timeString

Output only. The timestamp when the preference set was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


3341
3342
3343
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3341

def update_time
  @update_time
end

#virtual_machine_preferencesGoogle::Apis::MigrationcenterV1alpha1::VirtualMachinePreferences

VirtualMachinePreferences enables you to create sets of assumptions, 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



3349
3350
3351
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3349

def virtual_machine_preferences
  @virtual_machine_preferences
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3356
3357
3358
3359
3360
3361
3362
3363
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3356

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @name = args[:name] if args.key?(:name)
  @update_time = args[:update_time] if args.key?(:update_time)
  @virtual_machine_preferences = args[:virtual_machine_preferences] if args.key?(:virtual_machine_preferences)
end