Skip to content

Commit 11ed676

Browse files
1 parent 67d72f1 commit 11ed676

8 files changed

Lines changed: 295 additions & 0 deletions

File tree

src/SQLAdmin.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
789789
'type' => 'string',
790790
'required' => true,
791791
],
792+
'mode' => [
793+
'location' => 'query',
794+
'type' => 'string',
795+
],
792796
],
793797
],'restart' => [
794798
'path' => 'v1/projects/{project}/instances/{instance}/restart',

src/SQLAdmin/Message.php

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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 Message extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $message;
26+
/**
27+
* @var string
28+
*/
29+
public $severity;
30+
31+
/**
32+
* @param string
33+
*/
34+
public function setMessage($message)
35+
{
36+
$this->message = $message;
37+
}
38+
/**
39+
* @return string
40+
*/
41+
public function getMessage()
42+
{
43+
return $this->message;
44+
}
45+
/**
46+
* @param string
47+
*/
48+
public function setSeverity($severity)
49+
{
50+
$this->severity = $severity;
51+
}
52+
/**
53+
* @return string
54+
*/
55+
public function getSeverity()
56+
{
57+
return $this->severity;
58+
}
59+
}
60+
61+
// Adding a class alias for backwards compatibility with the previous class name.
62+
class_alias(Message::class, 'Google_Service_SQLAdmin_Message');
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
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 ReadPoolAutoScaleConfig extends \Google\Collection
21+
{
22+
protected $collection_key = 'targetMetrics';
23+
/**
24+
* @var bool
25+
*/
26+
public $disableScaleIn;
27+
/**
28+
* @var bool
29+
*/
30+
public $enabled;
31+
/**
32+
* @var int
33+
*/
34+
public $maxNodeCount;
35+
/**
36+
* @var int
37+
*/
38+
public $minNodeCount;
39+
protected $targetMetricsType = TargetMetric::class;
40+
protected $targetMetricsDataType = 'array';
41+
42+
/**
43+
* @param bool
44+
*/
45+
public function setDisableScaleIn($disableScaleIn)
46+
{
47+
$this->disableScaleIn = $disableScaleIn;
48+
}
49+
/**
50+
* @return bool
51+
*/
52+
public function getDisableScaleIn()
53+
{
54+
return $this->disableScaleIn;
55+
}
56+
/**
57+
* @param bool
58+
*/
59+
public function setEnabled($enabled)
60+
{
61+
$this->enabled = $enabled;
62+
}
63+
/**
64+
* @return bool
65+
*/
66+
public function getEnabled()
67+
{
68+
return $this->enabled;
69+
}
70+
/**
71+
* @param int
72+
*/
73+
public function setMaxNodeCount($maxNodeCount)
74+
{
75+
$this->maxNodeCount = $maxNodeCount;
76+
}
77+
/**
78+
* @return int
79+
*/
80+
public function getMaxNodeCount()
81+
{
82+
return $this->maxNodeCount;
83+
}
84+
/**
85+
* @param int
86+
*/
87+
public function setMinNodeCount($minNodeCount)
88+
{
89+
$this->minNodeCount = $minNodeCount;
90+
}
91+
/**
92+
* @return int
93+
*/
94+
public function getMinNodeCount()
95+
{
96+
return $this->minNodeCount;
97+
}
98+
/**
99+
* @param TargetMetric[]
100+
*/
101+
public function setTargetMetrics($targetMetrics)
102+
{
103+
$this->targetMetrics = $targetMetrics;
104+
}
105+
/**
106+
* @return TargetMetric[]
107+
*/
108+
public function getTargetMetrics()
109+
{
110+
return $this->targetMetrics;
111+
}
112+
}
113+
114+
// Adding a class alias for backwards compatibility with the previous class name.
115+
class_alias(ReadPoolAutoScaleConfig::class, 'Google_Service_SQLAdmin_ReadPoolAutoScaleConfig');

src/SQLAdmin/Resource/Instances.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,8 @@ public function releaseSsrsLease($project, $instance, $optParams = [])
502502
* @param string $instance Cloud SQL instance ID. This does not include the
503503
* project ID.
504504
* @param array $optParams Optional parameters.
505+
*
506+
* @opt_param string mode Optional. Reset SSL mode to use.
505507
* @return Operation
506508
* @throws \Google\Service\Exception
507509
*/

src/SQLAdmin/Settings.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ class Settings extends \Google\Collection
114114
* @var string
115115
*/
116116
public $pricingPlan;
117+
protected $readPoolAutoScaleConfigType = ReadPoolAutoScaleConfig::class;
118+
protected $readPoolAutoScaleConfigDataType = '';
117119
/**
118120
* @var int
119121
*/
@@ -573,6 +575,20 @@ public function getPricingPlan()
573575
{
574576
return $this->pricingPlan;
575577
}
578+
/**
579+
* @param ReadPoolAutoScaleConfig
580+
*/
581+
public function setReadPoolAutoScaleConfig(ReadPoolAutoScaleConfig $readPoolAutoScaleConfig)
582+
{
583+
$this->readPoolAutoScaleConfig = $readPoolAutoScaleConfig;
584+
}
585+
/**
586+
* @return ReadPoolAutoScaleConfig
587+
*/
588+
public function getReadPoolAutoScaleConfig()
589+
{
590+
return $this->readPoolAutoScaleConfig;
591+
}
576592
/**
577593
* @param int
578594
*/

src/SQLAdmin/SqlInstancesExecuteSqlResponse.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,27 @@
2020
class SqlInstancesExecuteSqlResponse extends \Google\Collection
2121
{
2222
protected $collection_key = 'results';
23+
protected $messagesType = Message::class;
24+
protected $messagesDataType = 'array';
2325
protected $metadataType = Metadata::class;
2426
protected $metadataDataType = '';
2527
protected $resultsType = QueryResult::class;
2628
protected $resultsDataType = 'array';
2729

30+
/**
31+
* @param Message[]
32+
*/
33+
public function setMessages($messages)
34+
{
35+
$this->messages = $messages;
36+
}
37+
/**
38+
* @return Message[]
39+
*/
40+
public function getMessages()
41+
{
42+
return $this->messages;
43+
}
2844
/**
2945
* @param Metadata
3046
*/

src/SQLAdmin/TargetMetric.php

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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 TargetMetric extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $metric;
26+
/**
27+
* @var float
28+
*/
29+
public $targetValue;
30+
31+
/**
32+
* @param string
33+
*/
34+
public function setMetric($metric)
35+
{
36+
$this->metric = $metric;
37+
}
38+
/**
39+
* @return string
40+
*/
41+
public function getMetric()
42+
{
43+
return $this->metric;
44+
}
45+
/**
46+
* @param float
47+
*/
48+
public function setTargetValue($targetValue)
49+
{
50+
$this->targetValue = $targetValue;
51+
}
52+
/**
53+
* @return float
54+
*/
55+
public function getTargetValue()
56+
{
57+
return $this->targetValue;
58+
}
59+
}
60+
61+
// Adding a class alias for backwards compatibility with the previous class name.
62+
class_alias(TargetMetric::class, 'Google_Service_SQLAdmin_TargetMetric');

src/SQLAdmin/User.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ class User extends \Google\Model
3131
* @var string
3232
*/
3333
public $host;
34+
/**
35+
* @var string
36+
*/
37+
public $iamStatus;
3438
/**
3539
* @var string
3640
*/
@@ -102,6 +106,20 @@ public function getHost()
102106
{
103107
return $this->host;
104108
}
109+
/**
110+
* @param string
111+
*/
112+
public function setIamStatus($iamStatus)
113+
{
114+
$this->iamStatus = $iamStatus;
115+
}
116+
/**
117+
* @return string
118+
*/
119+
public function getIamStatus()
120+
{
121+
return $this->iamStatus;
122+
}
105123
/**
106124
* @param string
107125
*/

0 commit comments

Comments
 (0)