@@ -90103,6 +90103,146 @@ public List set(String parameterName, Object value) {
90103
90103
return (List) super.set(parameterName, value);
90104
90104
}
90105
90105
}
90106
+ /**
90107
+ * Rebase a TunedModel.
90108
+ *
90109
+ * Create a request for the method "tuningJobs.rebaseTunedModel".
90110
+ *
90111
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
90112
+ * parameters, call the {@link RebaseTunedModel#execute()} method to invoke the remote operation.
90113
+ *
90114
+ * @param parent Required. The resource name of the Location into which to rebase the Model. Format:
90115
+ * `projects/{project}/locations/{location}`
90116
+ * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1RebaseTunedModelRequest}
90117
+ * @return the request
90118
+ */
90119
+ public RebaseTunedModel rebaseTunedModel(java.lang.String parent, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1RebaseTunedModelRequest content) throws java.io.IOException {
90120
+ RebaseTunedModel result = new RebaseTunedModel(parent, content);
90121
+ initialize(result);
90122
+ return result;
90123
+ }
90124
+
90125
+ public class RebaseTunedModel extends AiplatformRequest<com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation> {
90126
+
90127
+ private static final String REST_PATH = "v1/{+parent}/tuningJobs:rebaseTunedModel";
90128
+
90129
+ private final java.util.regex.Pattern PARENT_PATTERN =
90130
+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
90131
+
90132
+ /**
90133
+ * Rebase a TunedModel.
90134
+ *
90135
+ * Create a request for the method "tuningJobs.rebaseTunedModel".
90136
+ *
90137
+ * This request holds the parameters needed by the the aiplatform server. After setting any
90138
+ * optional parameters, call the {@link RebaseTunedModel#execute()} method to invoke the remote
90139
+ * operation. <p> {@link RebaseTunedModel#initialize(com.google.api.client.googleapis.services.Abs
90140
+ * tractGoogleClientRequest)} must be called to initialize this instance immediately after
90141
+ * invoking the constructor. </p>
90142
+ *
90143
+ * @param parent Required. The resource name of the Location into which to rebase the Model. Format:
90144
+ * `projects/{project}/locations/{location}`
90145
+ * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1RebaseTunedModelRequest}
90146
+ * @since 1.13
90147
+ */
90148
+ protected RebaseTunedModel(java.lang.String parent, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1RebaseTunedModelRequest content) {
90149
+ super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class);
90150
+ this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
90151
+ if (!getSuppressPatternChecks()) {
90152
+ com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
90153
+ "Parameter parent must conform to the pattern " +
90154
+ "^projects/[^/]+/locations/[^/]+$");
90155
+ }
90156
+ }
90157
+
90158
+ @Override
90159
+ public RebaseTunedModel set$Xgafv(java.lang.String $Xgafv) {
90160
+ return (RebaseTunedModel) super.set$Xgafv($Xgafv);
90161
+ }
90162
+
90163
+ @Override
90164
+ public RebaseTunedModel setAccessToken(java.lang.String accessToken) {
90165
+ return (RebaseTunedModel) super.setAccessToken(accessToken);
90166
+ }
90167
+
90168
+ @Override
90169
+ public RebaseTunedModel setAlt(java.lang.String alt) {
90170
+ return (RebaseTunedModel) super.setAlt(alt);
90171
+ }
90172
+
90173
+ @Override
90174
+ public RebaseTunedModel setCallback(java.lang.String callback) {
90175
+ return (RebaseTunedModel) super.setCallback(callback);
90176
+ }
90177
+
90178
+ @Override
90179
+ public RebaseTunedModel setFields(java.lang.String fields) {
90180
+ return (RebaseTunedModel) super.setFields(fields);
90181
+ }
90182
+
90183
+ @Override
90184
+ public RebaseTunedModel setKey(java.lang.String key) {
90185
+ return (RebaseTunedModel) super.setKey(key);
90186
+ }
90187
+
90188
+ @Override
90189
+ public RebaseTunedModel setOauthToken(java.lang.String oauthToken) {
90190
+ return (RebaseTunedModel) super.setOauthToken(oauthToken);
90191
+ }
90192
+
90193
+ @Override
90194
+ public RebaseTunedModel setPrettyPrint(java.lang.Boolean prettyPrint) {
90195
+ return (RebaseTunedModel) super.setPrettyPrint(prettyPrint);
90196
+ }
90197
+
90198
+ @Override
90199
+ public RebaseTunedModel setQuotaUser(java.lang.String quotaUser) {
90200
+ return (RebaseTunedModel) super.setQuotaUser(quotaUser);
90201
+ }
90202
+
90203
+ @Override
90204
+ public RebaseTunedModel setUploadType(java.lang.String uploadType) {
90205
+ return (RebaseTunedModel) super.setUploadType(uploadType);
90206
+ }
90207
+
90208
+ @Override
90209
+ public RebaseTunedModel setUploadProtocol(java.lang.String uploadProtocol) {
90210
+ return (RebaseTunedModel) super.setUploadProtocol(uploadProtocol);
90211
+ }
90212
+
90213
+ /**
90214
+ * Required. The resource name of the Location into which to rebase the Model. Format:
90215
+ * `projects/{project}/locations/{location}`
90216
+ */
90217
+ @com.google.api.client.util.Key
90218
+ private java.lang.String parent;
90219
+
90220
+ /** Required. The resource name of the Location into which to rebase the Model. Format:
90221
+ `projects/{project}/locations/{location}`
90222
+ */
90223
+ public java.lang.String getParent() {
90224
+ return parent;
90225
+ }
90226
+
90227
+ /**
90228
+ * Required. The resource name of the Location into which to rebase the Model. Format:
90229
+ * `projects/{project}/locations/{location}`
90230
+ */
90231
+ public RebaseTunedModel setParent(java.lang.String parent) {
90232
+ if (!getSuppressPatternChecks()) {
90233
+ com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
90234
+ "Parameter parent must conform to the pattern " +
90235
+ "^projects/[^/]+/locations/[^/]+$");
90236
+ }
90237
+ this.parent = parent;
90238
+ return this;
90239
+ }
90240
+
90241
+ @Override
90242
+ public RebaseTunedModel set(String parameterName, Object value) {
90243
+ return (RebaseTunedModel) super.set(parameterName, value);
90244
+ }
90245
+ }
90106
90246
90107
90247
/**
90108
90248
* An accessor for creating requests from the Operations collection.
@@ -90265,6 +90405,139 @@ public Cancel set(String parameterName, Object value) {
90265
90405
return (Cancel) super.set(parameterName, value);
90266
90406
}
90267
90407
}
90408
+ /**
90409
+ * Deletes a long-running operation. This method indicates that the client is no longer interested
90410
+ * in the operation result. It does not cancel the operation. If the server doesn't support this
90411
+ * method, it returns `google.rpc.Code.UNIMPLEMENTED`.
90412
+ *
90413
+ * Create a request for the method "operations.delete".
90414
+ *
90415
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
90416
+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
90417
+ *
90418
+ * @param name The name of the operation resource to be deleted.
90419
+ * @return the request
90420
+ */
90421
+ public Delete delete(java.lang.String name) throws java.io.IOException {
90422
+ Delete result = new Delete(name);
90423
+ initialize(result);
90424
+ return result;
90425
+ }
90426
+
90427
+ public class Delete extends AiplatformRequest<com.google.api.services.aiplatform.v1.model.GoogleProtobufEmpty> {
90428
+
90429
+ private static final String REST_PATH = "v1/{+name}";
90430
+
90431
+ private final java.util.regex.Pattern NAME_PATTERN =
90432
+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$");
90433
+
90434
+ /**
90435
+ * Deletes a long-running operation. This method indicates that the client is no longer interested
90436
+ * in the operation result. It does not cancel the operation. If the server doesn't support this
90437
+ * method, it returns `google.rpc.Code.UNIMPLEMENTED`.
90438
+ *
90439
+ * Create a request for the method "operations.delete".
90440
+ *
90441
+ * This request holds the parameters needed by the the aiplatform server. After setting any
90442
+ * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
90443
+ * <p> {@link
90444
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
90445
+ * be called to initialize this instance immediately after invoking the constructor. </p>
90446
+ *
90447
+ * @param name The name of the operation resource to be deleted.
90448
+ * @since 1.13
90449
+ */
90450
+ protected Delete(java.lang.String name) {
90451
+ super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleProtobufEmpty.class);
90452
+ this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
90453
+ if (!getSuppressPatternChecks()) {
90454
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
90455
+ "Parameter name must conform to the pattern " +
90456
+ "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$");
90457
+ }
90458
+ }
90459
+
90460
+ @Override
90461
+ public Delete set$Xgafv(java.lang.String $Xgafv) {
90462
+ return (Delete) super.set$Xgafv($Xgafv);
90463
+ }
90464
+
90465
+ @Override
90466
+ public Delete setAccessToken(java.lang.String accessToken) {
90467
+ return (Delete) super.setAccessToken(accessToken);
90468
+ }
90469
+
90470
+ @Override
90471
+ public Delete setAlt(java.lang.String alt) {
90472
+ return (Delete) super.setAlt(alt);
90473
+ }
90474
+
90475
+ @Override
90476
+ public Delete setCallback(java.lang.String callback) {
90477
+ return (Delete) super.setCallback(callback);
90478
+ }
90479
+
90480
+ @Override
90481
+ public Delete setFields(java.lang.String fields) {
90482
+ return (Delete) super.setFields(fields);
90483
+ }
90484
+
90485
+ @Override
90486
+ public Delete setKey(java.lang.String key) {
90487
+ return (Delete) super.setKey(key);
90488
+ }
90489
+
90490
+ @Override
90491
+ public Delete setOauthToken(java.lang.String oauthToken) {
90492
+ return (Delete) super.setOauthToken(oauthToken);
90493
+ }
90494
+
90495
+ @Override
90496
+ public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
90497
+ return (Delete) super.setPrettyPrint(prettyPrint);
90498
+ }
90499
+
90500
+ @Override
90501
+ public Delete setQuotaUser(java.lang.String quotaUser) {
90502
+ return (Delete) super.setQuotaUser(quotaUser);
90503
+ }
90504
+
90505
+ @Override
90506
+ public Delete setUploadType(java.lang.String uploadType) {
90507
+ return (Delete) super.setUploadType(uploadType);
90508
+ }
90509
+
90510
+ @Override
90511
+ public Delete setUploadProtocol(java.lang.String uploadProtocol) {
90512
+ return (Delete) super.setUploadProtocol(uploadProtocol);
90513
+ }
90514
+
90515
+ /** The name of the operation resource to be deleted. */
90516
+ @com.google.api.client.util.Key
90517
+ private java.lang.String name;
90518
+
90519
+ /** The name of the operation resource to be deleted.
90520
+ */
90521
+ public java.lang.String getName() {
90522
+ return name;
90523
+ }
90524
+
90525
+ /** The name of the operation resource to be deleted. */
90526
+ public Delete setName(java.lang.String name) {
90527
+ if (!getSuppressPatternChecks()) {
90528
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
90529
+ "Parameter name must conform to the pattern " +
90530
+ "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$");
90531
+ }
90532
+ this.name = name;
90533
+ return this;
90534
+ }
90535
+
90536
+ @Override
90537
+ public Delete set(String parameterName, Object value) {
90538
+ return (Delete) super.set(parameterName, value);
90539
+ }
90540
+ }
90268
90541
/**
90269
90542
* Gets the latest state of a long-running operation. Clients can use this method to poll the
90270
90543
* operation result at intervals as recommended by the API service.
0 commit comments