Skip to content

Commit 96b901b

Browse files
1 parent 5051163 commit 96b901b

File tree

24 files changed

+1746
-18
lines changed

24 files changed

+1746
-18
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-rev20241023-2.0.0</version>
25+
<version>v1-rev20241106-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-rev20241023-2.0.0'
38+
implementation 'com.google.apis:google-api-services-alloydb:v1-rev20241106-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: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2301,6 +2301,136 @@ public Delete set(String parameterName, Object value) {
23012301
return (Delete) super.set(parameterName, value);
23022302
}
23032303
}
2304+
/**
2305+
* Exports data from the cluster. Imperative only.
2306+
*
2307+
* Create a request for the method "clusters.export".
2308+
*
2309+
* This request holds the parameters needed by the alloydb server. After setting any optional
2310+
* parameters, call the {@link Export#execute()} method to invoke the remote operation.
2311+
*
2312+
* @param name Required. The resource name of the cluster.
2313+
* @param content the {@link com.google.api.services.alloydb.v1.model.ExportClusterRequest}
2314+
* @return the request
2315+
*/
2316+
public Export export(java.lang.String name, com.google.api.services.alloydb.v1.model.ExportClusterRequest content) throws java.io.IOException {
2317+
Export result = new Export(name, content);
2318+
initialize(result);
2319+
return result;
2320+
}
2321+
2322+
public class Export extends CloudAlloyDBAdminRequest<com.google.api.services.alloydb.v1.model.Operation> {
2323+
2324+
private static final String REST_PATH = "v1/{+name}:export";
2325+
2326+
private final java.util.regex.Pattern NAME_PATTERN =
2327+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+$");
2328+
2329+
/**
2330+
* Exports data from the cluster. Imperative only.
2331+
*
2332+
* Create a request for the method "clusters.export".
2333+
*
2334+
* This request holds the parameters needed by the the alloydb server. After setting any optional
2335+
* parameters, call the {@link Export#execute()} method to invoke the remote operation. <p> {@link
2336+
* Export#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
2337+
* be called to initialize this instance immediately after invoking the constructor. </p>
2338+
*
2339+
* @param name Required. The resource name of the cluster.
2340+
* @param content the {@link com.google.api.services.alloydb.v1.model.ExportClusterRequest}
2341+
* @since 1.13
2342+
*/
2343+
protected Export(java.lang.String name, com.google.api.services.alloydb.v1.model.ExportClusterRequest content) {
2344+
super(CloudAlloyDBAdmin.this, "POST", REST_PATH, content, com.google.api.services.alloydb.v1.model.Operation.class);
2345+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
2346+
if (!getSuppressPatternChecks()) {
2347+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2348+
"Parameter name must conform to the pattern " +
2349+
"^projects/[^/]+/locations/[^/]+/clusters/[^/]+$");
2350+
}
2351+
}
2352+
2353+
@Override
2354+
public Export set$Xgafv(java.lang.String $Xgafv) {
2355+
return (Export) super.set$Xgafv($Xgafv);
2356+
}
2357+
2358+
@Override
2359+
public Export setAccessToken(java.lang.String accessToken) {
2360+
return (Export) super.setAccessToken(accessToken);
2361+
}
2362+
2363+
@Override
2364+
public Export setAlt(java.lang.String alt) {
2365+
return (Export) super.setAlt(alt);
2366+
}
2367+
2368+
@Override
2369+
public Export setCallback(java.lang.String callback) {
2370+
return (Export) super.setCallback(callback);
2371+
}
2372+
2373+
@Override
2374+
public Export setFields(java.lang.String fields) {
2375+
return (Export) super.setFields(fields);
2376+
}
2377+
2378+
@Override
2379+
public Export setKey(java.lang.String key) {
2380+
return (Export) super.setKey(key);
2381+
}
2382+
2383+
@Override
2384+
public Export setOauthToken(java.lang.String oauthToken) {
2385+
return (Export) super.setOauthToken(oauthToken);
2386+
}
2387+
2388+
@Override
2389+
public Export setPrettyPrint(java.lang.Boolean prettyPrint) {
2390+
return (Export) super.setPrettyPrint(prettyPrint);
2391+
}
2392+
2393+
@Override
2394+
public Export setQuotaUser(java.lang.String quotaUser) {
2395+
return (Export) super.setQuotaUser(quotaUser);
2396+
}
2397+
2398+
@Override
2399+
public Export setUploadType(java.lang.String uploadType) {
2400+
return (Export) super.setUploadType(uploadType);
2401+
}
2402+
2403+
@Override
2404+
public Export setUploadProtocol(java.lang.String uploadProtocol) {
2405+
return (Export) super.setUploadProtocol(uploadProtocol);
2406+
}
2407+
2408+
/** Required. The resource name of the cluster. */
2409+
@com.google.api.client.util.Key
2410+
private java.lang.String name;
2411+
2412+
/** Required. The resource name of the cluster.
2413+
*/
2414+
public java.lang.String getName() {
2415+
return name;
2416+
}
2417+
2418+
/** Required. The resource name of the cluster. */
2419+
public Export setName(java.lang.String name) {
2420+
if (!getSuppressPatternChecks()) {
2421+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2422+
"Parameter name must conform to the pattern " +
2423+
"^projects/[^/]+/locations/[^/]+/clusters/[^/]+$");
2424+
}
2425+
this.name = name;
2426+
return this;
2427+
}
2428+
2429+
@Override
2430+
public Export set(String parameterName, Object value) {
2431+
return (Export) super.set(parameterName, value);
2432+
}
2433+
}
23042434
/**
23052435
* Gets details of a single Cluster.
23062436
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.alloydb.v1.model;
18+
19+
/**
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.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the AlloyDB API. For a detailed explanation see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class CsvExportOptions extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. The select_query used to extract the data.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String selectQuery;
39+
40+
/**
41+
* Required. The select_query used to extract the data.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.lang.String getSelectQuery() {
45+
return selectQuery;
46+
}
47+
48+
/**
49+
* Required. The select_query used to extract the data.
50+
* @param selectQuery selectQuery or {@code null} for none
51+
*/
52+
public CsvExportOptions setSelectQuery(java.lang.String selectQuery) {
53+
this.selectQuery = selectQuery;
54+
return this;
55+
}
56+
57+
@Override
58+
public CsvExportOptions set(String fieldName, Object value) {
59+
return (CsvExportOptions) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public CsvExportOptions clone() {
64+
return (CsvExportOptions) super.clone();
65+
}
66+
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.alloydb.v1.model;
18+
19+
/**
20+
* Export cluster request.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the AlloyDB API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class ExportClusterRequest extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Options for exporting data in CSV format. Required field to be set for CSV file type.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private CsvExportOptions csvExportOptions;
38+
39+
/**
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.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.String database;
46+
47+
/**
48+
* Required. Option to export data to cloud storage.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private GcsDestination gcsDestination;
53+
54+
/**
55+
* Options for exporting data in CSV format. Required field to be set for CSV file type.
56+
* @return value or {@code null} for none
57+
*/
58+
public CsvExportOptions getCsvExportOptions() {
59+
return csvExportOptions;
60+
}
61+
62+
/**
63+
* Options for exporting data in CSV format. Required field to be set for CSV file type.
64+
* @param csvExportOptions csvExportOptions or {@code null} for none
65+
*/
66+
public ExportClusterRequest setCsvExportOptions(CsvExportOptions csvExportOptions) {
67+
this.csvExportOptions = csvExportOptions;
68+
return this;
69+
}
70+
71+
/**
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.
74+
* @return value or {@code null} for none
75+
*/
76+
public java.lang.String getDatabase() {
77+
return database;
78+
}
79+
80+
/**
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.
83+
* @param database database or {@code null} for none
84+
*/
85+
public ExportClusterRequest setDatabase(java.lang.String database) {
86+
this.database = database;
87+
return this;
88+
}
89+
90+
/**
91+
* Required. Option to export data to cloud storage.
92+
* @return value or {@code null} for none
93+
*/
94+
public GcsDestination getGcsDestination() {
95+
return gcsDestination;
96+
}
97+
98+
/**
99+
* Required. Option to export data to cloud storage.
100+
* @param gcsDestination gcsDestination or {@code null} for none
101+
*/
102+
public ExportClusterRequest setGcsDestination(GcsDestination gcsDestination) {
103+
this.gcsDestination = gcsDestination;
104+
return this;
105+
}
106+
107+
@Override
108+
public ExportClusterRequest set(String fieldName, Object value) {
109+
return (ExportClusterRequest) super.set(fieldName, value);
110+
}
111+
112+
@Override
113+
public ExportClusterRequest clone() {
114+
return (ExportClusterRequest) super.clone();
115+
}
116+
117+
}

0 commit comments

Comments
 (0)