Skip to content

Commit 1dc5d1d

Browse files
1 parent 3fadfb3 commit 1dc5d1d

19 files changed

+1132
-37
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-rev20240703-2.0.0</version>
25+
<version>v1alpha-rev20240806-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-rev20240703-2.0.0'
38+
implementation 'com.google.apis:google-api-services-alloydb:v1alpha-rev20240806-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: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3391,6 +3391,137 @@ public Switchover set(String parameterName, Object value) {
33913391
return (Switchover) super.set(parameterName, value);
33923392
}
33933393
}
3394+
/**
3395+
* Upgrades a single Cluster. Imperative only.
3396+
*
3397+
* Create a request for the method "clusters.upgrade".
3398+
*
3399+
* This request holds the parameters needed by the alloydb server. After setting any optional
3400+
* parameters, call the {@link Upgrade#execute()} method to invoke the remote operation.
3401+
*
3402+
* @param name Required. The resource name of the cluster.
3403+
* @param content the {@link com.google.api.services.alloydb.v1alpha.model.UpgradeClusterRequest}
3404+
* @return the request
3405+
*/
3406+
public Upgrade upgrade(java.lang.String name, com.google.api.services.alloydb.v1alpha.model.UpgradeClusterRequest content) throws java.io.IOException {
3407+
Upgrade result = new Upgrade(name, content);
3408+
initialize(result);
3409+
return result;
3410+
}
3411+
3412+
public class Upgrade extends CloudAlloyDBAdminRequest<com.google.api.services.alloydb.v1alpha.model.Operation> {
3413+
3414+
private static final String REST_PATH = "v1alpha/{+name}:upgrade";
3415+
3416+
private final java.util.regex.Pattern NAME_PATTERN =
3417+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+$");
3418+
3419+
/**
3420+
* Upgrades a single Cluster. Imperative only.
3421+
*
3422+
* Create a request for the method "clusters.upgrade".
3423+
*
3424+
* This request holds the parameters needed by the the alloydb server. After setting any optional
3425+
* parameters, call the {@link Upgrade#execute()} method to invoke the remote operation. <p>
3426+
* {@link
3427+
* Upgrade#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
3428+
* be called to initialize this instance immediately after invoking the constructor. </p>
3429+
*
3430+
* @param name Required. The resource name of the cluster.
3431+
* @param content the {@link com.google.api.services.alloydb.v1alpha.model.UpgradeClusterRequest}
3432+
* @since 1.13
3433+
*/
3434+
protected Upgrade(java.lang.String name, com.google.api.services.alloydb.v1alpha.model.UpgradeClusterRequest content) {
3435+
super(CloudAlloyDBAdmin.this, "PATCH", REST_PATH, content, com.google.api.services.alloydb.v1alpha.model.Operation.class);
3436+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
3437+
if (!getSuppressPatternChecks()) {
3438+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
3439+
"Parameter name must conform to the pattern " +
3440+
"^projects/[^/]+/locations/[^/]+/clusters/[^/]+$");
3441+
}
3442+
}
3443+
3444+
@Override
3445+
public Upgrade set$Xgafv(java.lang.String $Xgafv) {
3446+
return (Upgrade) super.set$Xgafv($Xgafv);
3447+
}
3448+
3449+
@Override
3450+
public Upgrade setAccessToken(java.lang.String accessToken) {
3451+
return (Upgrade) super.setAccessToken(accessToken);
3452+
}
3453+
3454+
@Override
3455+
public Upgrade setAlt(java.lang.String alt) {
3456+
return (Upgrade) super.setAlt(alt);
3457+
}
3458+
3459+
@Override
3460+
public Upgrade setCallback(java.lang.String callback) {
3461+
return (Upgrade) super.setCallback(callback);
3462+
}
3463+
3464+
@Override
3465+
public Upgrade setFields(java.lang.String fields) {
3466+
return (Upgrade) super.setFields(fields);
3467+
}
3468+
3469+
@Override
3470+
public Upgrade setKey(java.lang.String key) {
3471+
return (Upgrade) super.setKey(key);
3472+
}
3473+
3474+
@Override
3475+
public Upgrade setOauthToken(java.lang.String oauthToken) {
3476+
return (Upgrade) super.setOauthToken(oauthToken);
3477+
}
3478+
3479+
@Override
3480+
public Upgrade setPrettyPrint(java.lang.Boolean prettyPrint) {
3481+
return (Upgrade) super.setPrettyPrint(prettyPrint);
3482+
}
3483+
3484+
@Override
3485+
public Upgrade setQuotaUser(java.lang.String quotaUser) {
3486+
return (Upgrade) super.setQuotaUser(quotaUser);
3487+
}
3488+
3489+
@Override
3490+
public Upgrade setUploadType(java.lang.String uploadType) {
3491+
return (Upgrade) super.setUploadType(uploadType);
3492+
}
3493+
3494+
@Override
3495+
public Upgrade setUploadProtocol(java.lang.String uploadProtocol) {
3496+
return (Upgrade) super.setUploadProtocol(uploadProtocol);
3497+
}
3498+
3499+
/** Required. The resource name of the cluster. */
3500+
@com.google.api.client.util.Key
3501+
private java.lang.String name;
3502+
3503+
/** Required. The resource name of the cluster.
3504+
*/
3505+
public java.lang.String getName() {
3506+
return name;
3507+
}
3508+
3509+
/** Required. The resource name of the cluster. */
3510+
public Upgrade setName(java.lang.String name) {
3511+
if (!getSuppressPatternChecks()) {
3512+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
3513+
"Parameter name must conform to the pattern " +
3514+
"^projects/[^/]+/locations/[^/]+/clusters/[^/]+$");
3515+
}
3516+
this.name = name;
3517+
return this;
3518+
}
3519+
3520+
@Override
3521+
public Upgrade set(String parameterName, Object value) {
3522+
return (Upgrade) super.set(parameterName, value);
3523+
}
3524+
}
33943525

33953526
/**
33963527
* An accessor for creating requests from the Instances collection.
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.v1alpha.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/v1alpha/2.0.0/com/google/api/services/alloydb/v1alpha/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
@@ -350,6 +357,23 @@ public Cluster setBackupSource(BackupSource backupSource) {
350357
return this;
351358
}
352359

360+
/**
361+
* Output only. Cluster created from CloudSQL snapshot.
362+
* @return value or {@code null} for none
363+
*/
364+
public CloudSQLBackupRunSource getCloudsqlBackupRunSource() {
365+
return cloudsqlBackupRunSource;
366+
}
367+
368+
/**
369+
* Output only. Cluster created from CloudSQL snapshot.
370+
* @param cloudsqlBackupRunSource cloudsqlBackupRunSource or {@code null} for none
371+
*/
372+
public Cluster setCloudsqlBackupRunSource(CloudSQLBackupRunSource cloudsqlBackupRunSource) {
373+
this.cloudsqlBackupRunSource = cloudsqlBackupRunSource;
374+
return this;
375+
}
376+
353377
/**
354378
* Output only. The type of the cluster. This is an output-only field and it's populated at the
355379
* Cluster creation time or the Cluster promotion time. The cluster type is determined by which

0 commit comments

Comments
 (0)