Skip to content

Commit ab08231

Browse files
1 parent d1e5080 commit ab08231

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

src/AndroidManagement/SystemUpdate.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ class SystemUpdate extends \Google\Collection
4444
*/
4545
public const TYPE_POSTPONE = 'POSTPONE';
4646
protected $collection_key = 'freezePeriods';
47+
/**
48+
* If this is greater than zero, then this is the number of days after a
49+
* pending update becoming available that a device can remain compliant,
50+
* without taking the update. Has no effect otherwise.
51+
*
52+
* @var int
53+
*/
54+
public $allowedDaysWithoutUpdate;
4755
/**
4856
* If the type is WINDOWED, the end of the maintenance window, measured as the
4957
* number of minutes after midnight in device's local time. This value must be
@@ -72,6 +80,24 @@ class SystemUpdate extends \Google\Collection
7280
*/
7381
public $type;
7482

83+
/**
84+
* If this is greater than zero, then this is the number of days after a
85+
* pending update becoming available that a device can remain compliant,
86+
* without taking the update. Has no effect otherwise.
87+
*
88+
* @param int $allowedDaysWithoutUpdate
89+
*/
90+
public function setAllowedDaysWithoutUpdate($allowedDaysWithoutUpdate)
91+
{
92+
$this->allowedDaysWithoutUpdate = $allowedDaysWithoutUpdate;
93+
}
94+
/**
95+
* @return int
96+
*/
97+
public function getAllowedDaysWithoutUpdate()
98+
{
99+
return $this->allowedDaysWithoutUpdate;
100+
}
75101
/**
76102
* If the type is WINDOWED, the end of the maintenance window, measured as the
77103
* number of minutes after midnight in device's local time. This value must be

0 commit comments

Comments
 (0)