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\DeploymentManager;
19
20class Operation extends \Google\Collection
21{
22  protected $collection_key = 'warnings';
23  /**
24   * @var string
25   */
26  public $clientOperationId;
27  /**
28   * @var string
29   */
30  public $creationTimestamp;
31  /**
32   * @var string
33   */
34  public $description;
35  /**
36   * @var string
37   */
38  public $endTime;
39  protected $errorType = OperationError::class;
40  protected $errorDataType = '';
41  /**
42   * @var string
43   */
44  public $httpErrorMessage;
45  /**
46   * @var int
47   */
48  public $httpErrorStatusCode;
49  /**
50   * @var string
51   */
52  public $id;
53  /**
54   * @var string
55   */
56  public $insertTime;
57  /**
58   * @var string
59   */
60  public $kind;
61  /**
62   * @var string
63   */
64  public $name;
65  /**
66   * @var string
67   */
68  public $operationGroupId;
69  /**
70   * @var string
71   */
72  public $operationType;
73  /**
74   * @var int
75   */
76  public $progress;
77  /**
78   * @var string
79   */
80  public $region;
81  /**
82   * @var string
83   */
84  public $selfLink;
85  /**
86   * @var string
87   */
88  public $startTime;
89  /**
90   * @var string
91   */
92  public $status;
93  /**
94   * @var string
95   */
96  public $statusMessage;
97  /**
98   * @var string
99   */
100  public $targetId;
101  /**
102   * @var string
103   */
104  public $targetLink;
105  /**
106   * @var string
107   */
108  public $user;
109  protected $warningsType = OperationWarnings::class;
110  protected $warningsDataType = 'array';
111  /**
112   * @var string
113   */
114  public $zone;
115
116  /**
117   * @param string
118   */
119  public function setClientOperationId($clientOperationId)
120  {
121    $this->clientOperationId = $clientOperationId;
122  }
123  /**
124   * @return string
125   */
126  public function getClientOperationId()
127  {
128    return $this->clientOperationId;
129  }
130  /**
131   * @param string
132   */
133  public function setCreationTimestamp($creationTimestamp)
134  {
135    $this->creationTimestamp = $creationTimestamp;
136  }
137  /**
138   * @return string
139   */
140  public function getCreationTimestamp()
141  {
142    return $this->creationTimestamp;
143  }
144  /**
145   * @param string
146   */
147  public function setDescription($description)
148  {
149    $this->description = $description;
150  }
151  /**
152   * @return string
153   */
154  public function getDescription()
155  {
156    return $this->description;
157  }
158  /**
159   * @param string
160   */
161  public function setEndTime($endTime)
162  {
163    $this->endTime = $endTime;
164  }
165  /**
166   * @return string
167   */
168  public function getEndTime()
169  {
170    return $this->endTime;
171  }
172  /**
173   * @param OperationError
174   */
175  public function setError(OperationError $error)
176  {
177    $this->error = $error;
178  }
179  /**
180   * @return OperationError
181   */
182  public function getError()
183  {
184    return $this->error;
185  }
186  /**
187   * @param string
188   */
189  public function setHttpErrorMessage($httpErrorMessage)
190  {
191    $this->httpErrorMessage = $httpErrorMessage;
192  }
193  /**
194   * @return string
195   */
196  public function getHttpErrorMessage()
197  {
198    return $this->httpErrorMessage;
199  }
200  /**
201   * @param int
202   */
203  public function setHttpErrorStatusCode($httpErrorStatusCode)
204  {
205    $this->httpErrorStatusCode = $httpErrorStatusCode;
206  }
207  /**
208   * @return int
209   */
210  public function getHttpErrorStatusCode()
211  {
212    return $this->httpErrorStatusCode;
213  }
214  /**
215   * @param string
216   */
217  public function setId($id)
218  {
219    $this->id = $id;
220  }
221  /**
222   * @return string
223   */
224  public function getId()
225  {
226    return $this->id;
227  }
228  /**
229   * @param string
230   */
231  public function setInsertTime($insertTime)
232  {
233    $this->insertTime = $insertTime;
234  }
235  /**
236   * @return string
237   */
238  public function getInsertTime()
239  {
240    return $this->insertTime;
241  }
242  /**
243   * @param string
244   */
245  public function setKind($kind)
246  {
247    $this->kind = $kind;
248  }
249  /**
250   * @return string
251   */
252  public function getKind()
253  {
254    return $this->kind;
255  }
256  /**
257   * @param string
258   */
259  public function setName($name)
260  {
261    $this->name = $name;
262  }
263  /**
264   * @return string
265   */
266  public function getName()
267  {
268    return $this->name;
269  }
270  /**
271   * @param string
272   */
273  public function setOperationGroupId($operationGroupId)
274  {
275    $this->operationGroupId = $operationGroupId;
276  }
277  /**
278   * @return string
279   */
280  public function getOperationGroupId()
281  {
282    return $this->operationGroupId;
283  }
284  /**
285   * @param string
286   */
287  public function setOperationType($operationType)
288  {
289    $this->operationType = $operationType;
290  }
291  /**
292   * @return string
293   */
294  public function getOperationType()
295  {
296    return $this->operationType;
297  }
298  /**
299   * @param int
300   */
301  public function setProgress($progress)
302  {
303    $this->progress = $progress;
304  }
305  /**
306   * @return int
307   */
308  public function getProgress()
309  {
310    return $this->progress;
311  }
312  /**
313   * @param string
314   */
315  public function setRegion($region)
316  {
317    $this->region = $region;
318  }
319  /**
320   * @return string
321   */
322  public function getRegion()
323  {
324    return $this->region;
325  }
326  /**
327   * @param string
328   */
329  public function setSelfLink($selfLink)
330  {
331    $this->selfLink = $selfLink;
332  }
333  /**
334   * @return string
335   */
336  public function getSelfLink()
337  {
338    return $this->selfLink;
339  }
340  /**
341   * @param string
342   */
343  public function setStartTime($startTime)
344  {
345    $this->startTime = $startTime;
346  }
347  /**
348   * @return string
349   */
350  public function getStartTime()
351  {
352    return $this->startTime;
353  }
354  /**
355   * @param string
356   */
357  public function setStatus($status)
358  {
359    $this->status = $status;
360  }
361  /**
362   * @return string
363   */
364  public function getStatus()
365  {
366    return $this->status;
367  }
368  /**
369   * @param string
370   */
371  public function setStatusMessage($statusMessage)
372  {
373    $this->statusMessage = $statusMessage;
374  }
375  /**
376   * @return string
377   */
378  public function getStatusMessage()
379  {
380    return $this->statusMessage;
381  }
382  /**
383   * @param string
384   */
385  public function setTargetId($targetId)
386  {
387    $this->targetId = $targetId;
388  }
389  /**
390   * @return string
391   */
392  public function getTargetId()
393  {
394    return $this->targetId;
395  }
396  /**
397   * @param string
398   */
399  public function setTargetLink($targetLink)
400  {
401    $this->targetLink = $targetLink;
402  }
403  /**
404   * @return string
405   */
406  public function getTargetLink()
407  {
408    return $this->targetLink;
409  }
410  /**
411   * @param string
412   */
413  public function setUser($user)
414  {
415    $this->user = $user;
416  }
417  /**
418   * @return string
419   */
420  public function getUser()
421  {
422    return $this->user;
423  }
424  /**
425   * @param OperationWarnings[]
426   */
427  public function setWarnings($warnings)
428  {
429    $this->warnings = $warnings;
430  }
431  /**
432   * @return OperationWarnings[]
433   */
434  public function getWarnings()
435  {
436    return $this->warnings;
437  }
438  /**
439   * @param string
440   */
441  public function setZone($zone)
442  {
443    $this->zone = $zone;
444  }
445  /**
446   * @return string
447   */
448  public function getZone()
449  {
450    return $this->zone;
451  }
452}
453
454// Adding a class alias for backwards compatibility with the previous class name.
455class_alias(Operation::class, 'Google_Service_DeploymentManager_Operation');
456