[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\Spanner;
|
---|
| 19 |
|
---|
| 20 | class Database extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'encryptionInfo';
|
---|
| 23 | /**
|
---|
| 24 | * @var string
|
---|
| 25 | */
|
---|
| 26 | public $createTime;
|
---|
| 27 | /**
|
---|
| 28 | * @var string
|
---|
| 29 | */
|
---|
| 30 | public $databaseDialect;
|
---|
| 31 | /**
|
---|
| 32 | * @var string
|
---|
| 33 | */
|
---|
| 34 | public $defaultLeader;
|
---|
| 35 | /**
|
---|
| 36 | * @var string
|
---|
| 37 | */
|
---|
| 38 | public $earliestVersionTime;
|
---|
| 39 | /**
|
---|
| 40 | * @var bool
|
---|
| 41 | */
|
---|
| 42 | public $enableDropProtection;
|
---|
| 43 | protected $encryptionConfigType = EncryptionConfig::class;
|
---|
| 44 | protected $encryptionConfigDataType = '';
|
---|
| 45 | protected $encryptionInfoType = EncryptionInfo::class;
|
---|
| 46 | protected $encryptionInfoDataType = 'array';
|
---|
| 47 | /**
|
---|
| 48 | * @var string
|
---|
| 49 | */
|
---|
| 50 | public $name;
|
---|
| 51 | protected $quorumInfoType = QuorumInfo::class;
|
---|
| 52 | protected $quorumInfoDataType = '';
|
---|
| 53 | /**
|
---|
| 54 | * @var bool
|
---|
| 55 | */
|
---|
| 56 | public $reconciling;
|
---|
| 57 | protected $restoreInfoType = RestoreInfo::class;
|
---|
| 58 | protected $restoreInfoDataType = '';
|
---|
| 59 | /**
|
---|
| 60 | * @var string
|
---|
| 61 | */
|
---|
| 62 | public $state;
|
---|
| 63 | /**
|
---|
| 64 | * @var string
|
---|
| 65 | */
|
---|
| 66 | public $versionRetentionPeriod;
|
---|
| 67 |
|
---|
| 68 | /**
|
---|
| 69 | * @param string
|
---|
| 70 | */
|
---|
| 71 | public function setCreateTime($createTime)
|
---|
| 72 | {
|
---|
| 73 | $this->createTime = $createTime;
|
---|
| 74 | }
|
---|
| 75 | /**
|
---|
| 76 | * @return string
|
---|
| 77 | */
|
---|
| 78 | public function getCreateTime()
|
---|
| 79 | {
|
---|
| 80 | return $this->createTime;
|
---|
| 81 | }
|
---|
| 82 | /**
|
---|
| 83 | * @param string
|
---|
| 84 | */
|
---|
| 85 | public function setDatabaseDialect($databaseDialect)
|
---|
| 86 | {
|
---|
| 87 | $this->databaseDialect = $databaseDialect;
|
---|
| 88 | }
|
---|
| 89 | /**
|
---|
| 90 | * @return string
|
---|
| 91 | */
|
---|
| 92 | public function getDatabaseDialect()
|
---|
| 93 | {
|
---|
| 94 | return $this->databaseDialect;
|
---|
| 95 | }
|
---|
| 96 | /**
|
---|
| 97 | * @param string
|
---|
| 98 | */
|
---|
| 99 | public function setDefaultLeader($defaultLeader)
|
---|
| 100 | {
|
---|
| 101 | $this->defaultLeader = $defaultLeader;
|
---|
| 102 | }
|
---|
| 103 | /**
|
---|
| 104 | * @return string
|
---|
| 105 | */
|
---|
| 106 | public function getDefaultLeader()
|
---|
| 107 | {
|
---|
| 108 | return $this->defaultLeader;
|
---|
| 109 | }
|
---|
| 110 | /**
|
---|
| 111 | * @param string
|
---|
| 112 | */
|
---|
| 113 | public function setEarliestVersionTime($earliestVersionTime)
|
---|
| 114 | {
|
---|
| 115 | $this->earliestVersionTime = $earliestVersionTime;
|
---|
| 116 | }
|
---|
| 117 | /**
|
---|
| 118 | * @return string
|
---|
| 119 | */
|
---|
| 120 | public function getEarliestVersionTime()
|
---|
| 121 | {
|
---|
| 122 | return $this->earliestVersionTime;
|
---|
| 123 | }
|
---|
| 124 | /**
|
---|
| 125 | * @param bool
|
---|
| 126 | */
|
---|
| 127 | public function setEnableDropProtection($enableDropProtection)
|
---|
| 128 | {
|
---|
| 129 | $this->enableDropProtection = $enableDropProtection;
|
---|
| 130 | }
|
---|
| 131 | /**
|
---|
| 132 | * @return bool
|
---|
| 133 | */
|
---|
| 134 | public function getEnableDropProtection()
|
---|
| 135 | {
|
---|
| 136 | return $this->enableDropProtection;
|
---|
| 137 | }
|
---|
| 138 | /**
|
---|
| 139 | * @param EncryptionConfig
|
---|
| 140 | */
|
---|
| 141 | public function setEncryptionConfig(EncryptionConfig $encryptionConfig)
|
---|
| 142 | {
|
---|
| 143 | $this->encryptionConfig = $encryptionConfig;
|
---|
| 144 | }
|
---|
| 145 | /**
|
---|
| 146 | * @return EncryptionConfig
|
---|
| 147 | */
|
---|
| 148 | public function getEncryptionConfig()
|
---|
| 149 | {
|
---|
| 150 | return $this->encryptionConfig;
|
---|
| 151 | }
|
---|
| 152 | /**
|
---|
| 153 | * @param EncryptionInfo[]
|
---|
| 154 | */
|
---|
| 155 | public function setEncryptionInfo($encryptionInfo)
|
---|
| 156 | {
|
---|
| 157 | $this->encryptionInfo = $encryptionInfo;
|
---|
| 158 | }
|
---|
| 159 | /**
|
---|
| 160 | * @return EncryptionInfo[]
|
---|
| 161 | */
|
---|
| 162 | public function getEncryptionInfo()
|
---|
| 163 | {
|
---|
| 164 | return $this->encryptionInfo;
|
---|
| 165 | }
|
---|
| 166 | /**
|
---|
| 167 | * @param string
|
---|
| 168 | */
|
---|
| 169 | public function setName($name)
|
---|
| 170 | {
|
---|
| 171 | $this->name = $name;
|
---|
| 172 | }
|
---|
| 173 | /**
|
---|
| 174 | * @return string
|
---|
| 175 | */
|
---|
| 176 | public function getName()
|
---|
| 177 | {
|
---|
| 178 | return $this->name;
|
---|
| 179 | }
|
---|
| 180 | /**
|
---|
| 181 | * @param QuorumInfo
|
---|
| 182 | */
|
---|
| 183 | public function setQuorumInfo(QuorumInfo $quorumInfo)
|
---|
| 184 | {
|
---|
| 185 | $this->quorumInfo = $quorumInfo;
|
---|
| 186 | }
|
---|
| 187 | /**
|
---|
| 188 | * @return QuorumInfo
|
---|
| 189 | */
|
---|
| 190 | public function getQuorumInfo()
|
---|
| 191 | {
|
---|
| 192 | return $this->quorumInfo;
|
---|
| 193 | }
|
---|
| 194 | /**
|
---|
| 195 | * @param bool
|
---|
| 196 | */
|
---|
| 197 | public function setReconciling($reconciling)
|
---|
| 198 | {
|
---|
| 199 | $this->reconciling = $reconciling;
|
---|
| 200 | }
|
---|
| 201 | /**
|
---|
| 202 | * @return bool
|
---|
| 203 | */
|
---|
| 204 | public function getReconciling()
|
---|
| 205 | {
|
---|
| 206 | return $this->reconciling;
|
---|
| 207 | }
|
---|
| 208 | /**
|
---|
| 209 | * @param RestoreInfo
|
---|
| 210 | */
|
---|
| 211 | public function setRestoreInfo(RestoreInfo $restoreInfo)
|
---|
| 212 | {
|
---|
| 213 | $this->restoreInfo = $restoreInfo;
|
---|
| 214 | }
|
---|
| 215 | /**
|
---|
| 216 | * @return RestoreInfo
|
---|
| 217 | */
|
---|
| 218 | public function getRestoreInfo()
|
---|
| 219 | {
|
---|
| 220 | return $this->restoreInfo;
|
---|
| 221 | }
|
---|
| 222 | /**
|
---|
| 223 | * @param string
|
---|
| 224 | */
|
---|
| 225 | public function setState($state)
|
---|
| 226 | {
|
---|
| 227 | $this->state = $state;
|
---|
| 228 | }
|
---|
| 229 | /**
|
---|
| 230 | * @return string
|
---|
| 231 | */
|
---|
| 232 | public function getState()
|
---|
| 233 | {
|
---|
| 234 | return $this->state;
|
---|
| 235 | }
|
---|
| 236 | /**
|
---|
| 237 | * @param string
|
---|
| 238 | */
|
---|
| 239 | public function setVersionRetentionPeriod($versionRetentionPeriod)
|
---|
| 240 | {
|
---|
| 241 | $this->versionRetentionPeriod = $versionRetentionPeriod;
|
---|
| 242 | }
|
---|
| 243 | /**
|
---|
| 244 | * @return string
|
---|
| 245 | */
|
---|
| 246 | public function getVersionRetentionPeriod()
|
---|
| 247 | {
|
---|
| 248 | return $this->versionRetentionPeriod;
|
---|
| 249 | }
|
---|
| 250 | }
|
---|
| 251 |
|
---|
| 252 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 253 | class_alias(Database::class, 'Google_Service_Spanner_Database');
|
---|