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.
245 246 247 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 245 def initialize(**args) update!(**args) end |
Instance Attribute Details
#design_capacity ⇒ Fixnum
Output only. Design capacity (mAmpere-hours).
Corresponds to the JSON property designCapacity
211 212 213 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 211 def design_capacity @design_capacity end |
#design_min_voltage ⇒ Fixnum
Output only. Designed minimum output voltage (mV)
Corresponds to the JSON property designMinVoltage
216 217 218 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 216 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
228 229 230 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 228 def manufacture_date @manufacture_date end |
#manufacturer ⇒ String
Output only. Battery manufacturer.
Corresponds to the JSON property manufacturer
233 234 235 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 233 def manufacturer @manufacturer end |
#serial_number ⇒ String
Output only. Battery serial number.
Corresponds to the JSON property serialNumber
238 239 240 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 238 def serial_number @serial_number end |
#technology ⇒ String
Output only. Technology of the battery. Example: Li-ion
Corresponds to the JSON property technology
243 244 245 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 243 def technology @technology end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
250 251 252 253 254 255 256 257 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 250 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 |