Class: Google::Apis::VmmigrationV1::ComputeEngineDisk
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1::ComputeEngineDisk
- 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
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.
1115 1116 1117 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1115 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
1095 1096 1097 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1095 def disk_id @disk_id end |
#disk_type ⇒ String
Required. The disk type to use.
Corresponds to the JSON property diskType
1100 1101 1102 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1100 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
1107 1108 1109 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1107 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
1113 1114 1115 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1113 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1120 1121 1122 1123 1124 1125 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1120 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 |