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\CloudDeploy;
|
---|
19 |
|
---|
20 | class Release extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'targetSnapshots';
|
---|
23 | /**
|
---|
24 | * @var bool
|
---|
25 | */
|
---|
26 | public $abandoned;
|
---|
27 | /**
|
---|
28 | * @var string[]
|
---|
29 | */
|
---|
30 | public $annotations;
|
---|
31 | protected $buildArtifactsType = BuildArtifact::class;
|
---|
32 | protected $buildArtifactsDataType = 'array';
|
---|
33 | protected $conditionType = ReleaseCondition::class;
|
---|
34 | protected $conditionDataType = '';
|
---|
35 | /**
|
---|
36 | * @var string
|
---|
37 | */
|
---|
38 | public $createTime;
|
---|
39 | protected $customTargetTypeSnapshotsType = CustomTargetType::class;
|
---|
40 | protected $customTargetTypeSnapshotsDataType = 'array';
|
---|
41 | protected $deliveryPipelineSnapshotType = DeliveryPipeline::class;
|
---|
42 | protected $deliveryPipelineSnapshotDataType = '';
|
---|
43 | /**
|
---|
44 | * @var string[]
|
---|
45 | */
|
---|
46 | public $deployParameters;
|
---|
47 | /**
|
---|
48 | * @var string
|
---|
49 | */
|
---|
50 | public $description;
|
---|
51 | /**
|
---|
52 | * @var string
|
---|
53 | */
|
---|
54 | public $etag;
|
---|
55 | /**
|
---|
56 | * @var string[]
|
---|
57 | */
|
---|
58 | public $labels;
|
---|
59 | /**
|
---|
60 | * @var string
|
---|
61 | */
|
---|
62 | public $name;
|
---|
63 | /**
|
---|
64 | * @var string
|
---|
65 | */
|
---|
66 | public $renderEndTime;
|
---|
67 | /**
|
---|
68 | * @var string
|
---|
69 | */
|
---|
70 | public $renderStartTime;
|
---|
71 | /**
|
---|
72 | * @var string
|
---|
73 | */
|
---|
74 | public $renderState;
|
---|
75 | /**
|
---|
76 | * @var string
|
---|
77 | */
|
---|
78 | public $skaffoldConfigPath;
|
---|
79 | /**
|
---|
80 | * @var string
|
---|
81 | */
|
---|
82 | public $skaffoldConfigUri;
|
---|
83 | /**
|
---|
84 | * @var string
|
---|
85 | */
|
---|
86 | public $skaffoldVersion;
|
---|
87 | protected $targetArtifactsType = TargetArtifact::class;
|
---|
88 | protected $targetArtifactsDataType = 'map';
|
---|
89 | protected $targetRendersType = TargetRender::class;
|
---|
90 | protected $targetRendersDataType = 'map';
|
---|
91 | protected $targetSnapshotsType = Target::class;
|
---|
92 | protected $targetSnapshotsDataType = 'array';
|
---|
93 | /**
|
---|
94 | * @var string
|
---|
95 | */
|
---|
96 | public $uid;
|
---|
97 |
|
---|
98 | /**
|
---|
99 | * @param bool
|
---|
100 | */
|
---|
101 | public function setAbandoned($abandoned)
|
---|
102 | {
|
---|
103 | $this->abandoned = $abandoned;
|
---|
104 | }
|
---|
105 | /**
|
---|
106 | * @return bool
|
---|
107 | */
|
---|
108 | public function getAbandoned()
|
---|
109 | {
|
---|
110 | return $this->abandoned;
|
---|
111 | }
|
---|
112 | /**
|
---|
113 | * @param string[]
|
---|
114 | */
|
---|
115 | public function setAnnotations($annotations)
|
---|
116 | {
|
---|
117 | $this->annotations = $annotations;
|
---|
118 | }
|
---|
119 | /**
|
---|
120 | * @return string[]
|
---|
121 | */
|
---|
122 | public function getAnnotations()
|
---|
123 | {
|
---|
124 | return $this->annotations;
|
---|
125 | }
|
---|
126 | /**
|
---|
127 | * @param BuildArtifact[]
|
---|
128 | */
|
---|
129 | public function setBuildArtifacts($buildArtifacts)
|
---|
130 | {
|
---|
131 | $this->buildArtifacts = $buildArtifacts;
|
---|
132 | }
|
---|
133 | /**
|
---|
134 | * @return BuildArtifact[]
|
---|
135 | */
|
---|
136 | public function getBuildArtifacts()
|
---|
137 | {
|
---|
138 | return $this->buildArtifacts;
|
---|
139 | }
|
---|
140 | /**
|
---|
141 | * @param ReleaseCondition
|
---|
142 | */
|
---|
143 | public function setCondition(ReleaseCondition $condition)
|
---|
144 | {
|
---|
145 | $this->condition = $condition;
|
---|
146 | }
|
---|
147 | /**
|
---|
148 | * @return ReleaseCondition
|
---|
149 | */
|
---|
150 | public function getCondition()
|
---|
151 | {
|
---|
152 | return $this->condition;
|
---|
153 | }
|
---|
154 | /**
|
---|
155 | * @param string
|
---|
156 | */
|
---|
157 | public function setCreateTime($createTime)
|
---|
158 | {
|
---|
159 | $this->createTime = $createTime;
|
---|
160 | }
|
---|
161 | /**
|
---|
162 | * @return string
|
---|
163 | */
|
---|
164 | public function getCreateTime()
|
---|
165 | {
|
---|
166 | return $this->createTime;
|
---|
167 | }
|
---|
168 | /**
|
---|
169 | * @param CustomTargetType[]
|
---|
170 | */
|
---|
171 | public function setCustomTargetTypeSnapshots($customTargetTypeSnapshots)
|
---|
172 | {
|
---|
173 | $this->customTargetTypeSnapshots = $customTargetTypeSnapshots;
|
---|
174 | }
|
---|
175 | /**
|
---|
176 | * @return CustomTargetType[]
|
---|
177 | */
|
---|
178 | public function getCustomTargetTypeSnapshots()
|
---|
179 | {
|
---|
180 | return $this->customTargetTypeSnapshots;
|
---|
181 | }
|
---|
182 | /**
|
---|
183 | * @param DeliveryPipeline
|
---|
184 | */
|
---|
185 | public function setDeliveryPipelineSnapshot(DeliveryPipeline $deliveryPipelineSnapshot)
|
---|
186 | {
|
---|
187 | $this->deliveryPipelineSnapshot = $deliveryPipelineSnapshot;
|
---|
188 | }
|
---|
189 | /**
|
---|
190 | * @return DeliveryPipeline
|
---|
191 | */
|
---|
192 | public function getDeliveryPipelineSnapshot()
|
---|
193 | {
|
---|
194 | return $this->deliveryPipelineSnapshot;
|
---|
195 | }
|
---|
196 | /**
|
---|
197 | * @param string[]
|
---|
198 | */
|
---|
199 | public function setDeployParameters($deployParameters)
|
---|
200 | {
|
---|
201 | $this->deployParameters = $deployParameters;
|
---|
202 | }
|
---|
203 | /**
|
---|
204 | * @return string[]
|
---|
205 | */
|
---|
206 | public function getDeployParameters()
|
---|
207 | {
|
---|
208 | return $this->deployParameters;
|
---|
209 | }
|
---|
210 | /**
|
---|
211 | * @param string
|
---|
212 | */
|
---|
213 | public function setDescription($description)
|
---|
214 | {
|
---|
215 | $this->description = $description;
|
---|
216 | }
|
---|
217 | /**
|
---|
218 | * @return string
|
---|
219 | */
|
---|
220 | public function getDescription()
|
---|
221 | {
|
---|
222 | return $this->description;
|
---|
223 | }
|
---|
224 | /**
|
---|
225 | * @param string
|
---|
226 | */
|
---|
227 | public function setEtag($etag)
|
---|
228 | {
|
---|
229 | $this->etag = $etag;
|
---|
230 | }
|
---|
231 | /**
|
---|
232 | * @return string
|
---|
233 | */
|
---|
234 | public function getEtag()
|
---|
235 | {
|
---|
236 | return $this->etag;
|
---|
237 | }
|
---|
238 | /**
|
---|
239 | * @param string[]
|
---|
240 | */
|
---|
241 | public function setLabels($labels)
|
---|
242 | {
|
---|
243 | $this->labels = $labels;
|
---|
244 | }
|
---|
245 | /**
|
---|
246 | * @return string[]
|
---|
247 | */
|
---|
248 | public function getLabels()
|
---|
249 | {
|
---|
250 | return $this->labels;
|
---|
251 | }
|
---|
252 | /**
|
---|
253 | * @param string
|
---|
254 | */
|
---|
255 | public function setName($name)
|
---|
256 | {
|
---|
257 | $this->name = $name;
|
---|
258 | }
|
---|
259 | /**
|
---|
260 | * @return string
|
---|
261 | */
|
---|
262 | public function getName()
|
---|
263 | {
|
---|
264 | return $this->name;
|
---|
265 | }
|
---|
266 | /**
|
---|
267 | * @param string
|
---|
268 | */
|
---|
269 | public function setRenderEndTime($renderEndTime)
|
---|
270 | {
|
---|
271 | $this->renderEndTime = $renderEndTime;
|
---|
272 | }
|
---|
273 | /**
|
---|
274 | * @return string
|
---|
275 | */
|
---|
276 | public function getRenderEndTime()
|
---|
277 | {
|
---|
278 | return $this->renderEndTime;
|
---|
279 | }
|
---|
280 | /**
|
---|
281 | * @param string
|
---|
282 | */
|
---|
283 | public function setRenderStartTime($renderStartTime)
|
---|
284 | {
|
---|
285 | $this->renderStartTime = $renderStartTime;
|
---|
286 | }
|
---|
287 | /**
|
---|
288 | * @return string
|
---|
289 | */
|
---|
290 | public function getRenderStartTime()
|
---|
291 | {
|
---|
292 | return $this->renderStartTime;
|
---|
293 | }
|
---|
294 | /**
|
---|
295 | * @param string
|
---|
296 | */
|
---|
297 | public function setRenderState($renderState)
|
---|
298 | {
|
---|
299 | $this->renderState = $renderState;
|
---|
300 | }
|
---|
301 | /**
|
---|
302 | * @return string
|
---|
303 | */
|
---|
304 | public function getRenderState()
|
---|
305 | {
|
---|
306 | return $this->renderState;
|
---|
307 | }
|
---|
308 | /**
|
---|
309 | * @param string
|
---|
310 | */
|
---|
311 | public function setSkaffoldConfigPath($skaffoldConfigPath)
|
---|
312 | {
|
---|
313 | $this->skaffoldConfigPath = $skaffoldConfigPath;
|
---|
314 | }
|
---|
315 | /**
|
---|
316 | * @return string
|
---|
317 | */
|
---|
318 | public function getSkaffoldConfigPath()
|
---|
319 | {
|
---|
320 | return $this->skaffoldConfigPath;
|
---|
321 | }
|
---|
322 | /**
|
---|
323 | * @param string
|
---|
324 | */
|
---|
325 | public function setSkaffoldConfigUri($skaffoldConfigUri)
|
---|
326 | {
|
---|
327 | $this->skaffoldConfigUri = $skaffoldConfigUri;
|
---|
328 | }
|
---|
329 | /**
|
---|
330 | * @return string
|
---|
331 | */
|
---|
332 | public function getSkaffoldConfigUri()
|
---|
333 | {
|
---|
334 | return $this->skaffoldConfigUri;
|
---|
335 | }
|
---|
336 | /**
|
---|
337 | * @param string
|
---|
338 | */
|
---|
339 | public function setSkaffoldVersion($skaffoldVersion)
|
---|
340 | {
|
---|
341 | $this->skaffoldVersion = $skaffoldVersion;
|
---|
342 | }
|
---|
343 | /**
|
---|
344 | * @return string
|
---|
345 | */
|
---|
346 | public function getSkaffoldVersion()
|
---|
347 | {
|
---|
348 | return $this->skaffoldVersion;
|
---|
349 | }
|
---|
350 | /**
|
---|
351 | * @param TargetArtifact[]
|
---|
352 | */
|
---|
353 | public function setTargetArtifacts($targetArtifacts)
|
---|
354 | {
|
---|
355 | $this->targetArtifacts = $targetArtifacts;
|
---|
356 | }
|
---|
357 | /**
|
---|
358 | * @return TargetArtifact[]
|
---|
359 | */
|
---|
360 | public function getTargetArtifacts()
|
---|
361 | {
|
---|
362 | return $this->targetArtifacts;
|
---|
363 | }
|
---|
364 | /**
|
---|
365 | * @param TargetRender[]
|
---|
366 | */
|
---|
367 | public function setTargetRenders($targetRenders)
|
---|
368 | {
|
---|
369 | $this->targetRenders = $targetRenders;
|
---|
370 | }
|
---|
371 | /**
|
---|
372 | * @return TargetRender[]
|
---|
373 | */
|
---|
374 | public function getTargetRenders()
|
---|
375 | {
|
---|
376 | return $this->targetRenders;
|
---|
377 | }
|
---|
378 | /**
|
---|
379 | * @param Target[]
|
---|
380 | */
|
---|
381 | public function setTargetSnapshots($targetSnapshots)
|
---|
382 | {
|
---|
383 | $this->targetSnapshots = $targetSnapshots;
|
---|
384 | }
|
---|
385 | /**
|
---|
386 | * @return Target[]
|
---|
387 | */
|
---|
388 | public function getTargetSnapshots()
|
---|
389 | {
|
---|
390 | return $this->targetSnapshots;
|
---|
391 | }
|
---|
392 | /**
|
---|
393 | * @param string
|
---|
394 | */
|
---|
395 | public function setUid($uid)
|
---|
396 | {
|
---|
397 | $this->uid = $uid;
|
---|
398 | }
|
---|
399 | /**
|
---|
400 | * @return string
|
---|
401 | */
|
---|
402 | public function getUid()
|
---|
403 | {
|
---|
404 | return $this->uid;
|
---|
405 | }
|
---|
406 | }
|
---|
407 |
|
---|
408 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
409 | class_alias(Release::class, 'Google_Service_CloudDeploy_Release');
|
---|