Skip to content

Commit 54f7b20

Browse files
1 parent c4918f0 commit 54f7b20

15 files changed

+919
-7
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-rev20250122-2.0.0</version>
25+
<version>v1-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:v1-rev20250122-2.0.0'
38+
implementation 'com.google.apis:google-api-services-alloydb:v1-rev20250205-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: 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.v1.model.ImportClusterRequest}
2612+
* @return the request
2613+
*/
2614+
public CloudAlloyDBAdminImport alloydbImport(java.lang.String name, com.google.api.services.alloydb.v1.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.v1.model.Operation> {
2621+
2622+
private static final String REST_PATH = "v1/{+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.v1.model.ImportClusterRequest}
2640+
* @since 1.13
2641+
*/
2642+
protected CloudAlloyDBAdminImport(java.lang.String name, com.google.api.services.alloydb.v1.model.ImportClusterRequest content) {
2643+
super(CloudAlloyDBAdmin.this, "POST", REST_PATH, content, com.google.api.services.alloydb.v1.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
*
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+
* The source CloudSQL backup resource.
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 CloudSQLBackupRunSource extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. The CloudSQL backup run ID.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
37+
private java.lang.Long backupRunId;
38+
39+
/**
40+
* Required. The CloudSQL instance ID.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.String instanceId;
45+
46+
/**
47+
* The project ID of the source CloudSQL instance. This should be the same as the AlloyDB
48+
* cluster's project.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.lang.String project;
53+
54+
/**
55+
* Required. The CloudSQL backup run ID.
56+
* @return value or {@code null} for none
57+
*/
58+
public java.lang.Long getBackupRunId() {
59+
return backupRunId;
60+
}
61+
62+
/**
63+
* Required. The CloudSQL backup run ID.
64+
* @param backupRunId backupRunId or {@code null} for none
65+
*/
66+
public CloudSQLBackupRunSource setBackupRunId(java.lang.Long backupRunId) {
67+
this.backupRunId = backupRunId;
68+
return this;
69+
}
70+
71+
/**
72+
* Required. The CloudSQL instance ID.
73+
* @return value or {@code null} for none
74+
*/
75+
public java.lang.String getInstanceId() {
76+
return instanceId;
77+
}
78+
79+
/**
80+
* Required. The CloudSQL instance ID.
81+
* @param instanceId instanceId or {@code null} for none
82+
*/
83+
public CloudSQLBackupRunSource setInstanceId(java.lang.String instanceId) {
84+
this.instanceId = instanceId;
85+
return this;
86+
}
87+
88+
/**
89+
* The project ID of the source CloudSQL instance. This should be the same as the AlloyDB
90+
* cluster's project.
91+
* @return value or {@code null} for none
92+
*/
93+
public java.lang.String getProject() {
94+
return project;
95+
}
96+
97+
/**
98+
* The project ID of the source CloudSQL instance. This should be the same as the AlloyDB
99+
* cluster's project.
100+
* @param project project or {@code null} for none
101+
*/
102+
public CloudSQLBackupRunSource setProject(java.lang.String project) {
103+
this.project = project;
104+
return this;
105+
}
106+
107+
@Override
108+
public CloudSQLBackupRunSource set(String fieldName, Object value) {
109+
return (CloudSQLBackupRunSource) super.set(fieldName, value);
110+
}
111+
112+
@Override
113+
public CloudSQLBackupRunSource clone() {
114+
return (CloudSQLBackupRunSource) super.clone();
115+
}
116+
117+
}

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ public final class Cluster extends com.google.api.client.json.GenericJson {
5656
@com.google.api.client.util.Key
5757
private BackupSource backupSource;
5858

59+
/**
60+
* Output only. Cluster created from CloudSQL snapshot.
61+
* The value may be {@code null}.
62+
*/
63+
@com.google.api.client.util.Key
64+
private CloudSQLBackupRunSource cloudsqlBackupRunSource;
65+
5966
/**
6067
* Output only. The type of the cluster. This is an output-only field and it's populated at the
6168
* Cluster creation time or the Cluster promotion time. The cluster type is determined by which
@@ -344,6 +351,23 @@ public Cluster setBackupSource(BackupSource backupSource) {
344351
return this;
345352
}
346353

354+
/**
355+
* Output only. Cluster created from CloudSQL snapshot.
356+
* @return value or {@code null} for none
357+
*/
358+
public CloudSQLBackupRunSource getCloudsqlBackupRunSource() {
359+
return cloudsqlBackupRunSource;
360+
}
361+
362+
/**
363+
* Output only. Cluster created from CloudSQL snapshot.
364+
* @param cloudsqlBackupRunSource cloudsqlBackupRunSource or {@code null} for none
365+
*/
366+
public Cluster setCloudsqlBackupRunSource(CloudSQLBackupRunSource cloudsqlBackupRunSource) {
367+
this.cloudsqlBackupRunSource = cloudsqlBackupRunSource;
368+
return this;
369+
}
370+
347371
/**
348372
* Output only. The type of the cluster. This is an output-only field and it's populated at the
349373
* Cluster creation time or the Cluster promotion time. The cluster type is determined by which

0 commit comments

Comments
 (0)