Class: Google::Apis::VmmigrationV1::PersistentDisk
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1::PersistentDisk
- 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
Details of a created Persistent Disk.
Instance Attribute Summary collapse
-
#disk_uri ⇒ String
The URI of the Persistent Disk.
-
#source_disk_number ⇒ Fixnum
The ordinal number of the source VM disk.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PersistentDisk
constructor
A new instance of PersistentDisk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PersistentDisk
Returns a new instance of PersistentDisk.
3416 3417 3418 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3416 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_uri ⇒ String
The URI of the Persistent Disk.
Corresponds to the JSON property diskUri
3409 3410 3411 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3409 def disk_uri @disk_uri end |
#source_disk_number ⇒ Fixnum
The ordinal number of the source VM disk.
Corresponds to the JSON property sourceDiskNumber
3414 3415 3416 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3414 def source_disk_number @source_disk_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3421 3422 3423 3424 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3421 def update!(**args) @disk_uri = args[:disk_uri] if args.key?(:disk_uri) @source_disk_number = args[:source_disk_number] if args.key?(:source_disk_number) end |