[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\CloudRedis;
|
---|
| 19 |
|
---|
| 20 | class DatabaseResourceMetadata extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'entitlements';
|
---|
| 23 | protected $availabilityConfigurationType = AvailabilityConfiguration::class;
|
---|
| 24 | protected $availabilityConfigurationDataType = '';
|
---|
| 25 | protected $backupConfigurationType = BackupConfiguration::class;
|
---|
| 26 | protected $backupConfigurationDataType = '';
|
---|
| 27 | protected $backupRunType = BackupRun::class;
|
---|
| 28 | protected $backupRunDataType = '';
|
---|
| 29 | /**
|
---|
| 30 | * @var string
|
---|
| 31 | */
|
---|
| 32 | public $creationTime;
|
---|
| 33 | /**
|
---|
| 34 | * @var string
|
---|
| 35 | */
|
---|
| 36 | public $currentState;
|
---|
| 37 | protected $customMetadataType = CustomMetadataData::class;
|
---|
| 38 | protected $customMetadataDataType = '';
|
---|
| 39 | /**
|
---|
| 40 | * @var string
|
---|
| 41 | */
|
---|
| 42 | public $edition;
|
---|
| 43 | protected $entitlementsType = Entitlement::class;
|
---|
| 44 | protected $entitlementsDataType = 'array';
|
---|
| 45 | /**
|
---|
| 46 | * @var string
|
---|
| 47 | */
|
---|
| 48 | public $expectedState;
|
---|
| 49 | protected $idType = DatabaseResourceId::class;
|
---|
| 50 | protected $idDataType = '';
|
---|
| 51 | /**
|
---|
| 52 | * @var string
|
---|
| 53 | */
|
---|
| 54 | public $instanceType;
|
---|
| 55 | /**
|
---|
| 56 | * @var string
|
---|
| 57 | */
|
---|
| 58 | public $location;
|
---|
| 59 | protected $machineConfigurationType = MachineConfiguration::class;
|
---|
| 60 | protected $machineConfigurationDataType = '';
|
---|
| 61 | protected $primaryResourceIdType = DatabaseResourceId::class;
|
---|
| 62 | protected $primaryResourceIdDataType = '';
|
---|
| 63 | /**
|
---|
| 64 | * @var string
|
---|
| 65 | */
|
---|
| 66 | public $primaryResourceLocation;
|
---|
| 67 | protected $productType = Product::class;
|
---|
| 68 | protected $productDataType = '';
|
---|
| 69 | /**
|
---|
| 70 | * @var string
|
---|
| 71 | */
|
---|
| 72 | public $resourceContainer;
|
---|
| 73 | /**
|
---|
| 74 | * @var string
|
---|
| 75 | */
|
---|
| 76 | public $resourceName;
|
---|
| 77 | protected $tagsSetType = Tags::class;
|
---|
| 78 | protected $tagsSetDataType = '';
|
---|
| 79 | /**
|
---|
| 80 | * @var string
|
---|
| 81 | */
|
---|
| 82 | public $updationTime;
|
---|
| 83 | protected $userLabelSetType = UserLabels::class;
|
---|
| 84 | protected $userLabelSetDataType = '';
|
---|
| 85 |
|
---|
| 86 | /**
|
---|
| 87 | * @param AvailabilityConfiguration
|
---|
| 88 | */
|
---|
| 89 | public function setAvailabilityConfiguration(AvailabilityConfiguration $availabilityConfiguration)
|
---|
| 90 | {
|
---|
| 91 | $this->availabilityConfiguration = $availabilityConfiguration;
|
---|
| 92 | }
|
---|
| 93 | /**
|
---|
| 94 | * @return AvailabilityConfiguration
|
---|
| 95 | */
|
---|
| 96 | public function getAvailabilityConfiguration()
|
---|
| 97 | {
|
---|
| 98 | return $this->availabilityConfiguration;
|
---|
| 99 | }
|
---|
| 100 | /**
|
---|
| 101 | * @param BackupConfiguration
|
---|
| 102 | */
|
---|
| 103 | public function setBackupConfiguration(BackupConfiguration $backupConfiguration)
|
---|
| 104 | {
|
---|
| 105 | $this->backupConfiguration = $backupConfiguration;
|
---|
| 106 | }
|
---|
| 107 | /**
|
---|
| 108 | * @return BackupConfiguration
|
---|
| 109 | */
|
---|
| 110 | public function getBackupConfiguration()
|
---|
| 111 | {
|
---|
| 112 | return $this->backupConfiguration;
|
---|
| 113 | }
|
---|
| 114 | /**
|
---|
| 115 | * @param BackupRun
|
---|
| 116 | */
|
---|
| 117 | public function setBackupRun(BackupRun $backupRun)
|
---|
| 118 | {
|
---|
| 119 | $this->backupRun = $backupRun;
|
---|
| 120 | }
|
---|
| 121 | /**
|
---|
| 122 | * @return BackupRun
|
---|
| 123 | */
|
---|
| 124 | public function getBackupRun()
|
---|
| 125 | {
|
---|
| 126 | return $this->backupRun;
|
---|
| 127 | }
|
---|
| 128 | /**
|
---|
| 129 | * @param string
|
---|
| 130 | */
|
---|
| 131 | public function setCreationTime($creationTime)
|
---|
| 132 | {
|
---|
| 133 | $this->creationTime = $creationTime;
|
---|
| 134 | }
|
---|
| 135 | /**
|
---|
| 136 | * @return string
|
---|
| 137 | */
|
---|
| 138 | public function getCreationTime()
|
---|
| 139 | {
|
---|
| 140 | return $this->creationTime;
|
---|
| 141 | }
|
---|
| 142 | /**
|
---|
| 143 | * @param string
|
---|
| 144 | */
|
---|
| 145 | public function setCurrentState($currentState)
|
---|
| 146 | {
|
---|
| 147 | $this->currentState = $currentState;
|
---|
| 148 | }
|
---|
| 149 | /**
|
---|
| 150 | * @return string
|
---|
| 151 | */
|
---|
| 152 | public function getCurrentState()
|
---|
| 153 | {
|
---|
| 154 | return $this->currentState;
|
---|
| 155 | }
|
---|
| 156 | /**
|
---|
| 157 | * @param CustomMetadataData
|
---|
| 158 | */
|
---|
| 159 | public function setCustomMetadata(CustomMetadataData $customMetadata)
|
---|
| 160 | {
|
---|
| 161 | $this->customMetadata = $customMetadata;
|
---|
| 162 | }
|
---|
| 163 | /**
|
---|
| 164 | * @return CustomMetadataData
|
---|
| 165 | */
|
---|
| 166 | public function getCustomMetadata()
|
---|
| 167 | {
|
---|
| 168 | return $this->customMetadata;
|
---|
| 169 | }
|
---|
| 170 | /**
|
---|
| 171 | * @param string
|
---|
| 172 | */
|
---|
| 173 | public function setEdition($edition)
|
---|
| 174 | {
|
---|
| 175 | $this->edition = $edition;
|
---|
| 176 | }
|
---|
| 177 | /**
|
---|
| 178 | * @return string
|
---|
| 179 | */
|
---|
| 180 | public function getEdition()
|
---|
| 181 | {
|
---|
| 182 | return $this->edition;
|
---|
| 183 | }
|
---|
| 184 | /**
|
---|
| 185 | * @param Entitlement[]
|
---|
| 186 | */
|
---|
| 187 | public function setEntitlements($entitlements)
|
---|
| 188 | {
|
---|
| 189 | $this->entitlements = $entitlements;
|
---|
| 190 | }
|
---|
| 191 | /**
|
---|
| 192 | * @return Entitlement[]
|
---|
| 193 | */
|
---|
| 194 | public function getEntitlements()
|
---|
| 195 | {
|
---|
| 196 | return $this->entitlements;
|
---|
| 197 | }
|
---|
| 198 | /**
|
---|
| 199 | * @param string
|
---|
| 200 | */
|
---|
| 201 | public function setExpectedState($expectedState)
|
---|
| 202 | {
|
---|
| 203 | $this->expectedState = $expectedState;
|
---|
| 204 | }
|
---|
| 205 | /**
|
---|
| 206 | * @return string
|
---|
| 207 | */
|
---|
| 208 | public function getExpectedState()
|
---|
| 209 | {
|
---|
| 210 | return $this->expectedState;
|
---|
| 211 | }
|
---|
| 212 | /**
|
---|
| 213 | * @param DatabaseResourceId
|
---|
| 214 | */
|
---|
| 215 | public function setId(DatabaseResourceId $id)
|
---|
| 216 | {
|
---|
| 217 | $this->id = $id;
|
---|
| 218 | }
|
---|
| 219 | /**
|
---|
| 220 | * @return DatabaseResourceId
|
---|
| 221 | */
|
---|
| 222 | public function getId()
|
---|
| 223 | {
|
---|
| 224 | return $this->id;
|
---|
| 225 | }
|
---|
| 226 | /**
|
---|
| 227 | * @param string
|
---|
| 228 | */
|
---|
| 229 | public function setInstanceType($instanceType)
|
---|
| 230 | {
|
---|
| 231 | $this->instanceType = $instanceType;
|
---|
| 232 | }
|
---|
| 233 | /**
|
---|
| 234 | * @return string
|
---|
| 235 | */
|
---|
| 236 | public function getInstanceType()
|
---|
| 237 | {
|
---|
| 238 | return $this->instanceType;
|
---|
| 239 | }
|
---|
| 240 | /**
|
---|
| 241 | * @param string
|
---|
| 242 | */
|
---|
| 243 | public function setLocation($location)
|
---|
| 244 | {
|
---|
| 245 | $this->location = $location;
|
---|
| 246 | }
|
---|
| 247 | /**
|
---|
| 248 | * @return string
|
---|
| 249 | */
|
---|
| 250 | public function getLocation()
|
---|
| 251 | {
|
---|
| 252 | return $this->location;
|
---|
| 253 | }
|
---|
| 254 | /**
|
---|
| 255 | * @param MachineConfiguration
|
---|
| 256 | */
|
---|
| 257 | public function setMachineConfiguration(MachineConfiguration $machineConfiguration)
|
---|
| 258 | {
|
---|
| 259 | $this->machineConfiguration = $machineConfiguration;
|
---|
| 260 | }
|
---|
| 261 | /**
|
---|
| 262 | * @return MachineConfiguration
|
---|
| 263 | */
|
---|
| 264 | public function getMachineConfiguration()
|
---|
| 265 | {
|
---|
| 266 | return $this->machineConfiguration;
|
---|
| 267 | }
|
---|
| 268 | /**
|
---|
| 269 | * @param DatabaseResourceId
|
---|
| 270 | */
|
---|
| 271 | public function setPrimaryResourceId(DatabaseResourceId $primaryResourceId)
|
---|
| 272 | {
|
---|
| 273 | $this->primaryResourceId = $primaryResourceId;
|
---|
| 274 | }
|
---|
| 275 | /**
|
---|
| 276 | * @return DatabaseResourceId
|
---|
| 277 | */
|
---|
| 278 | public function getPrimaryResourceId()
|
---|
| 279 | {
|
---|
| 280 | return $this->primaryResourceId;
|
---|
| 281 | }
|
---|
| 282 | /**
|
---|
| 283 | * @param string
|
---|
| 284 | */
|
---|
| 285 | public function setPrimaryResourceLocation($primaryResourceLocation)
|
---|
| 286 | {
|
---|
| 287 | $this->primaryResourceLocation = $primaryResourceLocation;
|
---|
| 288 | }
|
---|
| 289 | /**
|
---|
| 290 | * @return string
|
---|
| 291 | */
|
---|
| 292 | public function getPrimaryResourceLocation()
|
---|
| 293 | {
|
---|
| 294 | return $this->primaryResourceLocation;
|
---|
| 295 | }
|
---|
| 296 | /**
|
---|
| 297 | * @param Product
|
---|
| 298 | */
|
---|
| 299 | public function setProduct(Product $product)
|
---|
| 300 | {
|
---|
| 301 | $this->product = $product;
|
---|
| 302 | }
|
---|
| 303 | /**
|
---|
| 304 | * @return Product
|
---|
| 305 | */
|
---|
| 306 | public function getProduct()
|
---|
| 307 | {
|
---|
| 308 | return $this->product;
|
---|
| 309 | }
|
---|
| 310 | /**
|
---|
| 311 | * @param string
|
---|
| 312 | */
|
---|
| 313 | public function setResourceContainer($resourceContainer)
|
---|
| 314 | {
|
---|
| 315 | $this->resourceContainer = $resourceContainer;
|
---|
| 316 | }
|
---|
| 317 | /**
|
---|
| 318 | * @return string
|
---|
| 319 | */
|
---|
| 320 | public function getResourceContainer()
|
---|
| 321 | {
|
---|
| 322 | return $this->resourceContainer;
|
---|
| 323 | }
|
---|
| 324 | /**
|
---|
| 325 | * @param string
|
---|
| 326 | */
|
---|
| 327 | public function setResourceName($resourceName)
|
---|
| 328 | {
|
---|
| 329 | $this->resourceName = $resourceName;
|
---|
| 330 | }
|
---|
| 331 | /**
|
---|
| 332 | * @return string
|
---|
| 333 | */
|
---|
| 334 | public function getResourceName()
|
---|
| 335 | {
|
---|
| 336 | return $this->resourceName;
|
---|
| 337 | }
|
---|
| 338 | /**
|
---|
| 339 | * @param Tags
|
---|
| 340 | */
|
---|
| 341 | public function setTagsSet(Tags $tagsSet)
|
---|
| 342 | {
|
---|
| 343 | $this->tagsSet = $tagsSet;
|
---|
| 344 | }
|
---|
| 345 | /**
|
---|
| 346 | * @return Tags
|
---|
| 347 | */
|
---|
| 348 | public function getTagsSet()
|
---|
| 349 | {
|
---|
| 350 | return $this->tagsSet;
|
---|
| 351 | }
|
---|
| 352 | /**
|
---|
| 353 | * @param string
|
---|
| 354 | */
|
---|
| 355 | public function setUpdationTime($updationTime)
|
---|
| 356 | {
|
---|
| 357 | $this->updationTime = $updationTime;
|
---|
| 358 | }
|
---|
| 359 | /**
|
---|
| 360 | * @return string
|
---|
| 361 | */
|
---|
| 362 | public function getUpdationTime()
|
---|
| 363 | {
|
---|
| 364 | return $this->updationTime;
|
---|
| 365 | }
|
---|
| 366 | /**
|
---|
| 367 | * @param UserLabels
|
---|
| 368 | */
|
---|
| 369 | public function setUserLabelSet(UserLabels $userLabelSet)
|
---|
| 370 | {
|
---|
| 371 | $this->userLabelSet = $userLabelSet;
|
---|
| 372 | }
|
---|
| 373 | /**
|
---|
| 374 | * @return UserLabels
|
---|
| 375 | */
|
---|
| 376 | public function getUserLabelSet()
|
---|
| 377 | {
|
---|
| 378 | return $this->userLabelSet;
|
---|
| 379 | }
|
---|
| 380 | }
|
---|
| 381 |
|
---|
| 382 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 383 | class_alias(DatabaseResourceMetadata::class, 'Google_Service_CloudRedis_DatabaseResourceMetadata');
|
---|