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\Dataflow;
|
---|
19 |
|
---|
20 | class WorkerPool extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'sdkHarnessContainerImages';
|
---|
23 | protected $autoscalingSettingsType = AutoscalingSettings::class;
|
---|
24 | protected $autoscalingSettingsDataType = '';
|
---|
25 | protected $dataDisksType = Disk::class;
|
---|
26 | protected $dataDisksDataType = 'array';
|
---|
27 | /**
|
---|
28 | * @var string
|
---|
29 | */
|
---|
30 | public $defaultPackageSet;
|
---|
31 | /**
|
---|
32 | * @var int
|
---|
33 | */
|
---|
34 | public $diskSizeGb;
|
---|
35 | /**
|
---|
36 | * @var string
|
---|
37 | */
|
---|
38 | public $diskSourceImage;
|
---|
39 | /**
|
---|
40 | * @var string
|
---|
41 | */
|
---|
42 | public $diskType;
|
---|
43 | /**
|
---|
44 | * @var string
|
---|
45 | */
|
---|
46 | public $ipConfiguration;
|
---|
47 | /**
|
---|
48 | * @var string
|
---|
49 | */
|
---|
50 | public $kind;
|
---|
51 | /**
|
---|
52 | * @var string
|
---|
53 | */
|
---|
54 | public $machineType;
|
---|
55 | /**
|
---|
56 | * @var string[]
|
---|
57 | */
|
---|
58 | public $metadata;
|
---|
59 | /**
|
---|
60 | * @var string
|
---|
61 | */
|
---|
62 | public $network;
|
---|
63 | /**
|
---|
64 | * @var int
|
---|
65 | */
|
---|
66 | public $numThreadsPerWorker;
|
---|
67 | /**
|
---|
68 | * @var int
|
---|
69 | */
|
---|
70 | public $numWorkers;
|
---|
71 | /**
|
---|
72 | * @var string
|
---|
73 | */
|
---|
74 | public $onHostMaintenance;
|
---|
75 | protected $packagesType = Package::class;
|
---|
76 | protected $packagesDataType = 'array';
|
---|
77 | /**
|
---|
78 | * @var array[]
|
---|
79 | */
|
---|
80 | public $poolArgs;
|
---|
81 | protected $sdkHarnessContainerImagesType = SdkHarnessContainerImage::class;
|
---|
82 | protected $sdkHarnessContainerImagesDataType = 'array';
|
---|
83 | /**
|
---|
84 | * @var string
|
---|
85 | */
|
---|
86 | public $subnetwork;
|
---|
87 | protected $taskrunnerSettingsType = TaskRunnerSettings::class;
|
---|
88 | protected $taskrunnerSettingsDataType = '';
|
---|
89 | /**
|
---|
90 | * @var string
|
---|
91 | */
|
---|
92 | public $teardownPolicy;
|
---|
93 | /**
|
---|
94 | * @var string
|
---|
95 | */
|
---|
96 | public $workerHarnessContainerImage;
|
---|
97 | /**
|
---|
98 | * @var string
|
---|
99 | */
|
---|
100 | public $zone;
|
---|
101 |
|
---|
102 | /**
|
---|
103 | * @param AutoscalingSettings
|
---|
104 | */
|
---|
105 | public function setAutoscalingSettings(AutoscalingSettings $autoscalingSettings)
|
---|
106 | {
|
---|
107 | $this->autoscalingSettings = $autoscalingSettings;
|
---|
108 | }
|
---|
109 | /**
|
---|
110 | * @return AutoscalingSettings
|
---|
111 | */
|
---|
112 | public function getAutoscalingSettings()
|
---|
113 | {
|
---|
114 | return $this->autoscalingSettings;
|
---|
115 | }
|
---|
116 | /**
|
---|
117 | * @param Disk[]
|
---|
118 | */
|
---|
119 | public function setDataDisks($dataDisks)
|
---|
120 | {
|
---|
121 | $this->dataDisks = $dataDisks;
|
---|
122 | }
|
---|
123 | /**
|
---|
124 | * @return Disk[]
|
---|
125 | */
|
---|
126 | public function getDataDisks()
|
---|
127 | {
|
---|
128 | return $this->dataDisks;
|
---|
129 | }
|
---|
130 | /**
|
---|
131 | * @param string
|
---|
132 | */
|
---|
133 | public function setDefaultPackageSet($defaultPackageSet)
|
---|
134 | {
|
---|
135 | $this->defaultPackageSet = $defaultPackageSet;
|
---|
136 | }
|
---|
137 | /**
|
---|
138 | * @return string
|
---|
139 | */
|
---|
140 | public function getDefaultPackageSet()
|
---|
141 | {
|
---|
142 | return $this->defaultPackageSet;
|
---|
143 | }
|
---|
144 | /**
|
---|
145 | * @param int
|
---|
146 | */
|
---|
147 | public function setDiskSizeGb($diskSizeGb)
|
---|
148 | {
|
---|
149 | $this->diskSizeGb = $diskSizeGb;
|
---|
150 | }
|
---|
151 | /**
|
---|
152 | * @return int
|
---|
153 | */
|
---|
154 | public function getDiskSizeGb()
|
---|
155 | {
|
---|
156 | return $this->diskSizeGb;
|
---|
157 | }
|
---|
158 | /**
|
---|
159 | * @param string
|
---|
160 | */
|
---|
161 | public function setDiskSourceImage($diskSourceImage)
|
---|
162 | {
|
---|
163 | $this->diskSourceImage = $diskSourceImage;
|
---|
164 | }
|
---|
165 | /**
|
---|
166 | * @return string
|
---|
167 | */
|
---|
168 | public function getDiskSourceImage()
|
---|
169 | {
|
---|
170 | return $this->diskSourceImage;
|
---|
171 | }
|
---|
172 | /**
|
---|
173 | * @param string
|
---|
174 | */
|
---|
175 | public function setDiskType($diskType)
|
---|
176 | {
|
---|
177 | $this->diskType = $diskType;
|
---|
178 | }
|
---|
179 | /**
|
---|
180 | * @return string
|
---|
181 | */
|
---|
182 | public function getDiskType()
|
---|
183 | {
|
---|
184 | return $this->diskType;
|
---|
185 | }
|
---|
186 | /**
|
---|
187 | * @param string
|
---|
188 | */
|
---|
189 | public function setIpConfiguration($ipConfiguration)
|
---|
190 | {
|
---|
191 | $this->ipConfiguration = $ipConfiguration;
|
---|
192 | }
|
---|
193 | /**
|
---|
194 | * @return string
|
---|
195 | */
|
---|
196 | public function getIpConfiguration()
|
---|
197 | {
|
---|
198 | return $this->ipConfiguration;
|
---|
199 | }
|
---|
200 | /**
|
---|
201 | * @param string
|
---|
202 | */
|
---|
203 | public function setKind($kind)
|
---|
204 | {
|
---|
205 | $this->kind = $kind;
|
---|
206 | }
|
---|
207 | /**
|
---|
208 | * @return string
|
---|
209 | */
|
---|
210 | public function getKind()
|
---|
211 | {
|
---|
212 | return $this->kind;
|
---|
213 | }
|
---|
214 | /**
|
---|
215 | * @param string
|
---|
216 | */
|
---|
217 | public function setMachineType($machineType)
|
---|
218 | {
|
---|
219 | $this->machineType = $machineType;
|
---|
220 | }
|
---|
221 | /**
|
---|
222 | * @return string
|
---|
223 | */
|
---|
224 | public function getMachineType()
|
---|
225 | {
|
---|
226 | return $this->machineType;
|
---|
227 | }
|
---|
228 | /**
|
---|
229 | * @param string[]
|
---|
230 | */
|
---|
231 | public function setMetadata($metadata)
|
---|
232 | {
|
---|
233 | $this->metadata = $metadata;
|
---|
234 | }
|
---|
235 | /**
|
---|
236 | * @return string[]
|
---|
237 | */
|
---|
238 | public function getMetadata()
|
---|
239 | {
|
---|
240 | return $this->metadata;
|
---|
241 | }
|
---|
242 | /**
|
---|
243 | * @param string
|
---|
244 | */
|
---|
245 | public function setNetwork($network)
|
---|
246 | {
|
---|
247 | $this->network = $network;
|
---|
248 | }
|
---|
249 | /**
|
---|
250 | * @return string
|
---|
251 | */
|
---|
252 | public function getNetwork()
|
---|
253 | {
|
---|
254 | return $this->network;
|
---|
255 | }
|
---|
256 | /**
|
---|
257 | * @param int
|
---|
258 | */
|
---|
259 | public function setNumThreadsPerWorker($numThreadsPerWorker)
|
---|
260 | {
|
---|
261 | $this->numThreadsPerWorker = $numThreadsPerWorker;
|
---|
262 | }
|
---|
263 | /**
|
---|
264 | * @return int
|
---|
265 | */
|
---|
266 | public function getNumThreadsPerWorker()
|
---|
267 | {
|
---|
268 | return $this->numThreadsPerWorker;
|
---|
269 | }
|
---|
270 | /**
|
---|
271 | * @param int
|
---|
272 | */
|
---|
273 | public function setNumWorkers($numWorkers)
|
---|
274 | {
|
---|
275 | $this->numWorkers = $numWorkers;
|
---|
276 | }
|
---|
277 | /**
|
---|
278 | * @return int
|
---|
279 | */
|
---|
280 | public function getNumWorkers()
|
---|
281 | {
|
---|
282 | return $this->numWorkers;
|
---|
283 | }
|
---|
284 | /**
|
---|
285 | * @param string
|
---|
286 | */
|
---|
287 | public function setOnHostMaintenance($onHostMaintenance)
|
---|
288 | {
|
---|
289 | $this->onHostMaintenance = $onHostMaintenance;
|
---|
290 | }
|
---|
291 | /**
|
---|
292 | * @return string
|
---|
293 | */
|
---|
294 | public function getOnHostMaintenance()
|
---|
295 | {
|
---|
296 | return $this->onHostMaintenance;
|
---|
297 | }
|
---|
298 | /**
|
---|
299 | * @param Package[]
|
---|
300 | */
|
---|
301 | public function setPackages($packages)
|
---|
302 | {
|
---|
303 | $this->packages = $packages;
|
---|
304 | }
|
---|
305 | /**
|
---|
306 | * @return Package[]
|
---|
307 | */
|
---|
308 | public function getPackages()
|
---|
309 | {
|
---|
310 | return $this->packages;
|
---|
311 | }
|
---|
312 | /**
|
---|
313 | * @param array[]
|
---|
314 | */
|
---|
315 | public function setPoolArgs($poolArgs)
|
---|
316 | {
|
---|
317 | $this->poolArgs = $poolArgs;
|
---|
318 | }
|
---|
319 | /**
|
---|
320 | * @return array[]
|
---|
321 | */
|
---|
322 | public function getPoolArgs()
|
---|
323 | {
|
---|
324 | return $this->poolArgs;
|
---|
325 | }
|
---|
326 | /**
|
---|
327 | * @param SdkHarnessContainerImage[]
|
---|
328 | */
|
---|
329 | public function setSdkHarnessContainerImages($sdkHarnessContainerImages)
|
---|
330 | {
|
---|
331 | $this->sdkHarnessContainerImages = $sdkHarnessContainerImages;
|
---|
332 | }
|
---|
333 | /**
|
---|
334 | * @return SdkHarnessContainerImage[]
|
---|
335 | */
|
---|
336 | public function getSdkHarnessContainerImages()
|
---|
337 | {
|
---|
338 | return $this->sdkHarnessContainerImages;
|
---|
339 | }
|
---|
340 | /**
|
---|
341 | * @param string
|
---|
342 | */
|
---|
343 | public function setSubnetwork($subnetwork)
|
---|
344 | {
|
---|
345 | $this->subnetwork = $subnetwork;
|
---|
346 | }
|
---|
347 | /**
|
---|
348 | * @return string
|
---|
349 | */
|
---|
350 | public function getSubnetwork()
|
---|
351 | {
|
---|
352 | return $this->subnetwork;
|
---|
353 | }
|
---|
354 | /**
|
---|
355 | * @param TaskRunnerSettings
|
---|
356 | */
|
---|
357 | public function setTaskrunnerSettings(TaskRunnerSettings $taskrunnerSettings)
|
---|
358 | {
|
---|
359 | $this->taskrunnerSettings = $taskrunnerSettings;
|
---|
360 | }
|
---|
361 | /**
|
---|
362 | * @return TaskRunnerSettings
|
---|
363 | */
|
---|
364 | public function getTaskrunnerSettings()
|
---|
365 | {
|
---|
366 | return $this->taskrunnerSettings;
|
---|
367 | }
|
---|
368 | /**
|
---|
369 | * @param string
|
---|
370 | */
|
---|
371 | public function setTeardownPolicy($teardownPolicy)
|
---|
372 | {
|
---|
373 | $this->teardownPolicy = $teardownPolicy;
|
---|
374 | }
|
---|
375 | /**
|
---|
376 | * @return string
|
---|
377 | */
|
---|
378 | public function getTeardownPolicy()
|
---|
379 | {
|
---|
380 | return $this->teardownPolicy;
|
---|
381 | }
|
---|
382 | /**
|
---|
383 | * @param string
|
---|
384 | */
|
---|
385 | public function setWorkerHarnessContainerImage($workerHarnessContainerImage)
|
---|
386 | {
|
---|
387 | $this->workerHarnessContainerImage = $workerHarnessContainerImage;
|
---|
388 | }
|
---|
389 | /**
|
---|
390 | * @return string
|
---|
391 | */
|
---|
392 | public function getWorkerHarnessContainerImage()
|
---|
393 | {
|
---|
394 | return $this->workerHarnessContainerImage;
|
---|
395 | }
|
---|
396 | /**
|
---|
397 | * @param string
|
---|
398 | */
|
---|
399 | public function setZone($zone)
|
---|
400 | {
|
---|
401 | $this->zone = $zone;
|
---|
402 | }
|
---|
403 | /**
|
---|
404 | * @return string
|
---|
405 | */
|
---|
406 | public function getZone()
|
---|
407 | {
|
---|
408 | return $this->zone;
|
---|
409 | }
|
---|
410 | }
|
---|
411 |
|
---|
412 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
413 | class_alias(WorkerPool::class, 'Google_Service_Dataflow_WorkerPool');
|
---|