Skip to content

Commit 0592fb7

Browse files
feat(alloydb): update the api
#### alloydb:v1 The following keys were added: - resources.projects.resources.locations.resources.clusters.methods.export (Total Keys: 12) - schemas.CsvExportOptions (Total Keys: 3) - schemas.ExportClusterRequest (Total Keys: 5) - schemas.ExportClusterResponse (Total Keys: 3) - schemas.GcsDestination (Total Keys: 3) #### alloydb:v1alpha The following keys were added: - resources.projects.resources.locations.resources.clusters.methods.export (Total Keys: 12) - schemas.CsvExportOptions (Total Keys: 6) - schemas.ExportClusterRequest (Total Keys: 6) - schemas.GcsDestination (Total Keys: 3) - schemas.SqlExportOptions (Total Keys: 7) #### alloydb:v1beta The following keys were added: - resources.projects.resources.locations.resources.clusters.methods.export (Total Keys: 12) - schemas.CsvExportOptions (Total Keys: 6) - schemas.ExportClusterRequest (Total Keys: 6) - schemas.GcsDestination (Total Keys: 3) - schemas.SqlExportOptions (Total Keys: 7)
1 parent e230538 commit 0592fb7

File tree

6 files changed

+480
-3
lines changed

6 files changed

+480
-3
lines changed

docs/dyn/alloydb_v1.projects.locations.clusters.html

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ <h2>Instance Methods</h2>
9696
<p class="toc_element">
9797
<code><a href="#delete">delete(name, etag=None, force=None, requestId=None, validateOnly=None, x__xgafv=None)</a></code></p>
9898
<p class="firstline">Deletes a single Cluster.</p>
99+
<p class="toc_element">
100+
<code><a href="#export">export(name, body=None, x__xgafv=None)</a></code></p>
101+
<p class="firstline">Exports data from the cluster. Imperative only.</p>
99102
<p class="toc_element">
100103
<code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
101104
<p class="firstline">Gets details of a single Cluster.</p>
@@ -525,6 +528,54 @@ <h3>Method Details</h3>
525528
}</pre>
526529
</div>
527530

531+
<div class="method">
532+
<code class="details" id="export">export(name, body=None, x__xgafv=None)</code>
533+
<pre>Exports data from the cluster. Imperative only.
534+
535+
Args:
536+
name: string, Required. The resource name of the cluster. (required)
537+
body: object, The request body.
538+
The object takes the form of:
539+
540+
{ # Export cluster request.
541+
&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.
542+
&quot;selectQuery&quot;: &quot;A String&quot;, # Required. The select_query used to extract the data.
543+
},
544+
&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.
545+
&quot;gcsDestination&quot;: { # Destination for Export. Export will be done to cloud storage. # Required. Option to export data to cloud storage.
546+
&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.
547+
},
548+
}
549+
550+
x__xgafv: string, V1 error format.
551+
Allowed values
552+
1 - v1 error format
553+
2 - v2 error format
554+
555+
Returns:
556+
An object of the form:
557+
558+
{ # This resource represents a long-running operation that is the result of a network API call.
559+
&quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
560+
&quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
561+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
562+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
563+
{
564+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
565+
},
566+
],
567+
&quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
568+
},
569+
&quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
570+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
571+
},
572+
&quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
573+
&quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
574+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
575+
},
576+
}</pre>
577+
</div>
578+
528579
<div class="method">
529580
<code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
530581
<pre>Gets details of a single Cluster.

docs/dyn/alloydb_v1alpha.projects.locations.clusters.html

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ <h2>Instance Methods</h2>
9696
<p class="toc_element">
9797
<code><a href="#delete">delete(name, etag=None, force=None, requestId=None, validateOnly=None, x__xgafv=None)</a></code></p>
9898
<p class="firstline">Deletes a single Cluster.</p>
99+
<p class="toc_element">
100+
<code><a href="#export">export(name, body=None, x__xgafv=None)</a></code></p>
101+
<p class="firstline">Exports data from the cluster. Imperative only.</p>
99102
<p class="toc_element">
100103
<code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
101104
<p class="firstline">Gets details of a single Cluster.</p>
@@ -545,6 +548,65 @@ <h3>Method Details</h3>
545548
}</pre>
546549
</div>
547550

551+
<div class="method">
552+
<code class="details" id="export">export(name, body=None, x__xgafv=None)</code>
553+
<pre>Exports data from the cluster. Imperative only.
554+
555+
Args:
556+
name: string, Required. The resource name of the cluster. (required)
557+
body: object, The request body.
558+
The object takes the form of:
559+
560+
{ # Export cluster request.
561+
&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.
562+
&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.
563+
&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.
564+
&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.
565+
&quot;selectQuery&quot;: &quot;A String&quot;, # Required. The select_query used to extract the data.
566+
},
567+
&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.
568+
&quot;gcsDestination&quot;: { # Destination for Export. Export will be done to cloud storage. # Required. Option to export data to cloud storage.
569+
&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.
570+
},
571+
&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.
572+
&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.
573+
&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.
574+
&quot;schemaOnly&quot;: True or False, # Optional. If true, only export the schema.
575+
&quot;tables&quot;: [ # Optional. Tables to export from.
576+
&quot;A String&quot;,
577+
],
578+
},
579+
}
580+
581+
x__xgafv: string, V1 error format.
582+
Allowed values
583+
1 - v1 error format
584+
2 - v2 error format
585+
586+
Returns:
587+
An object of the form:
588+
589+
{ # This resource represents a long-running operation that is the result of a network API call.
590+
&quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
591+
&quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
592+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
593+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
594+
{
595+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
596+
},
597+
],
598+
&quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
599+
},
600+
&quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
601+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
602+
},
603+
&quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
604+
&quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
605+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
606+
},
607+
}</pre>
608+
</div>
609+
548610
<div class="method">
549611
<code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
550612
<pre>Gets details of a single Cluster.

docs/dyn/alloydb_v1beta.projects.locations.clusters.html

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ <h2>Instance Methods</h2>
9696
<p class="toc_element">
9797
<code><a href="#delete">delete(name, etag=None, force=None, requestId=None, validateOnly=None, x__xgafv=None)</a></code></p>
9898
<p class="firstline">Deletes a single Cluster.</p>
99+
<p class="toc_element">
100+
<code><a href="#export">export(name, body=None, x__xgafv=None)</a></code></p>
101+
<p class="firstline">Exports data from the cluster. Imperative only.</p>
99102
<p class="toc_element">
100103
<code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
101104
<p class="firstline">Gets details of a single Cluster.</p>
@@ -541,6 +544,65 @@ <h3>Method Details</h3>
541544
}</pre>
542545
</div>
543546

547+
<div class="method">
548+
<code class="details" id="export">export(name, body=None, x__xgafv=None)</code>
549+
<pre>Exports data from the cluster. Imperative only.
550+
551+
Args:
552+
name: string, Required. The resource name of the cluster. (required)
553+
body: object, The request body.
554+
The object takes the form of:
555+
556+
{ # Export cluster request.
557+
&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.
558+
&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.
559+
&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.
560+
&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.
561+
&quot;selectQuery&quot;: &quot;A String&quot;, # Required. The select_query used to extract the data.
562+
},
563+
&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.
564+
&quot;gcsDestination&quot;: { # Destination for Export. Export will be done to cloud storage. # Required. Option to export data to cloud storage.
565+
&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.
566+
},
567+
&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.
568+
&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.
569+
&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.
570+
&quot;schemaOnly&quot;: True or False, # Optional. If true, only export the schema.
571+
&quot;tables&quot;: [ # Optional. Tables to export from.
572+
&quot;A String&quot;,
573+
],
574+
},
575+
}
576+
577+
x__xgafv: string, V1 error format.
578+
Allowed values
579+
1 - v1 error format
580+
2 - v2 error format
581+
582+
Returns:
583+
An object of the form:
584+
585+
{ # This resource represents a long-running operation that is the result of a network API call.
586+
&quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
587+
&quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
588+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
589+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
590+
{
591+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
592+
},
593+
],
594+
&quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
595+
},
596+
&quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
597+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
598+
},
599+
&quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
600+
&quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
601+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
602+
},
603+
}</pre>
604+
</div>
605+
544606
<div class="method">
545607
<code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
546608
<pre>Gets details of a single Cluster.

0 commit comments

Comments
 (0)