Skip to content

Commit

Permalink
chore: regenerate spanner client (#24977)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Jan 20, 2025
1 parent cfebc69 commit eb67b1b
Show file tree
Hide file tree
Showing 8 changed files with 503 additions and 6 deletions.
4 changes: 2 additions & 2 deletions clients/google-api-services-spanner/v1/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-spanner</artifactId>
<version>v1-rev20241220-2.0.0</version>
<version>v1-rev20250113-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-spanner:v1-rev20241220-2.0.0'
implementation 'com.google.apis:google-api-services-spanner:v1-rev20250113-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7088,6 +7088,146 @@ public Databases databases() {
*/
public class Databases {

/**
* Adds split points to specified tables, indexes of a database.
*
* Create a request for the method "databases.addSplitPoints".
*
* This request holds the parameters needed by the spanner server. After setting any optional
* parameters, call the {@link AddSplitPoints#execute()} method to invoke the remote operation.
*
* @param database Required. The database on whose tables/indexes split points are to be added. Values are of the form
* `projects//instances//databases/`.
* @param content the {@link com.google.api.services.spanner.v1.model.AddSplitPointsRequest}
* @return the request
*/
public AddSplitPoints addSplitPoints(java.lang.String database, com.google.api.services.spanner.v1.model.AddSplitPointsRequest content) throws java.io.IOException {
AddSplitPoints result = new AddSplitPoints(database, content);
initialize(result);
return result;
}

public class AddSplitPoints extends SpannerRequest<com.google.api.services.spanner.v1.model.AddSplitPointsResponse> {

private static final String REST_PATH = "v1/{+database}:addSplitPoints";

private final java.util.regex.Pattern DATABASE_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/databases/[^/]+$");

/**
* Adds split points to specified tables, indexes of a database.
*
* Create a request for the method "databases.addSplitPoints".
*
* This request holds the parameters needed by the the spanner server. After setting any optional
* parameters, call the {@link AddSplitPoints#execute()} method to invoke the remote operation.
* <p> {@link AddSplitPoints#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
* ientRequest)} must be called to initialize this instance immediately after invoking the
* constructor. </p>
*
* @param database Required. The database on whose tables/indexes split points are to be added. Values are of the form
* `projects//instances//databases/`.
* @param content the {@link com.google.api.services.spanner.v1.model.AddSplitPointsRequest}
* @since 1.13
*/
protected AddSplitPoints(java.lang.String database, com.google.api.services.spanner.v1.model.AddSplitPointsRequest content) {
super(Spanner.this, "POST", REST_PATH, content, com.google.api.services.spanner.v1.model.AddSplitPointsResponse.class);
this.database = com.google.api.client.util.Preconditions.checkNotNull(database, "Required parameter database must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(DATABASE_PATTERN.matcher(database).matches(),
"Parameter database must conform to the pattern " +
"^projects/[^/]+/instances/[^/]+/databases/[^/]+$");
}
}

@Override
public AddSplitPoints set$Xgafv(java.lang.String $Xgafv) {
return (AddSplitPoints) super.set$Xgafv($Xgafv);
}

@Override
public AddSplitPoints setAccessToken(java.lang.String accessToken) {
return (AddSplitPoints) super.setAccessToken(accessToken);
}

@Override
public AddSplitPoints setAlt(java.lang.String alt) {
return (AddSplitPoints) super.setAlt(alt);
}

@Override
public AddSplitPoints setCallback(java.lang.String callback) {
return (AddSplitPoints) super.setCallback(callback);
}

@Override
public AddSplitPoints setFields(java.lang.String fields) {
return (AddSplitPoints) super.setFields(fields);
}

@Override
public AddSplitPoints setKey(java.lang.String key) {
return (AddSplitPoints) super.setKey(key);
}

@Override
public AddSplitPoints setOauthToken(java.lang.String oauthToken) {
return (AddSplitPoints) super.setOauthToken(oauthToken);
}

@Override
public AddSplitPoints setPrettyPrint(java.lang.Boolean prettyPrint) {
return (AddSplitPoints) super.setPrettyPrint(prettyPrint);
}

@Override
public AddSplitPoints setQuotaUser(java.lang.String quotaUser) {
return (AddSplitPoints) super.setQuotaUser(quotaUser);
}

@Override
public AddSplitPoints setUploadType(java.lang.String uploadType) {
return (AddSplitPoints) super.setUploadType(uploadType);
}

@Override
public AddSplitPoints setUploadProtocol(java.lang.String uploadProtocol) {
return (AddSplitPoints) super.setUploadProtocol(uploadProtocol);
}

/**
* Required. The database on whose tables/indexes split points are to be added. Values are
* of the form `projects//instances//databases/`.
*/
@com.google.api.client.util.Key
private java.lang.String database;

/** Required. The database on whose tables/indexes split points are to be added. Values are of the form
`projects//instances//databases/`.
*/
public java.lang.String getDatabase() {
return database;
}

/**
* Required. The database on whose tables/indexes split points are to be added. Values are
* of the form `projects//instances//databases/`.
*/
public AddSplitPoints setDatabase(java.lang.String database) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(DATABASE_PATTERN.matcher(database).matches(),
"Parameter database must conform to the pattern " +
"^projects/[^/]+/instances/[^/]+/databases/[^/]+$");
}
this.database = database;
return this;
}

@Override
public AddSplitPoints set(String parameterName, Object value) {
return (AddSplitPoints) super.set(parameterName, value);
}
}
/**
* `ChangeQuorum` is strictly restricted to databases that use dual-region instance configurations.
* Initiates a background operation to change the quorum of a database from dual-region mode to
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.spanner.v1.model;

/**
* The request for AddSplitPoints.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Spanner API. For a detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class AddSplitPointsRequest extends com.google.api.client.json.GenericJson {

/**
* Optional. A user-supplied tag associated with the split points. For example,
* "intital_data_load", "special_event_1". Defaults to "CloudAddSplitPointsAPI" if not specified.
* The length of the tag must not exceed 50 characters,else will be trimmed. Only valid UTF8
* characters are allowed.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String initiator;

/**
* Required. The split points to add.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<SplitPoints> splitPoints;

/**
* Optional. A user-supplied tag associated with the split points. For example,
* "intital_data_load", "special_event_1". Defaults to "CloudAddSplitPointsAPI" if not specified.
* The length of the tag must not exceed 50 characters,else will be trimmed. Only valid UTF8
* characters are allowed.
* @return value or {@code null} for none
*/
public java.lang.String getInitiator() {
return initiator;
}

/**
* Optional. A user-supplied tag associated with the split points. For example,
* "intital_data_load", "special_event_1". Defaults to "CloudAddSplitPointsAPI" if not specified.
* The length of the tag must not exceed 50 characters,else will be trimmed. Only valid UTF8
* characters are allowed.
* @param initiator initiator or {@code null} for none
*/
public AddSplitPointsRequest setInitiator(java.lang.String initiator) {
this.initiator = initiator;
return this;
}

/**
* Required. The split points to add.
* @return value or {@code null} for none
*/
public java.util.List<SplitPoints> getSplitPoints() {
return splitPoints;
}

/**
* Required. The split points to add.
* @param splitPoints splitPoints or {@code null} for none
*/
public AddSplitPointsRequest setSplitPoints(java.util.List<SplitPoints> splitPoints) {
this.splitPoints = splitPoints;
return this;
}

@Override
public AddSplitPointsRequest set(String fieldName, Object value) {
return (AddSplitPointsRequest) super.set(fieldName, value);
}

@Override
public AddSplitPointsRequest clone() {
return (AddSplitPointsRequest) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.spanner.v1.model;

/**
* The response for AddSplitPoints.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Spanner API. For a detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class AddSplitPointsResponse extends com.google.api.client.json.GenericJson {

@Override
public AddSplitPointsResponse set(String fieldName, Object value) {
return (AddSplitPointsResponse) super.set(fieldName, value);
}

@Override
public AddSplitPointsResponse clone() {
return (AddSplitPointsResponse) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.spanner.v1.model;

/**
* A split key.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Spanner API. For a detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class Key extends com.google.api.client.json.GenericJson {

/**
* Required. The column values making up the split key.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.Object> keyParts;

/**
* Required. The column values making up the split key.
* @return value or {@code null} for none
*/
public java.util.List<java.lang.Object> getKeyParts() {
return keyParts;
}

/**
* Required. The column values making up the split key.
* @param keyParts keyParts or {@code null} for none
*/
public Key setKeyParts(java.util.List<java.lang.Object> keyParts) {
this.keyParts = keyParts;
return this;
}

@Override
public Key set(String fieldName, Object value) {
return (Key) super.set(fieldName, value);
}

@Override
public Key clone() {
return (Key) super.clone();
}

}
Loading

0 comments on commit eb67b1b

Please sign in to comment.