Class: Google::Apis::VmmigrationV1alpha1::PersistentDisk

Inherits:
Object
  • Object
show all
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

Details of a created Persistent Disk.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PersistentDisk

Returns a new instance of PersistentDisk.



2788
2789
2790
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2788

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

Instance Attribute Details

#disk_uriString

The URI of the Persistent Disk. Corresponds to the JSON property diskUri

Returns:

  • (String)


2781
2782
2783
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2781

def disk_uri
  @disk_uri
end

#source_disk_numberFixnum

The ordinal number of the source VM disk. Corresponds to the JSON property sourceDiskNumber

Returns:

  • (Fixnum)


2786
2787
2788
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2786

def source_disk_number
  @source_disk_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2793
2794
2795
2796
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2793

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