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\CloudRun;
19
20class GoogleCloudRunV2Task extends \Google\Collection
21{
22  protected $collection_key = 'volumes';
23  /**
24   * @var string[]
25   */
26  public $annotations;
27  /**
28   * @var string
29   */
30  public $completionTime;
31  protected $conditionsType = GoogleCloudRunV2Condition::class;
32  protected $conditionsDataType = 'array';
33  protected $containersType = GoogleCloudRunV2Container::class;
34  protected $containersDataType = 'array';
35  /**
36   * @var string
37   */
38  public $createTime;
39  /**
40   * @var string
41   */
42  public $deleteTime;
43  /**
44   * @var string
45   */
46  public $encryptionKey;
47  /**
48   * @var string
49   */
50  public $etag;
51  /**
52   * @var string
53   */
54  public $execution;
55  /**
56   * @var string
57   */
58  public $executionEnvironment;
59  /**
60   * @var string
61   */
62  public $expireTime;
63  /**
64   * @var string
65   */
66  public $generation;
67  /**
68   * @var int
69   */
70  public $index;
71  /**
72   * @var string
73   */
74  public $job;
75  /**
76   * @var string[]
77   */
78  public $labels;
79  protected $lastAttemptResultType = GoogleCloudRunV2TaskAttemptResult::class;
80  protected $lastAttemptResultDataType = '';
81  /**
82   * @var string
83   */
84  public $launchStage;
85  /**
86   * @var int
87   */
88  public $maxRetries;
89  /**
90   * @var string
91   */
92  public $name;
93  /**
94   * @var string
95   */
96  public $observedGeneration;
97  /**
98   * @var bool
99   */
100  public $reconciling;
101  /**
102   * @var int
103   */
104  public $retried;
105  /**
106   * @var string
107   */
108  public $serviceAccount;
109  /**
110   * @var string
111   */
112  public $startTime;
113  /**
114   * @var string
115   */
116  public $timeout;
117  /**
118   * @var string
119   */
120  public $uid;
121  /**
122   * @var string
123   */
124  public $updateTime;
125  protected $volumesType = GoogleCloudRunV2Volume::class;
126  protected $volumesDataType = 'array';
127  protected $vpcAccessType = GoogleCloudRunV2VpcAccess::class;
128  protected $vpcAccessDataType = '';
129
130  /**
131   * @param string[]
132   */
133  public function setAnnotations($annotations)
134  {
135    $this->annotations = $annotations;
136  }
137  /**
138   * @return string[]
139   */
140  public function getAnnotations()
141  {
142    return $this->annotations;
143  }
144  /**
145   * @param string
146   */
147  public function setCompletionTime($completionTime)
148  {
149    $this->completionTime = $completionTime;
150  }
151  /**
152   * @return string
153   */
154  public function getCompletionTime()
155  {
156    return $this->completionTime;
157  }
158  /**
159   * @param GoogleCloudRunV2Condition[]
160   */
161  public function setConditions($conditions)
162  {
163    $this->conditions = $conditions;
164  }
165  /**
166   * @return GoogleCloudRunV2Condition[]
167   */
168  public function getConditions()
169  {
170    return $this->conditions;
171  }
172  /**
173   * @param GoogleCloudRunV2Container[]
174   */
175  public function setContainers($containers)
176  {
177    $this->containers = $containers;
178  }
179  /**
180   * @return GoogleCloudRunV2Container[]
181   */
182  public function getContainers()
183  {
184    return $this->containers;
185  }
186  /**
187   * @param string
188   */
189  public function setCreateTime($createTime)
190  {
191    $this->createTime = $createTime;
192  }
193  /**
194   * @return string
195   */
196  public function getCreateTime()
197  {
198    return $this->createTime;
199  }
200  /**
201   * @param string
202   */
203  public function setDeleteTime($deleteTime)
204  {
205    $this->deleteTime = $deleteTime;
206  }
207  /**
208   * @return string
209   */
210  public function getDeleteTime()
211  {
212    return $this->deleteTime;
213  }
214  /**
215   * @param string
216   */
217  public function setEncryptionKey($encryptionKey)
218  {
219    $this->encryptionKey = $encryptionKey;
220  }
221  /**
222   * @return string
223   */
224  public function getEncryptionKey()
225  {
226    return $this->encryptionKey;
227  }
228  /**
229   * @param string
230   */
231  public function setEtag($etag)
232  {
233    $this->etag = $etag;
234  }
235  /**
236   * @return string
237   */
238  public function getEtag()
239  {
240    return $this->etag;
241  }
242  /**
243   * @param string
244   */
245  public function setExecution($execution)
246  {
247    $this->execution = $execution;
248  }
249  /**
250   * @return string
251   */
252  public function getExecution()
253  {
254    return $this->execution;
255  }
256  /**
257   * @param string
258   */
259  public function setExecutionEnvironment($executionEnvironment)
260  {
261    $this->executionEnvironment = $executionEnvironment;
262  }
263  /**
264   * @return string
265   */
266  public function getExecutionEnvironment()
267  {
268    return $this->executionEnvironment;
269  }
270  /**
271   * @param string
272   */
273  public function setExpireTime($expireTime)
274  {
275    $this->expireTime = $expireTime;
276  }
277  /**
278   * @return string
279   */
280  public function getExpireTime()
281  {
282    return $this->expireTime;
283  }
284  /**
285   * @param string
286   */
287  public function setGeneration($generation)
288  {
289    $this->generation = $generation;
290  }
291  /**
292   * @return string
293   */
294  public function getGeneration()
295  {
296    return $this->generation;
297  }
298  /**
299   * @param int
300   */
301  public function setIndex($index)
302  {
303    $this->index = $index;
304  }
305  /**
306   * @return int
307   */
308  public function getIndex()
309  {
310    return $this->index;
311  }
312  /**
313   * @param string
314   */
315  public function setJob($job)
316  {
317    $this->job = $job;
318  }
319  /**
320   * @return string
321   */
322  public function getJob()
323  {
324    return $this->job;
325  }
326  /**
327   * @param string[]
328   */
329  public function setLabels($labels)
330  {
331    $this->labels = $labels;
332  }
333  /**
334   * @return string[]
335   */
336  public function getLabels()
337  {
338    return $this->labels;
339  }
340  /**
341   * @param GoogleCloudRunV2TaskAttemptResult
342   */
343  public function setLastAttemptResult(GoogleCloudRunV2TaskAttemptResult $lastAttemptResult)
344  {
345    $this->lastAttemptResult = $lastAttemptResult;
346  }
347  /**
348   * @return GoogleCloudRunV2TaskAttemptResult
349   */
350  public function getLastAttemptResult()
351  {
352    return $this->lastAttemptResult;
353  }
354  /**
355   * @param string
356   */
357  public function setLaunchStage($launchStage)
358  {
359    $this->launchStage = $launchStage;
360  }
361  /**
362   * @return string
363   */
364  public function getLaunchStage()
365  {
366    return $this->launchStage;
367  }
368  /**
369   * @param int
370   */
371  public function setMaxRetries($maxRetries)
372  {
373    $this->maxRetries = $maxRetries;
374  }
375  /**
376   * @return int
377   */
378  public function getMaxRetries()
379  {
380    return $this->maxRetries;
381  }
382  /**
383   * @param string
384   */
385  public function setName($name)
386  {
387    $this->name = $name;
388  }
389  /**
390   * @return string
391   */
392  public function getName()
393  {
394    return $this->name;
395  }
396  /**
397   * @param string
398   */
399  public function setObservedGeneration($observedGeneration)
400  {
401    $this->observedGeneration = $observedGeneration;
402  }
403  /**
404   * @return string
405   */
406  public function getObservedGeneration()
407  {
408    return $this->observedGeneration;
409  }
410  /**
411   * @param bool
412   */
413  public function setReconciling($reconciling)
414  {
415    $this->reconciling = $reconciling;
416  }
417  /**
418   * @return bool
419   */
420  public function getReconciling()
421  {
422    return $this->reconciling;
423  }
424  /**
425   * @param int
426   */
427  public function setRetried($retried)
428  {
429    $this->retried = $retried;
430  }
431  /**
432   * @return int
433   */
434  public function getRetried()
435  {
436    return $this->retried;
437  }
438  /**
439   * @param string
440   */
441  public function setServiceAccount($serviceAccount)
442  {
443    $this->serviceAccount = $serviceAccount;
444  }
445  /**
446   * @return string
447   */
448  public function getServiceAccount()
449  {
450    return $this->serviceAccount;
451  }
452  /**
453   * @param string
454   */
455  public function setStartTime($startTime)
456  {
457    $this->startTime = $startTime;
458  }
459  /**
460   * @return string
461   */
462  public function getStartTime()
463  {
464    return $this->startTime;
465  }
466  /**
467   * @param string
468   */
469  public function setTimeout($timeout)
470  {
471    $this->timeout = $timeout;
472  }
473  /**
474   * @return string
475   */
476  public function getTimeout()
477  {
478    return $this->timeout;
479  }
480  /**
481   * @param string
482   */
483  public function setUid($uid)
484  {
485    $this->uid = $uid;
486  }
487  /**
488   * @return string
489   */
490  public function getUid()
491  {
492    return $this->uid;
493  }
494  /**
495   * @param string
496   */
497  public function setUpdateTime($updateTime)
498  {
499    $this->updateTime = $updateTime;
500  }
501  /**
502   * @return string
503   */
504  public function getUpdateTime()
505  {
506    return $this->updateTime;
507  }
508  /**
509   * @param GoogleCloudRunV2Volume[]
510   */
511  public function setVolumes($volumes)
512  {
513    $this->volumes = $volumes;
514  }
515  /**
516   * @return GoogleCloudRunV2Volume[]
517   */
518  public function getVolumes()
519  {
520    return $this->volumes;
521  }
522  /**
523   * @param GoogleCloudRunV2VpcAccess
524   */
525  public function setVpcAccess(GoogleCloudRunV2VpcAccess $vpcAccess)
526  {
527    $this->vpcAccess = $vpcAccess;
528  }
529  /**
530   * @return GoogleCloudRunV2VpcAccess
531   */
532  public function getVpcAccess()
533  {
534    return $this->vpcAccess;
535  }
536}
537
538// Adding a class alias for backwards compatibility with the previous class name.
539class_alias(GoogleCloudRunV2Task::class, 'Google_Service_CloudRun_GoogleCloudRunV2Task');
540