Class: Google::Apis::ChromemanagementV1::GoogleChromeManagementV1DiskInfo
- Inherits:
-
Object
- Object
- Google::Apis::ChromemanagementV1::GoogleChromeManagementV1DiskInfo
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chromemanagement_v1/classes.rb,
lib/google/apis/chromemanagement_v1/representations.rb,
lib/google/apis/chromemanagement_v1/representations.rb
Overview
Status of the single storage device.
Instance Attribute Summary collapse
-
#bytes_read_this_session ⇒ Fixnum
Output only.
-
#bytes_written_this_session ⇒ Fixnum
Output only.
-
#discard_time_this_session ⇒ String
Output only.
-
#health ⇒ String
Output only.
-
#io_time_this_session ⇒ String
Output only.
-
#manufacturer ⇒ String
Output only.
-
#model ⇒ String
Output only.
-
#read_time_this_session ⇒ String
Output only.
-
#serial_number ⇒ String
Output only.
-
#size_bytes ⇒ Fixnum
Output only.
-
#type ⇒ String
Output only.
-
#volume_ids ⇒ Array<String>
Output only.
-
#write_time_this_session ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChromeManagementV1DiskInfo
constructor
A new instance of GoogleChromeManagementV1DiskInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChromeManagementV1DiskInfo
Returns a new instance of GoogleChromeManagementV1DiskInfo.
1132 1133 1134 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 1132 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bytes_read_this_session ⇒ Fixnum
Output only. Number of bytes read since last boot.
Corresponds to the JSON property bytesReadThisSession
1068 1069 1070 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 1068 def bytes_read_this_session @bytes_read_this_session end |
#bytes_written_this_session ⇒ Fixnum
Output only. Number of bytes written since last boot.
Corresponds to the JSON property bytesWrittenThisSession
1073 1074 1075 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 1073 def bytes_written_this_session @bytes_written_this_session end |
#discard_time_this_session ⇒ String
Output only. Time spent discarding since last boot. Discarding is writing to
clear blocks which are no longer in use. Supported on kernels 4.18+.
Corresponds to the JSON property discardTimeThisSession
1079 1080 1081 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 1079 def discard_time_this_session @discard_time_this_session end |
#health ⇒ String
Output only. Disk health.
Corresponds to the JSON property health
1084 1085 1086 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 1084 def health @health end |
#io_time_this_session ⇒ String
Output only. Counts the time the disk and queue were busy, so unlike the
fields above, parallel requests are not counted multiple times.
Corresponds to the JSON property ioTimeThisSession
1090 1091 1092 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 1090 def io_time_this_session @io_time_this_session end |
#manufacturer ⇒ String
Output only. Disk manufacturer.
Corresponds to the JSON property manufacturer
1095 1096 1097 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 1095 def manufacturer @manufacturer end |
#model ⇒ String
Output only. Disk model.
Corresponds to the JSON property model
1100 1101 1102 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 1100 def model @model end |
#read_time_this_session ⇒ String
Output only. Time spent reading from disk since last boot.
Corresponds to the JSON property readTimeThisSession
1105 1106 1107 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 1105 def read_time_this_session @read_time_this_session end |
#serial_number ⇒ String
Output only. Disk serial number.
Corresponds to the JSON property serialNumber
1110 1111 1112 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 1110 def serial_number @serial_number end |
#size_bytes ⇒ Fixnum
Output only. Disk size.
Corresponds to the JSON property sizeBytes
1115 1116 1117 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 1115 def size_bytes @size_bytes end |
#type ⇒ String
Output only. Disk type: eMMC / NVMe / ATA / SCSI.
Corresponds to the JSON property type
1120 1121 1122 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 1120 def type @type end |
#volume_ids ⇒ Array<String>
Output only. Disk volumes.
Corresponds to the JSON property volumeIds
1125 1126 1127 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 1125 def volume_ids @volume_ids end |
#write_time_this_session ⇒ String
Output only. Time spent writing to disk since last boot.
Corresponds to the JSON property writeTimeThisSession
1130 1131 1132 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 1130 def write_time_this_session @write_time_this_session end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 1137 def update!(**args) @bytes_read_this_session = args[:bytes_read_this_session] if args.key?(:bytes_read_this_session) @bytes_written_this_session = args[:bytes_written_this_session] if args.key?(:bytes_written_this_session) @discard_time_this_session = args[:discard_time_this_session] if args.key?(:discard_time_this_session) @health = args[:health] if args.key?(:health) @io_time_this_session = args[:io_time_this_session] if args.key?(:io_time_this_session) @manufacturer = args[:manufacturer] if args.key?(:manufacturer) @model = args[:model] if args.key?(:model) @read_time_this_session = args[:read_time_this_session] if args.key?(:read_time_this_session) @serial_number = args[:serial_number] if args.key?(:serial_number) @size_bytes = args[:size_bytes] if args.key?(:size_bytes) @type = args[:type] if args.key?(:type) @volume_ids = args[:volume_ids] if args.key?(:volume_ids) @write_time_this_session = args[:write_time_this_session] if args.key?(:write_time_this_session) end |