Class: Google::Apis::ChromemanagementV1::GoogleChromeManagementV1BatteryInfo
- Inherits:
-
Object
- Object
- Google::Apis::ChromemanagementV1::GoogleChromeManagementV1BatteryInfo
- 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
Information about the battery. * This field provides device information, which is static and will not change over time. * Data for this field is controlled via policy: [ReportDevicePowerStatus](https://chromeenterprise.google/policies/
ReportDevicePowerStatus) * Data Collection Frequency: Only at Upload *
Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A * Granular permission needed: TELEMETRY_API_BATTERY_INFO
Instance Attribute Summary collapse
-
#design_capacity ⇒ Fixnum
Output only.
-
#design_min_voltage ⇒ Fixnum
Output only.
-
#manufacture_date ⇒ Google::Apis::ChromemanagementV1::GoogleTypeDate
Represents a whole or partial calendar date, such as a birthday.
-
#manufacturer ⇒ String
Output only.
-
#serial_number ⇒ String
Output only.
-
#technology ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChromeManagementV1BatteryInfo
constructor
A new instance of GoogleChromeManagementV1BatteryInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChromeManagementV1BatteryInfo
Returns a new instance of GoogleChromeManagementV1BatteryInfo.
378 379 380 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 378 def initialize(**args) update!(**args) end |
Instance Attribute Details
#design_capacity ⇒ Fixnum
Output only. Design capacity (mAmpere-hours).
Corresponds to the JSON property designCapacity
344 345 346 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 344 def design_capacity @design_capacity end |
#design_min_voltage ⇒ Fixnum
Output only. Designed minimum output voltage (mV)
Corresponds to the JSON property designMinVoltage
349 350 351 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 349 def design_min_voltage @design_min_voltage end |
#manufacture_date ⇒ Google::Apis::ChromemanagementV1::GoogleTypeDate
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following: * A full date, with non-zero year, month, and day values. * A month
and day, with a zero year (for example, an anniversary). * A year on its own,
with a zero month and a zero day. * A year and month, with a zero day (for
example, a credit card expiration date). Related types: * google.type.
TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
Corresponds to the JSON property manufactureDate
361 362 363 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 361 def manufacture_date @manufacture_date end |
#manufacturer ⇒ String
Output only. Battery manufacturer.
Corresponds to the JSON property manufacturer
366 367 368 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 366 def manufacturer @manufacturer end |
#serial_number ⇒ String
Output only. Battery serial number.
Corresponds to the JSON property serialNumber
371 372 373 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 371 def serial_number @serial_number end |
#technology ⇒ String
Output only. Technology of the battery. Example: Li-ion
Corresponds to the JSON property technology
376 377 378 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 376 def technology @technology end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
383 384 385 386 387 388 389 390 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 383 def update!(**args) @design_capacity = args[:design_capacity] if args.key?(:design_capacity) @design_min_voltage = args[:design_min_voltage] if args.key?(:design_min_voltage) @manufacture_date = args[:manufacture_date] if args.key?(:manufacture_date) @manufacturer = args[:manufacturer] if args.key?(:manufacturer) @serial_number = args[:serial_number] if args.key?(:serial_number) @technology = args[:technology] if args.key?(:technology) end |