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\CloudAlloyDBAdmin;
|
---|
19 |
|
---|
20 | class Cluster extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var string[]
|
---|
24 | */
|
---|
25 | public $annotations;
|
---|
26 | protected $automatedBackupPolicyType = AutomatedBackupPolicy::class;
|
---|
27 | protected $automatedBackupPolicyDataType = '';
|
---|
28 | protected $backupSourceType = BackupSource::class;
|
---|
29 | protected $backupSourceDataType = '';
|
---|
30 | /**
|
---|
31 | * @var string
|
---|
32 | */
|
---|
33 | public $clusterType;
|
---|
34 | protected $continuousBackupConfigType = ContinuousBackupConfig::class;
|
---|
35 | protected $continuousBackupConfigDataType = '';
|
---|
36 | protected $continuousBackupInfoType = ContinuousBackupInfo::class;
|
---|
37 | protected $continuousBackupInfoDataType = '';
|
---|
38 | /**
|
---|
39 | * @var string
|
---|
40 | */
|
---|
41 | public $createTime;
|
---|
42 | /**
|
---|
43 | * @var string
|
---|
44 | */
|
---|
45 | public $databaseVersion;
|
---|
46 | /**
|
---|
47 | * @var string
|
---|
48 | */
|
---|
49 | public $deleteTime;
|
---|
50 | /**
|
---|
51 | * @var string
|
---|
52 | */
|
---|
53 | public $displayName;
|
---|
54 | protected $encryptionConfigType = EncryptionConfig::class;
|
---|
55 | protected $encryptionConfigDataType = '';
|
---|
56 | protected $encryptionInfoType = EncryptionInfo::class;
|
---|
57 | protected $encryptionInfoDataType = '';
|
---|
58 | /**
|
---|
59 | * @var string
|
---|
60 | */
|
---|
61 | public $etag;
|
---|
62 | protected $initialUserType = UserPassword::class;
|
---|
63 | protected $initialUserDataType = '';
|
---|
64 | /**
|
---|
65 | * @var string[]
|
---|
66 | */
|
---|
67 | public $labels;
|
---|
68 | protected $maintenanceScheduleType = MaintenanceSchedule::class;
|
---|
69 | protected $maintenanceScheduleDataType = '';
|
---|
70 | protected $maintenanceUpdatePolicyType = MaintenanceUpdatePolicy::class;
|
---|
71 | protected $maintenanceUpdatePolicyDataType = '';
|
---|
72 | protected $migrationSourceType = MigrationSource::class;
|
---|
73 | protected $migrationSourceDataType = '';
|
---|
74 | /**
|
---|
75 | * @var string
|
---|
76 | */
|
---|
77 | public $name;
|
---|
78 | /**
|
---|
79 | * @var string
|
---|
80 | */
|
---|
81 | public $network;
|
---|
82 | protected $networkConfigType = NetworkConfig::class;
|
---|
83 | protected $networkConfigDataType = '';
|
---|
84 | protected $primaryConfigType = PrimaryConfig::class;
|
---|
85 | protected $primaryConfigDataType = '';
|
---|
86 | protected $pscConfigType = PscConfig::class;
|
---|
87 | protected $pscConfigDataType = '';
|
---|
88 | /**
|
---|
89 | * @var bool
|
---|
90 | */
|
---|
91 | public $reconciling;
|
---|
92 | /**
|
---|
93 | * @var bool
|
---|
94 | */
|
---|
95 | public $satisfiesPzs;
|
---|
96 | protected $secondaryConfigType = SecondaryConfig::class;
|
---|
97 | protected $secondaryConfigDataType = '';
|
---|
98 | protected $sslConfigType = SslConfig::class;
|
---|
99 | protected $sslConfigDataType = '';
|
---|
100 | /**
|
---|
101 | * @var string
|
---|
102 | */
|
---|
103 | public $state;
|
---|
104 | /**
|
---|
105 | * @var string
|
---|
106 | */
|
---|
107 | public $subscriptionType;
|
---|
108 | /**
|
---|
109 | * @var string[]
|
---|
110 | */
|
---|
111 | public $tags;
|
---|
112 | protected $trialMetadataType = TrialMetadata::class;
|
---|
113 | protected $trialMetadataDataType = '';
|
---|
114 | /**
|
---|
115 | * @var string
|
---|
116 | */
|
---|
117 | public $uid;
|
---|
118 | /**
|
---|
119 | * @var string
|
---|
120 | */
|
---|
121 | public $updateTime;
|
---|
122 |
|
---|
123 | /**
|
---|
124 | * @param string[]
|
---|
125 | */
|
---|
126 | public function setAnnotations($annotations)
|
---|
127 | {
|
---|
128 | $this->annotations = $annotations;
|
---|
129 | }
|
---|
130 | /**
|
---|
131 | * @return string[]
|
---|
132 | */
|
---|
133 | public function getAnnotations()
|
---|
134 | {
|
---|
135 | return $this->annotations;
|
---|
136 | }
|
---|
137 | /**
|
---|
138 | * @param AutomatedBackupPolicy
|
---|
139 | */
|
---|
140 | public function setAutomatedBackupPolicy(AutomatedBackupPolicy $automatedBackupPolicy)
|
---|
141 | {
|
---|
142 | $this->automatedBackupPolicy = $automatedBackupPolicy;
|
---|
143 | }
|
---|
144 | /**
|
---|
145 | * @return AutomatedBackupPolicy
|
---|
146 | */
|
---|
147 | public function getAutomatedBackupPolicy()
|
---|
148 | {
|
---|
149 | return $this->automatedBackupPolicy;
|
---|
150 | }
|
---|
151 | /**
|
---|
152 | * @param BackupSource
|
---|
153 | */
|
---|
154 | public function setBackupSource(BackupSource $backupSource)
|
---|
155 | {
|
---|
156 | $this->backupSource = $backupSource;
|
---|
157 | }
|
---|
158 | /**
|
---|
159 | * @return BackupSource
|
---|
160 | */
|
---|
161 | public function getBackupSource()
|
---|
162 | {
|
---|
163 | return $this->backupSource;
|
---|
164 | }
|
---|
165 | /**
|
---|
166 | * @param string
|
---|
167 | */
|
---|
168 | public function setClusterType($clusterType)
|
---|
169 | {
|
---|
170 | $this->clusterType = $clusterType;
|
---|
171 | }
|
---|
172 | /**
|
---|
173 | * @return string
|
---|
174 | */
|
---|
175 | public function getClusterType()
|
---|
176 | {
|
---|
177 | return $this->clusterType;
|
---|
178 | }
|
---|
179 | /**
|
---|
180 | * @param ContinuousBackupConfig
|
---|
181 | */
|
---|
182 | public function setContinuousBackupConfig(ContinuousBackupConfig $continuousBackupConfig)
|
---|
183 | {
|
---|
184 | $this->continuousBackupConfig = $continuousBackupConfig;
|
---|
185 | }
|
---|
186 | /**
|
---|
187 | * @return ContinuousBackupConfig
|
---|
188 | */
|
---|
189 | public function getContinuousBackupConfig()
|
---|
190 | {
|
---|
191 | return $this->continuousBackupConfig;
|
---|
192 | }
|
---|
193 | /**
|
---|
194 | * @param ContinuousBackupInfo
|
---|
195 | */
|
---|
196 | public function setContinuousBackupInfo(ContinuousBackupInfo $continuousBackupInfo)
|
---|
197 | {
|
---|
198 | $this->continuousBackupInfo = $continuousBackupInfo;
|
---|
199 | }
|
---|
200 | /**
|
---|
201 | * @return ContinuousBackupInfo
|
---|
202 | */
|
---|
203 | public function getContinuousBackupInfo()
|
---|
204 | {
|
---|
205 | return $this->continuousBackupInfo;
|
---|
206 | }
|
---|
207 | /**
|
---|
208 | * @param string
|
---|
209 | */
|
---|
210 | public function setCreateTime($createTime)
|
---|
211 | {
|
---|
212 | $this->createTime = $createTime;
|
---|
213 | }
|
---|
214 | /**
|
---|
215 | * @return string
|
---|
216 | */
|
---|
217 | public function getCreateTime()
|
---|
218 | {
|
---|
219 | return $this->createTime;
|
---|
220 | }
|
---|
221 | /**
|
---|
222 | * @param string
|
---|
223 | */
|
---|
224 | public function setDatabaseVersion($databaseVersion)
|
---|
225 | {
|
---|
226 | $this->databaseVersion = $databaseVersion;
|
---|
227 | }
|
---|
228 | /**
|
---|
229 | * @return string
|
---|
230 | */
|
---|
231 | public function getDatabaseVersion()
|
---|
232 | {
|
---|
233 | return $this->databaseVersion;
|
---|
234 | }
|
---|
235 | /**
|
---|
236 | * @param string
|
---|
237 | */
|
---|
238 | public function setDeleteTime($deleteTime)
|
---|
239 | {
|
---|
240 | $this->deleteTime = $deleteTime;
|
---|
241 | }
|
---|
242 | /**
|
---|
243 | * @return string
|
---|
244 | */
|
---|
245 | public function getDeleteTime()
|
---|
246 | {
|
---|
247 | return $this->deleteTime;
|
---|
248 | }
|
---|
249 | /**
|
---|
250 | * @param string
|
---|
251 | */
|
---|
252 | public function setDisplayName($displayName)
|
---|
253 | {
|
---|
254 | $this->displayName = $displayName;
|
---|
255 | }
|
---|
256 | /**
|
---|
257 | * @return string
|
---|
258 | */
|
---|
259 | public function getDisplayName()
|
---|
260 | {
|
---|
261 | return $this->displayName;
|
---|
262 | }
|
---|
263 | /**
|
---|
264 | * @param EncryptionConfig
|
---|
265 | */
|
---|
266 | public function setEncryptionConfig(EncryptionConfig $encryptionConfig)
|
---|
267 | {
|
---|
268 | $this->encryptionConfig = $encryptionConfig;
|
---|
269 | }
|
---|
270 | /**
|
---|
271 | * @return EncryptionConfig
|
---|
272 | */
|
---|
273 | public function getEncryptionConfig()
|
---|
274 | {
|
---|
275 | return $this->encryptionConfig;
|
---|
276 | }
|
---|
277 | /**
|
---|
278 | * @param EncryptionInfo
|
---|
279 | */
|
---|
280 | public function setEncryptionInfo(EncryptionInfo $encryptionInfo)
|
---|
281 | {
|
---|
282 | $this->encryptionInfo = $encryptionInfo;
|
---|
283 | }
|
---|
284 | /**
|
---|
285 | * @return EncryptionInfo
|
---|
286 | */
|
---|
287 | public function getEncryptionInfo()
|
---|
288 | {
|
---|
289 | return $this->encryptionInfo;
|
---|
290 | }
|
---|
291 | /**
|
---|
292 | * @param string
|
---|
293 | */
|
---|
294 | public function setEtag($etag)
|
---|
295 | {
|
---|
296 | $this->etag = $etag;
|
---|
297 | }
|
---|
298 | /**
|
---|
299 | * @return string
|
---|
300 | */
|
---|
301 | public function getEtag()
|
---|
302 | {
|
---|
303 | return $this->etag;
|
---|
304 | }
|
---|
305 | /**
|
---|
306 | * @param UserPassword
|
---|
307 | */
|
---|
308 | public function setInitialUser(UserPassword $initialUser)
|
---|
309 | {
|
---|
310 | $this->initialUser = $initialUser;
|
---|
311 | }
|
---|
312 | /**
|
---|
313 | * @return UserPassword
|
---|
314 | */
|
---|
315 | public function getInitialUser()
|
---|
316 | {
|
---|
317 | return $this->initialUser;
|
---|
318 | }
|
---|
319 | /**
|
---|
320 | * @param string[]
|
---|
321 | */
|
---|
322 | public function setLabels($labels)
|
---|
323 | {
|
---|
324 | $this->labels = $labels;
|
---|
325 | }
|
---|
326 | /**
|
---|
327 | * @return string[]
|
---|
328 | */
|
---|
329 | public function getLabels()
|
---|
330 | {
|
---|
331 | return $this->labels;
|
---|
332 | }
|
---|
333 | /**
|
---|
334 | * @param MaintenanceSchedule
|
---|
335 | */
|
---|
336 | public function setMaintenanceSchedule(MaintenanceSchedule $maintenanceSchedule)
|
---|
337 | {
|
---|
338 | $this->maintenanceSchedule = $maintenanceSchedule;
|
---|
339 | }
|
---|
340 | /**
|
---|
341 | * @return MaintenanceSchedule
|
---|
342 | */
|
---|
343 | public function getMaintenanceSchedule()
|
---|
344 | {
|
---|
345 | return $this->maintenanceSchedule;
|
---|
346 | }
|
---|
347 | /**
|
---|
348 | * @param MaintenanceUpdatePolicy
|
---|
349 | */
|
---|
350 | public function setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy $maintenanceUpdatePolicy)
|
---|
351 | {
|
---|
352 | $this->maintenanceUpdatePolicy = $maintenanceUpdatePolicy;
|
---|
353 | }
|
---|
354 | /**
|
---|
355 | * @return MaintenanceUpdatePolicy
|
---|
356 | */
|
---|
357 | public function getMaintenanceUpdatePolicy()
|
---|
358 | {
|
---|
359 | return $this->maintenanceUpdatePolicy;
|
---|
360 | }
|
---|
361 | /**
|
---|
362 | * @param MigrationSource
|
---|
363 | */
|
---|
364 | public function setMigrationSource(MigrationSource $migrationSource)
|
---|
365 | {
|
---|
366 | $this->migrationSource = $migrationSource;
|
---|
367 | }
|
---|
368 | /**
|
---|
369 | * @return MigrationSource
|
---|
370 | */
|
---|
371 | public function getMigrationSource()
|
---|
372 | {
|
---|
373 | return $this->migrationSource;
|
---|
374 | }
|
---|
375 | /**
|
---|
376 | * @param string
|
---|
377 | */
|
---|
378 | public function setName($name)
|
---|
379 | {
|
---|
380 | $this->name = $name;
|
---|
381 | }
|
---|
382 | /**
|
---|
383 | * @return string
|
---|
384 | */
|
---|
385 | public function getName()
|
---|
386 | {
|
---|
387 | return $this->name;
|
---|
388 | }
|
---|
389 | /**
|
---|
390 | * @param string
|
---|
391 | */
|
---|
392 | public function setNetwork($network)
|
---|
393 | {
|
---|
394 | $this->network = $network;
|
---|
395 | }
|
---|
396 | /**
|
---|
397 | * @return string
|
---|
398 | */
|
---|
399 | public function getNetwork()
|
---|
400 | {
|
---|
401 | return $this->network;
|
---|
402 | }
|
---|
403 | /**
|
---|
404 | * @param NetworkConfig
|
---|
405 | */
|
---|
406 | public function setNetworkConfig(NetworkConfig $networkConfig)
|
---|
407 | {
|
---|
408 | $this->networkConfig = $networkConfig;
|
---|
409 | }
|
---|
410 | /**
|
---|
411 | * @return NetworkConfig
|
---|
412 | */
|
---|
413 | public function getNetworkConfig()
|
---|
414 | {
|
---|
415 | return $this->networkConfig;
|
---|
416 | }
|
---|
417 | /**
|
---|
418 | * @param PrimaryConfig
|
---|
419 | */
|
---|
420 | public function setPrimaryConfig(PrimaryConfig $primaryConfig)
|
---|
421 | {
|
---|
422 | $this->primaryConfig = $primaryConfig;
|
---|
423 | }
|
---|
424 | /**
|
---|
425 | * @return PrimaryConfig
|
---|
426 | */
|
---|
427 | public function getPrimaryConfig()
|
---|
428 | {
|
---|
429 | return $this->primaryConfig;
|
---|
430 | }
|
---|
431 | /**
|
---|
432 | * @param PscConfig
|
---|
433 | */
|
---|
434 | public function setPscConfig(PscConfig $pscConfig)
|
---|
435 | {
|
---|
436 | $this->pscConfig = $pscConfig;
|
---|
437 | }
|
---|
438 | /**
|
---|
439 | * @return PscConfig
|
---|
440 | */
|
---|
441 | public function getPscConfig()
|
---|
442 | {
|
---|
443 | return $this->pscConfig;
|
---|
444 | }
|
---|
445 | /**
|
---|
446 | * @param bool
|
---|
447 | */
|
---|
448 | public function setReconciling($reconciling)
|
---|
449 | {
|
---|
450 | $this->reconciling = $reconciling;
|
---|
451 | }
|
---|
452 | /**
|
---|
453 | * @return bool
|
---|
454 | */
|
---|
455 | public function getReconciling()
|
---|
456 | {
|
---|
457 | return $this->reconciling;
|
---|
458 | }
|
---|
459 | /**
|
---|
460 | * @param bool
|
---|
461 | */
|
---|
462 | public function setSatisfiesPzs($satisfiesPzs)
|
---|
463 | {
|
---|
464 | $this->satisfiesPzs = $satisfiesPzs;
|
---|
465 | }
|
---|
466 | /**
|
---|
467 | * @return bool
|
---|
468 | */
|
---|
469 | public function getSatisfiesPzs()
|
---|
470 | {
|
---|
471 | return $this->satisfiesPzs;
|
---|
472 | }
|
---|
473 | /**
|
---|
474 | * @param SecondaryConfig
|
---|
475 | */
|
---|
476 | public function setSecondaryConfig(SecondaryConfig $secondaryConfig)
|
---|
477 | {
|
---|
478 | $this->secondaryConfig = $secondaryConfig;
|
---|
479 | }
|
---|
480 | /**
|
---|
481 | * @return SecondaryConfig
|
---|
482 | */
|
---|
483 | public function getSecondaryConfig()
|
---|
484 | {
|
---|
485 | return $this->secondaryConfig;
|
---|
486 | }
|
---|
487 | /**
|
---|
488 | * @param SslConfig
|
---|
489 | */
|
---|
490 | public function setSslConfig(SslConfig $sslConfig)
|
---|
491 | {
|
---|
492 | $this->sslConfig = $sslConfig;
|
---|
493 | }
|
---|
494 | /**
|
---|
495 | * @return SslConfig
|
---|
496 | */
|
---|
497 | public function getSslConfig()
|
---|
498 | {
|
---|
499 | return $this->sslConfig;
|
---|
500 | }
|
---|
501 | /**
|
---|
502 | * @param string
|
---|
503 | */
|
---|
504 | public function setState($state)
|
---|
505 | {
|
---|
506 | $this->state = $state;
|
---|
507 | }
|
---|
508 | /**
|
---|
509 | * @return string
|
---|
510 | */
|
---|
511 | public function getState()
|
---|
512 | {
|
---|
513 | return $this->state;
|
---|
514 | }
|
---|
515 | /**
|
---|
516 | * @param string
|
---|
517 | */
|
---|
518 | public function setSubscriptionType($subscriptionType)
|
---|
519 | {
|
---|
520 | $this->subscriptionType = $subscriptionType;
|
---|
521 | }
|
---|
522 | /**
|
---|
523 | * @return string
|
---|
524 | */
|
---|
525 | public function getSubscriptionType()
|
---|
526 | {
|
---|
527 | return $this->subscriptionType;
|
---|
528 | }
|
---|
529 | /**
|
---|
530 | * @param string[]
|
---|
531 | */
|
---|
532 | public function setTags($tags)
|
---|
533 | {
|
---|
534 | $this->tags = $tags;
|
---|
535 | }
|
---|
536 | /**
|
---|
537 | * @return string[]
|
---|
538 | */
|
---|
539 | public function getTags()
|
---|
540 | {
|
---|
541 | return $this->tags;
|
---|
542 | }
|
---|
543 | /**
|
---|
544 | * @param TrialMetadata
|
---|
545 | */
|
---|
546 | public function setTrialMetadata(TrialMetadata $trialMetadata)
|
---|
547 | {
|
---|
548 | $this->trialMetadata = $trialMetadata;
|
---|
549 | }
|
---|
550 | /**
|
---|
551 | * @return TrialMetadata
|
---|
552 | */
|
---|
553 | public function getTrialMetadata()
|
---|
554 | {
|
---|
555 | return $this->trialMetadata;
|
---|
556 | }
|
---|
557 | /**
|
---|
558 | * @param string
|
---|
559 | */
|
---|
560 | public function setUid($uid)
|
---|
561 | {
|
---|
562 | $this->uid = $uid;
|
---|
563 | }
|
---|
564 | /**
|
---|
565 | * @return string
|
---|
566 | */
|
---|
567 | public function getUid()
|
---|
568 | {
|
---|
569 | return $this->uid;
|
---|
570 | }
|
---|
571 | /**
|
---|
572 | * @param string
|
---|
573 | */
|
---|
574 | public function setUpdateTime($updateTime)
|
---|
575 | {
|
---|
576 | $this->updateTime = $updateTime;
|
---|
577 | }
|
---|
578 | /**
|
---|
579 | * @return string
|
---|
580 | */
|
---|
581 | public function getUpdateTime()
|
---|
582 | {
|
---|
583 | return $this->updateTime;
|
---|
584 | }
|
---|
585 | }
|
---|
586 |
|
---|
587 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
588 | class_alias(Cluster::class, 'Google_Service_CloudAlloyDBAdmin_Cluster');
|
---|