Class: Google::Apis::VmmigrationV1alpha1::SchedulePolicy
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1alpha1::SchedulePolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmmigration_v1alpha1/classes.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb
Overview
A policy for scheduling replications.
Instance Attribute Summary collapse
-
#idle_duration ⇒ String
The idle duration between replication stages.
-
#skip_os_adaptation ⇒ Boolean
(also: #skip_os_adaptation?)
A flag to indicate whether to skip OS adaptation during the replication sync.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SchedulePolicy
constructor
A new instance of SchedulePolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SchedulePolicy
Returns a new instance of SchedulePolicy.
3961 3962 3963 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3961 def initialize(**args) update!(**args) end |
Instance Attribute Details
#idle_duration ⇒ String
The idle duration between replication stages.
Corresponds to the JSON property idleDuration
3951 3952 3953 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3951 def idle_duration @idle_duration end |
#skip_os_adaptation ⇒ Boolean 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
3958 3959 3960 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3958 def skip_os_adaptation @skip_os_adaptation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3966 3967 3968 3969 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3966 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 |