Class: Google::Apis::VmmigrationV1alpha1::ComputeEngineDisk
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1alpha1::ComputeEngineDisk
- 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
Compute Engine disk target details.
Instance Attribute Summary collapse
-
#disk_id ⇒ String
Optional.
-
#disk_type ⇒ String
Required.
-
#replica_zones ⇒ Array<String>
Optional.
-
#zone ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComputeEngineDisk
constructor
A new instance of ComputeEngineDisk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComputeEngineDisk
Returns a new instance of ComputeEngineDisk.
1129 1130 1131 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1129 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_id ⇒ String
Optional. Target Compute Engine Disk ID. This is the resource ID segment of
the Compute Engine Disk to create. In the resource name compute/v1/projects/
project/zones/zone/disks/disk1 "disk1" is the resource ID for the disk.
Corresponds to the JSON property diskId
1109 1110 1111 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1109 def disk_id @disk_id end |
#disk_type ⇒ String
Required. The disk type to use.
Corresponds to the JSON property diskType
1114 1115 1116 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1114 def disk_type @disk_type end |
#replica_zones ⇒ Array<String>
Optional. Replication zones of the regional disk. Should be of the form:
projects/target-project/locations/replica-zone Currently only one replica
zone is supported.
Corresponds to the JSON property replicaZones
1121 1122 1123 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1121 def replica_zones @replica_zones end |
#zone ⇒ String
Required. The Compute Engine zone in which to create the disk. Should be of
the form: projects/target-project/locations/zone
Corresponds to the JSON property zone
1127 1128 1129 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1127 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1134 1135 1136 1137 1138 1139 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1134 def update!(**args) @disk_id = args[:disk_id] if args.key?(:disk_id) @disk_type = args[:disk_type] if args.key?(:disk_type) @replica_zones = args[:replica_zones] if args.key?(:replica_zones) @zone = args[:zone] if args.key?(:zone) end |