Skip to content

Commit bcaac8f

Browse files
1 parent c71baf8 commit bcaac8f

File tree

5 files changed

+133
-6
lines changed

5 files changed

+133
-6
lines changed

clients/google-api-services-storagebatchoperations/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-storagebatchoperations</artifactId>
25-
<version>v1-rev20250924-2.0.0</version>
25+
<version>v1-rev20251015-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-storagebatchoperations:v1-rev20250924-2.0.0'
38+
implementation 'com.google.apis:google-api-services-storagebatchoperations:v1-rev20251015-2.0.0'
3939
}
4040
```
4141

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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.storagebatchoperations.v1.model;
18+
19+
/**
20+
* Describes options for object retention update.
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 Storage Batch Operations API. For a detailed
24+
* explanation 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 ObjectRetention extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. The time when the object will be retained until. UNSET will clear the retention. Must
35+
* be specified in RFC 3339 format e.g. YYYY-MM-DD'T'HH:MM:SS.SS'Z' or YYYY-MM-DD'T'HH:MM:SS'Z'.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String retainUntilTime;
40+
41+
/**
42+
* Required. The retention mode of the object.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String retentionMode;
47+
48+
/**
49+
* Required. The time when the object will be retained until. UNSET will clear the retention. Must
50+
* be specified in RFC 3339 format e.g. YYYY-MM-DD'T'HH:MM:SS.SS'Z' or YYYY-MM-DD'T'HH:MM:SS'Z'.
51+
* @return value or {@code null} for none
52+
*/
53+
public java.lang.String getRetainUntilTime() {
54+
return retainUntilTime;
55+
}
56+
57+
/**
58+
* Required. The time when the object will be retained until. UNSET will clear the retention. Must
59+
* be specified in RFC 3339 format e.g. YYYY-MM-DD'T'HH:MM:SS.SS'Z' or YYYY-MM-DD'T'HH:MM:SS'Z'.
60+
* @param retainUntilTime retainUntilTime or {@code null} for none
61+
*/
62+
public ObjectRetention setRetainUntilTime(java.lang.String retainUntilTime) {
63+
this.retainUntilTime = retainUntilTime;
64+
return this;
65+
}
66+
67+
/**
68+
* Required. The retention mode of the object.
69+
* @return value or {@code null} for none
70+
*/
71+
public java.lang.String getRetentionMode() {
72+
return retentionMode;
73+
}
74+
75+
/**
76+
* Required. The retention mode of the object.
77+
* @param retentionMode retentionMode or {@code null} for none
78+
*/
79+
public ObjectRetention setRetentionMode(java.lang.String retentionMode) {
80+
this.retentionMode = retentionMode;
81+
return this;
82+
}
83+
84+
@Override
85+
public ObjectRetention set(String fieldName, Object value) {
86+
return (ObjectRetention) super.set(fieldName, value);
87+
}
88+
89+
@Override
90+
public ObjectRetention clone() {
91+
return (ObjectRetention) super.clone();
92+
}
93+
94+
}

clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/PutMetadata.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ public final class PutMetadata extends com.google.api.client.json.GenericJson {
9696
@com.google.api.client.util.Key
9797
private java.lang.String customTime;
9898

99+
/**
100+
* Optional. Updates objects retention lock configuration. Unset values will be ignored. Set empty
101+
* values to clear the retention for the object with existing `Unlocked` retention mode. Object
102+
* with existing `Locked` retention mode cannot be cleared or reduce retain_until_time. Refer to
103+
* documentation in https://cloud.google.com/storage/docs/object-lock
104+
* The value may be {@code null}.
105+
*/
106+
@com.google.api.client.util.Key
107+
private ObjectRetention objectRetention;
108+
99109
/**
100110
* Optional. Updates objects Cache-Control fixed metadata. Unset values will be ignored. Set empty
101111
* values to clear the metadata. Additionally, the value for Custom-Time cannot decrease. Refer to
@@ -249,6 +259,29 @@ public PutMetadata setCustomTime(java.lang.String customTime) {
249259
return this;
250260
}
251261

262+
/**
263+
* Optional. Updates objects retention lock configuration. Unset values will be ignored. Set empty
264+
* values to clear the retention for the object with existing `Unlocked` retention mode. Object
265+
* with existing `Locked` retention mode cannot be cleared or reduce retain_until_time. Refer to
266+
* documentation in https://cloud.google.com/storage/docs/object-lock
267+
* @return value or {@code null} for none
268+
*/
269+
public ObjectRetention getObjectRetention() {
270+
return objectRetention;
271+
}
272+
273+
/**
274+
* Optional. Updates objects retention lock configuration. Unset values will be ignored. Set empty
275+
* values to clear the retention for the object with existing `Unlocked` retention mode. Object
276+
* with existing `Locked` retention mode cannot be cleared or reduce retain_until_time. Refer to
277+
* documentation in https://cloud.google.com/storage/docs/object-lock
278+
* @param objectRetention objectRetention or {@code null} for none
279+
*/
280+
public PutMetadata setObjectRetention(ObjectRetention objectRetention) {
281+
this.objectRetention = objectRetention;
282+
return this;
283+
}
284+
252285
@Override
253286
public PutMetadata set(String fieldName, Object value) {
254287
return (PutMetadata) super.set(fieldName, value);

clients/google-api-services-storagebatchoperations/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-storagebatchoperations</artifactId>
11-
<version>v1-rev20250924-2.0.0</version>
12-
<name>Storage Batch Operations API v1-rev20250924-2.0.0</name>
11+
<version>v1-rev20251015-2.0.0</version>
12+
<name>Storage Batch Operations API v1-rev20251015-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-storagebatchoperations/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-storagebatchoperations</artifactId>
25-
<version>v1-rev20250924-2.0.0</version>
25+
<version>v1-rev20251015-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-storagebatchoperations:v1-rev20250924-2.0.0'
38+
implementation 'com.google.apis:google-api-services-storagebatchoperations:v1-rev20251015-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)