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

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

Overview

JSON template for Chrome Os Device resource in Directory API.

Defined Under Namespace

Classes: ActiveTimeRange, RecentUser

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) ⇒ ChromeOsDevice

Returns a new instance of ChromeOsDevice

[View source]

493
494
495
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 493

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

Instance Attribute Details

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

List of active time ranges (Read-only) Corresponds to the JSON property activeTimeRanges


368
369
370
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 368

def active_time_ranges
  @active_time_ranges
end

#annotated_asset_idString

AssetId specified during enrollment or through later annotation Corresponds to the JSON property annotatedAssetId

Returns:

  • (String)

373
374
375
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 373

def annotated_asset_id
  @annotated_asset_id
end

#annotated_locationString

Address or location of the device as noted by the administrator Corresponds to the JSON property annotatedLocation

Returns:

  • (String)

378
379
380
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 378

def annotated_location
  @annotated_location
end

#annotated_userString

User of the device Corresponds to the JSON property annotatedUser

Returns:

  • (String)

383
384
385
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 383

def annotated_user
  @annotated_user
end

#boot_modeString

Chromebook boot mode (Read-only) Corresponds to the JSON property bootMode

Returns:

  • (String)

388
389
390
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 388

def boot_mode
  @boot_mode
end

#device_idString

Unique identifier of Chrome OS Device (Read-only) Corresponds to the JSON property deviceId

Returns:

  • (String)

393
394
395
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 393

def device_id
  @device_id
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)

398
399
400
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 398

def etag
  @etag
end

#ethernet_mac_addressString

Chromebook Mac Address on ethernet network interface (Read-only) Corresponds to the JSON property ethernetMacAddress

Returns:

  • (String)

403
404
405
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 403

def ethernet_mac_address
  @ethernet_mac_address
end

#firmware_versionString

Chromebook firmware version (Read-only) Corresponds to the JSON property firmwareVersion

Returns:

  • (String)

408
409
410
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 408

def firmware_version
  @firmware_version
end

#kindString

Kind of resource this is. Corresponds to the JSON property kind

Returns:

  • (String)

413
414
415
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 413

def kind
  @kind
end

#last_enrollment_timeDateTime

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

Returns:

  • (DateTime)

418
419
420
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 418

def last_enrollment_time
  @last_enrollment_time
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)

424
425
426
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 424

def last_sync
  @last_sync
end

#mac_addressString

Chromebook Mac Address on wifi network interface (Read-only) Corresponds to the JSON property macAddress

Returns:

  • (String)

429
430
431
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 429

def mac_address
  @mac_address
end

#meidString

Mobile Equipment identifier for the 3G mobile card in the Chromebook (Read- only) Corresponds to the JSON property meid

Returns:

  • (String)

435
436
437
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 435

def meid
  @meid
end

#modelString

Chromebook Model (Read-only) Corresponds to the JSON property model

Returns:

  • (String)

440
441
442
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 440

def model
  @model
end

#notesString

Notes added by the administrator Corresponds to the JSON property notes

Returns:

  • (String)

445
446
447
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 445

def notes
  @notes
end

#order_numberString

Chromebook order number (Read-only) Corresponds to the JSON property orderNumber

Returns:

  • (String)

450
451
452
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 450

def order_number
  @order_number
end

#org_unit_pathString

OrgUnit of the device Corresponds to the JSON property orgUnitPath

Returns:

  • (String)

455
456
457
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 455

def org_unit_path
  @org_unit_path
end

#os_versionString

Chromebook Os Version (Read-only) Corresponds to the JSON property osVersion

Returns:

  • (String)

460
461
462
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 460

def os_version
  @os_version
end

#platform_versionString

Chromebook platform version (Read-only) Corresponds to the JSON property platformVersion

Returns:

  • (String)

465
466
467
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 465

def platform_version
  @platform_version
end

#recent_usersArray<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


470
471
472
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 470

def recent_users
  @recent_users
end

#serial_numberString

Chromebook serial number (Read-only) Corresponds to the JSON property serialNumber

Returns:

  • (String)

475
476
477
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 475

def serial_number
  @serial_number
end

#statusString

status of the device (Read-only) Corresponds to the JSON property status

Returns:

  • (String)

480
481
482
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 480

def status
  @status
end

#support_end_dateDateTime

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

Returns:

  • (DateTime)

485
486
487
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 485

def support_end_date
  @support_end_date
end

#will_auto_renewBoolean Also known as: will_auto_renew?

Will Chromebook auto renew after support end date (Read-only) Corresponds to the JSON property willAutoRenew

Returns:

  • (Boolean)

490
491
492
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 490

def will_auto_renew
  @will_auto_renew
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 498

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
x

Warning: This is not the latest release.



Privacy · Terms