Skip to content

Commit 42d3a86

Browse files
1 parent 07c74e0 commit 42d3a86

File tree

2 files changed

+232
-0
lines changed

2 files changed

+232
-0
lines changed
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\SecurityPosture;
19+
20+
class IacValidationFailureCriteria extends \Google\Collection
21+
{
22+
protected $collection_key = 'severityCountThresholds';
23+
/**
24+
* Output only. The time at which the resource was created.
25+
*
26+
* @var string
27+
*/
28+
public $createTime;
29+
/**
30+
* Optional. The etag for optimistic concurrency.
31+
*
32+
* @var string
33+
*/
34+
public $etag;
35+
/**
36+
* Identifier. The resource name of the IacValidationFailureCriteria. Format:
37+
* organizations/{organization}/locations/{location}/iacValidationFailureCrite
38+
* ria
39+
*
40+
* @var string
41+
*/
42+
public $name;
43+
protected $severityCountThresholdsType = SeverityCountThreshold::class;
44+
protected $severityCountThresholdsDataType = 'array';
45+
/**
46+
* Output only. The time at which the resource was last updated.
47+
*
48+
* @var string
49+
*/
50+
public $updateTime;
51+
52+
/**
53+
* Output only. The time at which the resource was created.
54+
*
55+
* @param string $createTime
56+
*/
57+
public function setCreateTime($createTime)
58+
{
59+
$this->createTime = $createTime;
60+
}
61+
/**
62+
* @return string
63+
*/
64+
public function getCreateTime()
65+
{
66+
return $this->createTime;
67+
}
68+
/**
69+
* Optional. The etag for optimistic concurrency.
70+
*
71+
* @param string $etag
72+
*/
73+
public function setEtag($etag)
74+
{
75+
$this->etag = $etag;
76+
}
77+
/**
78+
* @return string
79+
*/
80+
public function getEtag()
81+
{
82+
return $this->etag;
83+
}
84+
/**
85+
* Identifier. The resource name of the IacValidationFailureCriteria. Format:
86+
* organizations/{organization}/locations/{location}/iacValidationFailureCrite
87+
* ria
88+
*
89+
* @param string $name
90+
*/
91+
public function setName($name)
92+
{
93+
$this->name = $name;
94+
}
95+
/**
96+
* @return string
97+
*/
98+
public function getName()
99+
{
100+
return $this->name;
101+
}
102+
/**
103+
* Optional. A list of severity thresholds. An IaC validation fails if any
104+
* threshold is exceeded.
105+
*
106+
* @param SeverityCountThreshold[] $severityCountThresholds
107+
*/
108+
public function setSeverityCountThresholds($severityCountThresholds)
109+
{
110+
$this->severityCountThresholds = $severityCountThresholds;
111+
}
112+
/**
113+
* @return SeverityCountThreshold[]
114+
*/
115+
public function getSeverityCountThresholds()
116+
{
117+
return $this->severityCountThresholds;
118+
}
119+
/**
120+
* Output only. The time at which the resource was last updated.
121+
*
122+
* @param string $updateTime
123+
*/
124+
public function setUpdateTime($updateTime)
125+
{
126+
$this->updateTime = $updateTime;
127+
}
128+
/**
129+
* @return string
130+
*/
131+
public function getUpdateTime()
132+
{
133+
return $this->updateTime;
134+
}
135+
}
136+
137+
// Adding a class alias for backwards compatibility with the previous class name.
138+
class_alias(IacValidationFailureCriteria::class, 'Google_Service_SecurityPosture_IacValidationFailureCriteria');
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\SecurityPosture;
19+
20+
class SeverityCountThreshold extends \Google\Model
21+
{
22+
/**
23+
* Default value. This value is unused.
24+
*/
25+
public const SEVERITY_SEVERITY_UNSPECIFIED = 'SEVERITY_UNSPECIFIED';
26+
/**
27+
* Critical severity.
28+
*/
29+
public const SEVERITY_CRITICAL = 'CRITICAL';
30+
/**
31+
* High severity.
32+
*/
33+
public const SEVERITY_HIGH = 'HIGH';
34+
/**
35+
* Medium severity.
36+
*/
37+
public const SEVERITY_MEDIUM = 'MEDIUM';
38+
/**
39+
* Low severity.
40+
*/
41+
public const SEVERITY_LOW = 'LOW';
42+
/**
43+
* Optional. The severity level, reusing the existing Violation.Severity.
44+
*
45+
* @var string
46+
*/
47+
public $severity;
48+
/**
49+
* Optional. If violation count meets or exceeds this threshold, validation
50+
* fails.
51+
*
52+
* @var int
53+
*/
54+
public $thresholdCount;
55+
56+
/**
57+
* Optional. The severity level, reusing the existing Violation.Severity.
58+
*
59+
* Accepted values: SEVERITY_UNSPECIFIED, CRITICAL, HIGH, MEDIUM, LOW
60+
*
61+
* @param self::SEVERITY_* $severity
62+
*/
63+
public function setSeverity($severity)
64+
{
65+
$this->severity = $severity;
66+
}
67+
/**
68+
* @return self::SEVERITY_*
69+
*/
70+
public function getSeverity()
71+
{
72+
return $this->severity;
73+
}
74+
/**
75+
* Optional. If violation count meets or exceeds this threshold, validation
76+
* fails.
77+
*
78+
* @param int $thresholdCount
79+
*/
80+
public function setThresholdCount($thresholdCount)
81+
{
82+
$this->thresholdCount = $thresholdCount;
83+
}
84+
/**
85+
* @return int
86+
*/
87+
public function getThresholdCount()
88+
{
89+
return $this->thresholdCount;
90+
}
91+
}
92+
93+
// Adding a class alias for backwards compatibility with the previous class name.
94+
class_alias(SeverityCountThreshold::class, 'Google_Service_SecurityPosture_SeverityCountThreshold');

0 commit comments

Comments
 (0)