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.



245
246
247
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 245

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)


211
212
213
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 211

def design_capacity
  @design_capacity
end

#design_min_voltageFixnum

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

Returns:

  • (Fixnum)


216
217
218
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 216

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 (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., 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

#manufacturerString

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

Returns:

  • (String)


233
234
235
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 233

def manufacturer
  @manufacturer
end

#serial_numberString

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

Returns:

  • (String)


238
239
240
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 238

def serial_number
  @serial_number
end

#technologyString

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

Returns:

  • (String)


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