Class: Google::Apis::ChromemanagementV1::GoogleChromeManagementV1BatteryInfo

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_capacityFixnum

Output only. Design capacity (mAmpere-hours). Corresponds to the JSON property designCapacity

Returns:

  • (Fixnum)


268
269
270
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 268

def design_capacity
  @design_capacity
end

#design_min_voltageFixnum

Output only. Designed minimum output voltage (mV) Corresponds to the JSON property designMinVoltage

Returns:

  • (Fixnum)


273
274
275
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 273

def design_min_voltage
  @design_min_voltage
end

#manufacture_dateGoogle::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

#manufacturerString

Output only. Battery manufacturer. Corresponds to the JSON property manufacturer

Returns:

  • (String)


290
291
292
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 290

def manufacturer
  @manufacturer
end

#serial_numberString

Output only. Battery serial number. Corresponds to the JSON property serialNumber

Returns:

  • (String)


295
296
297
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 295

def serial_number
  @serial_number
end

#technologyString

Output only. Technology of the battery. Example: Li-ion Corresponds to the JSON property technology

Returns:

  • (String)


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