Skip to content

Commit

Permalink
feat(sqladmin): update the api
Browse files Browse the repository at this point in the history
#### sqladmin:v1

The following keys were added:
- resources.projects.resources.instances.methods.getLatestRecoveryTime (Total Keys: 13)
- schemas.CloneContext.properties.preferredZone.type (Total Keys: 1)
- schemas.DataCacheConfig (Total Keys: 3)
- schemas.DatabaseInstance.properties.currentDiskSize.deprecated (Total Keys: 1)
- schemas.DatabaseInstance.properties.ipv6Address.deprecated (Total Keys: 1)
- schemas.DatabaseInstance.properties.maxDiskSize.deprecated (Total Keys: 1)
- schemas.ExportContext.properties.bakExportOptions.properties.copyOnly.deprecated (Total Keys: 1)
- schemas.LocationPreference.properties.followGaeApplication.deprecated (Total Keys: 1)
- schemas.Settings.properties.authorizedGaeApplications.deprecated (Total Keys: 1)
- schemas.Settings.properties.crashSafeReplicationEnabled.deprecated (Total Keys: 1)
- schemas.Settings.properties.dataCacheConfig.$ref (Total Keys: 1)
- schemas.Settings.properties.edition.type (Total Keys: 1)
- schemas.Settings.properties.replicationType.deprecated (Total Keys: 1)
- schemas.SqlInstancesGetLatestRecoveryTimeResponse (Total Keys: 5)
- schemas.SqlScheduledMaintenance.properties.canDefer.deprecated (Total Keys: 1)
- schemas.UsersListResponse.properties.nextPageToken.deprecated (Total Keys: 1)

#### sqladmin:v1beta4

The following keys were added:
- resources.projects.resources.instances.methods.getLatestRecoveryTime (Total Keys: 13)
- schemas.CloneContext.properties.preferredZone.type (Total Keys: 1)
- schemas.DataCacheConfig (Total Keys: 3)
- schemas.DatabaseInstance.properties.currentDiskSize.deprecated (Total Keys: 1)
- schemas.DatabaseInstance.properties.ipv6Address.deprecated (Total Keys: 1)
- schemas.DatabaseInstance.properties.maxDiskSize.deprecated (Total Keys: 1)
- schemas.ExportContext.properties.bakExportOptions.properties.copyOnly.deprecated (Total Keys: 1)
- schemas.LocationPreference.properties.followGaeApplication.deprecated (Total Keys: 1)
- schemas.Settings.properties.authorizedGaeApplications.deprecated (Total Keys: 1)
- schemas.Settings.properties.crashSafeReplicationEnabled.deprecated (Total Keys: 1)
- schemas.Settings.properties.dataCacheConfig.$ref (Total Keys: 1)
- schemas.Settings.properties.edition.type (Total Keys: 1)
- schemas.Settings.properties.replicationType.deprecated (Total Keys: 1)
- schemas.SqlInstancesGetLatestRecoveryTimeResponse (Total Keys: 5)
- schemas.SqlScheduledMaintenance.properties.canDefer.deprecated (Total Keys: 1)
- schemas.UsersListResponse.properties.nextPageToken.deprecated (Total Keys: 1)
  • Loading branch information
yoshi-automation committed Jul 5, 2023
1 parent 20e3512 commit aaa3698
Show file tree
Hide file tree
Showing 6 changed files with 666 additions and 6 deletions.
21 changes: 21 additions & 0 deletions docs/dyn/sqladmin_v1.instances.html
Expand Up @@ -277,6 +277,7 @@ <h3>Method Details</h3>
&quot;kind&quot;: &quot;A String&quot;, # This is always `sql#cloneContext`.
&quot;pitrTimestampMs&quot;: &quot;A String&quot;, # Reserved for future use.
&quot;pointInTime&quot;: &quot;A String&quot;, # Timestamp, if specified, identifies the time to which the source instance is cloned.
&quot;preferredZone&quot;: &quot;A String&quot;, # Optional. (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance.
},
}

Expand Down Expand Up @@ -1020,6 +1021,9 @@ <h3>Method Details</h3>
&quot;collation&quot;: &quot;A String&quot;, # The name of server Instance collation.
&quot;connectorEnforcement&quot;: &quot;A String&quot;, # Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors). Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.
&quot;crashSafeReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.
&quot;dataCacheConfig&quot;: { # Data cache configurations. # Configuration for data cache.
&quot;dataCacheEnabled&quot;: True or False, # Whether data cache is enabled for the instance.
},
&quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB.
&quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances.
&quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
Expand All @@ -1037,6 +1041,7 @@ <h3>Method Details</h3>
&quot;time&quot;: &quot;A String&quot;, # Time in UTC when the &quot;deny maintenance period&quot; starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
},
],
&quot;edition&quot;: &quot;A String&quot;, # Optional. The edition of the instance.
&quot;insightsConfig&quot;: { # Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration. # Insights configuration, for now relevant only for Postgres.
&quot;queryInsightsEnabled&quot;: True or False, # Whether Query Insights feature is enabled.
&quot;queryPlansPerMinute&quot;: 42, # Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
Expand Down Expand Up @@ -1383,6 +1388,9 @@ <h3>Method Details</h3>
&quot;collation&quot;: &quot;A String&quot;, # The name of server Instance collation.
&quot;connectorEnforcement&quot;: &quot;A String&quot;, # Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors). Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.
&quot;crashSafeReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.
&quot;dataCacheConfig&quot;: { # Data cache configurations. # Configuration for data cache.
&quot;dataCacheEnabled&quot;: True or False, # Whether data cache is enabled for the instance.
},
&quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB.
&quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances.
&quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
Expand All @@ -1400,6 +1408,7 @@ <h3>Method Details</h3>
&quot;time&quot;: &quot;A String&quot;, # Time in UTC when the &quot;deny maintenance period&quot; starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
},
],
&quot;edition&quot;: &quot;A String&quot;, # Optional. The edition of the instance.
&quot;insightsConfig&quot;: { # Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration. # Insights configuration, for now relevant only for Postgres.
&quot;queryInsightsEnabled&quot;: True or False, # Whether Query Insights feature is enabled.
&quot;queryPlansPerMinute&quot;: 42, # Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
Expand Down Expand Up @@ -1714,6 +1723,9 @@ <h3>Method Details</h3>
&quot;collation&quot;: &quot;A String&quot;, # The name of server Instance collation.
&quot;connectorEnforcement&quot;: &quot;A String&quot;, # Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors). Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.
&quot;crashSafeReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.
&quot;dataCacheConfig&quot;: { # Data cache configurations. # Configuration for data cache.
&quot;dataCacheEnabled&quot;: True or False, # Whether data cache is enabled for the instance.
},
&quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB.
&quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances.
&quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
Expand All @@ -1731,6 +1743,7 @@ <h3>Method Details</h3>
&quot;time&quot;: &quot;A String&quot;, # Time in UTC when the &quot;deny maintenance period&quot; starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
},
],
&quot;edition&quot;: &quot;A String&quot;, # Optional. The edition of the instance.
&quot;insightsConfig&quot;: { # Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration. # Insights configuration, for now relevant only for Postgres.
&quot;queryInsightsEnabled&quot;: True or False, # Whether Query Insights feature is enabled.
&quot;queryPlansPerMinute&quot;: 42, # Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
Expand Down Expand Up @@ -1998,6 +2011,9 @@ <h3>Method Details</h3>
&quot;collation&quot;: &quot;A String&quot;, # The name of server Instance collation.
&quot;connectorEnforcement&quot;: &quot;A String&quot;, # Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors). Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.
&quot;crashSafeReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.
&quot;dataCacheConfig&quot;: { # Data cache configurations. # Configuration for data cache.
&quot;dataCacheEnabled&quot;: True or False, # Whether data cache is enabled for the instance.
},
&quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB.
&quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances.
&quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
Expand All @@ -2015,6 +2031,7 @@ <h3>Method Details</h3>
&quot;time&quot;: &quot;A String&quot;, # Time in UTC when the &quot;deny maintenance period&quot; starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
},
],
&quot;edition&quot;: &quot;A String&quot;, # Optional. The edition of the instance.
&quot;insightsConfig&quot;: { # Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration. # Insights configuration, for now relevant only for Postgres.
&quot;queryInsightsEnabled&quot;: True or False, # Whether Query Insights feature is enabled.
&quot;queryPlansPerMinute&quot;: 42, # Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
Expand Down Expand Up @@ -3307,6 +3324,9 @@ <h3>Method Details</h3>
&quot;collation&quot;: &quot;A String&quot;, # The name of server Instance collation.
&quot;connectorEnforcement&quot;: &quot;A String&quot;, # Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors). Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.
&quot;crashSafeReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.
&quot;dataCacheConfig&quot;: { # Data cache configurations. # Configuration for data cache.
&quot;dataCacheEnabled&quot;: True or False, # Whether data cache is enabled for the instance.
},
&quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB.
&quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances.
&quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
Expand All @@ -3324,6 +3344,7 @@ <h3>Method Details</h3>
&quot;time&quot;: &quot;A String&quot;, # Time in UTC when the &quot;deny maintenance period&quot; starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
},
],
&quot;edition&quot;: &quot;A String&quot;, # Optional. The edition of the instance.
&quot;insightsConfig&quot;: { # Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration. # Insights configuration, for now relevant only for Postgres.
&quot;queryInsightsEnabled&quot;: True or False, # Whether Query Insights feature is enabled.
&quot;queryPlansPerMinute&quot;: 42, # Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
Expand Down
24 changes: 24 additions & 0 deletions docs/dyn/sqladmin_v1.projects.instances.html
Expand Up @@ -80,6 +80,9 @@ <h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#getDiskShrinkConfig">getDiskShrinkConfig(project, instance, x__xgafv=None)</a></code></p>
<p class="firstline">Get Disk Shrink Config for a given instance.</p>
<p class="toc_element">
<code><a href="#getLatestRecoveryTime">getLatestRecoveryTime(project, instance, x__xgafv=None)</a></code></p>
<p class="firstline">Get Latest Recovery Time for a given instance.</p>
<p class="toc_element">
<code><a href="#performDiskShrink">performDiskShrink(project, instance, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Perform Disk Shrink on primary instance.</p>
Expand Down Expand Up @@ -123,6 +126,27 @@ <h3>Method Details</h3>
}</pre>
</div>

<div class="method">
<code class="details" id="getLatestRecoveryTime">getLatestRecoveryTime(project, instance, x__xgafv=None)</code>
<pre>Get Latest Recovery Time for a given instance.

Args:
project: string, Project ID of the project that contains the instance. (required)
instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format

Returns:
An object of the form:

{ # Instance get latest recovery time response.
&quot;kind&quot;: &quot;A String&quot;, # This is always `sql#getLatestRecoveryTime`.
&quot;latestRecoveryTime&quot;: &quot;A String&quot;, # Timestamp, identifies the latest recovery time of the source instance.
}</pre>
</div>

<div class="method">
<code class="details" id="performDiskShrink">performDiskShrink(project, instance, body=None, x__xgafv=None)</code>
<pre>Perform Disk Shrink on primary instance.
Expand Down

0 comments on commit aaa3698

Please sign in to comment.