google-apis-storagebatchoperations_v1 0.10.0 → 0.12.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bcd3ff98f034b4bd08a9a59047329573b8afbd276b1a5eb87b1c470376c863b7
4
- data.tar.gz: 468c54aca478269b3144646bb5aca4c7cdffd6abfbabcbfc048ad3c6f25fb494
3
+ metadata.gz: bf5a9864112f77643a0edf04228fd62a633864490c33f4f50c9f8f76c5f03c6b
4
+ data.tar.gz: bb084453f0499b3771428f6da8e9ae6857b1c34ee2af144b4993df464f0908f8
5
5
  SHA512:
6
- metadata.gz: e4e188d00dc10f0d8faa9f585981f91725a10f3218237ca82acc000ae0b390c686f78fa2e63a9925db0e1ad02040961008d141223cc8adae38bc127c14a0b069
7
- data.tar.gz: 4a82c85ae2e108743c2cdc8f64a459bd5e672b4e2ab0155c0f6cd4478a9b979de3bf9159ab96b1b0e4a73a243ef80a38bb1d6150195615211e2fd04758884dc5
6
+ metadata.gz: 2701077bad1407112eeb174f20116d96939e3047595589f68c173ae8919131e515a921cb46616a13c43a02633ba44becaf8be0d0daa75d6f6e394da7c60e8e82
7
+ data.tar.gz: ec66432fdd2147a064c5299183d6d8be1676a9a38882b7283f5dc52dbe749000ba49c9b1d97fcd42ad0b0f3b34f656b4d486028b4af1acc9a4deb2121713f106
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-storagebatchoperations_v1
2
2
 
3
+ ### v0.12.0 (2026-02-08)
4
+
5
+ * Regenerated from discovery document revision 20260128
6
+
7
+ ### v0.11.0 (2026-01-25)
8
+
9
+ * Regenerated from discovery document revision 20260119
10
+
3
11
  ### v0.10.0 (2025-12-14)
4
12
 
5
13
  * Regenerated from discovery document revision 20251203
@@ -74,6 +74,105 @@ module Google
74
74
  end
75
75
  end
76
76
 
77
+ # BucketOperation represents a bucket-level breakdown of a Job.
78
+ class BucketOperation
79
+ include Google::Apis::Core::Hashable
80
+
81
+ # The bucket name of the objects to be transformed in the BucketOperation.
82
+ # Corresponds to the JSON property `bucketName`
83
+ # @return [String]
84
+ attr_accessor :bucket_name
85
+
86
+ # Output only. The time that the BucketOperation was completed.
87
+ # Corresponds to the JSON property `completeTime`
88
+ # @return [String]
89
+ attr_accessor :complete_time
90
+
91
+ # Describes details about the progress of the job.
92
+ # Corresponds to the JSON property `counters`
93
+ # @return [Google::Apis::StoragebatchoperationsV1::Counters]
94
+ attr_accessor :counters
95
+
96
+ # Output only. The time that the BucketOperation was created.
97
+ # Corresponds to the JSON property `createTime`
98
+ # @return [String]
99
+ attr_accessor :create_time
100
+
101
+ # Describes options to delete an object.
102
+ # Corresponds to the JSON property `deleteObject`
103
+ # @return [Google::Apis::StoragebatchoperationsV1::DeleteObject]
104
+ attr_accessor :delete_object
105
+
106
+ # Output only. Summarizes errors encountered with sample error log entries.
107
+ # Corresponds to the JSON property `errorSummaries`
108
+ # @return [Array<Google::Apis::StoragebatchoperationsV1::ErrorSummary>]
109
+ attr_accessor :error_summaries
110
+
111
+ # Describes list of objects to be transformed.
112
+ # Corresponds to the JSON property `manifest`
113
+ # @return [Google::Apis::StoragebatchoperationsV1::Manifest]
114
+ attr_accessor :manifest
115
+
116
+ # Identifier. The resource name of the BucketOperation. This is defined by the
117
+ # service. Format: projects/`project`/locations/global/jobs/`job_id`/
118
+ # bucketOperations/`bucket_operation`.
119
+ # Corresponds to the JSON property `name`
120
+ # @return [String]
121
+ attr_accessor :name
122
+
123
+ # Describes prefixes of objects to be transformed.
124
+ # Corresponds to the JSON property `prefixList`
125
+ # @return [Google::Apis::StoragebatchoperationsV1::PrefixList]
126
+ attr_accessor :prefix_list
127
+
128
+ # Describes options for object metadata update.
129
+ # Corresponds to the JSON property `putMetadata`
130
+ # @return [Google::Apis::StoragebatchoperationsV1::PutMetadata]
131
+ attr_accessor :put_metadata
132
+
133
+ # Describes options to update object hold.
134
+ # Corresponds to the JSON property `putObjectHold`
135
+ # @return [Google::Apis::StoragebatchoperationsV1::PutObjectHold]
136
+ attr_accessor :put_object_hold
137
+
138
+ # Describes options for object rewrite.
139
+ # Corresponds to the JSON property `rewriteObject`
140
+ # @return [Google::Apis::StoragebatchoperationsV1::RewriteObject]
141
+ attr_accessor :rewrite_object
142
+
143
+ # Output only. The time that the BucketOperation was started.
144
+ # Corresponds to the JSON property `startTime`
145
+ # @return [String]
146
+ attr_accessor :start_time
147
+
148
+ # Output only. State of the BucketOperation.
149
+ # Corresponds to the JSON property `state`
150
+ # @return [String]
151
+ attr_accessor :state
152
+
153
+ def initialize(**args)
154
+ update!(**args)
155
+ end
156
+
157
+ # Update properties of this object
158
+ def update!(**args)
159
+ @bucket_name = args[:bucket_name] if args.key?(:bucket_name)
160
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
161
+ @counters = args[:counters] if args.key?(:counters)
162
+ @create_time = args[:create_time] if args.key?(:create_time)
163
+ @delete_object = args[:delete_object] if args.key?(:delete_object)
164
+ @error_summaries = args[:error_summaries] if args.key?(:error_summaries)
165
+ @manifest = args[:manifest] if args.key?(:manifest)
166
+ @name = args[:name] if args.key?(:name)
167
+ @prefix_list = args[:prefix_list] if args.key?(:prefix_list)
168
+ @put_metadata = args[:put_metadata] if args.key?(:put_metadata)
169
+ @put_object_hold = args[:put_object_hold] if args.key?(:put_object_hold)
170
+ @rewrite_object = args[:rewrite_object] if args.key?(:rewrite_object)
171
+ @start_time = args[:start_time] if args.key?(:start_time)
172
+ @state = args[:state] if args.key?(:state)
173
+ end
174
+ end
175
+
77
176
  # Message for Job to Cancel
78
177
  class CancelJobRequest
79
178
  include Google::Apis::Core::Hashable
@@ -372,6 +471,37 @@ module Google
372
471
  end
373
472
  end
374
473
 
474
+ # Message for response to listing BucketOperations
475
+ class ListBucketOperationsResponse
476
+ include Google::Apis::Core::Hashable
477
+
478
+ # A list of storage batch bucket operations.
479
+ # Corresponds to the JSON property `bucketOperations`
480
+ # @return [Array<Google::Apis::StoragebatchoperationsV1::BucketOperation>]
481
+ attr_accessor :bucket_operations
482
+
483
+ # A token identifying a page of results.
484
+ # Corresponds to the JSON property `nextPageToken`
485
+ # @return [String]
486
+ attr_accessor :next_page_token
487
+
488
+ # Locations that could not be reached.
489
+ # Corresponds to the JSON property `unreachable`
490
+ # @return [Array<String>]
491
+ attr_accessor :unreachable
492
+
493
+ def initialize(**args)
494
+ update!(**args)
495
+ end
496
+
497
+ # Update properties of this object
498
+ def update!(**args)
499
+ @bucket_operations = args[:bucket_operations] if args.key?(:bucket_operations)
500
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
501
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
502
+ end
503
+ end
504
+
375
505
  # Message for response to listing Jobs
376
506
  class ListJobsResponse
377
507
  include Google::Apis::Core::Hashable
@@ -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.10.0"
19
+ GEM_VERSION = "0.12.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20251203"
25
+ REVISION = "20260128"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class BucketOperation
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class CancelJobRequest
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -88,6 +94,12 @@ module Google
88
94
  include Google::Apis::Core::JsonObjectSupport
89
95
  end
90
96
 
97
+ class ListBucketOperationsResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
91
103
  class ListJobsResponse
92
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
105
 
@@ -191,6 +203,34 @@ module Google
191
203
  end
192
204
  end
193
205
 
206
+ class BucketOperation
207
+ # @private
208
+ class Representation < Google::Apis::Core::JsonRepresentation
209
+ property :bucket_name, as: 'bucketName'
210
+ property :complete_time, as: 'completeTime'
211
+ property :counters, as: 'counters', class: Google::Apis::StoragebatchoperationsV1::Counters, decorator: Google::Apis::StoragebatchoperationsV1::Counters::Representation
212
+
213
+ property :create_time, as: 'createTime'
214
+ property :delete_object, as: 'deleteObject', class: Google::Apis::StoragebatchoperationsV1::DeleteObject, decorator: Google::Apis::StoragebatchoperationsV1::DeleteObject::Representation
215
+
216
+ collection :error_summaries, as: 'errorSummaries', class: Google::Apis::StoragebatchoperationsV1::ErrorSummary, decorator: Google::Apis::StoragebatchoperationsV1::ErrorSummary::Representation
217
+
218
+ property :manifest, as: 'manifest', class: Google::Apis::StoragebatchoperationsV1::Manifest, decorator: Google::Apis::StoragebatchoperationsV1::Manifest::Representation
219
+
220
+ property :name, as: 'name'
221
+ property :prefix_list, as: 'prefixList', class: Google::Apis::StoragebatchoperationsV1::PrefixList, decorator: Google::Apis::StoragebatchoperationsV1::PrefixList::Representation
222
+
223
+ property :put_metadata, as: 'putMetadata', class: Google::Apis::StoragebatchoperationsV1::PutMetadata, decorator: Google::Apis::StoragebatchoperationsV1::PutMetadata::Representation
224
+
225
+ property :put_object_hold, as: 'putObjectHold', class: Google::Apis::StoragebatchoperationsV1::PutObjectHold, decorator: Google::Apis::StoragebatchoperationsV1::PutObjectHold::Representation
226
+
227
+ property :rewrite_object, as: 'rewriteObject', class: Google::Apis::StoragebatchoperationsV1::RewriteObject, decorator: Google::Apis::StoragebatchoperationsV1::RewriteObject::Representation
228
+
229
+ property :start_time, as: 'startTime'
230
+ property :state, as: 'state'
231
+ end
232
+ end
233
+
194
234
  class CancelJobRequest
195
235
  # @private
196
236
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -280,6 +320,16 @@ module Google
280
320
  end
281
321
  end
282
322
 
323
+ class ListBucketOperationsResponse
324
+ # @private
325
+ class Representation < Google::Apis::Core::JsonRepresentation
326
+ collection :bucket_operations, as: 'bucketOperations', class: Google::Apis::StoragebatchoperationsV1::BucketOperation, decorator: Google::Apis::StoragebatchoperationsV1::BucketOperation::Representation
327
+
328
+ property :next_page_token, as: 'nextPageToken'
329
+ collection :unreachable, as: 'unreachable'
330
+ end
331
+ end
332
+
283
333
  class ListJobsResponse
284
334
  # @private
285
335
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -81,7 +81,11 @@ module Google
81
81
  execute_or_queue_command(command, &block)
82
82
  end
83
83
 
84
- # Lists information about the supported locations for this service.
84
+ # Lists information about the supported locations for this service. This method
85
+ # can be called in two ways: * **List all public locations:** Use the path `GET /
86
+ # v1/locations`. * **List project-visible locations:** Use the path `GET /v1/
87
+ # projects/`project_id`/locations`. This may include public locations as well as
88
+ # private or other locations specifically visible to the project.
85
89
  # @param [String] name
86
90
  # The resource that owns the locations collection, if applicable.
87
91
  # @param [Array<String>, String] extra_location_types
@@ -211,6 +215,11 @@ module Google
211
215
  # @param [String] name
212
216
  # Required. The `name` of the job to delete. Format: projects/`project_id`/
213
217
  # locations/global/jobs/`job_id` .
218
+ # @param [Boolean] force
219
+ # Optional. If set to true, any child bucket operations of the job will also be
220
+ # deleted. Highly recommended to be set to true by all clients. Users cannot
221
+ # mutate bucket operations directly, so only the jobs.delete permission is
222
+ # required to delete a job (and its child bucket operations).
214
223
  # @param [String] request_id
215
224
  # Optional. An optional request ID to identify requests. Specify a unique
216
225
  # request ID in case you need to retry your request. Requests with same `
@@ -234,11 +243,12 @@ module Google
234
243
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
235
244
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
236
245
  # @raise [Google::Apis::AuthorizationError] Authorization is required
237
- def delete_project_location_job(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
246
+ def delete_project_location_job(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
238
247
  command = make_simple_command(:delete, 'v1/{+name}', options)
239
248
  command.response_representation = Google::Apis::StoragebatchoperationsV1::Empty::Representation
240
249
  command.response_class = Google::Apis::StoragebatchoperationsV1::Empty
241
250
  command.params['name'] = name unless name.nil?
251
+ command.query['force'] = force unless force.nil?
242
252
  command.query['requestId'] = request_id unless request_id.nil?
243
253
  command.query['fields'] = fields unless fields.nil?
244
254
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -318,6 +328,80 @@ module Google
318
328
  execute_or_queue_command(command, &block)
319
329
  end
320
330
 
331
+ # Gets a BucketOperation.
332
+ # @param [String] name
333
+ # Required. `name` of the bucket operation to retrieve. Format: projects/`
334
+ # project_id`/locations/global/jobs/`job_id`/bucketOperations/`
335
+ # bucket_operation_id`.
336
+ # @param [String] fields
337
+ # Selector specifying which fields to include in a partial response.
338
+ # @param [String] quota_user
339
+ # Available to use for quota purposes for server-side applications. Can be any
340
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
341
+ # @param [Google::Apis::RequestOptions] options
342
+ # Request-specific options
343
+ #
344
+ # @yield [result, err] Result & error if block supplied
345
+ # @yieldparam result [Google::Apis::StoragebatchoperationsV1::BucketOperation] parsed result object
346
+ # @yieldparam err [StandardError] error object if request failed
347
+ #
348
+ # @return [Google::Apis::StoragebatchoperationsV1::BucketOperation]
349
+ #
350
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
351
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
352
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
353
+ def get_project_location_job_bucket_operation(name, fields: nil, quota_user: nil, options: nil, &block)
354
+ command = make_simple_command(:get, 'v1/{+name}', options)
355
+ command.response_representation = Google::Apis::StoragebatchoperationsV1::BucketOperation::Representation
356
+ command.response_class = Google::Apis::StoragebatchoperationsV1::BucketOperation
357
+ command.params['name'] = name unless name.nil?
358
+ command.query['fields'] = fields unless fields.nil?
359
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
360
+ execute_or_queue_command(command, &block)
361
+ end
362
+
363
+ # Lists BucketOperations in a given project and job.
364
+ # @param [String] parent
365
+ # Required. Format: projects/`project_id`/locations/global/jobs/`job_id`.
366
+ # @param [String] filter
367
+ # Optional. Filters results as defined by https://google.aip.dev/160.
368
+ # @param [String] order_by
369
+ # Optional. Field to sort by. Supported fields are name, create_time.
370
+ # @param [Fixnum] page_size
371
+ # Optional. The list page size. Default page size is 100.
372
+ # @param [String] page_token
373
+ # Optional. The list page token.
374
+ # @param [String] fields
375
+ # Selector specifying which fields to include in a partial response.
376
+ # @param [String] quota_user
377
+ # Available to use for quota purposes for server-side applications. Can be any
378
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
379
+ # @param [Google::Apis::RequestOptions] options
380
+ # Request-specific options
381
+ #
382
+ # @yield [result, err] Result & error if block supplied
383
+ # @yieldparam result [Google::Apis::StoragebatchoperationsV1::ListBucketOperationsResponse] parsed result object
384
+ # @yieldparam err [StandardError] error object if request failed
385
+ #
386
+ # @return [Google::Apis::StoragebatchoperationsV1::ListBucketOperationsResponse]
387
+ #
388
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
389
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
390
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
391
+ def list_project_location_job_bucket_operations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
392
+ command = make_simple_command(:get, 'v1/{+parent}/bucketOperations', options)
393
+ command.response_representation = Google::Apis::StoragebatchoperationsV1::ListBucketOperationsResponse::Representation
394
+ command.response_class = Google::Apis::StoragebatchoperationsV1::ListBucketOperationsResponse
395
+ command.params['parent'] = parent unless parent.nil?
396
+ command.query['filter'] = filter unless filter.nil?
397
+ command.query['orderBy'] = order_by unless order_by.nil?
398
+ command.query['pageSize'] = page_size unless page_size.nil?
399
+ command.query['pageToken'] = page_token unless page_token.nil?
400
+ command.query['fields'] = fields unless fields.nil?
401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
402
+ execute_or_queue_command(command, &block)
403
+ end
404
+
321
405
  # Starts asynchronous cancellation on a long-running operation. The server makes
322
406
  # a best effort to cancel the operation, but success is not guaranteed. If the
323
407
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
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.10.0
4
+ version: 0.12.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.10.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-storagebatchoperations_v1/v0.12.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: