diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/README.md b/clients/google-api-services-storagebatchoperations/v1/2.0.0/README.md index 764454daf4e..9f5d20b4b1b 100644 --- a/clients/google-api-services-storagebatchoperations/v1/2.0.0/README.md +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-storagebatchoperations - v1-rev20260429-2.0.0 + v1-rev20260601-2.0.0 @@ -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' } ``` diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/StorageBatchOperations.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/StorageBatchOperations.java index 1b41125d24d..8a163aeaffb 100644 --- a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/StorageBatchOperations.java +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/StorageBatchOperations.java @@ -583,7 +583,7 @@ public class Jobs { * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * * @param name Required. The `name` of the job to cancel. Format: - * projects/{project_id}/locations/global/jobs/{job_id}. + * `projects/{project_id}/locations/global/jobs/{job_id}`. * @param content the {@link com.google.api.services.storagebatchoperations.v1.model.CancelJobRequest} * @return the request */ @@ -612,7 +612,7 @@ public class Cancel extends StorageBatchOperationsRequest * * @param name Required. The `name` of the job to cancel. Format: - * projects/{project_id}/locations/global/jobs/{job_id}. + * `projects/{project_id}/locations/global/jobs/{job_id}`. * @param content the {@link com.google.api.services.storagebatchoperations.v1.model.CancelJobRequest} * @since 1.13 */ @@ -683,13 +683,13 @@ public Cancel setUploadProtocol(java.lang.String uploadProtocol) { /** * Required. The `name` of the job to cancel. Format: - * projects/{project_id}/locations/global/jobs/{job_id}. + * `projects/{project_id}/locations/global/jobs/{job_id}`. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The `name` of the job to cancel. Format: - projects/{project_id}/locations/global/jobs/{job_id}. + `projects/{project_id}/locations/global/jobs/{job_id}`. */ public java.lang.String getName() { return name; @@ -697,7 +697,7 @@ public java.lang.String getName() { /** * Required. The `name` of the job to cancel. Format: - * projects/{project_id}/locations/global/jobs/{job_id}. + * `projects/{project_id}/locations/global/jobs/{job_id}`. */ public Cancel setName(java.lang.String name) { if (!getSuppressPatternChecks()) { @@ -722,7 +722,7 @@ public Cancel set(String parameterName, Object value) { * This request holds the parameters needed by the storagebatchoperations server. After setting any * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param parent Required. Value for parent. + * @param parent Required. The value for parent. * @param content the {@link com.google.api.services.storagebatchoperations.v1.model.Job} * @return the request */ @@ -750,7 +750,7 @@ public class Create extends StorageBatchOperationsRequest * - * @param parent Required. Value for parent. + * @param parent Required. The value for parent. * @param content the {@link com.google.api.services.storagebatchoperations.v1.model.Job} * @since 1.13 */ @@ -819,17 +819,17 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { return (Create) super.setUploadProtocol(uploadProtocol); } - /** Required. Value for parent. */ + /** Required. The value for parent. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. Value for parent. + /** Required. The value for parent. */ public java.lang.String getParent() { return parent; } - /** Required. Value for parent. */ + /** Required. The value for parent. */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -841,25 +841,22 @@ public Create setParent(java.lang.String parent) { } /** - * Required. The optional `job_id` for this Job . If not specified, an id is generated. - * `job_id` should be no more than 128 characters and must include only characters - * available in DNS names, as defined by RFC-1123. + * Required. A unique identifier for the job. `job_id` must be up to 128 characters and + * must include only characters available in DNS names, as defined by RFC-1123. */ @com.google.api.client.util.Key private java.lang.String jobId; - /** Required. The optional `job_id` for this Job . If not specified, an id is generated. `job_id` - should be no more than 128 characters and must include only characters available in DNS names, as - defined by RFC-1123. + /** Required. A unique identifier for the job. `job_id` must be up to 128 characters and must include + only characters available in DNS names, as defined by RFC-1123. */ public java.lang.String getJobId() { return jobId; } /** - * Required. The optional `job_id` for this Job . If not specified, an id is generated. - * `job_id` should be no more than 128 characters and must include only characters - * available in DNS names, as defined by RFC-1123. + * Required. A unique identifier for the job. `job_id` must be up to 128 characters and + * must include only characters available in DNS names, as defined by RFC-1123. */ public Create setJobId(java.lang.String jobId) { this.jobId = jobId; @@ -868,18 +865,17 @@ public Create setJobId(java.lang.String jobId) { /** * 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). + * case you 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). */ @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). + 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). */ public java.lang.String getRequestId() { return requestId; @@ -887,10 +883,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). + * case you 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). */ public Create setRequestId(java.lang.String requestId) { this.requestId = requestId; @@ -911,7 +906,7 @@ public Create set(String parameterName, Object value) { * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param name Required. The `name` of the job to delete. Format: - * projects/{project_id}/locations/global/jobs/{job_id} . + * `projects/{project_id}/locations/global/jobs/{job_id}`. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -939,7 +934,7 @@ public class Delete extends StorageBatchOperationsRequest * * @param name Required. The `name` of the job to delete. Format: - * projects/{project_id}/locations/global/jobs/{job_id} . + * `projects/{project_id}/locations/global/jobs/{job_id}`. * @since 1.13 */ protected Delete(java.lang.String name) { @@ -1009,13 +1004,13 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { /** * Required. The `name` of the job to delete. Format: - * projects/{project_id}/locations/global/jobs/{job_id} . + * `projects/{project_id}/locations/global/jobs/{job_id}`. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The `name` of the job to delete. Format: - projects/{project_id}/locations/global/jobs/{job_id} . + `projects/{project_id}/locations/global/jobs/{job_id}`. */ public java.lang.String getName() { return name; @@ -1023,7 +1018,7 @@ public java.lang.String getName() { /** * Required. The `name` of the job to delete. Format: - * projects/{project_id}/locations/global/jobs/{job_id} . + * `projects/{project_id}/locations/global/jobs/{job_id}`. */ public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { @@ -1036,27 +1031,27 @@ public Delete setName(java.lang.String name) { } /** - * Optional. If set to true, any child bucket operations of the job will also be deleted. - * Highly recommended to be set to true by all clients. Users cannot mutate bucket - * operations directly, so only the jobs.delete permission is required to delete a job - * (and its child bucket operations). + * Optional. If set to true, any child bucket operations of the job are deleted. We + * recommend setting this to `true`. You can't mutate bucket operations directly, so only + * the `jobs.delete` permission is required to delete a job (and its child bucket + * operations). */ @com.google.api.client.util.Key private java.lang.Boolean force; - /** Optional. If set to true, any child bucket operations of the job will also be deleted. Highly - recommended to be set to true by all clients. Users cannot mutate bucket operations directly, so - only the jobs.delete permission is required to delete a job (and its child bucket operations). + /** Optional. If set to true, any child bucket operations of the job are deleted. We recommend setting + this to `true`. You can't mutate bucket operations directly, so only the `jobs.delete` permission + is required to delete a job (and its child bucket operations). */ public java.lang.Boolean getForce() { return force; } /** - * Optional. If set to true, any child bucket operations of the job will also be deleted. - * Highly recommended to be set to true by all clients. Users cannot mutate bucket - * operations directly, so only the jobs.delete permission is required to delete a job - * (and its child bucket operations). + * Optional. If set to true, any child bucket operations of the job are deleted. We + * recommend setting this to `true`. You can't mutate bucket operations directly, so only + * the `jobs.delete` permission is required to delete a job (and its child bucket + * operations). */ public Delete setForce(java.lang.Boolean force) { this.force = force; @@ -1065,18 +1060,17 @@ public Delete setForce(java.lang.Boolean force) { /** * 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). + * case you 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). */ @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). + 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). */ public java.lang.String getRequestId() { return requestId; @@ -1084,10 +1078,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). + * case you 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). */ public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; @@ -1107,8 +1100,8 @@ public Delete set(String parameterName, Object value) { * This request holds the parameters needed by the storagebatchoperations server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. `name` of the job to retrieve. Format: - * projects/{project_id}/locations/global/jobs/{job_id} . + * @param name Required. The `name` of the job to retrieve. Format: + * `projects/{project_id}/locations/global/jobs/{job_id}`. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -1135,8 +1128,8 @@ public class Get extends StorageBatchOperationsRequest * - * @param name Required. `name` of the job to retrieve. Format: - * projects/{project_id}/locations/global/jobs/{job_id} . + * @param name Required. The `name` of the job to retrieve. Format: + * `projects/{project_id}/locations/global/jobs/{job_id}`. * @since 1.13 */ protected Get(java.lang.String name) { @@ -1215,22 +1208,22 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. `name` of the job to retrieve. Format: - * projects/{project_id}/locations/global/jobs/{job_id} . + * Required. The `name` of the job to retrieve. Format: + * `projects/{project_id}/locations/global/jobs/{job_id}`. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. `name` of the job to retrieve. Format: - projects/{project_id}/locations/global/jobs/{job_id} . + /** Required. The `name` of the job to retrieve. Format: + `projects/{project_id}/locations/global/jobs/{job_id}`. */ public java.lang.String getName() { return name; } /** - * Required. `name` of the job to retrieve. Format: - * projects/{project_id}/locations/global/jobs/{job_id} . + * Required. The `name` of the job to retrieve. Format: + * `projects/{project_id}/locations/global/jobs/{job_id}`. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { @@ -1397,33 +1390,33 @@ public List setFilter(java.lang.String filter) { return this; } - /** Optional. Field to sort by. Supported fields are name, create_time. */ + /** Optional. Field to sort by. Supported fields are `name` and `create_time`. */ @com.google.api.client.util.Key private java.lang.String orderBy; - /** Optional. Field to sort by. Supported fields are name, create_time. + /** Optional. Field to sort by. Supported fields are `name` and `create_time`. */ public java.lang.String getOrderBy() { return orderBy; } - /** Optional. Field to sort by. Supported fields are name, create_time. */ + /** Optional. Field to sort by. Supported fields are `name` and `create_time`. */ public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } - /** Optional. The list page size. default page size is 100. */ + /** Optional. The list page size. The default page size is 100. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. The list page size. default page size is 100. + /** Optional. The list page size. The default page size is 100. */ public java.lang.Integer getPageSize() { return pageSize; } - /** Optional. The list page size. default page size is 100. */ + /** Optional. The list page size. The default page size is 100. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; @@ -1479,9 +1472,9 @@ public class BucketOperations { * This request holds the parameters needed by the storagebatchoperations server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. `name` of the bucket operation to retrieve. Format: - * projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id - * }. + * @param name Required. The `name` of the bucket operation to retrieve. Format: + * `projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_i + * d}`. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -1508,9 +1501,9 @@ public class Get extends StorageBatchOperationsRequest * - * @param name Required. `name` of the bucket operation to retrieve. Format: - * projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id - * }. + * @param name Required. The `name` of the bucket operation to retrieve. Format: + * `projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_i + * d}`. * @since 1.13 */ protected Get(java.lang.String name) { @@ -1589,22 +1582,22 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. `name` of the bucket operation to retrieve. Format: projects/{project_id}/l - * ocations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}. + * Required. The `name` of the bucket operation to retrieve. Format: `projects/{project_ + * id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}`. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. `name` of the bucket operation to retrieve. Format: - projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}. + /** Required. The `name` of the bucket operation to retrieve. Format: + `projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}`. */ public java.lang.String getName() { return name; } /** - * Required. `name` of the bucket operation to retrieve. Format: projects/{project_id}/l - * ocations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}. + * Required. The `name` of the bucket operation to retrieve. Format: `projects/{project_ + * id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}`. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { @@ -1629,7 +1622,7 @@ public Get set(String parameterName, Object value) { * This request holds the parameters needed by the storagebatchoperations server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. Format: projects/{project_id}/locations/global/jobs/{job_id}. + * @param parent Required. Format: `projects/{project_id}/locations/global/jobs/{job_id}`. * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -1656,7 +1649,7 @@ public class List extends StorageBatchOperationsRequest * - * @param parent Required. Format: projects/{project_id}/locations/global/jobs/{job_id}. + * @param parent Required. Format: `projects/{project_id}/locations/global/jobs/{job_id}`. * @since 1.13 */ protected List(java.lang.String parent) { @@ -1734,17 +1727,17 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** Required. Format: projects/{project_id}/locations/global/jobs/{job_id}. */ + /** Required. Format: `projects/{project_id}/locations/global/jobs/{job_id}`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. Format: projects/{project_id}/locations/global/jobs/{job_id}. + /** Required. Format: `projects/{project_id}/locations/global/jobs/{job_id}`. */ public java.lang.String getParent() { return parent; } - /** Required. Format: projects/{project_id}/locations/global/jobs/{job_id}. */ + /** Required. Format: `projects/{project_id}/locations/global/jobs/{job_id}`. */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -1771,17 +1764,17 @@ public List setFilter(java.lang.String filter) { return this; } - /** Optional. Field to sort by. Supported fields are name, create_time. */ + /** Optional. Field to sort by. Supported fields are `name` and `create_time`. */ @com.google.api.client.util.Key private java.lang.String orderBy; - /** Optional. Field to sort by. Supported fields are name, create_time. + /** Optional. Field to sort by. Supported fields are `name` and `create_time`. */ public java.lang.String getOrderBy() { return orderBy; } - /** Optional. Field to sort by. Supported fields are name, create_time. */ + /** Optional. Field to sort by. Supported fields are `name` and `create_time`. */ public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/AccessControlsUpdates.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/AccessControlsUpdates.java new file mode 100644 index 00000000000..3e1b98b7a06 --- /dev/null +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/AccessControlsUpdates.java @@ -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. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @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 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 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 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 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 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 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(); + } + +} diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/BucketList.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/BucketList.java index b904dd8e255..9f29e4460a7 100644 --- a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/BucketList.java +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/BucketList.java @@ -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 @@ -45,8 +45,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. * @return value or {@code null} for none */ public java.util.List getBuckets() { @@ -54,8 +54,8 @@ public java.util.List getBuckets() { } /** - * 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 buckets) { diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/BucketOperation.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/BucketOperation.java index bed54c4b715..cb2f27ce34f 100644 --- a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/BucketOperation.java +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/BucketOperation.java @@ -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 @@ -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, @@ -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}. @@ -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() { @@ -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) { @@ -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, @@ -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 diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/CancelJobRequest.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/CancelJobRequest.java index 9b70e0a8e9a..1cecc88c27d 100644 --- a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/CancelJobRequest.java +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/CancelJobRequest.java @@ -32,9 +32,9 @@ 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 @@ -42,9 +42,9 @@ 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). * @return value or {@code null} for none */ public java.lang.String getRequestId() { @@ -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) { diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/CustomContextUpdates.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/CustomContextUpdates.java index 824e37ec41b..2c1b33cb8a2 100644 --- a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/CustomContextUpdates.java +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/CustomContextUpdates.java @@ -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}. */ @@ -46,7 +46,7 @@ public final class CustomContextUpdates extends com.google.api.client.json.Gener private java.util.Map 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 */ @@ -55,7 +55,7 @@ public java.util.List 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 */ diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/DeleteObject.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/DeleteObject.java index dfa1eb6c002..18b23bafa7a 100644 --- a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/DeleteObject.java +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/DeleteObject.java @@ -32,13 +32,12 @@ 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 @@ -46,13 +45,12 @@ 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. * @return value or {@code null} for none */ public java.lang.Boolean getPermanentObjectDeletionEnabled() { @@ -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) { diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/Expr.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/Expr.java new file mode 100644 index 00000000000..075670bf72f --- /dev/null +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/Expr.java @@ -0,0 +1,160 @@ +/* + * 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 a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like + * expression language. The syntax and semantics of CEL are documented at + * https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" + * description: "Determines if a summary is less than 100 chars" expression: + * "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: + * "Determines if requestor is the document owner" expression: "document.owner == + * request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine + * whether the document should be publicly visible" expression: "document.type != 'private' && + * document.type != 'internal'" Example (Data Manipulation): title: "Notification string" + * description: "Create a notification string with a timestamp." expression: "'New message received + * at ' + string(document.create_time)" The exact variables and functions that may be referenced + * within an expression are determined by the service that evaluates it. See the service + * documentation for additional information. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Expr extends com.google.api.client.json.GenericJson { + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Textual representation of an expression in Common Expression Language syntax. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String expression; + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * @param description description or {@code null} for none + */ + public Expr setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Textual representation of an expression in Common Expression Language syntax. + * @return value or {@code null} for none + */ + public java.lang.String getExpression() { + return expression; + } + + /** + * Textual representation of an expression in Common Expression Language syntax. + * @param expression expression or {@code null} for none + */ + public Expr setExpression(java.lang.String expression) { + this.expression = expression; + return this; + } + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * @param location location or {@code null} for none + */ + public Expr setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * @param title title or {@code null} for none + */ + public Expr setTitle(java.lang.String title) { + this.title = title; + return this; + } + + @Override + public Expr set(String fieldName, Object value) { + return (Expr) super.set(fieldName, value); + } + + @Override + public Expr clone() { + return (Expr) super.clone(); + } + +} diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/Job.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/Job.java index 44c38f8d247..68fee3a8f35 100644 --- a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/Job.java +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/Job.java @@ -17,7 +17,7 @@ package com.google.api.services.storagebatchoperations.v1.model; /** - * The Storage Batch Operations Job description. + * The storage batch operations job description. * *

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 @@ -66,17 +66,17 @@ public final class Job extends com.google.api.client.json.GenericJson { private DeleteObject deleteObject; /** - * Optional. A description provided by the user for the job. Its max length is 1024 bytes when - * Unicode-encoded. + * Optional. A user-provided description for the job. Maximum length: 1024 bytes when unicode- + * encoded. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String description; /** - * Optional. If true, the job will run in dry run mode, returning the total object count and, if - * the object configuration is a prefix list, the bytes found from source. No transformations will - * be performed. + * Optional. If true, the job runs in dry run mode, returning the total object count and, if the + * object configuration is a prefix list, the bytes found from source. No transformations are + * performed. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -96,7 +96,7 @@ public final class Job extends com.google.api.client.json.GenericJson { } /** - * Output only. If true, this Job operates on multiple buckets. Multibucket jobs are subject to + * Output only. If true, this job operates on multiple buckets. Multi-bucket jobs are subject to * different quota limits than single-bucket jobs. * The value may be {@code null}. */ @@ -111,19 +111,25 @@ public final class Job extends com.google.api.client.json.GenericJson { private LoggingConfig loggingConfig; /** - * Identifier. The resource name of the Job. job_id is unique within the project, that is either - * set by the customer or defined by the service. Format: - * projects/{project}/locations/global/jobs/{job_id} . For example: - * "projects/123456/locations/global/jobs/job01". + * Identifier. The resource name of the job. Format: + * `projects/{project_id}/locations/global/jobs/{job_id}`. For example: + * `projects/123456/locations/global/jobs/job01`. `job_id` is unique in a given project. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** - * 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, - * Custom-Time. + * Specifies a project source and filters to identify objects to be transformed. + * 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. For example, `Cache- + * Control`, `Content-Disposition`, `Content-Encoding`, `Content-Language`, `Content-Type`, + * `Custom-Time`, and `Retention configuration`. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -150,6 +156,13 @@ public final class Job extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private String scheduleTime; + /** + * Updates object ACLs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SetObjectAcls setObjectAcls; + /** * Output only. State of the job. * The value may be {@code null}. @@ -250,8 +263,8 @@ public Job setDeleteObject(DeleteObject deleteObject) { } /** - * Optional. A description provided by the user for the job. Its max length is 1024 bytes when - * Unicode-encoded. + * Optional. A user-provided description for the job. Maximum length: 1024 bytes when unicode- + * encoded. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -259,8 +272,8 @@ public java.lang.String getDescription() { } /** - * Optional. A description provided by the user for the job. Its max length is 1024 bytes when - * Unicode-encoded. + * Optional. A user-provided description for the job. Maximum length: 1024 bytes when unicode- + * encoded. * @param description description or {@code null} for none */ public Job setDescription(java.lang.String description) { @@ -269,9 +282,9 @@ public Job setDescription(java.lang.String description) { } /** - * Optional. If true, the job will run in dry run mode, returning the total object count and, if - * the object configuration is a prefix list, the bytes found from source. No transformations will - * be performed. + * Optional. If true, the job runs in dry run mode, returning the total object count and, if the + * object configuration is a prefix list, the bytes found from source. No transformations are + * performed. * @return value or {@code null} for none */ public java.lang.Boolean getDryRun() { @@ -279,9 +292,9 @@ public java.lang.Boolean getDryRun() { } /** - * Optional. If true, the job will run in dry run mode, returning the total object count and, if - * the object configuration is a prefix list, the bytes found from source. No transformations will - * be performed. + * Optional. If true, the job runs in dry run mode, returning the total object count and, if the + * object configuration is a prefix list, the bytes found from source. No transformations are + * performed. * @param dryRun dryRun or {@code null} for none */ public Job setDryRun(java.lang.Boolean dryRun) { @@ -307,7 +320,7 @@ public Job setErrorSummaries(java.util.List errorSummaries) { } /** - * Output only. If true, this Job operates on multiple buckets. Multibucket jobs are subject to + * Output only. If true, this job operates on multiple buckets. Multi-bucket jobs are subject to * different quota limits than single-bucket jobs. * @return value or {@code null} for none */ @@ -316,7 +329,7 @@ public java.lang.Boolean getIsMultiBucketJob() { } /** - * Output only. If true, this Job operates on multiple buckets. Multibucket jobs are subject to + * Output only. If true, this job operates on multiple buckets. Multi-bucket jobs are subject to * different quota limits than single-bucket jobs. * @param isMultiBucketJob isMultiBucketJob or {@code null} for none */ @@ -343,10 +356,9 @@ public Job setLoggingConfig(LoggingConfig loggingConfig) { } /** - * Identifier. The resource name of the Job. job_id is unique within the project, that is either - * set by the customer or defined by the service. Format: - * projects/{project}/locations/global/jobs/{job_id} . For example: - * "projects/123456/locations/global/jobs/job01". + * Identifier. The resource name of the job. Format: + * `projects/{project_id}/locations/global/jobs/{job_id}`. For example: + * `projects/123456/locations/global/jobs/job01`. `job_id` is unique in a given project. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -354,10 +366,9 @@ public java.lang.String getName() { } /** - * Identifier. The resource name of the Job. job_id is unique within the project, that is either - * set by the customer or defined by the service. Format: - * projects/{project}/locations/global/jobs/{job_id} . For example: - * "projects/123456/locations/global/jobs/job01". + * Identifier. The resource name of the job. Format: + * `projects/{project_id}/locations/global/jobs/{job_id}`. For example: + * `projects/123456/locations/global/jobs/job01`. `job_id` is unique in a given project. * @param name name or {@code null} for none */ public Job setName(java.lang.String name) { @@ -366,9 +377,26 @@ public Job setName(java.lang.String name) { } /** - * 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, - * Custom-Time. + * Specifies a project source and filters to identify objects to be transformed. + * @return value or {@code null} for none + */ + public ProjectSource getProjectSource() { + return projectSource; + } + + /** + * Specifies a project source and filters to identify objects to be transformed. + * @param projectSource projectSource or {@code null} for none + */ + public Job setProjectSource(ProjectSource projectSource) { + this.projectSource = projectSource; + return this; + } + + /** + * Updates object metadata. Allows updating fixed-key and custom metadata. For example, `Cache- + * Control`, `Content-Disposition`, `Content-Encoding`, `Content-Language`, `Content-Type`, + * `Custom-Time`, and `Retention configuration`. * @return value or {@code null} for none */ public PutMetadata getPutMetadata() { @@ -376,9 +404,9 @@ public PutMetadata getPutMetadata() { } /** - * 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, - * Custom-Time. + * Updates object metadata. Allows updating fixed-key and custom metadata. For example, `Cache- + * Control`, `Content-Disposition`, `Content-Encoding`, `Content-Language`, `Content-Type`, + * `Custom-Time`, and `Retention configuration`. * @param putMetadata putMetadata or {@code null} for none */ public Job setPutMetadata(PutMetadata putMetadata) { @@ -437,6 +465,23 @@ public Job setScheduleTime(String scheduleTime) { 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 Job setSetObjectAcls(SetObjectAcls setObjectAcls) { + this.setObjectAcls = setObjectAcls; + return this; + } + /** * Output only. State of the job. * @return value or {@code null} for none diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/Manifest.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/Manifest.java index c738bd64f2c..22898897e58 100644 --- a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/Manifest.java +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/Manifest.java @@ -31,28 +31,40 @@ public final class Manifest extends com.google.api.client.json.GenericJson { /** - * Required. `manifest_location` must contain the manifest source file that is a CSV file in a - * Google Cloud Storage bucket. Each row in the file must include the object details i.e. BucketId - * and Name. Generation may optionally be specified. When it is not specified the live object is - * acted upon. `manifest_location` should either be 1) An absolute path to the object in the - * format of `gs://bucket_name/path/file_name.csv`. 2) An absolute path with a single wildcard - * character in the file name, for example `gs://bucket_name/path/file_name*.csv`. If manifest - * location is specified with a wildcard, objects in all manifest files matching the pattern will - * be acted upon. + * Required. Specify the manifest file location. The format of manifest location can be an + * absolute path to the object in the format of `gs://bucket_name/path/object_name`. For example, + * `gs://bucket_name/path/object_name.csv`. Alternatively, you can specify an absolute path with a + * single wildcard character in the file name, for example `gs://bucket_name/path/file_name*.csv`. + * If the manifest location is specified with a wildcard, objects in all manifest files matching + * the pattern will be acted upon. The manifest is a CSV file, uploaded to Cloud Storage, that + * contains one object or a list of objects that you want to process. Each row in the manifest + * must include the `bucket` and `name` of the object. You can optionally specify the `generation` + * of the object. If you don't specify the `generation`, the current version of the object is + * used. You can optionally include a header row with the following format: + * `bucket,name,generation`. For example, bucket,name,generation bucket_1,object_1,generation_1 + * bucket_1,object_2,generation_2 bucket_1,object_3,generation_3 Note: The manifest file must + * specify only objects within the bucket provided to the job. Rows referencing objects in other + * buckets are ignored. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String manifestLocation; /** - * Required. `manifest_location` must contain the manifest source file that is a CSV file in a - * Google Cloud Storage bucket. Each row in the file must include the object details i.e. BucketId - * and Name. Generation may optionally be specified. When it is not specified the live object is - * acted upon. `manifest_location` should either be 1) An absolute path to the object in the - * format of `gs://bucket_name/path/file_name.csv`. 2) An absolute path with a single wildcard - * character in the file name, for example `gs://bucket_name/path/file_name*.csv`. If manifest - * location is specified with a wildcard, objects in all manifest files matching the pattern will - * be acted upon. + * Required. Specify the manifest file location. The format of manifest location can be an + * absolute path to the object in the format of `gs://bucket_name/path/object_name`. For example, + * `gs://bucket_name/path/object_name.csv`. Alternatively, you can specify an absolute path with a + * single wildcard character in the file name, for example `gs://bucket_name/path/file_name*.csv`. + * If the manifest location is specified with a wildcard, objects in all manifest files matching + * the pattern will be acted upon. The manifest is a CSV file, uploaded to Cloud Storage, that + * contains one object or a list of objects that you want to process. Each row in the manifest + * must include the `bucket` and `name` of the object. You can optionally specify the `generation` + * of the object. If you don't specify the `generation`, the current version of the object is + * used. You can optionally include a header row with the following format: + * `bucket,name,generation`. For example, bucket,name,generation bucket_1,object_1,generation_1 + * bucket_1,object_2,generation_2 bucket_1,object_3,generation_3 Note: The manifest file must + * specify only objects within the bucket provided to the job. Rows referencing objects in other + * buckets are ignored. * @return value or {@code null} for none */ public java.lang.String getManifestLocation() { @@ -60,14 +72,20 @@ public java.lang.String getManifestLocation() { } /** - * Required. `manifest_location` must contain the manifest source file that is a CSV file in a - * Google Cloud Storage bucket. Each row in the file must include the object details i.e. BucketId - * and Name. Generation may optionally be specified. When it is not specified the live object is - * acted upon. `manifest_location` should either be 1) An absolute path to the object in the - * format of `gs://bucket_name/path/file_name.csv`. 2) An absolute path with a single wildcard - * character in the file name, for example `gs://bucket_name/path/file_name*.csv`. If manifest - * location is specified with a wildcard, objects in all manifest files matching the pattern will - * be acted upon. + * Required. Specify the manifest file location. The format of manifest location can be an + * absolute path to the object in the format of `gs://bucket_name/path/object_name`. For example, + * `gs://bucket_name/path/object_name.csv`. Alternatively, you can specify an absolute path with a + * single wildcard character in the file name, for example `gs://bucket_name/path/file_name*.csv`. + * If the manifest location is specified with a wildcard, objects in all manifest files matching + * the pattern will be acted upon. The manifest is a CSV file, uploaded to Cloud Storage, that + * contains one object or a list of objects that you want to process. Each row in the manifest + * must include the `bucket` and `name` of the object. You can optionally specify the `generation` + * of the object. If you don't specify the `generation`, the current version of the object is + * used. You can optionally include a header row with the following format: + * `bucket,name,generation`. For example, bucket,name,generation bucket_1,object_1,generation_1 + * bucket_1,object_2,generation_2 bucket_1,object_3,generation_3 Note: The manifest file must + * specify only objects within the bucket provided to the job. Rows referencing objects in other + * buckets are ignored. * @param manifestLocation manifestLocation or {@code null} for none */ public Manifest setManifestLocation(java.lang.String manifestLocation) { diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/ObjectAccessControl.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/ObjectAccessControl.java new file mode 100644 index 00000000000..2bcb5b70636 --- /dev/null +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/ObjectAccessControl.java @@ -0,0 +1,97 @@ +/* + * 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 an access control entry on an object. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ObjectAccessControl extends com.google.api.client.json.GenericJson { + + /** + * Required. The entity holding the permission, in one of the following forms: * `allUsers` * + * `allAuthenticatedUsers` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String entity; + + /** + * Required. The role to grant. Acceptable values are: * `READER` - gives read access to the + * object. * `OWNER` - gives owner access to the object. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String role; + + /** + * Required. The entity holding the permission, in one of the following forms: * `allUsers` * + * `allAuthenticatedUsers` + * @return value or {@code null} for none + */ + public java.lang.String getEntity() { + return entity; + } + + /** + * Required. The entity holding the permission, in one of the following forms: * `allUsers` * + * `allAuthenticatedUsers` + * @param entity entity or {@code null} for none + */ + public ObjectAccessControl setEntity(java.lang.String entity) { + this.entity = entity; + return this; + } + + /** + * Required. The role to grant. Acceptable values are: * `READER` - gives read access to the + * object. * `OWNER` - gives owner access to the object. + * @return value or {@code null} for none + */ + public java.lang.String getRole() { + return role; + } + + /** + * Required. The role to grant. Acceptable values are: * `READER` - gives read access to the + * object. * `OWNER` - gives owner access to the object. + * @param role role or {@code null} for none + */ + public ObjectAccessControl setRole(java.lang.String role) { + this.role = role; + return this; + } + + @Override + public ObjectAccessControl set(String fieldName, Object value) { + return (ObjectAccessControl) super.set(fieldName, value); + } + + @Override + public ObjectAccessControl clone() { + return (ObjectAccessControl) super.clone(); + } + +} diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/ObjectCustomContextPayload.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/ObjectCustomContextPayload.java index 9b0c5f46328..2f73cbb0f6d 100644 --- a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/ObjectCustomContextPayload.java +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/ObjectCustomContextPayload.java @@ -17,7 +17,7 @@ package com.google.api.services.storagebatchoperations.v1.model; /** - * Describes the payload of a user defined object custom context. + * Describes the payload of a user-defined object custom context. * *

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 @@ -31,18 +31,18 @@ public final class ObjectCustomContextPayload extends com.google.api.client.json.GenericJson { /** - * The value of the object custom context. If set, `value` must NOT be an empty string since it is - * a required field in custom context. If unset, `value` will be ignored and no changes will be - * made to the `value` field of the custom context payload. + * The value of the object custom context. If set, `value` can't be an empty string because it is + * a required field in custom context. If unset, `value` is ignored and no changes are made to the + * `value` field of the custom context payload. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String value; /** - * The value of the object custom context. If set, `value` must NOT be an empty string since it is - * a required field in custom context. If unset, `value` will be ignored and no changes will be - * made to the `value` field of the custom context payload. + * The value of the object custom context. If set, `value` can't be an empty string because it is + * a required field in custom context. If unset, `value` is ignored and no changes are made to the + * `value` field of the custom context payload. * @return value or {@code null} for none */ public java.lang.String getValue() { @@ -50,9 +50,9 @@ public java.lang.String getValue() { } /** - * The value of the object custom context. If set, `value` must NOT be an empty string since it is - * a required field in custom context. If unset, `value` will be ignored and no changes will be - * made to the `value` field of the custom context payload. + * The value of the object custom context. If set, `value` can't be an empty string because it is + * a required field in custom context. If unset, `value` is ignored and no changes are made to the + * `value` field of the custom context payload. * @param value value or {@code null} for none */ public ObjectCustomContextPayload setValue(java.lang.String value) { diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/ObjectRetention.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/ObjectRetention.java index dcc8735358b..89b41be5805 100644 --- a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/ObjectRetention.java +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/ObjectRetention.java @@ -31,23 +31,31 @@ public final class ObjectRetention extends com.google.api.client.json.GenericJson { /** - * Required. The time when the object will be retained until. UNSET will clear the retention. Must - * 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'. + * Required. The object's retention expiration time, during which, the object is protected from + * being deleted or overwritten. The time must be specified in RFC 3339 format, for example `YYYY- + * MM-DD'T'HH:MM:SS'Z'` or `YYYY-MM-DD'T'HH:MM:SS.SS'Z'`. To clear an object's retention, both + * `retentionMode` and `retainUntilTime` must be left unset (omitted). Setting `retentionMode` to + * `RETENTION_MODE_UNSPECIFIED` is treated as a no-op. Unlike an unset field, it doesn't modify or + * clear the retention settings. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String retainUntilTime; /** - * Required. The retention mode of the object. + * Required. The retention mode. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String retentionMode; /** - * Required. The time when the object will be retained until. UNSET will clear the retention. Must - * 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'. + * Required. The object's retention expiration time, during which, the object is protected from + * being deleted or overwritten. The time must be specified in RFC 3339 format, for example `YYYY- + * MM-DD'T'HH:MM:SS'Z'` or `YYYY-MM-DD'T'HH:MM:SS.SS'Z'`. To clear an object's retention, both + * `retentionMode` and `retainUntilTime` must be left unset (omitted). Setting `retentionMode` to + * `RETENTION_MODE_UNSPECIFIED` is treated as a no-op. Unlike an unset field, it doesn't modify or + * clear the retention settings. * @return value or {@code null} for none */ public java.lang.String getRetainUntilTime() { @@ -55,8 +63,12 @@ public java.lang.String getRetainUntilTime() { } /** - * Required. The time when the object will be retained until. UNSET will clear the retention. Must - * 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'. + * Required. The object's retention expiration time, during which, the object is protected from + * being deleted or overwritten. The time must be specified in RFC 3339 format, for example `YYYY- + * MM-DD'T'HH:MM:SS'Z'` or `YYYY-MM-DD'T'HH:MM:SS.SS'Z'`. To clear an object's retention, both + * `retentionMode` and `retainUntilTime` must be left unset (omitted). Setting `retentionMode` to + * `RETENTION_MODE_UNSPECIFIED` is treated as a no-op. Unlike an unset field, it doesn't modify or + * clear the retention settings. * @param retainUntilTime retainUntilTime or {@code null} for none */ public ObjectRetention setRetainUntilTime(java.lang.String retainUntilTime) { @@ -65,7 +77,7 @@ public ObjectRetention setRetainUntilTime(java.lang.String retainUntilTime) { } /** - * Required. The retention mode of the object. + * Required. The retention mode. * @return value or {@code null} for none */ public java.lang.String getRetentionMode() { @@ -73,7 +85,7 @@ public java.lang.String getRetentionMode() { } /** - * Required. The retention mode of the object. + * Required. The retention mode. * @param retentionMode retentionMode or {@code null} for none */ public ObjectRetention setRetentionMode(java.lang.String retentionMode) { diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/OperationMetadata.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/OperationMetadata.java index 2decb3d9085..583e77ef9ea 100644 --- a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/OperationMetadata.java +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/OperationMetadata.java @@ -60,7 +60,7 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ /** * Output only. The unique operation resource name. Format: - * projects/{project}/locations/global/operations/{operation}. + * projects/{project_id}/locations/global/operations/{operation}. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -145,7 +145,7 @@ public OperationMetadata setJob(Job job) { /** * Output only. The unique operation resource name. Format: - * projects/{project}/locations/global/operations/{operation}. + * projects/{project_id}/locations/global/operations/{operation}. * @return value or {@code null} for none */ public java.lang.String getOperation() { @@ -154,7 +154,7 @@ public java.lang.String getOperation() { /** * Output only. The unique operation resource name. Format: - * projects/{project}/locations/global/operations/{operation}. + * projects/{project_id}/locations/global/operations/{operation}. * @param operation operation or {@code null} for none */ public OperationMetadata setOperation(java.lang.String operation) { diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/PrefixList.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/PrefixList.java index 0922f946bd0..32fc483ab48 100644 --- a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/PrefixList.java +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/PrefixList.java @@ -31,18 +31,18 @@ public final class PrefixList extends com.google.api.client.json.GenericJson { /** - * Optional. Include prefixes of the objects to be transformed. * Supports full object name * - * Supports prefix of the object name * Wildcards are not supported * Supports empty string for - * all objects in a bucket. + * Optional. Specify one or more object prefixes. For example: * To match one object, use a single + * prefix, `prefix1`. * To match multiple objects, use comma-separated prefixes, `prefix1, + * prefix2`. * To match all objects, use an empty prefix, `''` * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List includedObjectPrefixes; /** - * Optional. Include prefixes of the objects to be transformed. * Supports full object name * - * Supports prefix of the object name * Wildcards are not supported * Supports empty string for - * all objects in a bucket. + * Optional. Specify one or more object prefixes. For example: * To match one object, use a single + * prefix, `prefix1`. * To match multiple objects, use comma-separated prefixes, `prefix1, + * prefix2`. * To match all objects, use an empty prefix, `''` * @return value or {@code null} for none */ public java.util.List getIncludedObjectPrefixes() { @@ -50,9 +50,9 @@ public java.util.List getIncludedObjectPrefixes() { } /** - * Optional. Include prefixes of the objects to be transformed. * Supports full object name * - * Supports prefix of the object name * Wildcards are not supported * Supports empty string for - * all objects in a bucket. + * Optional. Specify one or more object prefixes. For example: * To match one object, use a single + * prefix, `prefix1`. * To match multiple objects, use comma-separated prefixes, `prefix1, + * prefix2`. * To match all objects, use an empty prefix, `''` * @param includedObjectPrefixes includedObjectPrefixes or {@code null} for none */ public PrefixList setIncludedObjectPrefixes(java.util.List includedObjectPrefixes) { diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/ProjectSource.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/ProjectSource.java new file mode 100644 index 00000000000..210a4b0d278 --- /dev/null +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/ProjectSource.java @@ -0,0 +1,250 @@ +/* + * 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; + +/** + * Describes the project source where the objects satisfying the filters will be transformed. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ProjectSource extends com.google.api.client.json.GenericJson { + + /** + * Optional. Filters expressed in Common Expression Language (CEL) to apply to buckets to identify + * buckets with objects to be transformed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Expr bucketFilters; + + /** + * Optional. The unique identifier of a dry run job to use as the baseline for the current job. + * Specifying this ID ensures the job is executed against the same set of objects validated during + * the dry run. The value corresponds to the {job_id} segment of the resource name: + * `projects/{project_id}/locations/{location}/jobs/{job_id}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dryRunJobId; + + /** + * Required. The resource identifier of the Storage Insights dataset configuration. Storage batch + * operations uses the latest snapshot from this dataset as the source to list and filter target + * objects. Format: `projects/{project_id}/locations/{location}/datasetConfigs/{dataset_config}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String insightsDatasetConfig; + + /** + * Optional. Filters expressed in Common Expression Language (CEL) to apply to objects to identify + * objects to be transformed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Expr objectFilters; + + /** + * Required. Project name of the objects to be transformed. e.g. projects/my-project or + * projects/123456. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** + * Output only. The snapshot time used by the job to read the Storage Insights dataset for bucket + * and object discovery. This field is populated by the service and reflects the exact timestamp + * of the dataset snapshot used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String snapshotTime; + + /** + * Optional. Specifies the Cloud Storage locations to include in the job. If provided, only + * buckets and objects within these locations will be discovered from the Storage Insights dataset + * as configured in the `insights_dataset_config`. If omitted, the job will discover buckets and + * objects from all locations configured in the `insights_dataset_config`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TargetLocations targetLocations; + + /** + * Optional. Filters expressed in Common Expression Language (CEL) to apply to buckets to identify + * buckets with objects to be transformed. + * @return value or {@code null} for none + */ + public Expr getBucketFilters() { + return bucketFilters; + } + + /** + * Optional. Filters expressed in Common Expression Language (CEL) to apply to buckets to identify + * buckets with objects to be transformed. + * @param bucketFilters bucketFilters or {@code null} for none + */ + public ProjectSource setBucketFilters(Expr bucketFilters) { + this.bucketFilters = bucketFilters; + return this; + } + + /** + * Optional. The unique identifier of a dry run job to use as the baseline for the current job. + * Specifying this ID ensures the job is executed against the same set of objects validated during + * the dry run. The value corresponds to the {job_id} segment of the resource name: + * `projects/{project_id}/locations/{location}/jobs/{job_id}`. + * @return value or {@code null} for none + */ + public java.lang.String getDryRunJobId() { + return dryRunJobId; + } + + /** + * Optional. The unique identifier of a dry run job to use as the baseline for the current job. + * Specifying this ID ensures the job is executed against the same set of objects validated during + * the dry run. The value corresponds to the {job_id} segment of the resource name: + * `projects/{project_id}/locations/{location}/jobs/{job_id}`. + * @param dryRunJobId dryRunJobId or {@code null} for none + */ + public ProjectSource setDryRunJobId(java.lang.String dryRunJobId) { + this.dryRunJobId = dryRunJobId; + return this; + } + + /** + * Required. The resource identifier of the Storage Insights dataset configuration. Storage batch + * operations uses the latest snapshot from this dataset as the source to list and filter target + * objects. Format: `projects/{project_id}/locations/{location}/datasetConfigs/{dataset_config}`. + * @return value or {@code null} for none + */ + public java.lang.String getInsightsDatasetConfig() { + return insightsDatasetConfig; + } + + /** + * Required. The resource identifier of the Storage Insights dataset configuration. Storage batch + * operations uses the latest snapshot from this dataset as the source to list and filter target + * objects. Format: `projects/{project_id}/locations/{location}/datasetConfigs/{dataset_config}`. + * @param insightsDatasetConfig insightsDatasetConfig or {@code null} for none + */ + public ProjectSource setInsightsDatasetConfig(java.lang.String insightsDatasetConfig) { + this.insightsDatasetConfig = insightsDatasetConfig; + return this; + } + + /** + * Optional. Filters expressed in Common Expression Language (CEL) to apply to objects to identify + * objects to be transformed. + * @return value or {@code null} for none + */ + public Expr getObjectFilters() { + return objectFilters; + } + + /** + * Optional. Filters expressed in Common Expression Language (CEL) to apply to objects to identify + * objects to be transformed. + * @param objectFilters objectFilters or {@code null} for none + */ + public ProjectSource setObjectFilters(Expr objectFilters) { + this.objectFilters = objectFilters; + return this; + } + + /** + * Required. Project name of the objects to be transformed. e.g. projects/my-project or + * projects/123456. + * @return value or {@code null} for none + */ + public java.lang.String getProject() { + return project; + } + + /** + * Required. Project name of the objects to be transformed. e.g. projects/my-project or + * projects/123456. + * @param project project or {@code null} for none + */ + public ProjectSource setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** + * Output only. The snapshot time used by the job to read the Storage Insights dataset for bucket + * and object discovery. This field is populated by the service and reflects the exact timestamp + * of the dataset snapshot used. + * @return value or {@code null} for none + */ + public String getSnapshotTime() { + return snapshotTime; + } + + /** + * Output only. The snapshot time used by the job to read the Storage Insights dataset for bucket + * and object discovery. This field is populated by the service and reflects the exact timestamp + * of the dataset snapshot used. + * @param snapshotTime snapshotTime or {@code null} for none + */ + public ProjectSource setSnapshotTime(String snapshotTime) { + this.snapshotTime = snapshotTime; + return this; + } + + /** + * Optional. Specifies the Cloud Storage locations to include in the job. If provided, only + * buckets and objects within these locations will be discovered from the Storage Insights dataset + * as configured in the `insights_dataset_config`. If omitted, the job will discover buckets and + * objects from all locations configured in the `insights_dataset_config`. + * @return value or {@code null} for none + */ + public TargetLocations getTargetLocations() { + return targetLocations; + } + + /** + * Optional. Specifies the Cloud Storage locations to include in the job. If provided, only + * buckets and objects within these locations will be discovered from the Storage Insights dataset + * as configured in the `insights_dataset_config`. If omitted, the job will discover buckets and + * objects from all locations configured in the `insights_dataset_config`. + * @param targetLocations targetLocations or {@code null} for none + */ + public ProjectSource setTargetLocations(TargetLocations targetLocations) { + this.targetLocations = targetLocations; + return this; + } + + @Override + public ProjectSource set(String fieldName, Object value) { + return (ProjectSource) super.set(fieldName, value); + } + + @Override + public ProjectSource clone() { + return (ProjectSource) super.clone(); + } + +} diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/PutMetadata.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/PutMetadata.java index b7622fecddf..da11d0bcbf8 100644 --- a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/PutMetadata.java +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/PutMetadata.java @@ -31,85 +31,90 @@ public final class PutMetadata extends com.google.api.client.json.GenericJson { /** - * Optional. Updates objects Cache-Control fixed metadata. Unset values will be ignored. Set empty - * values to clear the metadata. Additionally, the value for Custom-Time cannot decrease. Refer to - * documentation in https://cloud.google.com/storage/docs/metadata#caching_data. + * Optional. Updates the objects `Cache-Control` fixed metadata. Unset values in the request are + * ignored. To clear the metadata, set an empty value. Additionally, the value for `Custom-Time` + * can't decrease. For details, see [Cache- + * Control](https://cloud.google.com/storage/docs/metadata#caching_data). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String cacheControl; /** - * Optional. Updates objects Content-Disposition fixed metadata. Unset values will be ignored. Set - * empty values to clear the metadata. Refer - * https://cloud.google.com/storage/docs/metadata#content-disposition for additional - * documentation. + * Optional. Updates objects `Content-Disposition` fixed metadata. Unset values in the request are + * ignored. To clear the metadata, set an empty value. For details, see [Content- + * Disposition](https://cloud.google.com/storage/docs/metadata#content-disposition). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String contentDisposition; /** - * Optional. Updates objects Content-Encoding fixed metadata. Unset values will be ignored. Set - * empty values to clear the metadata. Refer to documentation in - * https://cloud.google.com/storage/docs/metadata#content-encoding. + * Optional. Updates the objects `Content-Encoding` fixed metadata. Unset values in the request + * are ignored. To clear the metadata, set an empty value. For details, see [Content- + * Encoding](https://cloud.google.com/storage/docs/metadata#content-encoding). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String contentEncoding; /** - * Optional. Updates objects Content-Language fixed metadata. Refer to ISO 639-1 language codes - * for typical values of this metadata. Max length 100 characters. Unset values will be ignored. - * Set empty values to clear the metadata. Refer to documentation in - * https://cloud.google.com/storage/docs/metadata#content-language. + * Optional. Updates the objects `Content-Language` fixed metadata. Metadata values must use ISO + * 639-1 language codes. The maximum length for metadata values is 100 characters. Unset values in + * the request are ignored. To clear the metadata, set an empty value. For details, see [Content- + * Language](https://cloud.google.com/storage/docs/metadata#content-language). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String contentLanguage; /** - * Optional. Updates objects Content-Type fixed metadata. Unset values will be ignored. Set empty - * values to clear the metadata. Refer to documentation in - * https://cloud.google.com/storage/docs/metadata#content-type + * Optional. Updates objects `Content-Type` fixed metadata. Unset values in the request are + * ignored. To clear the metadata, set an empty value. For details, see [Content- + * Type](https://cloud.google.com/storage/docs/metadata#content-type). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String contentType; /** - * Optional. Updates objects custom metadata. Adds or sets individual custom metadata key value - * pairs on objects. Keys that are set with empty custom metadata values will have its value - * cleared. Existing custom metadata not specified with this flag is not changed. Refer to - * documentation in https://cloud.google.com/storage/docs/metadata#custom-metadata + * Optional. Updates the object's custom metadata. This operation adds or sets individual custom + * metadata key-value pairs. Keys specified with empty values have their values cleared. Existing + * custom metadata keys not included in the request remain unchanged. For details, see [Custom + * metadata](https://cloud.google.com/storage/docs/metadata#custom-metadata). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map customMetadata; /** - * Optional. Updates objects Custom-Time fixed metadata. Unset values will be ignored. Set empty - * values to clear the metadata. Refer to documentation in - * https://cloud.google.com/storage/docs/metadata#custom-time. + * Optional. Updates the objects `Custom-Time` fixed metadata. Unset values in the request are + * ignored. To clear the metadata, set an empty value. The time must be specified in RFC 3339 + * format, for example `YYYY-MM-DD'T'HH:MM:SS'Z'` or `YYYY-MM-DD'T'HH:MM:SS.SS'Z'`. For details, + * see [Custom-Time](https://cloud.google.com/storage/docs/metadata#custom-time). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String customTime; /** - * Optional. Updates objects retention lock configuration. Unset values will be ignored. Set empty - * values to clear the retention for the object with existing `Unlocked` retention mode. Object - * with existing `Locked` retention mode cannot be cleared or reduce retain_until_time. Refer to - * documentation in https://cloud.google.com/storage/docs/object-lock + * Optional. Updates an object's retention configuration. To clear an object's retention, both + * `retentionMode` and `retainUntilTime` must be left unset (omitted). Setting `retentionMode` to + * `RETENTION_MODE_UNSPECIFIED` is treated as a no-op. Unlike an unset field, it doesn't modify or + * clear the retention settings. An object with `LOCKED` retention mode can't have its retention + * cleared or its `retainUntilTime` reduced. For more information, see [Object + * retention](https://cloud.google.com/storage/docs/batch-operations/create-manage-batch- + * operation-jobs#retain-until-time). * The value may be {@code null}. */ @com.google.api.client.util.Key private ObjectRetention objectRetention; /** - * Optional. Updates objects Cache-Control fixed metadata. Unset values will be ignored. Set empty - * values to clear the metadata. Additionally, the value for Custom-Time cannot decrease. Refer to - * documentation in https://cloud.google.com/storage/docs/metadata#caching_data. + * Optional. Updates the objects `Cache-Control` fixed metadata. Unset values in the request are + * ignored. To clear the metadata, set an empty value. Additionally, the value for `Custom-Time` + * can't decrease. For details, see [Cache- + * Control](https://cloud.google.com/storage/docs/metadata#caching_data). * @return value or {@code null} for none */ public java.lang.String getCacheControl() { @@ -117,9 +122,10 @@ public java.lang.String getCacheControl() { } /** - * Optional. Updates objects Cache-Control fixed metadata. Unset values will be ignored. Set empty - * values to clear the metadata. Additionally, the value for Custom-Time cannot decrease. Refer to - * documentation in https://cloud.google.com/storage/docs/metadata#caching_data. + * Optional. Updates the objects `Cache-Control` fixed metadata. Unset values in the request are + * ignored. To clear the metadata, set an empty value. Additionally, the value for `Custom-Time` + * can't decrease. For details, see [Cache- + * Control](https://cloud.google.com/storage/docs/metadata#caching_data). * @param cacheControl cacheControl or {@code null} for none */ public PutMetadata setCacheControl(java.lang.String cacheControl) { @@ -128,10 +134,9 @@ public PutMetadata setCacheControl(java.lang.String cacheControl) { } /** - * Optional. Updates objects Content-Disposition fixed metadata. Unset values will be ignored. Set - * empty values to clear the metadata. Refer - * https://cloud.google.com/storage/docs/metadata#content-disposition for additional - * documentation. + * Optional. Updates objects `Content-Disposition` fixed metadata. Unset values in the request are + * ignored. To clear the metadata, set an empty value. For details, see [Content- + * Disposition](https://cloud.google.com/storage/docs/metadata#content-disposition). * @return value or {@code null} for none */ public java.lang.String getContentDisposition() { @@ -139,10 +144,9 @@ public java.lang.String getContentDisposition() { } /** - * Optional. Updates objects Content-Disposition fixed metadata. Unset values will be ignored. Set - * empty values to clear the metadata. Refer - * https://cloud.google.com/storage/docs/metadata#content-disposition for additional - * documentation. + * Optional. Updates objects `Content-Disposition` fixed metadata. Unset values in the request are + * ignored. To clear the metadata, set an empty value. For details, see [Content- + * Disposition](https://cloud.google.com/storage/docs/metadata#content-disposition). * @param contentDisposition contentDisposition or {@code null} for none */ public PutMetadata setContentDisposition(java.lang.String contentDisposition) { @@ -151,9 +155,9 @@ public PutMetadata setContentDisposition(java.lang.String contentDisposition) { } /** - * Optional. Updates objects Content-Encoding fixed metadata. Unset values will be ignored. Set - * empty values to clear the metadata. Refer to documentation in - * https://cloud.google.com/storage/docs/metadata#content-encoding. + * Optional. Updates the objects `Content-Encoding` fixed metadata. Unset values in the request + * are ignored. To clear the metadata, set an empty value. For details, see [Content- + * Encoding](https://cloud.google.com/storage/docs/metadata#content-encoding). * @return value or {@code null} for none */ public java.lang.String getContentEncoding() { @@ -161,9 +165,9 @@ public java.lang.String getContentEncoding() { } /** - * Optional. Updates objects Content-Encoding fixed metadata. Unset values will be ignored. Set - * empty values to clear the metadata. Refer to documentation in - * https://cloud.google.com/storage/docs/metadata#content-encoding. + * Optional. Updates the objects `Content-Encoding` fixed metadata. Unset values in the request + * are ignored. To clear the metadata, set an empty value. For details, see [Content- + * Encoding](https://cloud.google.com/storage/docs/metadata#content-encoding). * @param contentEncoding contentEncoding or {@code null} for none */ public PutMetadata setContentEncoding(java.lang.String contentEncoding) { @@ -172,10 +176,10 @@ public PutMetadata setContentEncoding(java.lang.String contentEncoding) { } /** - * Optional. Updates objects Content-Language fixed metadata. Refer to ISO 639-1 language codes - * for typical values of this metadata. Max length 100 characters. Unset values will be ignored. - * Set empty values to clear the metadata. Refer to documentation in - * https://cloud.google.com/storage/docs/metadata#content-language. + * Optional. Updates the objects `Content-Language` fixed metadata. Metadata values must use ISO + * 639-1 language codes. The maximum length for metadata values is 100 characters. Unset values in + * the request are ignored. To clear the metadata, set an empty value. For details, see [Content- + * Language](https://cloud.google.com/storage/docs/metadata#content-language). * @return value or {@code null} for none */ public java.lang.String getContentLanguage() { @@ -183,10 +187,10 @@ public java.lang.String getContentLanguage() { } /** - * Optional. Updates objects Content-Language fixed metadata. Refer to ISO 639-1 language codes - * for typical values of this metadata. Max length 100 characters. Unset values will be ignored. - * Set empty values to clear the metadata. Refer to documentation in - * https://cloud.google.com/storage/docs/metadata#content-language. + * Optional. Updates the objects `Content-Language` fixed metadata. Metadata values must use ISO + * 639-1 language codes. The maximum length for metadata values is 100 characters. Unset values in + * the request are ignored. To clear the metadata, set an empty value. For details, see [Content- + * Language](https://cloud.google.com/storage/docs/metadata#content-language). * @param contentLanguage contentLanguage or {@code null} for none */ public PutMetadata setContentLanguage(java.lang.String contentLanguage) { @@ -195,9 +199,9 @@ public PutMetadata setContentLanguage(java.lang.String contentLanguage) { } /** - * Optional. Updates objects Content-Type fixed metadata. Unset values will be ignored. Set empty - * values to clear the metadata. Refer to documentation in - * https://cloud.google.com/storage/docs/metadata#content-type + * Optional. Updates objects `Content-Type` fixed metadata. Unset values in the request are + * ignored. To clear the metadata, set an empty value. For details, see [Content- + * Type](https://cloud.google.com/storage/docs/metadata#content-type). * @return value or {@code null} for none */ public java.lang.String getContentType() { @@ -205,9 +209,9 @@ public java.lang.String getContentType() { } /** - * Optional. Updates objects Content-Type fixed metadata. Unset values will be ignored. Set empty - * values to clear the metadata. Refer to documentation in - * https://cloud.google.com/storage/docs/metadata#content-type + * Optional. Updates objects `Content-Type` fixed metadata. Unset values in the request are + * ignored. To clear the metadata, set an empty value. For details, see [Content- + * Type](https://cloud.google.com/storage/docs/metadata#content-type). * @param contentType contentType or {@code null} for none */ public PutMetadata setContentType(java.lang.String contentType) { @@ -216,10 +220,10 @@ public PutMetadata setContentType(java.lang.String contentType) { } /** - * Optional. Updates objects custom metadata. Adds or sets individual custom metadata key value - * pairs on objects. Keys that are set with empty custom metadata values will have its value - * cleared. Existing custom metadata not specified with this flag is not changed. Refer to - * documentation in https://cloud.google.com/storage/docs/metadata#custom-metadata + * Optional. Updates the object's custom metadata. This operation adds or sets individual custom + * metadata key-value pairs. Keys specified with empty values have their values cleared. Existing + * custom metadata keys not included in the request remain unchanged. For details, see [Custom + * metadata](https://cloud.google.com/storage/docs/metadata#custom-metadata). * @return value or {@code null} for none */ public java.util.Map getCustomMetadata() { @@ -227,10 +231,10 @@ public java.util.Map getCustomMetadata() { } /** - * Optional. Updates objects custom metadata. Adds or sets individual custom metadata key value - * pairs on objects. Keys that are set with empty custom metadata values will have its value - * cleared. Existing custom metadata not specified with this flag is not changed. Refer to - * documentation in https://cloud.google.com/storage/docs/metadata#custom-metadata + * Optional. Updates the object's custom metadata. This operation adds or sets individual custom + * metadata key-value pairs. Keys specified with empty values have their values cleared. Existing + * custom metadata keys not included in the request remain unchanged. For details, see [Custom + * metadata](https://cloud.google.com/storage/docs/metadata#custom-metadata). * @param customMetadata customMetadata or {@code null} for none */ public PutMetadata setCustomMetadata(java.util.Map customMetadata) { @@ -239,9 +243,10 @@ public PutMetadata setCustomMetadata(java.util.Map cus } /** - * Optional. Updates objects Custom-Time fixed metadata. Unset values will be ignored. Set empty - * values to clear the metadata. Refer to documentation in - * https://cloud.google.com/storage/docs/metadata#custom-time. + * Optional. Updates the objects `Custom-Time` fixed metadata. Unset values in the request are + * ignored. To clear the metadata, set an empty value. The time must be specified in RFC 3339 + * format, for example `YYYY-MM-DD'T'HH:MM:SS'Z'` or `YYYY-MM-DD'T'HH:MM:SS.SS'Z'`. For details, + * see [Custom-Time](https://cloud.google.com/storage/docs/metadata#custom-time). * @return value or {@code null} for none */ public java.lang.String getCustomTime() { @@ -249,9 +254,10 @@ public java.lang.String getCustomTime() { } /** - * Optional. Updates objects Custom-Time fixed metadata. Unset values will be ignored. Set empty - * values to clear the metadata. Refer to documentation in - * https://cloud.google.com/storage/docs/metadata#custom-time. + * Optional. Updates the objects `Custom-Time` fixed metadata. Unset values in the request are + * ignored. To clear the metadata, set an empty value. The time must be specified in RFC 3339 + * format, for example `YYYY-MM-DD'T'HH:MM:SS'Z'` or `YYYY-MM-DD'T'HH:MM:SS.SS'Z'`. For details, + * see [Custom-Time](https://cloud.google.com/storage/docs/metadata#custom-time). * @param customTime customTime or {@code null} for none */ public PutMetadata setCustomTime(java.lang.String customTime) { @@ -260,10 +266,13 @@ public PutMetadata setCustomTime(java.lang.String customTime) { } /** - * Optional. Updates objects retention lock configuration. Unset values will be ignored. Set empty - * values to clear the retention for the object with existing `Unlocked` retention mode. Object - * with existing `Locked` retention mode cannot be cleared or reduce retain_until_time. Refer to - * documentation in https://cloud.google.com/storage/docs/object-lock + * Optional. Updates an object's retention configuration. To clear an object's retention, both + * `retentionMode` and `retainUntilTime` must be left unset (omitted). Setting `retentionMode` to + * `RETENTION_MODE_UNSPECIFIED` is treated as a no-op. Unlike an unset field, it doesn't modify or + * clear the retention settings. An object with `LOCKED` retention mode can't have its retention + * cleared or its `retainUntilTime` reduced. For more information, see [Object + * retention](https://cloud.google.com/storage/docs/batch-operations/create-manage-batch- + * operation-jobs#retain-until-time). * @return value or {@code null} for none */ public ObjectRetention getObjectRetention() { @@ -271,10 +280,13 @@ public ObjectRetention getObjectRetention() { } /** - * Optional. Updates objects retention lock configuration. Unset values will be ignored. Set empty - * values to clear the retention for the object with existing `Unlocked` retention mode. Object - * with existing `Locked` retention mode cannot be cleared or reduce retain_until_time. Refer to - * documentation in https://cloud.google.com/storage/docs/object-lock + * Optional. Updates an object's retention configuration. To clear an object's retention, both + * `retentionMode` and `retainUntilTime` must be left unset (omitted). Setting `retentionMode` to + * `RETENTION_MODE_UNSPECIFIED` is treated as a no-op. Unlike an unset field, it doesn't modify or + * clear the retention settings. An object with `LOCKED` retention mode can't have its retention + * cleared or its `retainUntilTime` reduced. For more information, see [Object + * retention](https://cloud.google.com/storage/docs/batch-operations/create-manage-batch- + * operation-jobs#retain-until-time). * @param objectRetention objectRetention or {@code null} for none */ public PutMetadata setObjectRetention(ObjectRetention objectRetention) { diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/PutObjectHold.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/PutObjectHold.java index fbc9d8a49fd..dd0dd034f7b 100644 --- a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/PutObjectHold.java +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/PutObjectHold.java @@ -32,7 +32,7 @@ public final class PutObjectHold extends com.google.api.client.json.GenericJson /** * Required. Updates object event based holds state. When object event based hold is set, object - * cannot be deleted or replaced. Resets object's time in the bucket for the purposes of the + * can't be deleted or replaced. Resets object's time in the bucket for the purposes of the * retention period. * The value may be {@code null}. */ @@ -40,8 +40,8 @@ public final class PutObjectHold extends com.google.api.client.json.GenericJson private java.lang.String eventBasedHold; /** - * Required. Updates object temporary holds state. When object temporary hold is set, object - * cannot be deleted or replaced. + * Required. Updates object temporary holds state. When object temporary hold is set, object can't + * be deleted or replaced. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -49,7 +49,7 @@ public final class PutObjectHold extends com.google.api.client.json.GenericJson /** * Required. Updates object event based holds state. When object event based hold is set, object - * cannot be deleted or replaced. Resets object's time in the bucket for the purposes of the + * can't be deleted or replaced. Resets object's time in the bucket for the purposes of the * retention period. * @return value or {@code null} for none */ @@ -59,7 +59,7 @@ public java.lang.String getEventBasedHold() { /** * Required. Updates object event based holds state. When object event based hold is set, object - * cannot be deleted or replaced. Resets object's time in the bucket for the purposes of the + * can't be deleted or replaced. Resets object's time in the bucket for the purposes of the * retention period. * @param eventBasedHold eventBasedHold or {@code null} for none */ @@ -69,8 +69,8 @@ public PutObjectHold setEventBasedHold(java.lang.String eventBasedHold) { } /** - * Required. Updates object temporary holds state. When object temporary hold is set, object - * cannot be deleted or replaced. + * Required. Updates object temporary holds state. When object temporary hold is set, object can't + * be deleted or replaced. * @return value or {@code null} for none */ public java.lang.String getTemporaryHold() { @@ -78,8 +78,8 @@ public java.lang.String getTemporaryHold() { } /** - * Required. Updates object temporary holds state. When object temporary hold is set, object - * cannot be deleted or replaced. + * Required. Updates object temporary holds state. When object temporary hold is set, object can't + * be deleted or replaced. * @param temporaryHold temporaryHold or {@code null} for none */ public PutObjectHold setTemporaryHold(java.lang.String temporaryHold) { diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/RewriteObject.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/RewriteObject.java index a3786d5642d..b911e21ceca 100644 --- a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/RewriteObject.java +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/RewriteObject.java @@ -31,26 +31,34 @@ public final class RewriteObject extends com.google.api.client.json.GenericJson { /** - * Required. Resource name of the Cloud KMS key that will be used to encrypt the object. The Cloud - * KMS key must be located in same location as the object. Refer to - * https://cloud.google.com/storage/docs/encryption/using-customer-managed-keys#add-object-key for - * additional documentation. Format: - * projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key} For example: - * "projects/123456/locations/us-central1/keyRings/my-keyring/cryptoKeys/my-key". The object will - * be rewritten and set with the specified KMS key. + * Optional. Resource name of the Cloud KMS key that is used to encrypt the object. The Cloud KMS + * key must be located in same location as the object. For details, see + * https://cloud.google.com/storage/docs/encryption/using-customer-managed-keys#add-object-key + * Format: `projects/{project_id}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` For + * example: `projects/123456/locations/us-central1/keyRings/my-keyring/cryptoKeys/my-key`. The + * object will be rewritten and set with the specified KMS key. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kmsKey; /** - * Required. Resource name of the Cloud KMS key that will be used to encrypt the object. The Cloud - * KMS key must be located in same location as the object. Refer to - * https://cloud.google.com/storage/docs/encryption/using-customer-managed-keys#add-object-key for - * additional documentation. Format: - * projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key} For example: - * "projects/123456/locations/us-central1/keyRings/my-keyring/cryptoKeys/my-key". The object will - * be rewritten and set with the specified KMS key. + * Optional. Rewrites the object to the specified storage class. Setting this field will perform a + * full byte copy of the object if the storage class is different from the object's current + * storage class. If Autoclass is enabled on the bucket, storage class changes are ignored by + * Cloud Storage. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String storageClass; + + /** + * Optional. Resource name of the Cloud KMS key that is used to encrypt the object. The Cloud KMS + * key must be located in same location as the object. For details, see + * https://cloud.google.com/storage/docs/encryption/using-customer-managed-keys#add-object-key + * Format: `projects/{project_id}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` For + * example: `projects/123456/locations/us-central1/keyRings/my-keyring/cryptoKeys/my-key`. The + * object will be rewritten and set with the specified KMS key. * @return value or {@code null} for none */ public java.lang.String getKmsKey() { @@ -58,13 +66,12 @@ public java.lang.String getKmsKey() { } /** - * Required. Resource name of the Cloud KMS key that will be used to encrypt the object. The Cloud - * KMS key must be located in same location as the object. Refer to - * https://cloud.google.com/storage/docs/encryption/using-customer-managed-keys#add-object-key for - * additional documentation. Format: - * projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key} For example: - * "projects/123456/locations/us-central1/keyRings/my-keyring/cryptoKeys/my-key". The object will - * be rewritten and set with the specified KMS key. + * Optional. Resource name of the Cloud KMS key that is used to encrypt the object. The Cloud KMS + * key must be located in same location as the object. For details, see + * https://cloud.google.com/storage/docs/encryption/using-customer-managed-keys#add-object-key + * Format: `projects/{project_id}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` For + * example: `projects/123456/locations/us-central1/keyRings/my-keyring/cryptoKeys/my-key`. The + * object will be rewritten and set with the specified KMS key. * @param kmsKey kmsKey or {@code null} for none */ public RewriteObject setKmsKey(java.lang.String kmsKey) { @@ -72,6 +79,29 @@ public RewriteObject setKmsKey(java.lang.String kmsKey) { return this; } + /** + * Optional. Rewrites the object to the specified storage class. Setting this field will perform a + * full byte copy of the object if the storage class is different from the object's current + * storage class. If Autoclass is enabled on the bucket, storage class changes are ignored by + * Cloud Storage. + * @return value or {@code null} for none + */ + public java.lang.String getStorageClass() { + return storageClass; + } + + /** + * Optional. Rewrites the object to the specified storage class. Setting this field will perform a + * full byte copy of the object if the storage class is different from the object's current + * storage class. If Autoclass is enabled on the bucket, storage class changes are ignored by + * Cloud Storage. + * @param storageClass storageClass or {@code null} for none + */ + public RewriteObject setStorageClass(java.lang.String storageClass) { + this.storageClass = storageClass; + return this; + } + @Override public RewriteObject set(String fieldName, Object value) { return (RewriteObject) super.set(fieldName, value); diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/SetObjectAcls.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/SetObjectAcls.java new file mode 100644 index 00000000000..4c3f1b2077a --- /dev/null +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/SetObjectAcls.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * Describes options for setting object ACLs. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SetObjectAcls extends com.google.api.client.json.GenericJson { + + /** + * Required. Add, update, or remove grants from the object's existing ACLs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AccessControlsUpdates accessControlsUpdates; + + /** + * Required. Add, update, or remove grants from the object's existing ACLs. + * @return value or {@code null} for none + */ + public AccessControlsUpdates getAccessControlsUpdates() { + return accessControlsUpdates; + } + + /** + * Required. Add, update, or remove grants from the object's existing ACLs. + * @param accessControlsUpdates accessControlsUpdates or {@code null} for none + */ + public SetObjectAcls setAccessControlsUpdates(AccessControlsUpdates accessControlsUpdates) { + this.accessControlsUpdates = accessControlsUpdates; + return this; + } + + @Override + public SetObjectAcls set(String fieldName, Object value) { + return (SetObjectAcls) super.set(fieldName, value); + } + + @Override + public SetObjectAcls clone() { + return (SetObjectAcls) super.clone(); + } + +} diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/TargetLocations.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/TargetLocations.java new file mode 100644 index 00000000000..fd3061b7ef5 --- /dev/null +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/TargetLocations.java @@ -0,0 +1,118 @@ +/* + * 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; + +/** + * Describes the Cloud Storage locations to include in a ProjectSource job. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TargetLocations extends com.google.api.client.json.GenericJson { + + /** + * Required. REQUIRED. A list of Cloud Storage locations (e.g., `us-central1`) to include in the + * job. If `snapshot_time` is omitted, the job automatically defaults to the most recent snapshot + * timestamp that is successfully populated in BOTH the `object_attributes_view` and + * `bucket_attributes_view` across ALL specified locations. For details on Storage Insights + * dataset snapshots and views, see: https://docs.cloud.google.com/storage/docs/insights/dataset- + * tables-and-schemas#schema + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List locations; + + /** + * Optional. OPTIONAL. The exact Storage Insights snapshot timestamp to use for the job compatible + * with the RFC 3339 format (e.g., `2024-01-02T03:04:05Z`). If specified, this exact snapshot must + * exist in BOTH the `object_attributes_view` and `bucket_attributes_view` for every location + * listed in `locations`. If the snapshot is missing from either view in any of the locations, the + * job fails. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String snapshotTime; + + /** + * Required. REQUIRED. A list of Cloud Storage locations (e.g., `us-central1`) to include in the + * job. If `snapshot_time` is omitted, the job automatically defaults to the most recent snapshot + * timestamp that is successfully populated in BOTH the `object_attributes_view` and + * `bucket_attributes_view` across ALL specified locations. For details on Storage Insights + * dataset snapshots and views, see: https://docs.cloud.google.com/storage/docs/insights/dataset- + * tables-and-schemas#schema + * @return value or {@code null} for none + */ + public java.util.List getLocations() { + return locations; + } + + /** + * Required. REQUIRED. A list of Cloud Storage locations (e.g., `us-central1`) to include in the + * job. If `snapshot_time` is omitted, the job automatically defaults to the most recent snapshot + * timestamp that is successfully populated in BOTH the `object_attributes_view` and + * `bucket_attributes_view` across ALL specified locations. For details on Storage Insights + * dataset snapshots and views, see: https://docs.cloud.google.com/storage/docs/insights/dataset- + * tables-and-schemas#schema + * @param locations locations or {@code null} for none + */ + public TargetLocations setLocations(java.util.List locations) { + this.locations = locations; + return this; + } + + /** + * Optional. OPTIONAL. The exact Storage Insights snapshot timestamp to use for the job compatible + * with the RFC 3339 format (e.g., `2024-01-02T03:04:05Z`). If specified, this exact snapshot must + * exist in BOTH the `object_attributes_view` and `bucket_attributes_view` for every location + * listed in `locations`. If the snapshot is missing from either view in any of the locations, the + * job fails. + * @return value or {@code null} for none + */ + public String getSnapshotTime() { + return snapshotTime; + } + + /** + * Optional. OPTIONAL. The exact Storage Insights snapshot timestamp to use for the job compatible + * with the RFC 3339 format (e.g., `2024-01-02T03:04:05Z`). If specified, this exact snapshot must + * exist in BOTH the `object_attributes_view` and `bucket_attributes_view` for every location + * listed in `locations`. If the snapshot is missing from either view in any of the locations, the + * job fails. + * @param snapshotTime snapshotTime or {@code null} for none + */ + public TargetLocations setSnapshotTime(String snapshotTime) { + this.snapshotTime = snapshotTime; + return this; + } + + @Override + public TargetLocations set(String fieldName, Object value) { + return (TargetLocations) super.set(fieldName, value); + } + + @Override + public TargetLocations clone() { + return (TargetLocations) super.clone(); + } + +} diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/UpdateObjectCustomContext.java b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/UpdateObjectCustomContext.java index ea6a8e3d2a8..1e38d293ff0 100644 --- a/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/UpdateObjectCustomContext.java +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/com/google/api/services/storagebatchoperations/v1/model/UpdateObjectCustomContext.java @@ -31,7 +31,7 @@ public final class UpdateObjectCustomContext extends com.google.api.client.json.GenericJson { /** - * If set, must be set to true and all existing object custom contexts will be deleted. + * If set, must be set to true and all existing object custom contexts are deleted. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -46,7 +46,7 @@ public final class UpdateObjectCustomContext extends com.google.api.client.json. private CustomContextUpdates customContextUpdates; /** - * If set, must be set to true and all existing object custom contexts will be deleted. + * If set, must be set to true and all existing object custom contexts are deleted. * @return value or {@code null} for none */ public java.lang.Boolean getClearAll() { @@ -54,7 +54,7 @@ public java.lang.Boolean getClearAll() { } /** - * If set, must be set to true and all existing object custom contexts will be deleted. + * If set, must be set to true and all existing object custom contexts are deleted. * @param clearAll clearAll or {@code null} for none */ public UpdateObjectCustomContext setClearAll(java.lang.Boolean clearAll) { diff --git a/clients/google-api-services-storagebatchoperations/v1/2.0.0/pom.xml b/clients/google-api-services-storagebatchoperations/v1/2.0.0/pom.xml index 65eee3bce5d..75a4a93aa3d 100644 --- a/clients/google-api-services-storagebatchoperations/v1/2.0.0/pom.xml +++ b/clients/google-api-services-storagebatchoperations/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-storagebatchoperations - v1-rev20260429-2.0.0 - Storage Batch Operations API v1-rev20260429-2.0.0 + v1-rev20260601-2.0.0 + Storage Batch Operations API v1-rev20260601-2.0.0 jar 2011 diff --git a/clients/google-api-services-storagebatchoperations/v1/README.md b/clients/google-api-services-storagebatchoperations/v1/README.md index 764454daf4e..9f5d20b4b1b 100644 --- a/clients/google-api-services-storagebatchoperations/v1/README.md +++ b/clients/google-api-services-storagebatchoperations/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-storagebatchoperations - v1-rev20260429-2.0.0 + v1-rev20260601-2.0.0 @@ -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' } ```