Class: Google::Apis::AndroidenterpriseV1::MaintenanceWindow

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

Overview

Maintenance window for managed Google Play Accounts. This allows Play store to update the apps on the foreground in the designated window.

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

Returns a new instance of MaintenanceWindow.



1411
1412
1413
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1411

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

Instance Attribute Details

#duration_msFixnum

Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive). Corresponds to the JSON property durationMs

Returns:

  • (Fixnum)


1403
1404
1405
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1403

def duration_ms
  @duration_ms
end

#start_time_after_midnight_msFixnum

Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight. Corresponds to the JSON property startTimeAfterMidnightMs

Returns:

  • (Fixnum)


1409
1410
1411
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1409

def start_time_after_midnight_ms
  @start_time_after_midnight_ms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1416
1417
1418
1419
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1416

def update!(**args)
  @duration_ms = args[:duration_ms] if args.key?(:duration_ms)
  @start_time_after_midnight_ms = args[:start_time_after_midnight_ms] if args.key?(:start_time_after_midnight_ms)
end