Class: Google::Apis::AdminDirectoryV1::ChromeOsDevice
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::ChromeOsDevice
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/admin_directory_v1/classes.rb,
generated/google/apis/admin_directory_v1/representations.rb,
generated/google/apis/admin_directory_v1/representations.rb
Overview
JSON template for Chrome Os Device resource in Directory API.
Defined Under Namespace
Classes: ActiveTimeRange, RecentUser
Instance Attribute Summary collapse
-
#active_time_ranges ⇒ Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::ActiveTimeRange>
List of active time ranges (Read-only) Corresponds to the JSON property
activeTimeRanges
. -
#annotated_asset_id ⇒ String
AssetId specified during enrollment or through later annotation Corresponds to the JSON property
annotatedAssetId
. -
#annotated_location ⇒ String
Address or location of the device as noted by the administrator Corresponds to the JSON property
annotatedLocation
. -
#annotated_user ⇒ String
User of the device Corresponds to the JSON property
annotatedUser
. -
#boot_mode ⇒ String
Chromebook boot mode (Read-only) Corresponds to the JSON property
bootMode
. -
#device_id ⇒ String
Unique identifier of Chrome OS Device (Read-only) Corresponds to the JSON property
deviceId
. -
#etag ⇒ String
ETag of the resource.
-
#ethernet_mac_address ⇒ String
Chromebook Mac Address on ethernet network interface (Read-only) Corresponds to the JSON property
ethernetMacAddress
. -
#firmware_version ⇒ String
Chromebook firmware version (Read-only) Corresponds to the JSON property
firmwareVersion
. -
#kind ⇒ String
Kind of resource this is.
-
#last_enrollment_time ⇒ DateTime
Date and time the device was last enrolled (Read-only) Corresponds to the JSON property
lastEnrollmentTime
. -
#last_sync ⇒ DateTime
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
. -
#mac_address ⇒ String
Chromebook Mac Address on wifi network interface (Read-only) Corresponds to the JSON property
macAddress
. -
#meid ⇒ String
Mobile Equipment identifier for the 3G mobile card in the Chromebook (Read- only) Corresponds to the JSON property
meid
. -
#model ⇒ String
Chromebook Model (Read-only) Corresponds to the JSON property
model
. -
#notes ⇒ String
Notes added by the administrator Corresponds to the JSON property
notes
. -
#order_number ⇒ String
Chromebook order number (Read-only) Corresponds to the JSON property
orderNumber
. -
#org_unit_path ⇒ String
OrgUnit of the device Corresponds to the JSON property
orgUnitPath
. -
#os_version ⇒ String
Chromebook Os Version (Read-only) Corresponds to the JSON property
osVersion
. -
#platform_version ⇒ String
Chromebook platform version (Read-only) Corresponds to the JSON property
platformVersion
. -
#recent_users ⇒ Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::RecentUser>
List of recent device users, in descending order by last login time (Read-only) Corresponds to the JSON property
recentUsers
. -
#serial_number ⇒ String
Chromebook serial number (Read-only) Corresponds to the JSON property
serialNumber
. -
#status ⇒ String
status of the device (Read-only) Corresponds to the JSON property
status
. -
#support_end_date ⇒ DateTime
Final date the device will be supported (Read-only) Corresponds to the JSON property
supportEndDate
. -
#will_auto_renew ⇒ Boolean
(also: #will_auto_renew?)
Will Chromebook auto renew after support end date (Read-only) Corresponds to the JSON property
willAutoRenew
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ChromeOsDevice
constructor
A new instance of ChromeOsDevice.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ChromeOsDevice
Returns a new instance of ChromeOsDevice
501 502 503 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 501 def initialize(**args) update!(**args) end |
Instance Attribute Details
#active_time_ranges ⇒ Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::ActiveTimeRange>
List of active time ranges (Read-only)
Corresponds to the JSON property activeTimeRanges
376 377 378 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 376 def active_time_ranges @active_time_ranges end |
#annotated_asset_id ⇒ String
AssetId specified during enrollment or through later annotation
Corresponds to the JSON property annotatedAssetId
381 382 383 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 381 def annotated_asset_id @annotated_asset_id end |
#annotated_location ⇒ String
Address or location of the device as noted by the administrator
Corresponds to the JSON property annotatedLocation
386 387 388 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 386 def annotated_location @annotated_location end |
#annotated_user ⇒ String
User of the device
Corresponds to the JSON property annotatedUser
391 392 393 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 391 def annotated_user @annotated_user end |
#boot_mode ⇒ String
Chromebook boot mode (Read-only)
Corresponds to the JSON property bootMode
396 397 398 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 396 def boot_mode @boot_mode end |
#device_id ⇒ String
Unique identifier of Chrome OS Device (Read-only)
Corresponds to the JSON property deviceId
401 402 403 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 401 def device_id @device_id end |
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
406 407 408 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 406 def etag @etag end |
#ethernet_mac_address ⇒ String
Chromebook Mac Address on ethernet network interface (Read-only)
Corresponds to the JSON property ethernetMacAddress
411 412 413 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 411 def ethernet_mac_address @ethernet_mac_address end |
#firmware_version ⇒ String
Chromebook firmware version (Read-only)
Corresponds to the JSON property firmwareVersion
416 417 418 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 416 def firmware_version @firmware_version end |
#kind ⇒ String
Kind of resource this is.
Corresponds to the JSON property kind
421 422 423 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 421 def kind @kind end |
#last_enrollment_time ⇒ DateTime
Date and time the device was last enrolled (Read-only)
Corresponds to the JSON property lastEnrollmentTime
426 427 428 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 426 def last_enrollment_time @last_enrollment_time end |
#last_sync ⇒ DateTime
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
432 433 434 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 432 def last_sync @last_sync end |
#mac_address ⇒ String
Chromebook Mac Address on wifi network interface (Read-only)
Corresponds to the JSON property macAddress
437 438 439 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 437 def mac_address @mac_address end |
#meid ⇒ String
Mobile Equipment identifier for the 3G mobile card in the Chromebook (Read-
only)
Corresponds to the JSON property meid
443 444 445 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 443 def meid @meid end |
#model ⇒ String
Chromebook Model (Read-only)
Corresponds to the JSON property model
448 449 450 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 448 def model @model end |
#notes ⇒ String
Notes added by the administrator
Corresponds to the JSON property notes
453 454 455 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 453 def notes @notes end |
#order_number ⇒ String
Chromebook order number (Read-only)
Corresponds to the JSON property orderNumber
458 459 460 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 458 def order_number @order_number end |
#org_unit_path ⇒ String
OrgUnit of the device
Corresponds to the JSON property orgUnitPath
463 464 465 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 463 def org_unit_path @org_unit_path end |
#os_version ⇒ String
Chromebook Os Version (Read-only)
Corresponds to the JSON property osVersion
468 469 470 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 468 def os_version @os_version end |
#platform_version ⇒ String
Chromebook platform version (Read-only)
Corresponds to the JSON property platformVersion
473 474 475 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 473 def platform_version @platform_version end |
#recent_users ⇒ Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::RecentUser>
List of recent device users, in descending order by last login time (Read-only)
Corresponds to the JSON property recentUsers
478 479 480 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 478 def recent_users @recent_users end |
#serial_number ⇒ String
Chromebook serial number (Read-only)
Corresponds to the JSON property serialNumber
483 484 485 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 483 def serial_number @serial_number end |
#status ⇒ String
status of the device (Read-only)
Corresponds to the JSON property status
488 489 490 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 488 def status @status end |
#support_end_date ⇒ DateTime
Final date the device will be supported (Read-only)
Corresponds to the JSON property supportEndDate
493 494 495 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 493 def support_end_date @support_end_date end |
#will_auto_renew ⇒ Boolean Also known as: will_auto_renew?
Will Chromebook auto renew after support end date (Read-only)
Corresponds to the JSON property willAutoRenew
498 499 500 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 498 def will_auto_renew @will_auto_renew end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 506 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) @boot_mode = args[:boot_mode] if args.key?(:boot_mode) @device_id = args[:device_id] if args.key?(:device_id) @etag = args[:etag] if args.key?(:etag) @ethernet_mac_address = args[:ethernet_mac_address] if args.key?(:ethernet_mac_address) @firmware_version = args[:firmware_version] if args.key?(:firmware_version) @kind = args[:kind] if args.key?(:kind) @last_enrollment_time = args[:last_enrollment_time] if args.key?(:last_enrollment_time) @last_sync = args[:last_sync] if args.key?(:last_sync) @mac_address = args[:mac_address] if args.key?(:mac_address) @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_path = args[:org_unit_path] if args.key?(:org_unit_path) @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) @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) @will_auto_renew = args[:will_auto_renew] if args.key?(:will_auto_renew) end |