Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-storagebatchoperations</artifactId>
<version>v1-rev20260429-2.0.0</version>
<version>v1-rev20260601-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-storagebatchoperations:v1-rev20260429-2.0.0'
implementation 'com.google.apis:google-api-services-storagebatchoperations:v1-rev20260601-2.0.0'
}
```

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.storagebatchoperations.v1.model;

/**
* Represents updates to existing access-control entries on an object.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Storage Batch Operations API. For a detailed
* explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class AccessControlsUpdates extends com.google.api.client.json.GenericJson {

/**
* Optional. Grants to add or update. If a grant for same entity exists, its role is updated.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<ObjectAccessControl> grants;

/**
* Optional. Entities for which all grants should be removed. An entity can't be in both `grants`
* and `remove_entities`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> removeEntities;

/**
* Optional. Grants to add or update. If a grant for same entity exists, its role is updated.
* @return value or {@code null} for none
*/
public java.util.List<ObjectAccessControl> getGrants() {
return grants;
}

/**
* Optional. Grants to add or update. If a grant for same entity exists, its role is updated.
* @param grants grants or {@code null} for none
*/
public AccessControlsUpdates setGrants(java.util.List<ObjectAccessControl> grants) {
this.grants = grants;
return this;
}

/**
* Optional. Entities for which all grants should be removed. An entity can't be in both `grants`
* and `remove_entities`.
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getRemoveEntities() {
return removeEntities;
}

/**
* Optional. Entities for which all grants should be removed. An entity can't be in both `grants`
* and `remove_entities`.
* @param removeEntities removeEntities or {@code null} for none
*/
public AccessControlsUpdates setRemoveEntities(java.util.List<java.lang.String> removeEntities) {
this.removeEntities = removeEntities;
return this;
}

@Override
public AccessControlsUpdates set(String fieldName, Object value) {
return (AccessControlsUpdates) super.set(fieldName, value);
}

@Override
public AccessControlsUpdates clone() {
return (AccessControlsUpdates) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
public final class BucketList extends com.google.api.client.json.GenericJson {

/**
* Required. List of buckets and their objects to be transformed. Currently, only one bucket
* configuration is supported. If multiple buckets are specified, an error will be returned.
* Required. List of buckets and their objects to be transformed. You can specify only one bucket
* per job. If multiple buckets are specified, an error occurs.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand All @@ -45,17 +45,17 @@ public final class BucketList extends com.google.api.client.json.GenericJson {
}

/**
* Required. List of buckets and their objects to be transformed. Currently, only one bucket
* configuration is supported. If multiple buckets are specified, an error will be returned.
* Required. List of buckets and their objects to be transformed. You can specify only one bucket
* per job. If multiple buckets are specified, an error occurs.
* @return value or {@code null} for none
*/
public java.util.List<Bucket> getBuckets() {
return buckets;
}

/**
* Required. List of buckets and their objects to be transformed. Currently, only one bucket
* configuration is supported. If multiple buckets are specified, an error will be returned.
* Required. List of buckets and their objects to be transformed. You can specify only one bucket
* per job. If multiple buckets are specified, an error occurs.
* @param buckets buckets or {@code null} for none
*/
public BucketList setBuckets(java.util.List<Bucket> buckets) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public final class BucketOperation extends com.google.api.client.json.GenericJso

/**
* Identifier. The resource name of the BucketOperation. This is defined by the service. Format:
* projects/{project}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}.
* `projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand All @@ -94,6 +94,13 @@ public final class BucketOperation extends com.google.api.client.json.GenericJso
@com.google.api.client.util.Key
private PrefixList prefixList;

/**
* Specifies objects matching the object filters in a project source.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ProjectSource projectSource;

/**
* Updates object metadata. Allows updating fixed-key and custom metadata and fixed-key metadata
* i.e. Cache-Control, Content-Disposition, Content-Encoding, Content-Language, Content-Type,
Expand All @@ -117,6 +124,13 @@ public final class BucketOperation extends com.google.api.client.json.GenericJso
@com.google.api.client.util.Key
private RewriteObject rewriteObject;

/**
* Updates object ACLs.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private SetObjectAcls setObjectAcls;

/**
* Output only. The time that the BucketOperation was started.
* The value may be {@code null}.
Expand Down Expand Up @@ -259,7 +273,7 @@ public BucketOperation setManifest(Manifest manifest) {

/**
* Identifier. The resource name of the BucketOperation. This is defined by the service. Format:
* projects/{project}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}.
* `projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}`.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
Expand All @@ -268,7 +282,7 @@ public java.lang.String getName() {

/**
* Identifier. The resource name of the BucketOperation. This is defined by the service. Format:
* projects/{project}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}.
* `projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}`.
* @param name name or {@code null} for none
*/
public BucketOperation setName(java.lang.String name) {
Expand All @@ -293,6 +307,23 @@ public BucketOperation setPrefixList(PrefixList prefixList) {
return this;
}

/**
* Specifies objects matching the object filters in a project source.
* @return value or {@code null} for none
*/
public ProjectSource getProjectSource() {
return projectSource;
}

/**
* Specifies objects matching the object filters in a project source.
* @param projectSource projectSource or {@code null} for none
*/
public BucketOperation setProjectSource(ProjectSource projectSource) {
this.projectSource = projectSource;
return this;
}

/**
* Updates object metadata. Allows updating fixed-key and custom metadata and fixed-key metadata
* i.e. Cache-Control, Content-Disposition, Content-Encoding, Content-Language, Content-Type,
Expand Down Expand Up @@ -348,6 +379,23 @@ public BucketOperation setRewriteObject(RewriteObject rewriteObject) {
return this;
}

/**
* Updates object ACLs.
* @return value or {@code null} for none
*/
public SetObjectAcls getSetObjectAcls() {
return setObjectAcls;
}

/**
* Updates object ACLs.
* @param setObjectAcls setObjectAcls or {@code null} for none
*/
public BucketOperation setSetObjectAcls(SetObjectAcls setObjectAcls) {
this.setObjectAcls = setObjectAcls;
return this;
}

/**
* Output only. The time that the BucketOperation was started.
* @return value or {@code null} for none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ public final class CancelJobRequest extends com.google.api.client.json.GenericJs

/**
* Optional. An optional request ID to identify requests. Specify a unique request ID in case you
* need to retry your request. Requests with same `request_id` will be ignored for at least 60
* minutes since the first request. The request ID must be a valid UUID with the exception that
* zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* need to retry your request. Requests with same `request_id` are ignored for at least 60 minutes
* since the first request. The request ID must be a valid UUID with the exception that zero UUID
* isn't supported (00000000-0000-0000-0000-000000000000).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String requestId;

/**
* Optional. An optional request ID to identify requests. Specify a unique request ID in case you
* need to retry your request. Requests with same `request_id` will be ignored for at least 60
* minutes since the first request. The request ID must be a valid UUID with the exception that
* zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* need to retry your request. Requests with same `request_id` are ignored for at least 60 minutes
* since the first request. The request ID must be a valid UUID with the exception that zero UUID
* isn't supported (00000000-0000-0000-0000-000000000000).
* @return value or {@code null} for none
*/
public java.lang.String getRequestId() {
Expand All @@ -53,9 +53,9 @@ public java.lang.String getRequestId() {

/**
* Optional. An optional request ID to identify requests. Specify a unique request ID in case you
* need to retry your request. Requests with same `request_id` will be ignored for at least 60
* minutes since the first request. The request ID must be a valid UUID with the exception that
* zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* need to retry your request. Requests with same `request_id` are ignored for at least 60 minutes
* since the first request. The request ID must be a valid UUID with the exception that zero UUID
* isn't supported (00000000-0000-0000-0000-000000000000).
* @param requestId requestId or {@code null} for none
*/
public CancelJobRequest setRequestId(java.lang.String requestId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
public final class CustomContextUpdates extends com.google.api.client.json.GenericJson {

/**
* Optional. Custom contexts to clear by key. A key cannot be present in both `updates` and
* Optional. Custom contexts to clear by key. A key can't be present in both `updates` and
* `keys_to_clear`.
* The value may be {@code null}.
*/
Expand All @@ -46,7 +46,7 @@ public final class CustomContextUpdates extends com.google.api.client.json.Gener
private java.util.Map<String, ObjectCustomContextPayload> updates;

/**
* Optional. Custom contexts to clear by key. A key cannot be present in both `updates` and
* Optional. Custom contexts to clear by key. A key can't be present in both `updates` and
* `keys_to_clear`.
* @return value or {@code null} for none
*/
Expand All @@ -55,7 +55,7 @@ public java.util.List<java.lang.String> getKeysToClear() {
}

/**
* Optional. Custom contexts to clear by key. A key cannot be present in both `updates` and
* Optional. Custom contexts to clear by key. A key can't be present in both `updates` and
* `keys_to_clear`.
* @param keysToClear keysToClear or {@code null} for none
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,25 @@ public final class DeleteObject extends com.google.api.client.json.GenericJson {

/**
* Required. Controls deletion behavior when versioning is enabled for the object's bucket. If
* true both live and noncurrent objects will be permanently deleted. Otherwise live objects in
* true, both live and noncurrent objects will be permanently deleted. Otherwise live objects in
* versioned buckets will become noncurrent and objects that were already noncurrent will be
* skipped. This setting doesn't have any impact on the Soft Delete feature. All objects deleted
* by this service can be be restored for the duration of the Soft Delete retention duration if
* enabled. If enabled and the manifest doesn't specify an object's generation, a
* GetObjectMetadata call (a Class B operation) will be made to determine the live object
* generation.
* `GetObjectMetadata` call is made to determine the live object generation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean permanentObjectDeletionEnabled;

/**
* Required. Controls deletion behavior when versioning is enabled for the object's bucket. If
* true both live and noncurrent objects will be permanently deleted. Otherwise live objects in
* true, both live and noncurrent objects will be permanently deleted. Otherwise live objects in
* versioned buckets will become noncurrent and objects that were already noncurrent will be
* skipped. This setting doesn't have any impact on the Soft Delete feature. All objects deleted
* by this service can be be restored for the duration of the Soft Delete retention duration if
* enabled. If enabled and the manifest doesn't specify an object's generation, a
* GetObjectMetadata call (a Class B operation) will be made to determine the live object
* generation.
* `GetObjectMetadata` call is made to determine the live object generation.
* @return value or {@code null} for none
*/
public java.lang.Boolean getPermanentObjectDeletionEnabled() {
Expand All @@ -61,13 +59,12 @@ public java.lang.Boolean getPermanentObjectDeletionEnabled() {

/**
* Required. Controls deletion behavior when versioning is enabled for the object's bucket. If
* true both live and noncurrent objects will be permanently deleted. Otherwise live objects in
* true, both live and noncurrent objects will be permanently deleted. Otherwise live objects in
* versioned buckets will become noncurrent and objects that were already noncurrent will be
* skipped. This setting doesn't have any impact on the Soft Delete feature. All objects deleted
* by this service can be be restored for the duration of the Soft Delete retention duration if
* enabled. If enabled and the manifest doesn't specify an object's generation, a
* GetObjectMetadata call (a Class B operation) will be made to determine the live object
* generation.
* `GetObjectMetadata` call is made to determine the live object generation.
* @param permanentObjectDeletionEnabled permanentObjectDeletionEnabled or {@code null} for none
*/
public DeleteObject setPermanentObjectDeletionEnabled(java.lang.Boolean permanentObjectDeletionEnabled) {
Expand Down
Loading