Skip to content

Commit eb67b1b

Browse files
1 parent cfebc69 commit eb67b1b

File tree

8 files changed

+503
-6
lines changed

8 files changed

+503
-6
lines changed

Diff for: clients/google-api-services-spanner/v1/2.0.0/README.md

+2-2
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-spanner</artifactId>
25-
<version>v1-rev20241220-2.0.0</version>
25+
<version>v1-rev20250113-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-spanner:v1-rev20241220-2.0.0'
38+
implementation 'com.google.apis:google-api-services-spanner:v1-rev20250113-2.0.0'
3939
}
4040
```
4141

Diff for: clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/Spanner.java

+140
Original file line numberDiff line numberDiff line change
@@ -7088,6 +7088,146 @@ public Databases databases() {
70887088
*/
70897089
public class Databases {
70907090

7091+
/**
7092+
* Adds split points to specified tables, indexes of a database.
7093+
*
7094+
* Create a request for the method "databases.addSplitPoints".
7095+
*
7096+
* This request holds the parameters needed by the spanner server. After setting any optional
7097+
* parameters, call the {@link AddSplitPoints#execute()} method to invoke the remote operation.
7098+
*
7099+
* @param database Required. The database on whose tables/indexes split points are to be added. Values are of the form
7100+
* `projects//instances//databases/`.
7101+
* @param content the {@link com.google.api.services.spanner.v1.model.AddSplitPointsRequest}
7102+
* @return the request
7103+
*/
7104+
public AddSplitPoints addSplitPoints(java.lang.String database, com.google.api.services.spanner.v1.model.AddSplitPointsRequest content) throws java.io.IOException {
7105+
AddSplitPoints result = new AddSplitPoints(database, content);
7106+
initialize(result);
7107+
return result;
7108+
}
7109+
7110+
public class AddSplitPoints extends SpannerRequest<com.google.api.services.spanner.v1.model.AddSplitPointsResponse> {
7111+
7112+
private static final String REST_PATH = "v1/{+database}:addSplitPoints";
7113+
7114+
private final java.util.regex.Pattern DATABASE_PATTERN =
7115+
java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/databases/[^/]+$");
7116+
7117+
/**
7118+
* Adds split points to specified tables, indexes of a database.
7119+
*
7120+
* Create a request for the method "databases.addSplitPoints".
7121+
*
7122+
* This request holds the parameters needed by the the spanner server. After setting any optional
7123+
* parameters, call the {@link AddSplitPoints#execute()} method to invoke the remote operation.
7124+
* <p> {@link AddSplitPoints#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
7125+
* ientRequest)} must be called to initialize this instance immediately after invoking the
7126+
* constructor. </p>
7127+
*
7128+
* @param database Required. The database on whose tables/indexes split points are to be added. Values are of the form
7129+
* `projects//instances//databases/`.
7130+
* @param content the {@link com.google.api.services.spanner.v1.model.AddSplitPointsRequest}
7131+
* @since 1.13
7132+
*/
7133+
protected AddSplitPoints(java.lang.String database, com.google.api.services.spanner.v1.model.AddSplitPointsRequest content) {
7134+
super(Spanner.this, "POST", REST_PATH, content, com.google.api.services.spanner.v1.model.AddSplitPointsResponse.class);
7135+
this.database = com.google.api.client.util.Preconditions.checkNotNull(database, "Required parameter database must be specified.");
7136+
if (!getSuppressPatternChecks()) {
7137+
com.google.api.client.util.Preconditions.checkArgument(DATABASE_PATTERN.matcher(database).matches(),
7138+
"Parameter database must conform to the pattern " +
7139+
"^projects/[^/]+/instances/[^/]+/databases/[^/]+$");
7140+
}
7141+
}
7142+
7143+
@Override
7144+
public AddSplitPoints set$Xgafv(java.lang.String $Xgafv) {
7145+
return (AddSplitPoints) super.set$Xgafv($Xgafv);
7146+
}
7147+
7148+
@Override
7149+
public AddSplitPoints setAccessToken(java.lang.String accessToken) {
7150+
return (AddSplitPoints) super.setAccessToken(accessToken);
7151+
}
7152+
7153+
@Override
7154+
public AddSplitPoints setAlt(java.lang.String alt) {
7155+
return (AddSplitPoints) super.setAlt(alt);
7156+
}
7157+
7158+
@Override
7159+
public AddSplitPoints setCallback(java.lang.String callback) {
7160+
return (AddSplitPoints) super.setCallback(callback);
7161+
}
7162+
7163+
@Override
7164+
public AddSplitPoints setFields(java.lang.String fields) {
7165+
return (AddSplitPoints) super.setFields(fields);
7166+
}
7167+
7168+
@Override
7169+
public AddSplitPoints setKey(java.lang.String key) {
7170+
return (AddSplitPoints) super.setKey(key);
7171+
}
7172+
7173+
@Override
7174+
public AddSplitPoints setOauthToken(java.lang.String oauthToken) {
7175+
return (AddSplitPoints) super.setOauthToken(oauthToken);
7176+
}
7177+
7178+
@Override
7179+
public AddSplitPoints setPrettyPrint(java.lang.Boolean prettyPrint) {
7180+
return (AddSplitPoints) super.setPrettyPrint(prettyPrint);
7181+
}
7182+
7183+
@Override
7184+
public AddSplitPoints setQuotaUser(java.lang.String quotaUser) {
7185+
return (AddSplitPoints) super.setQuotaUser(quotaUser);
7186+
}
7187+
7188+
@Override
7189+
public AddSplitPoints setUploadType(java.lang.String uploadType) {
7190+
return (AddSplitPoints) super.setUploadType(uploadType);
7191+
}
7192+
7193+
@Override
7194+
public AddSplitPoints setUploadProtocol(java.lang.String uploadProtocol) {
7195+
return (AddSplitPoints) super.setUploadProtocol(uploadProtocol);
7196+
}
7197+
7198+
/**
7199+
* Required. The database on whose tables/indexes split points are to be added. Values are
7200+
* of the form `projects//instances//databases/`.
7201+
*/
7202+
@com.google.api.client.util.Key
7203+
private java.lang.String database;
7204+
7205+
/** Required. The database on whose tables/indexes split points are to be added. Values are of the form
7206+
`projects//instances//databases/`.
7207+
*/
7208+
public java.lang.String getDatabase() {
7209+
return database;
7210+
}
7211+
7212+
/**
7213+
* Required. The database on whose tables/indexes split points are to be added. Values are
7214+
* of the form `projects//instances//databases/`.
7215+
*/
7216+
public AddSplitPoints setDatabase(java.lang.String database) {
7217+
if (!getSuppressPatternChecks()) {
7218+
com.google.api.client.util.Preconditions.checkArgument(DATABASE_PATTERN.matcher(database).matches(),
7219+
"Parameter database must conform to the pattern " +
7220+
"^projects/[^/]+/instances/[^/]+/databases/[^/]+$");
7221+
}
7222+
this.database = database;
7223+
return this;
7224+
}
7225+
7226+
@Override
7227+
public AddSplitPoints set(String parameterName, Object value) {
7228+
return (AddSplitPoints) super.set(parameterName, value);
7229+
}
7230+
}
70917231
/**
70927232
* `ChangeQuorum` is strictly restricted to databases that use dual-region instance configurations.
70937233
* Initiates a background operation to change the quorum of a database from dual-region mode to
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
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.spanner.v1.model;
18+
19+
/**
20+
* The request for AddSplitPoints.
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 Cloud Spanner 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 AddSplitPointsRequest extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. A user-supplied tag associated with the split points. For example,
34+
* "intital_data_load", "special_event_1". Defaults to "CloudAddSplitPointsAPI" if not specified.
35+
* The length of the tag must not exceed 50 characters,else will be trimmed. Only valid UTF8
36+
* characters are allowed.
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private java.lang.String initiator;
41+
42+
/**
43+
* Required. The split points to add.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.util.List<SplitPoints> splitPoints;
48+
49+
/**
50+
* Optional. A user-supplied tag associated with the split points. For example,
51+
* "intital_data_load", "special_event_1". Defaults to "CloudAddSplitPointsAPI" if not specified.
52+
* The length of the tag must not exceed 50 characters,else will be trimmed. Only valid UTF8
53+
* characters are allowed.
54+
* @return value or {@code null} for none
55+
*/
56+
public java.lang.String getInitiator() {
57+
return initiator;
58+
}
59+
60+
/**
61+
* Optional. A user-supplied tag associated with the split points. For example,
62+
* "intital_data_load", "special_event_1". Defaults to "CloudAddSplitPointsAPI" if not specified.
63+
* The length of the tag must not exceed 50 characters,else will be trimmed. Only valid UTF8
64+
* characters are allowed.
65+
* @param initiator initiator or {@code null} for none
66+
*/
67+
public AddSplitPointsRequest setInitiator(java.lang.String initiator) {
68+
this.initiator = initiator;
69+
return this;
70+
}
71+
72+
/**
73+
* Required. The split points to add.
74+
* @return value or {@code null} for none
75+
*/
76+
public java.util.List<SplitPoints> getSplitPoints() {
77+
return splitPoints;
78+
}
79+
80+
/**
81+
* Required. The split points to add.
82+
* @param splitPoints splitPoints or {@code null} for none
83+
*/
84+
public AddSplitPointsRequest setSplitPoints(java.util.List<SplitPoints> splitPoints) {
85+
this.splitPoints = splitPoints;
86+
return this;
87+
}
88+
89+
@Override
90+
public AddSplitPointsRequest set(String fieldName, Object value) {
91+
return (AddSplitPointsRequest) super.set(fieldName, value);
92+
}
93+
94+
@Override
95+
public AddSplitPointsRequest clone() {
96+
return (AddSplitPointsRequest) super.clone();
97+
}
98+
99+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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.spanner.v1.model;
18+
19+
/**
20+
* The response for AddSplitPoints.
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 Cloud Spanner 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 AddSplitPointsResponse extends com.google.api.client.json.GenericJson {
31+
32+
@Override
33+
public AddSplitPointsResponse set(String fieldName, Object value) {
34+
return (AddSplitPointsResponse) super.set(fieldName, value);
35+
}
36+
37+
@Override
38+
public AddSplitPointsResponse clone() {
39+
return (AddSplitPointsResponse) super.clone();
40+
}
41+
42+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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.spanner.v1.model;
18+
19+
/**
20+
* A split key.
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 Cloud Spanner 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 Key extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. The column values making up the split key.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.util.List<java.lang.Object> keyParts;
38+
39+
/**
40+
* Required. The column values making up the split key.
41+
* @return value or {@code null} for none
42+
*/
43+
public java.util.List<java.lang.Object> getKeyParts() {
44+
return keyParts;
45+
}
46+
47+
/**
48+
* Required. The column values making up the split key.
49+
* @param keyParts keyParts or {@code null} for none
50+
*/
51+
public Key setKeyParts(java.util.List<java.lang.Object> keyParts) {
52+
this.keyParts = keyParts;
53+
return this;
54+
}
55+
56+
@Override
57+
public Key set(String fieldName, Object value) {
58+
return (Key) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public Key clone() {
63+
return (Key) super.clone();
64+
}
65+
66+
}

0 commit comments

Comments
 (0)