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
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.
302 303 304 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 302 def initialize(**args) update!(**args) end |
Instance Attribute Details
#design_capacity ⇒ Fixnum
Output only. Design capacity (mAmpere-hours).
Corresponds to the JSON property designCapacity
268 269 270 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 268 def design_capacity @design_capacity end |
#design_min_voltage ⇒ Fixnum
Output only. Designed minimum output voltage (mV)
Corresponds to the JSON property designMinVoltage
273 274 275 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 273 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
285 286 287 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 285 def manufacture_date @manufacture_date end |
#manufacturer ⇒ String
Output only. Battery manufacturer.
Corresponds to the JSON property manufacturer
290 291 292 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 290 def manufacturer @manufacturer end |
#serial_number ⇒ String
Output only. Battery serial number.
Corresponds to the JSON property serialNumber
295 296 297 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 295 def serial_number @serial_number end |
#technology ⇒ String
Output only. Technology of the battery. Example: Li-ion
Corresponds to the JSON property technology
300 301 302 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 300 def technology @technology end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
307 308 309 310 311 312 313 314 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 307 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 |