Skip to content

Commit

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

The following keys were added:
- schemas.CsvExportOptions.properties.escapeCharacter.type (Total Keys: 1)
- schemas.CsvExportOptions.properties.fieldDelimiter.type (Total Keys: 1)
- schemas.CsvExportOptions.properties.quoteCharacter.type (Total Keys: 1)
- schemas.ExportClusterRequest.properties.sqlExportOptions.$ref (Total Keys: 1)
- schemas.SqlExportOptions (Total Keys: 7)
- schemas.StorageDatabasecenterPartnerapiV1mainMachineConfiguration.properties.vcpuCount (Total Keys: 2)

#### alloydb:v1alpha

The following keys were added:
- resources.projects.resources.locations.resources.clusters.methods.restoreFromCloudSQL (Total Keys: 12)
- schemas.RestoreFromCloudSQLRequest (Total Keys: 5)
- schemas.StorageDatabasecenterPartnerapiV1mainMachineConfiguration.properties.vcpuCount (Total Keys: 2)

#### alloydb:v1beta

The following keys were added:
- resources.projects.resources.locations.resources.clusters.methods.restoreFromCloudSQL (Total Keys: 12)
- schemas.RestoreFromCloudSQLRequest (Total Keys: 5)
- schemas.StorageDatabasecenterPartnerapiV1mainMachineConfiguration.properties.vcpuCount (Total Keys: 2)
  • Loading branch information
yoshi-automation committed Dec 17, 2024
1 parent 0fbab09 commit c964276
Show file tree
Hide file tree
Showing 9 changed files with 595 additions and 39 deletions.
19 changes: 15 additions & 4 deletions docs/dyn/alloydb_v1.projects.locations.clusters.html
Original file line number Diff line number Diff line change
Expand Up @@ -538,12 +538,23 @@ <h3>Method Details</h3>
The object takes the form of:

{ # Export cluster request.
&quot;csvExportOptions&quot;: { # Options for exporting data in CSV format. For now, we only support a query to get the data that needs to be exported. # Options for exporting data in CSV format. Required field to be set for CSV file type.
&quot;selectQuery&quot;: &quot;A String&quot;, # Required. The select_query used to extract the data.
&quot;csvExportOptions&quot;: { # Options for exporting data in CSV format. # Options for exporting data in CSV format. Required field to be set for CSV file type.
&quot;escapeCharacter&quot;: &quot;A String&quot;, # Optional. Specifies the character that should appear before a data character that needs to be escaped. The default is the same as quote character. The value of this argument has to be a character in Hex ASCII Code.
&quot;fieldDelimiter&quot;: &quot;A String&quot;, # Optional. Specifies the character that separates columns within each row (line) of the file. The default is comma. The value of this argument has to be a character in Hex ASCII Code.
&quot;quoteCharacter&quot;: &quot;A String&quot;, # Optional. Specifies the quoting character to be used when a data value is quoted. The default is double-quote. The value of this argument has to be a character in Hex ASCII Code.
&quot;selectQuery&quot;: &quot;A String&quot;, # Required. The SELECT query used to extract the data.
},
&quot;database&quot;: &quot;A String&quot;, # Required. Name of the database where the query will be executed. Note - Value provided should be the same as expected from `SELECT current_database();` and NOT as a resource reference.
&quot;database&quot;: &quot;A String&quot;, # Required. Name of the database where the export command will be executed. Note - Value provided should be the same as expected from `SELECT current_database();` and NOT as a resource reference.
&quot;gcsDestination&quot;: { # Destination for Export. Export will be done to cloud storage. # Required. Option to export data to cloud storage.
&quot;uri&quot;: &quot;A String&quot;, # Required. The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails.
&quot;uri&quot;: &quot;A String&quot;, # Required. The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`.
},
&quot;sqlExportOptions&quot;: { # Options for exporting data in SQL format. # Options for exporting data in SQL format. Required field to be set for SQL file type.
&quot;cleanTargetObjects&quot;: True or False, # Optional. If true, output commands to DROP all the dumped database objects prior to outputting the commands for creating them.
&quot;ifExistTargetObjects&quot;: True or False, # Optional. If true, use DROP ... IF EXISTS commands to check for the object&#x27;s existence before dropping it in clean_target_objects mode.
&quot;schemaOnly&quot;: True or False, # Optional. If true, only export the schema.
&quot;tables&quot;: [ # Optional. Tables to export from.
&quot;A String&quot;,
],
},
}

Expand Down
4 changes: 2 additions & 2 deletions docs/dyn/alloydb_v1.projects.locations.operations.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h1><a href="alloydb_v1.html">AlloyDB API</a> . <a href="alloydb_v1.projects.htm
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#cancel">cancel(name, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.</p>
<p class="firstline">Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.</p>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
Expand All @@ -95,7 +95,7 @@ <h2>Instance Methods</h2>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="cancel">cancel(name, body=None, x__xgafv=None)</code>
<pre>Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn&#x27;t support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
<pre>Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn&#x27;t support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.

Args:
name: string, The name of the operation resource to be cancelled. (required)
Expand Down
Loading

0 comments on commit c964276

Please sign in to comment.