Skip to content

Commit 1edf0f5

Browse files
1 parent f4ea5f5 commit 1edf0f5

File tree

2 files changed

+74
-4
lines changed

2 files changed

+74
-4
lines changed

src/SecurityCommandCenter/DataRetentionDeletionEvent.php

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ class DataRetentionDeletionEvent extends \Google\Model
2424
*/
2525
public const EVENT_TYPE_EVENT_TYPE_UNSPECIFIED = 'EVENT_TYPE_UNSPECIFIED';
2626
/**
27-
* The maximum retention time has been exceeded.
27+
* Deprecated: This field is pending removal. Use
28+
* EVENT_TYPE_MAX_TTL_FROM_CREATION or
29+
* EVENT_TYPE_MAX_TTL_FROM_LAST_MODIFICATION instead.
30+
*
31+
* @deprecated
2832
*/
2933
public const EVENT_TYPE_EVENT_TYPE_MAX_TTL_EXCEEDED = 'EVENT_TYPE_MAX_TTL_EXCEEDED';
3034
/**
@@ -35,6 +39,10 @@ class DataRetentionDeletionEvent extends \Google\Model
3539
* Max TTL from the asset's last modification time.
3640
*/
3741
public const EVENT_TYPE_EVENT_TYPE_MAX_TTL_FROM_LAST_MODIFICATION = 'EVENT_TYPE_MAX_TTL_FROM_LAST_MODIFICATION';
42+
/**
43+
* Min TTL from the asset's creation time.
44+
*/
45+
public const EVENT_TYPE_EVENT_TYPE_MIN_TTL_FROM_CREATION = 'EVENT_TYPE_MIN_TTL_FROM_CREATION';
3846
/**
3947
* Number of objects that violated the policy for this resource. If the number
4048
* is less than 1,000, then the value of this field is the exact number. If
@@ -67,6 +75,14 @@ class DataRetentionDeletionEvent extends \Google\Model
6775
* @var string
6876
*/
6977
public $maxRetentionAllowed;
78+
/**
79+
* Min duration of retention allowed from the DSPM retention control. This
80+
* field is only populated when event type is set to
81+
* EVENT_TYPE_MIN_TTL_FROM_CREATION.
82+
*
83+
* @var string
84+
*/
85+
public $minRetentionAllowed;
7086

7187
/**
7288
* Number of objects that violated the policy for this resource. If the number
@@ -107,7 +123,8 @@ public function getEventDetectionTime()
107123
* Type of the DRD event.
108124
*
109125
* Accepted values: EVENT_TYPE_UNSPECIFIED, EVENT_TYPE_MAX_TTL_EXCEEDED,
110-
* EVENT_TYPE_MAX_TTL_FROM_CREATION, EVENT_TYPE_MAX_TTL_FROM_LAST_MODIFICATION
126+
* EVENT_TYPE_MAX_TTL_FROM_CREATION,
127+
* EVENT_TYPE_MAX_TTL_FROM_LAST_MODIFICATION, EVENT_TYPE_MIN_TTL_FROM_CREATION
111128
*
112129
* @param self::EVENT_TYPE_* $eventType
113130
*/
@@ -143,6 +160,24 @@ public function getMaxRetentionAllowed()
143160
{
144161
return $this->maxRetentionAllowed;
145162
}
163+
/**
164+
* Min duration of retention allowed from the DSPM retention control. This
165+
* field is only populated when event type is set to
166+
* EVENT_TYPE_MIN_TTL_FROM_CREATION.
167+
*
168+
* @param string $minRetentionAllowed
169+
*/
170+
public function setMinRetentionAllowed($minRetentionAllowed)
171+
{
172+
$this->minRetentionAllowed = $minRetentionAllowed;
173+
}
174+
/**
175+
* @return string
176+
*/
177+
public function getMinRetentionAllowed()
178+
{
179+
return $this->minRetentionAllowed;
180+
}
146181
}
147182

148183
// Adding a class alias for backwards compatibility with the previous class name.

src/SecurityCommandCenter/GoogleCloudSecuritycenterV2DataRetentionDeletionEvent.php

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ class GoogleCloudSecuritycenterV2DataRetentionDeletionEvent extends \Google\Mode
2424
*/
2525
public const EVENT_TYPE_EVENT_TYPE_UNSPECIFIED = 'EVENT_TYPE_UNSPECIFIED';
2626
/**
27-
* The maximum retention time has been exceeded.
27+
* Deprecated: This field is pending removal. Use
28+
* EVENT_TYPE_MAX_TTL_FROM_CREATION or
29+
* EVENT_TYPE_MAX_TTL_FROM_LAST_MODIFICATION instead.
30+
*
31+
* @deprecated
2832
*/
2933
public const EVENT_TYPE_EVENT_TYPE_MAX_TTL_EXCEEDED = 'EVENT_TYPE_MAX_TTL_EXCEEDED';
3034
/**
@@ -35,6 +39,10 @@ class GoogleCloudSecuritycenterV2DataRetentionDeletionEvent extends \Google\Mode
3539
* Max TTL from the asset's last modification time.
3640
*/
3741
public const EVENT_TYPE_EVENT_TYPE_MAX_TTL_FROM_LAST_MODIFICATION = 'EVENT_TYPE_MAX_TTL_FROM_LAST_MODIFICATION';
42+
/**
43+
* Min TTL from the asset's creation time.
44+
*/
45+
public const EVENT_TYPE_EVENT_TYPE_MIN_TTL_FROM_CREATION = 'EVENT_TYPE_MIN_TTL_FROM_CREATION';
3846
/**
3947
* Number of objects that violated the policy for this resource. If the number
4048
* is less than 1,000, then the value of this field is the exact number. If
@@ -67,6 +75,14 @@ class GoogleCloudSecuritycenterV2DataRetentionDeletionEvent extends \Google\Mode
6775
* @var string
6876
*/
6977
public $maxRetentionAllowed;
78+
/**
79+
* Min duration of retention allowed from the DSPM retention control. This
80+
* field is only populated when event type is set to
81+
* EVENT_TYPE_MIN_TTL_FROM_CREATION.
82+
*
83+
* @var string
84+
*/
85+
public $minRetentionAllowed;
7086

7187
/**
7288
* Number of objects that violated the policy for this resource. If the number
@@ -107,7 +123,8 @@ public function getEventDetectionTime()
107123
* Type of the DRD event.
108124
*
109125
* Accepted values: EVENT_TYPE_UNSPECIFIED, EVENT_TYPE_MAX_TTL_EXCEEDED,
110-
* EVENT_TYPE_MAX_TTL_FROM_CREATION, EVENT_TYPE_MAX_TTL_FROM_LAST_MODIFICATION
126+
* EVENT_TYPE_MAX_TTL_FROM_CREATION,
127+
* EVENT_TYPE_MAX_TTL_FROM_LAST_MODIFICATION, EVENT_TYPE_MIN_TTL_FROM_CREATION
111128
*
112129
* @param self::EVENT_TYPE_* $eventType
113130
*/
@@ -143,6 +160,24 @@ public function getMaxRetentionAllowed()
143160
{
144161
return $this->maxRetentionAllowed;
145162
}
163+
/**
164+
* Min duration of retention allowed from the DSPM retention control. This
165+
* field is only populated when event type is set to
166+
* EVENT_TYPE_MIN_TTL_FROM_CREATION.
167+
*
168+
* @param string $minRetentionAllowed
169+
*/
170+
public function setMinRetentionAllowed($minRetentionAllowed)
171+
{
172+
$this->minRetentionAllowed = $minRetentionAllowed;
173+
}
174+
/**
175+
* @return string
176+
*/
177+
public function getMinRetentionAllowed()
178+
{
179+
return $this->minRetentionAllowed;
180+
}
146181
}
147182

148183
// Adding a class alias for backwards compatibility with the previous class name.

0 commit comments

Comments
 (0)