Class: Google::Apis::AdminDirectoryV1::ChromeOsDevice

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

Overview

Google Chrome devices run on the Chrome OS. For more information about common API tasks, see the Developer's Guide.

Defined Under Namespace

Classes: ActiveTimeRange, CpuInfo, CpuStatusReport, DeviceFile, DiskVolumeReport, LastKnownNetwork, RecentUser, ScreenshotFile, SystemRamFreeReport, TpmVersionInfo

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ChromeOsDevice

Returns a new instance of ChromeOsDevice.



1196
1197
1198
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1196

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

Instance Attribute Details

#active_time_rangesArray<Google::Apis::AdminDirectoryV1::ChromeOsDevice::ActiveTimeRange>

A list of active time ranges (Read-only). Corresponds to the JSON property activeTimeRanges



930
931
932
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 930

def active_time_ranges
  @active_time_ranges
end

#annotated_asset_idString

The asset identifier as noted by an administrator or specified during enrollment. Corresponds to the JSON property annotatedAssetId

Returns:

  • (String)


936
937
938
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 936

def annotated_asset_id
  @annotated_asset_id
end

#annotated_locationString

The address or location of the device as noted by the administrator. Maximum length is 200 characters. Empty values are allowed. Corresponds to the JSON property annotatedLocation

Returns:

  • (String)


942
943
944
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 942

def annotated_location
  @annotated_location
end

#annotated_userString

The user of the device as noted by the administrator. Maximum length is 100 characters. Empty values are allowed. Corresponds to the JSON property annotatedUser

Returns:

  • (String)


948
949
950
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 948

def annotated_user
  @annotated_user
end

#auto_update_expirationFixnum

(Read-only) The timestamp after which the device will stop receiving Chrome updates or support Corresponds to the JSON property autoUpdateExpiration

Returns:

  • (Fixnum)


954
955
956
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 954

def auto_update_expiration
  @auto_update_expiration
end

#boot_modeString

The boot mode for the device. The possible values are: * Verified: The device is running a valid version of the Chrome OS. * Dev: The devices's developer hardware switch is enabled. When booted, the device has a command line shell. For an example of a developer switch, see the Chromebook developer information. Corresponds to the JSON property bootMode

Returns:

  • (String)


965
966
967
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 965

def boot_mode
  @boot_mode
end

#cpu_infoArray<Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo>

Information regarding CPU specs in the device. Corresponds to the JSON property cpuInfo



970
971
972
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 970

def cpu_info
  @cpu_info
end

#cpu_status_reportsArray<Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuStatusReport>

Reports of CPU utilization and temperature (Read-only) Corresponds to the JSON property cpuStatusReports



975
976
977
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 975

def cpu_status_reports
  @cpu_status_reports
end

#deprovision_reasonString

(Read-only) Deprovision reason. Corresponds to the JSON property deprovisionReason

Returns:

  • (String)


980
981
982
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 980

def deprovision_reason
  @deprovision_reason
end

#device_filesArray<Google::Apis::AdminDirectoryV1::ChromeOsDevice::DeviceFile>

A list of device files to download (Read-only) Corresponds to the JSON property deviceFiles



985
986
987
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 985

def device_files
  @device_files
end

#device_idString

The unique ID of the Chrome device. Corresponds to the JSON property deviceId

Returns:

  • (String)


990
991
992
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 990

def device_id
  @device_id
end

#device_license_typeString

Output only. Device license type. Corresponds to the JSON property deviceLicenseType

Returns:

  • (String)


995
996
997
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 995

def device_license_type
  @device_license_type
end

#disk_volume_reportsArray<Google::Apis::AdminDirectoryV1::ChromeOsDevice::DiskVolumeReport>

Reports of disk space and other info about mounted/connected volumes. Corresponds to the JSON property diskVolumeReports



1000
1001
1002
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1000

def disk_volume_reports
  @disk_volume_reports
end

#dock_mac_addressString

(Read-only) Built-in MAC address for the docking station that the device connected to. Factory sets Media access control address (MAC address) assigned for use by a dock. It is reserved specifically for MAC pass through device policy. The format is twelve (12) hexadecimal digits without any delimiter ( uppercase letters). This is only relevant for some devices. Corresponds to the JSON property dockMacAddress

Returns:

  • (String)


1009
1010
1011
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1009

def dock_mac_address
  @dock_mac_address
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


1014
1015
1016
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1014

def etag
  @etag
end

#ethernet_mac_addressString

The device's MAC address on the ethernet network interface. Corresponds to the JSON property ethernetMacAddress

Returns:

  • (String)


1019
1020
1021
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1019

def ethernet_mac_address
  @ethernet_mac_address
end

#ethernet_mac_address0String

(Read-only) MAC address used by the Chromebook’s internal ethernet port, and for onboard network (ethernet) interface. The format is twelve (12) hexadecimal digits without any delimiter (uppercase letters). This is only relevant for some devices. Corresponds to the JSON property ethernetMacAddress0

Returns:

  • (String)


1027
1028
1029
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1027

def ethernet_mac_address0
  @ethernet_mac_address0
end

#firmware_versionString

The Chrome device's firmware version. Corresponds to the JSON property firmwareVersion

Returns:

  • (String)


1032
1033
1034
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1032

def firmware_version
  @firmware_version
end

#first_enrollment_timeString

Date and time for the first time the device was enrolled. Corresponds to the JSON property firstEnrollmentTime

Returns:

  • (String)


1037
1038
1039
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1037

def first_enrollment_time
  @first_enrollment_time
end

#kindString

The type of resource. For the Chromeosdevices resource, the value is admin# directory#chromeosdevice. Corresponds to the JSON property kind

Returns:

  • (String)


1043
1044
1045
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1043

def kind
  @kind
end

#last_deprovision_timestampString

(Read-only) Date and time for the last deprovision of the device. Corresponds to the JSON property lastDeprovisionTimestamp

Returns:

  • (String)


1048
1049
1050
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1048

def last_deprovision_timestamp
  @last_deprovision_timestamp
end

#last_enrollment_timeDateTime

Date and time the device was last enrolled (Read-only) Corresponds to the JSON property lastEnrollmentTime

Returns:

  • (DateTime)


1053
1054
1055
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1053

def last_enrollment_time
  @last_enrollment_time
end

#last_known_networkArray<Google::Apis::AdminDirectoryV1::ChromeOsDevice::LastKnownNetwork>

Contains last known network (Read-only) Corresponds to the JSON property lastKnownNetwork



1058
1059
1060
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1058

def last_known_network
  @last_known_network
end

#last_syncDateTime

Date and time the device was last synchronized with the policy settings in the G Suite administrator control panel (Read-only) Corresponds to the JSON property lastSync

Returns:

  • (DateTime)


1064
1065
1066
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1064

def last_sync
  @last_sync
end

#mac_addressString

The device's wireless MAC address. If the device does not have this information, it is not included in the response. Corresponds to the JSON property macAddress

Returns:

  • (String)


1070
1071
1072
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1070

def mac_address
  @mac_address
end

#manufacture_dateString

(Read-only) The date the device was manufactured in yyyy-mm-dd format. Corresponds to the JSON property manufactureDate

Returns:

  • (String)


1075
1076
1077
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1075

def manufacture_date
  @manufacture_date
end

#meidString

The Mobile Equipment Identifier (MEID) or the International Mobile Equipment Identity (IMEI) for the 3G mobile card in a mobile device. A MEID/IMEI is typically used when adding a device to a wireless carrier's post-pay service plan. If the device does not have this information, this property is not included in the response. For more information on how to export a MEID/IMEI list, see the Developer's Guide. Corresponds to the JSON property meid

Returns:

  • (String)


1086
1087
1088
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1086

def meid
  @meid
end

#modelString

The device's model information. If the device does not have this information, this property is not included in the response. Corresponds to the JSON property model

Returns:

  • (String)


1092
1093
1094
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1092

def model
  @model
end

#notesString

Notes about this device added by the administrator. This property can be searched with the list method's query parameter. Maximum length is 500 characters. Empty values are allowed. Corresponds to the JSON property notes

Returns:

  • (String)


1100
1101
1102
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1100

def notes
  @notes
end

#order_numberString

The device's order number. Only devices directly purchased from Google have an order number. Corresponds to the JSON property orderNumber

Returns:

  • (String)


1106
1107
1108
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1106

def order_number
  @order_number
end

#org_unit_idString

The unique ID of the organizational unit. orgUnitPath is the human readable version of orgUnitId. While orgUnitPath may change by renaming an organizational unit within the path, orgUnitId is unchangeable for one organizational unit. This property can be updated using the API. For more information about how to create an organizational structure for your device, see the administration help center. Corresponds to the JSON property orgUnitId

Returns:

  • (String)


1118
1119
1120
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1118

def org_unit_id
  @org_unit_id
end

#org_unit_pathString

The full parent path with the organizational unit's name associated with the device. Path names are case insensitive. If the parent organizational unit is the top-level organization, it is represented as a forward slash, /. This property can be updated using the API. For more information about how to create an organizational structure for your device, see the administration help center. Corresponds to the JSON property orgUnitPath

Returns:

  • (String)


1129
1130
1131
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1129

def org_unit_path
  @org_unit_path
end

#os_update_statusGoogle::Apis::AdminDirectoryV1::OsUpdateStatus

Contains information regarding the current OS update status. Corresponds to the JSON property osUpdateStatus



1134
1135
1136
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1134

def os_update_status
  @os_update_status
end

#os_versionString

The Chrome device's operating system version. Corresponds to the JSON property osVersion

Returns:

  • (String)


1139
1140
1141
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1139

def os_version
  @os_version
end

#platform_versionString

The Chrome device's platform version. Corresponds to the JSON property platformVersion

Returns:

  • (String)


1144
1145
1146
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1144

def platform_version
  @platform_version
end

#recent_usersArray<Google::Apis::AdminDirectoryV1::ChromeOsDevice::RecentUser>

A list of recent device users, in descending order, by last login time. Corresponds to the JSON property recentUsers



1149
1150
1151
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1149

def recent_users
  @recent_users
end

#screenshot_filesArray<Google::Apis::AdminDirectoryV1::ChromeOsDevice::ScreenshotFile>

A list of screenshot files to download. Type is always "SCREENSHOT_FILE". ( Read-only) Corresponds to the JSON property screenshotFiles



1155
1156
1157
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1155

def screenshot_files
  @screenshot_files
end

#serial_numberString

The Chrome device serial number entered when the device was enabled. This value is the same as the Admin console's Serial Number in the Chrome OS Devices tab. Corresponds to the JSON property serialNumber

Returns:

  • (String)


1162
1163
1164
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1162

def serial_number
  @serial_number
end

#statusString

The status of the device. Corresponds to the JSON property status

Returns:

  • (String)


1167
1168
1169
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1167

def status
  @status
end

#support_end_dateDateTime

Final date the device will be supported (Read-only) Corresponds to the JSON property supportEndDate

Returns:

  • (DateTime)


1172
1173
1174
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1172

def support_end_date
  @support_end_date
end

#system_ram_free_reportsArray<Google::Apis::AdminDirectoryV1::ChromeOsDevice::SystemRamFreeReport>

Reports of amounts of available RAM memory (Read-only) Corresponds to the JSON property systemRamFreeReports



1177
1178
1179
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1177

def system_ram_free_reports
  @system_ram_free_reports
end

#system_ram_totalFixnum

Total RAM on the device in bytes Corresponds to the JSON property systemRamTotal

Returns:

  • (Fixnum)


1182
1183
1184
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1182

def system_ram_total
  @system_ram_total
end

#tpm_version_infoGoogle::Apis::AdminDirectoryV1::ChromeOsDevice::TpmVersionInfo

Trusted Platform Module (TPM) (Read-only) Corresponds to the JSON property tpmVersionInfo



1187
1188
1189
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1187

def tpm_version_info
  @tpm_version_info
end

#will_auto_renewBoolean Also known as: will_auto_renew?

Determines if the device will auto renew its support after the support end date. This is a read-only property. Corresponds to the JSON property willAutoRenew

Returns:

  • (Boolean)


1193
1194
1195
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1193

def will_auto_renew
  @will_auto_renew
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1201

def update!(**args)
  @active_time_ranges = args[:active_time_ranges] if args.key?(:active_time_ranges)
  @annotated_asset_id = args[:annotated_asset_id] if args.key?(:annotated_asset_id)
  @annotated_location = args[:annotated_location] if args.key?(:annotated_location)
  @annotated_user = args[:annotated_user] if args.key?(:annotated_user)
  @auto_update_expiration = args[:auto_update_expiration] if args.key?(:auto_update_expiration)
  @boot_mode = args[:boot_mode] if args.key?(:boot_mode)
  @cpu_info = args[:cpu_info] if args.key?(:cpu_info)
  @cpu_status_reports = args[:cpu_status_reports] if args.key?(:cpu_status_reports)
  @deprovision_reason = args[:deprovision_reason] if args.key?(:deprovision_reason)
  @device_files = args[:device_files] if args.key?(:device_files)
  @device_id = args[:device_id] if args.key?(:device_id)
  @device_license_type = args[:device_license_type] if args.key?(:device_license_type)
  @disk_volume_reports = args[:disk_volume_reports] if args.key?(:disk_volume_reports)
  @dock_mac_address = args[:dock_mac_address] if args.key?(:dock_mac_address)
  @etag = args[:etag] if args.key?(:etag)
  @ethernet_mac_address = args[:ethernet_mac_address] if args.key?(:ethernet_mac_address)
  @ethernet_mac_address0 = args[:ethernet_mac_address0] if args.key?(:ethernet_mac_address0)
  @firmware_version = args[:firmware_version] if args.key?(:firmware_version)
  @first_enrollment_time = args[:first_enrollment_time] if args.key?(:first_enrollment_time)
  @kind = args[:kind] if args.key?(:kind)
  @last_deprovision_timestamp = args[:last_deprovision_timestamp] if args.key?(:last_deprovision_timestamp)
  @last_enrollment_time = args[:last_enrollment_time] if args.key?(:last_enrollment_time)
  @last_known_network = args[:last_known_network] if args.key?(:last_known_network)
  @last_sync = args[:last_sync] if args.key?(:last_sync)
  @mac_address = args[:mac_address] if args.key?(:mac_address)
  @manufacture_date = args[:manufacture_date] if args.key?(:manufacture_date)
  @meid = args[:meid] if args.key?(:meid)
  @model = args[:model] if args.key?(:model)
  @notes = args[:notes] if args.key?(:notes)
  @order_number = args[:order_number] if args.key?(:order_number)
  @org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id)
  @org_unit_path = args[:org_unit_path] if args.key?(:org_unit_path)
  @os_update_status = args[:os_update_status] if args.key?(:os_update_status)
  @os_version = args[:os_version] if args.key?(:os_version)
  @platform_version = args[:platform_version] if args.key?(:platform_version)
  @recent_users = args[:recent_users] if args.key?(:recent_users)
  @screenshot_files = args[:screenshot_files] if args.key?(:screenshot_files)
  @serial_number = args[:serial_number] if args.key?(:serial_number)
  @status = args[:status] if args.key?(:status)
  @support_end_date = args[:support_end_date] if args.key?(:support_end_date)
  @system_ram_free_reports = args[:system_ram_free_reports] if args.key?(:system_ram_free_reports)
  @system_ram_total = args[:system_ram_total] if args.key?(:system_ram_total)
  @tpm_version_info = args[:tpm_version_info] if args.key?(:tpm_version_info)
  @will_auto_renew = args[:will_auto_renew] if args.key?(:will_auto_renew)
end