@@ -13607,6 +13607,135 @@ public Operations operations() {
13607
13607
*/
13608
13608
public class Operations {
13609
13609
13610
+ /**
13611
+ * Starts asynchronous advancement of the relocate bucket operation in the case of required write
13612
+ * downtime, to allow it to lock the bucket at the source location, and proceed with the bucket
13613
+ * location swap. The server makes a best effort to advance the relocate bucket operation, but
13614
+ * success is not guaranteed.
13615
+ *
13616
+ * Create a request for the method "operations.advanceRelocateBucket".
13617
+ *
13618
+ * This request holds the parameters needed by the storage server. After setting any optional
13619
+ * parameters, call the {@link AdvanceRelocateBucket#execute()} method to invoke the remote
13620
+ * operation.
13621
+ *
13622
+ * @param bucket Name of the bucket to advance the relocate for.
13623
+ * @param operationId ID of the operation resource.
13624
+ * @param content the {@link com.google.api.services.storage.model.AdvanceRelocateBucketOperationRequest}
13625
+ * @return the request
13626
+ */
13627
+ public AdvanceRelocateBucket advanceRelocateBucket(java.lang.String bucket, java.lang.String operationId, com.google.api.services.storage.model.AdvanceRelocateBucketOperationRequest content) throws java.io.IOException {
13628
+ AdvanceRelocateBucket result = new AdvanceRelocateBucket(bucket, operationId, content);
13629
+ initialize(result);
13630
+ return result;
13631
+ }
13632
+
13633
+ public class AdvanceRelocateBucket extends StorageRequest<Void> {
13634
+
13635
+ private static final String REST_PATH = "b/{bucket}/operations/{operationId}/advanceRelocateBucket";
13636
+
13637
+ /**
13638
+ * Starts asynchronous advancement of the relocate bucket operation in the case of required write
13639
+ * downtime, to allow it to lock the bucket at the source location, and proceed with the bucket
13640
+ * location swap. The server makes a best effort to advance the relocate bucket operation, but
13641
+ * success is not guaranteed.
13642
+ *
13643
+ * Create a request for the method "operations.advanceRelocateBucket".
13644
+ *
13645
+ * This request holds the parameters needed by the the storage server. After setting any optional
13646
+ * parameters, call the {@link AdvanceRelocateBucket#execute()} method to invoke the remote
13647
+ * operation. <p> {@link AdvanceRelocateBucket#initialize(com.google.api.client.googleapis.service
13648
+ * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
13649
+ * invoking the constructor. </p>
13650
+ *
13651
+ * @param bucket Name of the bucket to advance the relocate for.
13652
+ * @param operationId ID of the operation resource.
13653
+ * @param content the {@link com.google.api.services.storage.model.AdvanceRelocateBucketOperationRequest}
13654
+ * @since 1.13
13655
+ */
13656
+ protected AdvanceRelocateBucket(java.lang.String bucket, java.lang.String operationId, com.google.api.services.storage.model.AdvanceRelocateBucketOperationRequest content) {
13657
+ super(Storage.this, "POST", REST_PATH, content, Void.class);
13658
+ this.bucket = com.google.api.client.util.Preconditions.checkNotNull(bucket, "Required parameter bucket must be specified.");
13659
+ this.operationId = com.google.api.client.util.Preconditions.checkNotNull(operationId, "Required parameter operationId must be specified.");
13660
+ }
13661
+
13662
+ @Override
13663
+ public AdvanceRelocateBucket setAlt(java.lang.String alt) {
13664
+ return (AdvanceRelocateBucket) super.setAlt(alt);
13665
+ }
13666
+
13667
+ @Override
13668
+ public AdvanceRelocateBucket setFields(java.lang.String fields) {
13669
+ return (AdvanceRelocateBucket) super.setFields(fields);
13670
+ }
13671
+
13672
+ @Override
13673
+ public AdvanceRelocateBucket setKey(java.lang.String key) {
13674
+ return (AdvanceRelocateBucket) super.setKey(key);
13675
+ }
13676
+
13677
+ @Override
13678
+ public AdvanceRelocateBucket setOauthToken(java.lang.String oauthToken) {
13679
+ return (AdvanceRelocateBucket) super.setOauthToken(oauthToken);
13680
+ }
13681
+
13682
+ @Override
13683
+ public AdvanceRelocateBucket setPrettyPrint(java.lang.Boolean prettyPrint) {
13684
+ return (AdvanceRelocateBucket) super.setPrettyPrint(prettyPrint);
13685
+ }
13686
+
13687
+ @Override
13688
+ public AdvanceRelocateBucket setQuotaUser(java.lang.String quotaUser) {
13689
+ return (AdvanceRelocateBucket) super.setQuotaUser(quotaUser);
13690
+ }
13691
+
13692
+ @Override
13693
+ public AdvanceRelocateBucket setUploadType(java.lang.String uploadType) {
13694
+ return (AdvanceRelocateBucket) super.setUploadType(uploadType);
13695
+ }
13696
+
13697
+ @Override
13698
+ public AdvanceRelocateBucket setUserIp(java.lang.String userIp) {
13699
+ return (AdvanceRelocateBucket) super.setUserIp(userIp);
13700
+ }
13701
+
13702
+ /** Name of the bucket to advance the relocate for. */
13703
+ @com.google.api.client.util.Key
13704
+ private java.lang.String bucket;
13705
+
13706
+ /** Name of the bucket to advance the relocate for.
13707
+ */
13708
+ public java.lang.String getBucket() {
13709
+ return bucket;
13710
+ }
13711
+
13712
+ /** Name of the bucket to advance the relocate for. */
13713
+ public AdvanceRelocateBucket setBucket(java.lang.String bucket) {
13714
+ this.bucket = bucket;
13715
+ return this;
13716
+ }
13717
+
13718
+ /** ID of the operation resource. */
13719
+ @com.google.api.client.util.Key
13720
+ private java.lang.String operationId;
13721
+
13722
+ /** ID of the operation resource.
13723
+ */
13724
+ public java.lang.String getOperationId() {
13725
+ return operationId;
13726
+ }
13727
+
13728
+ /** ID of the operation resource. */
13729
+ public AdvanceRelocateBucket setOperationId(java.lang.String operationId) {
13730
+ this.operationId = operationId;
13731
+ return this;
13732
+ }
13733
+
13734
+ @Override
13735
+ public AdvanceRelocateBucket set(String parameterName, Object value) {
13736
+ return (AdvanceRelocateBucket) super.set(parameterName, value);
13737
+ }
13738
+ }
13610
13739
/**
13611
13740
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
13612
13741
* cancel the operation, but success is not guaranteed.
0 commit comments