Describes the project source where the objects satisfying the filters will be transformed.
| JSON representation |
|---|
{ "project": string, "insightsDatasetConfig": string, "bucketFilters": { object ( |
| Fields | |
|---|---|
project |
Required. Project name of the objects to be transformed, for example, |
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: |
bucketFilters |
Optional. Filters expressed in Common Expression Language (CEL) to apply to buckets to identify buckets with objects to be transformed. |
objectFilters |
Optional. Filters expressed in Common Expression Language (CEL) to apply to objects to identify objects to be transformed. |
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 {jobId} segment of the resource name: |
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 |
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. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Expr
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.
| JSON representation |
|---|
{ "expression": string, "title": string, "description": string, "location": string } |
| Fields | |
|---|---|
expression |
Textual representation of an expression in Common Expression Language syntax. |
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. |
description |
Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. |
location |
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. |
TargetLocations
Describes the Cloud Storage locations to include in a ProjectSource job.
| JSON representation |
|---|
{ "locations": [ string ], "snapshotTime": string } |
| Fields | |
|---|---|
locations[] |
Required. A list of Cloud Storage locations (for example, If For details about Storage Insights dataset snapshots and views, see Storage Insights dataset tables and schemas. |
snapshotTime |
Optional. The exact Storage Insights dataset snapshot timestamp to use for the job compatible with the RFC 3339 format (for example, If specified, this exact snapshot must exist in both the Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |