Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d7da9bf

Browse files
committedMar 18, 2025
feat(sqladmin): update the api
#### sqladmin:v1 The following keys were added: - resources.flags.methods.list.parameters.flagScope (Total Keys: 2) - schemas.Backup.properties.databaseVersion (Total Keys: 2) - schemas.BackupRun.properties.databaseVersion (Total Keys: 2) - schemas.ConnectPoolNodeConfig (Total Keys: 12) - schemas.ConnectSettings.properties.nodeCount (Total Keys: 2) - schemas.ConnectSettings.properties.nodes (Total Keys: 3) - schemas.ConnectionPoolConfig (Total Keys: 22) - schemas.ConnectionPoolFlags (Total Keys: 4) - schemas.DatabaseInstance.properties.nodeCount (Total Keys: 2) - schemas.DatabaseInstance.properties.nodes (Total Keys: 3) - schemas.Flag.properties.flagScope.type (Total Keys: 1) - schemas.Flag.properties.recommendedIntValue (Total Keys: 2) - schemas.Flag.properties.recommendedStringValue.type (Total Keys: 1) - schemas.PoolNodeConfig (Total Keys: 16) - schemas.Settings.properties.connectionPoolConfig.$ref (Total Keys: 1) - schemas.Settings.properties.dataDiskProvisionedIops (Total Keys: 2) - schemas.Settings.properties.dataDiskProvisionedThroughput (Total Keys: 2) #### sqladmin:v1beta4 The following keys were added: - resources.flags.methods.list.parameters.flagScope (Total Keys: 2) - schemas.Backup.properties.databaseVersion (Total Keys: 2) - schemas.BackupRun.properties.databaseVersion (Total Keys: 2) - schemas.ConnectPoolNodeConfig (Total Keys: 12) - schemas.ConnectSettings.properties.nodeCount (Total Keys: 2) - schemas.ConnectSettings.properties.nodes (Total Keys: 3) - schemas.ConnectionPoolConfig (Total Keys: 22) - schemas.ConnectionPoolFlags (Total Keys: 4) - schemas.DatabaseInstance.properties.nodeCount (Total Keys: 2) - schemas.DatabaseInstance.properties.nodes (Total Keys: 3) - schemas.Flag.properties.flagScope.type (Total Keys: 1) - schemas.Flag.properties.recommendedIntValue (Total Keys: 2) - schemas.Flag.properties.recommendedStringValue.type (Total Keys: 1) - schemas.PoolNodeConfig (Total Keys: 16) - schemas.Settings.properties.connectionPoolConfig.$ref (Total Keys: 1) - schemas.Settings.properties.dataDiskProvisionedIops (Total Keys: 2) - schemas.Settings.properties.dataDiskProvisionedThroughput (Total Keys: 2)
1 parent f81e04f commit d7da9bf

12 files changed

+2040
-20
lines changed
 

‎docs/dyn/sqladmin_v1.Backups.html

+164
Large diffs are not rendered by default.

‎docs/dyn/sqladmin_v1.backupRuns.html

+3
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ <h3>Method Details</h3>
268268

269269
{ # A BackupRun resource.
270270
&quot;backupKind&quot;: &quot;A String&quot;, # Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
271+
&quot;databaseVersion&quot;: &quot;A String&quot;, # Output only. The instance database version when this backup was made.
271272
&quot;description&quot;: &quot;A String&quot;, # The description of this run, only applicable to on-demand backups.
272273
&quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Encryption configuration specific to a backup.
273274
&quot;kind&quot;: &quot;A String&quot;, # This is always `sql#diskEncryptionConfiguration`.
@@ -310,6 +311,7 @@ <h3>Method Details</h3>
310311

311312
{ # A BackupRun resource.
312313
&quot;backupKind&quot;: &quot;A String&quot;, # Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
314+
&quot;databaseVersion&quot;: &quot;A String&quot;, # Output only. The instance database version when this backup was made.
313315
&quot;description&quot;: &quot;A String&quot;, # The description of this run, only applicable to on-demand backups.
314316
&quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Encryption configuration specific to a backup.
315317
&quot;kind&quot;: &quot;A String&quot;, # This is always `sql#diskEncryptionConfiguration`.
@@ -504,6 +506,7 @@ <h3>Method Details</h3>
504506
&quot;items&quot;: [ # A list of backup runs in reverse chronological order of the enqueued time.
505507
{ # A BackupRun resource.
506508
&quot;backupKind&quot;: &quot;A String&quot;, # Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
509+
&quot;databaseVersion&quot;: &quot;A String&quot;, # Output only. The instance database version when this backup was made.
507510
&quot;description&quot;: &quot;A String&quot;, # The description of this run, only applicable to on-demand backups.
508511
&quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Encryption configuration specific to a backup.
509512
&quot;kind&quot;: &quot;A String&quot;, # This is always `sql#diskEncryptionConfiguration`.

‎docs/dyn/sqladmin_v1.connect.html

+21
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,27 @@ <h3>Method Details</h3>
167167
},
168168
],
169169
&quot;kind&quot;: &quot;A String&quot;, # This is always `sql#connectSettings`.
170+
&quot;nodeCount&quot;: 42, # The number of nodes in a read pool.
171+
&quot;nodes&quot;: [ # Output only. Entries containing information about each node of the read pool.
172+
{ # Details of a single node of a read pool.
173+
&quot;dnsName&quot;: &quot;A String&quot;, # Output only. The DNS name of the node.
174+
&quot;dnsNames&quot;: [ # Output only. The list of DNS names used by this node.
175+
{ # DNS metadata.
176+
&quot;connectionType&quot;: &quot;A String&quot;, # Output only. The connection type of the DNS name.
177+
&quot;dnsScope&quot;: &quot;A String&quot;, # Output only. The scope that the DNS name applies to.
178+
&quot;name&quot;: &quot;A String&quot;, # The DNS name.
179+
},
180+
],
181+
&quot;ipAddresses&quot;: [ # Output only. Mappings containing IP addresses that can be used to connect to the node.
182+
{ # Database instance IP mapping
183+
&quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
184+
&quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.
185+
&quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.
186+
},
187+
],
188+
&quot;name&quot;: &quot;A String&quot;, # Output only. The name of the node. Doesn&#x27;t include the project ID.
189+
},
190+
],
170191
&quot;pscEnabled&quot;: True or False, # Whether PSC connectivity is enabled for this instance.
171192
&quot;region&quot;: &quot;A String&quot;, # The cloud region for the instance. For example, `us-central1`, `europe-west1`. The region cannot be changed after instance creation.
172193
&quot;serverCaCert&quot;: { # SslCerts Resource # SSL configuration.

‎docs/dyn/sqladmin_v1.flags.html

+10-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ <h2>Instance Methods</h2>
7878
<code><a href="#close">close()</a></code></p>
7979
<p class="firstline">Close httplib2 connections.</p>
8080
<p class="toc_element">
81-
<code><a href="#list">list(databaseVersion=None, x__xgafv=None)</a></code></p>
81+
<code><a href="#list">list(databaseVersion=None, flagScope=None, x__xgafv=None)</a></code></p>
8282
<p class="firstline">Lists all available database flags for Cloud SQL instances.</p>
8383
<h3>Method Details</h3>
8484
<div class="method">
@@ -87,11 +87,16 @@ <h3>Method Details</h3>
8787
</div>
8888

8989
<div class="method">
90-
<code class="details" id="list">list(databaseVersion=None, x__xgafv=None)</code>
90+
<code class="details" id="list">list(databaseVersion=None, flagScope=None, x__xgafv=None)</code>
9191
<pre>Lists all available database flags for Cloud SQL instances.
9292

9393
Args:
9494
databaseVersion: string, Database type and version you want to retrieve flags for. By default, this method returns flags for all database types and versions.
95+
flagScope: string, Optional. Specify the scope of flags to be returned by SqlFlagsListService. Return list of database flags if unspecified.
96+
Allowed values
97+
SQL_FLAG_SCOPE_UNSPECIFIED - Assume database flags if unspecified
98+
SQL_FLAG_SCOPE_DATABASE - database flags
99+
SQL_FLAG_SCOPE_CONNECTION_POOL - connection pool configuration flags
95100
x__xgafv: string, V1 error format.
96101
Allowed values
97102
1 - v1 error format
@@ -112,11 +117,14 @@ <h3>Method Details</h3>
112117
&quot;appliesTo&quot;: [ # The database version this flag applies to. Can be MySQL instances: `MYSQL_8_0`, `MYSQL_8_0_18`, `MYSQL_8_0_26`, `MYSQL_5_7`, or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11` or `POSTGRES_12`. SQL Server instances: `SQLSERVER_2017_STANDARD`, `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`. See [the complete list](/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion).
113118
&quot;A String&quot;,
114119
],
120+
&quot;flagScope&quot;: &quot;A String&quot;, # Scope of flag.
115121
&quot;inBeta&quot;: True or False, # Whether or not the flag is considered in beta.
116122
&quot;kind&quot;: &quot;A String&quot;, # This is always `sql#flag`.
117123
&quot;maxValue&quot;: &quot;A String&quot;, # For `INTEGER` flags, the maximum allowed value.
118124
&quot;minValue&quot;: &quot;A String&quot;, # For `INTEGER` flags, the minimum allowed value.
119125
&quot;name&quot;: &quot;A String&quot;, # This is the name of the flag. Flag names always use underscores, not hyphens, for example: `max_allowed_packet`
126+
&quot;recommendedIntValue&quot;: &quot;A String&quot;, # Recommended int value in integer format for UI display.
127+
&quot;recommendedStringValue&quot;: &quot;A String&quot;, # Recommended string value in string format for UI display.
120128
&quot;requiresRestart&quot;: True or False, # Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.
121129
&quot;type&quot;: &quot;A String&quot;, # The type of the flag. Flags are typed to being `BOOLEAN`, `STRING`, `INTEGER` or `NONE`. `NONE` is used for flags that do not take a value, such as `skip_grant_tables`.
122130
},

0 commit comments

Comments
 (0)
Please sign in to comment.