Class: Google::Apis::AdminDirectoryV1::OsUpdateStatus

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

Contains information regarding the current OS update status.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OsUpdateStatus

Returns a new instance of OsUpdateStatus.



3504
3505
3506
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3504

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

Instance Attribute Details

#reboot_timeString

Date and time of the last reboot. Corresponds to the JSON property rebootTime

Returns:

  • (String)


3473
3474
3475
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3473

def reboot_time
  @reboot_time
end

#stateString

The update state of an OS update. Corresponds to the JSON property state

Returns:

  • (String)


3478
3479
3480
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3478

def state
  @state
end

#target_kiosk_app_versionString

New required platform version from the pending updated kiosk app. Corresponds to the JSON property targetKioskAppVersion

Returns:

  • (String)


3483
3484
3485
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3483

def target_kiosk_app_version
  @target_kiosk_app_version
end

#target_os_versionString

New platform version of the OS image being downloaded and applied. It is only set when update status is UPDATE_STATUS_DOWNLOAD_IN_PROGRESS or UPDATE_STATUS_NEED_REBOOT. Note this could be a dummy "0.0.0.0" for UPDATE_STATUS_NEED_REBOOT for some edge cases, e.g. update engine is restarted without a reboot. Corresponds to the JSON property targetOsVersion

Returns:

  • (String)


3492
3493
3494
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3492

def target_os_version
  @target_os_version
end

#update_check_timeString

Date and time of the last update check. Corresponds to the JSON property updateCheckTime

Returns:

  • (String)


3497
3498
3499
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3497

def update_check_time
  @update_check_time
end

#update_timeString

Date and time of the last successful OS update. Corresponds to the JSON property updateTime

Returns:

  • (String)


3502
3503
3504
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3502

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3509
3510
3511
3512
3513
3514
3515
3516
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3509

def update!(**args)
  @reboot_time = args[:reboot_time] if args.key?(:reboot_time)
  @state = args[:state] if args.key?(:state)
  @target_kiosk_app_version = args[:target_kiosk_app_version] if args.key?(:target_kiosk_app_version)
  @target_os_version = args[:target_os_version] if args.key?(:target_os_version)
  @update_check_time = args[:update_check_time] if args.key?(:update_check_time)
  @update_time = args[:update_time] if args.key?(:update_time)
end