Skip to content

Commit a45e300

Browse files
1 parent beaa9bd commit a45e300

File tree

5 files changed

+265
-6
lines changed

5 files changed

+265
-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-rev20240916-2.0.0</version>
25+
<version>v1-rev20240924-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-rev20240916-2.0.0'
38+
implementation 'com.google.apis:google-api-services-storage:v1-rev20240924-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3362,6 +3362,109 @@ public Patch set(String parameterName, Object value) {
33623362
return (Patch) super.set(parameterName, value);
33633363
}
33643364
}
3365+
/**
3366+
* Initiates a long-running Relocate Bucket operation on the specified bucket.
3367+
*
3368+
* Create a request for the method "buckets.relocate".
3369+
*
3370+
* This request holds the parameters needed by the storage server. After setting any optional
3371+
* parameters, call the {@link Relocate#execute()} method to invoke the remote operation.
3372+
*
3373+
* @param bucket Name of the bucket to be moved.
3374+
* @param content the {@link com.google.api.services.storage.model.RelocateBucketRequest}
3375+
* @return the request
3376+
*/
3377+
public Relocate relocate(java.lang.String bucket, com.google.api.services.storage.model.RelocateBucketRequest content) throws java.io.IOException {
3378+
Relocate result = new Relocate(bucket, content);
3379+
initialize(result);
3380+
return result;
3381+
}
3382+
3383+
public class Relocate extends StorageRequest<com.google.api.services.storage.model.GoogleLongrunningOperation> {
3384+
3385+
private static final String REST_PATH = "b/{bucket}/relocate";
3386+
3387+
/**
3388+
* Initiates a long-running Relocate Bucket operation on the specified bucket.
3389+
*
3390+
* Create a request for the method "buckets.relocate".
3391+
*
3392+
* This request holds the parameters needed by the the storage server. After setting any optional
3393+
* parameters, call the {@link Relocate#execute()} method to invoke the remote operation. <p>
3394+
* {@link
3395+
* Relocate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
3396+
* must be called to initialize this instance immediately after invoking the constructor. </p>
3397+
*
3398+
* @param bucket Name of the bucket to be moved.
3399+
* @param content the {@link com.google.api.services.storage.model.RelocateBucketRequest}
3400+
* @since 1.13
3401+
*/
3402+
protected Relocate(java.lang.String bucket, com.google.api.services.storage.model.RelocateBucketRequest content) {
3403+
super(Storage.this, "POST", REST_PATH, content, com.google.api.services.storage.model.GoogleLongrunningOperation.class);
3404+
this.bucket = com.google.api.client.util.Preconditions.checkNotNull(bucket, "Required parameter bucket must be specified.");
3405+
}
3406+
3407+
@Override
3408+
public Relocate setAlt(java.lang.String alt) {
3409+
return (Relocate) super.setAlt(alt);
3410+
}
3411+
3412+
@Override
3413+
public Relocate setFields(java.lang.String fields) {
3414+
return (Relocate) super.setFields(fields);
3415+
}
3416+
3417+
@Override
3418+
public Relocate setKey(java.lang.String key) {
3419+
return (Relocate) super.setKey(key);
3420+
}
3421+
3422+
@Override
3423+
public Relocate setOauthToken(java.lang.String oauthToken) {
3424+
return (Relocate) super.setOauthToken(oauthToken);
3425+
}
3426+
3427+
@Override
3428+
public Relocate setPrettyPrint(java.lang.Boolean prettyPrint) {
3429+
return (Relocate) super.setPrettyPrint(prettyPrint);
3430+
}
3431+
3432+
@Override
3433+
public Relocate setQuotaUser(java.lang.String quotaUser) {
3434+
return (Relocate) super.setQuotaUser(quotaUser);
3435+
}
3436+
3437+
@Override
3438+
public Relocate setUploadType(java.lang.String uploadType) {
3439+
return (Relocate) super.setUploadType(uploadType);
3440+
}
3441+
3442+
@Override
3443+
public Relocate setUserIp(java.lang.String userIp) {
3444+
return (Relocate) super.setUserIp(userIp);
3445+
}
3446+
3447+
/** Name of the bucket to be moved. */
3448+
@com.google.api.client.util.Key
3449+
private java.lang.String bucket;
3450+
3451+
/** Name of the bucket to be moved.
3452+
*/
3453+
public java.lang.String getBucket() {
3454+
return bucket;
3455+
}
3456+
3457+
/** Name of the bucket to be moved. */
3458+
public Relocate setBucket(java.lang.String bucket) {
3459+
this.bucket = bucket;
3460+
return this;
3461+
}
3462+
3463+
@Override
3464+
public Relocate set(String parameterName, Object value) {
3465+
return (Relocate) super.set(parameterName, value);
3466+
}
3467+
}
33653468
/**
33663469
* Restores a soft-deleted bucket.
33673470
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
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+
* A Relocate Bucket 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 RelocateBucketRequest extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The bucket's new custom placement configuration if relocating to a Custom Dual Region.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private DestinationCustomPlacementConfig destinationCustomPlacementConfig;
39+
40+
/**
41+
* The new location the bucket will be relocated to.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.String destinationLocation;
46+
47+
/**
48+
* If true, validate the operation, but do not actually relocate the bucket.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.lang.Boolean validateOnly;
53+
54+
/**
55+
* The bucket's new custom placement configuration if relocating to a Custom Dual Region.
56+
* @return value or {@code null} for none
57+
*/
58+
public DestinationCustomPlacementConfig getDestinationCustomPlacementConfig() {
59+
return destinationCustomPlacementConfig;
60+
}
61+
62+
/**
63+
* The bucket's new custom placement configuration if relocating to a Custom Dual Region.
64+
* @param destinationCustomPlacementConfig destinationCustomPlacementConfig or {@code null} for none
65+
*/
66+
public RelocateBucketRequest setDestinationCustomPlacementConfig(DestinationCustomPlacementConfig destinationCustomPlacementConfig) {
67+
this.destinationCustomPlacementConfig = destinationCustomPlacementConfig;
68+
return this;
69+
}
70+
71+
/**
72+
* The new location the bucket will be relocated to.
73+
* @return value or {@code null} for none
74+
*/
75+
public java.lang.String getDestinationLocation() {
76+
return destinationLocation;
77+
}
78+
79+
/**
80+
* The new location the bucket will be relocated to.
81+
* @param destinationLocation destinationLocation or {@code null} for none
82+
*/
83+
public RelocateBucketRequest setDestinationLocation(java.lang.String destinationLocation) {
84+
this.destinationLocation = destinationLocation;
85+
return this;
86+
}
87+
88+
/**
89+
* If true, validate the operation, but do not actually relocate the bucket.
90+
* @return value or {@code null} for none
91+
*/
92+
public java.lang.Boolean getValidateOnly() {
93+
return validateOnly;
94+
}
95+
96+
/**
97+
* If true, validate the operation, but do not actually relocate the bucket.
98+
* @param validateOnly validateOnly or {@code null} for none
99+
*/
100+
public RelocateBucketRequest setValidateOnly(java.lang.Boolean validateOnly) {
101+
this.validateOnly = validateOnly;
102+
return this;
103+
}
104+
105+
@Override
106+
public RelocateBucketRequest set(String fieldName, Object value) {
107+
return (RelocateBucketRequest) super.set(fieldName, value);
108+
}
109+
110+
@Override
111+
public RelocateBucketRequest clone() {
112+
return (RelocateBucketRequest) super.clone();
113+
}
114+
115+
/**
116+
* The bucket's new custom placement configuration if relocating to a Custom Dual Region.
117+
*/
118+
public static final class DestinationCustomPlacementConfig extends com.google.api.client.json.GenericJson {
119+
120+
/**
121+
* The list of regional locations in which data is placed.
122+
* The value may be {@code null}.
123+
*/
124+
@com.google.api.client.util.Key
125+
private java.util.List<java.lang.String> dataLocations;
126+
127+
/**
128+
* The list of regional locations in which data is placed.
129+
* @return value or {@code null} for none
130+
*/
131+
public java.util.List<java.lang.String> getDataLocations() {
132+
return dataLocations;
133+
}
134+
135+
/**
136+
* The list of regional locations in which data is placed.
137+
* @param dataLocations dataLocations or {@code null} for none
138+
*/
139+
public DestinationCustomPlacementConfig setDataLocations(java.util.List<java.lang.String> dataLocations) {
140+
this.dataLocations = dataLocations;
141+
return this;
142+
}
143+
144+
@Override
145+
public DestinationCustomPlacementConfig set(String fieldName, Object value) {
146+
return (DestinationCustomPlacementConfig) super.set(fieldName, value);
147+
}
148+
149+
@Override
150+
public DestinationCustomPlacementConfig clone() {
151+
return (DestinationCustomPlacementConfig) super.clone();
152+
}
153+
154+
}
155+
156+
}

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-rev20240916-2.0.0</version>
12-
<name>Cloud Storage JSON API v1-rev20240916-2.0.0</name>
11+
<version>v1-rev20240924-2.0.0</version>
12+
<name>Cloud Storage JSON API v1-rev20240924-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-rev20240916-2.0.0</version>
25+
<version>v1-rev20240924-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-rev20240916-2.0.0'
38+
implementation 'com.google.apis:google-api-services-storage:v1-rev20240924-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)