source: vendor/google/apiclient-services/src/Compute/SecurityPolicy.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 6.5 KB
Line 
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
18namespace Google\Service\Compute;
19
20class SecurityPolicy extends \Google\Collection
21{
22 protected $collection_key = 'userDefinedFields';
23 protected $adaptiveProtectionConfigType = SecurityPolicyAdaptiveProtectionConfig::class;
24 protected $adaptiveProtectionConfigDataType = '';
25 protected $advancedOptionsConfigType = SecurityPolicyAdvancedOptionsConfig::class;
26 protected $advancedOptionsConfigDataType = '';
27 /**
28 * @var string
29 */
30 public $creationTimestamp;
31 protected $ddosProtectionConfigType = SecurityPolicyDdosProtectionConfig::class;
32 protected $ddosProtectionConfigDataType = '';
33 /**
34 * @var string
35 */
36 public $description;
37 /**
38 * @var string
39 */
40 public $fingerprint;
41 /**
42 * @var string
43 */
44 public $id;
45 /**
46 * @var string
47 */
48 public $kind;
49 /**
50 * @var string
51 */
52 public $labelFingerprint;
53 /**
54 * @var string[]
55 */
56 public $labels;
57 /**
58 * @var string
59 */
60 public $name;
61 protected $recaptchaOptionsConfigType = SecurityPolicyRecaptchaOptionsConfig::class;
62 protected $recaptchaOptionsConfigDataType = '';
63 /**
64 * @var string
65 */
66 public $region;
67 protected $rulesType = SecurityPolicyRule::class;
68 protected $rulesDataType = 'array';
69 /**
70 * @var string
71 */
72 public $selfLink;
73 /**
74 * @var string
75 */
76 public $type;
77 protected $userDefinedFieldsType = SecurityPolicyUserDefinedField::class;
78 protected $userDefinedFieldsDataType = 'array';
79
80 /**
81 * @param SecurityPolicyAdaptiveProtectionConfig
82 */
83 public function setAdaptiveProtectionConfig(SecurityPolicyAdaptiveProtectionConfig $adaptiveProtectionConfig)
84 {
85 $this->adaptiveProtectionConfig = $adaptiveProtectionConfig;
86 }
87 /**
88 * @return SecurityPolicyAdaptiveProtectionConfig
89 */
90 public function getAdaptiveProtectionConfig()
91 {
92 return $this->adaptiveProtectionConfig;
93 }
94 /**
95 * @param SecurityPolicyAdvancedOptionsConfig
96 */
97 public function setAdvancedOptionsConfig(SecurityPolicyAdvancedOptionsConfig $advancedOptionsConfig)
98 {
99 $this->advancedOptionsConfig = $advancedOptionsConfig;
100 }
101 /**
102 * @return SecurityPolicyAdvancedOptionsConfig
103 */
104 public function getAdvancedOptionsConfig()
105 {
106 return $this->advancedOptionsConfig;
107 }
108 /**
109 * @param string
110 */
111 public function setCreationTimestamp($creationTimestamp)
112 {
113 $this->creationTimestamp = $creationTimestamp;
114 }
115 /**
116 * @return string
117 */
118 public function getCreationTimestamp()
119 {
120 return $this->creationTimestamp;
121 }
122 /**
123 * @param SecurityPolicyDdosProtectionConfig
124 */
125 public function setDdosProtectionConfig(SecurityPolicyDdosProtectionConfig $ddosProtectionConfig)
126 {
127 $this->ddosProtectionConfig = $ddosProtectionConfig;
128 }
129 /**
130 * @return SecurityPolicyDdosProtectionConfig
131 */
132 public function getDdosProtectionConfig()
133 {
134 return $this->ddosProtectionConfig;
135 }
136 /**
137 * @param string
138 */
139 public function setDescription($description)
140 {
141 $this->description = $description;
142 }
143 /**
144 * @return string
145 */
146 public function getDescription()
147 {
148 return $this->description;
149 }
150 /**
151 * @param string
152 */
153 public function setFingerprint($fingerprint)
154 {
155 $this->fingerprint = $fingerprint;
156 }
157 /**
158 * @return string
159 */
160 public function getFingerprint()
161 {
162 return $this->fingerprint;
163 }
164 /**
165 * @param string
166 */
167 public function setId($id)
168 {
169 $this->id = $id;
170 }
171 /**
172 * @return string
173 */
174 public function getId()
175 {
176 return $this->id;
177 }
178 /**
179 * @param string
180 */
181 public function setKind($kind)
182 {
183 $this->kind = $kind;
184 }
185 /**
186 * @return string
187 */
188 public function getKind()
189 {
190 return $this->kind;
191 }
192 /**
193 * @param string
194 */
195 public function setLabelFingerprint($labelFingerprint)
196 {
197 $this->labelFingerprint = $labelFingerprint;
198 }
199 /**
200 * @return string
201 */
202 public function getLabelFingerprint()
203 {
204 return $this->labelFingerprint;
205 }
206 /**
207 * @param string[]
208 */
209 public function setLabels($labels)
210 {
211 $this->labels = $labels;
212 }
213 /**
214 * @return string[]
215 */
216 public function getLabels()
217 {
218 return $this->labels;
219 }
220 /**
221 * @param string
222 */
223 public function setName($name)
224 {
225 $this->name = $name;
226 }
227 /**
228 * @return string
229 */
230 public function getName()
231 {
232 return $this->name;
233 }
234 /**
235 * @param SecurityPolicyRecaptchaOptionsConfig
236 */
237 public function setRecaptchaOptionsConfig(SecurityPolicyRecaptchaOptionsConfig $recaptchaOptionsConfig)
238 {
239 $this->recaptchaOptionsConfig = $recaptchaOptionsConfig;
240 }
241 /**
242 * @return SecurityPolicyRecaptchaOptionsConfig
243 */
244 public function getRecaptchaOptionsConfig()
245 {
246 return $this->recaptchaOptionsConfig;
247 }
248 /**
249 * @param string
250 */
251 public function setRegion($region)
252 {
253 $this->region = $region;
254 }
255 /**
256 * @return string
257 */
258 public function getRegion()
259 {
260 return $this->region;
261 }
262 /**
263 * @param SecurityPolicyRule[]
264 */
265 public function setRules($rules)
266 {
267 $this->rules = $rules;
268 }
269 /**
270 * @return SecurityPolicyRule[]
271 */
272 public function getRules()
273 {
274 return $this->rules;
275 }
276 /**
277 * @param string
278 */
279 public function setSelfLink($selfLink)
280 {
281 $this->selfLink = $selfLink;
282 }
283 /**
284 * @return string
285 */
286 public function getSelfLink()
287 {
288 return $this->selfLink;
289 }
290 /**
291 * @param string
292 */
293 public function setType($type)
294 {
295 $this->type = $type;
296 }
297 /**
298 * @return string
299 */
300 public function getType()
301 {
302 return $this->type;
303 }
304 /**
305 * @param SecurityPolicyUserDefinedField[]
306 */
307 public function setUserDefinedFields($userDefinedFields)
308 {
309 $this->userDefinedFields = $userDefinedFields;
310 }
311 /**
312 * @return SecurityPolicyUserDefinedField[]
313 */
314 public function getUserDefinedFields()
315 {
316 return $this->userDefinedFields;
317 }
318}
319
320// Adding a class alias for backwards compatibility with the previous class name.
321class_alias(SecurityPolicy::class, 'Google_Service_Compute_SecurityPolicy');
Note: See TracBrowser for help on using the repository browser.