Class: Google::Apis::VmmigrationV1alpha1::MigratingVm

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MigratingVm

Returns a new instance of MigratingVm.



2073
2074
2075
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2073

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

Instance Attribute Details

#aws_source_vm_detailsGoogle::Apis::VmmigrationV1alpha1::AwsSourceVmDetails

Represent the source AWS VM details. Corresponds to the JSON property awsSourceVmDetails



1940
1941
1942
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1940

def aws_source_vm_details
  @aws_source_vm_details
end

#compute_engine_disks_target_defaultsGoogle::Apis::VmmigrationV1alpha1::ComputeEngineDisksTargetDefaults

ComputeEngineDisksTargetDefaults is a collection of details for creating Persistent Disks in a target Compute Engine project. Corresponds to the JSON property computeEngineDisksTargetDefaults



1946
1947
1948
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1946

def compute_engine_disks_target_defaults
  @compute_engine_disks_target_defaults
end

#compute_engine_target_defaultsGoogle::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



1952
1953
1954
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1952

def compute_engine_target_defaults
  @compute_engine_target_defaults
end

#compute_engine_vm_defaultsGoogle::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



1958
1959
1960
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1958

def compute_engine_vm_defaults
  @compute_engine_vm_defaults
end

#create_timeString

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

Returns:

  • (String)


1964
1965
1966
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1964

def create_time
  @create_time
end

#current_sync_infoGoogle::Apis::VmmigrationV1alpha1::ReplicationCycle

ReplicationCycle contains information about the current replication cycle status. Corresponds to the JSON property currentSyncInfo



1970
1971
1972
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1970

def current_sync_info
  @current_sync_info
end

#cutover_forecastGoogle::Apis::VmmigrationV1alpha1::CutoverForecast

CutoverForecast holds information about future CutoverJobs of a MigratingVm. Corresponds to the JSON property cutoverForecast



1975
1976
1977
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1975

def cutover_forecast
  @cutover_forecast
end

#descriptionString

The description attached to the migrating VM by the user. Corresponds to the JSON property description

Returns:

  • (String)


1980
1981
1982
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1980

def description
  @description
end

#display_nameString

The display name attached to the MigratingVm by the user. Corresponds to the JSON property displayName

Returns:

  • (String)


1985
1986
1987
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1985

def display_name
  @display_name
end

#errorGoogle::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



1995
1996
1997
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1995

def error
  @error
end

#groupString

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

Returns:

  • (String)


2001
2002
2003
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2001

def group
  @group
end

#labelsHash<String,String>

The labels of the migrating VM. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


2006
2007
2008
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2006

def labels
  @labels
end

#last_replication_cycleGoogle::Apis::VmmigrationV1alpha1::ReplicationCycle

ReplicationCycle contains information about the current replication cycle status. Corresponds to the JSON property lastReplicationCycle



2012
2013
2014
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2012

def last_replication_cycle
  @last_replication_cycle
end

#last_syncGoogle::Apis::VmmigrationV1alpha1::ReplicationSync

ReplicationSync contain information about the last replica sync to the cloud. Corresponds to the JSON property lastSync



2017
2018
2019
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2017

def last_sync
  @last_sync
end

#nameString

Output only. The identifier of the MigratingVm. Corresponds to the JSON property name

Returns:

  • (String)


2022
2023
2024
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2022

def name
  @name
end

#policyGoogle::Apis::VmmigrationV1alpha1::SchedulePolicy

A policy for scheduling replications. Corresponds to the JSON property policy



2027
2028
2029
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2027

def policy
  @policy
end

#recent_clone_jobsArray<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



2035
2036
2037
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2035

def recent_clone_jobs
  @recent_clone_jobs
end

#recent_cutover_jobsArray<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



2043
2044
2045
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2043

def recent_cutover_jobs
  @recent_cutover_jobs
end

#source_vm_idString

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

Returns:

  • (String)


2050
2051
2052
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2050

def source_vm_id
  @source_vm_id
end

#stateString

Output only. State of the MigratingVm. Corresponds to the JSON property state

Returns:

  • (String)


2055
2056
2057
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2055

def state
  @state
end

#state_timeString

Output only. The last time the migrating VM state was updated. Corresponds to the JSON property stateTime

Returns:

  • (String)


2060
2061
2062
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2060

def state_time
  @state_time
end

#target_defaultsGoogle::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



2066
2067
2068
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2066

def target_defaults
  @target_defaults
end

#update_timeString

Output only. The last time the migrating VM resource was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


2071
2072
2073
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2071

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2078

def update!(**args)
  @aws_source_vm_details = args[:aws_source_vm_details] if args.key?(:aws_source_vm_details)
  @compute_engine_disks_target_defaults = args[:compute_engine_disks_target_defaults] if args.key?(:compute_engine_disks_target_defaults)
  @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)
  @cutover_forecast = args[:cutover_forecast] if args.key?(:cutover_forecast)
  @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_replication_cycle = args[:last_replication_cycle] if args.key?(:last_replication_cycle)
  @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