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\BackupforGKE;
19
20class Restore extends \Google\Model
21{
22  /**
23   * @var string
24   */
25  public $backup;
26  /**
27   * @var string
28   */
29  public $cluster;
30  /**
31   * @var string
32   */
33  public $completeTime;
34  /**
35   * @var string
36   */
37  public $createTime;
38  /**
39   * @var string
40   */
41  public $description;
42  /**
43   * @var string
44   */
45  public $etag;
46  /**
47   * @var string[]
48   */
49  public $labels;
50  /**
51   * @var string
52   */
53  public $name;
54  /**
55   * @var int
56   */
57  public $resourcesExcludedCount;
58  /**
59   * @var int
60   */
61  public $resourcesFailedCount;
62  /**
63   * @var int
64   */
65  public $resourcesRestoredCount;
66  protected $restoreConfigType = RestoreConfig::class;
67  protected $restoreConfigDataType = '';
68  /**
69   * @var string
70   */
71  public $state;
72  /**
73   * @var string
74   */
75  public $stateReason;
76  /**
77   * @var string
78   */
79  public $uid;
80  /**
81   * @var string
82   */
83  public $updateTime;
84  /**
85   * @var int
86   */
87  public $volumesRestoredCount;
88
89  /**
90   * @param string
91   */
92  public function setBackup($backup)
93  {
94    $this->backup = $backup;
95  }
96  /**
97   * @return string
98   */
99  public function getBackup()
100  {
101    return $this->backup;
102  }
103  /**
104   * @param string
105   */
106  public function setCluster($cluster)
107  {
108    $this->cluster = $cluster;
109  }
110  /**
111   * @return string
112   */
113  public function getCluster()
114  {
115    return $this->cluster;
116  }
117  /**
118   * @param string
119   */
120  public function setCompleteTime($completeTime)
121  {
122    $this->completeTime = $completeTime;
123  }
124  /**
125   * @return string
126   */
127  public function getCompleteTime()
128  {
129    return $this->completeTime;
130  }
131  /**
132   * @param string
133   */
134  public function setCreateTime($createTime)
135  {
136    $this->createTime = $createTime;
137  }
138  /**
139   * @return string
140   */
141  public function getCreateTime()
142  {
143    return $this->createTime;
144  }
145  /**
146   * @param string
147   */
148  public function setDescription($description)
149  {
150    $this->description = $description;
151  }
152  /**
153   * @return string
154   */
155  public function getDescription()
156  {
157    return $this->description;
158  }
159  /**
160   * @param string
161   */
162  public function setEtag($etag)
163  {
164    $this->etag = $etag;
165  }
166  /**
167   * @return string
168   */
169  public function getEtag()
170  {
171    return $this->etag;
172  }
173  /**
174   * @param string[]
175   */
176  public function setLabels($labels)
177  {
178    $this->labels = $labels;
179  }
180  /**
181   * @return string[]
182   */
183  public function getLabels()
184  {
185    return $this->labels;
186  }
187  /**
188   * @param string
189   */
190  public function setName($name)
191  {
192    $this->name = $name;
193  }
194  /**
195   * @return string
196   */
197  public function getName()
198  {
199    return $this->name;
200  }
201  /**
202   * @param int
203   */
204  public function setResourcesExcludedCount($resourcesExcludedCount)
205  {
206    $this->resourcesExcludedCount = $resourcesExcludedCount;
207  }
208  /**
209   * @return int
210   */
211  public function getResourcesExcludedCount()
212  {
213    return $this->resourcesExcludedCount;
214  }
215  /**
216   * @param int
217   */
218  public function setResourcesFailedCount($resourcesFailedCount)
219  {
220    $this->resourcesFailedCount = $resourcesFailedCount;
221  }
222  /**
223   * @return int
224   */
225  public function getResourcesFailedCount()
226  {
227    return $this->resourcesFailedCount;
228  }
229  /**
230   * @param int
231   */
232  public function setResourcesRestoredCount($resourcesRestoredCount)
233  {
234    $this->resourcesRestoredCount = $resourcesRestoredCount;
235  }
236  /**
237   * @return int
238   */
239  public function getResourcesRestoredCount()
240  {
241    return $this->resourcesRestoredCount;
242  }
243  /**
244   * @param RestoreConfig
245   */
246  public function setRestoreConfig(RestoreConfig $restoreConfig)
247  {
248    $this->restoreConfig = $restoreConfig;
249  }
250  /**
251   * @return RestoreConfig
252   */
253  public function getRestoreConfig()
254  {
255    return $this->restoreConfig;
256  }
257  /**
258   * @param string
259   */
260  public function setState($state)
261  {
262    $this->state = $state;
263  }
264  /**
265   * @return string
266   */
267  public function getState()
268  {
269    return $this->state;
270  }
271  /**
272   * @param string
273   */
274  public function setStateReason($stateReason)
275  {
276    $this->stateReason = $stateReason;
277  }
278  /**
279   * @return string
280   */
281  public function getStateReason()
282  {
283    return $this->stateReason;
284  }
285  /**
286   * @param string
287   */
288  public function setUid($uid)
289  {
290    $this->uid = $uid;
291  }
292  /**
293   * @return string
294   */
295  public function getUid()
296  {
297    return $this->uid;
298  }
299  /**
300   * @param string
301   */
302  public function setUpdateTime($updateTime)
303  {
304    $this->updateTime = $updateTime;
305  }
306  /**
307   * @return string
308   */
309  public function getUpdateTime()
310  {
311    return $this->updateTime;
312  }
313  /**
314   * @param int
315   */
316  public function setVolumesRestoredCount($volumesRestoredCount)
317  {
318    $this->volumesRestoredCount = $volumesRestoredCount;
319  }
320  /**
321   * @return int
322   */
323  public function getVolumesRestoredCount()
324  {
325    return $this->volumesRestoredCount;
326  }
327}
328
329// Adding a class alias for backwards compatibility with the previous class name.
330class_alias(Restore::class, 'Google_Service_BackupforGKE_Restore');
331