Class: Google::Apis::AndroidmanagementV1::FreezePeriod
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::FreezePeriod
- 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
A system freeze period. When a device’s clock is within the freeze period, all incoming system updates (including security patches) are blocked and won’t be installed. When a device is outside the freeze period, normal update behavior applies. Leap years are ignored in freeze period calculations, in particular: * If Feb. 29th is set as the start or end date of a freeze period, the freeze period will start or end on Feb. 28th instead. * When a device’s system clock reads Feb. 29th, it’s treated as Feb. 28th. * When calculating the number of days in a freeze period or the time between two freeze periods, Feb. 29th is ignored and not counted as a day.Note: For Freeze Periods to take effect, SystemUpdateType cannot be specified as SYSTEM_UPDATE_TYPE_UNSPECIFIED, because freeze periods require a defined policy to be specified.
Instance Attribute Summary collapse
-
#end_date ⇒ Google::Apis::AndroidmanagementV1::Date
Represents a whole or partial calendar date, such as a birthday.
-
#start_date ⇒ Google::Apis::AndroidmanagementV1::Date
Represents a whole or partial calendar date, such as a birthday.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FreezePeriod
constructor
A new instance of FreezePeriod.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FreezePeriod
Returns a new instance of FreezePeriod.
2188 2189 2190 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2188 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_date ⇒ Google::Apis::AndroidmanagementV1::Date
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following: A full date, with non-zero year, month, and day values. A month and
day, with a zero year (for example, an anniversary). A year on its own, with a
zero month and a zero day. A year and month, with a zero day (for example, a
credit card expiration date).Related types: google.type.TimeOfDay google.type.
DateTime google.protobuf.Timestamp
Corresponds to the JSON property endDate
2174 2175 2176 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2174 def end_date @end_date end |
#start_date ⇒ Google::Apis::AndroidmanagementV1::Date
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following: A full date, with non-zero year, month, and day values. A month and
day, with a zero year (for example, an anniversary). A year on its own, with a
zero month and a zero day. A year and month, with a zero day (for example, a
credit card expiration date).Related types: google.type.TimeOfDay google.type.
DateTime google.protobuf.Timestamp
Corresponds to the JSON property startDate
2186 2187 2188 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2186 def start_date @start_date end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2193 2194 2195 2196 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2193 def update!(**args) @end_date = args[:end_date] if args.key?(:end_date) @start_date = args[:start_date] if args.key?(:start_date) end |