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\Config;
|
---|
19 |
|
---|
20 | class Revision extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'tfErrors';
|
---|
23 | /**
|
---|
24 | * @var string
|
---|
25 | */
|
---|
26 | public $action;
|
---|
27 | protected $applyResultsType = ApplyResults::class;
|
---|
28 | protected $applyResultsDataType = '';
|
---|
29 | /**
|
---|
30 | * @var string
|
---|
31 | */
|
---|
32 | public $build;
|
---|
33 | /**
|
---|
34 | * @var string
|
---|
35 | */
|
---|
36 | public $createTime;
|
---|
37 | /**
|
---|
38 | * @var string
|
---|
39 | */
|
---|
40 | public $errorCode;
|
---|
41 | /**
|
---|
42 | * @var string
|
---|
43 | */
|
---|
44 | public $errorLogs;
|
---|
45 | /**
|
---|
46 | * @var bool
|
---|
47 | */
|
---|
48 | public $importExistingResources;
|
---|
49 | /**
|
---|
50 | * @var string
|
---|
51 | */
|
---|
52 | public $logs;
|
---|
53 | /**
|
---|
54 | * @var string
|
---|
55 | */
|
---|
56 | public $name;
|
---|
57 | /**
|
---|
58 | * @var string
|
---|
59 | */
|
---|
60 | public $quotaValidation;
|
---|
61 | /**
|
---|
62 | * @var string
|
---|
63 | */
|
---|
64 | public $quotaValidationResults;
|
---|
65 | /**
|
---|
66 | * @var string
|
---|
67 | */
|
---|
68 | public $serviceAccount;
|
---|
69 | /**
|
---|
70 | * @var string
|
---|
71 | */
|
---|
72 | public $state;
|
---|
73 | /**
|
---|
74 | * @var string
|
---|
75 | */
|
---|
76 | public $stateDetail;
|
---|
77 | protected $terraformBlueprintType = TerraformBlueprint::class;
|
---|
78 | protected $terraformBlueprintDataType = '';
|
---|
79 | protected $tfErrorsType = TerraformError::class;
|
---|
80 | protected $tfErrorsDataType = 'array';
|
---|
81 | /**
|
---|
82 | * @var string
|
---|
83 | */
|
---|
84 | public $tfVersion;
|
---|
85 | /**
|
---|
86 | * @var string
|
---|
87 | */
|
---|
88 | public $tfVersionConstraint;
|
---|
89 | /**
|
---|
90 | * @var string
|
---|
91 | */
|
---|
92 | public $updateTime;
|
---|
93 | /**
|
---|
94 | * @var string
|
---|
95 | */
|
---|
96 | public $workerPool;
|
---|
97 |
|
---|
98 | /**
|
---|
99 | * @param string
|
---|
100 | */
|
---|
101 | public function setAction($action)
|
---|
102 | {
|
---|
103 | $this->action = $action;
|
---|
104 | }
|
---|
105 | /**
|
---|
106 | * @return string
|
---|
107 | */
|
---|
108 | public function getAction()
|
---|
109 | {
|
---|
110 | return $this->action;
|
---|
111 | }
|
---|
112 | /**
|
---|
113 | * @param ApplyResults
|
---|
114 | */
|
---|
115 | public function setApplyResults(ApplyResults $applyResults)
|
---|
116 | {
|
---|
117 | $this->applyResults = $applyResults;
|
---|
118 | }
|
---|
119 | /**
|
---|
120 | * @return ApplyResults
|
---|
121 | */
|
---|
122 | public function getApplyResults()
|
---|
123 | {
|
---|
124 | return $this->applyResults;
|
---|
125 | }
|
---|
126 | /**
|
---|
127 | * @param string
|
---|
128 | */
|
---|
129 | public function setBuild($build)
|
---|
130 | {
|
---|
131 | $this->build = $build;
|
---|
132 | }
|
---|
133 | /**
|
---|
134 | * @return string
|
---|
135 | */
|
---|
136 | public function getBuild()
|
---|
137 | {
|
---|
138 | return $this->build;
|
---|
139 | }
|
---|
140 | /**
|
---|
141 | * @param string
|
---|
142 | */
|
---|
143 | public function setCreateTime($createTime)
|
---|
144 | {
|
---|
145 | $this->createTime = $createTime;
|
---|
146 | }
|
---|
147 | /**
|
---|
148 | * @return string
|
---|
149 | */
|
---|
150 | public function getCreateTime()
|
---|
151 | {
|
---|
152 | return $this->createTime;
|
---|
153 | }
|
---|
154 | /**
|
---|
155 | * @param string
|
---|
156 | */
|
---|
157 | public function setErrorCode($errorCode)
|
---|
158 | {
|
---|
159 | $this->errorCode = $errorCode;
|
---|
160 | }
|
---|
161 | /**
|
---|
162 | * @return string
|
---|
163 | */
|
---|
164 | public function getErrorCode()
|
---|
165 | {
|
---|
166 | return $this->errorCode;
|
---|
167 | }
|
---|
168 | /**
|
---|
169 | * @param string
|
---|
170 | */
|
---|
171 | public function setErrorLogs($errorLogs)
|
---|
172 | {
|
---|
173 | $this->errorLogs = $errorLogs;
|
---|
174 | }
|
---|
175 | /**
|
---|
176 | * @return string
|
---|
177 | */
|
---|
178 | public function getErrorLogs()
|
---|
179 | {
|
---|
180 | return $this->errorLogs;
|
---|
181 | }
|
---|
182 | /**
|
---|
183 | * @param bool
|
---|
184 | */
|
---|
185 | public function setImportExistingResources($importExistingResources)
|
---|
186 | {
|
---|
187 | $this->importExistingResources = $importExistingResources;
|
---|
188 | }
|
---|
189 | /**
|
---|
190 | * @return bool
|
---|
191 | */
|
---|
192 | public function getImportExistingResources()
|
---|
193 | {
|
---|
194 | return $this->importExistingResources;
|
---|
195 | }
|
---|
196 | /**
|
---|
197 | * @param string
|
---|
198 | */
|
---|
199 | public function setLogs($logs)
|
---|
200 | {
|
---|
201 | $this->logs = $logs;
|
---|
202 | }
|
---|
203 | /**
|
---|
204 | * @return string
|
---|
205 | */
|
---|
206 | public function getLogs()
|
---|
207 | {
|
---|
208 | return $this->logs;
|
---|
209 | }
|
---|
210 | /**
|
---|
211 | * @param string
|
---|
212 | */
|
---|
213 | public function setName($name)
|
---|
214 | {
|
---|
215 | $this->name = $name;
|
---|
216 | }
|
---|
217 | /**
|
---|
218 | * @return string
|
---|
219 | */
|
---|
220 | public function getName()
|
---|
221 | {
|
---|
222 | return $this->name;
|
---|
223 | }
|
---|
224 | /**
|
---|
225 | * @param string
|
---|
226 | */
|
---|
227 | public function setQuotaValidation($quotaValidation)
|
---|
228 | {
|
---|
229 | $this->quotaValidation = $quotaValidation;
|
---|
230 | }
|
---|
231 | /**
|
---|
232 | * @return string
|
---|
233 | */
|
---|
234 | public function getQuotaValidation()
|
---|
235 | {
|
---|
236 | return $this->quotaValidation;
|
---|
237 | }
|
---|
238 | /**
|
---|
239 | * @param string
|
---|
240 | */
|
---|
241 | public function setQuotaValidationResults($quotaValidationResults)
|
---|
242 | {
|
---|
243 | $this->quotaValidationResults = $quotaValidationResults;
|
---|
244 | }
|
---|
245 | /**
|
---|
246 | * @return string
|
---|
247 | */
|
---|
248 | public function getQuotaValidationResults()
|
---|
249 | {
|
---|
250 | return $this->quotaValidationResults;
|
---|
251 | }
|
---|
252 | /**
|
---|
253 | * @param string
|
---|
254 | */
|
---|
255 | public function setServiceAccount($serviceAccount)
|
---|
256 | {
|
---|
257 | $this->serviceAccount = $serviceAccount;
|
---|
258 | }
|
---|
259 | /**
|
---|
260 | * @return string
|
---|
261 | */
|
---|
262 | public function getServiceAccount()
|
---|
263 | {
|
---|
264 | return $this->serviceAccount;
|
---|
265 | }
|
---|
266 | /**
|
---|
267 | * @param string
|
---|
268 | */
|
---|
269 | public function setState($state)
|
---|
270 | {
|
---|
271 | $this->state = $state;
|
---|
272 | }
|
---|
273 | /**
|
---|
274 | * @return string
|
---|
275 | */
|
---|
276 | public function getState()
|
---|
277 | {
|
---|
278 | return $this->state;
|
---|
279 | }
|
---|
280 | /**
|
---|
281 | * @param string
|
---|
282 | */
|
---|
283 | public function setStateDetail($stateDetail)
|
---|
284 | {
|
---|
285 | $this->stateDetail = $stateDetail;
|
---|
286 | }
|
---|
287 | /**
|
---|
288 | * @return string
|
---|
289 | */
|
---|
290 | public function getStateDetail()
|
---|
291 | {
|
---|
292 | return $this->stateDetail;
|
---|
293 | }
|
---|
294 | /**
|
---|
295 | * @param TerraformBlueprint
|
---|
296 | */
|
---|
297 | public function setTerraformBlueprint(TerraformBlueprint $terraformBlueprint)
|
---|
298 | {
|
---|
299 | $this->terraformBlueprint = $terraformBlueprint;
|
---|
300 | }
|
---|
301 | /**
|
---|
302 | * @return TerraformBlueprint
|
---|
303 | */
|
---|
304 | public function getTerraformBlueprint()
|
---|
305 | {
|
---|
306 | return $this->terraformBlueprint;
|
---|
307 | }
|
---|
308 | /**
|
---|
309 | * @param TerraformError[]
|
---|
310 | */
|
---|
311 | public function setTfErrors($tfErrors)
|
---|
312 | {
|
---|
313 | $this->tfErrors = $tfErrors;
|
---|
314 | }
|
---|
315 | /**
|
---|
316 | * @return TerraformError[]
|
---|
317 | */
|
---|
318 | public function getTfErrors()
|
---|
319 | {
|
---|
320 | return $this->tfErrors;
|
---|
321 | }
|
---|
322 | /**
|
---|
323 | * @param string
|
---|
324 | */
|
---|
325 | public function setTfVersion($tfVersion)
|
---|
326 | {
|
---|
327 | $this->tfVersion = $tfVersion;
|
---|
328 | }
|
---|
329 | /**
|
---|
330 | * @return string
|
---|
331 | */
|
---|
332 | public function getTfVersion()
|
---|
333 | {
|
---|
334 | return $this->tfVersion;
|
---|
335 | }
|
---|
336 | /**
|
---|
337 | * @param string
|
---|
338 | */
|
---|
339 | public function setTfVersionConstraint($tfVersionConstraint)
|
---|
340 | {
|
---|
341 | $this->tfVersionConstraint = $tfVersionConstraint;
|
---|
342 | }
|
---|
343 | /**
|
---|
344 | * @return string
|
---|
345 | */
|
---|
346 | public function getTfVersionConstraint()
|
---|
347 | {
|
---|
348 | return $this->tfVersionConstraint;
|
---|
349 | }
|
---|
350 | /**
|
---|
351 | * @param string
|
---|
352 | */
|
---|
353 | public function setUpdateTime($updateTime)
|
---|
354 | {
|
---|
355 | $this->updateTime = $updateTime;
|
---|
356 | }
|
---|
357 | /**
|
---|
358 | * @return string
|
---|
359 | */
|
---|
360 | public function getUpdateTime()
|
---|
361 | {
|
---|
362 | return $this->updateTime;
|
---|
363 | }
|
---|
364 | /**
|
---|
365 | * @param string
|
---|
366 | */
|
---|
367 | public function setWorkerPool($workerPool)
|
---|
368 | {
|
---|
369 | $this->workerPool = $workerPool;
|
---|
370 | }
|
---|
371 | /**
|
---|
372 | * @return string
|
---|
373 | */
|
---|
374 | public function getWorkerPool()
|
---|
375 | {
|
---|
376 | return $this->workerPool;
|
---|
377 | }
|
---|
378 | }
|
---|
379 |
|
---|
380 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
381 | class_alias(Revision::class, 'Google_Service_Config_Revision');
|
---|