Class: Google::Apis::VmmigrationV1alpha1::ComputeEngineDisksTargetDefaults
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1alpha1::ComputeEngineDisksTargetDefaults
- 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
ComputeEngineDisksTargetDefaults is a collection of details for creating Persistent Disks in a target Compute Engine project.
Instance Attribute Summary collapse
-
#disks ⇒ Array<Google::Apis::VmmigrationV1alpha1::PersistentDiskDefaults>
The details of each Persistent Disk to create.
-
#disks_target_defaults ⇒ Google::Apis::VmmigrationV1alpha1::DisksMigrationDisksTargetDefaults
Details for a disk only migration.
-
#target_project ⇒ String
The full path of the resource of type TargetProject which represents the Compute Engine project in which to create the Persistent Disks.
-
#vm_target_defaults ⇒ Google::Apis::VmmigrationV1alpha1::DisksMigrationVmTargetDefaults
Details for creation of a VM that migrated data disks will be attached to.
-
#zone ⇒ String
The zone in which to create the Persistent Disks.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComputeEngineDisksTargetDefaults
constructor
A new instance of ComputeEngineDisksTargetDefaults.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComputeEngineDisksTargetDefaults
Returns a new instance of ComputeEngineDisksTargetDefaults.
1173 1174 1175 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1173 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disks ⇒ Array<Google::Apis::VmmigrationV1alpha1::PersistentDiskDefaults>
The details of each Persistent Disk to create.
Corresponds to the JSON property disks
1150 1151 1152 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1150 def disks @disks end |
#disks_target_defaults ⇒ Google::Apis::VmmigrationV1alpha1::DisksMigrationDisksTargetDefaults
Details for a disk only migration.
Corresponds to the JSON property disksTargetDefaults
1155 1156 1157 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1155 def disks_target_defaults @disks_target_defaults end |
#target_project ⇒ String
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
1161 1162 1163 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1161 def target_project @target_project end |
#vm_target_defaults ⇒ Google::Apis::VmmigrationV1alpha1::DisksMigrationVmTargetDefaults
Details for creation of a VM that migrated data disks will be attached to.
Corresponds to the JSON property vmTargetDefaults
1166 1167 1168 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1166 def vm_target_defaults @vm_target_defaults end |
#zone ⇒ String
The zone in which to create the Persistent Disks.
Corresponds to the JSON property zone
1171 1172 1173 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1171 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1178 1179 1180 1181 1182 1183 1184 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1178 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 |