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\SQLAdmin;
19
20class Settings extends \Google\Collection
21{
22  protected $collection_key = 'denyMaintenancePeriods';
23  /**
24   * @var string
25   */
26  public $activationPolicy;
27  protected $activeDirectoryConfigType = SqlActiveDirectoryConfig::class;
28  protected $activeDirectoryConfigDataType = '';
29  /**
30   * @var string[]
31   */
32  public $authorizedGaeApplications;
33  /**
34   * @var string
35   */
36  public $availabilityType;
37  protected $backupConfigurationType = BackupConfiguration::class;
38  protected $backupConfigurationDataType = '';
39  /**
40   * @var string
41   */
42  public $collation;
43  /**
44   * @var bool
45   */
46  public $crashSafeReplicationEnabled;
47  /**
48   * @var string
49   */
50  public $dataDiskSizeGb;
51  /**
52   * @var string
53   */
54  public $dataDiskType;
55  protected $databaseFlagsType = DatabaseFlags::class;
56  protected $databaseFlagsDataType = 'array';
57  /**
58   * @var bool
59   */
60  public $databaseReplicationEnabled;
61  protected $denyMaintenancePeriodsType = DenyMaintenancePeriod::class;
62  protected $denyMaintenancePeriodsDataType = 'array';
63  protected $insightsConfigType = InsightsConfig::class;
64  protected $insightsConfigDataType = '';
65  protected $ipConfigurationType = IpConfiguration::class;
66  protected $ipConfigurationDataType = '';
67  /**
68   * @var string
69   */
70  public $kind;
71  protected $locationPreferenceType = LocationPreference::class;
72  protected $locationPreferenceDataType = '';
73  protected $maintenanceWindowType = MaintenanceWindow::class;
74  protected $maintenanceWindowDataType = '';
75  protected $passwordValidationPolicyType = PasswordValidationPolicy::class;
76  protected $passwordValidationPolicyDataType = '';
77  /**
78   * @var string
79   */
80  public $pricingPlan;
81  /**
82   * @var string
83   */
84  public $replicationType;
85  /**
86   * @var string
87   */
88  public $settingsVersion;
89  protected $sqlServerAuditConfigType = SqlServerAuditConfig::class;
90  protected $sqlServerAuditConfigDataType = '';
91  /**
92   * @var bool
93   */
94  public $storageAutoResize;
95  /**
96   * @var string
97   */
98  public $storageAutoResizeLimit;
99  /**
100   * @var string
101   */
102  public $tier;
103  /**
104   * @var string[]
105   */
106  public $userLabels;
107
108  /**
109   * @param string
110   */
111  public function setActivationPolicy($activationPolicy)
112  {
113    $this->activationPolicy = $activationPolicy;
114  }
115  /**
116   * @return string
117   */
118  public function getActivationPolicy()
119  {
120    return $this->activationPolicy;
121  }
122  /**
123   * @param SqlActiveDirectoryConfig
124   */
125  public function setActiveDirectoryConfig(SqlActiveDirectoryConfig $activeDirectoryConfig)
126  {
127    $this->activeDirectoryConfig = $activeDirectoryConfig;
128  }
129  /**
130   * @return SqlActiveDirectoryConfig
131   */
132  public function getActiveDirectoryConfig()
133  {
134    return $this->activeDirectoryConfig;
135  }
136  /**
137   * @param string[]
138   */
139  public function setAuthorizedGaeApplications($authorizedGaeApplications)
140  {
141    $this->authorizedGaeApplications = $authorizedGaeApplications;
142  }
143  /**
144   * @return string[]
145   */
146  public function getAuthorizedGaeApplications()
147  {
148    return $this->authorizedGaeApplications;
149  }
150  /**
151   * @param string
152   */
153  public function setAvailabilityType($availabilityType)
154  {
155    $this->availabilityType = $availabilityType;
156  }
157  /**
158   * @return string
159   */
160  public function getAvailabilityType()
161  {
162    return $this->availabilityType;
163  }
164  /**
165   * @param BackupConfiguration
166   */
167  public function setBackupConfiguration(BackupConfiguration $backupConfiguration)
168  {
169    $this->backupConfiguration = $backupConfiguration;
170  }
171  /**
172   * @return BackupConfiguration
173   */
174  public function getBackupConfiguration()
175  {
176    return $this->backupConfiguration;
177  }
178  /**
179   * @param string
180   */
181  public function setCollation($collation)
182  {
183    $this->collation = $collation;
184  }
185  /**
186   * @return string
187   */
188  public function getCollation()
189  {
190    return $this->collation;
191  }
192  /**
193   * @param bool
194   */
195  public function setCrashSafeReplicationEnabled($crashSafeReplicationEnabled)
196  {
197    $this->crashSafeReplicationEnabled = $crashSafeReplicationEnabled;
198  }
199  /**
200   * @return bool
201   */
202  public function getCrashSafeReplicationEnabled()
203  {
204    return $this->crashSafeReplicationEnabled;
205  }
206  /**
207   * @param string
208   */
209  public function setDataDiskSizeGb($dataDiskSizeGb)
210  {
211    $this->dataDiskSizeGb = $dataDiskSizeGb;
212  }
213  /**
214   * @return string
215   */
216  public function getDataDiskSizeGb()
217  {
218    return $this->dataDiskSizeGb;
219  }
220  /**
221   * @param string
222   */
223  public function setDataDiskType($dataDiskType)
224  {
225    $this->dataDiskType = $dataDiskType;
226  }
227  /**
228   * @return string
229   */
230  public function getDataDiskType()
231  {
232    return $this->dataDiskType;
233  }
234  /**
235   * @param DatabaseFlags[]
236   */
237  public function setDatabaseFlags($databaseFlags)
238  {
239    $this->databaseFlags = $databaseFlags;
240  }
241  /**
242   * @return DatabaseFlags[]
243   */
244  public function getDatabaseFlags()
245  {
246    return $this->databaseFlags;
247  }
248  /**
249   * @param bool
250   */
251  public function setDatabaseReplicationEnabled($databaseReplicationEnabled)
252  {
253    $this->databaseReplicationEnabled = $databaseReplicationEnabled;
254  }
255  /**
256   * @return bool
257   */
258  public function getDatabaseReplicationEnabled()
259  {
260    return $this->databaseReplicationEnabled;
261  }
262  /**
263   * @param DenyMaintenancePeriod[]
264   */
265  public function setDenyMaintenancePeriods($denyMaintenancePeriods)
266  {
267    $this->denyMaintenancePeriods = $denyMaintenancePeriods;
268  }
269  /**
270   * @return DenyMaintenancePeriod[]
271   */
272  public function getDenyMaintenancePeriods()
273  {
274    return $this->denyMaintenancePeriods;
275  }
276  /**
277   * @param InsightsConfig
278   */
279  public function setInsightsConfig(InsightsConfig $insightsConfig)
280  {
281    $this->insightsConfig = $insightsConfig;
282  }
283  /**
284   * @return InsightsConfig
285   */
286  public function getInsightsConfig()
287  {
288    return $this->insightsConfig;
289  }
290  /**
291   * @param IpConfiguration
292   */
293  public function setIpConfiguration(IpConfiguration $ipConfiguration)
294  {
295    $this->ipConfiguration = $ipConfiguration;
296  }
297  /**
298   * @return IpConfiguration
299   */
300  public function getIpConfiguration()
301  {
302    return $this->ipConfiguration;
303  }
304  /**
305   * @param string
306   */
307  public function setKind($kind)
308  {
309    $this->kind = $kind;
310  }
311  /**
312   * @return string
313   */
314  public function getKind()
315  {
316    return $this->kind;
317  }
318  /**
319   * @param LocationPreference
320   */
321  public function setLocationPreference(LocationPreference $locationPreference)
322  {
323    $this->locationPreference = $locationPreference;
324  }
325  /**
326   * @return LocationPreference
327   */
328  public function getLocationPreference()
329  {
330    return $this->locationPreference;
331  }
332  /**
333   * @param MaintenanceWindow
334   */
335  public function setMaintenanceWindow(MaintenanceWindow $maintenanceWindow)
336  {
337    $this->maintenanceWindow = $maintenanceWindow;
338  }
339  /**
340   * @return MaintenanceWindow
341   */
342  public function getMaintenanceWindow()
343  {
344    return $this->maintenanceWindow;
345  }
346  /**
347   * @param PasswordValidationPolicy
348   */
349  public function setPasswordValidationPolicy(PasswordValidationPolicy $passwordValidationPolicy)
350  {
351    $this->passwordValidationPolicy = $passwordValidationPolicy;
352  }
353  /**
354   * @return PasswordValidationPolicy
355   */
356  public function getPasswordValidationPolicy()
357  {
358    return $this->passwordValidationPolicy;
359  }
360  /**
361   * @param string
362   */
363  public function setPricingPlan($pricingPlan)
364  {
365    $this->pricingPlan = $pricingPlan;
366  }
367  /**
368   * @return string
369   */
370  public function getPricingPlan()
371  {
372    return $this->pricingPlan;
373  }
374  /**
375   * @param string
376   */
377  public function setReplicationType($replicationType)
378  {
379    $this->replicationType = $replicationType;
380  }
381  /**
382   * @return string
383   */
384  public function getReplicationType()
385  {
386    return $this->replicationType;
387  }
388  /**
389   * @param string
390   */
391  public function setSettingsVersion($settingsVersion)
392  {
393    $this->settingsVersion = $settingsVersion;
394  }
395  /**
396   * @return string
397   */
398  public function getSettingsVersion()
399  {
400    return $this->settingsVersion;
401  }
402  /**
403   * @param SqlServerAuditConfig
404   */
405  public function setSqlServerAuditConfig(SqlServerAuditConfig $sqlServerAuditConfig)
406  {
407    $this->sqlServerAuditConfig = $sqlServerAuditConfig;
408  }
409  /**
410   * @return SqlServerAuditConfig
411   */
412  public function getSqlServerAuditConfig()
413  {
414    return $this->sqlServerAuditConfig;
415  }
416  /**
417   * @param bool
418   */
419  public function setStorageAutoResize($storageAutoResize)
420  {
421    $this->storageAutoResize = $storageAutoResize;
422  }
423  /**
424   * @return bool
425   */
426  public function getStorageAutoResize()
427  {
428    return $this->storageAutoResize;
429  }
430  /**
431   * @param string
432   */
433  public function setStorageAutoResizeLimit($storageAutoResizeLimit)
434  {
435    $this->storageAutoResizeLimit = $storageAutoResizeLimit;
436  }
437  /**
438   * @return string
439   */
440  public function getStorageAutoResizeLimit()
441  {
442    return $this->storageAutoResizeLimit;
443  }
444  /**
445   * @param string
446   */
447  public function setTier($tier)
448  {
449    $this->tier = $tier;
450  }
451  /**
452   * @return string
453   */
454  public function getTier()
455  {
456    return $this->tier;
457  }
458  /**
459   * @param string[]
460   */
461  public function setUserLabels($userLabels)
462  {
463    $this->userLabels = $userLabels;
464  }
465  /**
466   * @return string[]
467   */
468  public function getUserLabels()
469  {
470    return $this->userLabels;
471  }
472}
473
474// Adding a class alias for backwards compatibility with the previous class name.
475class_alias(Settings::class, 'Google_Service_SQLAdmin_Settings');
476