Class: Google::Apis::VmmigrationV1alpha1::MigratingVm
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1alpha1::MigratingVm
- 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
MigratingVm describes the VM that will be migrated from a Source environment and its replication state.
Instance Attribute Summary collapse
-
#aws_source_vm_details ⇒ Google::Apis::VmmigrationV1alpha1::AwsSourceVmDetails
Represent the source AWS VM details.
-
#compute_engine_target_defaults ⇒ Google::Apis::VmmigrationV1alpha1::ComputeEngineTargetDefaults
ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project.
-
#compute_engine_vm_defaults ⇒ Google::Apis::VmmigrationV1alpha1::TargetVmDetails
TargetVMDetails 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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::ReplicationSync
ReplicationSync contain information about the last replica sync to the cloud.
-
#name ⇒ String
Output only.
-
#policy ⇒ Google::Apis::VmmigrationV1alpha1::SchedulePolicy
A policy for scheduling replications.
-
#recent_clone_jobs ⇒ Array<Google::Apis::VmmigrationV1alpha1::CloneJob>
Output only.
-
#recent_cutover_jobs ⇒ Array<Google::Apis::VmmigrationV1alpha1::CutoverJob>
Output only.
-
#source_vm_id ⇒ String
The unique ID of the VM in the source.
-
#state ⇒ String
Output only.
-
#state_time ⇒ String
Output only.
-
#target_defaults ⇒ Google::Apis::VmmigrationV1alpha1::TargetVmDetails
TargetVMDetails is a collection of details for creating a VM in a target Compute Engine project.
-
#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.
1920 1921 1922 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1920 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aws_source_vm_details ⇒ Google::Apis::VmmigrationV1alpha1::AwsSourceVmDetails
Represent the source AWS VM details.
Corresponds to the JSON property awsSourceVmDetails
1804 1805 1806 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1804 def aws_source_vm_details @aws_source_vm_details end |
#compute_engine_target_defaults ⇒ Google::Apis::VmmigrationV1alpha1::ComputeEngineTargetDefaults
ComputeEngineTargetDefaults is a collection of details for creating a VM in a
target Compute Engine project.
Corresponds to the JSON property computeEngineTargetDefaults
1810 1811 1812 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1810 def compute_engine_target_defaults @compute_engine_target_defaults end |
#compute_engine_vm_defaults ⇒ Google::Apis::VmmigrationV1alpha1::TargetVmDetails
TargetVMDetails is a collection of details for creating a VM in a target
Compute Engine project.
Corresponds to the JSON property computeEngineVmDefaults
1816 1817 1818 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1816 def compute_engine_vm_defaults @compute_engine_vm_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
1822 1823 1824 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1822 def create_time @create_time end |
#current_sync_info ⇒ Google::Apis::VmmigrationV1alpha1::ReplicationCycle
ReplicationCycle contains information about the current replication cycle
status.
Corresponds to the JSON property currentSyncInfo
1828 1829 1830 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1828 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
1833 1834 1835 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1833 def description @description end |
#display_name ⇒ String
The display name attached to the MigratingVm by the user.
Corresponds to the JSON property displayName
1838 1839 1840 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1838 def display_name @display_name end |
#error ⇒ Google::Apis::VmmigrationV1alpha1::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
1848 1849 1850 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1848 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
1854 1855 1856 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1854 def group @group end |
#labels ⇒ Hash<String,String>
The labels of the migrating VM.
Corresponds to the JSON property labels
1859 1860 1861 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1859 def labels @labels end |
#last_sync ⇒ Google::Apis::VmmigrationV1alpha1::ReplicationSync
ReplicationSync contain information about the last replica sync to the cloud.
Corresponds to the JSON property lastSync
1864 1865 1866 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1864 def last_sync @last_sync end |
#name ⇒ String
Output only. The identifier of the MigratingVm.
Corresponds to the JSON property name
1869 1870 1871 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1869 def name @name end |
#policy ⇒ Google::Apis::VmmigrationV1alpha1::SchedulePolicy
A policy for scheduling replications.
Corresponds to the JSON property policy
1874 1875 1876 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1874 def policy @policy end |
#recent_clone_jobs ⇒ Array<Google::Apis::VmmigrationV1alpha1::CloneJob>
Output only. The recent clone jobs performed on the migrating VM. This field
holds the vm's last completed clone job and the vm's running clone job, if one
exists. Note: To have this field populated you need to explicitly request it
via the "view" parameter of the Get/List request.
Corresponds to the JSON property recentCloneJobs
1882 1883 1884 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1882 def recent_clone_jobs @recent_clone_jobs end |
#recent_cutover_jobs ⇒ Array<Google::Apis::VmmigrationV1alpha1::CutoverJob>
Output only. The recent cutover jobs performed on the migrating VM. This field
holds the vm's last completed cutover job and the vm's running cutover job, if
one exists. Note: To have this field populated you need to explicitly request
it via the "view" parameter of the Get/List request.
Corresponds to the JSON property recentCutoverJobs
1890 1891 1892 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1890 def recent_cutover_jobs @recent_cutover_jobs 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
1897 1898 1899 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1897 def source_vm_id @source_vm_id end |
#state ⇒ String
Output only. State of the MigratingVm.
Corresponds to the JSON property state
1902 1903 1904 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1902 def state @state end |
#state_time ⇒ String
Output only. The last time the migrating VM state was updated.
Corresponds to the JSON property stateTime
1907 1908 1909 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1907 def state_time @state_time end |
#target_defaults ⇒ Google::Apis::VmmigrationV1alpha1::TargetVmDetails
TargetVMDetails is a collection of details for creating a VM in a target
Compute Engine project.
Corresponds to the JSON property targetDefaults
1913 1914 1915 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1913 def target_defaults @target_defaults end |
#update_time ⇒ String
Output only. The last time the migrating VM resource was updated.
Corresponds to the JSON property updateTime
1918 1919 1920 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1918 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1925 def update!(**args) @aws_source_vm_details = args[:aws_source_vm_details] if args.key?(:aws_source_vm_details) @compute_engine_target_defaults = args[:compute_engine_target_defaults] if args.key?(:compute_engine_target_defaults) @compute_engine_vm_defaults = args[:compute_engine_vm_defaults] if args.key?(:compute_engine_vm_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) @recent_clone_jobs = args[:recent_clone_jobs] if args.key?(:recent_clone_jobs) @recent_cutover_jobs = args[:recent_cutover_jobs] if args.key?(:recent_cutover_jobs) @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) @target_defaults = args[:target_defaults] if args.key?(:target_defaults) @update_time = args[:update_time] if args.key?(:update_time) end |