Class: Google::Apis::ChromemanagementV1::GoogleChromeManagementV1BatteryStatusReport
- Inherits:
-
Object
- Object
- Google::Apis::ChromemanagementV1::GoogleChromeManagementV1BatteryStatusReport
- 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 data for battery.
Instance Attribute Summary collapse
-
#battery_health ⇒ String
Output only.
-
#cycle_count ⇒ Fixnum
Output only.
-
#full_charge_capacity ⇒ Fixnum
Output only.
-
#report_time ⇒ String
Output only.
-
#sample ⇒ Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1BatterySampleReport>
Output only.
-
#serial_number ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChromeManagementV1BatteryStatusReport
constructor
A new instance of GoogleChromeManagementV1BatteryStatusReport.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChromeManagementV1BatteryStatusReport
Returns a new instance of GoogleChromeManagementV1BatteryStatusReport.
414 415 416 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 414 def initialize(**args) update!(**args) end |
Instance Attribute Details
#battery_health ⇒ String
Output only. Battery health.
Corresponds to the JSON property batteryHealth
386 387 388 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 386 def battery_health @battery_health end |
#cycle_count ⇒ Fixnum
Output only. Cycle count.
Corresponds to the JSON property cycleCount
391 392 393 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 391 def cycle_count @cycle_count end |
#full_charge_capacity ⇒ Fixnum
Output only. Full charge capacity (mAmpere-hours).
Corresponds to the JSON property fullChargeCapacity
396 397 398 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 396 def full_charge_capacity @full_charge_capacity end |
#report_time ⇒ String
Output only. Timestamp of when the sample was collected on device
Corresponds to the JSON property reportTime
401 402 403 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 401 def report_time @report_time end |
#sample ⇒ Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1BatterySampleReport>
Output only. Sampling data for the battery sorted in a decreasing order of
report_time.
Corresponds to the JSON property sample
407 408 409 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 407 def sample @sample end |
#serial_number ⇒ String
Output only. Battery serial number.
Corresponds to the JSON property serialNumber
412 413 414 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 412 def serial_number @serial_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
419 420 421 422 423 424 425 426 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 419 def update!(**args) @battery_health = args[:battery_health] if args.key?(:battery_health) @cycle_count = args[:cycle_count] if args.key?(:cycle_count) @full_charge_capacity = args[:full_charge_capacity] if args.key?(:full_charge_capacity) @report_time = args[:report_time] if args.key?(:report_time) @sample = args[:sample] if args.key?(:sample) @serial_number = args[:serial_number] if args.key?(:serial_number) end |