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\CloudRedis;
19
20class Instance extends \Google\Collection
21{
22  protected $collection_key = 'serverCaCerts';
23  /**
24   * @var string
25   */
26  public $alternativeLocationId;
27  /**
28   * @var bool
29   */
30  public $authEnabled;
31  /**
32   * @var string
33   */
34  public $authorizedNetwork;
35  /**
36   * @var string
37   */
38  public $connectMode;
39  /**
40   * @var string
41   */
42  public $createTime;
43  /**
44   * @var string
45   */
46  public $currentLocationId;
47  /**
48   * @var string
49   */
50  public $displayName;
51  /**
52   * @var string
53   */
54  public $host;
55  /**
56   * @var string[]
57   */
58  public $labels;
59  /**
60   * @var string
61   */
62  public $locationId;
63  protected $maintenancePolicyType = MaintenancePolicy::class;
64  protected $maintenancePolicyDataType = '';
65  protected $maintenanceScheduleType = MaintenanceSchedule::class;
66  protected $maintenanceScheduleDataType = '';
67  /**
68   * @var int
69   */
70  public $memorySizeGb;
71  /**
72   * @var string
73   */
74  public $name;
75  protected $nodesType = NodeInfo::class;
76  protected $nodesDataType = 'array';
77  protected $persistenceConfigType = PersistenceConfig::class;
78  protected $persistenceConfigDataType = '';
79  /**
80   * @var string
81   */
82  public $persistenceIamIdentity;
83  /**
84   * @var int
85   */
86  public $port;
87  /**
88   * @var string
89   */
90  public $readEndpoint;
91  /**
92   * @var int
93   */
94  public $readEndpointPort;
95  /**
96   * @var string
97   */
98  public $readReplicasMode;
99  /**
100   * @var string[]
101   */
102  public $redisConfigs;
103  /**
104   * @var string
105   */
106  public $redisVersion;
107  /**
108   * @var int
109   */
110  public $replicaCount;
111  /**
112   * @var string
113   */
114  public $reservedIpRange;
115  /**
116   * @var string
117   */
118  public $secondaryIpRange;
119  protected $serverCaCertsType = TlsCertificate::class;
120  protected $serverCaCertsDataType = 'array';
121  /**
122   * @var string
123   */
124  public $state;
125  /**
126   * @var string
127   */
128  public $statusMessage;
129  /**
130   * @var string
131   */
132  public $tier;
133  /**
134   * @var string
135   */
136  public $transitEncryptionMode;
137
138  /**
139   * @param string
140   */
141  public function setAlternativeLocationId($alternativeLocationId)
142  {
143    $this->alternativeLocationId = $alternativeLocationId;
144  }
145  /**
146   * @return string
147   */
148  public function getAlternativeLocationId()
149  {
150    return $this->alternativeLocationId;
151  }
152  /**
153   * @param bool
154   */
155  public function setAuthEnabled($authEnabled)
156  {
157    $this->authEnabled = $authEnabled;
158  }
159  /**
160   * @return bool
161   */
162  public function getAuthEnabled()
163  {
164    return $this->authEnabled;
165  }
166  /**
167   * @param string
168   */
169  public function setAuthorizedNetwork($authorizedNetwork)
170  {
171    $this->authorizedNetwork = $authorizedNetwork;
172  }
173  /**
174   * @return string
175   */
176  public function getAuthorizedNetwork()
177  {
178    return $this->authorizedNetwork;
179  }
180  /**
181   * @param string
182   */
183  public function setConnectMode($connectMode)
184  {
185    $this->connectMode = $connectMode;
186  }
187  /**
188   * @return string
189   */
190  public function getConnectMode()
191  {
192    return $this->connectMode;
193  }
194  /**
195   * @param string
196   */
197  public function setCreateTime($createTime)
198  {
199    $this->createTime = $createTime;
200  }
201  /**
202   * @return string
203   */
204  public function getCreateTime()
205  {
206    return $this->createTime;
207  }
208  /**
209   * @param string
210   */
211  public function setCurrentLocationId($currentLocationId)
212  {
213    $this->currentLocationId = $currentLocationId;
214  }
215  /**
216   * @return string
217   */
218  public function getCurrentLocationId()
219  {
220    return $this->currentLocationId;
221  }
222  /**
223   * @param string
224   */
225  public function setDisplayName($displayName)
226  {
227    $this->displayName = $displayName;
228  }
229  /**
230   * @return string
231   */
232  public function getDisplayName()
233  {
234    return $this->displayName;
235  }
236  /**
237   * @param string
238   */
239  public function setHost($host)
240  {
241    $this->host = $host;
242  }
243  /**
244   * @return string
245   */
246  public function getHost()
247  {
248    return $this->host;
249  }
250  /**
251   * @param string[]
252   */
253  public function setLabels($labels)
254  {
255    $this->labels = $labels;
256  }
257  /**
258   * @return string[]
259   */
260  public function getLabels()
261  {
262    return $this->labels;
263  }
264  /**
265   * @param string
266   */
267  public function setLocationId($locationId)
268  {
269    $this->locationId = $locationId;
270  }
271  /**
272   * @return string
273   */
274  public function getLocationId()
275  {
276    return $this->locationId;
277  }
278  /**
279   * @param MaintenancePolicy
280   */
281  public function setMaintenancePolicy(MaintenancePolicy $maintenancePolicy)
282  {
283    $this->maintenancePolicy = $maintenancePolicy;
284  }
285  /**
286   * @return MaintenancePolicy
287   */
288  public function getMaintenancePolicy()
289  {
290    return $this->maintenancePolicy;
291  }
292  /**
293   * @param MaintenanceSchedule
294   */
295  public function setMaintenanceSchedule(MaintenanceSchedule $maintenanceSchedule)
296  {
297    $this->maintenanceSchedule = $maintenanceSchedule;
298  }
299  /**
300   * @return MaintenanceSchedule
301   */
302  public function getMaintenanceSchedule()
303  {
304    return $this->maintenanceSchedule;
305  }
306  /**
307   * @param int
308   */
309  public function setMemorySizeGb($memorySizeGb)
310  {
311    $this->memorySizeGb = $memorySizeGb;
312  }
313  /**
314   * @return int
315   */
316  public function getMemorySizeGb()
317  {
318    return $this->memorySizeGb;
319  }
320  /**
321   * @param string
322   */
323  public function setName($name)
324  {
325    $this->name = $name;
326  }
327  /**
328   * @return string
329   */
330  public function getName()
331  {
332    return $this->name;
333  }
334  /**
335   * @param NodeInfo[]
336   */
337  public function setNodes($nodes)
338  {
339    $this->nodes = $nodes;
340  }
341  /**
342   * @return NodeInfo[]
343   */
344  public function getNodes()
345  {
346    return $this->nodes;
347  }
348  /**
349   * @param PersistenceConfig
350   */
351  public function setPersistenceConfig(PersistenceConfig $persistenceConfig)
352  {
353    $this->persistenceConfig = $persistenceConfig;
354  }
355  /**
356   * @return PersistenceConfig
357   */
358  public function getPersistenceConfig()
359  {
360    return $this->persistenceConfig;
361  }
362  /**
363   * @param string
364   */
365  public function setPersistenceIamIdentity($persistenceIamIdentity)
366  {
367    $this->persistenceIamIdentity = $persistenceIamIdentity;
368  }
369  /**
370   * @return string
371   */
372  public function getPersistenceIamIdentity()
373  {
374    return $this->persistenceIamIdentity;
375  }
376  /**
377   * @param int
378   */
379  public function setPort($port)
380  {
381    $this->port = $port;
382  }
383  /**
384   * @return int
385   */
386  public function getPort()
387  {
388    return $this->port;
389  }
390  /**
391   * @param string
392   */
393  public function setReadEndpoint($readEndpoint)
394  {
395    $this->readEndpoint = $readEndpoint;
396  }
397  /**
398   * @return string
399   */
400  public function getReadEndpoint()
401  {
402    return $this->readEndpoint;
403  }
404  /**
405   * @param int
406   */
407  public function setReadEndpointPort($readEndpointPort)
408  {
409    $this->readEndpointPort = $readEndpointPort;
410  }
411  /**
412   * @return int
413   */
414  public function getReadEndpointPort()
415  {
416    return $this->readEndpointPort;
417  }
418  /**
419   * @param string
420   */
421  public function setReadReplicasMode($readReplicasMode)
422  {
423    $this->readReplicasMode = $readReplicasMode;
424  }
425  /**
426   * @return string
427   */
428  public function getReadReplicasMode()
429  {
430    return $this->readReplicasMode;
431  }
432  /**
433   * @param string[]
434   */
435  public function setRedisConfigs($redisConfigs)
436  {
437    $this->redisConfigs = $redisConfigs;
438  }
439  /**
440   * @return string[]
441   */
442  public function getRedisConfigs()
443  {
444    return $this->redisConfigs;
445  }
446  /**
447   * @param string
448   */
449  public function setRedisVersion($redisVersion)
450  {
451    $this->redisVersion = $redisVersion;
452  }
453  /**
454   * @return string
455   */
456  public function getRedisVersion()
457  {
458    return $this->redisVersion;
459  }
460  /**
461   * @param int
462   */
463  public function setReplicaCount($replicaCount)
464  {
465    $this->replicaCount = $replicaCount;
466  }
467  /**
468   * @return int
469   */
470  public function getReplicaCount()
471  {
472    return $this->replicaCount;
473  }
474  /**
475   * @param string
476   */
477  public function setReservedIpRange($reservedIpRange)
478  {
479    $this->reservedIpRange = $reservedIpRange;
480  }
481  /**
482   * @return string
483   */
484  public function getReservedIpRange()
485  {
486    return $this->reservedIpRange;
487  }
488  /**
489   * @param string
490   */
491  public function setSecondaryIpRange($secondaryIpRange)
492  {
493    $this->secondaryIpRange = $secondaryIpRange;
494  }
495  /**
496   * @return string
497   */
498  public function getSecondaryIpRange()
499  {
500    return $this->secondaryIpRange;
501  }
502  /**
503   * @param TlsCertificate[]
504   */
505  public function setServerCaCerts($serverCaCerts)
506  {
507    $this->serverCaCerts = $serverCaCerts;
508  }
509  /**
510   * @return TlsCertificate[]
511   */
512  public function getServerCaCerts()
513  {
514    return $this->serverCaCerts;
515  }
516  /**
517   * @param string
518   */
519  public function setState($state)
520  {
521    $this->state = $state;
522  }
523  /**
524   * @return string
525   */
526  public function getState()
527  {
528    return $this->state;
529  }
530  /**
531   * @param string
532   */
533  public function setStatusMessage($statusMessage)
534  {
535    $this->statusMessage = $statusMessage;
536  }
537  /**
538   * @return string
539   */
540  public function getStatusMessage()
541  {
542    return $this->statusMessage;
543  }
544  /**
545   * @param string
546   */
547  public function setTier($tier)
548  {
549    $this->tier = $tier;
550  }
551  /**
552   * @return string
553   */
554  public function getTier()
555  {
556    return $this->tier;
557  }
558  /**
559   * @param string
560   */
561  public function setTransitEncryptionMode($transitEncryptionMode)
562  {
563    $this->transitEncryptionMode = $transitEncryptionMode;
564  }
565  /**
566   * @return string
567   */
568  public function getTransitEncryptionMode()
569  {
570    return $this->transitEncryptionMode;
571  }
572}
573
574// Adding a class alias for backwards compatibility with the previous class name.
575class_alias(Instance::class, 'Google_Service_CloudRedis_Instance');
576