source: vendor/google/apiclient-services/src/Dataproc/InstanceGroupConfig.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 13 days ago

Upload new project files

  • Property mode set to 100644
File size: 5.5 KB
Line 
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 protected $instanceFlexibilityPolicyType = InstanceFlexibilityPolicy::class;
32 protected $instanceFlexibilityPolicyDataType = '';
33 /**
34 * @var string[]
35 */
36 public $instanceNames;
37 protected $instanceReferencesType = InstanceReference::class;
38 protected $instanceReferencesDataType = 'array';
39 /**
40 * @var bool
41 */
42 public $isPreemptible;
43 /**
44 * @var string
45 */
46 public $machineTypeUri;
47 protected $managedGroupConfigType = ManagedGroupConfig::class;
48 protected $managedGroupConfigDataType = '';
49 /**
50 * @var string
51 */
52 public $minCpuPlatform;
53 /**
54 * @var int
55 */
56 public $minNumInstances;
57 /**
58 * @var int
59 */
60 public $numInstances;
61 /**
62 * @var string
63 */
64 public $preemptibility;
65 protected $startupConfigType = StartupConfig::class;
66 protected $startupConfigDataType = '';
67
68 /**
69 * @param AcceleratorConfig[]
70 */
71 public function setAccelerators($accelerators)
72 {
73 $this->accelerators = $accelerators;
74 }
75 /**
76 * @return AcceleratorConfig[]
77 */
78 public function getAccelerators()
79 {
80 return $this->accelerators;
81 }
82 /**
83 * @param DiskConfig
84 */
85 public function setDiskConfig(DiskConfig $diskConfig)
86 {
87 $this->diskConfig = $diskConfig;
88 }
89 /**
90 * @return DiskConfig
91 */
92 public function getDiskConfig()
93 {
94 return $this->diskConfig;
95 }
96 /**
97 * @param string
98 */
99 public function setImageUri($imageUri)
100 {
101 $this->imageUri = $imageUri;
102 }
103 /**
104 * @return string
105 */
106 public function getImageUri()
107 {
108 return $this->imageUri;
109 }
110 /**
111 * @param InstanceFlexibilityPolicy
112 */
113 public function setInstanceFlexibilityPolicy(InstanceFlexibilityPolicy $instanceFlexibilityPolicy)
114 {
115 $this->instanceFlexibilityPolicy = $instanceFlexibilityPolicy;
116 }
117 /**
118 * @return InstanceFlexibilityPolicy
119 */
120 public function getInstanceFlexibilityPolicy()
121 {
122 return $this->instanceFlexibilityPolicy;
123 }
124 /**
125 * @param string[]
126 */
127 public function setInstanceNames($instanceNames)
128 {
129 $this->instanceNames = $instanceNames;
130 }
131 /**
132 * @return string[]
133 */
134 public function getInstanceNames()
135 {
136 return $this->instanceNames;
137 }
138 /**
139 * @param InstanceReference[]
140 */
141 public function setInstanceReferences($instanceReferences)
142 {
143 $this->instanceReferences = $instanceReferences;
144 }
145 /**
146 * @return InstanceReference[]
147 */
148 public function getInstanceReferences()
149 {
150 return $this->instanceReferences;
151 }
152 /**
153 * @param bool
154 */
155 public function setIsPreemptible($isPreemptible)
156 {
157 $this->isPreemptible = $isPreemptible;
158 }
159 /**
160 * @return bool
161 */
162 public function getIsPreemptible()
163 {
164 return $this->isPreemptible;
165 }
166 /**
167 * @param string
168 */
169 public function setMachineTypeUri($machineTypeUri)
170 {
171 $this->machineTypeUri = $machineTypeUri;
172 }
173 /**
174 * @return string
175 */
176 public function getMachineTypeUri()
177 {
178 return $this->machineTypeUri;
179 }
180 /**
181 * @param ManagedGroupConfig
182 */
183 public function setManagedGroupConfig(ManagedGroupConfig $managedGroupConfig)
184 {
185 $this->managedGroupConfig = $managedGroupConfig;
186 }
187 /**
188 * @return ManagedGroupConfig
189 */
190 public function getManagedGroupConfig()
191 {
192 return $this->managedGroupConfig;
193 }
194 /**
195 * @param string
196 */
197 public function setMinCpuPlatform($minCpuPlatform)
198 {
199 $this->minCpuPlatform = $minCpuPlatform;
200 }
201 /**
202 * @return string
203 */
204 public function getMinCpuPlatform()
205 {
206 return $this->minCpuPlatform;
207 }
208 /**
209 * @param int
210 */
211 public function setMinNumInstances($minNumInstances)
212 {
213 $this->minNumInstances = $minNumInstances;
214 }
215 /**
216 * @return int
217 */
218 public function getMinNumInstances()
219 {
220 return $this->minNumInstances;
221 }
222 /**
223 * @param int
224 */
225 public function setNumInstances($numInstances)
226 {
227 $this->numInstances = $numInstances;
228 }
229 /**
230 * @return int
231 */
232 public function getNumInstances()
233 {
234 return $this->numInstances;
235 }
236 /**
237 * @param string
238 */
239 public function setPreemptibility($preemptibility)
240 {
241 $this->preemptibility = $preemptibility;
242 }
243 /**
244 * @return string
245 */
246 public function getPreemptibility()
247 {
248 return $this->preemptibility;
249 }
250 /**
251 * @param StartupConfig
252 */
253 public function setStartupConfig(StartupConfig $startupConfig)
254 {
255 $this->startupConfig = $startupConfig;
256 }
257 /**
258 * @return StartupConfig
259 */
260 public function getStartupConfig()
261 {
262 return $this->startupConfig;
263 }
264}
265
266// Adding a class alias for backwards compatibility with the previous class name.
267class_alias(InstanceGroupConfig::class, 'Google_Service_Dataproc_InstanceGroupConfig');
Note: See TracBrowser for help on using the repository browser.