| [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\DatabaseMigrationService;
|
|---|
| 19 |
|
|---|
| 20 | class CloudSqlSettings extends \Google\Model
|
|---|
| 21 | {
|
|---|
| 22 | /**
|
|---|
| 23 | * @var string
|
|---|
| 24 | */
|
|---|
| 25 | public $activationPolicy;
|
|---|
| 26 | /**
|
|---|
| 27 | * @var bool
|
|---|
| 28 | */
|
|---|
| 29 | public $autoStorageIncrease;
|
|---|
| 30 | /**
|
|---|
| 31 | * @var string
|
|---|
| 32 | */
|
|---|
| 33 | public $availabilityType;
|
|---|
| 34 | /**
|
|---|
| 35 | * @var string
|
|---|
| 36 | */
|
|---|
| 37 | public $cmekKeyName;
|
|---|
| 38 | /**
|
|---|
| 39 | * @var string
|
|---|
| 40 | */
|
|---|
| 41 | public $collation;
|
|---|
| 42 | protected $dataCacheConfigType = DataCacheConfig::class;
|
|---|
| 43 | protected $dataCacheConfigDataType = '';
|
|---|
| 44 | /**
|
|---|
| 45 | * @var string
|
|---|
| 46 | */
|
|---|
| 47 | public $dataDiskSizeGb;
|
|---|
| 48 | /**
|
|---|
| 49 | * @var string
|
|---|
| 50 | */
|
|---|
| 51 | public $dataDiskType;
|
|---|
| 52 | /**
|
|---|
| 53 | * @var string[]
|
|---|
| 54 | */
|
|---|
| 55 | public $databaseFlags;
|
|---|
| 56 | /**
|
|---|
| 57 | * @var string
|
|---|
| 58 | */
|
|---|
| 59 | public $databaseVersion;
|
|---|
| 60 | /**
|
|---|
| 61 | * @var string
|
|---|
| 62 | */
|
|---|
| 63 | public $databaseVersionName;
|
|---|
| 64 | /**
|
|---|
| 65 | * @var string
|
|---|
| 66 | */
|
|---|
| 67 | public $edition;
|
|---|
| 68 | protected $ipConfigType = SqlIpConfig::class;
|
|---|
| 69 | protected $ipConfigDataType = '';
|
|---|
| 70 | /**
|
|---|
| 71 | * @var string
|
|---|
| 72 | */
|
|---|
| 73 | public $rootPassword;
|
|---|
| 74 | /**
|
|---|
| 75 | * @var bool
|
|---|
| 76 | */
|
|---|
| 77 | public $rootPasswordSet;
|
|---|
| 78 | /**
|
|---|
| 79 | * @var string
|
|---|
| 80 | */
|
|---|
| 81 | public $secondaryZone;
|
|---|
| 82 | /**
|
|---|
| 83 | * @var string
|
|---|
| 84 | */
|
|---|
| 85 | public $sourceId;
|
|---|
| 86 | /**
|
|---|
| 87 | * @var string
|
|---|
| 88 | */
|
|---|
| 89 | public $storageAutoResizeLimit;
|
|---|
| 90 | /**
|
|---|
| 91 | * @var string
|
|---|
| 92 | */
|
|---|
| 93 | public $tier;
|
|---|
| 94 | /**
|
|---|
| 95 | * @var string[]
|
|---|
| 96 | */
|
|---|
| 97 | public $userLabels;
|
|---|
| 98 | /**
|
|---|
| 99 | * @var string
|
|---|
| 100 | */
|
|---|
| 101 | public $zone;
|
|---|
| 102 |
|
|---|
| 103 | /**
|
|---|
| 104 | * @param string
|
|---|
| 105 | */
|
|---|
| 106 | public function setActivationPolicy($activationPolicy)
|
|---|
| 107 | {
|
|---|
| 108 | $this->activationPolicy = $activationPolicy;
|
|---|
| 109 | }
|
|---|
| 110 | /**
|
|---|
| 111 | * @return string
|
|---|
| 112 | */
|
|---|
| 113 | public function getActivationPolicy()
|
|---|
| 114 | {
|
|---|
| 115 | return $this->activationPolicy;
|
|---|
| 116 | }
|
|---|
| 117 | /**
|
|---|
| 118 | * @param bool
|
|---|
| 119 | */
|
|---|
| 120 | public function setAutoStorageIncrease($autoStorageIncrease)
|
|---|
| 121 | {
|
|---|
| 122 | $this->autoStorageIncrease = $autoStorageIncrease;
|
|---|
| 123 | }
|
|---|
| 124 | /**
|
|---|
| 125 | * @return bool
|
|---|
| 126 | */
|
|---|
| 127 | public function getAutoStorageIncrease()
|
|---|
| 128 | {
|
|---|
| 129 | return $this->autoStorageIncrease;
|
|---|
| 130 | }
|
|---|
| 131 | /**
|
|---|
| 132 | * @param string
|
|---|
| 133 | */
|
|---|
| 134 | public function setAvailabilityType($availabilityType)
|
|---|
| 135 | {
|
|---|
| 136 | $this->availabilityType = $availabilityType;
|
|---|
| 137 | }
|
|---|
| 138 | /**
|
|---|
| 139 | * @return string
|
|---|
| 140 | */
|
|---|
| 141 | public function getAvailabilityType()
|
|---|
| 142 | {
|
|---|
| 143 | return $this->availabilityType;
|
|---|
| 144 | }
|
|---|
| 145 | /**
|
|---|
| 146 | * @param string
|
|---|
| 147 | */
|
|---|
| 148 | public function setCmekKeyName($cmekKeyName)
|
|---|
| 149 | {
|
|---|
| 150 | $this->cmekKeyName = $cmekKeyName;
|
|---|
| 151 | }
|
|---|
| 152 | /**
|
|---|
| 153 | * @return string
|
|---|
| 154 | */
|
|---|
| 155 | public function getCmekKeyName()
|
|---|
| 156 | {
|
|---|
| 157 | return $this->cmekKeyName;
|
|---|
| 158 | }
|
|---|
| 159 | /**
|
|---|
| 160 | * @param string
|
|---|
| 161 | */
|
|---|
| 162 | public function setCollation($collation)
|
|---|
| 163 | {
|
|---|
| 164 | $this->collation = $collation;
|
|---|
| 165 | }
|
|---|
| 166 | /**
|
|---|
| 167 | * @return string
|
|---|
| 168 | */
|
|---|
| 169 | public function getCollation()
|
|---|
| 170 | {
|
|---|
| 171 | return $this->collation;
|
|---|
| 172 | }
|
|---|
| 173 | /**
|
|---|
| 174 | * @param DataCacheConfig
|
|---|
| 175 | */
|
|---|
| 176 | public function setDataCacheConfig(DataCacheConfig $dataCacheConfig)
|
|---|
| 177 | {
|
|---|
| 178 | $this->dataCacheConfig = $dataCacheConfig;
|
|---|
| 179 | }
|
|---|
| 180 | /**
|
|---|
| 181 | * @return DataCacheConfig
|
|---|
| 182 | */
|
|---|
| 183 | public function getDataCacheConfig()
|
|---|
| 184 | {
|
|---|
| 185 | return $this->dataCacheConfig;
|
|---|
| 186 | }
|
|---|
| 187 | /**
|
|---|
| 188 | * @param string
|
|---|
| 189 | */
|
|---|
| 190 | public function setDataDiskSizeGb($dataDiskSizeGb)
|
|---|
| 191 | {
|
|---|
| 192 | $this->dataDiskSizeGb = $dataDiskSizeGb;
|
|---|
| 193 | }
|
|---|
| 194 | /**
|
|---|
| 195 | * @return string
|
|---|
| 196 | */
|
|---|
| 197 | public function getDataDiskSizeGb()
|
|---|
| 198 | {
|
|---|
| 199 | return $this->dataDiskSizeGb;
|
|---|
| 200 | }
|
|---|
| 201 | /**
|
|---|
| 202 | * @param string
|
|---|
| 203 | */
|
|---|
| 204 | public function setDataDiskType($dataDiskType)
|
|---|
| 205 | {
|
|---|
| 206 | $this->dataDiskType = $dataDiskType;
|
|---|
| 207 | }
|
|---|
| 208 | /**
|
|---|
| 209 | * @return string
|
|---|
| 210 | */
|
|---|
| 211 | public function getDataDiskType()
|
|---|
| 212 | {
|
|---|
| 213 | return $this->dataDiskType;
|
|---|
| 214 | }
|
|---|
| 215 | /**
|
|---|
| 216 | * @param string[]
|
|---|
| 217 | */
|
|---|
| 218 | public function setDatabaseFlags($databaseFlags)
|
|---|
| 219 | {
|
|---|
| 220 | $this->databaseFlags = $databaseFlags;
|
|---|
| 221 | }
|
|---|
| 222 | /**
|
|---|
| 223 | * @return string[]
|
|---|
| 224 | */
|
|---|
| 225 | public function getDatabaseFlags()
|
|---|
| 226 | {
|
|---|
| 227 | return $this->databaseFlags;
|
|---|
| 228 | }
|
|---|
| 229 | /**
|
|---|
| 230 | * @param string
|
|---|
| 231 | */
|
|---|
| 232 | public function setDatabaseVersion($databaseVersion)
|
|---|
| 233 | {
|
|---|
| 234 | $this->databaseVersion = $databaseVersion;
|
|---|
| 235 | }
|
|---|
| 236 | /**
|
|---|
| 237 | * @return string
|
|---|
| 238 | */
|
|---|
| 239 | public function getDatabaseVersion()
|
|---|
| 240 | {
|
|---|
| 241 | return $this->databaseVersion;
|
|---|
| 242 | }
|
|---|
| 243 | /**
|
|---|
| 244 | * @param string
|
|---|
| 245 | */
|
|---|
| 246 | public function setDatabaseVersionName($databaseVersionName)
|
|---|
| 247 | {
|
|---|
| 248 | $this->databaseVersionName = $databaseVersionName;
|
|---|
| 249 | }
|
|---|
| 250 | /**
|
|---|
| 251 | * @return string
|
|---|
| 252 | */
|
|---|
| 253 | public function getDatabaseVersionName()
|
|---|
| 254 | {
|
|---|
| 255 | return $this->databaseVersionName;
|
|---|
| 256 | }
|
|---|
| 257 | /**
|
|---|
| 258 | * @param string
|
|---|
| 259 | */
|
|---|
| 260 | public function setEdition($edition)
|
|---|
| 261 | {
|
|---|
| 262 | $this->edition = $edition;
|
|---|
| 263 | }
|
|---|
| 264 | /**
|
|---|
| 265 | * @return string
|
|---|
| 266 | */
|
|---|
| 267 | public function getEdition()
|
|---|
| 268 | {
|
|---|
| 269 | return $this->edition;
|
|---|
| 270 | }
|
|---|
| 271 | /**
|
|---|
| 272 | * @param SqlIpConfig
|
|---|
| 273 | */
|
|---|
| 274 | public function setIpConfig(SqlIpConfig $ipConfig)
|
|---|
| 275 | {
|
|---|
| 276 | $this->ipConfig = $ipConfig;
|
|---|
| 277 | }
|
|---|
| 278 | /**
|
|---|
| 279 | * @return SqlIpConfig
|
|---|
| 280 | */
|
|---|
| 281 | public function getIpConfig()
|
|---|
| 282 | {
|
|---|
| 283 | return $this->ipConfig;
|
|---|
| 284 | }
|
|---|
| 285 | /**
|
|---|
| 286 | * @param string
|
|---|
| 287 | */
|
|---|
| 288 | public function setRootPassword($rootPassword)
|
|---|
| 289 | {
|
|---|
| 290 | $this->rootPassword = $rootPassword;
|
|---|
| 291 | }
|
|---|
| 292 | /**
|
|---|
| 293 | * @return string
|
|---|
| 294 | */
|
|---|
| 295 | public function getRootPassword()
|
|---|
| 296 | {
|
|---|
| 297 | return $this->rootPassword;
|
|---|
| 298 | }
|
|---|
| 299 | /**
|
|---|
| 300 | * @param bool
|
|---|
| 301 | */
|
|---|
| 302 | public function setRootPasswordSet($rootPasswordSet)
|
|---|
| 303 | {
|
|---|
| 304 | $this->rootPasswordSet = $rootPasswordSet;
|
|---|
| 305 | }
|
|---|
| 306 | /**
|
|---|
| 307 | * @return bool
|
|---|
| 308 | */
|
|---|
| 309 | public function getRootPasswordSet()
|
|---|
| 310 | {
|
|---|
| 311 | return $this->rootPasswordSet;
|
|---|
| 312 | }
|
|---|
| 313 | /**
|
|---|
| 314 | * @param string
|
|---|
| 315 | */
|
|---|
| 316 | public function setSecondaryZone($secondaryZone)
|
|---|
| 317 | {
|
|---|
| 318 | $this->secondaryZone = $secondaryZone;
|
|---|
| 319 | }
|
|---|
| 320 | /**
|
|---|
| 321 | * @return string
|
|---|
| 322 | */
|
|---|
| 323 | public function getSecondaryZone()
|
|---|
| 324 | {
|
|---|
| 325 | return $this->secondaryZone;
|
|---|
| 326 | }
|
|---|
| 327 | /**
|
|---|
| 328 | * @param string
|
|---|
| 329 | */
|
|---|
| 330 | public function setSourceId($sourceId)
|
|---|
| 331 | {
|
|---|
| 332 | $this->sourceId = $sourceId;
|
|---|
| 333 | }
|
|---|
| 334 | /**
|
|---|
| 335 | * @return string
|
|---|
| 336 | */
|
|---|
| 337 | public function getSourceId()
|
|---|
| 338 | {
|
|---|
| 339 | return $this->sourceId;
|
|---|
| 340 | }
|
|---|
| 341 | /**
|
|---|
| 342 | * @param string
|
|---|
| 343 | */
|
|---|
| 344 | public function setStorageAutoResizeLimit($storageAutoResizeLimit)
|
|---|
| 345 | {
|
|---|
| 346 | $this->storageAutoResizeLimit = $storageAutoResizeLimit;
|
|---|
| 347 | }
|
|---|
| 348 | /**
|
|---|
| 349 | * @return string
|
|---|
| 350 | */
|
|---|
| 351 | public function getStorageAutoResizeLimit()
|
|---|
| 352 | {
|
|---|
| 353 | return $this->storageAutoResizeLimit;
|
|---|
| 354 | }
|
|---|
| 355 | /**
|
|---|
| 356 | * @param string
|
|---|
| 357 | */
|
|---|
| 358 | public function setTier($tier)
|
|---|
| 359 | {
|
|---|
| 360 | $this->tier = $tier;
|
|---|
| 361 | }
|
|---|
| 362 | /**
|
|---|
| 363 | * @return string
|
|---|
| 364 | */
|
|---|
| 365 | public function getTier()
|
|---|
| 366 | {
|
|---|
| 367 | return $this->tier;
|
|---|
| 368 | }
|
|---|
| 369 | /**
|
|---|
| 370 | * @param string[]
|
|---|
| 371 | */
|
|---|
| 372 | public function setUserLabels($userLabels)
|
|---|
| 373 | {
|
|---|
| 374 | $this->userLabels = $userLabels;
|
|---|
| 375 | }
|
|---|
| 376 | /**
|
|---|
| 377 | * @return string[]
|
|---|
| 378 | */
|
|---|
| 379 | public function getUserLabels()
|
|---|
| 380 | {
|
|---|
| 381 | return $this->userLabels;
|
|---|
| 382 | }
|
|---|
| 383 | /**
|
|---|
| 384 | * @param string
|
|---|
| 385 | */
|
|---|
| 386 | public function setZone($zone)
|
|---|
| 387 | {
|
|---|
| 388 | $this->zone = $zone;
|
|---|
| 389 | }
|
|---|
| 390 | /**
|
|---|
| 391 | * @return string
|
|---|
| 392 | */
|
|---|
| 393 | public function getZone()
|
|---|
| 394 | {
|
|---|
| 395 | return $this->zone;
|
|---|
| 396 | }
|
|---|
| 397 | }
|
|---|
| 398 |
|
|---|
| 399 | // Adding a class alias for backwards compatibility with the previous class name.
|
|---|
| 400 | class_alias(CloudSqlSettings::class, 'Google_Service_DatabaseMigrationService_CloudSqlSettings');
|
|---|