google-apis-storagebatchoperations_v1 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -2
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/storagebatchoperations_v1/classes.rb +398 -84
- data/lib/google/apis/storagebatchoperations_v1/gem_version.rb +3 -3
- data/lib/google/apis/storagebatchoperations_v1/representations.rb +105 -0
- data/lib/google/apis/storagebatchoperations_v1/service.rb +24 -24
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 143624e6a5b4b5744b5c9ce4db4fd9fa9c9a10d9cd694f61ab0035ae69e20e1b
|
|
4
|
+
data.tar.gz: 2d104b32c20a4cc5b99636440539c6ed72608b71b7b3af8e6ae3ff9fc0db53fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 19c0b0866d80b89b20fb1ddc9ce98c1b957e053d1d68fa534bb5c1baf9e9f84d1895449d72958265564e4d57b3ae57c4eddc59275a5f7eed60099dfc91d9f9f2
|
|
7
|
+
data.tar.gz: eb20e6485912fff78a4cef5360cc711263d4e11f6aa3184937e955d5a7b0156021a48d0571d74c6b81a18a0832d7a816b9cd1e6e13ad772e53f96489817c78a5
|
data/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-storagebatchoperations_v1
|
|
2
2
|
|
|
3
|
-
### v0.
|
|
3
|
+
### v0.17.0 (2026-06-14)
|
|
4
4
|
|
|
5
|
-
* Regenerated from discovery document revision
|
|
5
|
+
* Regenerated from discovery document revision 20260601
|
|
6
|
+
* Regenerated using generator version 0.19.0
|
|
7
|
+
|
|
8
|
+
### v0.16.0 (2026-05-10)
|
|
9
|
+
|
|
10
|
+
* Regenerated from discovery document revision 20260429
|
|
6
11
|
|
|
7
12
|
### v0.15.0 (2026-04-19)
|
|
8
13
|
|
data/OVERVIEW.md
CHANGED
|
@@ -83,7 +83,7 @@ The [product documentation](https://cloud.google.com/storage/docs/batch-operatio
|
|
|
83
83
|
|
|
84
84
|
## Supported Ruby versions
|
|
85
85
|
|
|
86
|
-
This library is supported on Ruby 3.
|
|
86
|
+
This library is supported on Ruby 3.2+.
|
|
87
87
|
|
|
88
88
|
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
|
89
89
|
|
|
@@ -22,6 +22,33 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module StoragebatchoperationsV1
|
|
24
24
|
|
|
25
|
+
# Represents updates to existing access-control entries on an object.
|
|
26
|
+
class AccessControlsUpdates
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
# Optional. Grants to add or update. If a grant for same entity exists, its role
|
|
30
|
+
# is updated.
|
|
31
|
+
# Corresponds to the JSON property `grants`
|
|
32
|
+
# @return [Array<Google::Apis::StoragebatchoperationsV1::ObjectAccessControl>]
|
|
33
|
+
attr_accessor :grants
|
|
34
|
+
|
|
35
|
+
# Optional. Entities for which all grants should be removed. An entity can't be
|
|
36
|
+
# in both `grants` and `remove_entities`.
|
|
37
|
+
# Corresponds to the JSON property `removeEntities`
|
|
38
|
+
# @return [Array<String>]
|
|
39
|
+
attr_accessor :remove_entities
|
|
40
|
+
|
|
41
|
+
def initialize(**args)
|
|
42
|
+
update!(**args)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Update properties of this object
|
|
46
|
+
def update!(**args)
|
|
47
|
+
@grants = args[:grants] if args.key?(:grants)
|
|
48
|
+
@remove_entities = args[:remove_entities] if args.key?(:remove_entities)
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
25
52
|
# Describes configuration of a single bucket and its objects to be transformed.
|
|
26
53
|
class Bucket
|
|
27
54
|
include Google::Apis::Core::Hashable
|
|
@@ -57,9 +84,8 @@ module Google
|
|
|
57
84
|
class BucketList
|
|
58
85
|
include Google::Apis::Core::Hashable
|
|
59
86
|
|
|
60
|
-
# Required. List of buckets and their objects to be transformed.
|
|
61
|
-
# one bucket
|
|
62
|
-
# error will be returned.
|
|
87
|
+
# Required. List of buckets and their objects to be transformed. You can specify
|
|
88
|
+
# only one bucket per job. If multiple buckets are specified, an error occurs.
|
|
63
89
|
# Corresponds to the JSON property `buckets`
|
|
64
90
|
# @return [Array<Google::Apis::StoragebatchoperationsV1::Bucket>]
|
|
65
91
|
attr_accessor :buckets
|
|
@@ -114,8 +140,8 @@ module Google
|
|
|
114
140
|
attr_accessor :manifest
|
|
115
141
|
|
|
116
142
|
# Identifier. The resource name of the BucketOperation. This is defined by the
|
|
117
|
-
# service. Format: projects/`
|
|
118
|
-
# bucketOperations/`bucket_operation
|
|
143
|
+
# service. Format: `projects/`project_id`/locations/global/jobs/`job_id`/
|
|
144
|
+
# bucketOperations/`bucket_operation``.
|
|
119
145
|
# Corresponds to the JSON property `name`
|
|
120
146
|
# @return [String]
|
|
121
147
|
attr_accessor :name
|
|
@@ -125,6 +151,12 @@ module Google
|
|
|
125
151
|
# @return [Google::Apis::StoragebatchoperationsV1::PrefixList]
|
|
126
152
|
attr_accessor :prefix_list
|
|
127
153
|
|
|
154
|
+
# Describes the project source where the objects satisfying the filters will be
|
|
155
|
+
# transformed.
|
|
156
|
+
# Corresponds to the JSON property `projectSource`
|
|
157
|
+
# @return [Google::Apis::StoragebatchoperationsV1::ProjectSource]
|
|
158
|
+
attr_accessor :project_source
|
|
159
|
+
|
|
128
160
|
# Describes options for object metadata update.
|
|
129
161
|
# Corresponds to the JSON property `putMetadata`
|
|
130
162
|
# @return [Google::Apis::StoragebatchoperationsV1::PutMetadata]
|
|
@@ -140,6 +172,11 @@ module Google
|
|
|
140
172
|
# @return [Google::Apis::StoragebatchoperationsV1::RewriteObject]
|
|
141
173
|
attr_accessor :rewrite_object
|
|
142
174
|
|
|
175
|
+
# Describes options for setting object ACLs.
|
|
176
|
+
# Corresponds to the JSON property `setObjectAcls`
|
|
177
|
+
# @return [Google::Apis::StoragebatchoperationsV1::SetObjectAcls]
|
|
178
|
+
attr_accessor :set_object_acls
|
|
179
|
+
|
|
143
180
|
# Output only. The time that the BucketOperation was started.
|
|
144
181
|
# Corresponds to the JSON property `startTime`
|
|
145
182
|
# @return [String]
|
|
@@ -170,9 +207,11 @@ module Google
|
|
|
170
207
|
@manifest = args[:manifest] if args.key?(:manifest)
|
|
171
208
|
@name = args[:name] if args.key?(:name)
|
|
172
209
|
@prefix_list = args[:prefix_list] if args.key?(:prefix_list)
|
|
210
|
+
@project_source = args[:project_source] if args.key?(:project_source)
|
|
173
211
|
@put_metadata = args[:put_metadata] if args.key?(:put_metadata)
|
|
174
212
|
@put_object_hold = args[:put_object_hold] if args.key?(:put_object_hold)
|
|
175
213
|
@rewrite_object = args[:rewrite_object] if args.key?(:rewrite_object)
|
|
214
|
+
@set_object_acls = args[:set_object_acls] if args.key?(:set_object_acls)
|
|
176
215
|
@start_time = args[:start_time] if args.key?(:start_time)
|
|
177
216
|
@state = args[:state] if args.key?(:state)
|
|
178
217
|
@update_object_custom_context = args[:update_object_custom_context] if args.key?(:update_object_custom_context)
|
|
@@ -185,8 +224,8 @@ module Google
|
|
|
185
224
|
|
|
186
225
|
# Optional. An optional request ID to identify requests. Specify a unique
|
|
187
226
|
# request ID in case you need to retry your request. Requests with same `
|
|
188
|
-
# request_id`
|
|
189
|
-
#
|
|
227
|
+
# request_id` are ignored for at least 60 minutes since the first request. The
|
|
228
|
+
# request ID must be a valid UUID with the exception that zero UUID isn't
|
|
190
229
|
# supported (00000000-0000-0000-0000-000000000000).
|
|
191
230
|
# Corresponds to the JSON property `requestId`
|
|
192
231
|
# @return [String]
|
|
@@ -269,6 +308,13 @@ module Google
|
|
|
269
308
|
# @return [Fixnum]
|
|
270
309
|
attr_accessor :total_bytes_found
|
|
271
310
|
|
|
311
|
+
# Output only. The total number of bytes affected by the transformation. For
|
|
312
|
+
# example, this counts bytes deleted for `DeleteObject` operations and bytes
|
|
313
|
+
# rewritten for `RewriteObject` operations.
|
|
314
|
+
# Corresponds to the JSON property `totalBytesTransformed`
|
|
315
|
+
# @return [Fixnum]
|
|
316
|
+
attr_accessor :total_bytes_transformed
|
|
317
|
+
|
|
272
318
|
# Output only. Number of objects listed.
|
|
273
319
|
# Corresponds to the JSON property `totalObjectCount`
|
|
274
320
|
# @return [Fixnum]
|
|
@@ -286,6 +332,7 @@ module Google
|
|
|
286
332
|
@object_custom_contexts_updated = args[:object_custom_contexts_updated] if args.key?(:object_custom_contexts_updated)
|
|
287
333
|
@succeeded_object_count = args[:succeeded_object_count] if args.key?(:succeeded_object_count)
|
|
288
334
|
@total_bytes_found = args[:total_bytes_found] if args.key?(:total_bytes_found)
|
|
335
|
+
@total_bytes_transformed = args[:total_bytes_transformed] if args.key?(:total_bytes_transformed)
|
|
289
336
|
@total_object_count = args[:total_object_count] if args.key?(:total_object_count)
|
|
290
337
|
end
|
|
291
338
|
end
|
|
@@ -295,7 +342,7 @@ module Google
|
|
|
295
342
|
class CustomContextUpdates
|
|
296
343
|
include Google::Apis::Core::Hashable
|
|
297
344
|
|
|
298
|
-
# Optional. Custom contexts to clear by key. A key
|
|
345
|
+
# Optional. Custom contexts to clear by key. A key can't be present in both `
|
|
299
346
|
# updates` and `keys_to_clear`.
|
|
300
347
|
# Corresponds to the JSON property `keysToClear`
|
|
301
348
|
# @return [Array<String>]
|
|
@@ -322,14 +369,14 @@ module Google
|
|
|
322
369
|
include Google::Apis::Core::Hashable
|
|
323
370
|
|
|
324
371
|
# Required. Controls deletion behavior when versioning is enabled for the object'
|
|
325
|
-
# s bucket. If true both live and noncurrent objects will be permanently
|
|
326
|
-
# Otherwise live objects in versioned buckets will become noncurrent
|
|
327
|
-
# objects that were already noncurrent will be skipped. This setting doesn't
|
|
372
|
+
# s bucket. If true, both live and noncurrent objects will be permanently
|
|
373
|
+
# deleted. Otherwise live objects in versioned buckets will become noncurrent
|
|
374
|
+
# and objects that were already noncurrent will be skipped. This setting doesn't
|
|
328
375
|
# have any impact on the Soft Delete feature. All objects deleted by this
|
|
329
376
|
# service can be be restored for the duration of the Soft Delete retention
|
|
330
377
|
# duration if enabled. If enabled and the manifest doesn't specify an object's
|
|
331
|
-
# generation, a GetObjectMetadata call
|
|
332
|
-
#
|
|
378
|
+
# generation, a `GetObjectMetadata` call is made to determine the live object
|
|
379
|
+
# generation.
|
|
333
380
|
# Corresponds to the JSON property `permanentObjectDeletionEnabled`
|
|
334
381
|
# @return [Boolean]
|
|
335
382
|
attr_accessor :permanent_object_deletion_enabled
|
|
@@ -418,7 +465,61 @@ module Google
|
|
|
418
465
|
end
|
|
419
466
|
end
|
|
420
467
|
|
|
421
|
-
#
|
|
468
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
|
469
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
|
470
|
+
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
|
471
|
+
# "Summary size limit" description: "Determines if a summary is less than 100
|
|
472
|
+
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
|
473
|
+
# Requestor is owner" description: "Determines if requestor is the document
|
|
474
|
+
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
|
475
|
+
# Logic): title: "Public documents" description: "Determine whether the document
|
|
476
|
+
# should be publicly visible" expression: "document.type != 'private' &&
|
|
477
|
+
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
|
478
|
+
# string" description: "Create a notification string with a timestamp."
|
|
479
|
+
# expression: "'New message received at ' + string(document.create_time)" The
|
|
480
|
+
# exact variables and functions that may be referenced within an expression are
|
|
481
|
+
# determined by the service that evaluates it. See the service documentation for
|
|
482
|
+
# additional information.
|
|
483
|
+
class Expr
|
|
484
|
+
include Google::Apis::Core::Hashable
|
|
485
|
+
|
|
486
|
+
# Optional. Description of the expression. This is a longer text which describes
|
|
487
|
+
# the expression, e.g. when hovered over it in a UI.
|
|
488
|
+
# Corresponds to the JSON property `description`
|
|
489
|
+
# @return [String]
|
|
490
|
+
attr_accessor :description
|
|
491
|
+
|
|
492
|
+
# Textual representation of an expression in Common Expression Language syntax.
|
|
493
|
+
# Corresponds to the JSON property `expression`
|
|
494
|
+
# @return [String]
|
|
495
|
+
attr_accessor :expression
|
|
496
|
+
|
|
497
|
+
# Optional. String indicating the location of the expression for error reporting,
|
|
498
|
+
# e.g. a file name and a position in the file.
|
|
499
|
+
# Corresponds to the JSON property `location`
|
|
500
|
+
# @return [String]
|
|
501
|
+
attr_accessor :location
|
|
502
|
+
|
|
503
|
+
# Optional. Title for the expression, i.e. a short string describing its purpose.
|
|
504
|
+
# This can be used e.g. in UIs which allow to enter the expression.
|
|
505
|
+
# Corresponds to the JSON property `title`
|
|
506
|
+
# @return [String]
|
|
507
|
+
attr_accessor :title
|
|
508
|
+
|
|
509
|
+
def initialize(**args)
|
|
510
|
+
update!(**args)
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
# Update properties of this object
|
|
514
|
+
def update!(**args)
|
|
515
|
+
@description = args[:description] if args.key?(:description)
|
|
516
|
+
@expression = args[:expression] if args.key?(:expression)
|
|
517
|
+
@location = args[:location] if args.key?(:location)
|
|
518
|
+
@title = args[:title] if args.key?(:title)
|
|
519
|
+
end
|
|
520
|
+
end
|
|
521
|
+
|
|
522
|
+
# The storage batch operations job description.
|
|
422
523
|
class Job
|
|
423
524
|
include Google::Apis::Core::Hashable
|
|
424
525
|
|
|
@@ -447,15 +548,15 @@ module Google
|
|
|
447
548
|
# @return [Google::Apis::StoragebatchoperationsV1::DeleteObject]
|
|
448
549
|
attr_accessor :delete_object
|
|
449
550
|
|
|
450
|
-
# Optional. A
|
|
451
|
-
#
|
|
551
|
+
# Optional. A user-provided description for the job. Maximum length: 1024 bytes
|
|
552
|
+
# when unicode-encoded.
|
|
452
553
|
# Corresponds to the JSON property `description`
|
|
453
554
|
# @return [String]
|
|
454
555
|
attr_accessor :description
|
|
455
556
|
|
|
456
|
-
# Optional. If true, the job
|
|
457
|
-
#
|
|
458
|
-
#
|
|
557
|
+
# Optional. If true, the job runs in dry run mode, returning the total object
|
|
558
|
+
# count and, if the object configuration is a prefix list, the bytes found from
|
|
559
|
+
# source. No transformations are performed.
|
|
459
560
|
# Corresponds to the JSON property `dryRun`
|
|
460
561
|
# @return [Boolean]
|
|
461
562
|
attr_accessor :dry_run
|
|
@@ -466,7 +567,7 @@ module Google
|
|
|
466
567
|
# @return [Array<Google::Apis::StoragebatchoperationsV1::ErrorSummary>]
|
|
467
568
|
attr_accessor :error_summaries
|
|
468
569
|
|
|
469
|
-
# Output only. If true, this
|
|
570
|
+
# Output only. If true, this job operates on multiple buckets. Multi-bucket jobs
|
|
470
571
|
# are subject to different quota limits than single-bucket jobs.
|
|
471
572
|
# Corresponds to the JSON property `isMultiBucketJob`
|
|
472
573
|
# @return [Boolean]
|
|
@@ -478,14 +579,19 @@ module Google
|
|
|
478
579
|
# @return [Google::Apis::StoragebatchoperationsV1::LoggingConfig]
|
|
479
580
|
attr_accessor :logging_config
|
|
480
581
|
|
|
481
|
-
# Identifier. The resource name of the
|
|
482
|
-
#
|
|
483
|
-
#
|
|
484
|
-
# locations/global/jobs/job01".
|
|
582
|
+
# Identifier. The resource name of the job. Format: `projects/`project_id`/
|
|
583
|
+
# locations/global/jobs/`job_id``. For example: `projects/123456/locations/
|
|
584
|
+
# global/jobs/job01`. `job_id` is unique in a given project.
|
|
485
585
|
# Corresponds to the JSON property `name`
|
|
486
586
|
# @return [String]
|
|
487
587
|
attr_accessor :name
|
|
488
588
|
|
|
589
|
+
# Describes the project source where the objects satisfying the filters will be
|
|
590
|
+
# transformed.
|
|
591
|
+
# Corresponds to the JSON property `projectSource`
|
|
592
|
+
# @return [Google::Apis::StoragebatchoperationsV1::ProjectSource]
|
|
593
|
+
attr_accessor :project_source
|
|
594
|
+
|
|
489
595
|
# Describes options for object metadata update.
|
|
490
596
|
# Corresponds to the JSON property `putMetadata`
|
|
491
597
|
# @return [Google::Apis::StoragebatchoperationsV1::PutMetadata]
|
|
@@ -506,6 +612,11 @@ module Google
|
|
|
506
612
|
# @return [String]
|
|
507
613
|
attr_accessor :schedule_time
|
|
508
614
|
|
|
615
|
+
# Describes options for setting object ACLs.
|
|
616
|
+
# Corresponds to the JSON property `setObjectAcls`
|
|
617
|
+
# @return [Google::Apis::StoragebatchoperationsV1::SetObjectAcls]
|
|
618
|
+
attr_accessor :set_object_acls
|
|
619
|
+
|
|
509
620
|
# Output only. State of the job.
|
|
510
621
|
# Corresponds to the JSON property `state`
|
|
511
622
|
# @return [String]
|
|
@@ -533,10 +644,12 @@ module Google
|
|
|
533
644
|
@is_multi_bucket_job = args[:is_multi_bucket_job] if args.key?(:is_multi_bucket_job)
|
|
534
645
|
@logging_config = args[:logging_config] if args.key?(:logging_config)
|
|
535
646
|
@name = args[:name] if args.key?(:name)
|
|
647
|
+
@project_source = args[:project_source] if args.key?(:project_source)
|
|
536
648
|
@put_metadata = args[:put_metadata] if args.key?(:put_metadata)
|
|
537
649
|
@put_object_hold = args[:put_object_hold] if args.key?(:put_object_hold)
|
|
538
650
|
@rewrite_object = args[:rewrite_object] if args.key?(:rewrite_object)
|
|
539
651
|
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
|
|
652
|
+
@set_object_acls = args[:set_object_acls] if args.key?(:set_object_acls)
|
|
540
653
|
@state = args[:state] if args.key?(:state)
|
|
541
654
|
@update_object_custom_context = args[:update_object_custom_context] if args.key?(:update_object_custom_context)
|
|
542
655
|
end
|
|
@@ -739,15 +852,23 @@ module Google
|
|
|
739
852
|
class Manifest
|
|
740
853
|
include Google::Apis::Core::Hashable
|
|
741
854
|
|
|
742
|
-
# Required.
|
|
743
|
-
#
|
|
744
|
-
#
|
|
745
|
-
#
|
|
746
|
-
#
|
|
747
|
-
#
|
|
748
|
-
#
|
|
749
|
-
#
|
|
750
|
-
#
|
|
855
|
+
# Required. Specify the manifest file location. The format of manifest location
|
|
856
|
+
# can be an absolute path to the object in the format of `gs://bucket_name/path/
|
|
857
|
+
# object_name`. For example, `gs://bucket_name/path/object_name.csv`.
|
|
858
|
+
# Alternatively, you can specify an absolute path with a single wildcard
|
|
859
|
+
# character in the file name, for example `gs://bucket_name/path/file_name*.csv`.
|
|
860
|
+
# If the manifest location is specified with a wildcard, objects in all
|
|
861
|
+
# manifest files matching the pattern will be acted upon. The manifest is a CSV
|
|
862
|
+
# file, uploaded to Cloud Storage, that contains one object or a list of objects
|
|
863
|
+
# that you want to process. Each row in the manifest must include the `bucket`
|
|
864
|
+
# and `name` of the object. You can optionally specify the `generation` of the
|
|
865
|
+
# object. If you don't specify the `generation`, the current version of the
|
|
866
|
+
# object is used. You can optionally include a header row with the following
|
|
867
|
+
# format: `bucket,name,generation`. For example, bucket,name,generation bucket_1,
|
|
868
|
+
# object_1,generation_1 bucket_1,object_2,generation_2 bucket_1,object_3,
|
|
869
|
+
# generation_3 Note: The manifest file must specify only objects within the
|
|
870
|
+
# bucket provided to the job. Rows referencing objects in other buckets are
|
|
871
|
+
# ignored.
|
|
751
872
|
# Corresponds to the JSON property `manifestLocation`
|
|
752
873
|
# @return [String]
|
|
753
874
|
attr_accessor :manifest_location
|
|
@@ -762,14 +883,41 @@ module Google
|
|
|
762
883
|
end
|
|
763
884
|
end
|
|
764
885
|
|
|
765
|
-
#
|
|
886
|
+
# Represents an access control entry on an object.
|
|
887
|
+
class ObjectAccessControl
|
|
888
|
+
include Google::Apis::Core::Hashable
|
|
889
|
+
|
|
890
|
+
# Required. The entity holding the permission, in one of the following forms: * `
|
|
891
|
+
# allUsers` * `allAuthenticatedUsers`
|
|
892
|
+
# Corresponds to the JSON property `entity`
|
|
893
|
+
# @return [String]
|
|
894
|
+
attr_accessor :entity
|
|
895
|
+
|
|
896
|
+
# Required. The role to grant. Acceptable values are: * `READER` - gives read
|
|
897
|
+
# access to the object. * `OWNER` - gives owner access to the object.
|
|
898
|
+
# Corresponds to the JSON property `role`
|
|
899
|
+
# @return [String]
|
|
900
|
+
attr_accessor :role
|
|
901
|
+
|
|
902
|
+
def initialize(**args)
|
|
903
|
+
update!(**args)
|
|
904
|
+
end
|
|
905
|
+
|
|
906
|
+
# Update properties of this object
|
|
907
|
+
def update!(**args)
|
|
908
|
+
@entity = args[:entity] if args.key?(:entity)
|
|
909
|
+
@role = args[:role] if args.key?(:role)
|
|
910
|
+
end
|
|
911
|
+
end
|
|
912
|
+
|
|
913
|
+
# Describes the payload of a user-defined object custom context.
|
|
766
914
|
class ObjectCustomContextPayload
|
|
767
915
|
include Google::Apis::Core::Hashable
|
|
768
916
|
|
|
769
|
-
# The value of the object custom context. If set, `value`
|
|
770
|
-
# string
|
|
771
|
-
#
|
|
772
|
-
#
|
|
917
|
+
# The value of the object custom context. If set, `value` can't be an empty
|
|
918
|
+
# string because it is a required field in custom context. If unset, `value` is
|
|
919
|
+
# ignored and no changes are made to the `value` field of the custom context
|
|
920
|
+
# payload.
|
|
773
921
|
# Corresponds to the JSON property `value`
|
|
774
922
|
# @return [String]
|
|
775
923
|
attr_accessor :value
|
|
@@ -788,14 +936,18 @@ module Google
|
|
|
788
936
|
class ObjectRetention
|
|
789
937
|
include Google::Apis::Core::Hashable
|
|
790
938
|
|
|
791
|
-
# Required. The
|
|
792
|
-
#
|
|
793
|
-
# SS'Z' or YYYY-MM-DD'T'HH:MM:SS
|
|
939
|
+
# Required. The object's retention expiration time, during which, the object is
|
|
940
|
+
# protected from being deleted or overwritten. The time must be specified in RFC
|
|
941
|
+
# 3339 format, for example `YYYY-MM-DD'T'HH:MM:SS'Z'` or `YYYY-MM-DD'T'HH:MM:SS.
|
|
942
|
+
# SS'Z'`. To clear an object's retention, both `retentionMode` and `
|
|
943
|
+
# retainUntilTime` must be left unset (omitted). Setting `retentionMode` to `
|
|
944
|
+
# RETENTION_MODE_UNSPECIFIED` is treated as a no-op. Unlike an unset field, it
|
|
945
|
+
# doesn't modify or clear the retention settings.
|
|
794
946
|
# Corresponds to the JSON property `retainUntilTime`
|
|
795
947
|
# @return [String]
|
|
796
948
|
attr_accessor :retain_until_time
|
|
797
949
|
|
|
798
|
-
# Required. The retention mode
|
|
950
|
+
# Required. The retention mode.
|
|
799
951
|
# Corresponds to the JSON property `retentionMode`
|
|
800
952
|
# @return [String]
|
|
801
953
|
attr_accessor :retention_mode
|
|
@@ -892,12 +1044,12 @@ module Google
|
|
|
892
1044
|
# @return [String]
|
|
893
1045
|
attr_accessor :end_time
|
|
894
1046
|
|
|
895
|
-
# The
|
|
1047
|
+
# The storage batch operations job description.
|
|
896
1048
|
# Corresponds to the JSON property `job`
|
|
897
1049
|
# @return [Google::Apis::StoragebatchoperationsV1::Job]
|
|
898
1050
|
attr_accessor :job
|
|
899
1051
|
|
|
900
|
-
# Output only. The unique operation resource name. Format: projects/`
|
|
1052
|
+
# Output only. The unique operation resource name. Format: projects/`project_id`/
|
|
901
1053
|
# locations/global/operations/`operation`.
|
|
902
1054
|
# Corresponds to the JSON property `operation`
|
|
903
1055
|
# @return [String]
|
|
@@ -931,9 +1083,10 @@ module Google
|
|
|
931
1083
|
class PrefixList
|
|
932
1084
|
include Google::Apis::Core::Hashable
|
|
933
1085
|
|
|
934
|
-
# Optional.
|
|
935
|
-
# object
|
|
936
|
-
#
|
|
1086
|
+
# Optional. Specify one or more object prefixes. For example: * To match one
|
|
1087
|
+
# object, use a single prefix, `prefix1`. * To match multiple objects, use comma-
|
|
1088
|
+
# separated prefixes, `prefix1, prefix2`. * To match all objects, use an empty
|
|
1089
|
+
# prefix, `''`
|
|
937
1090
|
# Corresponds to the JSON property `includedObjectPrefixes`
|
|
938
1091
|
# @return [Array<String>]
|
|
939
1092
|
attr_accessor :included_object_prefixes
|
|
@@ -948,61 +1101,159 @@ module Google
|
|
|
948
1101
|
end
|
|
949
1102
|
end
|
|
950
1103
|
|
|
1104
|
+
# Describes the project source where the objects satisfying the filters will be
|
|
1105
|
+
# transformed.
|
|
1106
|
+
class ProjectSource
|
|
1107
|
+
include Google::Apis::Core::Hashable
|
|
1108
|
+
|
|
1109
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
|
1110
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
|
1111
|
+
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
|
1112
|
+
# "Summary size limit" description: "Determines if a summary is less than 100
|
|
1113
|
+
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
|
1114
|
+
# Requestor is owner" description: "Determines if requestor is the document
|
|
1115
|
+
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
|
1116
|
+
# Logic): title: "Public documents" description: "Determine whether the document
|
|
1117
|
+
# should be publicly visible" expression: "document.type != 'private' &&
|
|
1118
|
+
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
|
1119
|
+
# string" description: "Create a notification string with a timestamp."
|
|
1120
|
+
# expression: "'New message received at ' + string(document.create_time)" The
|
|
1121
|
+
# exact variables and functions that may be referenced within an expression are
|
|
1122
|
+
# determined by the service that evaluates it. See the service documentation for
|
|
1123
|
+
# additional information.
|
|
1124
|
+
# Corresponds to the JSON property `bucketFilters`
|
|
1125
|
+
# @return [Google::Apis::StoragebatchoperationsV1::Expr]
|
|
1126
|
+
attr_accessor :bucket_filters
|
|
1127
|
+
|
|
1128
|
+
# Optional. The unique identifier of a dry run job to use as the baseline for
|
|
1129
|
+
# the current job. Specifying this ID ensures the job is executed against the
|
|
1130
|
+
# same set of objects validated during the dry run. The value corresponds to the
|
|
1131
|
+
# `job_id` segment of the resource name: `projects/`project_id`/locations/`
|
|
1132
|
+
# location`/jobs/`job_id``.
|
|
1133
|
+
# Corresponds to the JSON property `dryRunJobId`
|
|
1134
|
+
# @return [String]
|
|
1135
|
+
attr_accessor :dry_run_job_id
|
|
1136
|
+
|
|
1137
|
+
# Required. The resource identifier of the Storage Insights dataset
|
|
1138
|
+
# configuration. Storage batch operations uses the latest snapshot from this
|
|
1139
|
+
# dataset as the source to list and filter target objects. Format: `projects/`
|
|
1140
|
+
# project_id`/locations/`location`/datasetConfigs/`dataset_config``.
|
|
1141
|
+
# Corresponds to the JSON property `insightsDatasetConfig`
|
|
1142
|
+
# @return [String]
|
|
1143
|
+
attr_accessor :insights_dataset_config
|
|
1144
|
+
|
|
1145
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
|
1146
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
|
1147
|
+
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
|
1148
|
+
# "Summary size limit" description: "Determines if a summary is less than 100
|
|
1149
|
+
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
|
1150
|
+
# Requestor is owner" description: "Determines if requestor is the document
|
|
1151
|
+
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
|
1152
|
+
# Logic): title: "Public documents" description: "Determine whether the document
|
|
1153
|
+
# should be publicly visible" expression: "document.type != 'private' &&
|
|
1154
|
+
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
|
1155
|
+
# string" description: "Create a notification string with a timestamp."
|
|
1156
|
+
# expression: "'New message received at ' + string(document.create_time)" The
|
|
1157
|
+
# exact variables and functions that may be referenced within an expression are
|
|
1158
|
+
# determined by the service that evaluates it. See the service documentation for
|
|
1159
|
+
# additional information.
|
|
1160
|
+
# Corresponds to the JSON property `objectFilters`
|
|
1161
|
+
# @return [Google::Apis::StoragebatchoperationsV1::Expr]
|
|
1162
|
+
attr_accessor :object_filters
|
|
1163
|
+
|
|
1164
|
+
# Required. Project name of the objects to be transformed. e.g. projects/my-
|
|
1165
|
+
# project or projects/123456.
|
|
1166
|
+
# Corresponds to the JSON property `project`
|
|
1167
|
+
# @return [String]
|
|
1168
|
+
attr_accessor :project
|
|
1169
|
+
|
|
1170
|
+
# Output only. The snapshot time used by the job to read the Storage Insights
|
|
1171
|
+
# dataset for bucket and object discovery. This field is populated by the
|
|
1172
|
+
# service and reflects the exact timestamp of the dataset snapshot used.
|
|
1173
|
+
# Corresponds to the JSON property `snapshotTime`
|
|
1174
|
+
# @return [String]
|
|
1175
|
+
attr_accessor :snapshot_time
|
|
1176
|
+
|
|
1177
|
+
# Describes the Cloud Storage locations to include in a ProjectSource job.
|
|
1178
|
+
# Corresponds to the JSON property `targetLocations`
|
|
1179
|
+
# @return [Google::Apis::StoragebatchoperationsV1::TargetLocations]
|
|
1180
|
+
attr_accessor :target_locations
|
|
1181
|
+
|
|
1182
|
+
def initialize(**args)
|
|
1183
|
+
update!(**args)
|
|
1184
|
+
end
|
|
1185
|
+
|
|
1186
|
+
# Update properties of this object
|
|
1187
|
+
def update!(**args)
|
|
1188
|
+
@bucket_filters = args[:bucket_filters] if args.key?(:bucket_filters)
|
|
1189
|
+
@dry_run_job_id = args[:dry_run_job_id] if args.key?(:dry_run_job_id)
|
|
1190
|
+
@insights_dataset_config = args[:insights_dataset_config] if args.key?(:insights_dataset_config)
|
|
1191
|
+
@object_filters = args[:object_filters] if args.key?(:object_filters)
|
|
1192
|
+
@project = args[:project] if args.key?(:project)
|
|
1193
|
+
@snapshot_time = args[:snapshot_time] if args.key?(:snapshot_time)
|
|
1194
|
+
@target_locations = args[:target_locations] if args.key?(:target_locations)
|
|
1195
|
+
end
|
|
1196
|
+
end
|
|
1197
|
+
|
|
951
1198
|
# Describes options for object metadata update.
|
|
952
1199
|
class PutMetadata
|
|
953
1200
|
include Google::Apis::Core::Hashable
|
|
954
1201
|
|
|
955
|
-
# Optional. Updates objects Cache-Control fixed metadata. Unset values
|
|
956
|
-
#
|
|
957
|
-
# Custom-Time
|
|
958
|
-
# com/storage/docs/metadata#caching_data.
|
|
1202
|
+
# Optional. Updates the objects `Cache-Control` fixed metadata. Unset values in
|
|
1203
|
+
# the request are ignored. To clear the metadata, set an empty value.
|
|
1204
|
+
# Additionally, the value for `Custom-Time` can't decrease. For details, see [
|
|
1205
|
+
# Cache-Control](https://cloud.google.com/storage/docs/metadata#caching_data).
|
|
959
1206
|
# Corresponds to the JSON property `cacheControl`
|
|
960
1207
|
# @return [String]
|
|
961
1208
|
attr_accessor :cache_control
|
|
962
1209
|
|
|
963
|
-
# Optional. Updates objects Content-Disposition fixed metadata. Unset values
|
|
964
|
-
#
|
|
965
|
-
# google.com/storage/docs/
|
|
966
|
-
#
|
|
1210
|
+
# Optional. Updates objects `Content-Disposition` fixed metadata. Unset values
|
|
1211
|
+
# in the request are ignored. To clear the metadata, set an empty value. For
|
|
1212
|
+
# details, see [Content-Disposition](https://cloud.google.com/storage/docs/
|
|
1213
|
+
# metadata#content-disposition).
|
|
967
1214
|
# Corresponds to the JSON property `contentDisposition`
|
|
968
1215
|
# @return [String]
|
|
969
1216
|
attr_accessor :content_disposition
|
|
970
1217
|
|
|
971
|
-
# Optional. Updates objects Content-Encoding fixed metadata. Unset values
|
|
972
|
-
#
|
|
973
|
-
# https://cloud.google.com/storage/docs/metadata#
|
|
1218
|
+
# Optional. Updates the objects `Content-Encoding` fixed metadata. Unset values
|
|
1219
|
+
# in the request are ignored. To clear the metadata, set an empty value. For
|
|
1220
|
+
# details, see [Content-Encoding](https://cloud.google.com/storage/docs/metadata#
|
|
1221
|
+
# content-encoding).
|
|
974
1222
|
# Corresponds to the JSON property `contentEncoding`
|
|
975
1223
|
# @return [String]
|
|
976
1224
|
attr_accessor :content_encoding
|
|
977
1225
|
|
|
978
|
-
# Optional. Updates objects Content-Language fixed metadata.
|
|
979
|
-
#
|
|
980
|
-
#
|
|
981
|
-
#
|
|
982
|
-
# language.
|
|
1226
|
+
# Optional. Updates the objects `Content-Language` fixed metadata. Metadata
|
|
1227
|
+
# values must use ISO 639-1 language codes. The maximum length for metadata
|
|
1228
|
+
# values is 100 characters. Unset values in the request are ignored. To clear
|
|
1229
|
+
# the metadata, set an empty value. For details, see [Content-Language](https://
|
|
1230
|
+
# cloud.google.com/storage/docs/metadata#content-language).
|
|
983
1231
|
# Corresponds to the JSON property `contentLanguage`
|
|
984
1232
|
# @return [String]
|
|
985
1233
|
attr_accessor :content_language
|
|
986
1234
|
|
|
987
|
-
# Optional. Updates objects Content-Type fixed metadata. Unset values
|
|
988
|
-
# ignored.
|
|
989
|
-
# https://cloud.google.com/storage/docs/metadata#content-type
|
|
1235
|
+
# Optional. Updates objects `Content-Type` fixed metadata. Unset values in the
|
|
1236
|
+
# request are ignored. To clear the metadata, set an empty value. For details,
|
|
1237
|
+
# see [Content-Type](https://cloud.google.com/storage/docs/metadata#content-type)
|
|
1238
|
+
# .
|
|
990
1239
|
# Corresponds to the JSON property `contentType`
|
|
991
1240
|
# @return [String]
|
|
992
1241
|
attr_accessor :content_type
|
|
993
1242
|
|
|
994
|
-
# Optional. Updates
|
|
995
|
-
# metadata key
|
|
996
|
-
#
|
|
997
|
-
#
|
|
998
|
-
#
|
|
1243
|
+
# Optional. Updates the object's custom metadata. This operation adds or sets
|
|
1244
|
+
# individual custom metadata key-value pairs. Keys specified with empty values
|
|
1245
|
+
# have their values cleared. Existing custom metadata keys not included in the
|
|
1246
|
+
# request remain unchanged. For details, see [Custom metadata](https://cloud.
|
|
1247
|
+
# google.com/storage/docs/metadata#custom-metadata).
|
|
999
1248
|
# Corresponds to the JSON property `customMetadata`
|
|
1000
1249
|
# @return [Hash<String,String>]
|
|
1001
1250
|
attr_accessor :custom_metadata
|
|
1002
1251
|
|
|
1003
|
-
# Optional. Updates objects Custom-Time fixed metadata. Unset values
|
|
1004
|
-
#
|
|
1005
|
-
#
|
|
1252
|
+
# Optional. Updates the objects `Custom-Time` fixed metadata. Unset values in
|
|
1253
|
+
# the request are ignored. To clear the metadata, set an empty value. The time
|
|
1254
|
+
# must be specified in RFC 3339 format, for example `YYYY-MM-DD'T'HH:MM:SS'Z'`
|
|
1255
|
+
# or `YYYY-MM-DD'T'HH:MM:SS.SS'Z'`. For details, see [Custom-Time](https://cloud.
|
|
1256
|
+
# google.com/storage/docs/metadata#custom-time).
|
|
1006
1257
|
# Corresponds to the JSON property `customTime`
|
|
1007
1258
|
# @return [String]
|
|
1008
1259
|
attr_accessor :custom_time
|
|
@@ -1034,14 +1285,14 @@ module Google
|
|
|
1034
1285
|
include Google::Apis::Core::Hashable
|
|
1035
1286
|
|
|
1036
1287
|
# Required. Updates object event based holds state. When object event based hold
|
|
1037
|
-
# is set, object
|
|
1288
|
+
# is set, object can't be deleted or replaced. Resets object's time in the
|
|
1038
1289
|
# bucket for the purposes of the retention period.
|
|
1039
1290
|
# Corresponds to the JSON property `eventBasedHold`
|
|
1040
1291
|
# @return [String]
|
|
1041
1292
|
attr_accessor :event_based_hold
|
|
1042
1293
|
|
|
1043
1294
|
# Required. Updates object temporary holds state. When object temporary hold is
|
|
1044
|
-
# set, object
|
|
1295
|
+
# set, object can't be deleted or replaced.
|
|
1045
1296
|
# Corresponds to the JSON property `temporaryHold`
|
|
1046
1297
|
# @return [String]
|
|
1047
1298
|
attr_accessor :temporary_hold
|
|
@@ -1061,17 +1312,25 @@ module Google
|
|
|
1061
1312
|
class RewriteObject
|
|
1062
1313
|
include Google::Apis::Core::Hashable
|
|
1063
1314
|
|
|
1064
|
-
#
|
|
1065
|
-
# object. The Cloud KMS key must be located in same location as the object.
|
|
1066
|
-
#
|
|
1067
|
-
# managed-keys#add-object-key
|
|
1068
|
-
#
|
|
1069
|
-
#
|
|
1070
|
-
#
|
|
1315
|
+
# Optional. Resource name of the Cloud KMS key that is used to encrypt the
|
|
1316
|
+
# object. The Cloud KMS key must be located in same location as the object. For
|
|
1317
|
+
# details, see https://cloud.google.com/storage/docs/encryption/using-customer-
|
|
1318
|
+
# managed-keys#add-object-key Format: `projects/`project_id`/locations/`location`
|
|
1319
|
+
# /keyRings/`keyring`/cryptoKeys/`key`` For example: `projects/123456/locations/
|
|
1320
|
+
# us-central1/keyRings/my-keyring/cryptoKeys/my-key`. The object will be
|
|
1321
|
+
# rewritten and set with the specified KMS key.
|
|
1071
1322
|
# Corresponds to the JSON property `kmsKey`
|
|
1072
1323
|
# @return [String]
|
|
1073
1324
|
attr_accessor :kms_key
|
|
1074
1325
|
|
|
1326
|
+
# Optional. Rewrites the object to the specified storage class. Setting this
|
|
1327
|
+
# field will perform a full byte copy of the object if the storage class is
|
|
1328
|
+
# different from the object's current storage class. If Autoclass is enabled on
|
|
1329
|
+
# the bucket, storage class changes are ignored by Cloud Storage.
|
|
1330
|
+
# Corresponds to the JSON property `storageClass`
|
|
1331
|
+
# @return [String]
|
|
1332
|
+
attr_accessor :storage_class
|
|
1333
|
+
|
|
1075
1334
|
def initialize(**args)
|
|
1076
1335
|
update!(**args)
|
|
1077
1336
|
end
|
|
@@ -1079,6 +1338,26 @@ module Google
|
|
|
1079
1338
|
# Update properties of this object
|
|
1080
1339
|
def update!(**args)
|
|
1081
1340
|
@kms_key = args[:kms_key] if args.key?(:kms_key)
|
|
1341
|
+
@storage_class = args[:storage_class] if args.key?(:storage_class)
|
|
1342
|
+
end
|
|
1343
|
+
end
|
|
1344
|
+
|
|
1345
|
+
# Describes options for setting object ACLs.
|
|
1346
|
+
class SetObjectAcls
|
|
1347
|
+
include Google::Apis::Core::Hashable
|
|
1348
|
+
|
|
1349
|
+
# Represents updates to existing access-control entries on an object.
|
|
1350
|
+
# Corresponds to the JSON property `accessControlsUpdates`
|
|
1351
|
+
# @return [Google::Apis::StoragebatchoperationsV1::AccessControlsUpdates]
|
|
1352
|
+
attr_accessor :access_controls_updates
|
|
1353
|
+
|
|
1354
|
+
def initialize(**args)
|
|
1355
|
+
update!(**args)
|
|
1356
|
+
end
|
|
1357
|
+
|
|
1358
|
+
# Update properties of this object
|
|
1359
|
+
def update!(**args)
|
|
1360
|
+
@access_controls_updates = args[:access_controls_updates] if args.key?(:access_controls_updates)
|
|
1082
1361
|
end
|
|
1083
1362
|
end
|
|
1084
1363
|
|
|
@@ -1121,11 +1400,46 @@ module Google
|
|
|
1121
1400
|
end
|
|
1122
1401
|
end
|
|
1123
1402
|
|
|
1403
|
+
# Describes the Cloud Storage locations to include in a ProjectSource job.
|
|
1404
|
+
class TargetLocations
|
|
1405
|
+
include Google::Apis::Core::Hashable
|
|
1406
|
+
|
|
1407
|
+
# Required. REQUIRED. A list of Cloud Storage locations (e.g., `us-central1`) to
|
|
1408
|
+
# include in the job. If `snapshot_time` is omitted, the job automatically
|
|
1409
|
+
# defaults to the most recent snapshot timestamp that is successfully populated
|
|
1410
|
+
# in BOTH the `object_attributes_view` and `bucket_attributes_view` across ALL
|
|
1411
|
+
# specified locations. For details on Storage Insights dataset snapshots and
|
|
1412
|
+
# views, see: https://docs.cloud.google.com/storage/docs/insights/dataset-tables-
|
|
1413
|
+
# and-schemas#schema
|
|
1414
|
+
# Corresponds to the JSON property `locations`
|
|
1415
|
+
# @return [Array<String>]
|
|
1416
|
+
attr_accessor :locations
|
|
1417
|
+
|
|
1418
|
+
# Optional. OPTIONAL. The exact Storage Insights snapshot timestamp to use for
|
|
1419
|
+
# the job compatible with the RFC 3339 format (e.g., `2024-01-02T03:04:05Z`). If
|
|
1420
|
+
# specified, this exact snapshot must exist in BOTH the `object_attributes_view`
|
|
1421
|
+
# and `bucket_attributes_view` for every location listed in `locations`. If the
|
|
1422
|
+
# snapshot is missing from either view in any of the locations, the job fails.
|
|
1423
|
+
# Corresponds to the JSON property `snapshotTime`
|
|
1424
|
+
# @return [String]
|
|
1425
|
+
attr_accessor :snapshot_time
|
|
1426
|
+
|
|
1427
|
+
def initialize(**args)
|
|
1428
|
+
update!(**args)
|
|
1429
|
+
end
|
|
1430
|
+
|
|
1431
|
+
# Update properties of this object
|
|
1432
|
+
def update!(**args)
|
|
1433
|
+
@locations = args[:locations] if args.key?(:locations)
|
|
1434
|
+
@snapshot_time = args[:snapshot_time] if args.key?(:snapshot_time)
|
|
1435
|
+
end
|
|
1436
|
+
end
|
|
1437
|
+
|
|
1124
1438
|
# Describes options to update object custom contexts.
|
|
1125
1439
|
class UpdateObjectCustomContext
|
|
1126
1440
|
include Google::Apis::Core::Hashable
|
|
1127
1441
|
|
|
1128
|
-
# If set, must be set to true and all existing object custom contexts
|
|
1442
|
+
# If set, must be set to true and all existing object custom contexts are
|
|
1129
1443
|
# deleted.
|
|
1130
1444
|
# Corresponds to the JSON property `clearAll`
|
|
1131
1445
|
# @return [Boolean]
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module StoragebatchoperationsV1
|
|
18
18
|
# Version of the google-apis-storagebatchoperations_v1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.17.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
|
-
GENERATOR_VERSION = "0.
|
|
22
|
+
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260601"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -22,6 +22,12 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module StoragebatchoperationsV1
|
|
24
24
|
|
|
25
|
+
class AccessControlsUpdates
|
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
+
|
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
29
|
+
end
|
|
30
|
+
|
|
25
31
|
class Bucket
|
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
33
|
|
|
@@ -94,6 +100,12 @@ module Google
|
|
|
94
100
|
include Google::Apis::Core::JsonObjectSupport
|
|
95
101
|
end
|
|
96
102
|
|
|
103
|
+
class Expr
|
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
|
+
|
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
107
|
+
end
|
|
108
|
+
|
|
97
109
|
class Job
|
|
98
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
111
|
|
|
@@ -142,6 +154,12 @@ module Google
|
|
|
142
154
|
include Google::Apis::Core::JsonObjectSupport
|
|
143
155
|
end
|
|
144
156
|
|
|
157
|
+
class ObjectAccessControl
|
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
159
|
+
|
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
161
|
+
end
|
|
162
|
+
|
|
145
163
|
class ObjectCustomContextPayload
|
|
146
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
147
165
|
|
|
@@ -172,6 +190,12 @@ module Google
|
|
|
172
190
|
include Google::Apis::Core::JsonObjectSupport
|
|
173
191
|
end
|
|
174
192
|
|
|
193
|
+
class ProjectSource
|
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
195
|
+
|
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
197
|
+
end
|
|
198
|
+
|
|
175
199
|
class PutMetadata
|
|
176
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
177
201
|
|
|
@@ -190,18 +214,39 @@ module Google
|
|
|
190
214
|
include Google::Apis::Core::JsonObjectSupport
|
|
191
215
|
end
|
|
192
216
|
|
|
217
|
+
class SetObjectAcls
|
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
219
|
+
|
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
221
|
+
end
|
|
222
|
+
|
|
193
223
|
class Status
|
|
194
224
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
195
225
|
|
|
196
226
|
include Google::Apis::Core::JsonObjectSupport
|
|
197
227
|
end
|
|
198
228
|
|
|
229
|
+
class TargetLocations
|
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
231
|
+
|
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
233
|
+
end
|
|
234
|
+
|
|
199
235
|
class UpdateObjectCustomContext
|
|
200
236
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
201
237
|
|
|
202
238
|
include Google::Apis::Core::JsonObjectSupport
|
|
203
239
|
end
|
|
204
240
|
|
|
241
|
+
class AccessControlsUpdates
|
|
242
|
+
# @private
|
|
243
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
244
|
+
collection :grants, as: 'grants', class: Google::Apis::StoragebatchoperationsV1::ObjectAccessControl, decorator: Google::Apis::StoragebatchoperationsV1::ObjectAccessControl::Representation
|
|
245
|
+
|
|
246
|
+
collection :remove_entities, as: 'removeEntities'
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
|
|
205
250
|
class Bucket
|
|
206
251
|
# @private
|
|
207
252
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -238,12 +283,16 @@ module Google
|
|
|
238
283
|
property :name, as: 'name'
|
|
239
284
|
property :prefix_list, as: 'prefixList', class: Google::Apis::StoragebatchoperationsV1::PrefixList, decorator: Google::Apis::StoragebatchoperationsV1::PrefixList::Representation
|
|
240
285
|
|
|
286
|
+
property :project_source, as: 'projectSource', class: Google::Apis::StoragebatchoperationsV1::ProjectSource, decorator: Google::Apis::StoragebatchoperationsV1::ProjectSource::Representation
|
|
287
|
+
|
|
241
288
|
property :put_metadata, as: 'putMetadata', class: Google::Apis::StoragebatchoperationsV1::PutMetadata, decorator: Google::Apis::StoragebatchoperationsV1::PutMetadata::Representation
|
|
242
289
|
|
|
243
290
|
property :put_object_hold, as: 'putObjectHold', class: Google::Apis::StoragebatchoperationsV1::PutObjectHold, decorator: Google::Apis::StoragebatchoperationsV1::PutObjectHold::Representation
|
|
244
291
|
|
|
245
292
|
property :rewrite_object, as: 'rewriteObject', class: Google::Apis::StoragebatchoperationsV1::RewriteObject, decorator: Google::Apis::StoragebatchoperationsV1::RewriteObject::Representation
|
|
246
293
|
|
|
294
|
+
property :set_object_acls, as: 'setObjectAcls', class: Google::Apis::StoragebatchoperationsV1::SetObjectAcls, decorator: Google::Apis::StoragebatchoperationsV1::SetObjectAcls::Representation
|
|
295
|
+
|
|
247
296
|
property :start_time, as: 'startTime'
|
|
248
297
|
property :state, as: 'state'
|
|
249
298
|
property :update_object_custom_context, as: 'updateObjectCustomContext', class: Google::Apis::StoragebatchoperationsV1::UpdateObjectCustomContext, decorator: Google::Apis::StoragebatchoperationsV1::UpdateObjectCustomContext::Representation
|
|
@@ -279,6 +328,7 @@ module Google
|
|
|
279
328
|
property :object_custom_contexts_updated, :numeric_string => true, as: 'objectCustomContextsUpdated'
|
|
280
329
|
property :succeeded_object_count, :numeric_string => true, as: 'succeededObjectCount'
|
|
281
330
|
property :total_bytes_found, :numeric_string => true, as: 'totalBytesFound'
|
|
331
|
+
property :total_bytes_transformed, :numeric_string => true, as: 'totalBytesTransformed'
|
|
282
332
|
property :total_object_count, :numeric_string => true, as: 'totalObjectCount'
|
|
283
333
|
end
|
|
284
334
|
end
|
|
@@ -323,6 +373,16 @@ module Google
|
|
|
323
373
|
end
|
|
324
374
|
end
|
|
325
375
|
|
|
376
|
+
class Expr
|
|
377
|
+
# @private
|
|
378
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
379
|
+
property :description, as: 'description'
|
|
380
|
+
property :expression, as: 'expression'
|
|
381
|
+
property :location, as: 'location'
|
|
382
|
+
property :title, as: 'title'
|
|
383
|
+
end
|
|
384
|
+
end
|
|
385
|
+
|
|
326
386
|
class Job
|
|
327
387
|
# @private
|
|
328
388
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -342,6 +402,8 @@ module Google
|
|
|
342
402
|
property :logging_config, as: 'loggingConfig', class: Google::Apis::StoragebatchoperationsV1::LoggingConfig, decorator: Google::Apis::StoragebatchoperationsV1::LoggingConfig::Representation
|
|
343
403
|
|
|
344
404
|
property :name, as: 'name'
|
|
405
|
+
property :project_source, as: 'projectSource', class: Google::Apis::StoragebatchoperationsV1::ProjectSource, decorator: Google::Apis::StoragebatchoperationsV1::ProjectSource::Representation
|
|
406
|
+
|
|
345
407
|
property :put_metadata, as: 'putMetadata', class: Google::Apis::StoragebatchoperationsV1::PutMetadata, decorator: Google::Apis::StoragebatchoperationsV1::PutMetadata::Representation
|
|
346
408
|
|
|
347
409
|
property :put_object_hold, as: 'putObjectHold', class: Google::Apis::StoragebatchoperationsV1::PutObjectHold, decorator: Google::Apis::StoragebatchoperationsV1::PutObjectHold::Representation
|
|
@@ -349,6 +411,8 @@ module Google
|
|
|
349
411
|
property :rewrite_object, as: 'rewriteObject', class: Google::Apis::StoragebatchoperationsV1::RewriteObject, decorator: Google::Apis::StoragebatchoperationsV1::RewriteObject::Representation
|
|
350
412
|
|
|
351
413
|
property :schedule_time, as: 'scheduleTime'
|
|
414
|
+
property :set_object_acls, as: 'setObjectAcls', class: Google::Apis::StoragebatchoperationsV1::SetObjectAcls, decorator: Google::Apis::StoragebatchoperationsV1::SetObjectAcls::Representation
|
|
415
|
+
|
|
352
416
|
property :state, as: 'state'
|
|
353
417
|
property :update_object_custom_context, as: 'updateObjectCustomContext', class: Google::Apis::StoragebatchoperationsV1::UpdateObjectCustomContext, decorator: Google::Apis::StoragebatchoperationsV1::UpdateObjectCustomContext::Representation
|
|
354
418
|
|
|
@@ -420,6 +484,14 @@ module Google
|
|
|
420
484
|
end
|
|
421
485
|
end
|
|
422
486
|
|
|
487
|
+
class ObjectAccessControl
|
|
488
|
+
# @private
|
|
489
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
490
|
+
property :entity, as: 'entity'
|
|
491
|
+
property :role, as: 'role'
|
|
492
|
+
end
|
|
493
|
+
end
|
|
494
|
+
|
|
423
495
|
class ObjectCustomContextPayload
|
|
424
496
|
# @private
|
|
425
497
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -467,6 +539,22 @@ module Google
|
|
|
467
539
|
end
|
|
468
540
|
end
|
|
469
541
|
|
|
542
|
+
class ProjectSource
|
|
543
|
+
# @private
|
|
544
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
545
|
+
property :bucket_filters, as: 'bucketFilters', class: Google::Apis::StoragebatchoperationsV1::Expr, decorator: Google::Apis::StoragebatchoperationsV1::Expr::Representation
|
|
546
|
+
|
|
547
|
+
property :dry_run_job_id, as: 'dryRunJobId'
|
|
548
|
+
property :insights_dataset_config, as: 'insightsDatasetConfig'
|
|
549
|
+
property :object_filters, as: 'objectFilters', class: Google::Apis::StoragebatchoperationsV1::Expr, decorator: Google::Apis::StoragebatchoperationsV1::Expr::Representation
|
|
550
|
+
|
|
551
|
+
property :project, as: 'project'
|
|
552
|
+
property :snapshot_time, as: 'snapshotTime'
|
|
553
|
+
property :target_locations, as: 'targetLocations', class: Google::Apis::StoragebatchoperationsV1::TargetLocations, decorator: Google::Apis::StoragebatchoperationsV1::TargetLocations::Representation
|
|
554
|
+
|
|
555
|
+
end
|
|
556
|
+
end
|
|
557
|
+
|
|
470
558
|
class PutMetadata
|
|
471
559
|
# @private
|
|
472
560
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -494,6 +582,15 @@ module Google
|
|
|
494
582
|
# @private
|
|
495
583
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
496
584
|
property :kms_key, as: 'kmsKey'
|
|
585
|
+
property :storage_class, as: 'storageClass'
|
|
586
|
+
end
|
|
587
|
+
end
|
|
588
|
+
|
|
589
|
+
class SetObjectAcls
|
|
590
|
+
# @private
|
|
591
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
592
|
+
property :access_controls_updates, as: 'accessControlsUpdates', class: Google::Apis::StoragebatchoperationsV1::AccessControlsUpdates, decorator: Google::Apis::StoragebatchoperationsV1::AccessControlsUpdates::Representation
|
|
593
|
+
|
|
497
594
|
end
|
|
498
595
|
end
|
|
499
596
|
|
|
@@ -506,6 +603,14 @@ module Google
|
|
|
506
603
|
end
|
|
507
604
|
end
|
|
508
605
|
|
|
606
|
+
class TargetLocations
|
|
607
|
+
# @private
|
|
608
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
609
|
+
collection :locations, as: 'locations'
|
|
610
|
+
property :snapshot_time, as: 'snapshotTime'
|
|
611
|
+
end
|
|
612
|
+
end
|
|
613
|
+
|
|
509
614
|
class UpdateObjectCustomContext
|
|
510
615
|
# @private
|
|
511
616
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -139,8 +139,8 @@ module Google
|
|
|
139
139
|
|
|
140
140
|
# Cancels a batch job.
|
|
141
141
|
# @param [String] name
|
|
142
|
-
# Required. The `name` of the job to cancel. Format: projects/`project_id`/
|
|
143
|
-
# locations/global/jobs/`job_id
|
|
142
|
+
# Required. The `name` of the job to cancel. Format: `projects/`project_id`/
|
|
143
|
+
# locations/global/jobs/`job_id``.
|
|
144
144
|
# @param [Google::Apis::StoragebatchoperationsV1::CancelJobRequest] cancel_job_request_object
|
|
145
145
|
# @param [String] fields
|
|
146
146
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -173,17 +173,17 @@ module Google
|
|
|
173
173
|
|
|
174
174
|
# Creates a batch job.
|
|
175
175
|
# @param [String] parent
|
|
176
|
-
# Required.
|
|
176
|
+
# Required. The value for parent.
|
|
177
177
|
# @param [Google::Apis::StoragebatchoperationsV1::Job] job_object
|
|
178
178
|
# @param [String] job_id
|
|
179
|
-
# Required.
|
|
180
|
-
#
|
|
181
|
-
#
|
|
179
|
+
# Required. A unique identifier for the job. `job_id` must be up to 128
|
|
180
|
+
# characters and must include only characters available in DNS names, as defined
|
|
181
|
+
# by RFC-1123.
|
|
182
182
|
# @param [String] request_id
|
|
183
183
|
# Optional. An optional request ID to identify requests. Specify a unique
|
|
184
184
|
# request ID in case you need to retry your request. Requests with same `
|
|
185
|
-
# request_id`
|
|
186
|
-
#
|
|
185
|
+
# request_id` are ignored for at least 60 minutes since the first request. The
|
|
186
|
+
# request ID must be a valid UUID with the exception that zero UUID isn't
|
|
187
187
|
# supported (00000000-0000-0000-0000-000000000000).
|
|
188
188
|
# @param [String] fields
|
|
189
189
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -218,18 +218,18 @@ module Google
|
|
|
218
218
|
|
|
219
219
|
# Deletes a batch job.
|
|
220
220
|
# @param [String] name
|
|
221
|
-
# Required. The `name` of the job to delete. Format: projects/`project_id`/
|
|
222
|
-
# locations/global/jobs/`job_id
|
|
221
|
+
# Required. The `name` of the job to delete. Format: `projects/`project_id`/
|
|
222
|
+
# locations/global/jobs/`job_id``.
|
|
223
223
|
# @param [Boolean] force
|
|
224
|
-
# Optional. If set to true, any child bucket operations of the job
|
|
225
|
-
#
|
|
226
|
-
#
|
|
227
|
-
#
|
|
224
|
+
# Optional. If set to true, any child bucket operations of the job are deleted.
|
|
225
|
+
# We recommend setting this to `true`. You can't mutate bucket operations
|
|
226
|
+
# directly, so only the `jobs.delete` permission is required to delete a job (
|
|
227
|
+
# and its child bucket operations).
|
|
228
228
|
# @param [String] request_id
|
|
229
229
|
# Optional. An optional request ID to identify requests. Specify a unique
|
|
230
230
|
# request ID in case you need to retry your request. Requests with same `
|
|
231
|
-
# request_id`
|
|
232
|
-
#
|
|
231
|
+
# request_id` are ignored for at least 60 minutes since the first request. The
|
|
232
|
+
# request ID must be a valid UUID with the exception that zero UUID isn't
|
|
233
233
|
# supported (00000000-0000-0000-0000-000000000000).
|
|
234
234
|
# @param [String] fields
|
|
235
235
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -262,8 +262,8 @@ module Google
|
|
|
262
262
|
|
|
263
263
|
# Gets a batch job.
|
|
264
264
|
# @param [String] name
|
|
265
|
-
# Required. `name` of the job to retrieve. Format: projects/`project_id`/
|
|
266
|
-
# locations/global/jobs/`job_id
|
|
265
|
+
# Required. The `name` of the job to retrieve. Format: `projects/`project_id`/
|
|
266
|
+
# locations/global/jobs/`job_id``.
|
|
267
267
|
# @param [String] fields
|
|
268
268
|
# Selector specifying which fields to include in a partial response.
|
|
269
269
|
# @param [String] quota_user
|
|
@@ -297,9 +297,9 @@ module Google
|
|
|
297
297
|
# @param [String] filter
|
|
298
298
|
# Optional. Filters results as defined by https://google.aip.dev/160.
|
|
299
299
|
# @param [String] order_by
|
|
300
|
-
# Optional. Field to sort by. Supported fields are name
|
|
300
|
+
# Optional. Field to sort by. Supported fields are `name` and `create_time`.
|
|
301
301
|
# @param [Fixnum] page_size
|
|
302
|
-
# Optional. The list page size. default page size is 100.
|
|
302
|
+
# Optional. The list page size. The default page size is 100.
|
|
303
303
|
# @param [String] page_token
|
|
304
304
|
# Optional. The list page token.
|
|
305
305
|
# @param [String] fields
|
|
@@ -335,9 +335,9 @@ module Google
|
|
|
335
335
|
|
|
336
336
|
# Gets a BucketOperation.
|
|
337
337
|
# @param [String] name
|
|
338
|
-
# Required. `name` of the bucket operation to retrieve. Format: projects/`
|
|
338
|
+
# Required. The `name` of the bucket operation to retrieve. Format: `projects/`
|
|
339
339
|
# project_id`/locations/global/jobs/`job_id`/bucketOperations/`
|
|
340
|
-
# bucket_operation_id
|
|
340
|
+
# bucket_operation_id``.
|
|
341
341
|
# @param [String] fields
|
|
342
342
|
# Selector specifying which fields to include in a partial response.
|
|
343
343
|
# @param [String] quota_user
|
|
@@ -367,11 +367,11 @@ module Google
|
|
|
367
367
|
|
|
368
368
|
# Lists BucketOperations in a given project and job.
|
|
369
369
|
# @param [String] parent
|
|
370
|
-
# Required. Format: projects/`project_id`/locations/global/jobs/`job_id
|
|
370
|
+
# Required. Format: `projects/`project_id`/locations/global/jobs/`job_id``.
|
|
371
371
|
# @param [String] filter
|
|
372
372
|
# Optional. Filters results as defined by https://google.aip.dev/160.
|
|
373
373
|
# @param [String] order_by
|
|
374
|
-
# Optional. Field to sort by. Supported fields are name
|
|
374
|
+
# Optional. Field to sort by. Supported fields are `name` and `create_time`.
|
|
375
375
|
# @param [Fixnum] page_size
|
|
376
376
|
# Optional. The list page size. Default page size is 100.
|
|
377
377
|
# @param [String] page_token
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-storagebatchoperations_v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.17.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storagebatchoperations_v1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-storagebatchoperations_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-storagebatchoperations_v1/v0.17.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storagebatchoperations_v1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|
|
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
66
66
|
requirements:
|
|
67
67
|
- - ">="
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: '3.
|
|
69
|
+
version: '3.2'
|
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
72
|
- - ">="
|