@@ -7088,6 +7088,146 @@ public Databases databases() {
7088
7088
*/
7089
7089
public class Databases {
7090
7090
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
+ }
7091
7231
/**
7092
7232
* `ChangeQuorum` is strictly restricted to databases that use dual-region instance configurations.
7093
7233
* Initiates a background operation to change the quorum of a database from dual-region mode to
0 commit comments