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 InstanceConfig extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'replicas';
|
---|
23 | /**
|
---|
24 | * @var string
|
---|
25 | */
|
---|
26 | public $baseConfig;
|
---|
27 | /**
|
---|
28 | * @var string
|
---|
29 | */
|
---|
30 | public $configType;
|
---|
31 | /**
|
---|
32 | * @var string
|
---|
33 | */
|
---|
34 | public $displayName;
|
---|
35 | /**
|
---|
36 | * @var string
|
---|
37 | */
|
---|
38 | public $etag;
|
---|
39 | /**
|
---|
40 | * @var string
|
---|
41 | */
|
---|
42 | public $freeInstanceAvailability;
|
---|
43 | /**
|
---|
44 | * @var string[]
|
---|
45 | */
|
---|
46 | public $labels;
|
---|
47 | /**
|
---|
48 | * @var string[]
|
---|
49 | */
|
---|
50 | public $leaderOptions;
|
---|
51 | /**
|
---|
52 | * @var string
|
---|
53 | */
|
---|
54 | public $name;
|
---|
55 | protected $optionalReplicasType = ReplicaInfo::class;
|
---|
56 | protected $optionalReplicasDataType = 'array';
|
---|
57 | /**
|
---|
58 | * @var string
|
---|
59 | */
|
---|
60 | public $quorumType;
|
---|
61 | /**
|
---|
62 | * @var bool
|
---|
63 | */
|
---|
64 | public $reconciling;
|
---|
65 | protected $replicasType = ReplicaInfo::class;
|
---|
66 | protected $replicasDataType = 'array';
|
---|
67 | /**
|
---|
68 | * @var string
|
---|
69 | */
|
---|
70 | public $state;
|
---|
71 | /**
|
---|
72 | * @var string
|
---|
73 | */
|
---|
74 | public $storageLimitPerProcessingUnit;
|
---|
75 |
|
---|
76 | /**
|
---|
77 | * @param string
|
---|
78 | */
|
---|
79 | public function setBaseConfig($baseConfig)
|
---|
80 | {
|
---|
81 | $this->baseConfig = $baseConfig;
|
---|
82 | }
|
---|
83 | /**
|
---|
84 | * @return string
|
---|
85 | */
|
---|
86 | public function getBaseConfig()
|
---|
87 | {
|
---|
88 | return $this->baseConfig;
|
---|
89 | }
|
---|
90 | /**
|
---|
91 | * @param string
|
---|
92 | */
|
---|
93 | public function setConfigType($configType)
|
---|
94 | {
|
---|
95 | $this->configType = $configType;
|
---|
96 | }
|
---|
97 | /**
|
---|
98 | * @return string
|
---|
99 | */
|
---|
100 | public function getConfigType()
|
---|
101 | {
|
---|
102 | return $this->configType;
|
---|
103 | }
|
---|
104 | /**
|
---|
105 | * @param string
|
---|
106 | */
|
---|
107 | public function setDisplayName($displayName)
|
---|
108 | {
|
---|
109 | $this->displayName = $displayName;
|
---|
110 | }
|
---|
111 | /**
|
---|
112 | * @return string
|
---|
113 | */
|
---|
114 | public function getDisplayName()
|
---|
115 | {
|
---|
116 | return $this->displayName;
|
---|
117 | }
|
---|
118 | /**
|
---|
119 | * @param string
|
---|
120 | */
|
---|
121 | public function setEtag($etag)
|
---|
122 | {
|
---|
123 | $this->etag = $etag;
|
---|
124 | }
|
---|
125 | /**
|
---|
126 | * @return string
|
---|
127 | */
|
---|
128 | public function getEtag()
|
---|
129 | {
|
---|
130 | return $this->etag;
|
---|
131 | }
|
---|
132 | /**
|
---|
133 | * @param string
|
---|
134 | */
|
---|
135 | public function setFreeInstanceAvailability($freeInstanceAvailability)
|
---|
136 | {
|
---|
137 | $this->freeInstanceAvailability = $freeInstanceAvailability;
|
---|
138 | }
|
---|
139 | /**
|
---|
140 | * @return string
|
---|
141 | */
|
---|
142 | public function getFreeInstanceAvailability()
|
---|
143 | {
|
---|
144 | return $this->freeInstanceAvailability;
|
---|
145 | }
|
---|
146 | /**
|
---|
147 | * @param string[]
|
---|
148 | */
|
---|
149 | public function setLabels($labels)
|
---|
150 | {
|
---|
151 | $this->labels = $labels;
|
---|
152 | }
|
---|
153 | /**
|
---|
154 | * @return string[]
|
---|
155 | */
|
---|
156 | public function getLabels()
|
---|
157 | {
|
---|
158 | return $this->labels;
|
---|
159 | }
|
---|
160 | /**
|
---|
161 | * @param string[]
|
---|
162 | */
|
---|
163 | public function setLeaderOptions($leaderOptions)
|
---|
164 | {
|
---|
165 | $this->leaderOptions = $leaderOptions;
|
---|
166 | }
|
---|
167 | /**
|
---|
168 | * @return string[]
|
---|
169 | */
|
---|
170 | public function getLeaderOptions()
|
---|
171 | {
|
---|
172 | return $this->leaderOptions;
|
---|
173 | }
|
---|
174 | /**
|
---|
175 | * @param string
|
---|
176 | */
|
---|
177 | public function setName($name)
|
---|
178 | {
|
---|
179 | $this->name = $name;
|
---|
180 | }
|
---|
181 | /**
|
---|
182 | * @return string
|
---|
183 | */
|
---|
184 | public function getName()
|
---|
185 | {
|
---|
186 | return $this->name;
|
---|
187 | }
|
---|
188 | /**
|
---|
189 | * @param ReplicaInfo[]
|
---|
190 | */
|
---|
191 | public function setOptionalReplicas($optionalReplicas)
|
---|
192 | {
|
---|
193 | $this->optionalReplicas = $optionalReplicas;
|
---|
194 | }
|
---|
195 | /**
|
---|
196 | * @return ReplicaInfo[]
|
---|
197 | */
|
---|
198 | public function getOptionalReplicas()
|
---|
199 | {
|
---|
200 | return $this->optionalReplicas;
|
---|
201 | }
|
---|
202 | /**
|
---|
203 | * @param string
|
---|
204 | */
|
---|
205 | public function setQuorumType($quorumType)
|
---|
206 | {
|
---|
207 | $this->quorumType = $quorumType;
|
---|
208 | }
|
---|
209 | /**
|
---|
210 | * @return string
|
---|
211 | */
|
---|
212 | public function getQuorumType()
|
---|
213 | {
|
---|
214 | return $this->quorumType;
|
---|
215 | }
|
---|
216 | /**
|
---|
217 | * @param bool
|
---|
218 | */
|
---|
219 | public function setReconciling($reconciling)
|
---|
220 | {
|
---|
221 | $this->reconciling = $reconciling;
|
---|
222 | }
|
---|
223 | /**
|
---|
224 | * @return bool
|
---|
225 | */
|
---|
226 | public function getReconciling()
|
---|
227 | {
|
---|
228 | return $this->reconciling;
|
---|
229 | }
|
---|
230 | /**
|
---|
231 | * @param ReplicaInfo[]
|
---|
232 | */
|
---|
233 | public function setReplicas($replicas)
|
---|
234 | {
|
---|
235 | $this->replicas = $replicas;
|
---|
236 | }
|
---|
237 | /**
|
---|
238 | * @return ReplicaInfo[]
|
---|
239 | */
|
---|
240 | public function getReplicas()
|
---|
241 | {
|
---|
242 | return $this->replicas;
|
---|
243 | }
|
---|
244 | /**
|
---|
245 | * @param string
|
---|
246 | */
|
---|
247 | public function setState($state)
|
---|
248 | {
|
---|
249 | $this->state = $state;
|
---|
250 | }
|
---|
251 | /**
|
---|
252 | * @return string
|
---|
253 | */
|
---|
254 | public function getState()
|
---|
255 | {
|
---|
256 | return $this->state;
|
---|
257 | }
|
---|
258 | /**
|
---|
259 | * @param string
|
---|
260 | */
|
---|
261 | public function setStorageLimitPerProcessingUnit($storageLimitPerProcessingUnit)
|
---|
262 | {
|
---|
263 | $this->storageLimitPerProcessingUnit = $storageLimitPerProcessingUnit;
|
---|
264 | }
|
---|
265 | /**
|
---|
266 | * @return string
|
---|
267 | */
|
---|
268 | public function getStorageLimitPerProcessingUnit()
|
---|
269 | {
|
---|
270 | return $this->storageLimitPerProcessingUnit;
|
---|
271 | }
|
---|
272 | }
|
---|
273 |
|
---|
274 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
275 | class_alias(InstanceConfig::class, 'Google_Service_Spanner_InstanceConfig');
|
---|