[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\Container;
|
---|
| 19 |
|
---|
| 20 | class AutoprovisioningNodePoolDefaults extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'oauthScopes';
|
---|
| 23 | /**
|
---|
| 24 | * @var string
|
---|
| 25 | */
|
---|
| 26 | public $bootDiskKmsKey;
|
---|
| 27 | /**
|
---|
| 28 | * @var int
|
---|
| 29 | */
|
---|
| 30 | public $diskSizeGb;
|
---|
| 31 | /**
|
---|
| 32 | * @var string
|
---|
| 33 | */
|
---|
| 34 | public $diskType;
|
---|
| 35 | /**
|
---|
| 36 | * @var string
|
---|
| 37 | */
|
---|
| 38 | public $imageType;
|
---|
| 39 | /**
|
---|
| 40 | * @var bool
|
---|
| 41 | */
|
---|
| 42 | public $insecureKubeletReadonlyPortEnabled;
|
---|
| 43 | protected $managementType = NodeManagement::class;
|
---|
| 44 | protected $managementDataType = '';
|
---|
| 45 | /**
|
---|
| 46 | * @var string
|
---|
| 47 | */
|
---|
| 48 | public $minCpuPlatform;
|
---|
| 49 | /**
|
---|
| 50 | * @var string[]
|
---|
| 51 | */
|
---|
| 52 | public $oauthScopes;
|
---|
| 53 | /**
|
---|
| 54 | * @var string
|
---|
| 55 | */
|
---|
| 56 | public $serviceAccount;
|
---|
| 57 | protected $shieldedInstanceConfigType = ShieldedInstanceConfig::class;
|
---|
| 58 | protected $shieldedInstanceConfigDataType = '';
|
---|
| 59 | protected $upgradeSettingsType = UpgradeSettings::class;
|
---|
| 60 | protected $upgradeSettingsDataType = '';
|
---|
| 61 |
|
---|
| 62 | /**
|
---|
| 63 | * @param string
|
---|
| 64 | */
|
---|
| 65 | public function setBootDiskKmsKey($bootDiskKmsKey)
|
---|
| 66 | {
|
---|
| 67 | $this->bootDiskKmsKey = $bootDiskKmsKey;
|
---|
| 68 | }
|
---|
| 69 | /**
|
---|
| 70 | * @return string
|
---|
| 71 | */
|
---|
| 72 | public function getBootDiskKmsKey()
|
---|
| 73 | {
|
---|
| 74 | return $this->bootDiskKmsKey;
|
---|
| 75 | }
|
---|
| 76 | /**
|
---|
| 77 | * @param int
|
---|
| 78 | */
|
---|
| 79 | public function setDiskSizeGb($diskSizeGb)
|
---|
| 80 | {
|
---|
| 81 | $this->diskSizeGb = $diskSizeGb;
|
---|
| 82 | }
|
---|
| 83 | /**
|
---|
| 84 | * @return int
|
---|
| 85 | */
|
---|
| 86 | public function getDiskSizeGb()
|
---|
| 87 | {
|
---|
| 88 | return $this->diskSizeGb;
|
---|
| 89 | }
|
---|
| 90 | /**
|
---|
| 91 | * @param string
|
---|
| 92 | */
|
---|
| 93 | public function setDiskType($diskType)
|
---|
| 94 | {
|
---|
| 95 | $this->diskType = $diskType;
|
---|
| 96 | }
|
---|
| 97 | /**
|
---|
| 98 | * @return string
|
---|
| 99 | */
|
---|
| 100 | public function getDiskType()
|
---|
| 101 | {
|
---|
| 102 | return $this->diskType;
|
---|
| 103 | }
|
---|
| 104 | /**
|
---|
| 105 | * @param string
|
---|
| 106 | */
|
---|
| 107 | public function setImageType($imageType)
|
---|
| 108 | {
|
---|
| 109 | $this->imageType = $imageType;
|
---|
| 110 | }
|
---|
| 111 | /**
|
---|
| 112 | * @return string
|
---|
| 113 | */
|
---|
| 114 | public function getImageType()
|
---|
| 115 | {
|
---|
| 116 | return $this->imageType;
|
---|
| 117 | }
|
---|
| 118 | /**
|
---|
| 119 | * @param bool
|
---|
| 120 | */
|
---|
| 121 | public function setInsecureKubeletReadonlyPortEnabled($insecureKubeletReadonlyPortEnabled)
|
---|
| 122 | {
|
---|
| 123 | $this->insecureKubeletReadonlyPortEnabled = $insecureKubeletReadonlyPortEnabled;
|
---|
| 124 | }
|
---|
| 125 | /**
|
---|
| 126 | * @return bool
|
---|
| 127 | */
|
---|
| 128 | public function getInsecureKubeletReadonlyPortEnabled()
|
---|
| 129 | {
|
---|
| 130 | return $this->insecureKubeletReadonlyPortEnabled;
|
---|
| 131 | }
|
---|
| 132 | /**
|
---|
| 133 | * @param NodeManagement
|
---|
| 134 | */
|
---|
| 135 | public function setManagement(NodeManagement $management)
|
---|
| 136 | {
|
---|
| 137 | $this->management = $management;
|
---|
| 138 | }
|
---|
| 139 | /**
|
---|
| 140 | * @return NodeManagement
|
---|
| 141 | */
|
---|
| 142 | public function getManagement()
|
---|
| 143 | {
|
---|
| 144 | return $this->management;
|
---|
| 145 | }
|
---|
| 146 | /**
|
---|
| 147 | * @param string
|
---|
| 148 | */
|
---|
| 149 | public function setMinCpuPlatform($minCpuPlatform)
|
---|
| 150 | {
|
---|
| 151 | $this->minCpuPlatform = $minCpuPlatform;
|
---|
| 152 | }
|
---|
| 153 | /**
|
---|
| 154 | * @return string
|
---|
| 155 | */
|
---|
| 156 | public function getMinCpuPlatform()
|
---|
| 157 | {
|
---|
| 158 | return $this->minCpuPlatform;
|
---|
| 159 | }
|
---|
| 160 | /**
|
---|
| 161 | * @param string[]
|
---|
| 162 | */
|
---|
| 163 | public function setOauthScopes($oauthScopes)
|
---|
| 164 | {
|
---|
| 165 | $this->oauthScopes = $oauthScopes;
|
---|
| 166 | }
|
---|
| 167 | /**
|
---|
| 168 | * @return string[]
|
---|
| 169 | */
|
---|
| 170 | public function getOauthScopes()
|
---|
| 171 | {
|
---|
| 172 | return $this->oauthScopes;
|
---|
| 173 | }
|
---|
| 174 | /**
|
---|
| 175 | * @param string
|
---|
| 176 | */
|
---|
| 177 | public function setServiceAccount($serviceAccount)
|
---|
| 178 | {
|
---|
| 179 | $this->serviceAccount = $serviceAccount;
|
---|
| 180 | }
|
---|
| 181 | /**
|
---|
| 182 | * @return string
|
---|
| 183 | */
|
---|
| 184 | public function getServiceAccount()
|
---|
| 185 | {
|
---|
| 186 | return $this->serviceAccount;
|
---|
| 187 | }
|
---|
| 188 | /**
|
---|
| 189 | * @param ShieldedInstanceConfig
|
---|
| 190 | */
|
---|
| 191 | public function setShieldedInstanceConfig(ShieldedInstanceConfig $shieldedInstanceConfig)
|
---|
| 192 | {
|
---|
| 193 | $this->shieldedInstanceConfig = $shieldedInstanceConfig;
|
---|
| 194 | }
|
---|
| 195 | /**
|
---|
| 196 | * @return ShieldedInstanceConfig
|
---|
| 197 | */
|
---|
| 198 | public function getShieldedInstanceConfig()
|
---|
| 199 | {
|
---|
| 200 | return $this->shieldedInstanceConfig;
|
---|
| 201 | }
|
---|
| 202 | /**
|
---|
| 203 | * @param UpgradeSettings
|
---|
| 204 | */
|
---|
| 205 | public function setUpgradeSettings(UpgradeSettings $upgradeSettings)
|
---|
| 206 | {
|
---|
| 207 | $this->upgradeSettings = $upgradeSettings;
|
---|
| 208 | }
|
---|
| 209 | /**
|
---|
| 210 | * @return UpgradeSettings
|
---|
| 211 | */
|
---|
| 212 | public function getUpgradeSettings()
|
---|
| 213 | {
|
---|
| 214 | return $this->upgradeSettings;
|
---|
| 215 | }
|
---|
| 216 | }
|
---|
| 217 |
|
---|
| 218 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 219 | class_alias(AutoprovisioningNodePoolDefaults::class, 'Google_Service_Container_AutoprovisioningNodePoolDefaults');
|
---|