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\Dataproc; 19 20class InstanceGroupConfig extends \Google\Collection 21{ 22 protected $collection_key = 'instanceReferences'; 23 protected $acceleratorsType = AcceleratorConfig::class; 24 protected $acceleratorsDataType = 'array'; 25 protected $diskConfigType = DiskConfig::class; 26 protected $diskConfigDataType = ''; 27 /** 28 * @var string 29 */ 30 public $imageUri; 31 /** 32 * @var string[] 33 */ 34 public $instanceNames; 35 protected $instanceReferencesType = InstanceReference::class; 36 protected $instanceReferencesDataType = 'array'; 37 /** 38 * @var bool 39 */ 40 public $isPreemptible; 41 /** 42 * @var string 43 */ 44 public $machineTypeUri; 45 protected $managedGroupConfigType = ManagedGroupConfig::class; 46 protected $managedGroupConfigDataType = ''; 47 /** 48 * @var string 49 */ 50 public $minCpuPlatform; 51 /** 52 * @var int 53 */ 54 public $numInstances; 55 /** 56 * @var string 57 */ 58 public $preemptibility; 59 60 /** 61 * @param AcceleratorConfig[] 62 */ 63 public function setAccelerators($accelerators) 64 { 65 $this->accelerators = $accelerators; 66 } 67 /** 68 * @return AcceleratorConfig[] 69 */ 70 public function getAccelerators() 71 { 72 return $this->accelerators; 73 } 74 /** 75 * @param DiskConfig 76 */ 77 public function setDiskConfig(DiskConfig $diskConfig) 78 { 79 $this->diskConfig = $diskConfig; 80 } 81 /** 82 * @return DiskConfig 83 */ 84 public function getDiskConfig() 85 { 86 return $this->diskConfig; 87 } 88 /** 89 * @param string 90 */ 91 public function setImageUri($imageUri) 92 { 93 $this->imageUri = $imageUri; 94 } 95 /** 96 * @return string 97 */ 98 public function getImageUri() 99 { 100 return $this->imageUri; 101 } 102 /** 103 * @param string[] 104 */ 105 public function setInstanceNames($instanceNames) 106 { 107 $this->instanceNames = $instanceNames; 108 } 109 /** 110 * @return string[] 111 */ 112 public function getInstanceNames() 113 { 114 return $this->instanceNames; 115 } 116 /** 117 * @param InstanceReference[] 118 */ 119 public function setInstanceReferences($instanceReferences) 120 { 121 $this->instanceReferences = $instanceReferences; 122 } 123 /** 124 * @return InstanceReference[] 125 */ 126 public function getInstanceReferences() 127 { 128 return $this->instanceReferences; 129 } 130 /** 131 * @param bool 132 */ 133 public function setIsPreemptible($isPreemptible) 134 { 135 $this->isPreemptible = $isPreemptible; 136 } 137 /** 138 * @return bool 139 */ 140 public function getIsPreemptible() 141 { 142 return $this->isPreemptible; 143 } 144 /** 145 * @param string 146 */ 147 public function setMachineTypeUri($machineTypeUri) 148 { 149 $this->machineTypeUri = $machineTypeUri; 150 } 151 /** 152 * @return string 153 */ 154 public function getMachineTypeUri() 155 { 156 return $this->machineTypeUri; 157 } 158 /** 159 * @param ManagedGroupConfig 160 */ 161 public function setManagedGroupConfig(ManagedGroupConfig $managedGroupConfig) 162 { 163 $this->managedGroupConfig = $managedGroupConfig; 164 } 165 /** 166 * @return ManagedGroupConfig 167 */ 168 public function getManagedGroupConfig() 169 { 170 return $this->managedGroupConfig; 171 } 172 /** 173 * @param string 174 */ 175 public function setMinCpuPlatform($minCpuPlatform) 176 { 177 $this->minCpuPlatform = $minCpuPlatform; 178 } 179 /** 180 * @return string 181 */ 182 public function getMinCpuPlatform() 183 { 184 return $this->minCpuPlatform; 185 } 186 /** 187 * @param int 188 */ 189 public function setNumInstances($numInstances) 190 { 191 $this->numInstances = $numInstances; 192 } 193 /** 194 * @return int 195 */ 196 public function getNumInstances() 197 { 198 return $this->numInstances; 199 } 200 /** 201 * @param string 202 */ 203 public function setPreemptibility($preemptibility) 204 { 205 $this->preemptibility = $preemptibility; 206 } 207 /** 208 * @return string 209 */ 210 public function getPreemptibility() 211 { 212 return $this->preemptibility; 213 } 214} 215 216// Adding a class alias for backwards compatibility with the previous class name. 217class_alias(InstanceGroupConfig::class, 'Google_Service_Dataproc_InstanceGroupConfig'); 218