[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\Baremetalsolution;
|
---|
| 19 |
|
---|
| 20 | class Instance extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'volumes';
|
---|
| 23 | /**
|
---|
| 24 | * @var string
|
---|
| 25 | */
|
---|
| 26 | public $createTime;
|
---|
| 27 | /**
|
---|
| 28 | * @var string
|
---|
| 29 | */
|
---|
| 30 | public $firmwareVersion;
|
---|
| 31 | /**
|
---|
| 32 | * @var bool
|
---|
| 33 | */
|
---|
| 34 | public $hyperthreadingEnabled;
|
---|
| 35 | /**
|
---|
| 36 | * @var string
|
---|
| 37 | */
|
---|
| 38 | public $id;
|
---|
| 39 | /**
|
---|
| 40 | * @var bool
|
---|
| 41 | */
|
---|
| 42 | public $interactiveSerialConsoleEnabled;
|
---|
| 43 | /**
|
---|
| 44 | * @var string
|
---|
| 45 | */
|
---|
| 46 | public $kmsKeyVersion;
|
---|
| 47 | /**
|
---|
| 48 | * @var string[]
|
---|
| 49 | */
|
---|
| 50 | public $labels;
|
---|
| 51 | protected $logicalInterfacesType = GoogleCloudBaremetalsolutionV2LogicalInterface::class;
|
---|
| 52 | protected $logicalInterfacesDataType = 'array';
|
---|
| 53 | /**
|
---|
| 54 | * @var string
|
---|
| 55 | */
|
---|
| 56 | public $loginInfo;
|
---|
| 57 | protected $lunsType = Lun::class;
|
---|
| 58 | protected $lunsDataType = 'array';
|
---|
| 59 | /**
|
---|
| 60 | * @var string
|
---|
| 61 | */
|
---|
| 62 | public $machineType;
|
---|
| 63 | /**
|
---|
| 64 | * @var string
|
---|
| 65 | */
|
---|
| 66 | public $name;
|
---|
| 67 | /**
|
---|
| 68 | * @var string
|
---|
| 69 | */
|
---|
| 70 | public $networkTemplate;
|
---|
| 71 | protected $networksType = Network::class;
|
---|
| 72 | protected $networksDataType = 'array';
|
---|
| 73 | /**
|
---|
| 74 | * @var string
|
---|
| 75 | */
|
---|
| 76 | public $osImage;
|
---|
| 77 | /**
|
---|
| 78 | * @var string
|
---|
| 79 | */
|
---|
| 80 | public $pod;
|
---|
| 81 | /**
|
---|
| 82 | * @var string[]
|
---|
| 83 | */
|
---|
| 84 | public $sshKeys;
|
---|
| 85 | /**
|
---|
| 86 | * @var string
|
---|
| 87 | */
|
---|
| 88 | public $state;
|
---|
| 89 | /**
|
---|
| 90 | * @var string
|
---|
| 91 | */
|
---|
| 92 | public $updateTime;
|
---|
| 93 | protected $volumesType = Volume::class;
|
---|
| 94 | protected $volumesDataType = 'array';
|
---|
| 95 | /**
|
---|
| 96 | * @var string
|
---|
| 97 | */
|
---|
| 98 | public $workloadProfile;
|
---|
| 99 |
|
---|
| 100 | /**
|
---|
| 101 | * @param string
|
---|
| 102 | */
|
---|
| 103 | public function setCreateTime($createTime)
|
---|
| 104 | {
|
---|
| 105 | $this->createTime = $createTime;
|
---|
| 106 | }
|
---|
| 107 | /**
|
---|
| 108 | * @return string
|
---|
| 109 | */
|
---|
| 110 | public function getCreateTime()
|
---|
| 111 | {
|
---|
| 112 | return $this->createTime;
|
---|
| 113 | }
|
---|
| 114 | /**
|
---|
| 115 | * @param string
|
---|
| 116 | */
|
---|
| 117 | public function setFirmwareVersion($firmwareVersion)
|
---|
| 118 | {
|
---|
| 119 | $this->firmwareVersion = $firmwareVersion;
|
---|
| 120 | }
|
---|
| 121 | /**
|
---|
| 122 | * @return string
|
---|
| 123 | */
|
---|
| 124 | public function getFirmwareVersion()
|
---|
| 125 | {
|
---|
| 126 | return $this->firmwareVersion;
|
---|
| 127 | }
|
---|
| 128 | /**
|
---|
| 129 | * @param bool
|
---|
| 130 | */
|
---|
| 131 | public function setHyperthreadingEnabled($hyperthreadingEnabled)
|
---|
| 132 | {
|
---|
| 133 | $this->hyperthreadingEnabled = $hyperthreadingEnabled;
|
---|
| 134 | }
|
---|
| 135 | /**
|
---|
| 136 | * @return bool
|
---|
| 137 | */
|
---|
| 138 | public function getHyperthreadingEnabled()
|
---|
| 139 | {
|
---|
| 140 | return $this->hyperthreadingEnabled;
|
---|
| 141 | }
|
---|
| 142 | /**
|
---|
| 143 | * @param string
|
---|
| 144 | */
|
---|
| 145 | public function setId($id)
|
---|
| 146 | {
|
---|
| 147 | $this->id = $id;
|
---|
| 148 | }
|
---|
| 149 | /**
|
---|
| 150 | * @return string
|
---|
| 151 | */
|
---|
| 152 | public function getId()
|
---|
| 153 | {
|
---|
| 154 | return $this->id;
|
---|
| 155 | }
|
---|
| 156 | /**
|
---|
| 157 | * @param bool
|
---|
| 158 | */
|
---|
| 159 | public function setInteractiveSerialConsoleEnabled($interactiveSerialConsoleEnabled)
|
---|
| 160 | {
|
---|
| 161 | $this->interactiveSerialConsoleEnabled = $interactiveSerialConsoleEnabled;
|
---|
| 162 | }
|
---|
| 163 | /**
|
---|
| 164 | * @return bool
|
---|
| 165 | */
|
---|
| 166 | public function getInteractiveSerialConsoleEnabled()
|
---|
| 167 | {
|
---|
| 168 | return $this->interactiveSerialConsoleEnabled;
|
---|
| 169 | }
|
---|
| 170 | /**
|
---|
| 171 | * @param string
|
---|
| 172 | */
|
---|
| 173 | public function setKmsKeyVersion($kmsKeyVersion)
|
---|
| 174 | {
|
---|
| 175 | $this->kmsKeyVersion = $kmsKeyVersion;
|
---|
| 176 | }
|
---|
| 177 | /**
|
---|
| 178 | * @return string
|
---|
| 179 | */
|
---|
| 180 | public function getKmsKeyVersion()
|
---|
| 181 | {
|
---|
| 182 | return $this->kmsKeyVersion;
|
---|
| 183 | }
|
---|
| 184 | /**
|
---|
| 185 | * @param string[]
|
---|
| 186 | */
|
---|
| 187 | public function setLabels($labels)
|
---|
| 188 | {
|
---|
| 189 | $this->labels = $labels;
|
---|
| 190 | }
|
---|
| 191 | /**
|
---|
| 192 | * @return string[]
|
---|
| 193 | */
|
---|
| 194 | public function getLabels()
|
---|
| 195 | {
|
---|
| 196 | return $this->labels;
|
---|
| 197 | }
|
---|
| 198 | /**
|
---|
| 199 | * @param GoogleCloudBaremetalsolutionV2LogicalInterface[]
|
---|
| 200 | */
|
---|
| 201 | public function setLogicalInterfaces($logicalInterfaces)
|
---|
| 202 | {
|
---|
| 203 | $this->logicalInterfaces = $logicalInterfaces;
|
---|
| 204 | }
|
---|
| 205 | /**
|
---|
| 206 | * @return GoogleCloudBaremetalsolutionV2LogicalInterface[]
|
---|
| 207 | */
|
---|
| 208 | public function getLogicalInterfaces()
|
---|
| 209 | {
|
---|
| 210 | return $this->logicalInterfaces;
|
---|
| 211 | }
|
---|
| 212 | /**
|
---|
| 213 | * @param string
|
---|
| 214 | */
|
---|
| 215 | public function setLoginInfo($loginInfo)
|
---|
| 216 | {
|
---|
| 217 | $this->loginInfo = $loginInfo;
|
---|
| 218 | }
|
---|
| 219 | /**
|
---|
| 220 | * @return string
|
---|
| 221 | */
|
---|
| 222 | public function getLoginInfo()
|
---|
| 223 | {
|
---|
| 224 | return $this->loginInfo;
|
---|
| 225 | }
|
---|
| 226 | /**
|
---|
| 227 | * @param Lun[]
|
---|
| 228 | */
|
---|
| 229 | public function setLuns($luns)
|
---|
| 230 | {
|
---|
| 231 | $this->luns = $luns;
|
---|
| 232 | }
|
---|
| 233 | /**
|
---|
| 234 | * @return Lun[]
|
---|
| 235 | */
|
---|
| 236 | public function getLuns()
|
---|
| 237 | {
|
---|
| 238 | return $this->luns;
|
---|
| 239 | }
|
---|
| 240 | /**
|
---|
| 241 | * @param string
|
---|
| 242 | */
|
---|
| 243 | public function setMachineType($machineType)
|
---|
| 244 | {
|
---|
| 245 | $this->machineType = $machineType;
|
---|
| 246 | }
|
---|
| 247 | /**
|
---|
| 248 | * @return string
|
---|
| 249 | */
|
---|
| 250 | public function getMachineType()
|
---|
| 251 | {
|
---|
| 252 | return $this->machineType;
|
---|
| 253 | }
|
---|
| 254 | /**
|
---|
| 255 | * @param string
|
---|
| 256 | */
|
---|
| 257 | public function setName($name)
|
---|
| 258 | {
|
---|
| 259 | $this->name = $name;
|
---|
| 260 | }
|
---|
| 261 | /**
|
---|
| 262 | * @return string
|
---|
| 263 | */
|
---|
| 264 | public function getName()
|
---|
| 265 | {
|
---|
| 266 | return $this->name;
|
---|
| 267 | }
|
---|
| 268 | /**
|
---|
| 269 | * @param string
|
---|
| 270 | */
|
---|
| 271 | public function setNetworkTemplate($networkTemplate)
|
---|
| 272 | {
|
---|
| 273 | $this->networkTemplate = $networkTemplate;
|
---|
| 274 | }
|
---|
| 275 | /**
|
---|
| 276 | * @return string
|
---|
| 277 | */
|
---|
| 278 | public function getNetworkTemplate()
|
---|
| 279 | {
|
---|
| 280 | return $this->networkTemplate;
|
---|
| 281 | }
|
---|
| 282 | /**
|
---|
| 283 | * @param Network[]
|
---|
| 284 | */
|
---|
| 285 | public function setNetworks($networks)
|
---|
| 286 | {
|
---|
| 287 | $this->networks = $networks;
|
---|
| 288 | }
|
---|
| 289 | /**
|
---|
| 290 | * @return Network[]
|
---|
| 291 | */
|
---|
| 292 | public function getNetworks()
|
---|
| 293 | {
|
---|
| 294 | return $this->networks;
|
---|
| 295 | }
|
---|
| 296 | /**
|
---|
| 297 | * @param string
|
---|
| 298 | */
|
---|
| 299 | public function setOsImage($osImage)
|
---|
| 300 | {
|
---|
| 301 | $this->osImage = $osImage;
|
---|
| 302 | }
|
---|
| 303 | /**
|
---|
| 304 | * @return string
|
---|
| 305 | */
|
---|
| 306 | public function getOsImage()
|
---|
| 307 | {
|
---|
| 308 | return $this->osImage;
|
---|
| 309 | }
|
---|
| 310 | /**
|
---|
| 311 | * @param string
|
---|
| 312 | */
|
---|
| 313 | public function setPod($pod)
|
---|
| 314 | {
|
---|
| 315 | $this->pod = $pod;
|
---|
| 316 | }
|
---|
| 317 | /**
|
---|
| 318 | * @return string
|
---|
| 319 | */
|
---|
| 320 | public function getPod()
|
---|
| 321 | {
|
---|
| 322 | return $this->pod;
|
---|
| 323 | }
|
---|
| 324 | /**
|
---|
| 325 | * @param string[]
|
---|
| 326 | */
|
---|
| 327 | public function setSshKeys($sshKeys)
|
---|
| 328 | {
|
---|
| 329 | $this->sshKeys = $sshKeys;
|
---|
| 330 | }
|
---|
| 331 | /**
|
---|
| 332 | * @return string[]
|
---|
| 333 | */
|
---|
| 334 | public function getSshKeys()
|
---|
| 335 | {
|
---|
| 336 | return $this->sshKeys;
|
---|
| 337 | }
|
---|
| 338 | /**
|
---|
| 339 | * @param string
|
---|
| 340 | */
|
---|
| 341 | public function setState($state)
|
---|
| 342 | {
|
---|
| 343 | $this->state = $state;
|
---|
| 344 | }
|
---|
| 345 | /**
|
---|
| 346 | * @return string
|
---|
| 347 | */
|
---|
| 348 | public function getState()
|
---|
| 349 | {
|
---|
| 350 | return $this->state;
|
---|
| 351 | }
|
---|
| 352 | /**
|
---|
| 353 | * @param string
|
---|
| 354 | */
|
---|
| 355 | public function setUpdateTime($updateTime)
|
---|
| 356 | {
|
---|
| 357 | $this->updateTime = $updateTime;
|
---|
| 358 | }
|
---|
| 359 | /**
|
---|
| 360 | * @return string
|
---|
| 361 | */
|
---|
| 362 | public function getUpdateTime()
|
---|
| 363 | {
|
---|
| 364 | return $this->updateTime;
|
---|
| 365 | }
|
---|
| 366 | /**
|
---|
| 367 | * @param Volume[]
|
---|
| 368 | */
|
---|
| 369 | public function setVolumes($volumes)
|
---|
| 370 | {
|
---|
| 371 | $this->volumes = $volumes;
|
---|
| 372 | }
|
---|
| 373 | /**
|
---|
| 374 | * @return Volume[]
|
---|
| 375 | */
|
---|
| 376 | public function getVolumes()
|
---|
| 377 | {
|
---|
| 378 | return $this->volumes;
|
---|
| 379 | }
|
---|
| 380 | /**
|
---|
| 381 | * @param string
|
---|
| 382 | */
|
---|
| 383 | public function setWorkloadProfile($workloadProfile)
|
---|
| 384 | {
|
---|
| 385 | $this->workloadProfile = $workloadProfile;
|
---|
| 386 | }
|
---|
| 387 | /**
|
---|
| 388 | * @return string
|
---|
| 389 | */
|
---|
| 390 | public function getWorkloadProfile()
|
---|
| 391 | {
|
---|
| 392 | return $this->workloadProfile;
|
---|
| 393 | }
|
---|
| 394 | }
|
---|
| 395 |
|
---|
| 396 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 397 | class_alias(Instance::class, 'Google_Service_Baremetalsolution_Instance');
|
---|