Skip to content

Commit 8d35322

Browse files
1 parent a42760e commit 8d35322

30 files changed

+931
-93
lines changed

clients/google-api-services-alloydb/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-alloydb</artifactId>
25-
<version>v1-rev20241106-2.0.0</version>
25+
<version>v1-rev20241204-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-alloydb:v1-rev20241106-2.0.0'
38+
implementation 'com.google.apis:google-api-services-alloydb:v1-rev20241204-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/CloudAlloyDBAdmin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6695,7 +6695,7 @@ public class Operations {
66956695
* it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
66966696
* methods to check whether the cancellation succeeded or whether the operation completed despite
66976697
* cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
6698-
* operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to
6698+
* operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to
66996699
* `Code.CANCELLED`.
67006700
*
67016701
* Create a request for the method "operations.cancel".
@@ -6726,7 +6726,7 @@ public class Cancel extends CloudAlloyDBAdminRequest<com.google.api.services.all
67266726
* it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
67276727
* methods to check whether the cancellation succeeded or whether the operation completed despite
67286728
* cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
6729-
* operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to
6729+
* operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to
67306730
* `Code.CANCELLED`.
67316731
*
67326732
* Create a request for the method "operations.cancel".

clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/CsvExportOptions.java

Lines changed: 88 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
package com.google.api.services.alloydb.v1.model;
1818

1919
/**
20-
* Options for exporting data in CSV format. For now, we only support a query to get the data that
21-
* needs to be exported.
20+
* Options for exporting data in CSV format.
2221
*
2322
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2423
* transmitted over HTTP when working with the AlloyDB API. For a detailed explanation see:
@@ -31,22 +30,106 @@
3130
public final class CsvExportOptions extends com.google.api.client.json.GenericJson {
3231

3332
/**
34-
* Required. The select_query used to extract the data.
33+
* Optional. Specifies the character that should appear before a data character that needs to be
34+
* escaped. The default is the same as quote character. The value of this argument has to be a
35+
* character in Hex ASCII Code.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String escapeCharacter;
40+
41+
/**
42+
* Optional. Specifies the character that separates columns within each row (line) of the file.
43+
* The default is comma. The value of this argument has to be a character in Hex ASCII Code.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.lang.String fieldDelimiter;
48+
49+
/**
50+
* Optional. Specifies the quoting character to be used when a data value is quoted. The default
51+
* is double-quote. The value of this argument has to be a character in Hex ASCII Code.
52+
* The value may be {@code null}.
53+
*/
54+
@com.google.api.client.util.Key
55+
private java.lang.String quoteCharacter;
56+
57+
/**
58+
* Required. The SELECT query used to extract the data.
3559
* The value may be {@code null}.
3660
*/
3761
@com.google.api.client.util.Key
3862
private java.lang.String selectQuery;
3963

4064
/**
41-
* Required. The select_query used to extract the data.
65+
* Optional. Specifies the character that should appear before a data character that needs to be
66+
* escaped. The default is the same as quote character. The value of this argument has to be a
67+
* character in Hex ASCII Code.
68+
* @return value or {@code null} for none
69+
*/
70+
public java.lang.String getEscapeCharacter() {
71+
return escapeCharacter;
72+
}
73+
74+
/**
75+
* Optional. Specifies the character that should appear before a data character that needs to be
76+
* escaped. The default is the same as quote character. The value of this argument has to be a
77+
* character in Hex ASCII Code.
78+
* @param escapeCharacter escapeCharacter or {@code null} for none
79+
*/
80+
public CsvExportOptions setEscapeCharacter(java.lang.String escapeCharacter) {
81+
this.escapeCharacter = escapeCharacter;
82+
return this;
83+
}
84+
85+
/**
86+
* Optional. Specifies the character that separates columns within each row (line) of the file.
87+
* The default is comma. The value of this argument has to be a character in Hex ASCII Code.
88+
* @return value or {@code null} for none
89+
*/
90+
public java.lang.String getFieldDelimiter() {
91+
return fieldDelimiter;
92+
}
93+
94+
/**
95+
* Optional. Specifies the character that separates columns within each row (line) of the file.
96+
* The default is comma. The value of this argument has to be a character in Hex ASCII Code.
97+
* @param fieldDelimiter fieldDelimiter or {@code null} for none
98+
*/
99+
public CsvExportOptions setFieldDelimiter(java.lang.String fieldDelimiter) {
100+
this.fieldDelimiter = fieldDelimiter;
101+
return this;
102+
}
103+
104+
/**
105+
* Optional. Specifies the quoting character to be used when a data value is quoted. The default
106+
* is double-quote. The value of this argument has to be a character in Hex ASCII Code.
107+
* @return value or {@code null} for none
108+
*/
109+
public java.lang.String getQuoteCharacter() {
110+
return quoteCharacter;
111+
}
112+
113+
/**
114+
* Optional. Specifies the quoting character to be used when a data value is quoted. The default
115+
* is double-quote. The value of this argument has to be a character in Hex ASCII Code.
116+
* @param quoteCharacter quoteCharacter or {@code null} for none
117+
*/
118+
public CsvExportOptions setQuoteCharacter(java.lang.String quoteCharacter) {
119+
this.quoteCharacter = quoteCharacter;
120+
return this;
121+
}
122+
123+
/**
124+
* Required. The SELECT query used to extract the data.
42125
* @return value or {@code null} for none
43126
*/
44127
public java.lang.String getSelectQuery() {
45128
return selectQuery;
46129
}
47130

48131
/**
49-
* Required. The select_query used to extract the data.
132+
* Required. The SELECT query used to extract the data.
50133
* @param selectQuery selectQuery or {@code null} for none
51134
*/
52135
public CsvExportOptions setSelectQuery(java.lang.String selectQuery) {

clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/ExportClusterRequest.java

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ public final class ExportClusterRequest extends com.google.api.client.json.Gener
3737
private CsvExportOptions csvExportOptions;
3838

3939
/**
40-
* Required. Name of the database where the query will be executed. Note - Value provided should
41-
* be the same as expected from `SELECT current_database();` and NOT as a resource reference.
40+
* Required. Name of the database where the export command will be executed. Note - Value provided
41+
* should be the same as expected from `SELECT current_database();` and NOT as a resource
42+
* reference.
4243
* The value may be {@code null}.
4344
*/
4445
@com.google.api.client.util.Key
@@ -51,6 +52,13 @@ public final class ExportClusterRequest extends com.google.api.client.json.Gener
5152
@com.google.api.client.util.Key
5253
private GcsDestination gcsDestination;
5354

55+
/**
56+
* Options for exporting data in SQL format. Required field to be set for SQL file type.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private SqlExportOptions sqlExportOptions;
61+
5462
/**
5563
* Options for exporting data in CSV format. Required field to be set for CSV file type.
5664
* @return value or {@code null} for none
@@ -69,17 +77,19 @@ public ExportClusterRequest setCsvExportOptions(CsvExportOptions csvExportOption
6977
}
7078

7179
/**
72-
* Required. Name of the database where the query will be executed. Note - Value provided should
73-
* be the same as expected from `SELECT current_database();` and NOT as a resource reference.
80+
* Required. Name of the database where the export command will be executed. Note - Value provided
81+
* should be the same as expected from `SELECT current_database();` and NOT as a resource
82+
* reference.
7483
* @return value or {@code null} for none
7584
*/
7685
public java.lang.String getDatabase() {
7786
return database;
7887
}
7988

8089
/**
81-
* Required. Name of the database where the query will be executed. Note - Value provided should
82-
* be the same as expected from `SELECT current_database();` and NOT as a resource reference.
90+
* Required. Name of the database where the export command will be executed. Note - Value provided
91+
* should be the same as expected from `SELECT current_database();` and NOT as a resource
92+
* reference.
8393
* @param database database or {@code null} for none
8494
*/
8595
public ExportClusterRequest setDatabase(java.lang.String database) {
@@ -104,6 +114,23 @@ public ExportClusterRequest setGcsDestination(GcsDestination gcsDestination) {
104114
return this;
105115
}
106116

117+
/**
118+
* Options for exporting data in SQL format. Required field to be set for SQL file type.
119+
* @return value or {@code null} for none
120+
*/
121+
public SqlExportOptions getSqlExportOptions() {
122+
return sqlExportOptions;
123+
}
124+
125+
/**
126+
* Options for exporting data in SQL format. Required field to be set for SQL file type.
127+
* @param sqlExportOptions sqlExportOptions or {@code null} for none
128+
*/
129+
public ExportClusterRequest setSqlExportOptions(SqlExportOptions sqlExportOptions) {
130+
this.sqlExportOptions = sqlExportOptions;
131+
return this;
132+
}
133+
107134
@Override
108135
public ExportClusterRequest set(String fieldName, Object value) {
109136
return (ExportClusterRequest) super.set(fieldName, value);

clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/GcsDestination.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,15 @@ public final class GcsDestination extends com.google.api.client.json.GenericJson
3131

3232
/**
3333
* Required. The path to the file in Google Cloud Storage where the export will be stored. The URI
34-
* is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds,
35-
* but the operation fails.
34+
* is in the form `gs://bucketName/fileName`.
3635
* The value may be {@code null}.
3736
*/
3837
@com.google.api.client.util.Key
3938
private java.lang.String uri;
4039

4140
/**
4241
* Required. The path to the file in Google Cloud Storage where the export will be stored. The URI
43-
* is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds,
44-
* but the operation fails.
42+
* is in the form `gs://bucketName/fileName`.
4543
* @return value or {@code null} for none
4644
*/
4745
public java.lang.String getUri() {
@@ -50,8 +48,7 @@ public java.lang.String getUri() {
5048

5149
/**
5250
* Required. The path to the file in Google Cloud Storage where the export will be stored. The URI
53-
* is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds,
54-
* but the operation fails.
51+
* is in the form `gs://bucketName/fileName`.
5552
* @param uri uri or {@code null} for none
5653
*/
5754
public GcsDestination setUri(java.lang.String uri) {

clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/OperationMetadata.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ
5252

5353
/**
5454
* Output only. Identifies whether the user has requested cancellation of the operation.
55-
* Operations that have successfully been cancelled have Operation.error value with a
56-
* google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
55+
* Operations that have successfully been cancelled have google.longrunning.Operation.error value
56+
* with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
5757
* The value may be {@code null}.
5858
*/
5959
@com.google.api.client.util.Key
@@ -133,8 +133,8 @@ public OperationMetadata setEndTime(String endTime) {
133133

134134
/**
135135
* Output only. Identifies whether the user has requested cancellation of the operation.
136-
* Operations that have successfully been cancelled have Operation.error value with a
137-
* google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
136+
* Operations that have successfully been cancelled have google.longrunning.Operation.error value
137+
* with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
138138
* @return value or {@code null} for none
139139
*/
140140
public java.lang.Boolean getRequestedCancellation() {
@@ -143,8 +143,8 @@ public java.lang.Boolean getRequestedCancellation() {
143143

144144
/**
145145
* Output only. Identifies whether the user has requested cancellation of the operation.
146-
* Operations that have successfully been cancelled have Operation.error value with a
147-
* google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
146+
* Operations that have successfully been cancelled have google.longrunning.Operation.error value
147+
* with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
148148
* @param requestedCancellation requestedCancellation or {@code null} for none
149149
*/
150150
public OperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) {

0 commit comments

Comments
 (0)