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\Compute;
19
20class Commitment extends \Google\Collection
21{
22  protected $collection_key = 'resources';
23  /**
24   * @var bool
25   */
26  public $autoRenew;
27  /**
28   * @var string
29   */
30  public $category;
31  /**
32   * @var string
33   */
34  public $creationTimestamp;
35  /**
36   * @var string
37   */
38  public $description;
39  /**
40   * @var string
41   */
42  public $endTimestamp;
43  /**
44   * @var string
45   */
46  public $id;
47  /**
48   * @var string
49   */
50  public $kind;
51  protected $licenseResourceType = LicenseResourceCommitment::class;
52  protected $licenseResourceDataType = '';
53  /**
54   * @var string
55   */
56  public $name;
57  /**
58   * @var string
59   */
60  public $plan;
61  /**
62   * @var string
63   */
64  public $region;
65  protected $reservationsType = Reservation::class;
66  protected $reservationsDataType = 'array';
67  protected $resourcesType = ResourceCommitment::class;
68  protected $resourcesDataType = 'array';
69  /**
70   * @var string
71   */
72  public $selfLink;
73  /**
74   * @var string
75   */
76  public $startTimestamp;
77  /**
78   * @var string
79   */
80  public $status;
81  /**
82   * @var string
83   */
84  public $statusMessage;
85  /**
86   * @var string
87   */
88  public $type;
89
90  /**
91   * @param bool
92   */
93  public function setAutoRenew($autoRenew)
94  {
95    $this->autoRenew = $autoRenew;
96  }
97  /**
98   * @return bool
99   */
100  public function getAutoRenew()
101  {
102    return $this->autoRenew;
103  }
104  /**
105   * @param string
106   */
107  public function setCategory($category)
108  {
109    $this->category = $category;
110  }
111  /**
112   * @return string
113   */
114  public function getCategory()
115  {
116    return $this->category;
117  }
118  /**
119   * @param string
120   */
121  public function setCreationTimestamp($creationTimestamp)
122  {
123    $this->creationTimestamp = $creationTimestamp;
124  }
125  /**
126   * @return string
127   */
128  public function getCreationTimestamp()
129  {
130    return $this->creationTimestamp;
131  }
132  /**
133   * @param string
134   */
135  public function setDescription($description)
136  {
137    $this->description = $description;
138  }
139  /**
140   * @return string
141   */
142  public function getDescription()
143  {
144    return $this->description;
145  }
146  /**
147   * @param string
148   */
149  public function setEndTimestamp($endTimestamp)
150  {
151    $this->endTimestamp = $endTimestamp;
152  }
153  /**
154   * @return string
155   */
156  public function getEndTimestamp()
157  {
158    return $this->endTimestamp;
159  }
160  /**
161   * @param string
162   */
163  public function setId($id)
164  {
165    $this->id = $id;
166  }
167  /**
168   * @return string
169   */
170  public function getId()
171  {
172    return $this->id;
173  }
174  /**
175   * @param string
176   */
177  public function setKind($kind)
178  {
179    $this->kind = $kind;
180  }
181  /**
182   * @return string
183   */
184  public function getKind()
185  {
186    return $this->kind;
187  }
188  /**
189   * @param LicenseResourceCommitment
190   */
191  public function setLicenseResource(LicenseResourceCommitment $licenseResource)
192  {
193    $this->licenseResource = $licenseResource;
194  }
195  /**
196   * @return LicenseResourceCommitment
197   */
198  public function getLicenseResource()
199  {
200    return $this->licenseResource;
201  }
202  /**
203   * @param string
204   */
205  public function setName($name)
206  {
207    $this->name = $name;
208  }
209  /**
210   * @return string
211   */
212  public function getName()
213  {
214    return $this->name;
215  }
216  /**
217   * @param string
218   */
219  public function setPlan($plan)
220  {
221    $this->plan = $plan;
222  }
223  /**
224   * @return string
225   */
226  public function getPlan()
227  {
228    return $this->plan;
229  }
230  /**
231   * @param string
232   */
233  public function setRegion($region)
234  {
235    $this->region = $region;
236  }
237  /**
238   * @return string
239   */
240  public function getRegion()
241  {
242    return $this->region;
243  }
244  /**
245   * @param Reservation[]
246   */
247  public function setReservations($reservations)
248  {
249    $this->reservations = $reservations;
250  }
251  /**
252   * @return Reservation[]
253   */
254  public function getReservations()
255  {
256    return $this->reservations;
257  }
258  /**
259   * @param ResourceCommitment[]
260   */
261  public function setResources($resources)
262  {
263    $this->resources = $resources;
264  }
265  /**
266   * @return ResourceCommitment[]
267   */
268  public function getResources()
269  {
270    return $this->resources;
271  }
272  /**
273   * @param string
274   */
275  public function setSelfLink($selfLink)
276  {
277    $this->selfLink = $selfLink;
278  }
279  /**
280   * @return string
281   */
282  public function getSelfLink()
283  {
284    return $this->selfLink;
285  }
286  /**
287   * @param string
288   */
289  public function setStartTimestamp($startTimestamp)
290  {
291    $this->startTimestamp = $startTimestamp;
292  }
293  /**
294   * @return string
295   */
296  public function getStartTimestamp()
297  {
298    return $this->startTimestamp;
299  }
300  /**
301   * @param string
302   */
303  public function setStatus($status)
304  {
305    $this->status = $status;
306  }
307  /**
308   * @return string
309   */
310  public function getStatus()
311  {
312    return $this->status;
313  }
314  /**
315   * @param string
316   */
317  public function setStatusMessage($statusMessage)
318  {
319    $this->statusMessage = $statusMessage;
320  }
321  /**
322   * @return string
323   */
324  public function getStatusMessage()
325  {
326    return $this->statusMessage;
327  }
328  /**
329   * @param string
330   */
331  public function setType($type)
332  {
333    $this->type = $type;
334  }
335  /**
336   * @return string
337   */
338  public function getType()
339  {
340    return $this->type;
341  }
342}
343
344// Adding a class alias for backwards compatibility with the previous class name.
345class_alias(Commitment::class, 'Google_Service_Compute_Commitment');
346