Class: Google::Apis::VmmigrationV1::MigratingVm
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1::MigratingVm
- 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
MigratingVm describes the VM that will be migrated from a Source environment and its replication state.
Instance Attribute Summary collapse
-
#compute_engine_target_defaults ⇒ Google::Apis::VmmigrationV1::ComputeEngineTargetDefaults
ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project.
-
#create_time ⇒ String
Output only.
-
#current_sync_info ⇒ Google::Apis::VmmigrationV1::ReplicationCycle
ReplicationCycle contains information about the current replication cycle status.
-
#description ⇒ String
The description attached to the migrating VM by the user.
-
#display_name ⇒ String
The display name attached to the MigratingVm by the user.
-
#error ⇒ Google::Apis::VmmigrationV1::Status
The
Statustype defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. -
#group ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
The labels of the migrating VM.
-
#last_sync ⇒ Google::Apis::VmmigrationV1::ReplicationSync
ReplicationSync contain information about the last replica sync to the cloud.
-
#name ⇒ String
Output only.
-
#policy ⇒ Google::Apis::VmmigrationV1::SchedulePolicy
A policy for scheduling replications.
-
#source_vm_id ⇒ String
The unique ID of the VM in the source.
-
#state ⇒ String
Output only.
-
#state_time ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MigratingVm
constructor
A new instance of MigratingVm.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MigratingVm
Returns a new instance of MigratingVm.
1210 1211 1212 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1210 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compute_engine_target_defaults ⇒ Google::Apis::VmmigrationV1::ComputeEngineTargetDefaults
ComputeEngineTargetDefaults is a collection of details for creating a VM in a
target Compute Engine project.
Corresponds to the JSON property computeEngineTargetDefaults
1128 1129 1130 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1128 def compute_engine_target_defaults @compute_engine_target_defaults end |
#create_time ⇒ String
Output only. The time the migrating VM was created (this refers to this
resource and not to the time it was installed in the source).
Corresponds to the JSON property createTime
1134 1135 1136 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1134 def create_time @create_time end |
#current_sync_info ⇒ Google::Apis::VmmigrationV1::ReplicationCycle
ReplicationCycle contains information about the current replication cycle
status.
Corresponds to the JSON property currentSyncInfo
1140 1141 1142 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1140 def current_sync_info @current_sync_info end |
#description ⇒ String
The description attached to the migrating VM by the user.
Corresponds to the JSON property description
1145 1146 1147 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1145 def description @description end |
#display_name ⇒ String
The display name attached to the MigratingVm by the user.
Corresponds to the JSON property displayName
1150 1151 1152 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1150 def display_name @display_name end |
#error ⇒ Google::Apis::VmmigrationV1::Status
The Status type defines a logical error model that is suitable for different
programming environments, including REST APIs and RPC APIs. It is used by
gRPC. Each Status message contains three pieces of
data: error code, error message, and error details. You can find out more
about this error model and how to work with it in the API Design Guide.
Corresponds to the JSON property error
1160 1161 1162 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1160 def error @error end |
#group ⇒ String
Output only. The group this migrating vm is included in, if any. The group is
represented by the full path of the appropriate Group resource.
Corresponds to the JSON property group
1166 1167 1168 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1166 def group @group end |
#labels ⇒ Hash<String,String>
The labels of the migrating VM.
Corresponds to the JSON property labels
1171 1172 1173 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1171 def labels @labels end |
#last_sync ⇒ Google::Apis::VmmigrationV1::ReplicationSync
ReplicationSync contain information about the last replica sync to the cloud.
Corresponds to the JSON property lastSync
1176 1177 1178 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1176 def last_sync @last_sync end |
#name ⇒ String
Output only. The identifier of the MigratingVm.
Corresponds to the JSON property name
1181 1182 1183 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1181 def name @name end |
#policy ⇒ Google::Apis::VmmigrationV1::SchedulePolicy
A policy for scheduling replications.
Corresponds to the JSON property policy
1186 1187 1188 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1186 def policy @policy end |
#source_vm_id ⇒ String
The unique ID of the VM in the source. The VM's name in vSphere can be changed,
so this is not the VM's name but rather its moRef id. This id is of the form
vm-.
Corresponds to the JSON property sourceVmId
1193 1194 1195 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1193 def source_vm_id @source_vm_id end |
#state ⇒ String
Output only. State of the MigratingVm.
Corresponds to the JSON property state
1198 1199 1200 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1198 def state @state end |
#state_time ⇒ String
Output only. The last time the migrating VM state was updated.
Corresponds to the JSON property stateTime
1203 1204 1205 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1203 def state_time @state_time end |
#update_time ⇒ String
Output only. The last time the migrating VM resource was updated.
Corresponds to the JSON property updateTime
1208 1209 1210 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1208 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1215 def update!(**args) @compute_engine_target_defaults = args[:compute_engine_target_defaults] if args.key?(:compute_engine_target_defaults) @create_time = args[:create_time] if args.key?(:create_time) @current_sync_info = args[:current_sync_info] if args.key?(:current_sync_info) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @error = args[:error] if args.key?(:error) @group = args[:group] if args.key?(:group) @labels = args[:labels] if args.key?(:labels) @last_sync = args[:last_sync] if args.key?(:last_sync) @name = args[:name] if args.key?(:name) @policy = args[:policy] if args.key?(:policy) @source_vm_id = args[:source_vm_id] if args.key?(:source_vm_id) @state = args[:state] if args.key?(:state) @state_time = args[:state_time] if args.key?(:state_time) @update_time = args[:update_time] if args.key?(:update_time) end |