[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\Compute;
|
---|
| 19 |
|
---|
| 20 | class InstanceGroupManager extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'versions';
|
---|
| 23 | protected $allInstancesConfigType = InstanceGroupManagerAllInstancesConfig::class;
|
---|
| 24 | protected $allInstancesConfigDataType = '';
|
---|
| 25 | protected $autoHealingPoliciesType = InstanceGroupManagerAutoHealingPolicy::class;
|
---|
| 26 | protected $autoHealingPoliciesDataType = 'array';
|
---|
| 27 | /**
|
---|
| 28 | * @var string
|
---|
| 29 | */
|
---|
| 30 | public $baseInstanceName;
|
---|
| 31 | /**
|
---|
| 32 | * @var string
|
---|
| 33 | */
|
---|
| 34 | public $creationTimestamp;
|
---|
| 35 | protected $currentActionsType = InstanceGroupManagerActionsSummary::class;
|
---|
| 36 | protected $currentActionsDataType = '';
|
---|
| 37 | /**
|
---|
| 38 | * @var string
|
---|
| 39 | */
|
---|
| 40 | public $description;
|
---|
| 41 | protected $distributionPolicyType = DistributionPolicy::class;
|
---|
| 42 | protected $distributionPolicyDataType = '';
|
---|
| 43 | /**
|
---|
| 44 | * @var string
|
---|
| 45 | */
|
---|
| 46 | public $fingerprint;
|
---|
| 47 | /**
|
---|
| 48 | * @var string
|
---|
| 49 | */
|
---|
| 50 | public $id;
|
---|
| 51 | protected $instanceFlexibilityPolicyType = InstanceGroupManagerInstanceFlexibilityPolicy::class;
|
---|
| 52 | protected $instanceFlexibilityPolicyDataType = '';
|
---|
| 53 | /**
|
---|
| 54 | * @var string
|
---|
| 55 | */
|
---|
| 56 | public $instanceGroup;
|
---|
| 57 | protected $instanceLifecyclePolicyType = InstanceGroupManagerInstanceLifecyclePolicy::class;
|
---|
| 58 | protected $instanceLifecyclePolicyDataType = '';
|
---|
| 59 | /**
|
---|
| 60 | * @var string
|
---|
| 61 | */
|
---|
| 62 | public $instanceTemplate;
|
---|
| 63 | /**
|
---|
| 64 | * @var string
|
---|
| 65 | */
|
---|
| 66 | public $kind;
|
---|
| 67 | /**
|
---|
| 68 | * @var string
|
---|
| 69 | */
|
---|
| 70 | public $listManagedInstancesResults;
|
---|
| 71 | /**
|
---|
| 72 | * @var string
|
---|
| 73 | */
|
---|
| 74 | public $name;
|
---|
| 75 | protected $namedPortsType = NamedPort::class;
|
---|
| 76 | protected $namedPortsDataType = 'array';
|
---|
| 77 | /**
|
---|
| 78 | * @var string
|
---|
| 79 | */
|
---|
| 80 | public $region;
|
---|
| 81 | /**
|
---|
| 82 | * @var bool
|
---|
| 83 | */
|
---|
| 84 | public $satisfiesPzi;
|
---|
| 85 | /**
|
---|
| 86 | * @var bool
|
---|
| 87 | */
|
---|
| 88 | public $satisfiesPzs;
|
---|
| 89 | /**
|
---|
| 90 | * @var string
|
---|
| 91 | */
|
---|
| 92 | public $selfLink;
|
---|
| 93 | protected $statefulPolicyType = StatefulPolicy::class;
|
---|
| 94 | protected $statefulPolicyDataType = '';
|
---|
| 95 | protected $statusType = InstanceGroupManagerStatus::class;
|
---|
| 96 | protected $statusDataType = '';
|
---|
| 97 | /**
|
---|
| 98 | * @var string[]
|
---|
| 99 | */
|
---|
| 100 | public $targetPools;
|
---|
| 101 | /**
|
---|
| 102 | * @var int
|
---|
| 103 | */
|
---|
| 104 | public $targetSize;
|
---|
| 105 | protected $updatePolicyType = InstanceGroupManagerUpdatePolicy::class;
|
---|
| 106 | protected $updatePolicyDataType = '';
|
---|
| 107 | protected $versionsType = InstanceGroupManagerVersion::class;
|
---|
| 108 | protected $versionsDataType = 'array';
|
---|
| 109 | /**
|
---|
| 110 | * @var string
|
---|
| 111 | */
|
---|
| 112 | public $zone;
|
---|
| 113 |
|
---|
| 114 | /**
|
---|
| 115 | * @param InstanceGroupManagerAllInstancesConfig
|
---|
| 116 | */
|
---|
| 117 | public function setAllInstancesConfig(InstanceGroupManagerAllInstancesConfig $allInstancesConfig)
|
---|
| 118 | {
|
---|
| 119 | $this->allInstancesConfig = $allInstancesConfig;
|
---|
| 120 | }
|
---|
| 121 | /**
|
---|
| 122 | * @return InstanceGroupManagerAllInstancesConfig
|
---|
| 123 | */
|
---|
| 124 | public function getAllInstancesConfig()
|
---|
| 125 | {
|
---|
| 126 | return $this->allInstancesConfig;
|
---|
| 127 | }
|
---|
| 128 | /**
|
---|
| 129 | * @param InstanceGroupManagerAutoHealingPolicy[]
|
---|
| 130 | */
|
---|
| 131 | public function setAutoHealingPolicies($autoHealingPolicies)
|
---|
| 132 | {
|
---|
| 133 | $this->autoHealingPolicies = $autoHealingPolicies;
|
---|
| 134 | }
|
---|
| 135 | /**
|
---|
| 136 | * @return InstanceGroupManagerAutoHealingPolicy[]
|
---|
| 137 | */
|
---|
| 138 | public function getAutoHealingPolicies()
|
---|
| 139 | {
|
---|
| 140 | return $this->autoHealingPolicies;
|
---|
| 141 | }
|
---|
| 142 | /**
|
---|
| 143 | * @param string
|
---|
| 144 | */
|
---|
| 145 | public function setBaseInstanceName($baseInstanceName)
|
---|
| 146 | {
|
---|
| 147 | $this->baseInstanceName = $baseInstanceName;
|
---|
| 148 | }
|
---|
| 149 | /**
|
---|
| 150 | * @return string
|
---|
| 151 | */
|
---|
| 152 | public function getBaseInstanceName()
|
---|
| 153 | {
|
---|
| 154 | return $this->baseInstanceName;
|
---|
| 155 | }
|
---|
| 156 | /**
|
---|
| 157 | * @param string
|
---|
| 158 | */
|
---|
| 159 | public function setCreationTimestamp($creationTimestamp)
|
---|
| 160 | {
|
---|
| 161 | $this->creationTimestamp = $creationTimestamp;
|
---|
| 162 | }
|
---|
| 163 | /**
|
---|
| 164 | * @return string
|
---|
| 165 | */
|
---|
| 166 | public function getCreationTimestamp()
|
---|
| 167 | {
|
---|
| 168 | return $this->creationTimestamp;
|
---|
| 169 | }
|
---|
| 170 | /**
|
---|
| 171 | * @param InstanceGroupManagerActionsSummary
|
---|
| 172 | */
|
---|
| 173 | public function setCurrentActions(InstanceGroupManagerActionsSummary $currentActions)
|
---|
| 174 | {
|
---|
| 175 | $this->currentActions = $currentActions;
|
---|
| 176 | }
|
---|
| 177 | /**
|
---|
| 178 | * @return InstanceGroupManagerActionsSummary
|
---|
| 179 | */
|
---|
| 180 | public function getCurrentActions()
|
---|
| 181 | {
|
---|
| 182 | return $this->currentActions;
|
---|
| 183 | }
|
---|
| 184 | /**
|
---|
| 185 | * @param string
|
---|
| 186 | */
|
---|
| 187 | public function setDescription($description)
|
---|
| 188 | {
|
---|
| 189 | $this->description = $description;
|
---|
| 190 | }
|
---|
| 191 | /**
|
---|
| 192 | * @return string
|
---|
| 193 | */
|
---|
| 194 | public function getDescription()
|
---|
| 195 | {
|
---|
| 196 | return $this->description;
|
---|
| 197 | }
|
---|
| 198 | /**
|
---|
| 199 | * @param DistributionPolicy
|
---|
| 200 | */
|
---|
| 201 | public function setDistributionPolicy(DistributionPolicy $distributionPolicy)
|
---|
| 202 | {
|
---|
| 203 | $this->distributionPolicy = $distributionPolicy;
|
---|
| 204 | }
|
---|
| 205 | /**
|
---|
| 206 | * @return DistributionPolicy
|
---|
| 207 | */
|
---|
| 208 | public function getDistributionPolicy()
|
---|
| 209 | {
|
---|
| 210 | return $this->distributionPolicy;
|
---|
| 211 | }
|
---|
| 212 | /**
|
---|
| 213 | * @param string
|
---|
| 214 | */
|
---|
| 215 | public function setFingerprint($fingerprint)
|
---|
| 216 | {
|
---|
| 217 | $this->fingerprint = $fingerprint;
|
---|
| 218 | }
|
---|
| 219 | /**
|
---|
| 220 | * @return string
|
---|
| 221 | */
|
---|
| 222 | public function getFingerprint()
|
---|
| 223 | {
|
---|
| 224 | return $this->fingerprint;
|
---|
| 225 | }
|
---|
| 226 | /**
|
---|
| 227 | * @param string
|
---|
| 228 | */
|
---|
| 229 | public function setId($id)
|
---|
| 230 | {
|
---|
| 231 | $this->id = $id;
|
---|
| 232 | }
|
---|
| 233 | /**
|
---|
| 234 | * @return string
|
---|
| 235 | */
|
---|
| 236 | public function getId()
|
---|
| 237 | {
|
---|
| 238 | return $this->id;
|
---|
| 239 | }
|
---|
| 240 | /**
|
---|
| 241 | * @param InstanceGroupManagerInstanceFlexibilityPolicy
|
---|
| 242 | */
|
---|
| 243 | public function setInstanceFlexibilityPolicy(InstanceGroupManagerInstanceFlexibilityPolicy $instanceFlexibilityPolicy)
|
---|
| 244 | {
|
---|
| 245 | $this->instanceFlexibilityPolicy = $instanceFlexibilityPolicy;
|
---|
| 246 | }
|
---|
| 247 | /**
|
---|
| 248 | * @return InstanceGroupManagerInstanceFlexibilityPolicy
|
---|
| 249 | */
|
---|
| 250 | public function getInstanceFlexibilityPolicy()
|
---|
| 251 | {
|
---|
| 252 | return $this->instanceFlexibilityPolicy;
|
---|
| 253 | }
|
---|
| 254 | /**
|
---|
| 255 | * @param string
|
---|
| 256 | */
|
---|
| 257 | public function setInstanceGroup($instanceGroup)
|
---|
| 258 | {
|
---|
| 259 | $this->instanceGroup = $instanceGroup;
|
---|
| 260 | }
|
---|
| 261 | /**
|
---|
| 262 | * @return string
|
---|
| 263 | */
|
---|
| 264 | public function getInstanceGroup()
|
---|
| 265 | {
|
---|
| 266 | return $this->instanceGroup;
|
---|
| 267 | }
|
---|
| 268 | /**
|
---|
| 269 | * @param InstanceGroupManagerInstanceLifecyclePolicy
|
---|
| 270 | */
|
---|
| 271 | public function setInstanceLifecyclePolicy(InstanceGroupManagerInstanceLifecyclePolicy $instanceLifecyclePolicy)
|
---|
| 272 | {
|
---|
| 273 | $this->instanceLifecyclePolicy = $instanceLifecyclePolicy;
|
---|
| 274 | }
|
---|
| 275 | /**
|
---|
| 276 | * @return InstanceGroupManagerInstanceLifecyclePolicy
|
---|
| 277 | */
|
---|
| 278 | public function getInstanceLifecyclePolicy()
|
---|
| 279 | {
|
---|
| 280 | return $this->instanceLifecyclePolicy;
|
---|
| 281 | }
|
---|
| 282 | /**
|
---|
| 283 | * @param string
|
---|
| 284 | */
|
---|
| 285 | public function setInstanceTemplate($instanceTemplate)
|
---|
| 286 | {
|
---|
| 287 | $this->instanceTemplate = $instanceTemplate;
|
---|
| 288 | }
|
---|
| 289 | /**
|
---|
| 290 | * @return string
|
---|
| 291 | */
|
---|
| 292 | public function getInstanceTemplate()
|
---|
| 293 | {
|
---|
| 294 | return $this->instanceTemplate;
|
---|
| 295 | }
|
---|
| 296 | /**
|
---|
| 297 | * @param string
|
---|
| 298 | */
|
---|
| 299 | public function setKind($kind)
|
---|
| 300 | {
|
---|
| 301 | $this->kind = $kind;
|
---|
| 302 | }
|
---|
| 303 | /**
|
---|
| 304 | * @return string
|
---|
| 305 | */
|
---|
| 306 | public function getKind()
|
---|
| 307 | {
|
---|
| 308 | return $this->kind;
|
---|
| 309 | }
|
---|
| 310 | /**
|
---|
| 311 | * @param string
|
---|
| 312 | */
|
---|
| 313 | public function setListManagedInstancesResults($listManagedInstancesResults)
|
---|
| 314 | {
|
---|
| 315 | $this->listManagedInstancesResults = $listManagedInstancesResults;
|
---|
| 316 | }
|
---|
| 317 | /**
|
---|
| 318 | * @return string
|
---|
| 319 | */
|
---|
| 320 | public function getListManagedInstancesResults()
|
---|
| 321 | {
|
---|
| 322 | return $this->listManagedInstancesResults;
|
---|
| 323 | }
|
---|
| 324 | /**
|
---|
| 325 | * @param string
|
---|
| 326 | */
|
---|
| 327 | public function setName($name)
|
---|
| 328 | {
|
---|
| 329 | $this->name = $name;
|
---|
| 330 | }
|
---|
| 331 | /**
|
---|
| 332 | * @return string
|
---|
| 333 | */
|
---|
| 334 | public function getName()
|
---|
| 335 | {
|
---|
| 336 | return $this->name;
|
---|
| 337 | }
|
---|
| 338 | /**
|
---|
| 339 | * @param NamedPort[]
|
---|
| 340 | */
|
---|
| 341 | public function setNamedPorts($namedPorts)
|
---|
| 342 | {
|
---|
| 343 | $this->namedPorts = $namedPorts;
|
---|
| 344 | }
|
---|
| 345 | /**
|
---|
| 346 | * @return NamedPort[]
|
---|
| 347 | */
|
---|
| 348 | public function getNamedPorts()
|
---|
| 349 | {
|
---|
| 350 | return $this->namedPorts;
|
---|
| 351 | }
|
---|
| 352 | /**
|
---|
| 353 | * @param string
|
---|
| 354 | */
|
---|
| 355 | public function setRegion($region)
|
---|
| 356 | {
|
---|
| 357 | $this->region = $region;
|
---|
| 358 | }
|
---|
| 359 | /**
|
---|
| 360 | * @return string
|
---|
| 361 | */
|
---|
| 362 | public function getRegion()
|
---|
| 363 | {
|
---|
| 364 | return $this->region;
|
---|
| 365 | }
|
---|
| 366 | /**
|
---|
| 367 | * @param bool
|
---|
| 368 | */
|
---|
| 369 | public function setSatisfiesPzi($satisfiesPzi)
|
---|
| 370 | {
|
---|
| 371 | $this->satisfiesPzi = $satisfiesPzi;
|
---|
| 372 | }
|
---|
| 373 | /**
|
---|
| 374 | * @return bool
|
---|
| 375 | */
|
---|
| 376 | public function getSatisfiesPzi()
|
---|
| 377 | {
|
---|
| 378 | return $this->satisfiesPzi;
|
---|
| 379 | }
|
---|
| 380 | /**
|
---|
| 381 | * @param bool
|
---|
| 382 | */
|
---|
| 383 | public function setSatisfiesPzs($satisfiesPzs)
|
---|
| 384 | {
|
---|
| 385 | $this->satisfiesPzs = $satisfiesPzs;
|
---|
| 386 | }
|
---|
| 387 | /**
|
---|
| 388 | * @return bool
|
---|
| 389 | */
|
---|
| 390 | public function getSatisfiesPzs()
|
---|
| 391 | {
|
---|
| 392 | return $this->satisfiesPzs;
|
---|
| 393 | }
|
---|
| 394 | /**
|
---|
| 395 | * @param string
|
---|
| 396 | */
|
---|
| 397 | public function setSelfLink($selfLink)
|
---|
| 398 | {
|
---|
| 399 | $this->selfLink = $selfLink;
|
---|
| 400 | }
|
---|
| 401 | /**
|
---|
| 402 | * @return string
|
---|
| 403 | */
|
---|
| 404 | public function getSelfLink()
|
---|
| 405 | {
|
---|
| 406 | return $this->selfLink;
|
---|
| 407 | }
|
---|
| 408 | /**
|
---|
| 409 | * @param StatefulPolicy
|
---|
| 410 | */
|
---|
| 411 | public function setStatefulPolicy(StatefulPolicy $statefulPolicy)
|
---|
| 412 | {
|
---|
| 413 | $this->statefulPolicy = $statefulPolicy;
|
---|
| 414 | }
|
---|
| 415 | /**
|
---|
| 416 | * @return StatefulPolicy
|
---|
| 417 | */
|
---|
| 418 | public function getStatefulPolicy()
|
---|
| 419 | {
|
---|
| 420 | return $this->statefulPolicy;
|
---|
| 421 | }
|
---|
| 422 | /**
|
---|
| 423 | * @param InstanceGroupManagerStatus
|
---|
| 424 | */
|
---|
| 425 | public function setStatus(InstanceGroupManagerStatus $status)
|
---|
| 426 | {
|
---|
| 427 | $this->status = $status;
|
---|
| 428 | }
|
---|
| 429 | /**
|
---|
| 430 | * @return InstanceGroupManagerStatus
|
---|
| 431 | */
|
---|
| 432 | public function getStatus()
|
---|
| 433 | {
|
---|
| 434 | return $this->status;
|
---|
| 435 | }
|
---|
| 436 | /**
|
---|
| 437 | * @param string[]
|
---|
| 438 | */
|
---|
| 439 | public function setTargetPools($targetPools)
|
---|
| 440 | {
|
---|
| 441 | $this->targetPools = $targetPools;
|
---|
| 442 | }
|
---|
| 443 | /**
|
---|
| 444 | * @return string[]
|
---|
| 445 | */
|
---|
| 446 | public function getTargetPools()
|
---|
| 447 | {
|
---|
| 448 | return $this->targetPools;
|
---|
| 449 | }
|
---|
| 450 | /**
|
---|
| 451 | * @param int
|
---|
| 452 | */
|
---|
| 453 | public function setTargetSize($targetSize)
|
---|
| 454 | {
|
---|
| 455 | $this->targetSize = $targetSize;
|
---|
| 456 | }
|
---|
| 457 | /**
|
---|
| 458 | * @return int
|
---|
| 459 | */
|
---|
| 460 | public function getTargetSize()
|
---|
| 461 | {
|
---|
| 462 | return $this->targetSize;
|
---|
| 463 | }
|
---|
| 464 | /**
|
---|
| 465 | * @param InstanceGroupManagerUpdatePolicy
|
---|
| 466 | */
|
---|
| 467 | public function setUpdatePolicy(InstanceGroupManagerUpdatePolicy $updatePolicy)
|
---|
| 468 | {
|
---|
| 469 | $this->updatePolicy = $updatePolicy;
|
---|
| 470 | }
|
---|
| 471 | /**
|
---|
| 472 | * @return InstanceGroupManagerUpdatePolicy
|
---|
| 473 | */
|
---|
| 474 | public function getUpdatePolicy()
|
---|
| 475 | {
|
---|
| 476 | return $this->updatePolicy;
|
---|
| 477 | }
|
---|
| 478 | /**
|
---|
| 479 | * @param InstanceGroupManagerVersion[]
|
---|
| 480 | */
|
---|
| 481 | public function setVersions($versions)
|
---|
| 482 | {
|
---|
| 483 | $this->versions = $versions;
|
---|
| 484 | }
|
---|
| 485 | /**
|
---|
| 486 | * @return InstanceGroupManagerVersion[]
|
---|
| 487 | */
|
---|
| 488 | public function getVersions()
|
---|
| 489 | {
|
---|
| 490 | return $this->versions;
|
---|
| 491 | }
|
---|
| 492 | /**
|
---|
| 493 | * @param string
|
---|
| 494 | */
|
---|
| 495 | public function setZone($zone)
|
---|
| 496 | {
|
---|
| 497 | $this->zone = $zone;
|
---|
| 498 | }
|
---|
| 499 | /**
|
---|
| 500 | * @return string
|
---|
| 501 | */
|
---|
| 502 | public function getZone()
|
---|
| 503 | {
|
---|
| 504 | return $this->zone;
|
---|
| 505 | }
|
---|
| 506 | }
|
---|
| 507 |
|
---|
| 508 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 509 | class_alias(InstanceGroupManager::class, 'Google_Service_Compute_InstanceGroupManager');
|
---|