InstanceGroupManagersSuspendInstancesRequest.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. namespace Google\Service\Compute;
  18. class InstanceGroupManagersSuspendInstancesRequest extends \Google\Collection
  19. {
  20. protected $collection_key = 'instances';
  21. /**
  22. * If this flag is set to true, the Instance Group Manager will proceed to
  23. * suspend the instances, skipping initialization on them.
  24. *
  25. * @var bool
  26. */
  27. public $forceSuspend;
  28. /**
  29. * The URLs of one or more instances to suspend. This can be a full URL or a
  30. * partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
  31. *
  32. * @var string[]
  33. */
  34. public $instances;
  35. /**
  36. * If this flag is set to true, the Instance Group Manager will proceed to
  37. * suspend the instances, skipping initialization on them.
  38. *
  39. * @param bool $forceSuspend
  40. */
  41. public function setForceSuspend($forceSuspend)
  42. {
  43. $this->forceSuspend = $forceSuspend;
  44. }
  45. /**
  46. * @return bool
  47. */
  48. public function getForceSuspend()
  49. {
  50. return $this->forceSuspend;
  51. }
  52. /**
  53. * The URLs of one or more instances to suspend. This can be a full URL or a
  54. * partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
  55. *
  56. * @param string[] $instances
  57. */
  58. public function setInstances($instances)
  59. {
  60. $this->instances = $instances;
  61. }
  62. /**
  63. * @return string[]
  64. */
  65. public function getInstances()
  66. {
  67. return $this->instances;
  68. }
  69. }
  70. // Adding a class alias for backwards compatibility with the previous class name.
  71. class_alias(InstanceGroupManagersSuspendInstancesRequest::class, 'Google_Service_Compute_InstanceGroupManagersSuspendInstancesRequest');