[e3d4e0a] | 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\Compute;
|
---|
| 19 |
|
---|
| 20 | class InstanceProperties extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'serviceAccounts';
|
---|
| 23 | protected $advancedMachineFeaturesType = AdvancedMachineFeatures::class;
|
---|
| 24 | protected $advancedMachineFeaturesDataType = '';
|
---|
| 25 | /**
|
---|
| 26 | * @var bool
|
---|
| 27 | */
|
---|
| 28 | public $canIpForward;
|
---|
| 29 | protected $confidentialInstanceConfigType = ConfidentialInstanceConfig::class;
|
---|
| 30 | protected $confidentialInstanceConfigDataType = '';
|
---|
| 31 | /**
|
---|
| 32 | * @var string
|
---|
| 33 | */
|
---|
| 34 | public $description;
|
---|
| 35 | protected $disksType = AttachedDisk::class;
|
---|
| 36 | protected $disksDataType = 'array';
|
---|
| 37 | protected $guestAcceleratorsType = AcceleratorConfig::class;
|
---|
| 38 | protected $guestAcceleratorsDataType = 'array';
|
---|
| 39 | /**
|
---|
| 40 | * @var string
|
---|
| 41 | */
|
---|
| 42 | public $keyRevocationActionType;
|
---|
| 43 | /**
|
---|
| 44 | * @var string[]
|
---|
| 45 | */
|
---|
| 46 | public $labels;
|
---|
| 47 | /**
|
---|
| 48 | * @var string
|
---|
| 49 | */
|
---|
| 50 | public $machineType;
|
---|
| 51 | protected $metadataType = Metadata::class;
|
---|
| 52 | protected $metadataDataType = '';
|
---|
| 53 | /**
|
---|
| 54 | * @var string
|
---|
| 55 | */
|
---|
| 56 | public $minCpuPlatform;
|
---|
| 57 | protected $networkInterfacesType = NetworkInterface::class;
|
---|
| 58 | protected $networkInterfacesDataType = 'array';
|
---|
| 59 | protected $networkPerformanceConfigType = NetworkPerformanceConfig::class;
|
---|
| 60 | protected $networkPerformanceConfigDataType = '';
|
---|
| 61 | /**
|
---|
| 62 | * @var string
|
---|
| 63 | */
|
---|
| 64 | public $privateIpv6GoogleAccess;
|
---|
| 65 | protected $reservationAffinityType = ReservationAffinity::class;
|
---|
| 66 | protected $reservationAffinityDataType = '';
|
---|
| 67 | /**
|
---|
| 68 | * @var string[]
|
---|
| 69 | */
|
---|
| 70 | public $resourceManagerTags;
|
---|
| 71 | /**
|
---|
| 72 | * @var string[]
|
---|
| 73 | */
|
---|
| 74 | public $resourcePolicies;
|
---|
| 75 | protected $schedulingType = Scheduling::class;
|
---|
| 76 | protected $schedulingDataType = '';
|
---|
| 77 | protected $serviceAccountsType = ServiceAccount::class;
|
---|
| 78 | protected $serviceAccountsDataType = 'array';
|
---|
| 79 | protected $shieldedInstanceConfigType = ShieldedInstanceConfig::class;
|
---|
| 80 | protected $shieldedInstanceConfigDataType = '';
|
---|
| 81 | protected $tagsType = Tags::class;
|
---|
| 82 | protected $tagsDataType = '';
|
---|
| 83 |
|
---|
| 84 | /**
|
---|
| 85 | * @param AdvancedMachineFeatures
|
---|
| 86 | */
|
---|
| 87 | public function setAdvancedMachineFeatures(AdvancedMachineFeatures $advancedMachineFeatures)
|
---|
| 88 | {
|
---|
| 89 | $this->advancedMachineFeatures = $advancedMachineFeatures;
|
---|
| 90 | }
|
---|
| 91 | /**
|
---|
| 92 | * @return AdvancedMachineFeatures
|
---|
| 93 | */
|
---|
| 94 | public function getAdvancedMachineFeatures()
|
---|
| 95 | {
|
---|
| 96 | return $this->advancedMachineFeatures;
|
---|
| 97 | }
|
---|
| 98 | /**
|
---|
| 99 | * @param bool
|
---|
| 100 | */
|
---|
| 101 | public function setCanIpForward($canIpForward)
|
---|
| 102 | {
|
---|
| 103 | $this->canIpForward = $canIpForward;
|
---|
| 104 | }
|
---|
| 105 | /**
|
---|
| 106 | * @return bool
|
---|
| 107 | */
|
---|
| 108 | public function getCanIpForward()
|
---|
| 109 | {
|
---|
| 110 | return $this->canIpForward;
|
---|
| 111 | }
|
---|
| 112 | /**
|
---|
| 113 | * @param ConfidentialInstanceConfig
|
---|
| 114 | */
|
---|
| 115 | public function setConfidentialInstanceConfig(ConfidentialInstanceConfig $confidentialInstanceConfig)
|
---|
| 116 | {
|
---|
| 117 | $this->confidentialInstanceConfig = $confidentialInstanceConfig;
|
---|
| 118 | }
|
---|
| 119 | /**
|
---|
| 120 | * @return ConfidentialInstanceConfig
|
---|
| 121 | */
|
---|
| 122 | public function getConfidentialInstanceConfig()
|
---|
| 123 | {
|
---|
| 124 | return $this->confidentialInstanceConfig;
|
---|
| 125 | }
|
---|
| 126 | /**
|
---|
| 127 | * @param string
|
---|
| 128 | */
|
---|
| 129 | public function setDescription($description)
|
---|
| 130 | {
|
---|
| 131 | $this->description = $description;
|
---|
| 132 | }
|
---|
| 133 | /**
|
---|
| 134 | * @return string
|
---|
| 135 | */
|
---|
| 136 | public function getDescription()
|
---|
| 137 | {
|
---|
| 138 | return $this->description;
|
---|
| 139 | }
|
---|
| 140 | /**
|
---|
| 141 | * @param AttachedDisk[]
|
---|
| 142 | */
|
---|
| 143 | public function setDisks($disks)
|
---|
| 144 | {
|
---|
| 145 | $this->disks = $disks;
|
---|
| 146 | }
|
---|
| 147 | /**
|
---|
| 148 | * @return AttachedDisk[]
|
---|
| 149 | */
|
---|
| 150 | public function getDisks()
|
---|
| 151 | {
|
---|
| 152 | return $this->disks;
|
---|
| 153 | }
|
---|
| 154 | /**
|
---|
| 155 | * @param AcceleratorConfig[]
|
---|
| 156 | */
|
---|
| 157 | public function setGuestAccelerators($guestAccelerators)
|
---|
| 158 | {
|
---|
| 159 | $this->guestAccelerators = $guestAccelerators;
|
---|
| 160 | }
|
---|
| 161 | /**
|
---|
| 162 | * @return AcceleratorConfig[]
|
---|
| 163 | */
|
---|
| 164 | public function getGuestAccelerators()
|
---|
| 165 | {
|
---|
| 166 | return $this->guestAccelerators;
|
---|
| 167 | }
|
---|
| 168 | /**
|
---|
| 169 | * @param string
|
---|
| 170 | */
|
---|
| 171 | public function setKeyRevocationActionType($keyRevocationActionType)
|
---|
| 172 | {
|
---|
| 173 | $this->keyRevocationActionType = $keyRevocationActionType;
|
---|
| 174 | }
|
---|
| 175 | /**
|
---|
| 176 | * @return string
|
---|
| 177 | */
|
---|
| 178 | public function getKeyRevocationActionType()
|
---|
| 179 | {
|
---|
| 180 | return $this->keyRevocationActionType;
|
---|
| 181 | }
|
---|
| 182 | /**
|
---|
| 183 | * @param string[]
|
---|
| 184 | */
|
---|
| 185 | public function setLabels($labels)
|
---|
| 186 | {
|
---|
| 187 | $this->labels = $labels;
|
---|
| 188 | }
|
---|
| 189 | /**
|
---|
| 190 | * @return string[]
|
---|
| 191 | */
|
---|
| 192 | public function getLabels()
|
---|
| 193 | {
|
---|
| 194 | return $this->labels;
|
---|
| 195 | }
|
---|
| 196 | /**
|
---|
| 197 | * @param string
|
---|
| 198 | */
|
---|
| 199 | public function setMachineType($machineType)
|
---|
| 200 | {
|
---|
| 201 | $this->machineType = $machineType;
|
---|
| 202 | }
|
---|
| 203 | /**
|
---|
| 204 | * @return string
|
---|
| 205 | */
|
---|
| 206 | public function getMachineType()
|
---|
| 207 | {
|
---|
| 208 | return $this->machineType;
|
---|
| 209 | }
|
---|
| 210 | /**
|
---|
| 211 | * @param Metadata
|
---|
| 212 | */
|
---|
| 213 | public function setMetadata(Metadata $metadata)
|
---|
| 214 | {
|
---|
| 215 | $this->metadata = $metadata;
|
---|
| 216 | }
|
---|
| 217 | /**
|
---|
| 218 | * @return Metadata
|
---|
| 219 | */
|
---|
| 220 | public function getMetadata()
|
---|
| 221 | {
|
---|
| 222 | return $this->metadata;
|
---|
| 223 | }
|
---|
| 224 | /**
|
---|
| 225 | * @param string
|
---|
| 226 | */
|
---|
| 227 | public function setMinCpuPlatform($minCpuPlatform)
|
---|
| 228 | {
|
---|
| 229 | $this->minCpuPlatform = $minCpuPlatform;
|
---|
| 230 | }
|
---|
| 231 | /**
|
---|
| 232 | * @return string
|
---|
| 233 | */
|
---|
| 234 | public function getMinCpuPlatform()
|
---|
| 235 | {
|
---|
| 236 | return $this->minCpuPlatform;
|
---|
| 237 | }
|
---|
| 238 | /**
|
---|
| 239 | * @param NetworkInterface[]
|
---|
| 240 | */
|
---|
| 241 | public function setNetworkInterfaces($networkInterfaces)
|
---|
| 242 | {
|
---|
| 243 | $this->networkInterfaces = $networkInterfaces;
|
---|
| 244 | }
|
---|
| 245 | /**
|
---|
| 246 | * @return NetworkInterface[]
|
---|
| 247 | */
|
---|
| 248 | public function getNetworkInterfaces()
|
---|
| 249 | {
|
---|
| 250 | return $this->networkInterfaces;
|
---|
| 251 | }
|
---|
| 252 | /**
|
---|
| 253 | * @param NetworkPerformanceConfig
|
---|
| 254 | */
|
---|
| 255 | public function setNetworkPerformanceConfig(NetworkPerformanceConfig $networkPerformanceConfig)
|
---|
| 256 | {
|
---|
| 257 | $this->networkPerformanceConfig = $networkPerformanceConfig;
|
---|
| 258 | }
|
---|
| 259 | /**
|
---|
| 260 | * @return NetworkPerformanceConfig
|
---|
| 261 | */
|
---|
| 262 | public function getNetworkPerformanceConfig()
|
---|
| 263 | {
|
---|
| 264 | return $this->networkPerformanceConfig;
|
---|
| 265 | }
|
---|
| 266 | /**
|
---|
| 267 | * @param string
|
---|
| 268 | */
|
---|
| 269 | public function setPrivateIpv6GoogleAccess($privateIpv6GoogleAccess)
|
---|
| 270 | {
|
---|
| 271 | $this->privateIpv6GoogleAccess = $privateIpv6GoogleAccess;
|
---|
| 272 | }
|
---|
| 273 | /**
|
---|
| 274 | * @return string
|
---|
| 275 | */
|
---|
| 276 | public function getPrivateIpv6GoogleAccess()
|
---|
| 277 | {
|
---|
| 278 | return $this->privateIpv6GoogleAccess;
|
---|
| 279 | }
|
---|
| 280 | /**
|
---|
| 281 | * @param ReservationAffinity
|
---|
| 282 | */
|
---|
| 283 | public function setReservationAffinity(ReservationAffinity $reservationAffinity)
|
---|
| 284 | {
|
---|
| 285 | $this->reservationAffinity = $reservationAffinity;
|
---|
| 286 | }
|
---|
| 287 | /**
|
---|
| 288 | * @return ReservationAffinity
|
---|
| 289 | */
|
---|
| 290 | public function getReservationAffinity()
|
---|
| 291 | {
|
---|
| 292 | return $this->reservationAffinity;
|
---|
| 293 | }
|
---|
| 294 | /**
|
---|
| 295 | * @param string[]
|
---|
| 296 | */
|
---|
| 297 | public function setResourceManagerTags($resourceManagerTags)
|
---|
| 298 | {
|
---|
| 299 | $this->resourceManagerTags = $resourceManagerTags;
|
---|
| 300 | }
|
---|
| 301 | /**
|
---|
| 302 | * @return string[]
|
---|
| 303 | */
|
---|
| 304 | public function getResourceManagerTags()
|
---|
| 305 | {
|
---|
| 306 | return $this->resourceManagerTags;
|
---|
| 307 | }
|
---|
| 308 | /**
|
---|
| 309 | * @param string[]
|
---|
| 310 | */
|
---|
| 311 | public function setResourcePolicies($resourcePolicies)
|
---|
| 312 | {
|
---|
| 313 | $this->resourcePolicies = $resourcePolicies;
|
---|
| 314 | }
|
---|
| 315 | /**
|
---|
| 316 | * @return string[]
|
---|
| 317 | */
|
---|
| 318 | public function getResourcePolicies()
|
---|
| 319 | {
|
---|
| 320 | return $this->resourcePolicies;
|
---|
| 321 | }
|
---|
| 322 | /**
|
---|
| 323 | * @param Scheduling
|
---|
| 324 | */
|
---|
| 325 | public function setScheduling(Scheduling $scheduling)
|
---|
| 326 | {
|
---|
| 327 | $this->scheduling = $scheduling;
|
---|
| 328 | }
|
---|
| 329 | /**
|
---|
| 330 | * @return Scheduling
|
---|
| 331 | */
|
---|
| 332 | public function getScheduling()
|
---|
| 333 | {
|
---|
| 334 | return $this->scheduling;
|
---|
| 335 | }
|
---|
| 336 | /**
|
---|
| 337 | * @param ServiceAccount[]
|
---|
| 338 | */
|
---|
| 339 | public function setServiceAccounts($serviceAccounts)
|
---|
| 340 | {
|
---|
| 341 | $this->serviceAccounts = $serviceAccounts;
|
---|
| 342 | }
|
---|
| 343 | /**
|
---|
| 344 | * @return ServiceAccount[]
|
---|
| 345 | */
|
---|
| 346 | public function getServiceAccounts()
|
---|
| 347 | {
|
---|
| 348 | return $this->serviceAccounts;
|
---|
| 349 | }
|
---|
| 350 | /**
|
---|
| 351 | * @param ShieldedInstanceConfig
|
---|
| 352 | */
|
---|
| 353 | public function setShieldedInstanceConfig(ShieldedInstanceConfig $shieldedInstanceConfig)
|
---|
| 354 | {
|
---|
| 355 | $this->shieldedInstanceConfig = $shieldedInstanceConfig;
|
---|
| 356 | }
|
---|
| 357 | /**
|
---|
| 358 | * @return ShieldedInstanceConfig
|
---|
| 359 | */
|
---|
| 360 | public function getShieldedInstanceConfig()
|
---|
| 361 | {
|
---|
| 362 | return $this->shieldedInstanceConfig;
|
---|
| 363 | }
|
---|
| 364 | /**
|
---|
| 365 | * @param Tags
|
---|
| 366 | */
|
---|
| 367 | public function setTags(Tags $tags)
|
---|
| 368 | {
|
---|
| 369 | $this->tags = $tags;
|
---|
| 370 | }
|
---|
| 371 | /**
|
---|
| 372 | * @return Tags
|
---|
| 373 | */
|
---|
| 374 | public function getTags()
|
---|
| 375 | {
|
---|
| 376 | return $this->tags;
|
---|
| 377 | }
|
---|
| 378 | }
|
---|
| 379 |
|
---|
| 380 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 381 | class_alias(InstanceProperties::class, 'Google_Service_Compute_InstanceProperties');
|
---|