[e3d4e0a] | 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\ContainerAnalysis;
|
---|
| 19 |
|
---|
| 20 | class BuildStep extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'waitFor';
|
---|
| 23 | /**
|
---|
| 24 | * @var int[]
|
---|
| 25 | */
|
---|
| 26 | public $allowExitCodes;
|
---|
| 27 | /**
|
---|
| 28 | * @var bool
|
---|
| 29 | */
|
---|
| 30 | public $allowFailure;
|
---|
| 31 | /**
|
---|
| 32 | * @var string[]
|
---|
| 33 | */
|
---|
| 34 | public $args;
|
---|
| 35 | /**
|
---|
| 36 | * @var bool
|
---|
| 37 | */
|
---|
| 38 | public $automapSubstitutions;
|
---|
| 39 | /**
|
---|
| 40 | * @var string
|
---|
| 41 | */
|
---|
| 42 | public $dir;
|
---|
| 43 | /**
|
---|
| 44 | * @var string
|
---|
| 45 | */
|
---|
| 46 | public $entrypoint;
|
---|
| 47 | /**
|
---|
| 48 | * @var string[]
|
---|
| 49 | */
|
---|
| 50 | public $env;
|
---|
| 51 | /**
|
---|
| 52 | * @var int
|
---|
| 53 | */
|
---|
| 54 | public $exitCode;
|
---|
| 55 | /**
|
---|
| 56 | * @var string
|
---|
| 57 | */
|
---|
| 58 | public $id;
|
---|
| 59 | /**
|
---|
| 60 | * @var string
|
---|
| 61 | */
|
---|
| 62 | public $name;
|
---|
| 63 | protected $pullTimingType = TimeSpan::class;
|
---|
| 64 | protected $pullTimingDataType = '';
|
---|
| 65 | /**
|
---|
| 66 | * @var string
|
---|
| 67 | */
|
---|
| 68 | public $script;
|
---|
| 69 | /**
|
---|
| 70 | * @var string[]
|
---|
| 71 | */
|
---|
| 72 | public $secretEnv;
|
---|
| 73 | /**
|
---|
| 74 | * @var string
|
---|
| 75 | */
|
---|
| 76 | public $status;
|
---|
| 77 | /**
|
---|
| 78 | * @var string
|
---|
| 79 | */
|
---|
| 80 | public $timeout;
|
---|
| 81 | protected $timingType = TimeSpan::class;
|
---|
| 82 | protected $timingDataType = '';
|
---|
| 83 | protected $volumesType = Volume::class;
|
---|
| 84 | protected $volumesDataType = 'array';
|
---|
| 85 | /**
|
---|
| 86 | * @var string[]
|
---|
| 87 | */
|
---|
| 88 | public $waitFor;
|
---|
| 89 |
|
---|
| 90 | /**
|
---|
| 91 | * @param int[]
|
---|
| 92 | */
|
---|
| 93 | public function setAllowExitCodes($allowExitCodes)
|
---|
| 94 | {
|
---|
| 95 | $this->allowExitCodes = $allowExitCodes;
|
---|
| 96 | }
|
---|
| 97 | /**
|
---|
| 98 | * @return int[]
|
---|
| 99 | */
|
---|
| 100 | public function getAllowExitCodes()
|
---|
| 101 | {
|
---|
| 102 | return $this->allowExitCodes;
|
---|
| 103 | }
|
---|
| 104 | /**
|
---|
| 105 | * @param bool
|
---|
| 106 | */
|
---|
| 107 | public function setAllowFailure($allowFailure)
|
---|
| 108 | {
|
---|
| 109 | $this->allowFailure = $allowFailure;
|
---|
| 110 | }
|
---|
| 111 | /**
|
---|
| 112 | * @return bool
|
---|
| 113 | */
|
---|
| 114 | public function getAllowFailure()
|
---|
| 115 | {
|
---|
| 116 | return $this->allowFailure;
|
---|
| 117 | }
|
---|
| 118 | /**
|
---|
| 119 | * @param string[]
|
---|
| 120 | */
|
---|
| 121 | public function setArgs($args)
|
---|
| 122 | {
|
---|
| 123 | $this->args = $args;
|
---|
| 124 | }
|
---|
| 125 | /**
|
---|
| 126 | * @return string[]
|
---|
| 127 | */
|
---|
| 128 | public function getArgs()
|
---|
| 129 | {
|
---|
| 130 | return $this->args;
|
---|
| 131 | }
|
---|
| 132 | /**
|
---|
| 133 | * @param bool
|
---|
| 134 | */
|
---|
| 135 | public function setAutomapSubstitutions($automapSubstitutions)
|
---|
| 136 | {
|
---|
| 137 | $this->automapSubstitutions = $automapSubstitutions;
|
---|
| 138 | }
|
---|
| 139 | /**
|
---|
| 140 | * @return bool
|
---|
| 141 | */
|
---|
| 142 | public function getAutomapSubstitutions()
|
---|
| 143 | {
|
---|
| 144 | return $this->automapSubstitutions;
|
---|
| 145 | }
|
---|
| 146 | /**
|
---|
| 147 | * @param string
|
---|
| 148 | */
|
---|
| 149 | public function setDir($dir)
|
---|
| 150 | {
|
---|
| 151 | $this->dir = $dir;
|
---|
| 152 | }
|
---|
| 153 | /**
|
---|
| 154 | * @return string
|
---|
| 155 | */
|
---|
| 156 | public function getDir()
|
---|
| 157 | {
|
---|
| 158 | return $this->dir;
|
---|
| 159 | }
|
---|
| 160 | /**
|
---|
| 161 | * @param string
|
---|
| 162 | */
|
---|
| 163 | public function setEntrypoint($entrypoint)
|
---|
| 164 | {
|
---|
| 165 | $this->entrypoint = $entrypoint;
|
---|
| 166 | }
|
---|
| 167 | /**
|
---|
| 168 | * @return string
|
---|
| 169 | */
|
---|
| 170 | public function getEntrypoint()
|
---|
| 171 | {
|
---|
| 172 | return $this->entrypoint;
|
---|
| 173 | }
|
---|
| 174 | /**
|
---|
| 175 | * @param string[]
|
---|
| 176 | */
|
---|
| 177 | public function setEnv($env)
|
---|
| 178 | {
|
---|
| 179 | $this->env = $env;
|
---|
| 180 | }
|
---|
| 181 | /**
|
---|
| 182 | * @return string[]
|
---|
| 183 | */
|
---|
| 184 | public function getEnv()
|
---|
| 185 | {
|
---|
| 186 | return $this->env;
|
---|
| 187 | }
|
---|
| 188 | /**
|
---|
| 189 | * @param int
|
---|
| 190 | */
|
---|
| 191 | public function setExitCode($exitCode)
|
---|
| 192 | {
|
---|
| 193 | $this->exitCode = $exitCode;
|
---|
| 194 | }
|
---|
| 195 | /**
|
---|
| 196 | * @return int
|
---|
| 197 | */
|
---|
| 198 | public function getExitCode()
|
---|
| 199 | {
|
---|
| 200 | return $this->exitCode;
|
---|
| 201 | }
|
---|
| 202 | /**
|
---|
| 203 | * @param string
|
---|
| 204 | */
|
---|
| 205 | public function setId($id)
|
---|
| 206 | {
|
---|
| 207 | $this->id = $id;
|
---|
| 208 | }
|
---|
| 209 | /**
|
---|
| 210 | * @return string
|
---|
| 211 | */
|
---|
| 212 | public function getId()
|
---|
| 213 | {
|
---|
| 214 | return $this->id;
|
---|
| 215 | }
|
---|
| 216 | /**
|
---|
| 217 | * @param string
|
---|
| 218 | */
|
---|
| 219 | public function setName($name)
|
---|
| 220 | {
|
---|
| 221 | $this->name = $name;
|
---|
| 222 | }
|
---|
| 223 | /**
|
---|
| 224 | * @return string
|
---|
| 225 | */
|
---|
| 226 | public function getName()
|
---|
| 227 | {
|
---|
| 228 | return $this->name;
|
---|
| 229 | }
|
---|
| 230 | /**
|
---|
| 231 | * @param TimeSpan
|
---|
| 232 | */
|
---|
| 233 | public function setPullTiming(TimeSpan $pullTiming)
|
---|
| 234 | {
|
---|
| 235 | $this->pullTiming = $pullTiming;
|
---|
| 236 | }
|
---|
| 237 | /**
|
---|
| 238 | * @return TimeSpan
|
---|
| 239 | */
|
---|
| 240 | public function getPullTiming()
|
---|
| 241 | {
|
---|
| 242 | return $this->pullTiming;
|
---|
| 243 | }
|
---|
| 244 | /**
|
---|
| 245 | * @param string
|
---|
| 246 | */
|
---|
| 247 | public function setScript($script)
|
---|
| 248 | {
|
---|
| 249 | $this->script = $script;
|
---|
| 250 | }
|
---|
| 251 | /**
|
---|
| 252 | * @return string
|
---|
| 253 | */
|
---|
| 254 | public function getScript()
|
---|
| 255 | {
|
---|
| 256 | return $this->script;
|
---|
| 257 | }
|
---|
| 258 | /**
|
---|
| 259 | * @param string[]
|
---|
| 260 | */
|
---|
| 261 | public function setSecretEnv($secretEnv)
|
---|
| 262 | {
|
---|
| 263 | $this->secretEnv = $secretEnv;
|
---|
| 264 | }
|
---|
| 265 | /**
|
---|
| 266 | * @return string[]
|
---|
| 267 | */
|
---|
| 268 | public function getSecretEnv()
|
---|
| 269 | {
|
---|
| 270 | return $this->secretEnv;
|
---|
| 271 | }
|
---|
| 272 | /**
|
---|
| 273 | * @param string
|
---|
| 274 | */
|
---|
| 275 | public function setStatus($status)
|
---|
| 276 | {
|
---|
| 277 | $this->status = $status;
|
---|
| 278 | }
|
---|
| 279 | /**
|
---|
| 280 | * @return string
|
---|
| 281 | */
|
---|
| 282 | public function getStatus()
|
---|
| 283 | {
|
---|
| 284 | return $this->status;
|
---|
| 285 | }
|
---|
| 286 | /**
|
---|
| 287 | * @param string
|
---|
| 288 | */
|
---|
| 289 | public function setTimeout($timeout)
|
---|
| 290 | {
|
---|
| 291 | $this->timeout = $timeout;
|
---|
| 292 | }
|
---|
| 293 | /**
|
---|
| 294 | * @return string
|
---|
| 295 | */
|
---|
| 296 | public function getTimeout()
|
---|
| 297 | {
|
---|
| 298 | return $this->timeout;
|
---|
| 299 | }
|
---|
| 300 | /**
|
---|
| 301 | * @param TimeSpan
|
---|
| 302 | */
|
---|
| 303 | public function setTiming(TimeSpan $timing)
|
---|
| 304 | {
|
---|
| 305 | $this->timing = $timing;
|
---|
| 306 | }
|
---|
| 307 | /**
|
---|
| 308 | * @return TimeSpan
|
---|
| 309 | */
|
---|
| 310 | public function getTiming()
|
---|
| 311 | {
|
---|
| 312 | return $this->timing;
|
---|
| 313 | }
|
---|
| 314 | /**
|
---|
| 315 | * @param Volume[]
|
---|
| 316 | */
|
---|
| 317 | public function setVolumes($volumes)
|
---|
| 318 | {
|
---|
| 319 | $this->volumes = $volumes;
|
---|
| 320 | }
|
---|
| 321 | /**
|
---|
| 322 | * @return Volume[]
|
---|
| 323 | */
|
---|
| 324 | public function getVolumes()
|
---|
| 325 | {
|
---|
| 326 | return $this->volumes;
|
---|
| 327 | }
|
---|
| 328 | /**
|
---|
| 329 | * @param string[]
|
---|
| 330 | */
|
---|
| 331 | public function setWaitFor($waitFor)
|
---|
| 332 | {
|
---|
| 333 | $this->waitFor = $waitFor;
|
---|
| 334 | }
|
---|
| 335 | /**
|
---|
| 336 | * @return string[]
|
---|
| 337 | */
|
---|
| 338 | public function getWaitFor()
|
---|
| 339 | {
|
---|
| 340 | return $this->waitFor;
|
---|
| 341 | }
|
---|
| 342 | }
|
---|
| 343 |
|
---|
| 344 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 345 | class_alias(BuildStep::class, 'Google_Service_ContainerAnalysis_BuildStep');
|
---|