Skip to content

Commit 8b48e1e

Browse files
1 parent 8b28fed commit 8b48e1e

File tree

5 files changed

+232
-6
lines changed

5 files changed

+232
-6
lines changed

clients/google-api-services-storage/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-storage</artifactId>
25-
<version>v1-rev20240924-2.0.0</version>
25+
<version>v1-rev20241008-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-storage:v1-rev20240924-2.0.0'
38+
implementation 'com.google.apis:google-api-services-storage:v1-rev20241008-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-storage/v1/2.0.0/com/google/api/services/storage/Storage.java

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13607,6 +13607,135 @@ public Operations operations() {
1360713607
*/
1360813608
public class Operations {
1360913609

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+
}
1361013739
/**
1361113740
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
1361213741
* cancel the operation, but success is not guaranteed.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.storage.model;
18+
19+
/**
20+
* An AdvanceRelocateBucketOperation request.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Storage JSON API. For a detailed explanation
24+
* see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class AdvanceRelocateBucketOperationRequest extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Specifies the time when the relocation will revert to the sync stage if the relocation hasn't
35+
* succeeded.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private com.google.api.client.util.DateTime expireTime;
40+
41+
/**
42+
* Specifies the duration after which the relocation will revert to the sync stage if the
43+
* relocation hasn't succeeded. Optional, if not supplied, a default value of 12h will be used.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private String ttl;
48+
49+
/**
50+
* Specifies the time when the relocation will revert to the sync stage if the relocation hasn't
51+
* succeeded.
52+
* @return value or {@code null} for none
53+
*/
54+
public com.google.api.client.util.DateTime getExpireTime() {
55+
return expireTime;
56+
}
57+
58+
/**
59+
* Specifies the time when the relocation will revert to the sync stage if the relocation hasn't
60+
* succeeded.
61+
* @param expireTime expireTime or {@code null} for none
62+
*/
63+
public AdvanceRelocateBucketOperationRequest setExpireTime(com.google.api.client.util.DateTime expireTime) {
64+
this.expireTime = expireTime;
65+
return this;
66+
}
67+
68+
/**
69+
* Specifies the duration after which the relocation will revert to the sync stage if the
70+
* relocation hasn't succeeded. Optional, if not supplied, a default value of 12h will be used.
71+
* @return value or {@code null} for none
72+
*/
73+
public String getTtl() {
74+
return ttl;
75+
}
76+
77+
/**
78+
* Specifies the duration after which the relocation will revert to the sync stage if the
79+
* relocation hasn't succeeded. Optional, if not supplied, a default value of 12h will be used.
80+
* @param ttl ttl or {@code null} for none
81+
*/
82+
public AdvanceRelocateBucketOperationRequest setTtl(String ttl) {
83+
this.ttl = ttl;
84+
return this;
85+
}
86+
87+
@Override
88+
public AdvanceRelocateBucketOperationRequest set(String fieldName, Object value) {
89+
return (AdvanceRelocateBucketOperationRequest) super.set(fieldName, value);
90+
}
91+
92+
@Override
93+
public AdvanceRelocateBucketOperationRequest clone() {
94+
return (AdvanceRelocateBucketOperationRequest) super.clone();
95+
}
96+
97+
}

clients/google-api-services-storage/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-storage</artifactId>
11-
<version>v1-rev20240924-2.0.0</version>
12-
<name>Cloud Storage JSON API v1-rev20240924-2.0.0</name>
11+
<version>v1-rev20241008-2.0.0</version>
12+
<name>Cloud Storage JSON API v1-rev20241008-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-storage/v1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-storage</artifactId>
25-
<version>v1-rev20240924-2.0.0</version>
25+
<version>v1-rev20241008-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-storage:v1-rev20240924-2.0.0'
38+
implementation 'com.google.apis:google-api-services-storage:v1-rev20241008-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)