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