google-apis-storagebatchoperations_v1 0.10.0 → 0.11.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: f2b1e3b28b1ef3535c5a9f192b5dd7bfb744b28f82742e742e4363514ea8591e
4
+ data.tar.gz: a75bd9d9d018587c30e6ec49b63288c899f1d6444e05938243ea881ff1e43768
5
5
  SHA512:
6
- metadata.gz: e4e188d00dc10f0d8faa9f585981f91725a10f3218237ca82acc000ae0b390c686f78fa2e63a9925db0e1ad02040961008d141223cc8adae38bc127c14a0b069
7
- data.tar.gz: 4a82c85ae2e108743c2cdc8f64a459bd5e672b4e2ab0155c0f6cd4478a9b979de3bf9159ab96b1b0e4a73a243ef80a38bb1d6150195615211e2fd04758884dc5
6
+ metadata.gz: fb4e02c98083a178cab04005fbbdbc4b5aa4a96994889175983fde2c7523cbcc016ab5bc507a08833ef53e9754de419d858cd1420e98beddd48ff18fa3ee538b
7
+ data.tar.gz: 03bce5307c3ab6c923ed53f8989bd1d81d5e6afe3ef16b792d2a7abdd231106fac828a64f81619247829d44d519005be3914df2c91f41ff1633b6e9dbd5ed5ba
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-storagebatchoperations_v1
2
2
 
3
+ ### v0.11.0 (2026-01-25)
4
+
5
+ * Regenerated from discovery document revision 20260119
6
+
3
7
  ### v0.10.0 (2025-12-14)
4
8
 
5
9
  * 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.11.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 = "20260119"
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
@@ -211,6 +211,11 @@ module Google
211
211
  # @param [String] name
212
212
  # Required. The `name` of the job to delete. Format: projects/`project_id`/
213
213
  # locations/global/jobs/`job_id` .
214
+ # @param [Boolean] force
215
+ # Optional. If set to true, any child bucket operations of the job will also be
216
+ # deleted. Highly recommended to be set to true by all clients. Users cannot
217
+ # mutate bucket operations directly, so only the jobs.delete permission is
218
+ # required to delete a job (and its child bucket operations).
214
219
  # @param [String] request_id
215
220
  # Optional. An optional request ID to identify requests. Specify a unique
216
221
  # request ID in case you need to retry your request. Requests with same `
@@ -234,11 +239,12 @@ module Google
234
239
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
235
240
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
236
241
  # @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)
242
+ def delete_project_location_job(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
238
243
  command = make_simple_command(:delete, 'v1/{+name}', options)
239
244
  command.response_representation = Google::Apis::StoragebatchoperationsV1::Empty::Representation
240
245
  command.response_class = Google::Apis::StoragebatchoperationsV1::Empty
241
246
  command.params['name'] = name unless name.nil?
247
+ command.query['force'] = force unless force.nil?
242
248
  command.query['requestId'] = request_id unless request_id.nil?
243
249
  command.query['fields'] = fields unless fields.nil?
244
250
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -318,6 +324,80 @@ module Google
318
324
  execute_or_queue_command(command, &block)
319
325
  end
320
326
 
327
+ # Gets a BucketOperation.
328
+ # @param [String] name
329
+ # Required. `name` of the bucket operation to retrieve. Format: projects/`
330
+ # project_id`/locations/global/jobs/`job_id`/bucketOperations/`
331
+ # bucket_operation_id`.
332
+ # @param [String] fields
333
+ # Selector specifying which fields to include in a partial response.
334
+ # @param [String] quota_user
335
+ # Available to use for quota purposes for server-side applications. Can be any
336
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
337
+ # @param [Google::Apis::RequestOptions] options
338
+ # Request-specific options
339
+ #
340
+ # @yield [result, err] Result & error if block supplied
341
+ # @yieldparam result [Google::Apis::StoragebatchoperationsV1::BucketOperation] parsed result object
342
+ # @yieldparam err [StandardError] error object if request failed
343
+ #
344
+ # @return [Google::Apis::StoragebatchoperationsV1::BucketOperation]
345
+ #
346
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
347
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
348
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
349
+ def get_project_location_job_bucket_operation(name, fields: nil, quota_user: nil, options: nil, &block)
350
+ command = make_simple_command(:get, 'v1/{+name}', options)
351
+ command.response_representation = Google::Apis::StoragebatchoperationsV1::BucketOperation::Representation
352
+ command.response_class = Google::Apis::StoragebatchoperationsV1::BucketOperation
353
+ command.params['name'] = name unless name.nil?
354
+ command.query['fields'] = fields unless fields.nil?
355
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
356
+ execute_or_queue_command(command, &block)
357
+ end
358
+
359
+ # Lists BucketOperations in a given project and job.
360
+ # @param [String] parent
361
+ # Required. Format: projects/`project_id`/locations/global/jobs/`job_id`.
362
+ # @param [String] filter
363
+ # Optional. Filters results as defined by https://google.aip.dev/160.
364
+ # @param [String] order_by
365
+ # Optional. Field to sort by. Supported fields are name, create_time.
366
+ # @param [Fixnum] page_size
367
+ # Optional. The list page size. Default page size is 100.
368
+ # @param [String] page_token
369
+ # Optional. The list page token.
370
+ # @param [String] fields
371
+ # Selector specifying which fields to include in a partial response.
372
+ # @param [String] quota_user
373
+ # Available to use for quota purposes for server-side applications. Can be any
374
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
375
+ # @param [Google::Apis::RequestOptions] options
376
+ # Request-specific options
377
+ #
378
+ # @yield [result, err] Result & error if block supplied
379
+ # @yieldparam result [Google::Apis::StoragebatchoperationsV1::ListBucketOperationsResponse] parsed result object
380
+ # @yieldparam err [StandardError] error object if request failed
381
+ #
382
+ # @return [Google::Apis::StoragebatchoperationsV1::ListBucketOperationsResponse]
383
+ #
384
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
385
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
386
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
387
+ 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)
388
+ command = make_simple_command(:get, 'v1/{+parent}/bucketOperations', options)
389
+ command.response_representation = Google::Apis::StoragebatchoperationsV1::ListBucketOperationsResponse::Representation
390
+ command.response_class = Google::Apis::StoragebatchoperationsV1::ListBucketOperationsResponse
391
+ command.params['parent'] = parent unless parent.nil?
392
+ command.query['filter'] = filter unless filter.nil?
393
+ command.query['orderBy'] = order_by unless order_by.nil?
394
+ command.query['pageSize'] = page_size unless page_size.nil?
395
+ command.query['pageToken'] = page_token unless page_token.nil?
396
+ command.query['fields'] = fields unless fields.nil?
397
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
398
+ execute_or_queue_command(command, &block)
399
+ end
400
+
321
401
  # Starts asynchronous cancellation on a long-running operation. The server makes
322
402
  # a best effort to cancel the operation, but success is not guaranteed. If the
323
403
  # 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.11.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.11.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: