Class: Google::Apis::AndroidmanagementV1::HardwareInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidmanagement_v1/classes.rb,
generated/google/apis/androidmanagement_v1/representations.rb,
generated/google/apis/androidmanagement_v1/representations.rb

Overview

Information about device hardware. The fields related to temperature thresholds are only available if hardwareStatusEnabled is true in the device's policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ HardwareInfo

Returns a new instance of HardwareInfo.


1366
1367
1368
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1366

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#battery_shutdown_temperaturesArray<Float>

Battery shutdown temperature thresholds in Celsius for each battery on the device. Corresponds to the JSON property batteryShutdownTemperatures

Returns:

  • (Array<Float>)

1298
1299
1300
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1298

def battery_shutdown_temperatures
  @battery_shutdown_temperatures
end

#battery_throttling_temperaturesArray<Float>

Battery throttling temperature thresholds in Celsius for each battery on the device. Corresponds to the JSON property batteryThrottlingTemperatures

Returns:

  • (Array<Float>)

1304
1305
1306
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1304

def battery_throttling_temperatures
  @battery_throttling_temperatures
end

#brandString

Brand of the device. For example, Google. Corresponds to the JSON property brand

Returns:

  • (String)

1309
1310
1311
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1309

def brand
  @brand
end

#cpu_shutdown_temperaturesArray<Float>

CPU shutdown temperature thresholds in Celsius for each CPU on the device. Corresponds to the JSON property cpuShutdownTemperatures

Returns:

  • (Array<Float>)

1314
1315
1316
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1314

def cpu_shutdown_temperatures
  @cpu_shutdown_temperatures
end

#cpu_throttling_temperaturesArray<Float>

CPU throttling temperature thresholds in Celsius for each CPU on the device. Corresponds to the JSON property cpuThrottlingTemperatures

Returns:

  • (Array<Float>)

1319
1320
1321
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1319

def cpu_throttling_temperatures
  @cpu_throttling_temperatures
end

#device_baseband_versionString

Baseband version. For example, MDM9625_104662.22.05.34p. Corresponds to the JSON property deviceBasebandVersion

Returns:

  • (String)

1324
1325
1326
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1324

def device_baseband_version
  @device_baseband_version
end

#gpu_shutdown_temperaturesArray<Float>

GPU shutdown temperature thresholds in Celsius for each GPU on the device. Corresponds to the JSON property gpuShutdownTemperatures

Returns:

  • (Array<Float>)

1329
1330
1331
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1329

def gpu_shutdown_temperatures
  @gpu_shutdown_temperatures
end

#gpu_throttling_temperaturesArray<Float>

GPU throttling temperature thresholds in Celsius for each GPU on the device. Corresponds to the JSON property gpuThrottlingTemperatures

Returns:

  • (Array<Float>)

1334
1335
1336
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1334

def gpu_throttling_temperatures
  @gpu_throttling_temperatures
end

#hardwareString

Name of the hardware. For example, Angler. Corresponds to the JSON property hardware

Returns:

  • (String)

1339
1340
1341
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1339

def hardware
  @hardware
end

#manufacturerString

Manufacturer. For example, Motorola. Corresponds to the JSON property manufacturer

Returns:

  • (String)

1344
1345
1346
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1344

def manufacturer
  @manufacturer
end

#modelString

The model of the device. For example, Asus Nexus 7. Corresponds to the JSON property model

Returns:

  • (String)

1349
1350
1351
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1349

def model
  @model
end

#serial_numberString

The device serial number. Corresponds to the JSON property serialNumber

Returns:

  • (String)

1354
1355
1356
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1354

def serial_number
  @serial_number
end

#skin_shutdown_temperaturesArray<Float>

Device skin shutdown temperature thresholds in Celsius. Corresponds to the JSON property skinShutdownTemperatures

Returns:

  • (Array<Float>)

1359
1360
1361
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1359

def skin_shutdown_temperatures
  @skin_shutdown_temperatures
end

#skin_throttling_temperaturesArray<Float>

Device skin throttling temperature thresholds in Celsius. Corresponds to the JSON property skinThrottlingTemperatures

Returns:

  • (Array<Float>)

1364
1365
1366
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1364

def skin_throttling_temperatures
  @skin_throttling_temperatures
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1371

def update!(**args)
  @battery_shutdown_temperatures = args[:battery_shutdown_temperatures] if args.key?(:battery_shutdown_temperatures)
  @battery_throttling_temperatures = args[:battery_throttling_temperatures] if args.key?(:battery_throttling_temperatures)
  @brand = args[:brand] if args.key?(:brand)
  @cpu_shutdown_temperatures = args[:cpu_shutdown_temperatures] if args.key?(:cpu_shutdown_temperatures)
  @cpu_throttling_temperatures = args[:cpu_throttling_temperatures] if args.key?(:cpu_throttling_temperatures)
  @device_baseband_version = args[:device_baseband_version] if args.key?(:device_baseband_version)
  @gpu_shutdown_temperatures = args[:gpu_shutdown_temperatures] if args.key?(:gpu_shutdown_temperatures)
  @gpu_throttling_temperatures = args[:gpu_throttling_temperatures] if args.key?(:gpu_throttling_temperatures)
  @hardware = args[:hardware] if args.key?(:hardware)
  @manufacturer = args[:manufacturer] if args.key?(:manufacturer)
  @model = args[:model] if args.key?(:model)
  @serial_number = args[:serial_number] if args.key?(:serial_number)
  @skin_shutdown_temperatures = args[:skin_shutdown_temperatures] if args.key?(:skin_shutdown_temperatures)
  @skin_throttling_temperatures = args[:skin_throttling_temperatures] if args.key?(:skin_throttling_temperatures)
end