Skip to content

Commit 4ac107a

Browse files
1 parent addcc52 commit 4ac107a

2 files changed

Lines changed: 114 additions & 0 deletions

File tree

src/SQLAdmin/DatabaseInstance.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ class DatabaseInstance extends \Google\Collection
118118
protected $onPremisesConfigurationDataType = '';
119119
protected $outOfDiskReportType = SqlOutOfDiskReport::class;
120120
protected $outOfDiskReportDataType = '';
121+
protected $pitrFieldsType = PITRFields::class;
122+
protected $pitrFieldsDataType = '';
121123
/**
122124
* @var string
123125
*/
@@ -605,6 +607,20 @@ public function getOutOfDiskReport()
605607
{
606608
return $this->outOfDiskReport;
607609
}
610+
/**
611+
* @param PITRFields
612+
*/
613+
public function setPitrFields(PITRFields $pitrFields)
614+
{
615+
$this->pitrFields = $pitrFields;
616+
}
617+
/**
618+
* @return PITRFields
619+
*/
620+
public function getPitrFields()
621+
{
622+
return $this->pitrFields;
623+
}
608624
/**
609625
* @param string
610626
*/

src/SQLAdmin/PITRFields.php

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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\SQLAdmin;
19+
20+
class PITRFields extends \Google\Model
21+
{
22+
/**
23+
* @var bool
24+
*/
25+
public $enableBinLog;
26+
/**
27+
* @var bool
28+
*/
29+
public $replicationLogArchivingEnabled;
30+
/**
31+
* @var bool
32+
*/
33+
public $sqlserverPitrEnabled;
34+
/**
35+
* @var int
36+
*/
37+
public $transactionLogRetentionDays;
38+
39+
/**
40+
* @param bool
41+
*/
42+
public function setEnableBinLog($enableBinLog)
43+
{
44+
$this->enableBinLog = $enableBinLog;
45+
}
46+
/**
47+
* @return bool
48+
*/
49+
public function getEnableBinLog()
50+
{
51+
return $this->enableBinLog;
52+
}
53+
/**
54+
* @param bool
55+
*/
56+
public function setReplicationLogArchivingEnabled($replicationLogArchivingEnabled)
57+
{
58+
$this->replicationLogArchivingEnabled = $replicationLogArchivingEnabled;
59+
}
60+
/**
61+
* @return bool
62+
*/
63+
public function getReplicationLogArchivingEnabled()
64+
{
65+
return $this->replicationLogArchivingEnabled;
66+
}
67+
/**
68+
* @param bool
69+
*/
70+
public function setSqlserverPitrEnabled($sqlserverPitrEnabled)
71+
{
72+
$this->sqlserverPitrEnabled = $sqlserverPitrEnabled;
73+
}
74+
/**
75+
* @return bool
76+
*/
77+
public function getSqlserverPitrEnabled()
78+
{
79+
return $this->sqlserverPitrEnabled;
80+
}
81+
/**
82+
* @param int
83+
*/
84+
public function setTransactionLogRetentionDays($transactionLogRetentionDays)
85+
{
86+
$this->transactionLogRetentionDays = $transactionLogRetentionDays;
87+
}
88+
/**
89+
* @return int
90+
*/
91+
public function getTransactionLogRetentionDays()
92+
{
93+
return $this->transactionLogRetentionDays;
94+
}
95+
}
96+
97+
// Adding a class alias for backwards compatibility with the previous class name.
98+
class_alias(PITRFields::class, 'Google_Service_SQLAdmin_PITRFields');

0 commit comments

Comments
 (0)