Skip to content

Commit b61101d

Browse files
1 parent 3fe0855 commit b61101d

21 files changed

+1292
-14
lines changed

clients/google-api-services-alloydb/v1alpha/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>v1alpha-rev20250122-2.0.0</version>
25+
<version>v1alpha-rev20250205-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:v1alpha-rev20250122-2.0.0'
38+
implementation 'com.google.apis:google-api-services-alloydb:v1alpha-rev20250205-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2598,6 +2598,138 @@ public Get set(String parameterName, Object value) {
25982598
return (Get) super.set(parameterName, value);
25992599
}
26002600
}
2601+
/**
2602+
* Imports data to the cluster. Imperative only.
2603+
*
2604+
* Create a request for the method "clusters.import".
2605+
*
2606+
* This request holds the parameters needed by the alloydb server. After setting any optional
2607+
* parameters, call the {@link CloudAlloyDBAdminImport#execute()} method to invoke the remote
2608+
* operation.
2609+
*
2610+
* @param name Required. The resource name of the cluster.
2611+
* @param content the {@link com.google.api.services.alloydb.v1alpha.model.ImportClusterRequest}
2612+
* @return the request
2613+
*/
2614+
public CloudAlloyDBAdminImport alloydbImport(java.lang.String name, com.google.api.services.alloydb.v1alpha.model.ImportClusterRequest content) throws java.io.IOException {
2615+
CloudAlloyDBAdminImport result = new CloudAlloyDBAdminImport(name, content);
2616+
initialize(result);
2617+
return result;
2618+
}
2619+
2620+
public class CloudAlloyDBAdminImport extends CloudAlloyDBAdminRequest<com.google.api.services.alloydb.v1alpha.model.Operation> {
2621+
2622+
private static final String REST_PATH = "v1alpha/{+name}:import";
2623+
2624+
private final java.util.regex.Pattern NAME_PATTERN =
2625+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+$");
2626+
2627+
/**
2628+
* Imports data to the cluster. Imperative only.
2629+
*
2630+
* Create a request for the method "clusters.import".
2631+
*
2632+
* This request holds the parameters needed by the the alloydb server. After setting any optional
2633+
* parameters, call the {@link CloudAlloyDBAdminImport#execute()} method to invoke the remote
2634+
* operation. <p> {@link CloudAlloyDBAdminImport#initialize(com.google.api.client.googleapis.servi
2635+
* ces.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
2636+
* invoking the constructor. </p>
2637+
*
2638+
* @param name Required. The resource name of the cluster.
2639+
* @param content the {@link com.google.api.services.alloydb.v1alpha.model.ImportClusterRequest}
2640+
* @since 1.13
2641+
*/
2642+
protected CloudAlloyDBAdminImport(java.lang.String name, com.google.api.services.alloydb.v1alpha.model.ImportClusterRequest content) {
2643+
super(CloudAlloyDBAdmin.this, "POST", REST_PATH, content, com.google.api.services.alloydb.v1alpha.model.Operation.class);
2644+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
2645+
if (!getSuppressPatternChecks()) {
2646+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2647+
"Parameter name must conform to the pattern " +
2648+
"^projects/[^/]+/locations/[^/]+/clusters/[^/]+$");
2649+
}
2650+
}
2651+
2652+
@Override
2653+
public CloudAlloyDBAdminImport set$Xgafv(java.lang.String $Xgafv) {
2654+
return (CloudAlloyDBAdminImport) super.set$Xgafv($Xgafv);
2655+
}
2656+
2657+
@Override
2658+
public CloudAlloyDBAdminImport setAccessToken(java.lang.String accessToken) {
2659+
return (CloudAlloyDBAdminImport) super.setAccessToken(accessToken);
2660+
}
2661+
2662+
@Override
2663+
public CloudAlloyDBAdminImport setAlt(java.lang.String alt) {
2664+
return (CloudAlloyDBAdminImport) super.setAlt(alt);
2665+
}
2666+
2667+
@Override
2668+
public CloudAlloyDBAdminImport setCallback(java.lang.String callback) {
2669+
return (CloudAlloyDBAdminImport) super.setCallback(callback);
2670+
}
2671+
2672+
@Override
2673+
public CloudAlloyDBAdminImport setFields(java.lang.String fields) {
2674+
return (CloudAlloyDBAdminImport) super.setFields(fields);
2675+
}
2676+
2677+
@Override
2678+
public CloudAlloyDBAdminImport setKey(java.lang.String key) {
2679+
return (CloudAlloyDBAdminImport) super.setKey(key);
2680+
}
2681+
2682+
@Override
2683+
public CloudAlloyDBAdminImport setOauthToken(java.lang.String oauthToken) {
2684+
return (CloudAlloyDBAdminImport) super.setOauthToken(oauthToken);
2685+
}
2686+
2687+
@Override
2688+
public CloudAlloyDBAdminImport setPrettyPrint(java.lang.Boolean prettyPrint) {
2689+
return (CloudAlloyDBAdminImport) super.setPrettyPrint(prettyPrint);
2690+
}
2691+
2692+
@Override
2693+
public CloudAlloyDBAdminImport setQuotaUser(java.lang.String quotaUser) {
2694+
return (CloudAlloyDBAdminImport) super.setQuotaUser(quotaUser);
2695+
}
2696+
2697+
@Override
2698+
public CloudAlloyDBAdminImport setUploadType(java.lang.String uploadType) {
2699+
return (CloudAlloyDBAdminImport) super.setUploadType(uploadType);
2700+
}
2701+
2702+
@Override
2703+
public CloudAlloyDBAdminImport setUploadProtocol(java.lang.String uploadProtocol) {
2704+
return (CloudAlloyDBAdminImport) super.setUploadProtocol(uploadProtocol);
2705+
}
2706+
2707+
/** Required. The resource name of the cluster. */
2708+
@com.google.api.client.util.Key
2709+
private java.lang.String name;
2710+
2711+
/** Required. The resource name of the cluster.
2712+
*/
2713+
public java.lang.String getName() {
2714+
return name;
2715+
}
2716+
2717+
/** Required. The resource name of the cluster. */
2718+
public CloudAlloyDBAdminImport setName(java.lang.String name) {
2719+
if (!getSuppressPatternChecks()) {
2720+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2721+
"Parameter name must conform to the pattern " +
2722+
"^projects/[^/]+/locations/[^/]+/clusters/[^/]+$");
2723+
}
2724+
this.name = name;
2725+
return this;
2726+
}
2727+
2728+
@Override
2729+
public CloudAlloyDBAdminImport set(String parameterName, Object value) {
2730+
return (CloudAlloyDBAdminImport) super.set(parameterName, value);
2731+
}
2732+
}
26012733
/**
26022734
* Lists Clusters in a given project and location.
26032735
*
Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
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.v1alpha.model;
18+
19+
/**
20+
* Options for importing data in CSV format.
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 CsvImportOptions extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. The columns to which CSV data is imported. If not specified, all columns of the
34+
* database table are loaded with CSV data.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<java.lang.String> columns;
39+
40+
/**
41+
* Optional. Specifies the character that should appear before a data character that needs to be
42+
* escaped. The default is same as quote character. The value of this argument has to be a
43+
* 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 escapeCharacter;
48+
49+
/**
50+
* Optional. Specifies the character that separates columns within each row (line) of the file.
51+
* The default is comma. 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 fieldDelimiter;
56+
57+
/**
58+
* Optional. Specifies the quoting character to be used when a data value is quoted. The default
59+
* is double-quote. The value of this argument has to be a character in Hex ASCII Code.
60+
* The value may be {@code null}.
61+
*/
62+
@com.google.api.client.util.Key
63+
private java.lang.String quoteCharacter;
64+
65+
/**
66+
* Required. The database table to import CSV file into.
67+
* The value may be {@code null}.
68+
*/
69+
@com.google.api.client.util.Key
70+
private java.lang.String table;
71+
72+
/**
73+
* Optional. The columns to which CSV data is imported. If not specified, all columns of the
74+
* database table are loaded with CSV data.
75+
* @return value or {@code null} for none
76+
*/
77+
public java.util.List<java.lang.String> getColumns() {
78+
return columns;
79+
}
80+
81+
/**
82+
* Optional. The columns to which CSV data is imported. If not specified, all columns of the
83+
* database table are loaded with CSV data.
84+
* @param columns columns or {@code null} for none
85+
*/
86+
public CsvImportOptions setColumns(java.util.List<java.lang.String> columns) {
87+
this.columns = columns;
88+
return this;
89+
}
90+
91+
/**
92+
* Optional. Specifies the character that should appear before a data character that needs to be
93+
* escaped. The default is same as quote character. The value of this argument has to be a
94+
* character in Hex ASCII Code.
95+
* @return value or {@code null} for none
96+
*/
97+
public java.lang.String getEscapeCharacter() {
98+
return escapeCharacter;
99+
}
100+
101+
/**
102+
* Optional. Specifies the character that should appear before a data character that needs to be
103+
* escaped. The default is same as quote character. The value of this argument has to be a
104+
* character in Hex ASCII Code.
105+
* @param escapeCharacter escapeCharacter or {@code null} for none
106+
*/
107+
public CsvImportOptions setEscapeCharacter(java.lang.String escapeCharacter) {
108+
this.escapeCharacter = escapeCharacter;
109+
return this;
110+
}
111+
112+
/**
113+
* Optional. Specifies the character that separates columns within each row (line) of the file.
114+
* The default is comma. The value of this argument has to be a character in Hex ASCII Code.
115+
* @return value or {@code null} for none
116+
*/
117+
public java.lang.String getFieldDelimiter() {
118+
return fieldDelimiter;
119+
}
120+
121+
/**
122+
* Optional. Specifies the character that separates columns within each row (line) of the file.
123+
* The default is comma. The value of this argument has to be a character in Hex ASCII Code.
124+
* @param fieldDelimiter fieldDelimiter or {@code null} for none
125+
*/
126+
public CsvImportOptions setFieldDelimiter(java.lang.String fieldDelimiter) {
127+
this.fieldDelimiter = fieldDelimiter;
128+
return this;
129+
}
130+
131+
/**
132+
* Optional. Specifies the quoting character to be used when a data value is quoted. The default
133+
* is double-quote. The value of this argument has to be a character in Hex ASCII Code.
134+
* @return value or {@code null} for none
135+
*/
136+
public java.lang.String getQuoteCharacter() {
137+
return quoteCharacter;
138+
}
139+
140+
/**
141+
* Optional. Specifies the quoting character to be used when a data value is quoted. The default
142+
* is double-quote. The value of this argument has to be a character in Hex ASCII Code.
143+
* @param quoteCharacter quoteCharacter or {@code null} for none
144+
*/
145+
public CsvImportOptions setQuoteCharacter(java.lang.String quoteCharacter) {
146+
this.quoteCharacter = quoteCharacter;
147+
return this;
148+
}
149+
150+
/**
151+
* Required. The database table to import CSV file into.
152+
* @return value or {@code null} for none
153+
*/
154+
public java.lang.String getTable() {
155+
return table;
156+
}
157+
158+
/**
159+
* Required. The database table to import CSV file into.
160+
* @param table table or {@code null} for none
161+
*/
162+
public CsvImportOptions setTable(java.lang.String table) {
163+
this.table = table;
164+
return this;
165+
}
166+
167+
@Override
168+
public CsvImportOptions set(String fieldName, Object value) {
169+
return (CsvImportOptions) super.set(fieldName, value);
170+
}
171+
172+
@Override
173+
public CsvImportOptions clone() {
174+
return (CsvImportOptions) super.clone();
175+
}
176+
177+
}

0 commit comments

Comments
 (0)