Class: Google::Apis::AndroidmanagementV1::SystemUpdate

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

Overview

Configuration for managing system updates

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SystemUpdate

Returns a new instance of SystemUpdate.



5006
5007
5008
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5006

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

Instance Attribute Details

#end_minutesFixnum

If the type is WINDOWED, the end of the maintenance window, measured as the number of minutes after midnight in device's local time. This value must be between 0 and 1439, inclusive. If this value is less than start_minutes, then the maintenance window spans midnight. If the maintenance window specified is smaller than 30 minutes, the actual window is extended to 30 minutes beyond the start time. Corresponds to the JSON property endMinutes

Returns:

  • (Fixnum)


4984
4985
4986
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 4984

def end_minutes
  @end_minutes
end

#freeze_periodsArray<Google::Apis::AndroidmanagementV1::FreezePeriod>

An annually repeating time period in which over-the-air (OTA) system updates are postponed to freeze the OS version running on a device. To prevent freezing the device indefinitely, each freeze period must be separated by at least 60 days. Corresponds to the JSON property freezePeriods



4992
4993
4994
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 4992

def freeze_periods
  @freeze_periods
end

#start_minutesFixnum

If the type is WINDOWED, the start of the maintenance window, measured as the number of minutes after midnight in the device's local time. This value must be between 0 and 1439, inclusive. Corresponds to the JSON property startMinutes

Returns:

  • (Fixnum)


4999
5000
5001
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 4999

def start_minutes
  @start_minutes
end

#typeString

The type of system update to configure. Corresponds to the JSON property type

Returns:

  • (String)


5004
5005
5006
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5004

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5011
5012
5013
5014
5015
5016
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5011

def update!(**args)
  @end_minutes = args[:end_minutes] if args.key?(:end_minutes)
  @freeze_periods = args[:freeze_periods] if args.key?(:freeze_periods)
  @start_minutes = args[:start_minutes] if args.key?(:start_minutes)
  @type = args[:type] if args.key?(:type)
end