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 18namespace Google\Service\Spanner; 19 20class 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 protected $encryptionConfigType = EncryptionConfig::class; 40 protected $encryptionConfigDataType = ''; 41 protected $encryptionInfoType = EncryptionInfo::class; 42 protected $encryptionInfoDataType = 'array'; 43 /** 44 * @var string 45 */ 46 public $name; 47 protected $restoreInfoType = RestoreInfo::class; 48 protected $restoreInfoDataType = ''; 49 /** 50 * @var string 51 */ 52 public $state; 53 /** 54 * @var string 55 */ 56 public $versionRetentionPeriod; 57 58 /** 59 * @param string 60 */ 61 public function setCreateTime($createTime) 62 { 63 $this->createTime = $createTime; 64 } 65 /** 66 * @return string 67 */ 68 public function getCreateTime() 69 { 70 return $this->createTime; 71 } 72 /** 73 * @param string 74 */ 75 public function setDatabaseDialect($databaseDialect) 76 { 77 $this->databaseDialect = $databaseDialect; 78 } 79 /** 80 * @return string 81 */ 82 public function getDatabaseDialect() 83 { 84 return $this->databaseDialect; 85 } 86 /** 87 * @param string 88 */ 89 public function setDefaultLeader($defaultLeader) 90 { 91 $this->defaultLeader = $defaultLeader; 92 } 93 /** 94 * @return string 95 */ 96 public function getDefaultLeader() 97 { 98 return $this->defaultLeader; 99 } 100 /** 101 * @param string 102 */ 103 public function setEarliestVersionTime($earliestVersionTime) 104 { 105 $this->earliestVersionTime = $earliestVersionTime; 106 } 107 /** 108 * @return string 109 */ 110 public function getEarliestVersionTime() 111 { 112 return $this->earliestVersionTime; 113 } 114 /** 115 * @param EncryptionConfig 116 */ 117 public function setEncryptionConfig(EncryptionConfig $encryptionConfig) 118 { 119 $this->encryptionConfig = $encryptionConfig; 120 } 121 /** 122 * @return EncryptionConfig 123 */ 124 public function getEncryptionConfig() 125 { 126 return $this->encryptionConfig; 127 } 128 /** 129 * @param EncryptionInfo[] 130 */ 131 public function setEncryptionInfo($encryptionInfo) 132 { 133 $this->encryptionInfo = $encryptionInfo; 134 } 135 /** 136 * @return EncryptionInfo[] 137 */ 138 public function getEncryptionInfo() 139 { 140 return $this->encryptionInfo; 141 } 142 /** 143 * @param string 144 */ 145 public function setName($name) 146 { 147 $this->name = $name; 148 } 149 /** 150 * @return string 151 */ 152 public function getName() 153 { 154 return $this->name; 155 } 156 /** 157 * @param RestoreInfo 158 */ 159 public function setRestoreInfo(RestoreInfo $restoreInfo) 160 { 161 $this->restoreInfo = $restoreInfo; 162 } 163 /** 164 * @return RestoreInfo 165 */ 166 public function getRestoreInfo() 167 { 168 return $this->restoreInfo; 169 } 170 /** 171 * @param string 172 */ 173 public function setState($state) 174 { 175 $this->state = $state; 176 } 177 /** 178 * @return string 179 */ 180 public function getState() 181 { 182 return $this->state; 183 } 184 /** 185 * @param string 186 */ 187 public function setVersionRetentionPeriod($versionRetentionPeriod) 188 { 189 $this->versionRetentionPeriod = $versionRetentionPeriod; 190 } 191 /** 192 * @return string 193 */ 194 public function getVersionRetentionPeriod() 195 { 196 return $this->versionRetentionPeriod; 197 } 198} 199 200// Adding a class alias for backwards compatibility with the previous class name. 201class_alias(Database::class, 'Google_Service_Spanner_Database'); 202