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\CloudRun;
|
---|
19 |
|
---|
20 | class GoogleCloudRunV2Job extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'conditions';
|
---|
23 | /**
|
---|
24 | * @var string[]
|
---|
25 | */
|
---|
26 | public $annotations;
|
---|
27 | protected $binaryAuthorizationType = GoogleCloudRunV2BinaryAuthorization::class;
|
---|
28 | protected $binaryAuthorizationDataType = '';
|
---|
29 | /**
|
---|
30 | * @var string
|
---|
31 | */
|
---|
32 | public $client;
|
---|
33 | /**
|
---|
34 | * @var string
|
---|
35 | */
|
---|
36 | public $clientVersion;
|
---|
37 | protected $conditionsType = GoogleCloudRunV2Condition::class;
|
---|
38 | protected $conditionsDataType = 'array';
|
---|
39 | /**
|
---|
40 | * @var string
|
---|
41 | */
|
---|
42 | public $createTime;
|
---|
43 | /**
|
---|
44 | * @var string
|
---|
45 | */
|
---|
46 | public $creator;
|
---|
47 | /**
|
---|
48 | * @var string
|
---|
49 | */
|
---|
50 | public $deleteTime;
|
---|
51 | /**
|
---|
52 | * @var string
|
---|
53 | */
|
---|
54 | public $etag;
|
---|
55 | /**
|
---|
56 | * @var int
|
---|
57 | */
|
---|
58 | public $executionCount;
|
---|
59 | /**
|
---|
60 | * @var string
|
---|
61 | */
|
---|
62 | public $expireTime;
|
---|
63 | /**
|
---|
64 | * @var string
|
---|
65 | */
|
---|
66 | public $generation;
|
---|
67 | /**
|
---|
68 | * @var string[]
|
---|
69 | */
|
---|
70 | public $labels;
|
---|
71 | /**
|
---|
72 | * @var string
|
---|
73 | */
|
---|
74 | public $lastModifier;
|
---|
75 | protected $latestCreatedExecutionType = GoogleCloudRunV2ExecutionReference::class;
|
---|
76 | protected $latestCreatedExecutionDataType = '';
|
---|
77 | /**
|
---|
78 | * @var string
|
---|
79 | */
|
---|
80 | public $launchStage;
|
---|
81 | /**
|
---|
82 | * @var string
|
---|
83 | */
|
---|
84 | public $name;
|
---|
85 | /**
|
---|
86 | * @var string
|
---|
87 | */
|
---|
88 | public $observedGeneration;
|
---|
89 | /**
|
---|
90 | * @var bool
|
---|
91 | */
|
---|
92 | public $reconciling;
|
---|
93 | /**
|
---|
94 | * @var string
|
---|
95 | */
|
---|
96 | public $runExecutionToken;
|
---|
97 | /**
|
---|
98 | * @var bool
|
---|
99 | */
|
---|
100 | public $satisfiesPzs;
|
---|
101 | /**
|
---|
102 | * @var string
|
---|
103 | */
|
---|
104 | public $startExecutionToken;
|
---|
105 | protected $templateType = GoogleCloudRunV2ExecutionTemplate::class;
|
---|
106 | protected $templateDataType = '';
|
---|
107 | protected $terminalConditionType = GoogleCloudRunV2Condition::class;
|
---|
108 | protected $terminalConditionDataType = '';
|
---|
109 | /**
|
---|
110 | * @var string
|
---|
111 | */
|
---|
112 | public $uid;
|
---|
113 | /**
|
---|
114 | * @var string
|
---|
115 | */
|
---|
116 | public $updateTime;
|
---|
117 |
|
---|
118 | /**
|
---|
119 | * @param string[]
|
---|
120 | */
|
---|
121 | public function setAnnotations($annotations)
|
---|
122 | {
|
---|
123 | $this->annotations = $annotations;
|
---|
124 | }
|
---|
125 | /**
|
---|
126 | * @return string[]
|
---|
127 | */
|
---|
128 | public function getAnnotations()
|
---|
129 | {
|
---|
130 | return $this->annotations;
|
---|
131 | }
|
---|
132 | /**
|
---|
133 | * @param GoogleCloudRunV2BinaryAuthorization
|
---|
134 | */
|
---|
135 | public function setBinaryAuthorization(GoogleCloudRunV2BinaryAuthorization $binaryAuthorization)
|
---|
136 | {
|
---|
137 | $this->binaryAuthorization = $binaryAuthorization;
|
---|
138 | }
|
---|
139 | /**
|
---|
140 | * @return GoogleCloudRunV2BinaryAuthorization
|
---|
141 | */
|
---|
142 | public function getBinaryAuthorization()
|
---|
143 | {
|
---|
144 | return $this->binaryAuthorization;
|
---|
145 | }
|
---|
146 | /**
|
---|
147 | * @param string
|
---|
148 | */
|
---|
149 | public function setClient($client)
|
---|
150 | {
|
---|
151 | $this->client = $client;
|
---|
152 | }
|
---|
153 | /**
|
---|
154 | * @return string
|
---|
155 | */
|
---|
156 | public function getClient()
|
---|
157 | {
|
---|
158 | return $this->client;
|
---|
159 | }
|
---|
160 | /**
|
---|
161 | * @param string
|
---|
162 | */
|
---|
163 | public function setClientVersion($clientVersion)
|
---|
164 | {
|
---|
165 | $this->clientVersion = $clientVersion;
|
---|
166 | }
|
---|
167 | /**
|
---|
168 | * @return string
|
---|
169 | */
|
---|
170 | public function getClientVersion()
|
---|
171 | {
|
---|
172 | return $this->clientVersion;
|
---|
173 | }
|
---|
174 | /**
|
---|
175 | * @param GoogleCloudRunV2Condition[]
|
---|
176 | */
|
---|
177 | public function setConditions($conditions)
|
---|
178 | {
|
---|
179 | $this->conditions = $conditions;
|
---|
180 | }
|
---|
181 | /**
|
---|
182 | * @return GoogleCloudRunV2Condition[]
|
---|
183 | */
|
---|
184 | public function getConditions()
|
---|
185 | {
|
---|
186 | return $this->conditions;
|
---|
187 | }
|
---|
188 | /**
|
---|
189 | * @param string
|
---|
190 | */
|
---|
191 | public function setCreateTime($createTime)
|
---|
192 | {
|
---|
193 | $this->createTime = $createTime;
|
---|
194 | }
|
---|
195 | /**
|
---|
196 | * @return string
|
---|
197 | */
|
---|
198 | public function getCreateTime()
|
---|
199 | {
|
---|
200 | return $this->createTime;
|
---|
201 | }
|
---|
202 | /**
|
---|
203 | * @param string
|
---|
204 | */
|
---|
205 | public function setCreator($creator)
|
---|
206 | {
|
---|
207 | $this->creator = $creator;
|
---|
208 | }
|
---|
209 | /**
|
---|
210 | * @return string
|
---|
211 | */
|
---|
212 | public function getCreator()
|
---|
213 | {
|
---|
214 | return $this->creator;
|
---|
215 | }
|
---|
216 | /**
|
---|
217 | * @param string
|
---|
218 | */
|
---|
219 | public function setDeleteTime($deleteTime)
|
---|
220 | {
|
---|
221 | $this->deleteTime = $deleteTime;
|
---|
222 | }
|
---|
223 | /**
|
---|
224 | * @return string
|
---|
225 | */
|
---|
226 | public function getDeleteTime()
|
---|
227 | {
|
---|
228 | return $this->deleteTime;
|
---|
229 | }
|
---|
230 | /**
|
---|
231 | * @param string
|
---|
232 | */
|
---|
233 | public function setEtag($etag)
|
---|
234 | {
|
---|
235 | $this->etag = $etag;
|
---|
236 | }
|
---|
237 | /**
|
---|
238 | * @return string
|
---|
239 | */
|
---|
240 | public function getEtag()
|
---|
241 | {
|
---|
242 | return $this->etag;
|
---|
243 | }
|
---|
244 | /**
|
---|
245 | * @param int
|
---|
246 | */
|
---|
247 | public function setExecutionCount($executionCount)
|
---|
248 | {
|
---|
249 | $this->executionCount = $executionCount;
|
---|
250 | }
|
---|
251 | /**
|
---|
252 | * @return int
|
---|
253 | */
|
---|
254 | public function getExecutionCount()
|
---|
255 | {
|
---|
256 | return $this->executionCount;
|
---|
257 | }
|
---|
258 | /**
|
---|
259 | * @param string
|
---|
260 | */
|
---|
261 | public function setExpireTime($expireTime)
|
---|
262 | {
|
---|
263 | $this->expireTime = $expireTime;
|
---|
264 | }
|
---|
265 | /**
|
---|
266 | * @return string
|
---|
267 | */
|
---|
268 | public function getExpireTime()
|
---|
269 | {
|
---|
270 | return $this->expireTime;
|
---|
271 | }
|
---|
272 | /**
|
---|
273 | * @param string
|
---|
274 | */
|
---|
275 | public function setGeneration($generation)
|
---|
276 | {
|
---|
277 | $this->generation = $generation;
|
---|
278 | }
|
---|
279 | /**
|
---|
280 | * @return string
|
---|
281 | */
|
---|
282 | public function getGeneration()
|
---|
283 | {
|
---|
284 | return $this->generation;
|
---|
285 | }
|
---|
286 | /**
|
---|
287 | * @param string[]
|
---|
288 | */
|
---|
289 | public function setLabels($labels)
|
---|
290 | {
|
---|
291 | $this->labels = $labels;
|
---|
292 | }
|
---|
293 | /**
|
---|
294 | * @return string[]
|
---|
295 | */
|
---|
296 | public function getLabels()
|
---|
297 | {
|
---|
298 | return $this->labels;
|
---|
299 | }
|
---|
300 | /**
|
---|
301 | * @param string
|
---|
302 | */
|
---|
303 | public function setLastModifier($lastModifier)
|
---|
304 | {
|
---|
305 | $this->lastModifier = $lastModifier;
|
---|
306 | }
|
---|
307 | /**
|
---|
308 | * @return string
|
---|
309 | */
|
---|
310 | public function getLastModifier()
|
---|
311 | {
|
---|
312 | return $this->lastModifier;
|
---|
313 | }
|
---|
314 | /**
|
---|
315 | * @param GoogleCloudRunV2ExecutionReference
|
---|
316 | */
|
---|
317 | public function setLatestCreatedExecution(GoogleCloudRunV2ExecutionReference $latestCreatedExecution)
|
---|
318 | {
|
---|
319 | $this->latestCreatedExecution = $latestCreatedExecution;
|
---|
320 | }
|
---|
321 | /**
|
---|
322 | * @return GoogleCloudRunV2ExecutionReference
|
---|
323 | */
|
---|
324 | public function getLatestCreatedExecution()
|
---|
325 | {
|
---|
326 | return $this->latestCreatedExecution;
|
---|
327 | }
|
---|
328 | /**
|
---|
329 | * @param string
|
---|
330 | */
|
---|
331 | public function setLaunchStage($launchStage)
|
---|
332 | {
|
---|
333 | $this->launchStage = $launchStage;
|
---|
334 | }
|
---|
335 | /**
|
---|
336 | * @return string
|
---|
337 | */
|
---|
338 | public function getLaunchStage()
|
---|
339 | {
|
---|
340 | return $this->launchStage;
|
---|
341 | }
|
---|
342 | /**
|
---|
343 | * @param string
|
---|
344 | */
|
---|
345 | public function setName($name)
|
---|
346 | {
|
---|
347 | $this->name = $name;
|
---|
348 | }
|
---|
349 | /**
|
---|
350 | * @return string
|
---|
351 | */
|
---|
352 | public function getName()
|
---|
353 | {
|
---|
354 | return $this->name;
|
---|
355 | }
|
---|
356 | /**
|
---|
357 | * @param string
|
---|
358 | */
|
---|
359 | public function setObservedGeneration($observedGeneration)
|
---|
360 | {
|
---|
361 | $this->observedGeneration = $observedGeneration;
|
---|
362 | }
|
---|
363 | /**
|
---|
364 | * @return string
|
---|
365 | */
|
---|
366 | public function getObservedGeneration()
|
---|
367 | {
|
---|
368 | return $this->observedGeneration;
|
---|
369 | }
|
---|
370 | /**
|
---|
371 | * @param bool
|
---|
372 | */
|
---|
373 | public function setReconciling($reconciling)
|
---|
374 | {
|
---|
375 | $this->reconciling = $reconciling;
|
---|
376 | }
|
---|
377 | /**
|
---|
378 | * @return bool
|
---|
379 | */
|
---|
380 | public function getReconciling()
|
---|
381 | {
|
---|
382 | return $this->reconciling;
|
---|
383 | }
|
---|
384 | /**
|
---|
385 | * @param string
|
---|
386 | */
|
---|
387 | public function setRunExecutionToken($runExecutionToken)
|
---|
388 | {
|
---|
389 | $this->runExecutionToken = $runExecutionToken;
|
---|
390 | }
|
---|
391 | /**
|
---|
392 | * @return string
|
---|
393 | */
|
---|
394 | public function getRunExecutionToken()
|
---|
395 | {
|
---|
396 | return $this->runExecutionToken;
|
---|
397 | }
|
---|
398 | /**
|
---|
399 | * @param bool
|
---|
400 | */
|
---|
401 | public function setSatisfiesPzs($satisfiesPzs)
|
---|
402 | {
|
---|
403 | $this->satisfiesPzs = $satisfiesPzs;
|
---|
404 | }
|
---|
405 | /**
|
---|
406 | * @return bool
|
---|
407 | */
|
---|
408 | public function getSatisfiesPzs()
|
---|
409 | {
|
---|
410 | return $this->satisfiesPzs;
|
---|
411 | }
|
---|
412 | /**
|
---|
413 | * @param string
|
---|
414 | */
|
---|
415 | public function setStartExecutionToken($startExecutionToken)
|
---|
416 | {
|
---|
417 | $this->startExecutionToken = $startExecutionToken;
|
---|
418 | }
|
---|
419 | /**
|
---|
420 | * @return string
|
---|
421 | */
|
---|
422 | public function getStartExecutionToken()
|
---|
423 | {
|
---|
424 | return $this->startExecutionToken;
|
---|
425 | }
|
---|
426 | /**
|
---|
427 | * @param GoogleCloudRunV2ExecutionTemplate
|
---|
428 | */
|
---|
429 | public function setTemplate(GoogleCloudRunV2ExecutionTemplate $template)
|
---|
430 | {
|
---|
431 | $this->template = $template;
|
---|
432 | }
|
---|
433 | /**
|
---|
434 | * @return GoogleCloudRunV2ExecutionTemplate
|
---|
435 | */
|
---|
436 | public function getTemplate()
|
---|
437 | {
|
---|
438 | return $this->template;
|
---|
439 | }
|
---|
440 | /**
|
---|
441 | * @param GoogleCloudRunV2Condition
|
---|
442 | */
|
---|
443 | public function setTerminalCondition(GoogleCloudRunV2Condition $terminalCondition)
|
---|
444 | {
|
---|
445 | $this->terminalCondition = $terminalCondition;
|
---|
446 | }
|
---|
447 | /**
|
---|
448 | * @return GoogleCloudRunV2Condition
|
---|
449 | */
|
---|
450 | public function getTerminalCondition()
|
---|
451 | {
|
---|
452 | return $this->terminalCondition;
|
---|
453 | }
|
---|
454 | /**
|
---|
455 | * @param string
|
---|
456 | */
|
---|
457 | public function setUid($uid)
|
---|
458 | {
|
---|
459 | $this->uid = $uid;
|
---|
460 | }
|
---|
461 | /**
|
---|
462 | * @return string
|
---|
463 | */
|
---|
464 | public function getUid()
|
---|
465 | {
|
---|
466 | return $this->uid;
|
---|
467 | }
|
---|
468 | /**
|
---|
469 | * @param string
|
---|
470 | */
|
---|
471 | public function setUpdateTime($updateTime)
|
---|
472 | {
|
---|
473 | $this->updateTime = $updateTime;
|
---|
474 | }
|
---|
475 | /**
|
---|
476 | * @return string
|
---|
477 | */
|
---|
478 | public function getUpdateTime()
|
---|
479 | {
|
---|
480 | return $this->updateTime;
|
---|
481 | }
|
---|
482 | }
|
---|
483 |
|
---|
484 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
485 | class_alias(GoogleCloudRunV2Job::class, 'Google_Service_CloudRun_GoogleCloudRunV2Job');
|
---|