[f9c482b] | 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 Environment extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'workerPools';
|
---|
| 23 | /**
|
---|
| 24 | * @var string
|
---|
| 25 | */
|
---|
| 26 | public $clusterManagerApiService;
|
---|
| 27 | /**
|
---|
| 28 | * @var string
|
---|
| 29 | */
|
---|
| 30 | public $dataset;
|
---|
| 31 | protected $debugOptionsType = DebugOptions::class;
|
---|
| 32 | protected $debugOptionsDataType = '';
|
---|
| 33 | /**
|
---|
| 34 | * @var string[]
|
---|
| 35 | */
|
---|
| 36 | public $experiments;
|
---|
| 37 | /**
|
---|
| 38 | * @var string
|
---|
| 39 | */
|
---|
| 40 | public $flexResourceSchedulingGoal;
|
---|
| 41 | /**
|
---|
| 42 | * @var array[]
|
---|
| 43 | */
|
---|
| 44 | public $internalExperiments;
|
---|
| 45 | /**
|
---|
| 46 | * @var array[]
|
---|
| 47 | */
|
---|
| 48 | public $sdkPipelineOptions;
|
---|
| 49 | /**
|
---|
| 50 | * @var string
|
---|
| 51 | */
|
---|
| 52 | public $serviceAccountEmail;
|
---|
| 53 | /**
|
---|
| 54 | * @var string
|
---|
| 55 | */
|
---|
| 56 | public $serviceKmsKeyName;
|
---|
| 57 | /**
|
---|
| 58 | * @var string[]
|
---|
| 59 | */
|
---|
| 60 | public $serviceOptions;
|
---|
| 61 | /**
|
---|
| 62 | * @var string
|
---|
| 63 | */
|
---|
| 64 | public $shuffleMode;
|
---|
| 65 | /**
|
---|
| 66 | * @var string
|
---|
| 67 | */
|
---|
| 68 | public $streamingMode;
|
---|
| 69 | /**
|
---|
| 70 | * @var string
|
---|
| 71 | */
|
---|
| 72 | public $tempStoragePrefix;
|
---|
| 73 | /**
|
---|
| 74 | * @var bool
|
---|
| 75 | */
|
---|
| 76 | public $useStreamingEngineResourceBasedBilling;
|
---|
| 77 | /**
|
---|
| 78 | * @var array[]
|
---|
| 79 | */
|
---|
| 80 | public $userAgent;
|
---|
| 81 | /**
|
---|
| 82 | * @var array[]
|
---|
| 83 | */
|
---|
| 84 | public $version;
|
---|
| 85 | protected $workerPoolsType = WorkerPool::class;
|
---|
| 86 | protected $workerPoolsDataType = 'array';
|
---|
| 87 | /**
|
---|
| 88 | * @var string
|
---|
| 89 | */
|
---|
| 90 | public $workerRegion;
|
---|
| 91 | /**
|
---|
| 92 | * @var string
|
---|
| 93 | */
|
---|
| 94 | public $workerZone;
|
---|
| 95 |
|
---|
| 96 | /**
|
---|
| 97 | * @param string
|
---|
| 98 | */
|
---|
| 99 | public function setClusterManagerApiService($clusterManagerApiService)
|
---|
| 100 | {
|
---|
| 101 | $this->clusterManagerApiService = $clusterManagerApiService;
|
---|
| 102 | }
|
---|
| 103 | /**
|
---|
| 104 | * @return string
|
---|
| 105 | */
|
---|
| 106 | public function getClusterManagerApiService()
|
---|
| 107 | {
|
---|
| 108 | return $this->clusterManagerApiService;
|
---|
| 109 | }
|
---|
| 110 | /**
|
---|
| 111 | * @param string
|
---|
| 112 | */
|
---|
| 113 | public function setDataset($dataset)
|
---|
| 114 | {
|
---|
| 115 | $this->dataset = $dataset;
|
---|
| 116 | }
|
---|
| 117 | /**
|
---|
| 118 | * @return string
|
---|
| 119 | */
|
---|
| 120 | public function getDataset()
|
---|
| 121 | {
|
---|
| 122 | return $this->dataset;
|
---|
| 123 | }
|
---|
| 124 | /**
|
---|
| 125 | * @param DebugOptions
|
---|
| 126 | */
|
---|
| 127 | public function setDebugOptions(DebugOptions $debugOptions)
|
---|
| 128 | {
|
---|
| 129 | $this->debugOptions = $debugOptions;
|
---|
| 130 | }
|
---|
| 131 | /**
|
---|
| 132 | * @return DebugOptions
|
---|
| 133 | */
|
---|
| 134 | public function getDebugOptions()
|
---|
| 135 | {
|
---|
| 136 | return $this->debugOptions;
|
---|
| 137 | }
|
---|
| 138 | /**
|
---|
| 139 | * @param string[]
|
---|
| 140 | */
|
---|
| 141 | public function setExperiments($experiments)
|
---|
| 142 | {
|
---|
| 143 | $this->experiments = $experiments;
|
---|
| 144 | }
|
---|
| 145 | /**
|
---|
| 146 | * @return string[]
|
---|
| 147 | */
|
---|
| 148 | public function getExperiments()
|
---|
| 149 | {
|
---|
| 150 | return $this->experiments;
|
---|
| 151 | }
|
---|
| 152 | /**
|
---|
| 153 | * @param string
|
---|
| 154 | */
|
---|
| 155 | public function setFlexResourceSchedulingGoal($flexResourceSchedulingGoal)
|
---|
| 156 | {
|
---|
| 157 | $this->flexResourceSchedulingGoal = $flexResourceSchedulingGoal;
|
---|
| 158 | }
|
---|
| 159 | /**
|
---|
| 160 | * @return string
|
---|
| 161 | */
|
---|
| 162 | public function getFlexResourceSchedulingGoal()
|
---|
| 163 | {
|
---|
| 164 | return $this->flexResourceSchedulingGoal;
|
---|
| 165 | }
|
---|
| 166 | /**
|
---|
| 167 | * @param array[]
|
---|
| 168 | */
|
---|
| 169 | public function setInternalExperiments($internalExperiments)
|
---|
| 170 | {
|
---|
| 171 | $this->internalExperiments = $internalExperiments;
|
---|
| 172 | }
|
---|
| 173 | /**
|
---|
| 174 | * @return array[]
|
---|
| 175 | */
|
---|
| 176 | public function getInternalExperiments()
|
---|
| 177 | {
|
---|
| 178 | return $this->internalExperiments;
|
---|
| 179 | }
|
---|
| 180 | /**
|
---|
| 181 | * @param array[]
|
---|
| 182 | */
|
---|
| 183 | public function setSdkPipelineOptions($sdkPipelineOptions)
|
---|
| 184 | {
|
---|
| 185 | $this->sdkPipelineOptions = $sdkPipelineOptions;
|
---|
| 186 | }
|
---|
| 187 | /**
|
---|
| 188 | * @return array[]
|
---|
| 189 | */
|
---|
| 190 | public function getSdkPipelineOptions()
|
---|
| 191 | {
|
---|
| 192 | return $this->sdkPipelineOptions;
|
---|
| 193 | }
|
---|
| 194 | /**
|
---|
| 195 | * @param string
|
---|
| 196 | */
|
---|
| 197 | public function setServiceAccountEmail($serviceAccountEmail)
|
---|
| 198 | {
|
---|
| 199 | $this->serviceAccountEmail = $serviceAccountEmail;
|
---|
| 200 | }
|
---|
| 201 | /**
|
---|
| 202 | * @return string
|
---|
| 203 | */
|
---|
| 204 | public function getServiceAccountEmail()
|
---|
| 205 | {
|
---|
| 206 | return $this->serviceAccountEmail;
|
---|
| 207 | }
|
---|
| 208 | /**
|
---|
| 209 | * @param string
|
---|
| 210 | */
|
---|
| 211 | public function setServiceKmsKeyName($serviceKmsKeyName)
|
---|
| 212 | {
|
---|
| 213 | $this->serviceKmsKeyName = $serviceKmsKeyName;
|
---|
| 214 | }
|
---|
| 215 | /**
|
---|
| 216 | * @return string
|
---|
| 217 | */
|
---|
| 218 | public function getServiceKmsKeyName()
|
---|
| 219 | {
|
---|
| 220 | return $this->serviceKmsKeyName;
|
---|
| 221 | }
|
---|
| 222 | /**
|
---|
| 223 | * @param string[]
|
---|
| 224 | */
|
---|
| 225 | public function setServiceOptions($serviceOptions)
|
---|
| 226 | {
|
---|
| 227 | $this->serviceOptions = $serviceOptions;
|
---|
| 228 | }
|
---|
| 229 | /**
|
---|
| 230 | * @return string[]
|
---|
| 231 | */
|
---|
| 232 | public function getServiceOptions()
|
---|
| 233 | {
|
---|
| 234 | return $this->serviceOptions;
|
---|
| 235 | }
|
---|
| 236 | /**
|
---|
| 237 | * @param string
|
---|
| 238 | */
|
---|
| 239 | public function setShuffleMode($shuffleMode)
|
---|
| 240 | {
|
---|
| 241 | $this->shuffleMode = $shuffleMode;
|
---|
| 242 | }
|
---|
| 243 | /**
|
---|
| 244 | * @return string
|
---|
| 245 | */
|
---|
| 246 | public function getShuffleMode()
|
---|
| 247 | {
|
---|
| 248 | return $this->shuffleMode;
|
---|
| 249 | }
|
---|
| 250 | /**
|
---|
| 251 | * @param string
|
---|
| 252 | */
|
---|
| 253 | public function setStreamingMode($streamingMode)
|
---|
| 254 | {
|
---|
| 255 | $this->streamingMode = $streamingMode;
|
---|
| 256 | }
|
---|
| 257 | /**
|
---|
| 258 | * @return string
|
---|
| 259 | */
|
---|
| 260 | public function getStreamingMode()
|
---|
| 261 | {
|
---|
| 262 | return $this->streamingMode;
|
---|
| 263 | }
|
---|
| 264 | /**
|
---|
| 265 | * @param string
|
---|
| 266 | */
|
---|
| 267 | public function setTempStoragePrefix($tempStoragePrefix)
|
---|
| 268 | {
|
---|
| 269 | $this->tempStoragePrefix = $tempStoragePrefix;
|
---|
| 270 | }
|
---|
| 271 | /**
|
---|
| 272 | * @return string
|
---|
| 273 | */
|
---|
| 274 | public function getTempStoragePrefix()
|
---|
| 275 | {
|
---|
| 276 | return $this->tempStoragePrefix;
|
---|
| 277 | }
|
---|
| 278 | /**
|
---|
| 279 | * @param bool
|
---|
| 280 | */
|
---|
| 281 | public function setUseStreamingEngineResourceBasedBilling($useStreamingEngineResourceBasedBilling)
|
---|
| 282 | {
|
---|
| 283 | $this->useStreamingEngineResourceBasedBilling = $useStreamingEngineResourceBasedBilling;
|
---|
| 284 | }
|
---|
| 285 | /**
|
---|
| 286 | * @return bool
|
---|
| 287 | */
|
---|
| 288 | public function getUseStreamingEngineResourceBasedBilling()
|
---|
| 289 | {
|
---|
| 290 | return $this->useStreamingEngineResourceBasedBilling;
|
---|
| 291 | }
|
---|
| 292 | /**
|
---|
| 293 | * @param array[]
|
---|
| 294 | */
|
---|
| 295 | public function setUserAgent($userAgent)
|
---|
| 296 | {
|
---|
| 297 | $this->userAgent = $userAgent;
|
---|
| 298 | }
|
---|
| 299 | /**
|
---|
| 300 | * @return array[]
|
---|
| 301 | */
|
---|
| 302 | public function getUserAgent()
|
---|
| 303 | {
|
---|
| 304 | return $this->userAgent;
|
---|
| 305 | }
|
---|
| 306 | /**
|
---|
| 307 | * @param array[]
|
---|
| 308 | */
|
---|
| 309 | public function setVersion($version)
|
---|
| 310 | {
|
---|
| 311 | $this->version = $version;
|
---|
| 312 | }
|
---|
| 313 | /**
|
---|
| 314 | * @return array[]
|
---|
| 315 | */
|
---|
| 316 | public function getVersion()
|
---|
| 317 | {
|
---|
| 318 | return $this->version;
|
---|
| 319 | }
|
---|
| 320 | /**
|
---|
| 321 | * @param WorkerPool[]
|
---|
| 322 | */
|
---|
| 323 | public function setWorkerPools($workerPools)
|
---|
| 324 | {
|
---|
| 325 | $this->workerPools = $workerPools;
|
---|
| 326 | }
|
---|
| 327 | /**
|
---|
| 328 | * @return WorkerPool[]
|
---|
| 329 | */
|
---|
| 330 | public function getWorkerPools()
|
---|
| 331 | {
|
---|
| 332 | return $this->workerPools;
|
---|
| 333 | }
|
---|
| 334 | /**
|
---|
| 335 | * @param string
|
---|
| 336 | */
|
---|
| 337 | public function setWorkerRegion($workerRegion)
|
---|
| 338 | {
|
---|
| 339 | $this->workerRegion = $workerRegion;
|
---|
| 340 | }
|
---|
| 341 | /**
|
---|
| 342 | * @return string
|
---|
| 343 | */
|
---|
| 344 | public function getWorkerRegion()
|
---|
| 345 | {
|
---|
| 346 | return $this->workerRegion;
|
---|
| 347 | }
|
---|
| 348 | /**
|
---|
| 349 | * @param string
|
---|
| 350 | */
|
---|
| 351 | public function setWorkerZone($workerZone)
|
---|
| 352 | {
|
---|
| 353 | $this->workerZone = $workerZone;
|
---|
| 354 | }
|
---|
| 355 | /**
|
---|
| 356 | * @return string
|
---|
| 357 | */
|
---|
| 358 | public function getWorkerZone()
|
---|
| 359 | {
|
---|
| 360 | return $this->workerZone;
|
---|
| 361 | }
|
---|
| 362 | }
|
---|
| 363 |
|
---|
| 364 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 365 | class_alias(Environment::class, 'Google_Service_Dataflow_Environment');
|
---|