forked from googleapis/google-api-php-client-services
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGoogleCloudOrgpolicyV2Constraint.php
More file actions
253 lines (249 loc) · 7.11 KB
/
GoogleCloudOrgpolicyV2Constraint.php
File metadata and controls
253 lines (249 loc) · 7.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\OrgPolicyAPI;
class GoogleCloudOrgpolicyV2Constraint extends \Google\Model
{
/**
* This is only used for distinguishing unset values and should never be used.
* Results in an error.
*/
public const CONSTRAINT_DEFAULT_CONSTRAINT_DEFAULT_UNSPECIFIED = 'CONSTRAINT_DEFAULT_UNSPECIFIED';
/**
* Indicate that all values are allowed for list constraints. Indicate that
* enforcement is off for boolean constraints.
*/
public const CONSTRAINT_DEFAULT_ALLOW = 'ALLOW';
/**
* Indicate that all values are denied for list constraints. Indicate that
* enforcement is on for boolean constraints.
*/
public const CONSTRAINT_DEFAULT_DENY = 'DENY';
protected $booleanConstraintType = GoogleCloudOrgpolicyV2ConstraintBooleanConstraint::class;
protected $booleanConstraintDataType = '';
/**
* The evaluation behavior of this constraint in the absence of a policy.
*
* @var string
*/
public $constraintDefault;
/**
* Detailed description of what this constraint controls as well as how and
* where it is enforced. Mutable.
*
* @var string
*/
public $description;
/**
* The human readable name. Mutable.
*
* @var string
*/
public $displayName;
/**
* Defines the equivalent constraint name, if it exists. Managed constraints
* can have an equivalent legacy managed constraint, and legacy managed
* constraints can have an equivalent managed constraint. For example,
* "constraints/iam.disableServiceAccountKeyUpload" is equivalent to
* "constraints/iam.managed.disableServiceAccountKeyUpload".
*
* @var string
*/
public $equivalentConstraint;
protected $listConstraintType = GoogleCloudOrgpolicyV2ConstraintListConstraint::class;
protected $listConstraintDataType = '';
/**
* Immutable. The resource name of the constraint. Must be in one of the
* following forms: *
* `projects/{project_number}/constraints/{constraint_name}` *
* `folders/{folder_id}/constraints/{constraint_name}` *
* `organizations/{organization_id}/constraints/{constraint_name}` For
* example, "/projects/123/constraints/compute.disableSerialPortAccess".
*
* @var string
*/
public $name;
/**
* Shows if dry run is supported for this constraint or not.
*
* @var bool
*/
public $supportsDryRun;
/**
* Shows if simulation is supported for this constraint or not.
*
* @var bool
*/
public $supportsSimulation;
/**
* Defines this constraint as being a boolean constraint.
*
* @param GoogleCloudOrgpolicyV2ConstraintBooleanConstraint $booleanConstraint
*/
public function setBooleanConstraint(GoogleCloudOrgpolicyV2ConstraintBooleanConstraint $booleanConstraint)
{
$this->booleanConstraint = $booleanConstraint;
}
/**
* @return GoogleCloudOrgpolicyV2ConstraintBooleanConstraint
*/
public function getBooleanConstraint()
{
return $this->booleanConstraint;
}
/**
* The evaluation behavior of this constraint in the absence of a policy.
*
* Accepted values: CONSTRAINT_DEFAULT_UNSPECIFIED, ALLOW, DENY
*
* @param self::CONSTRAINT_DEFAULT_* $constraintDefault
*/
public function setConstraintDefault($constraintDefault)
{
$this->constraintDefault = $constraintDefault;
}
/**
* @return self::CONSTRAINT_DEFAULT_*
*/
public function getConstraintDefault()
{
return $this->constraintDefault;
}
/**
* Detailed description of what this constraint controls as well as how and
* where it is enforced. Mutable.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The human readable name. Mutable.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Defines the equivalent constraint name, if it exists. Managed constraints
* can have an equivalent legacy managed constraint, and legacy managed
* constraints can have an equivalent managed constraint. For example,
* "constraints/iam.disableServiceAccountKeyUpload" is equivalent to
* "constraints/iam.managed.disableServiceAccountKeyUpload".
*
* @param string $equivalentConstraint
*/
public function setEquivalentConstraint($equivalentConstraint)
{
$this->equivalentConstraint = $equivalentConstraint;
}
/**
* @return string
*/
public function getEquivalentConstraint()
{
return $this->equivalentConstraint;
}
/**
* Defines this constraint as being a list constraint.
*
* @param GoogleCloudOrgpolicyV2ConstraintListConstraint $listConstraint
*/
public function setListConstraint(GoogleCloudOrgpolicyV2ConstraintListConstraint $listConstraint)
{
$this->listConstraint = $listConstraint;
}
/**
* @return GoogleCloudOrgpolicyV2ConstraintListConstraint
*/
public function getListConstraint()
{
return $this->listConstraint;
}
/**
* Immutable. The resource name of the constraint. Must be in one of the
* following forms: *
* `projects/{project_number}/constraints/{constraint_name}` *
* `folders/{folder_id}/constraints/{constraint_name}` *
* `organizations/{organization_id}/constraints/{constraint_name}` For
* example, "/projects/123/constraints/compute.disableSerialPortAccess".
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Shows if dry run is supported for this constraint or not.
*
* @param bool $supportsDryRun
*/
public function setSupportsDryRun($supportsDryRun)
{
$this->supportsDryRun = $supportsDryRun;
}
/**
* @return bool
*/
public function getSupportsDryRun()
{
return $this->supportsDryRun;
}
/**
* Shows if simulation is supported for this constraint or not.
*
* @param bool $supportsSimulation
*/
public function setSupportsSimulation($supportsSimulation)
{
$this->supportsSimulation = $supportsSimulation;
}
/**
* @return bool
*/
public function getSupportsSimulation()
{
return $this->supportsSimulation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudOrgpolicyV2Constraint::class, 'Google_Service_OrgPolicyAPI_GoogleCloudOrgpolicyV2Constraint');