Ei kuvausta

InstanceGroupConfig.php 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. class Google_Service_Dataproc_InstanceGroupConfig extends Google_Collection
  18. {
  19. protected $collection_key = 'instanceNames';
  20. protected $acceleratorsType = 'Google_Service_Dataproc_AcceleratorConfig';
  21. protected $acceleratorsDataType = 'array';
  22. protected $diskConfigType = 'Google_Service_Dataproc_DiskConfig';
  23. protected $diskConfigDataType = '';
  24. public $imageUri;
  25. public $instanceNames;
  26. public $isPreemptible;
  27. public $machineTypeUri;
  28. protected $managedGroupConfigType = 'Google_Service_Dataproc_ManagedGroupConfig';
  29. protected $managedGroupConfigDataType = '';
  30. public $numInstances;
  31. /**
  32. * @param Google_Service_Dataproc_AcceleratorConfig
  33. */
  34. public function setAccelerators($accelerators)
  35. {
  36. $this->accelerators = $accelerators;
  37. }
  38. /**
  39. * @return Google_Service_Dataproc_AcceleratorConfig
  40. */
  41. public function getAccelerators()
  42. {
  43. return $this->accelerators;
  44. }
  45. /**
  46. * @param Google_Service_Dataproc_DiskConfig
  47. */
  48. public function setDiskConfig(Google_Service_Dataproc_DiskConfig $diskConfig)
  49. {
  50. $this->diskConfig = $diskConfig;
  51. }
  52. /**
  53. * @return Google_Service_Dataproc_DiskConfig
  54. */
  55. public function getDiskConfig()
  56. {
  57. return $this->diskConfig;
  58. }
  59. public function setImageUri($imageUri)
  60. {
  61. $this->imageUri = $imageUri;
  62. }
  63. public function getImageUri()
  64. {
  65. return $this->imageUri;
  66. }
  67. public function setInstanceNames($instanceNames)
  68. {
  69. $this->instanceNames = $instanceNames;
  70. }
  71. public function getInstanceNames()
  72. {
  73. return $this->instanceNames;
  74. }
  75. public function setIsPreemptible($isPreemptible)
  76. {
  77. $this->isPreemptible = $isPreemptible;
  78. }
  79. public function getIsPreemptible()
  80. {
  81. return $this->isPreemptible;
  82. }
  83. public function setMachineTypeUri($machineTypeUri)
  84. {
  85. $this->machineTypeUri = $machineTypeUri;
  86. }
  87. public function getMachineTypeUri()
  88. {
  89. return $this->machineTypeUri;
  90. }
  91. /**
  92. * @param Google_Service_Dataproc_ManagedGroupConfig
  93. */
  94. public function setManagedGroupConfig(Google_Service_Dataproc_ManagedGroupConfig $managedGroupConfig)
  95. {
  96. $this->managedGroupConfig = $managedGroupConfig;
  97. }
  98. /**
  99. * @return Google_Service_Dataproc_ManagedGroupConfig
  100. */
  101. public function getManagedGroupConfig()
  102. {
  103. return $this->managedGroupConfig;
  104. }
  105. public function setNumInstances($numInstances)
  106. {
  107. $this->numInstances = $numInstances;
  108. }
  109. public function getNumInstances()
  110. {
  111. return $this->numInstances;
  112. }
  113. }