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\Compute;
|
---|
19 |
|
---|
20 | class 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 $customEndTimestamp;
|
---|
39 | /**
|
---|
40 | * @var string
|
---|
41 | */
|
---|
42 | public $description;
|
---|
43 | /**
|
---|
44 | * @var string
|
---|
45 | */
|
---|
46 | public $endTimestamp;
|
---|
47 | /**
|
---|
48 | * @var string[]
|
---|
49 | */
|
---|
50 | public $existingReservations;
|
---|
51 | /**
|
---|
52 | * @var string
|
---|
53 | */
|
---|
54 | public $id;
|
---|
55 | /**
|
---|
56 | * @var string
|
---|
57 | */
|
---|
58 | public $kind;
|
---|
59 | protected $licenseResourceType = LicenseResourceCommitment::class;
|
---|
60 | protected $licenseResourceDataType = '';
|
---|
61 | /**
|
---|
62 | * @var string[]
|
---|
63 | */
|
---|
64 | public $mergeSourceCommitments;
|
---|
65 | /**
|
---|
66 | * @var string
|
---|
67 | */
|
---|
68 | public $name;
|
---|
69 | /**
|
---|
70 | * @var string
|
---|
71 | */
|
---|
72 | public $plan;
|
---|
73 | /**
|
---|
74 | * @var string
|
---|
75 | */
|
---|
76 | public $region;
|
---|
77 | protected $reservationsType = Reservation::class;
|
---|
78 | protected $reservationsDataType = 'array';
|
---|
79 | protected $resourceStatusType = CommitmentResourceStatus::class;
|
---|
80 | protected $resourceStatusDataType = '';
|
---|
81 | protected $resourcesType = ResourceCommitment::class;
|
---|
82 | protected $resourcesDataType = 'array';
|
---|
83 | /**
|
---|
84 | * @var string
|
---|
85 | */
|
---|
86 | public $selfLink;
|
---|
87 | /**
|
---|
88 | * @var string
|
---|
89 | */
|
---|
90 | public $splitSourceCommitment;
|
---|
91 | /**
|
---|
92 | * @var string
|
---|
93 | */
|
---|
94 | public $startTimestamp;
|
---|
95 | /**
|
---|
96 | * @var string
|
---|
97 | */
|
---|
98 | public $status;
|
---|
99 | /**
|
---|
100 | * @var string
|
---|
101 | */
|
---|
102 | public $statusMessage;
|
---|
103 | /**
|
---|
104 | * @var string
|
---|
105 | */
|
---|
106 | public $type;
|
---|
107 |
|
---|
108 | /**
|
---|
109 | * @param bool
|
---|
110 | */
|
---|
111 | public function setAutoRenew($autoRenew)
|
---|
112 | {
|
---|
113 | $this->autoRenew = $autoRenew;
|
---|
114 | }
|
---|
115 | /**
|
---|
116 | * @return bool
|
---|
117 | */
|
---|
118 | public function getAutoRenew()
|
---|
119 | {
|
---|
120 | return $this->autoRenew;
|
---|
121 | }
|
---|
122 | /**
|
---|
123 | * @param string
|
---|
124 | */
|
---|
125 | public function setCategory($category)
|
---|
126 | {
|
---|
127 | $this->category = $category;
|
---|
128 | }
|
---|
129 | /**
|
---|
130 | * @return string
|
---|
131 | */
|
---|
132 | public function getCategory()
|
---|
133 | {
|
---|
134 | return $this->category;
|
---|
135 | }
|
---|
136 | /**
|
---|
137 | * @param string
|
---|
138 | */
|
---|
139 | public function setCreationTimestamp($creationTimestamp)
|
---|
140 | {
|
---|
141 | $this->creationTimestamp = $creationTimestamp;
|
---|
142 | }
|
---|
143 | /**
|
---|
144 | * @return string
|
---|
145 | */
|
---|
146 | public function getCreationTimestamp()
|
---|
147 | {
|
---|
148 | return $this->creationTimestamp;
|
---|
149 | }
|
---|
150 | /**
|
---|
151 | * @param string
|
---|
152 | */
|
---|
153 | public function setCustomEndTimestamp($customEndTimestamp)
|
---|
154 | {
|
---|
155 | $this->customEndTimestamp = $customEndTimestamp;
|
---|
156 | }
|
---|
157 | /**
|
---|
158 | * @return string
|
---|
159 | */
|
---|
160 | public function getCustomEndTimestamp()
|
---|
161 | {
|
---|
162 | return $this->customEndTimestamp;
|
---|
163 | }
|
---|
164 | /**
|
---|
165 | * @param string
|
---|
166 | */
|
---|
167 | public function setDescription($description)
|
---|
168 | {
|
---|
169 | $this->description = $description;
|
---|
170 | }
|
---|
171 | /**
|
---|
172 | * @return string
|
---|
173 | */
|
---|
174 | public function getDescription()
|
---|
175 | {
|
---|
176 | return $this->description;
|
---|
177 | }
|
---|
178 | /**
|
---|
179 | * @param string
|
---|
180 | */
|
---|
181 | public function setEndTimestamp($endTimestamp)
|
---|
182 | {
|
---|
183 | $this->endTimestamp = $endTimestamp;
|
---|
184 | }
|
---|
185 | /**
|
---|
186 | * @return string
|
---|
187 | */
|
---|
188 | public function getEndTimestamp()
|
---|
189 | {
|
---|
190 | return $this->endTimestamp;
|
---|
191 | }
|
---|
192 | /**
|
---|
193 | * @param string[]
|
---|
194 | */
|
---|
195 | public function setExistingReservations($existingReservations)
|
---|
196 | {
|
---|
197 | $this->existingReservations = $existingReservations;
|
---|
198 | }
|
---|
199 | /**
|
---|
200 | * @return string[]
|
---|
201 | */
|
---|
202 | public function getExistingReservations()
|
---|
203 | {
|
---|
204 | return $this->existingReservations;
|
---|
205 | }
|
---|
206 | /**
|
---|
207 | * @param string
|
---|
208 | */
|
---|
209 | public function setId($id)
|
---|
210 | {
|
---|
211 | $this->id = $id;
|
---|
212 | }
|
---|
213 | /**
|
---|
214 | * @return string
|
---|
215 | */
|
---|
216 | public function getId()
|
---|
217 | {
|
---|
218 | return $this->id;
|
---|
219 | }
|
---|
220 | /**
|
---|
221 | * @param string
|
---|
222 | */
|
---|
223 | public function setKind($kind)
|
---|
224 | {
|
---|
225 | $this->kind = $kind;
|
---|
226 | }
|
---|
227 | /**
|
---|
228 | * @return string
|
---|
229 | */
|
---|
230 | public function getKind()
|
---|
231 | {
|
---|
232 | return $this->kind;
|
---|
233 | }
|
---|
234 | /**
|
---|
235 | * @param LicenseResourceCommitment
|
---|
236 | */
|
---|
237 | public function setLicenseResource(LicenseResourceCommitment $licenseResource)
|
---|
238 | {
|
---|
239 | $this->licenseResource = $licenseResource;
|
---|
240 | }
|
---|
241 | /**
|
---|
242 | * @return LicenseResourceCommitment
|
---|
243 | */
|
---|
244 | public function getLicenseResource()
|
---|
245 | {
|
---|
246 | return $this->licenseResource;
|
---|
247 | }
|
---|
248 | /**
|
---|
249 | * @param string[]
|
---|
250 | */
|
---|
251 | public function setMergeSourceCommitments($mergeSourceCommitments)
|
---|
252 | {
|
---|
253 | $this->mergeSourceCommitments = $mergeSourceCommitments;
|
---|
254 | }
|
---|
255 | /**
|
---|
256 | * @return string[]
|
---|
257 | */
|
---|
258 | public function getMergeSourceCommitments()
|
---|
259 | {
|
---|
260 | return $this->mergeSourceCommitments;
|
---|
261 | }
|
---|
262 | /**
|
---|
263 | * @param string
|
---|
264 | */
|
---|
265 | public function setName($name)
|
---|
266 | {
|
---|
267 | $this->name = $name;
|
---|
268 | }
|
---|
269 | /**
|
---|
270 | * @return string
|
---|
271 | */
|
---|
272 | public function getName()
|
---|
273 | {
|
---|
274 | return $this->name;
|
---|
275 | }
|
---|
276 | /**
|
---|
277 | * @param string
|
---|
278 | */
|
---|
279 | public function setPlan($plan)
|
---|
280 | {
|
---|
281 | $this->plan = $plan;
|
---|
282 | }
|
---|
283 | /**
|
---|
284 | * @return string
|
---|
285 | */
|
---|
286 | public function getPlan()
|
---|
287 | {
|
---|
288 | return $this->plan;
|
---|
289 | }
|
---|
290 | /**
|
---|
291 | * @param string
|
---|
292 | */
|
---|
293 | public function setRegion($region)
|
---|
294 | {
|
---|
295 | $this->region = $region;
|
---|
296 | }
|
---|
297 | /**
|
---|
298 | * @return string
|
---|
299 | */
|
---|
300 | public function getRegion()
|
---|
301 | {
|
---|
302 | return $this->region;
|
---|
303 | }
|
---|
304 | /**
|
---|
305 | * @param Reservation[]
|
---|
306 | */
|
---|
307 | public function setReservations($reservations)
|
---|
308 | {
|
---|
309 | $this->reservations = $reservations;
|
---|
310 | }
|
---|
311 | /**
|
---|
312 | * @return Reservation[]
|
---|
313 | */
|
---|
314 | public function getReservations()
|
---|
315 | {
|
---|
316 | return $this->reservations;
|
---|
317 | }
|
---|
318 | /**
|
---|
319 | * @param CommitmentResourceStatus
|
---|
320 | */
|
---|
321 | public function setResourceStatus(CommitmentResourceStatus $resourceStatus)
|
---|
322 | {
|
---|
323 | $this->resourceStatus = $resourceStatus;
|
---|
324 | }
|
---|
325 | /**
|
---|
326 | * @return CommitmentResourceStatus
|
---|
327 | */
|
---|
328 | public function getResourceStatus()
|
---|
329 | {
|
---|
330 | return $this->resourceStatus;
|
---|
331 | }
|
---|
332 | /**
|
---|
333 | * @param ResourceCommitment[]
|
---|
334 | */
|
---|
335 | public function setResources($resources)
|
---|
336 | {
|
---|
337 | $this->resources = $resources;
|
---|
338 | }
|
---|
339 | /**
|
---|
340 | * @return ResourceCommitment[]
|
---|
341 | */
|
---|
342 | public function getResources()
|
---|
343 | {
|
---|
344 | return $this->resources;
|
---|
345 | }
|
---|
346 | /**
|
---|
347 | * @param string
|
---|
348 | */
|
---|
349 | public function setSelfLink($selfLink)
|
---|
350 | {
|
---|
351 | $this->selfLink = $selfLink;
|
---|
352 | }
|
---|
353 | /**
|
---|
354 | * @return string
|
---|
355 | */
|
---|
356 | public function getSelfLink()
|
---|
357 | {
|
---|
358 | return $this->selfLink;
|
---|
359 | }
|
---|
360 | /**
|
---|
361 | * @param string
|
---|
362 | */
|
---|
363 | public function setSplitSourceCommitment($splitSourceCommitment)
|
---|
364 | {
|
---|
365 | $this->splitSourceCommitment = $splitSourceCommitment;
|
---|
366 | }
|
---|
367 | /**
|
---|
368 | * @return string
|
---|
369 | */
|
---|
370 | public function getSplitSourceCommitment()
|
---|
371 | {
|
---|
372 | return $this->splitSourceCommitment;
|
---|
373 | }
|
---|
374 | /**
|
---|
375 | * @param string
|
---|
376 | */
|
---|
377 | public function setStartTimestamp($startTimestamp)
|
---|
378 | {
|
---|
379 | $this->startTimestamp = $startTimestamp;
|
---|
380 | }
|
---|
381 | /**
|
---|
382 | * @return string
|
---|
383 | */
|
---|
384 | public function getStartTimestamp()
|
---|
385 | {
|
---|
386 | return $this->startTimestamp;
|
---|
387 | }
|
---|
388 | /**
|
---|
389 | * @param string
|
---|
390 | */
|
---|
391 | public function setStatus($status)
|
---|
392 | {
|
---|
393 | $this->status = $status;
|
---|
394 | }
|
---|
395 | /**
|
---|
396 | * @return string
|
---|
397 | */
|
---|
398 | public function getStatus()
|
---|
399 | {
|
---|
400 | return $this->status;
|
---|
401 | }
|
---|
402 | /**
|
---|
403 | * @param string
|
---|
404 | */
|
---|
405 | public function setStatusMessage($statusMessage)
|
---|
406 | {
|
---|
407 | $this->statusMessage = $statusMessage;
|
---|
408 | }
|
---|
409 | /**
|
---|
410 | * @return string
|
---|
411 | */
|
---|
412 | public function getStatusMessage()
|
---|
413 | {
|
---|
414 | return $this->statusMessage;
|
---|
415 | }
|
---|
416 | /**
|
---|
417 | * @param string
|
---|
418 | */
|
---|
419 | public function setType($type)
|
---|
420 | {
|
---|
421 | $this->type = $type;
|
---|
422 | }
|
---|
423 | /**
|
---|
424 | * @return string
|
---|
425 | */
|
---|
426 | public function getType()
|
---|
427 | {
|
---|
428 | return $this->type;
|
---|
429 | }
|
---|
430 | }
|
---|
431 |
|
---|
432 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
433 | class_alias(Commitment::class, 'Google_Service_Compute_Commitment');
|
---|