Skip to content

Commit a6fbd5f

Browse files
Regenerate sqladmin client
1 parent c9fa9d7 commit a6fbd5f

7 files changed

+234
-108
lines changed

src/SQLAdmin.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
701701
'required' => true,
702702
],
703703
],
704+
],'pointInTimeRestore' => [
705+
'path' => 'v1/{+parent}:pointInTimeRestore',
706+
'httpMethod' => 'POST',
707+
'parameters' => [
708+
'parent' => [
709+
'location' => 'path',
710+
'type' => 'string',
711+
'required' => true,
712+
],
713+
],
704714
],'promoteReplica' => [
705715
'path' => 'v1/projects/{project}/instances/{instance}/promoteReplica',
706716
'httpMethod' => 'POST',

src/SQLAdmin/BackupConfiguration.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ class BackupConfiguration extends \Google\Model
2121
{
2222
protected $backupRetentionSettingsType = BackupRetentionSettings::class;
2323
protected $backupRetentionSettingsDataType = '';
24+
/**
25+
* @var string
26+
*/
27+
public $backupTier;
2428
/**
2529
* @var bool
2630
*/
@@ -72,6 +76,20 @@ public function getBackupRetentionSettings()
7276
{
7377
return $this->backupRetentionSettings;
7478
}
79+
/**
80+
* @param string
81+
*/
82+
public function setBackupTier($backupTier)
83+
{
84+
$this->backupTier = $backupTier;
85+
}
86+
/**
87+
* @return string
88+
*/
89+
public function getBackupTier()
90+
{
91+
return $this->backupTier;
92+
}
7593
/**
7694
* @param bool
7795
*/

src/SQLAdmin/ConnectionPoolConfig.php

Lines changed: 0 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -20,65 +20,13 @@
2020
class ConnectionPoolConfig extends \Google\Collection
2121
{
2222
protected $collection_key = 'flags';
23-
/**
24-
* @var string
25-
*/
26-
public $clientConnectionIdleTimeout;
27-
/**
28-
* @var int
29-
*/
30-
public $connPoolSize;
3123
/**
3224
* @var bool
3325
*/
3426
public $connectionPoolingEnabled;
3527
protected $flagsType = ConnectionPoolFlags::class;
3628
protected $flagsDataType = 'array';
37-
/**
38-
* @var int
39-
*/
40-
public $maxClientConnections;
41-
/**
42-
* @var string
43-
*/
44-
public $poolMode;
45-
/**
46-
* @var string
47-
*/
48-
public $queryWaitTimeout;
49-
/**
50-
* @var string
51-
*/
52-
public $serverConnectionIdleTimeout;
5329

54-
/**
55-
* @param string
56-
*/
57-
public function setClientConnectionIdleTimeout($clientConnectionIdleTimeout)
58-
{
59-
$this->clientConnectionIdleTimeout = $clientConnectionIdleTimeout;
60-
}
61-
/**
62-
* @return string
63-
*/
64-
public function getClientConnectionIdleTimeout()
65-
{
66-
return $this->clientConnectionIdleTimeout;
67-
}
68-
/**
69-
* @param int
70-
*/
71-
public function setConnPoolSize($connPoolSize)
72-
{
73-
$this->connPoolSize = $connPoolSize;
74-
}
75-
/**
76-
* @return int
77-
*/
78-
public function getConnPoolSize()
79-
{
80-
return $this->connPoolSize;
81-
}
8230
/**
8331
* @param bool
8432
*/
@@ -107,62 +55,6 @@ public function getFlags()
10755
{
10856
return $this->flags;
10957
}
110-
/**
111-
* @param int
112-
*/
113-
public function setMaxClientConnections($maxClientConnections)
114-
{
115-
$this->maxClientConnections = $maxClientConnections;
116-
}
117-
/**
118-
* @return int
119-
*/
120-
public function getMaxClientConnections()
121-
{
122-
return $this->maxClientConnections;
123-
}
124-
/**
125-
* @param string
126-
*/
127-
public function setPoolMode($poolMode)
128-
{
129-
$this->poolMode = $poolMode;
130-
}
131-
/**
132-
* @return string
133-
*/
134-
public function getPoolMode()
135-
{
136-
return $this->poolMode;
137-
}
138-
/**
139-
* @param string
140-
*/
141-
public function setQueryWaitTimeout($queryWaitTimeout)
142-
{
143-
$this->queryWaitTimeout = $queryWaitTimeout;
144-
}
145-
/**
146-
* @return string
147-
*/
148-
public function getQueryWaitTimeout()
149-
{
150-
return $this->queryWaitTimeout;
151-
}
152-
/**
153-
* @param string
154-
*/
155-
public function setServerConnectionIdleTimeout($serverConnectionIdleTimeout)
156-
{
157-
$this->serverConnectionIdleTimeout = $serverConnectionIdleTimeout;
158-
}
159-
/**
160-
* @return string
161-
*/
162-
public function getServerConnectionIdleTimeout()
163-
{
164-
return $this->serverConnectionIdleTimeout;
165-
}
16658
}
16759

16860
// Adding a class alias for backwards compatibility with the previous class name.

src/SQLAdmin/InstancesRestoreBackupRequest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ class InstancesRestoreBackupRequest extends \Google\Model
2323
* @var string
2424
*/
2525
public $backup;
26+
/**
27+
* @var string
28+
*/
29+
public $backupdrBackup;
2630
protected $restoreBackupContextType = RestoreBackupContext::class;
2731
protected $restoreBackupContextDataType = '';
2832
protected $restoreInstanceSettingsType = DatabaseInstance::class;
@@ -42,6 +46,20 @@ public function getBackup()
4246
{
4347
return $this->backup;
4448
}
49+
/**
50+
* @param string
51+
*/
52+
public function setBackupdrBackup($backupdrBackup)
53+
{
54+
$this->backupdrBackup = $backupdrBackup;
55+
}
56+
/**
57+
* @return string
58+
*/
59+
public function getBackupdrBackup()
60+
{
61+
return $this->backupdrBackup;
62+
}
4563
/**
4664
* @param RestoreBackupContext
4765
*/
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
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 PointInTimeRestoreContext extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $allocatedIpRange;
26+
/**
27+
* @var string
28+
*/
29+
public $datasource;
30+
/**
31+
* @var string
32+
*/
33+
public $pointInTime;
34+
/**
35+
* @var string
36+
*/
37+
public $preferredSecondaryZone;
38+
/**
39+
* @var string
40+
*/
41+
public $preferredZone;
42+
/**
43+
* @var string
44+
*/
45+
public $privateNetwork;
46+
/**
47+
* @var string
48+
*/
49+
public $targetInstance;
50+
51+
/**
52+
* @param string
53+
*/
54+
public function setAllocatedIpRange($allocatedIpRange)
55+
{
56+
$this->allocatedIpRange = $allocatedIpRange;
57+
}
58+
/**
59+
* @return string
60+
*/
61+
public function getAllocatedIpRange()
62+
{
63+
return $this->allocatedIpRange;
64+
}
65+
/**
66+
* @param string
67+
*/
68+
public function setDatasource($datasource)
69+
{
70+
$this->datasource = $datasource;
71+
}
72+
/**
73+
* @return string
74+
*/
75+
public function getDatasource()
76+
{
77+
return $this->datasource;
78+
}
79+
/**
80+
* @param string
81+
*/
82+
public function setPointInTime($pointInTime)
83+
{
84+
$this->pointInTime = $pointInTime;
85+
}
86+
/**
87+
* @return string
88+
*/
89+
public function getPointInTime()
90+
{
91+
return $this->pointInTime;
92+
}
93+
/**
94+
* @param string
95+
*/
96+
public function setPreferredSecondaryZone($preferredSecondaryZone)
97+
{
98+
$this->preferredSecondaryZone = $preferredSecondaryZone;
99+
}
100+
/**
101+
* @return string
102+
*/
103+
public function getPreferredSecondaryZone()
104+
{
105+
return $this->preferredSecondaryZone;
106+
}
107+
/**
108+
* @param string
109+
*/
110+
public function setPreferredZone($preferredZone)
111+
{
112+
$this->preferredZone = $preferredZone;
113+
}
114+
/**
115+
* @return string
116+
*/
117+
public function getPreferredZone()
118+
{
119+
return $this->preferredZone;
120+
}
121+
/**
122+
* @param string
123+
*/
124+
public function setPrivateNetwork($privateNetwork)
125+
{
126+
$this->privateNetwork = $privateNetwork;
127+
}
128+
/**
129+
* @return string
130+
*/
131+
public function getPrivateNetwork()
132+
{
133+
return $this->privateNetwork;
134+
}
135+
/**
136+
* @param string
137+
*/
138+
public function setTargetInstance($targetInstance)
139+
{
140+
$this->targetInstance = $targetInstance;
141+
}
142+
/**
143+
* @return string
144+
*/
145+
public function getTargetInstance()
146+
{
147+
return $this->targetInstance;
148+
}
149+
}
150+
151+
// Adding a class alias for backwards compatibility with the previous class name.
152+
class_alias(PointInTimeRestoreContext::class, 'Google_Service_SQLAdmin_PointInTimeRestoreContext');

src/SQLAdmin/PscConfig.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ class PscConfig extends \Google\Collection
2424
* @var string[]
2525
*/
2626
public $allowedConsumerProjects;
27+
/**
28+
* @var string
29+
*/
30+
public $networkAttachmentUri;
2731
protected $pscAutoConnectionsType = PscAutoConnectionConfig::class;
2832
protected $pscAutoConnectionsDataType = 'array';
2933
/**
@@ -45,6 +49,20 @@ public function getAllowedConsumerProjects()
4549
{
4650
return $this->allowedConsumerProjects;
4751
}
52+
/**
53+
* @param string
54+
*/
55+
public function setNetworkAttachmentUri($networkAttachmentUri)
56+
{
57+
$this->networkAttachmentUri = $networkAttachmentUri;
58+
}
59+
/**
60+
* @return string
61+
*/
62+
public function getNetworkAttachmentUri()
63+
{
64+
return $this->networkAttachmentUri;
65+
}
4866
/**
4967
* @param PscAutoConnectionConfig[]
5068
*/

0 commit comments

Comments
 (0)