Class: Google::Apis::AdminDirectoryV1::OsUpdateStatus
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::OsUpdateStatus
- 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
-
#reboot_time ⇒ String
Date and time of the last reboot.
-
#state ⇒ String
The update state of an OS update.
-
#target_kiosk_app_version ⇒ String
New required platform version from the pending updated kiosk app.
-
#target_os_version ⇒ String
New platform version of the OS image being downloaded and applied.
-
#update_check_time ⇒ String
Date and time of the last update check.
-
#update_time ⇒ String
Date and time of the last successful OS update.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OsUpdateStatus
constructor
A new instance of OsUpdateStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OsUpdateStatus
Returns a new instance of OsUpdateStatus.
3392 3393 3394 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3392 def initialize(**args) update!(**args) end |
Instance Attribute Details
#reboot_time ⇒ String
Date and time of the last reboot.
Corresponds to the JSON property rebootTime
3361 3362 3363 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3361 def reboot_time @reboot_time end |
#state ⇒ String
The update state of an OS update.
Corresponds to the JSON property state
3366 3367 3368 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3366 def state @state end |
#target_kiosk_app_version ⇒ String
New required platform version from the pending updated kiosk app.
Corresponds to the JSON property targetKioskAppVersion
3371 3372 3373 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3371 def target_kiosk_app_version @target_kiosk_app_version end |
#target_os_version ⇒ String
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
3380 3381 3382 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3380 def target_os_version @target_os_version end |
#update_check_time ⇒ String
Date and time of the last update check.
Corresponds to the JSON property updateCheckTime
3385 3386 3387 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3385 def update_check_time @update_check_time end |
#update_time ⇒ String
Date and time of the last successful OS update.
Corresponds to the JSON property updateTime
3390 3391 3392 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3390 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3397 3398 3399 3400 3401 3402 3403 3404 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3397 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 |