Class: Google::Apis::VmmigrationV1::SchedulePolicy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vmmigration_v1/classes.rb,
lib/google/apis/vmmigration_v1/representations.rb,
lib/google/apis/vmmigration_v1/representations.rb

Overview

A policy for scheduling replications.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SchedulePolicy

Returns a new instance of SchedulePolicy.



3271
3272
3273
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3271

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

Instance Attribute Details

#idle_durationString

The idle duration between replication stages. Corresponds to the JSON property idleDuration

Returns:

  • (String)


3261
3262
3263
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3261

def idle_duration
  @idle_duration
end

#skip_os_adaptationBoolean Also known as: skip_os_adaptation?

A flag to indicate whether to skip OS adaptation during the replication sync. OS adaptation is a process where the VM's operating system undergoes changes and adaptations to fully function on Compute Engine. Corresponds to the JSON property skipOsAdaptation

Returns:

  • (Boolean)


3268
3269
3270
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3268

def skip_os_adaptation
  @skip_os_adaptation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3276
3277
3278
3279
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3276

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