@@ -178207,6 +178207,237 @@ public List set(String parameterName, Object value) {
178207
178207
return (List) super.set(parameterName, value);
178208
178208
}
178209
178209
}
178210
+ /**
178211
+ * Allows customers to perform maintenance on a reservation subBlock
178212
+ *
178213
+ * Create a request for the method "reservationSubBlocks.performMaintenance".
178214
+ *
178215
+ * This request holds the parameters needed by the compute server. After setting any optional
178216
+ * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation.
178217
+ *
178218
+ * @param project Project ID for this request.
178219
+ * @param zone Name of the zone for this request. Zone name should conform to RFC1035.
178220
+ * @param parentName The name of the parent reservation and parent block. In the format of
178221
+ * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
178222
+ * @param reservationSubBlock The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
178223
+ * @return the request
178224
+ */
178225
+ public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock) throws java.io.IOException {
178226
+ PerformMaintenance result = new PerformMaintenance(project, zone, parentName, reservationSubBlock);
178227
+ initialize(result);
178228
+ return result;
178229
+ }
178230
+
178231
+ public class PerformMaintenance extends ComputeRequest<com.google.api.services.compute.model.Operation> {
178232
+
178233
+ private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/performMaintenance";
178234
+
178235
+ /**
178236
+ * Allows customers to perform maintenance on a reservation subBlock
178237
+ *
178238
+ * Create a request for the method "reservationSubBlocks.performMaintenance".
178239
+ *
178240
+ * This request holds the parameters needed by the the compute server. After setting any optional
178241
+ * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote
178242
+ * operation. <p> {@link PerformMaintenance#initialize(com.google.api.client.googleapis.services.A
178243
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
178244
+ * invoking the constructor. </p>
178245
+ *
178246
+ * @param project Project ID for this request.
178247
+ * @param zone Name of the zone for this request. Zone name should conform to RFC1035.
178248
+ * @param parentName The name of the parent reservation and parent block. In the format of
178249
+ * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
178250
+ * @param reservationSubBlock The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
178251
+ * @since 1.13
178252
+ */
178253
+ protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock) {
178254
+ super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class);
178255
+ this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified.");
178256
+ this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified.");
178257
+ this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified.");
178258
+ this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified.");
178259
+ }
178260
+
178261
+ @Override
178262
+ public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) {
178263
+ return (PerformMaintenance) super.set$Xgafv($Xgafv);
178264
+ }
178265
+
178266
+ @Override
178267
+ public PerformMaintenance setAccessToken(java.lang.String accessToken) {
178268
+ return (PerformMaintenance) super.setAccessToken(accessToken);
178269
+ }
178270
+
178271
+ @Override
178272
+ public PerformMaintenance setAlt(java.lang.String alt) {
178273
+ return (PerformMaintenance) super.setAlt(alt);
178274
+ }
178275
+
178276
+ @Override
178277
+ public PerformMaintenance setCallback(java.lang.String callback) {
178278
+ return (PerformMaintenance) super.setCallback(callback);
178279
+ }
178280
+
178281
+ @Override
178282
+ public PerformMaintenance setFields(java.lang.String fields) {
178283
+ return (PerformMaintenance) super.setFields(fields);
178284
+ }
178285
+
178286
+ @Override
178287
+ public PerformMaintenance setKey(java.lang.String key) {
178288
+ return (PerformMaintenance) super.setKey(key);
178289
+ }
178290
+
178291
+ @Override
178292
+ public PerformMaintenance setOauthToken(java.lang.String oauthToken) {
178293
+ return (PerformMaintenance) super.setOauthToken(oauthToken);
178294
+ }
178295
+
178296
+ @Override
178297
+ public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) {
178298
+ return (PerformMaintenance) super.setPrettyPrint(prettyPrint);
178299
+ }
178300
+
178301
+ @Override
178302
+ public PerformMaintenance setQuotaUser(java.lang.String quotaUser) {
178303
+ return (PerformMaintenance) super.setQuotaUser(quotaUser);
178304
+ }
178305
+
178306
+ @Override
178307
+ public PerformMaintenance setUploadType(java.lang.String uploadType) {
178308
+ return (PerformMaintenance) super.setUploadType(uploadType);
178309
+ }
178310
+
178311
+ @Override
178312
+ public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) {
178313
+ return (PerformMaintenance) super.setUploadProtocol(uploadProtocol);
178314
+ }
178315
+
178316
+ @Override
178317
+ public PerformMaintenance setUserIp(java.lang.String userIp) {
178318
+ return (PerformMaintenance) super.setUserIp(userIp);
178319
+ }
178320
+
178321
+ /** Project ID for this request. */
178322
+ @com.google.api.client.util.Key
178323
+ private java.lang.String project;
178324
+
178325
+ /** Project ID for this request.
178326
+ */
178327
+ public java.lang.String getProject() {
178328
+ return project;
178329
+ }
178330
+
178331
+ /** Project ID for this request. */
178332
+ public PerformMaintenance setProject(java.lang.String project) {
178333
+ this.project = project;
178334
+ return this;
178335
+ }
178336
+
178337
+ /** Name of the zone for this request. Zone name should conform to RFC1035. */
178338
+ @com.google.api.client.util.Key
178339
+ private java.lang.String zone;
178340
+
178341
+ /** Name of the zone for this request. Zone name should conform to RFC1035.
178342
+ */
178343
+ public java.lang.String getZone() {
178344
+ return zone;
178345
+ }
178346
+
178347
+ /** Name of the zone for this request. Zone name should conform to RFC1035. */
178348
+ public PerformMaintenance setZone(java.lang.String zone) {
178349
+ this.zone = zone;
178350
+ return this;
178351
+ }
178352
+
178353
+ /**
178354
+ * The name of the parent reservation and parent block. In the format of
178355
+ * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
178356
+ */
178357
+ @com.google.api.client.util.Key
178358
+ private java.lang.String parentName;
178359
+
178360
+ /** The name of the parent reservation and parent block. In the format of
178361
+ reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
178362
+ */
178363
+ public java.lang.String getParentName() {
178364
+ return parentName;
178365
+ }
178366
+
178367
+ /**
178368
+ * The name of the parent reservation and parent block. In the format of
178369
+ * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
178370
+ */
178371
+ public PerformMaintenance setParentName(java.lang.String parentName) {
178372
+ this.parentName = parentName;
178373
+ return this;
178374
+ }
178375
+
178376
+ /**
178377
+ * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
178378
+ */
178379
+ @com.google.api.client.util.Key
178380
+ private java.lang.String reservationSubBlock;
178381
+
178382
+ /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
178383
+ */
178384
+ public java.lang.String getReservationSubBlock() {
178385
+ return reservationSubBlock;
178386
+ }
178387
+
178388
+ /**
178389
+ * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
178390
+ */
178391
+ public PerformMaintenance setReservationSubBlock(java.lang.String reservationSubBlock) {
178392
+ this.reservationSubBlock = reservationSubBlock;
178393
+ return this;
178394
+ }
178395
+
178396
+ /**
178397
+ * An optional request ID to identify requests. Specify a unique request ID so that if you
178398
+ * must retry your request, the server will know to ignore the request if it has already been
178399
+ * completed. For example, consider a situation where you make an initial request and the
178400
+ * request times out. If you make the request again with the same request ID, the server can
178401
+ * check if original operation with the same request ID was received, and if so, will ignore
178402
+ * the second request. This prevents clients from accidentally creating duplicate commitments.
178403
+ * The request ID must be a valid UUID with the exception that zero UUID is not supported (
178404
+ * 00000000-0000-0000-0000-000000000000).
178405
+ */
178406
+ @com.google.api.client.util.Key
178407
+ private java.lang.String requestId;
178408
+
178409
+ /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry
178410
+ your request, the server will know to ignore the request if it has already been completed. For
178411
+ example, consider a situation where you make an initial request and the request times out. If you
178412
+ make the request again with the same request ID, the server can check if original operation with
178413
+ the same request ID was received, and if so, will ignore the second request. This prevents clients
178414
+ from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
178415
+ exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
178416
+ */
178417
+ public java.lang.String getRequestId() {
178418
+ return requestId;
178419
+ }
178420
+
178421
+ /**
178422
+ * An optional request ID to identify requests. Specify a unique request ID so that if you
178423
+ * must retry your request, the server will know to ignore the request if it has already been
178424
+ * completed. For example, consider a situation where you make an initial request and the
178425
+ * request times out. If you make the request again with the same request ID, the server can
178426
+ * check if original operation with the same request ID was received, and if so, will ignore
178427
+ * the second request. This prevents clients from accidentally creating duplicate commitments.
178428
+ * The request ID must be a valid UUID with the exception that zero UUID is not supported (
178429
+ * 00000000-0000-0000-0000-000000000000).
178430
+ */
178431
+ public PerformMaintenance setRequestId(java.lang.String requestId) {
178432
+ this.requestId = requestId;
178433
+ return this;
178434
+ }
178435
+
178436
+ @Override
178437
+ public PerformMaintenance set(String parameterName, Object value) {
178438
+ return (PerformMaintenance) super.set(parameterName, value);
178439
+ }
178440
+ }
178210
178441
178211
178442
}
178212
178443
0 commit comments