Class: Google::Apis::VmmigrationV1::ComputeEngineDisksTargetDefaults

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

ComputeEngineDisksTargetDefaults is a collection of details for creating Persistent Disks in a target Compute Engine project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComputeEngineDisksTargetDefaults

Returns a new instance of ComputeEngineDisksTargetDefaults.



1159
1160
1161
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1159

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

Instance Attribute Details

#disksArray<Google::Apis::VmmigrationV1::PersistentDiskDefaults>

The details of each Persistent Disk to create. Corresponds to the JSON property disks



1136
1137
1138
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1136

def disks
  @disks
end

#disks_target_defaultsGoogle::Apis::VmmigrationV1::DisksMigrationDisksTargetDefaults

Details for a disk only migration. Corresponds to the JSON property disksTargetDefaults



1141
1142
1143
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1141

def disks_target_defaults
  @disks_target_defaults
end

#target_projectString

The full path of the resource of type TargetProject which represents the Compute Engine project in which to create the Persistent Disks. Corresponds to the JSON property targetProject

Returns:

  • (String)


1147
1148
1149
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1147

def target_project
  @target_project
end

#vm_target_defaultsGoogle::Apis::VmmigrationV1::DisksMigrationVmTargetDefaults

Details for creation of a VM that migrated data disks will be attached to. Corresponds to the JSON property vmTargetDefaults



1152
1153
1154
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1152

def vm_target_defaults
  @vm_target_defaults
end

#zoneString

The zone in which to create the Persistent Disks. Corresponds to the JSON property zone

Returns:

  • (String)


1157
1158
1159
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1157

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1164
1165
1166
1167
1168
1169
1170
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1164

def update!(**args)
  @disks = args[:disks] if args.key?(:disks)
  @disks_target_defaults = args[:disks_target_defaults] if args.key?(:disks_target_defaults)
  @target_project = args[:target_project] if args.key?(:target_project)
  @vm_target_defaults = args[:vm_target_defaults] if args.key?(:vm_target_defaults)
  @zone = args[:zone] if args.key?(:zone)
end