Class: Google::Apis::MigrationcenterV1alpha1::DiskEntry
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::DiskEntry
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb
Overview
Single disk entry.
Instance Attribute Summary collapse
-
#capacity_bytes ⇒ Fixnum
Disk capacity.
-
#disk_label ⇒ String
Disk label.
-
#disk_label_type ⇒ String
Disk label type (e.g. BIOS/GPT) Corresponds to the JSON property
diskLabelType. -
#free_space_bytes ⇒ Fixnum
Disk free space.
-
#hw_address ⇒ String
Disk hardware address (e.g. 0:1 for SCSI).
-
#interface_type ⇒ String
Disks interface type (e.g. SATA/SCSI) Corresponds to the JSON property
interfaceType. -
#partitions ⇒ Google::Apis::MigrationcenterV1alpha1::DiskPartitionList
Disk partition list.
-
#status ⇒ String
Disk status (e.g. online).
-
#total_capacity_bytes ⇒ Fixnum
Disk capacity.
-
#total_free_bytes ⇒ Fixnum
Disk free space.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiskEntry
constructor
A new instance of DiskEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DiskEntry
Returns a new instance of DiskEntry.
3056 3057 3058 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3056 def initialize(**args) update!(**args) end |
Instance Attribute Details
#capacity_bytes ⇒ Fixnum
Disk capacity.
Corresponds to the JSON property capacityBytes
3009 3010 3011 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3009 def capacity_bytes @capacity_bytes end |
#disk_label ⇒ String
Disk label.
Corresponds to the JSON property diskLabel
3014 3015 3016 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3014 def disk_label @disk_label end |
#disk_label_type ⇒ String
Disk label type (e.g. BIOS/GPT)
Corresponds to the JSON property diskLabelType
3019 3020 3021 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3019 def disk_label_type @disk_label_type end |
#free_space_bytes ⇒ Fixnum
Disk free space.
Corresponds to the JSON property freeSpaceBytes
3024 3025 3026 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3024 def free_space_bytes @free_space_bytes end |
#hw_address ⇒ String
Disk hardware address (e.g. 0:1 for SCSI).
Corresponds to the JSON property hwAddress
3029 3030 3031 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3029 def hw_address @hw_address end |
#interface_type ⇒ String
Disks interface type (e.g. SATA/SCSI)
Corresponds to the JSON property interfaceType
3034 3035 3036 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3034 def interface_type @interface_type end |
#partitions ⇒ Google::Apis::MigrationcenterV1alpha1::DiskPartitionList
Disk partition list.
Corresponds to the JSON property partitions
3039 3040 3041 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3039 def partitions @partitions end |
#status ⇒ String
Disk status (e.g. online).
Corresponds to the JSON property status
3044 3045 3046 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3044 def status @status end |
#total_capacity_bytes ⇒ Fixnum
Disk capacity.
Corresponds to the JSON property totalCapacityBytes
3049 3050 3051 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3049 def total_capacity_bytes @total_capacity_bytes end |
#total_free_bytes ⇒ Fixnum
Disk free space.
Corresponds to the JSON property totalFreeBytes
3054 3055 3056 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3054 def total_free_bytes @total_free_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3061 def update!(**args) @capacity_bytes = args[:capacity_bytes] if args.key?(:capacity_bytes) @disk_label = args[:disk_label] if args.key?(:disk_label) @disk_label_type = args[:disk_label_type] if args.key?(:disk_label_type) @free_space_bytes = args[:free_space_bytes] if args.key?(:free_space_bytes) @hw_address = args[:hw_address] if args.key?(:hw_address) @interface_type = args[:interface_type] if args.key?(:interface_type) @partitions = args[:partitions] if args.key?(:partitions) @status = args[:status] if args.key?(:status) @total_capacity_bytes = args[:total_capacity_bytes] if args.key?(:total_capacity_bytes) @total_free_bytes = args[:total_free_bytes] if args.key?(:total_free_bytes) end |