blob: 29c81153e8fafc99b3ec10c8891472f5c4de0729 [file] [edit]
{
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
}
}
}
},
"basePath": "",
"baseUrl": "https://storagebatchoperations.googleapis.com/",
"batchPath": "batch",
"canonicalName": "Storage Batch Operations",
"description": "",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/storage/docs/batch-operations/overview",
"fullyEncodeReservedExpansion": true,
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"id": "storagebatchoperations:v1",
"kind": "discovery#restDescription",
"mtlsRootUrl": "https://storagebatchoperations.mtls.googleapis.com/",
"name": "storagebatchoperations",
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
"$.xgafv": {
"description": "V1 error format.",
"enum": [
"1",
"2"
],
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"location": "query",
"type": "string"
},
"alt": {
"default": "json",
"description": "Data format for response.",
"enum": [
"json",
"media",
"proto"
],
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"type": "string"
},
"callback": {
"description": "JSONP",
"location": "query",
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"location": "query",
"type": "string"
},
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"location": "query",
"type": "string"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"location": "query",
"type": "string"
},
"prettyPrint": {
"default": "true",
"description": "Returns response with indentations and line breaks.",
"location": "query",
"type": "boolean"
},
"quotaUser": {
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"location": "query",
"type": "string"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
"type": "string"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query",
"type": "string"
}
},
"protocol": "rest",
"resources": {
"projects": {
"resources": {
"locations": {
"methods": {
"get": {
"description": "Gets information about a location.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}",
"httpMethod": "GET",
"id": "storagebatchoperations.projects.locations.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Resource name for the location.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "Location"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.",
"flatPath": "v1/projects/{projectsId}/locations",
"httpMethod": "GET",
"id": "storagebatchoperations.projects.locations.list",
"parameterOrder": [
"name"
],
"parameters": {
"extraLocationTypes": {
"description": "Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.",
"location": "query",
"repeated": true,
"type": "string"
},
"filter": {
"description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).",
"location": "query",
"type": "string"
},
"name": {
"description": "The resource that owns the locations collection, if applicable.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
},
"pageSize": {
"description": "The maximum number of results to return. If not set, the service selects a default.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.",
"location": "query",
"type": "string"
}
},
"path": "v1/{+name}/locations",
"response": {
"$ref": "ListLocationsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
},
"resources": {
"jobs": {
"methods": {
"cancel": {
"description": "Cancels a batch job.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}:cancel",
"httpMethod": "POST",
"id": "storagebatchoperations.projects.locations.jobs.cancel",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The `name` of the job to cancel. Format: `projects/{project_id}/locations/global/jobs/{job_id}`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:cancel",
"request": {
"$ref": "CancelJobRequest"
},
"response": {
"$ref": "CancelJobResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"create": {
"description": "Creates a batch job.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/jobs",
"httpMethod": "POST",
"id": "storagebatchoperations.projects.locations.jobs.create",
"parameterOrder": [
"parent"
],
"parameters": {
"jobId": {
"description": "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.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. The value for parent.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
"type": "string"
},
"requestId": {
"description": "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` 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).",
"location": "query",
"type": "string"
}
},
"path": "v1/{+parent}/jobs",
"request": {
"$ref": "Job"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Deletes a batch job.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}",
"httpMethod": "DELETE",
"id": "storagebatchoperations.projects.locations.jobs.delete",
"parameterOrder": [
"name"
],
"parameters": {
"force": {
"description": "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).",
"location": "query",
"type": "boolean"
},
"name": {
"description": "Required. The `name` of the job to delete. Format: `projects/{project_id}/locations/global/jobs/{job_id}`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$",
"required": true,
"type": "string"
},
"requestId": {
"description": "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` 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).",
"location": "query",
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Gets a batch job.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}",
"httpMethod": "GET",
"id": "storagebatchoperations.projects.locations.jobs.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The `name` of the job to retrieve. Format: `projects/{project_id}/locations/global/jobs/{job_id}`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "Job"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists Jobs in a given project.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/jobs",
"httpMethod": "GET",
"id": "storagebatchoperations.projects.locations.jobs.list",
"parameterOrder": [
"parent"
],
"parameters": {
"filter": {
"description": "Optional. Filters results as defined by https://google.aip.dev/160.",
"location": "query",
"type": "string"
},
"orderBy": {
"description": "Optional. Field to sort by. Supported fields are `name` and `create_time`.",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional. The list page size. The default page size is 100.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional. The list page token.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. Format: projects/{project_id}/locations/global.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+parent}/jobs",
"response": {
"$ref": "ListJobsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
},
"resources": {
"bucketOperations": {
"methods": {
"get": {
"description": "Gets a BucketOperation.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}/bucketOperations/{bucketOperationsId}",
"httpMethod": "GET",
"id": "storagebatchoperations.projects.locations.jobs.bucketOperations.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The `name` of the bucket operation to retrieve. Format: `projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/jobs/[^/]+/bucketOperations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "BucketOperation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists BucketOperations in a given project and job.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}/bucketOperations",
"httpMethod": "GET",
"id": "storagebatchoperations.projects.locations.jobs.bucketOperations.list",
"parameterOrder": [
"parent"
],
"parameters": {
"filter": {
"description": "Optional. Filters results as defined by https://google.aip.dev/160.",
"location": "query",
"type": "string"
},
"orderBy": {
"description": "Optional. Field to sort by. Supported fields are `name` and `create_time`.",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional. The list page size. Default page size is 100.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional. The list page token.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. Format: `projects/{project_id}/locations/global/jobs/{job_id}`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+parent}/bucketOperations",
"response": {
"$ref": "ListBucketOperationsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
}
},
"operations": {
"methods": {
"cancel": {
"description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
"httpMethod": "POST",
"id": "storagebatchoperations.projects.locations.operations.cancel",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the operation resource to be cancelled.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:cancel",
"request": {
"$ref": "CancelOperationRequest"
},
"response": {
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
"httpMethod": "DELETE",
"id": "storagebatchoperations.projects.locations.operations.delete",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the operation resource to be deleted.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
"httpMethod": "GET",
"id": "storagebatchoperations.projects.locations.operations.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the operation resource.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations",
"httpMethod": "GET",
"id": "storagebatchoperations.projects.locations.operations.list",
"parameterOrder": [
"name"
],
"parameters": {
"filter": {
"description": "The standard list filter.",
"location": "query",
"type": "string"
},
"name": {
"description": "The name of the operation's parent resource.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
"type": "string"
},
"pageSize": {
"description": "The standard list page size.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "The standard list page token.",
"location": "query",
"type": "string"
},
"returnPartialSuccess": {
"description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",
"location": "query",
"type": "boolean"
}
},
"path": "v1/{+name}/operations",
"response": {
"$ref": "ListOperationsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
}
}
}
}
},
"revision": "20260601",
"rootUrl": "https://storagebatchoperations.googleapis.com/",
"schemas": {
"AccessControlsUpdates": {
"description": "Represents updates to existing access-control entries on an object.",
"id": "AccessControlsUpdates",
"properties": {
"grants": {
"description": "Optional. Grants to add or update. If a grant for same entity exists, its role is updated.",
"items": {
"$ref": "ObjectAccessControl"
},
"type": "array"
},
"removeEntities": {
"description": "Optional. Entities for which all grants should be removed. An entity can't be in both `grants` and `remove_entities`.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"Bucket": {
"description": "Describes configuration of a single bucket and its objects to be transformed.",
"id": "Bucket",
"properties": {
"bucket": {
"description": "Required. Bucket name for the objects to be transformed.",
"type": "string"
},
"manifest": {
"$ref": "Manifest",
"description": "Specifies objects in a manifest file."
},
"prefixList": {
"$ref": "PrefixList",
"description": "Specifies objects matching a prefix set."
}
},
"type": "object"
},
"BucketList": {
"description": "Describes list of buckets and their objects to be transformed.",
"id": "BucketList",
"properties": {
"buckets": {
"description": "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.",
"items": {
"$ref": "Bucket"
},
"type": "array"
}
},
"type": "object"
},
"BucketOperation": {
"description": "BucketOperation represents a bucket-level breakdown of a Job.",
"id": "BucketOperation",
"properties": {
"bucketName": {
"description": "The bucket name of the objects to be transformed in the BucketOperation.",
"type": "string"
},
"completeTime": {
"description": "Output only. The time that the BucketOperation was completed.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"counters": {
"$ref": "Counters",
"description": "Output only. Information about the progress of the bucket operation.",
"readOnly": true
},
"createTime": {
"description": "Output only. The time that the BucketOperation was created.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"deleteObject": {
"$ref": "DeleteObject",
"description": "Delete objects."
},
"errorSummaries": {
"description": "Output only. Summarizes errors encountered with sample error log entries.",
"items": {
"$ref": "ErrorSummary"
},
"readOnly": true,
"type": "array"
},
"manifest": {
"$ref": "Manifest",
"description": "Specifies objects in a manifest file."
},
"name": {
"description": "Identifier. The resource name of the BucketOperation. This is defined by the service. Format: `projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}`.",
"type": "string"
},
"prefixList": {
"$ref": "PrefixList",
"description": "Specifies objects matching a prefix set."
},
"projectSource": {
"$ref": "ProjectSource",
"description": "Specifies objects matching the object filters in a project source."
},
"putMetadata": {
"$ref": "PutMetadata",
"description": "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."
},
"putObjectHold": {
"$ref": "PutObjectHold",
"description": "Changes object hold status."
},
"rewriteObject": {
"$ref": "RewriteObject",
"description": "Rewrite the object and updates metadata like KMS key."
},
"setObjectAcls": {
"$ref": "SetObjectAcls",
"description": "Updates object ACLs."
},
"startTime": {
"description": "Output only. The time that the BucketOperation was started.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"state": {
"description": "Output only. State of the BucketOperation.",
"enum": [
"STATE_UNSPECIFIED",
"QUEUED",
"RUNNING",
"SUCCEEDED",
"CANCELED",
"FAILED"
],
"enumDescriptions": [
"Default value. This value is unused.",
"Created but not yet started.",
"In progress.",
"Completed successfully.",
"Cancelled by the user.",
"Terminated due to an unrecoverable failure."
],
"readOnly": true,
"type": "string"
},
"updateObjectCustomContext": {
"$ref": "UpdateObjectCustomContext",
"description": "Update object custom context."
}
},
"type": "object"
},
"CancelJobRequest": {
"description": "Message for Job to Cancel",
"id": "CancelJobRequest",
"properties": {
"requestId": {
"description": "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` 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).",
"type": "string"
}
},
"type": "object"
},
"CancelJobResponse": {
"description": "Message for response to cancel Job.",
"id": "CancelJobResponse",
"properties": {},
"type": "object"
},
"CancelOperationRequest": {
"description": "The request message for Operations.CancelOperation.",
"id": "CancelOperationRequest",
"properties": {},
"type": "object"
},
"Counters": {
"description": "Describes details about the progress of the job.",
"id": "Counters",
"properties": {
"failedObjectCount": {
"description": "Output only. The number of objects that failed due to user errors or service errors.",
"format": "int64",
"readOnly": true,
"type": "string"
},
"objectCustomContextsCreated": {
"description": "Output only. Number of object custom contexts created. This field is only populated for jobs with the UpdateObjectCustomContext transformation.",
"format": "int64",
"readOnly": true,
"type": "string"
},
"objectCustomContextsDeleted": {
"description": "Output only. Number of object custom contexts deleted. This field is only populated for jobs with the UpdateObjectCustomContext transformation.",
"format": "int64",
"readOnly": true,
"type": "string"
},
"objectCustomContextsUpdated": {
"description": "Output only. Number of object custom contexts updated. This counter tracks custom contexts where the key already existed, but the payload was modified. This field is only populated for jobs with the UpdateObjectCustomContext transformation.",
"format": "int64",
"readOnly": true,
"type": "string"
},
"succeededObjectCount": {
"description": "Output only. Number of objects completed.",
"format": "int64",
"readOnly": true,
"type": "string"
},
"totalBytesFound": {
"description": "Output only. Number of bytes found from source. This field is only populated for jobs with a prefix list object configuration.",
"format": "int64",
"readOnly": true,
"type": "string"
},
"totalBytesTransformed": {
"description": "Output only. The total number of bytes affected by the transformation. For example, this counts bytes deleted for `DeleteObject` operations and bytes rewritten for `RewriteObject` operations.",
"format": "int64",
"readOnly": true,
"type": "string"
},
"totalObjectCount": {
"description": "Output only. Number of objects listed.",
"format": "int64",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"CustomContextUpdates": {
"description": "Describes a collection of updates to apply to custom contexts identified by key.",
"id": "CustomContextUpdates",
"properties": {
"keysToClear": {
"description": "Optional. Custom contexts to clear by key. A key can't be present in both `updates` and `keys_to_clear`.",
"items": {
"type": "string"
},
"type": "array"
},
"updates": {
"additionalProperties": {
"$ref": "ObjectCustomContextPayload"
},
"description": "Optional. Insert or update the existing custom contexts.",
"type": "object"
}
},
"type": "object"
},
"DeleteObject": {
"description": "Describes options to delete an object.",
"id": "DeleteObject",
"properties": {
"permanentObjectDeletionEnabled": {
"description": "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 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 is made to determine the live object generation.",
"type": "boolean"
}
},
"type": "object"
},
"Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
"id": "Empty",
"properties": {},
"type": "object"
},
"ErrorLogEntry": {
"description": "An entry describing an error that has occurred.",
"id": "ErrorLogEntry",
"properties": {
"errorDetails": {
"description": "Optional. Output only. At most 5 error log entries are recorded for a given error code for a job.",
"items": {
"type": "string"
},
"readOnly": true,
"type": "array"
},
"objectUri": {
"description": "Required. Output only. Object URL. e.g. gs://my_bucket/object.txt",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"ErrorSummary": {
"description": "A summary of errors by error code, plus a count and sample error log entries.",
"id": "ErrorSummary",
"properties": {
"errorCode": {
"description": "Required. The canonical error code.",
"enum": [
"OK",
"CANCELLED",
"UNKNOWN",
"INVALID_ARGUMENT",
"DEADLINE_EXCEEDED",
"NOT_FOUND",
"ALREADY_EXISTS",
"PERMISSION_DENIED",
"UNAUTHENTICATED",
"RESOURCE_EXHAUSTED",
"FAILED_PRECONDITION",
"ABORTED",
"OUT_OF_RANGE",
"UNIMPLEMENTED",
"INTERNAL",
"UNAVAILABLE",
"DATA_LOSS"
],
"enumDescriptions": [
"Not an error; returned on success. HTTP Mapping: 200 OK",
"The operation was cancelled, typically by the caller. HTTP Mapping: 499 Client Closed Request",
"Unknown error. For example, this error may be returned when a `Status` value received from another address space belongs to an error space that is not known in this address space. Also errors raised by APIs that do not return enough error information may be converted to this error. HTTP Mapping: 500 Internal Server Error",
"The client specified an invalid argument. Note that this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments that are problematic regardless of the state of the system (e.g., a malformed file name). HTTP Mapping: 400 Bad Request",
"The deadline expired before the operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire. HTTP Mapping: 504 Gateway Timeout",
"Some requested entity (e.g., file or directory) was not found. Note to server developers: if a request is denied for an entire class of users, such as gradual feature rollout or undocumented allowlist, `NOT_FOUND` may be used. If a request is denied for some users within a class of users, such as user-based access control, `PERMISSION_DENIED` must be used. HTTP Mapping: 404 Not Found",
"The entity that a client attempted to create (e.g., file or directory) already exists. HTTP Mapping: 409 Conflict",
"The caller does not have permission to execute the specified operation. `PERMISSION_DENIED` must not be used for rejections caused by exhausting some resource (use `RESOURCE_EXHAUSTED` instead for those errors). `PERMISSION_DENIED` must not be used if the caller can not be identified (use `UNAUTHENTICATED` instead for those errors). This error code does not imply the request is valid or the requested entity exists or satisfies other pre-conditions. HTTP Mapping: 403 Forbidden",
"The request does not have valid authentication credentials for the operation. HTTP Mapping: 401 Unauthorized",
"Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space. HTTP Mapping: 429 Too Many Requests",
"The operation was rejected because the system is not in a state required for the operation's execution. For example, the directory to be deleted is non-empty, an rmdir operation is applied to a non-directory, etc. Service implementors can use the following guidelines to decide between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE` if the client can retry just the failing call. (b) Use `ABORTED` if the client should retry at a higher level. For example, when a client-specified test-and-set fails, indicating the client should restart a read-modify-write sequence. (c) Use `FAILED_PRECONDITION` if the client should not retry until the system state has been explicitly fixed. For example, if an \"rmdir\" fails because the directory is non-empty, `FAILED_PRECONDITION` should be returned since the client should not retry unless the files are deleted from the directory. HTTP Mapping: 400 Bad Request",
"The operation was aborted, typically due to a concurrency issue such as a sequencer check failure or transaction abort. See the guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: 409 Conflict",
"The operation was attempted past the valid range. E.g., seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`, this error indicates a problem that may be fixed if the system state changes. For example, a 32-bit file system will generate `INVALID_ARGUMENT` if asked to read at an offset that is not in the range [0,2^32-1], but it will generate `OUT_OF_RANGE` if asked to read from an offset past the current file size. There is a fair bit of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific error) when it applies so that callers who are iterating through a space can easily look for an `OUT_OF_RANGE` error to detect when they are done. HTTP Mapping: 400 Bad Request",
"The operation is not implemented or is not supported/enabled in this service. HTTP Mapping: 501 Not Implemented",
"Internal errors. This means that some invariants expected by the underlying system have been broken. This error code is reserved for serious errors. HTTP Mapping: 500 Internal Server Error",
"The service is currently unavailable. This is most likely a transient condition, which can be corrected by retrying with a backoff. Note that it is not always safe to retry non-idempotent operations. See the guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: 503 Service Unavailable",
"Unrecoverable data loss or corruption. HTTP Mapping: 500 Internal Server Error"
],
"type": "string"
},
"errorCount": {
"description": "Required. Number of errors encountered per `error_code`.",
"format": "int64",
"type": "string"
},
"errorLogEntries": {
"description": "Required. Sample error logs.",
"items": {
"$ref": "ErrorLogEntry"
},
"type": "array"
}
},
"type": "object"
},
"Expr": {
"description": "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() \u003c 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' \u0026\u0026 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.",
"id": "Expr",
"properties": {
"description": {
"description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.",
"type": "string"
},
"expression": {
"description": "Textual representation of an expression in Common Expression Language syntax.",
"type": "string"
},
"location": {
"description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.",
"type": "string"
},
"title": {
"description": "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.",
"type": "string"
}
},
"type": "object"
},
"Job": {
"description": "The storage batch operations job description.",
"id": "Job",
"properties": {
"bucketList": {
"$ref": "BucketList",
"description": "Specifies a list of buckets and their objects to be transformed."
},
"completeTime": {
"description": "Output only. The time that the job was completed.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"counters": {
"$ref": "Counters",
"description": "Output only. Information about the progress of the job.",
"readOnly": true
},
"createTime": {
"description": "Output only. The time that the job was created.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"deleteObject": {
"$ref": "DeleteObject",
"description": "Delete objects."
},
"description": {
"description": "Optional. A user-provided description for the job. Maximum length: 1024 bytes when unicode-encoded.",
"type": "string"
},
"dryRun": {
"description": "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.",
"type": "boolean"
},
"errorSummaries": {
"description": "Output only. Summarizes errors encountered with sample error log entries.",
"items": {
"$ref": "ErrorSummary"
},
"readOnly": true,
"type": "array"
},
"isMultiBucketJob": {
"description": "Output only. If true, this job operates on multiple buckets. Multi-bucket jobs are subject to different quota limits than single-bucket jobs.",
"readOnly": true,
"type": "boolean"
},
"loggingConfig": {
"$ref": "LoggingConfig",
"description": "Optional. Logging configuration."
},
"name": {
"description": "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.",
"type": "string"
},
"projectSource": {
"$ref": "ProjectSource",
"description": "Specifies a project source and filters to identify objects to be transformed."
},
"putMetadata": {
"$ref": "PutMetadata",
"description": "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`."
},
"putObjectHold": {
"$ref": "PutObjectHold",
"description": "Changes object hold status."
},
"rewriteObject": {
"$ref": "RewriteObject",
"description": "Rewrite the object and updates metadata like KMS key."
},
"scheduleTime": {
"description": "Output only. The time that the job was scheduled.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"setObjectAcls": {
"$ref": "SetObjectAcls",
"description": "Updates object ACLs."
},
"state": {
"description": "Output only. State of the job.",
"enum": [
"STATE_UNSPECIFIED",
"RUNNING",
"SUCCEEDED",
"CANCELED",
"FAILED",
"QUEUED"
],
"enumDescriptions": [
"Default value. This value is unused.",
"In progress.",
"Completed successfully.",
"Cancelled by the user.",
"Terminated due to an unrecoverable failure.",
"Queued but not yet started."
],
"readOnly": true,
"type": "string"
},
"updateObjectCustomContext": {
"$ref": "UpdateObjectCustomContext",
"description": "Update object custom context."
}
},
"type": "object"
},
"ListBucketOperationsResponse": {
"description": "Message for response to listing BucketOperations",
"id": "ListBucketOperationsResponse",
"properties": {
"bucketOperations": {
"description": "A list of storage batch bucket operations.",
"items": {
"$ref": "BucketOperation"
},
"type": "array"
},
"nextPageToken": {
"description": "A token identifying a page of results.",
"type": "string"
},
"unreachable": {
"description": "Locations that could not be reached.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"ListJobsResponse": {
"description": "Message for response to listing Jobs",
"id": "ListJobsResponse",
"properties": {
"jobs": {
"description": "A list of storage batch jobs.",
"items": {
"$ref": "Job"
},
"type": "array"
},
"nextPageToken": {
"description": "A token identifying a page of results.",
"type": "string"
},
"unreachable": {
"description": "Locations that could not be reached.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"ListLocationsResponse": {
"description": "The response message for Locations.ListLocations.",
"id": "ListLocationsResponse",
"properties": {
"locations": {
"description": "A list of locations that matches the specified filter in the request.",
"items": {
"$ref": "Location"
},
"type": "array"
},
"nextPageToken": {
"description": "The standard List next-page token.",
"type": "string"
}
},
"type": "object"
},
"ListOperationsResponse": {
"description": "The response message for Operations.ListOperations.",
"id": "ListOperationsResponse",
"properties": {
"nextPageToken": {
"description": "The standard List next-page token.",
"type": "string"
},
"operations": {
"description": "A list of operations that matches the specified filter in the request.",
"items": {
"$ref": "Operation"
},
"type": "array"
},
"unreachable": {
"description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"Location": {
"description": "A resource that represents a Google Cloud location.",
"id": "Location",
"properties": {
"displayName": {
"description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".",
"type": "string"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}",
"type": "object"
},
"locationId": {
"description": "The canonical id for this location. For example: `\"us-east1\"`.",
"type": "string"
},
"metadata": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"description": "Service-specific metadata. For example the available capacity at the given location.",
"type": "object"
},
"name": {
"description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`",
"type": "string"
}
},
"type": "object"
},
"LoggingConfig": {
"description": "Specifies the Cloud Logging behavior.",
"id": "LoggingConfig",
"properties": {
"logActionStates": {
"description": "Required. States in which Action are logged.If empty, no logs are generated.",
"items": {
"enum": [
"LOGGABLE_ACTION_STATE_UNSPECIFIED",
"SUCCEEDED",
"FAILED"
],
"enumDescriptions": [
"Illegal value, to avoid allowing a default.",
"`LoggableAction` completed successfully. `SUCCEEDED` actions are logged as INFO.",
"`LoggableAction` terminated in an error state. `FAILED` actions are logged as ERROR."
],
"type": "string"
},
"type": "array"
},
"logActions": {
"description": "Required. Specifies the actions to be logged.",
"items": {
"enum": [
"LOGGABLE_ACTION_UNSPECIFIED",
"TRANSFORM"
],
"enumDescriptions": [
"Illegal value, to avoid allowing a default.",
"The corresponding transform action in this job."
],
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"Manifest": {
"description": "Describes list of objects to be transformed.",
"id": "Manifest",
"properties": {
"manifestLocation": {
"description": "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.",
"type": "string"
}
},
"type": "object"
},
"ObjectAccessControl": {
"description": "Represents an access control entry on an object.",
"id": "ObjectAccessControl",
"properties": {
"entity": {
"description": "Required. The entity holding the permission, in one of the following forms: * `allUsers` * `allAuthenticatedUsers`",
"type": "string"
},
"role": {
"description": "Required. The role to grant. Acceptable values are: * `READER` - gives read access to the object. * `OWNER` - gives owner access to the object.",
"type": "string"
}
},
"type": "object"
},
"ObjectCustomContextPayload": {
"description": "Describes the payload of a user-defined object custom context.",
"id": "ObjectCustomContextPayload",
"properties": {
"value": {
"description": "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.",
"type": "string"
}
},
"type": "object"
},
"ObjectRetention": {
"description": "Describes options for object retention update.",
"id": "ObjectRetention",
"properties": {
"retainUntilTime": {
"description": "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.",
"type": "string"
},
"retentionMode": {
"description": "Required. The retention mode.",
"enum": [
"RETENTION_MODE_UNSPECIFIED",
"LOCKED",
"UNLOCKED"
],
"enumDescriptions": [
"The retention mode isn't specified.",
"When the retention mode is `LOCKED`, the `retainUntilTime` can't be removed or reduced.",
"When the retention mode is `UNLOCKED`, the `retainUntilTime` can be removed or modified."
],
"type": "string"
}
},
"type": "object"
},
"Operation": {
"description": "This resource represents a long-running operation that is the result of a network API call.",
"id": "Operation",
"properties": {
"done": {
"description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.",
"type": "boolean"
},
"error": {
"$ref": "Status",
"description": "The error result of the operation in case of failure or cancellation."
},
"metadata": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.",
"type": "object"
},
"name": {
"description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.",
"type": "string"
},
"response": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.",
"type": "object"
}
},
"type": "object"
},
"OperationMetadata": {
"description": "Represents the metadata of the long-running operation.",
"id": "OperationMetadata",
"properties": {
"apiVersion": {
"description": "Output only. API version used to start the operation.",
"readOnly": true,
"type": "string"
},
"createTime": {
"description": "Output only. The time the operation was created.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"endTime": {
"description": "Output only. The time the operation finished running.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"job": {
"$ref": "Job",
"description": "Output only. The Job associated with the operation.",
"readOnly": true
},
"operation": {
"description": "Output only. The unique operation resource name. Format: projects/{project_id}/locations/global/operations/{operation}.",
"readOnly": true,
"type": "string"
},
"requestedCancellation": {
"description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
"readOnly": true,
"type": "boolean"
}
},
"type": "object"
},
"PrefixList": {
"description": "Describes prefixes of objects to be transformed.",
"id": "PrefixList",
"properties": {
"includedObjectPrefixes": {
"description": "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, `''`",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"ProjectSource": {
"description": "Describes the project source where the objects satisfying the filters will be transformed.",
"id": "ProjectSource",
"properties": {
"bucketFilters": {
"$ref": "Expr",
"description": "Optional. Filters expressed in Common Expression Language (CEL) to apply to buckets to identify buckets with objects to be transformed."
},
"dryRunJobId": {
"description": "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}`.",
"type": "string"
},
"insightsDatasetConfig": {
"description": "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}`.",
"type": "string"
},
"objectFilters": {
"$ref": "Expr",
"description": "Optional. Filters expressed in Common Expression Language (CEL) to apply to objects to identify objects to be transformed."
},
"project": {
"description": "Required. Project name of the objects to be transformed. e.g. projects/my-project or projects/123456.",
"type": "string"
},
"snapshotTime": {
"description": "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.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"targetLocations": {
"$ref": "TargetLocations",
"description": "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`."
}
},
"type": "object"
},
"PutMetadata": {
"description": "Describes options for object metadata update.",
"id": "PutMetadata",
"properties": {
"cacheControl": {
"description": "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).",
"type": "string"
},
"contentDisposition": {
"description": "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).",
"type": "string"
},
"contentEncoding": {
"description": "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).",
"type": "string"
},
"contentLanguage": {
"description": "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).",
"type": "string"
},
"contentType": {
"description": "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).",
"type": "string"
},
"customMetadata": {
"additionalProperties": {
"type": "string"
},
"description": "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).",
"type": "object"
},
"customTime": {
"description": "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).",
"type": "string"
},
"objectRetention": {
"$ref": "ObjectRetention",
"description": "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)."
}
},
"type": "object"
},
"PutObjectHold": {
"description": "Describes options to update object hold.",
"id": "PutObjectHold",
"properties": {
"eventBasedHold": {
"description": "Required. Updates object event based holds state. When object event based hold is set, object can't be deleted or replaced. Resets object's time in the bucket for the purposes of the retention period.",
"enum": [
"HOLD_STATUS_UNSPECIFIED",
"SET",
"UNSET"
],
"enumDescriptions": [
"Default value, Object hold status isn't changed.",
"Places the hold.",
"Releases the hold."
],
"type": "string"
},
"temporaryHold": {
"description": "Required. Updates object temporary holds state. When object temporary hold is set, object can't be deleted or replaced.",
"enum": [
"HOLD_STATUS_UNSPECIFIED",
"SET",
"UNSET"
],
"enumDescriptions": [
"Default value, Object hold status isn't changed.",
"Places the hold.",
"Releases the hold."
],
"type": "string"
}
},
"type": "object"
},
"RewriteObject": {
"description": "Describes options for object rewrite.",
"id": "RewriteObject",
"properties": {
"kmsKey": {
"description": "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.",
"type": "string"
},
"storageClass": {
"description": "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.",
"enum": [
"STORAGE_CLASS_UNSPECIFIED",
"STANDARD",
"NEARLINE",
"COLDLINE",
"ARCHIVE"
],
"enumDescriptions": [
"The storage class is not specified.",
"Standard storage class.",
"Nearline storage class.",
"Coldline storage class.",
"Archive storage class."
],
"type": "string"
}
},
"type": "object"
},
"SetObjectAcls": {
"description": "Describes options for setting object ACLs.",
"id": "SetObjectAcls",
"properties": {
"accessControlsUpdates": {
"$ref": "AccessControlsUpdates",
"description": "Required. Add, update, or remove grants from the object's existing ACLs."
}
},
"type": "object"
},
"Status": {
"description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).",
"id": "Status",
"properties": {
"code": {
"description": "The status code, which should be an enum value of google.rpc.Code.",
"format": "int32",
"type": "integer"
},
"details": {
"description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
"items": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"type": "object"
},
"type": "array"
},
"message": {
"description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
"type": "string"
}
},
"type": "object"
},
"TargetLocations": {
"description": "Describes the Cloud Storage locations to include in a ProjectSource job.",
"id": "TargetLocations",
"properties": {
"locations": {
"description": "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",
"items": {
"type": "string"
},
"type": "array"
},
"snapshotTime": {
"description": "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.",
"format": "google-datetime",
"type": "string"
}
},
"type": "object"
},
"UpdateObjectCustomContext": {
"description": "Describes options to update object custom contexts.",
"id": "UpdateObjectCustomContext",
"properties": {
"clearAll": {
"description": "If set, must be set to true and all existing object custom contexts are deleted.",
"type": "boolean"
},
"customContextUpdates": {
"$ref": "CustomContextUpdates",
"description": "A collection of updates to apply to specific custom contexts. Use this to add, update or delete individual contexts by key."
}
},
"type": "object"
}
},
"servicePath": "",
"title": "Storage Batch Operations API",
"version": "v1",
"version_module": true
}