Skip to content

Commit 4b256cc

Browse files
1 parent 26c9c3e commit 4b256cc

9 files changed

Lines changed: 123 additions & 11 deletions

src/SQLAdmin/Backup.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ class Backup extends \Google\Model
149149
* The database version is MySQL 8.4.
150150
*/
151151
public const DATABASE_VERSION_MYSQL_8_4 = 'MYSQL_8_4';
152+
/**
153+
* The database version is MySQL 9.7.
154+
*/
155+
public const DATABASE_VERSION_MYSQL_9_7 = 'MYSQL_9_7';
152156
/**
153157
* The database version is SQL Server 2017 Standard.
154158
*/
@@ -481,7 +485,7 @@ public function getBackupRun()
481485
* MYSQL_8_0_28, MYSQL_8_0_29, MYSQL_8_0_30, MYSQL_8_0_31, MYSQL_8_0_32,
482486
* MYSQL_8_0_33, MYSQL_8_0_34, MYSQL_8_0_35, MYSQL_8_0_36, MYSQL_8_0_37,
483487
* MYSQL_8_0_39, MYSQL_8_0_40, MYSQL_8_0_41, MYSQL_8_0_42, MYSQL_8_0_43,
484-
* MYSQL_8_0_44, MYSQL_8_0_45, MYSQL_8_0_46, MYSQL_8_4,
488+
* MYSQL_8_0_44, MYSQL_8_0_45, MYSQL_8_0_46, MYSQL_8_4, MYSQL_9_7,
485489
* SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS,
486490
* SQLSERVER_2017_WEB, POSTGRES_9_6, POSTGRES_10, POSTGRES_11, POSTGRES_12,
487491
* POSTGRES_13, POSTGRES_14, POSTGRES_15, POSTGRES_16, POSTGRES_17,

src/SQLAdmin/BackupRun.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ class BackupRun extends \Google\Model
149149
* The database version is MySQL 8.4.
150150
*/
151151
public const DATABASE_VERSION_MYSQL_8_4 = 'MYSQL_8_4';
152+
/**
153+
* The database version is MySQL 9.7.
154+
*/
155+
public const DATABASE_VERSION_MYSQL_9_7 = 'MYSQL_9_7';
152156
/**
153157
* The database version is SQL Server 2017 Standard.
154158
*/
@@ -434,7 +438,7 @@ public function getBackupKind()
434438
* MYSQL_8_0_28, MYSQL_8_0_29, MYSQL_8_0_30, MYSQL_8_0_31, MYSQL_8_0_32,
435439
* MYSQL_8_0_33, MYSQL_8_0_34, MYSQL_8_0_35, MYSQL_8_0_36, MYSQL_8_0_37,
436440
* MYSQL_8_0_39, MYSQL_8_0_40, MYSQL_8_0_41, MYSQL_8_0_42, MYSQL_8_0_43,
437-
* MYSQL_8_0_44, MYSQL_8_0_45, MYSQL_8_0_46, MYSQL_8_4,
441+
* MYSQL_8_0_44, MYSQL_8_0_45, MYSQL_8_0_46, MYSQL_8_4, MYSQL_9_7,
438442
* SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS,
439443
* SQLSERVER_2017_WEB, POSTGRES_9_6, POSTGRES_10, POSTGRES_11, POSTGRES_12,
440444
* POSTGRES_13, POSTGRES_14, POSTGRES_15, POSTGRES_16, POSTGRES_17,

src/SQLAdmin/ConnectSettings.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ class ConnectSettings extends \Google\Collection
155155
* The database version is MySQL 8.4.
156156
*/
157157
public const DATABASE_VERSION_MYSQL_8_4 = 'MYSQL_8_4';
158+
/**
159+
* The database version is MySQL 9.7.
160+
*/
161+
public const DATABASE_VERSION_MYSQL_9_7 = 'MYSQL_9_7';
158162
/**
159163
* The database version is SQL Server 2017 Standard.
160164
*/
@@ -399,7 +403,7 @@ public function getCustomSubjectAlternativeNames()
399403
* MYSQL_8_0_28, MYSQL_8_0_29, MYSQL_8_0_30, MYSQL_8_0_31, MYSQL_8_0_32,
400404
* MYSQL_8_0_33, MYSQL_8_0_34, MYSQL_8_0_35, MYSQL_8_0_36, MYSQL_8_0_37,
401405
* MYSQL_8_0_39, MYSQL_8_0_40, MYSQL_8_0_41, MYSQL_8_0_42, MYSQL_8_0_43,
402-
* MYSQL_8_0_44, MYSQL_8_0_45, MYSQL_8_0_46, MYSQL_8_4,
406+
* MYSQL_8_0_44, MYSQL_8_0_45, MYSQL_8_0_46, MYSQL_8_4, MYSQL_9_7,
403407
* SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS,
404408
* SQLSERVER_2017_WEB, POSTGRES_9_6, POSTGRES_10, POSTGRES_11, POSTGRES_12,
405409
* POSTGRES_13, POSTGRES_14, POSTGRES_15, POSTGRES_16, POSTGRES_17,

src/SQLAdmin/DatabaseInstance.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ class DatabaseInstance extends \Google\Collection
155155
* The database version is MySQL 8.4.
156156
*/
157157
public const DATABASE_VERSION_MYSQL_8_4 = 'MYSQL_8_4';
158+
/**
159+
* The database version is MySQL 9.7.
160+
*/
161+
public const DATABASE_VERSION_MYSQL_9_7 = 'MYSQL_9_7';
158162
/**
159163
* The database version is SQL Server 2017 Standard.
160164
*/
@@ -720,7 +724,7 @@ public function getDatabaseInstalledVersion()
720724
* MYSQL_8_0_28, MYSQL_8_0_29, MYSQL_8_0_30, MYSQL_8_0_31, MYSQL_8_0_32,
721725
* MYSQL_8_0_33, MYSQL_8_0_34, MYSQL_8_0_35, MYSQL_8_0_36, MYSQL_8_0_37,
722726
* MYSQL_8_0_39, MYSQL_8_0_40, MYSQL_8_0_41, MYSQL_8_0_42, MYSQL_8_0_43,
723-
* MYSQL_8_0_44, MYSQL_8_0_45, MYSQL_8_0_46, MYSQL_8_4,
727+
* MYSQL_8_0_44, MYSQL_8_0_45, MYSQL_8_0_46, MYSQL_8_4, MYSQL_9_7,
724728
* SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS,
725729
* SQLSERVER_2017_WEB, POSTGRES_9_6, POSTGRES_10, POSTGRES_11, POSTGRES_12,
726730
* POSTGRES_13, POSTGRES_14, POSTGRES_15, POSTGRES_16, POSTGRES_17,

src/SQLAdmin/DnsNameMapping.php

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,32 @@ class DnsNameMapping extends \Google\Model
3636
*/
3737
public const CONNECTION_TYPE_PRIVATE_SERVICE_CONNECT = 'PRIVATE_SERVICE_CONNECT';
3838
/**
39-
* Unknown DNS scope.
39+
* DNS scope not set. This value should not be used.
4040
*/
4141
public const DNS_SCOPE_DNS_SCOPE_UNSPECIFIED = 'DNS_SCOPE_UNSPECIFIED';
4242
/**
43-
* Indicates a instance-level DNS name.
43+
* Indicates an instance-level DNS name.
4444
*/
4545
public const DNS_SCOPE_INSTANCE = 'INSTANCE';
46+
/**
47+
* Indicates a cluster-level DNS name.
48+
*/
49+
public const DNS_SCOPE_CLUSTER = 'CLUSTER';
50+
/**
51+
* Record manager not set. This value should not be used.
52+
*/
53+
public const RECORD_MANAGER_RECORD_MANAGER_UNSPECIFIED = 'RECORD_MANAGER_UNSPECIFIED';
54+
/**
55+
* The record may be managed by the customer. It is not automatically managed
56+
* by Cloud SQL automation.
57+
*/
58+
public const RECORD_MANAGER_CUSTOMER = 'CUSTOMER';
59+
/**
60+
* The record is managed by Cloud SQL, which will create, update, and delete
61+
* the DNS records for the zone automatically when the Cloud SQL database
62+
* instance is created or updated.
63+
*/
64+
public const RECORD_MANAGER_CLOUD_SQL_AUTOMATION = 'CLOUD_SQL_AUTOMATION';
4665
/**
4766
* Output only. The connection type of the DNS name.
4867
*
@@ -56,11 +75,17 @@ class DnsNameMapping extends \Google\Model
5675
*/
5776
public $dnsScope;
5877
/**
59-
* The DNS name.
78+
* Output only. The DNS name.
6079
*
6180
* @var string
6281
*/
6382
public $name;
83+
/**
84+
* Output only. The manager for this DNS record.
85+
*
86+
* @var string
87+
*/
88+
public $recordManager;
6489

6590
/**
6691
* Output only. The connection type of the DNS name.
@@ -84,7 +109,7 @@ public function getConnectionType()
84109
/**
85110
* Output only. The scope that the DNS name applies to.
86111
*
87-
* Accepted values: DNS_SCOPE_UNSPECIFIED, INSTANCE
112+
* Accepted values: DNS_SCOPE_UNSPECIFIED, INSTANCE, CLUSTER
88113
*
89114
* @param self::DNS_SCOPE_* $dnsScope
90115
*/
@@ -100,7 +125,7 @@ public function getDnsScope()
100125
return $this->dnsScope;
101126
}
102127
/**
103-
* The DNS name.
128+
* Output only. The DNS name.
104129
*
105130
* @param string $name
106131
*/
@@ -115,6 +140,24 @@ public function getName()
115140
{
116141
return $this->name;
117142
}
143+
/**
144+
* Output only. The manager for this DNS record.
145+
*
146+
* Accepted values: RECORD_MANAGER_UNSPECIFIED, CUSTOMER, CLOUD_SQL_AUTOMATION
147+
*
148+
* @param self::RECORD_MANAGER_* $recordManager
149+
*/
150+
public function setRecordManager($recordManager)
151+
{
152+
$this->recordManager = $recordManager;
153+
}
154+
/**
155+
* @return self::RECORD_MANAGER_*
156+
*/
157+
public function getRecordManager()
158+
{
159+
return $this->recordManager;
160+
}
118161
}
119162

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

src/SQLAdmin/ExecuteSqlPayload.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ class ExecuteSqlPayload extends \Google\Model
3434
* Don't throw an error.
3535
*/
3636
public const PARTIAL_RESULT_MODE_ALLOW_PARTIAL_RESULT = 'ALLOW_PARTIAL_RESULT';
37+
/**
38+
* Optional. Specifies the name of the application that is making the request.
39+
* This field is used for telemetry. Only alphanumeric characters, dashes, and
40+
* underscores are allowed. The maximum length is 32 characters.
41+
*
42+
* @var string
43+
*/
44+
public $application;
3745
/**
3846
* Optional. When set to true, the API caller identity associated with the
3947
* request is used for database authentication. The API caller must be an IAM
@@ -78,6 +86,24 @@ class ExecuteSqlPayload extends \Google\Model
7886
*/
7987
public $user;
8088

89+
/**
90+
* Optional. Specifies the name of the application that is making the request.
91+
* This field is used for telemetry. Only alphanumeric characters, dashes, and
92+
* underscores are allowed. The maximum length is 32 characters.
93+
*
94+
* @param string $application
95+
*/
96+
public function setApplication($application)
97+
{
98+
$this->application = $application;
99+
}
100+
/**
101+
* @return string
102+
*/
103+
public function getApplication()
104+
{
105+
return $this->application;
106+
}
81107
/**
82108
* Optional. When set to true, the API caller identity associated with the
83109
* request is used for database authentication. The API caller must be an IAM

src/SQLAdmin/InsightsConfig.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919

2020
class InsightsConfig extends \Google\Model
2121
{
22+
/**
23+
* Optional. Whether enhanced query insights feature is enabled.
24+
*
25+
* @var bool
26+
*/
27+
public $enhancedQueryInsightsEnabled;
2228
/**
2329
* Whether Query Insights feature is enabled.
2430
*
@@ -55,6 +61,22 @@ class InsightsConfig extends \Google\Model
5561
*/
5662
public $recordClientAddress;
5763

64+
/**
65+
* Optional. Whether enhanced query insights feature is enabled.
66+
*
67+
* @param bool $enhancedQueryInsightsEnabled
68+
*/
69+
public function setEnhancedQueryInsightsEnabled($enhancedQueryInsightsEnabled)
70+
{
71+
$this->enhancedQueryInsightsEnabled = $enhancedQueryInsightsEnabled;
72+
}
73+
/**
74+
* @return bool
75+
*/
76+
public function getEnhancedQueryInsightsEnabled()
77+
{
78+
return $this->enhancedQueryInsightsEnabled;
79+
}
5880
/**
5981
* Whether Query Insights feature is enabled.
6082
*

src/SQLAdmin/Operation.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ class Operation extends \Google\Model
100100
*/
101101
public const OPERATION_TYPE_DELETE_USER = 'DELETE_USER';
102102
/**
103-
* Updates an existing user in a Cloud SQL instance.
103+
* Updates an existing user in a Cloud SQL instance. If a user with the
104+
* specified username doesn't exist, a new user is created.
104105
*/
105106
public const OPERATION_TYPE_UPDATE_USER = 'UPDATE_USER';
106107
/**

src/SQLAdmin/PreCheckMajorVersionUpgradeContext.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ class PreCheckMajorVersionUpgradeContext extends \Google\Collection
137137
* The database version is MySQL 8.4.
138138
*/
139139
public const TARGET_DATABASE_VERSION_MYSQL_8_4 = 'MYSQL_8_4';
140+
/**
141+
* The database version is MySQL 9.7.
142+
*/
143+
public const TARGET_DATABASE_VERSION_MYSQL_9_7 = 'MYSQL_9_7';
140144
/**
141145
* The database version is SQL Server 2017 Standard.
142146
*/
@@ -281,7 +285,7 @@ public function getPreCheckResponse()
281285
* MYSQL_8_0_28, MYSQL_8_0_29, MYSQL_8_0_30, MYSQL_8_0_31, MYSQL_8_0_32,
282286
* MYSQL_8_0_33, MYSQL_8_0_34, MYSQL_8_0_35, MYSQL_8_0_36, MYSQL_8_0_37,
283287
* MYSQL_8_0_39, MYSQL_8_0_40, MYSQL_8_0_41, MYSQL_8_0_42, MYSQL_8_0_43,
284-
* MYSQL_8_0_44, MYSQL_8_0_45, MYSQL_8_0_46, MYSQL_8_4,
288+
* MYSQL_8_0_44, MYSQL_8_0_45, MYSQL_8_0_46, MYSQL_8_4, MYSQL_9_7,
285289
* SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS,
286290
* SQLSERVER_2017_WEB, POSTGRES_9_6, POSTGRES_10, POSTGRES_11, POSTGRES_12,
287291
* POSTGRES_13, POSTGRES_14, POSTGRES_15, POSTGRES_16, POSTGRES_17,

0 commit comments

Comments
 (0)