Skip to content

Commit 918fedc

Browse files
1 parent 8c6a5a6 commit 918fedc

File tree

5 files changed

+266
-14
lines changed

5 files changed

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

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

Lines changed: 212 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1896,7 +1896,7 @@ public Buckets buckets() {
18961896
public class Buckets {
18971897

18981898
/**
1899-
* Permanently deletes an empty bucket.
1899+
* Deletes an empty bucket. Deletions are permanent unless soft delete is enabled on the bucket.
19001900
*
19011901
* Create a request for the method "buckets.delete".
19021902
*
@@ -1917,7 +1917,7 @@ public class Delete extends StorageRequest<Void> {
19171917
private static final String REST_PATH = "b/{bucket}";
19181918

19191919
/**
1920-
* Permanently deletes an empty bucket.
1920+
* Deletes an empty bucket. Deletions are permanent unless soft delete is enabled on the bucket.
19211921
*
19221922
* Create a request for the method "buckets.delete".
19231923
*
@@ -2148,6 +2148,28 @@ public Get setBucket(java.lang.String bucket) {
21482148
return this;
21492149
}
21502150

2151+
/**
2152+
* If present, specifies the generation of the bucket. This is required if softDeleted is
2153+
* true.
2154+
*/
2155+
@com.google.api.client.util.Key
2156+
private java.lang.Long generation;
2157+
2158+
/** If present, specifies the generation of the bucket. This is required if softDeleted is true.
2159+
*/
2160+
public java.lang.Long getGeneration() {
2161+
return generation;
2162+
}
2163+
2164+
/**
2165+
* If present, specifies the generation of the bucket. This is required if softDeleted is
2166+
* true.
2167+
*/
2168+
public Get setGeneration(java.lang.Long generation) {
2169+
this.generation = generation;
2170+
return this;
2171+
}
2172+
21512173
/**
21522174
* Makes the return of the bucket metadata conditional on whether the bucket's current
21532175
* metageneration matches the given value.
@@ -2210,6 +2232,29 @@ public Get setProjection(java.lang.String projection) {
22102232
return this;
22112233
}
22122234

2235+
/**
2236+
* If true, return the soft-deleted version of this bucket. The default is false. For more
2237+
* information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete).
2238+
*/
2239+
@com.google.api.client.util.Key
2240+
private java.lang.Boolean softDeleted;
2241+
2242+
/** If true, return the soft-deleted version of this bucket. The default is false. For more
2243+
information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete).
2244+
*/
2245+
public java.lang.Boolean getSoftDeleted() {
2246+
return softDeleted;
2247+
}
2248+
2249+
/**
2250+
* If true, return the soft-deleted version of this bucket. The default is false. For more
2251+
* information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete).
2252+
*/
2253+
public Get setSoftDeleted(java.lang.Boolean softDeleted) {
2254+
this.softDeleted = softDeleted;
2255+
return this;
2256+
}
2257+
22132258
/** The project to be billed for this request. Required for Requester Pays buckets. */
22142259
@com.google.api.client.util.Key
22152260
private java.lang.String userProject;
@@ -2917,6 +2962,29 @@ public List setProjection(java.lang.String projection) {
29172962
return this;
29182963
}
29192964

2965+
/**
2966+
* If true, only soft-deleted bucket versions will be returned. The default is false. For more
2967+
* information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete).
2968+
*/
2969+
@com.google.api.client.util.Key
2970+
private java.lang.Boolean softDeleted;
2971+
2972+
/** If true, only soft-deleted bucket versions will be returned. The default is false. For more
2973+
information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete).
2974+
*/
2975+
public java.lang.Boolean getSoftDeleted() {
2976+
return softDeleted;
2977+
}
2978+
2979+
/**
2980+
* If true, only soft-deleted bucket versions will be returned. The default is false. For more
2981+
* information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete).
2982+
*/
2983+
public List setSoftDeleted(java.lang.Boolean softDeleted) {
2984+
this.softDeleted = softDeleted;
2985+
return this;
2986+
}
2987+
29202988
/** The project to be billed for this request. */
29212989
@com.google.api.client.util.Key
29222990
private java.lang.String userProject;
@@ -3294,6 +3362,142 @@ public Patch set(String parameterName, Object value) {
32943362
return (Patch) super.set(parameterName, value);
32953363
}
32963364
}
3365+
/**
3366+
* Restores a soft-deleted bucket.
3367+
*
3368+
* Create a request for the method "buckets.restore".
3369+
*
3370+
* This request holds the parameters needed by the storage server. After setting any optional
3371+
* parameters, call the {@link Restore#execute()} method to invoke the remote operation.
3372+
*
3373+
* @param bucket Name of a bucket.
3374+
* @param generation Generation of a bucket.
3375+
* @return the request
3376+
*/
3377+
public Restore restore(java.lang.String bucket, java.lang.Long generation) throws java.io.IOException {
3378+
Restore result = new Restore(bucket, generation);
3379+
initialize(result);
3380+
return result;
3381+
}
3382+
3383+
public class Restore extends StorageRequest<Void> {
3384+
3385+
private static final String REST_PATH = "b/{bucket}/restore";
3386+
3387+
/**
3388+
* Restores a soft-deleted bucket.
3389+
*
3390+
* Create a request for the method "buckets.restore".
3391+
*
3392+
* This request holds the parameters needed by the the storage server. After setting any optional
3393+
* parameters, call the {@link Restore#execute()} method to invoke the remote operation. <p>
3394+
* {@link
3395+
* Restore#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
3396+
* be called to initialize this instance immediately after invoking the constructor. </p>
3397+
*
3398+
* @param bucket Name of a bucket.
3399+
* @param generation Generation of a bucket.
3400+
* @since 1.13
3401+
*/
3402+
protected Restore(java.lang.String bucket, java.lang.Long generation) {
3403+
super(Storage.this, "POST", REST_PATH, null, Void.class);
3404+
this.bucket = com.google.api.client.util.Preconditions.checkNotNull(bucket, "Required parameter bucket must be specified.");
3405+
this.generation = com.google.api.client.util.Preconditions.checkNotNull(generation, "Required parameter generation must be specified.");
3406+
}
3407+
3408+
@Override
3409+
public Restore setAlt(java.lang.String alt) {
3410+
return (Restore) super.setAlt(alt);
3411+
}
3412+
3413+
@Override
3414+
public Restore setFields(java.lang.String fields) {
3415+
return (Restore) super.setFields(fields);
3416+
}
3417+
3418+
@Override
3419+
public Restore setKey(java.lang.String key) {
3420+
return (Restore) super.setKey(key);
3421+
}
3422+
3423+
@Override
3424+
public Restore setOauthToken(java.lang.String oauthToken) {
3425+
return (Restore) super.setOauthToken(oauthToken);
3426+
}
3427+
3428+
@Override
3429+
public Restore setPrettyPrint(java.lang.Boolean prettyPrint) {
3430+
return (Restore) super.setPrettyPrint(prettyPrint);
3431+
}
3432+
3433+
@Override
3434+
public Restore setQuotaUser(java.lang.String quotaUser) {
3435+
return (Restore) super.setQuotaUser(quotaUser);
3436+
}
3437+
3438+
@Override
3439+
public Restore setUploadType(java.lang.String uploadType) {
3440+
return (Restore) super.setUploadType(uploadType);
3441+
}
3442+
3443+
@Override
3444+
public Restore setUserIp(java.lang.String userIp) {
3445+
return (Restore) super.setUserIp(userIp);
3446+
}
3447+
3448+
/** Name of a bucket. */
3449+
@com.google.api.client.util.Key
3450+
private java.lang.String bucket;
3451+
3452+
/** Name of a bucket.
3453+
*/
3454+
public java.lang.String getBucket() {
3455+
return bucket;
3456+
}
3457+
3458+
/** Name of a bucket. */
3459+
public Restore setBucket(java.lang.String bucket) {
3460+
this.bucket = bucket;
3461+
return this;
3462+
}
3463+
3464+
/** Generation of a bucket. */
3465+
@com.google.api.client.util.Key
3466+
private java.lang.Long generation;
3467+
3468+
/** Generation of a bucket.
3469+
*/
3470+
public java.lang.Long getGeneration() {
3471+
return generation;
3472+
}
3473+
3474+
/** Generation of a bucket. */
3475+
public Restore setGeneration(java.lang.Long generation) {
3476+
this.generation = generation;
3477+
return this;
3478+
}
3479+
3480+
/** The project to be billed for this request. Required for Requester Pays buckets. */
3481+
@com.google.api.client.util.Key
3482+
private java.lang.String userProject;
3483+
3484+
/** The project to be billed for this request. Required for Requester Pays buckets.
3485+
*/
3486+
public java.lang.String getUserProject() {
3487+
return userProject;
3488+
}
3489+
3490+
/** The project to be billed for this request. Required for Requester Pays buckets. */
3491+
public Restore setUserProject(java.lang.String userProject) {
3492+
this.userProject = userProject;
3493+
return this;
3494+
}
3495+
3496+
@Override
3497+
public Restore set(String parameterName, Object value) {
3498+
return (Restore) super.set(parameterName, value);
3499+
}
3500+
}
32973501
/**
32983502
* Updates an IAM policy for the specified bucket.
32993503
*
@@ -9991,21 +10195,21 @@ public Get setProjection(java.lang.String projection) {
999110195

999210196
/**
999310197
* If true, only soft-deleted object versions will be listed. The default is false. For more
9994-
* information, see Soft Delete.
10198+
* information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete).
999510199
*/
999610200
@com.google.api.client.util.Key
999710201
private java.lang.Boolean softDeleted;
999810202

999910203
/** If true, only soft-deleted object versions will be listed. The default is false. For more
10000-
information, see Soft Delete.
10204+
information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete).
1000110205
*/
1000210206
public java.lang.Boolean getSoftDeleted() {
1000310207
return softDeleted;
1000410208
}
1000510209

1000610210
/**
1000710211
* If true, only soft-deleted object versions will be listed. The default is false. For more
10008-
* information, see Soft Delete.
10212+
* information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete).
1000910213
*/
1001010214
public Get setSoftDeleted(java.lang.Boolean softDeleted) {
1001110215
this.softDeleted = softDeleted;
@@ -10915,21 +11119,21 @@ public List setProjection(java.lang.String projection) {
1091511119

1091611120
/**
1091711121
* If true, only soft-deleted object versions will be listed. The default is false. For more
10918-
* information, see Soft Delete.
11122+
* information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete).
1091911123
*/
1092011124
@com.google.api.client.util.Key
1092111125
private java.lang.Boolean softDeleted;
1092211126

1092311127
/** If true, only soft-deleted object versions will be listed. The default is false. For more
10924-
information, see Soft Delete.
11128+
information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete).
1092511129
*/
1092611130
public java.lang.Boolean getSoftDeleted() {
1092711131
return softDeleted;
1092811132
}
1092911133

1093011134
/**
1093111135
* If true, only soft-deleted object versions will be listed. The default is false. For more
10932-
* information, see Soft Delete.
11136+
* information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete).
1093311137
*/
1093411138
public List setSoftDeleted(java.lang.Boolean softDeleted) {
1093511139
this.softDeleted = softDeleted;

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ public final class Bucket extends com.google.api.client.json.GenericJson {
108108
@com.google.api.client.util.Key
109109
private java.lang.String etag;
110110

111+
/**
112+
* The generation of this bucket.
113+
* The value may be {@code null}.
114+
*/
115+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
116+
private java.lang.Long generation;
117+
111118
/**
112119
* The bucket's hierarchical namespace configuration.
113120
* The value may be {@code null}.
@@ -238,6 +245,13 @@ public final class Bucket extends com.google.api.client.json.GenericJson {
238245
@com.google.api.client.util.Key
239246
private java.lang.String rpo;
240247

248+
/**
249+
* Reserved for future use.
250+
* The value may be {@code null}.
251+
*/
252+
@com.google.api.client.util.Key
253+
private java.lang.Boolean satisfiesPZI;
254+
241255
/**
242256
* Reserved for future use.
243257
* The value may be {@code null}.
@@ -471,6 +485,23 @@ public Bucket setEtag(java.lang.String etag) {
471485
return this;
472486
}
473487

488+
/**
489+
* The generation of this bucket.
490+
* @return value or {@code null} for none
491+
*/
492+
public java.lang.Long getGeneration() {
493+
return generation;
494+
}
495+
496+
/**
497+
* The generation of this bucket.
498+
* @param generation generation or {@code null} for none
499+
*/
500+
public Bucket setGeneration(java.lang.Long generation) {
501+
this.generation = generation;
502+
return this;
503+
}
504+
474505
/**
475506
* The bucket's hierarchical namespace configuration.
476507
* @return value or {@code null} for none
@@ -782,6 +813,23 @@ public Bucket setRpo(java.lang.String rpo) {
782813
return this;
783814
}
784815

816+
/**
817+
* Reserved for future use.
818+
* @return value or {@code null} for none
819+
*/
820+
public java.lang.Boolean getSatisfiesPZI() {
821+
return satisfiesPZI;
822+
}
823+
824+
/**
825+
* Reserved for future use.
826+
* @param satisfiesPZI satisfiesPZI or {@code null} for none
827+
*/
828+
public Bucket setSatisfiesPZI(java.lang.Boolean satisfiesPZI) {
829+
this.satisfiesPZI = satisfiesPZI;
830+
return this;
831+
}
832+
785833
/**
786834
* Reserved for future use.
787835
* @return value or {@code null} for none

0 commit comments

Comments
 (0)