Skip to content

Commit d017bd7

Browse files
feat: Automated regeneration of storagebatchoperations v1 client (#25878)
Auto-created at 2026-03-08 09:59:52 +0000 using the toys pull request generator.
1 parent ab7a55f commit d017bd7

5 files changed

Lines changed: 154 additions & 2 deletions

File tree

api_names_out.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384023,6 +384023,7 @@
384023384023
"/storagebatchoperations:v1/BucketOperation/rewriteObject": rewrite_object
384024384024
"/storagebatchoperations:v1/BucketOperation/startTime": start_time
384025384025
"/storagebatchoperations:v1/BucketOperation/state": state
384026+
"/storagebatchoperations:v1/BucketOperation/updateObjectCustomContext": update_object_custom_context
384026384027
"/storagebatchoperations:v1/CancelJobRequest": cancel_job_request
384027384028
"/storagebatchoperations:v1/CancelJobRequest/requestId": request_id
384028384029
"/storagebatchoperations:v1/CancelJobResponse": cancel_job_response
@@ -384032,6 +384033,11 @@
384032384033
"/storagebatchoperations:v1/Counters/succeededObjectCount": succeeded_object_count
384033384034
"/storagebatchoperations:v1/Counters/totalBytesFound": total_bytes_found
384034384035
"/storagebatchoperations:v1/Counters/totalObjectCount": total_object_count
384036+
"/storagebatchoperations:v1/CustomContextUpdates": custom_context_updates
384037+
"/storagebatchoperations:v1/CustomContextUpdates/keysToClear": keys_to_clear
384038+
"/storagebatchoperations:v1/CustomContextUpdates/keysToClear/keys_to_clear": keys_to_clear
384039+
"/storagebatchoperations:v1/CustomContextUpdates/updates": updates
384040+
"/storagebatchoperations:v1/CustomContextUpdates/updates/update": update
384035384041
"/storagebatchoperations:v1/DeleteObject": delete_object
384036384042
"/storagebatchoperations:v1/DeleteObject/permanentObjectDeletionEnabled": permanent_object_deletion_enabled
384037384043
"/storagebatchoperations:v1/Empty": empty
@@ -384062,6 +384068,7 @@
384062384068
"/storagebatchoperations:v1/Job/rewriteObject": rewrite_object
384063384069
"/storagebatchoperations:v1/Job/scheduleTime": schedule_time
384064384070
"/storagebatchoperations:v1/Job/state": state
384071+
"/storagebatchoperations:v1/Job/updateObjectCustomContext": update_object_custom_context
384065384072
"/storagebatchoperations:v1/ListBucketOperationsResponse": list_bucket_operations_response
384066384073
"/storagebatchoperations:v1/ListBucketOperationsResponse/bucketOperations": bucket_operations
384067384074
"/storagebatchoperations:v1/ListBucketOperationsResponse/bucketOperations/bucket_operation": bucket_operation
@@ -384099,6 +384106,8 @@
384099384106
"/storagebatchoperations:v1/LoggingConfig/logActions/log_action": log_action
384100384107
"/storagebatchoperations:v1/Manifest": manifest
384101384108
"/storagebatchoperations:v1/Manifest/manifestLocation": manifest_location
384109+
"/storagebatchoperations:v1/ObjectCustomContextPayload": object_custom_context_payload
384110+
"/storagebatchoperations:v1/ObjectCustomContextPayload/value": value
384102384111
"/storagebatchoperations:v1/ObjectRetention": object_retention
384103384112
"/storagebatchoperations:v1/ObjectRetention/retainUntilTime": retain_until_time
384104384113
"/storagebatchoperations:v1/ObjectRetention/retentionMode": retention_mode
@@ -384141,6 +384150,9 @@
384141384150
"/storagebatchoperations:v1/Status/details/detail": detail
384142384151
"/storagebatchoperations:v1/Status/details/detail/detail": detail
384143384152
"/storagebatchoperations:v1/Status/message": message
384153+
"/storagebatchoperations:v1/UpdateObjectCustomContext": update_object_custom_context
384154+
"/storagebatchoperations:v1/UpdateObjectCustomContext/clearAll": clear_all
384155+
"/storagebatchoperations:v1/UpdateObjectCustomContext/customContextUpdates": custom_context_updates
384144384156
"/storagebatchoperations:v1/fields": fields
384145384157
"/storagebatchoperations:v1/key": key
384146384158
"/storagebatchoperations:v1/quotaUser": quota_user

generated/google-apis-storagebatchoperations_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-storagebatchoperations_v1
22

3+
### v0.14.0 (2026-03-08)
4+
5+
* Regenerated from discovery document revision 20260218
6+
37
### v0.13.0 (2026-02-15)
48

59
* Regenerated from discovery document revision 20260204

generated/google-apis-storagebatchoperations_v1/lib/google/apis/storagebatchoperations_v1/classes.rb

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ class BucketOperation
150150
# @return [String]
151151
attr_accessor :state
152152

153+
# Describes options to update object custom contexts.
154+
# Corresponds to the JSON property `updateObjectCustomContext`
155+
# @return [Google::Apis::StoragebatchoperationsV1::UpdateObjectCustomContext]
156+
attr_accessor :update_object_custom_context
157+
153158
def initialize(**args)
154159
update!(**args)
155160
end
@@ -170,6 +175,7 @@ def update!(**args)
170175
@rewrite_object = args[:rewrite_object] if args.key?(:rewrite_object)
171176
@start_time = args[:start_time] if args.key?(:start_time)
172177
@state = args[:state] if args.key?(:state)
178+
@update_object_custom_context = args[:update_object_custom_context] if args.key?(:update_object_custom_context)
173179
end
174180
end
175181

@@ -260,6 +266,33 @@ def update!(**args)
260266
end
261267
end
262268

269+
# Describes a collection of updates to apply to custom contexts identified by
270+
# key.
271+
class CustomContextUpdates
272+
include Google::Apis::Core::Hashable
273+
274+
# Optional. Custom contexts to clear by key. A key cannot be present in both `
275+
# updates` and `keys_to_clear`.
276+
# Corresponds to the JSON property `keysToClear`
277+
# @return [Array<String>]
278+
attr_accessor :keys_to_clear
279+
280+
# Optional. Insert or update the existing custom contexts.
281+
# Corresponds to the JSON property `updates`
282+
# @return [Hash<String,Google::Apis::StoragebatchoperationsV1::ObjectCustomContextPayload>]
283+
attr_accessor :updates
284+
285+
def initialize(**args)
286+
update!(**args)
287+
end
288+
289+
# Update properties of this object
290+
def update!(**args)
291+
@keys_to_clear = args[:keys_to_clear] if args.key?(:keys_to_clear)
292+
@updates = args[:updates] if args.key?(:updates)
293+
end
294+
end
295+
263296
# Describes options to delete an object.
264297
class DeleteObject
265298
include Google::Apis::Core::Hashable
@@ -454,6 +487,11 @@ class Job
454487
# @return [String]
455488
attr_accessor :state
456489

490+
# Describes options to update object custom contexts.
491+
# Corresponds to the JSON property `updateObjectCustomContext`
492+
# @return [Google::Apis::StoragebatchoperationsV1::UpdateObjectCustomContext]
493+
attr_accessor :update_object_custom_context
494+
457495
def initialize(**args)
458496
update!(**args)
459497
end
@@ -476,6 +514,7 @@ def update!(**args)
476514
@rewrite_object = args[:rewrite_object] if args.key?(:rewrite_object)
477515
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
478516
@state = args[:state] if args.key?(:state)
517+
@update_object_custom_context = args[:update_object_custom_context] if args.key?(:update_object_custom_context)
479518
end
480519
end
481520

@@ -699,6 +738,28 @@ def update!(**args)
699738
end
700739
end
701740

741+
# Describes the payload of a user defined object custom context.
742+
class ObjectCustomContextPayload
743+
include Google::Apis::Core::Hashable
744+
745+
# The value of the object custom context. If set, `value` must NOT be an empty
746+
# string since it is a required field in custom context. If unset, `value` will
747+
# be ignored and no changes will be made to the `value` field of the custom
748+
# context payload.
749+
# Corresponds to the JSON property `value`
750+
# @return [String]
751+
attr_accessor :value
752+
753+
def initialize(**args)
754+
update!(**args)
755+
end
756+
757+
# Update properties of this object
758+
def update!(**args)
759+
@value = args[:value] if args.key?(:value)
760+
end
761+
end
762+
702763
# Describes options for object retention update.
703764
class ObjectRetention
704765
include Google::Apis::Core::Hashable
@@ -1035,6 +1096,34 @@ def update!(**args)
10351096
@message = args[:message] if args.key?(:message)
10361097
end
10371098
end
1099+
1100+
# Describes options to update object custom contexts.
1101+
class UpdateObjectCustomContext
1102+
include Google::Apis::Core::Hashable
1103+
1104+
# If set, must be set to true and all existing object custom contexts will be
1105+
# deleted.
1106+
# Corresponds to the JSON property `clearAll`
1107+
# @return [Boolean]
1108+
attr_accessor :clear_all
1109+
alias_method :clear_all?, :clear_all
1110+
1111+
# Describes a collection of updates to apply to custom contexts identified by
1112+
# key.
1113+
# Corresponds to the JSON property `customContextUpdates`
1114+
# @return [Google::Apis::StoragebatchoperationsV1::CustomContextUpdates]
1115+
attr_accessor :custom_context_updates
1116+
1117+
def initialize(**args)
1118+
update!(**args)
1119+
end
1120+
1121+
# Update properties of this object
1122+
def update!(**args)
1123+
@clear_all = args[:clear_all] if args.key?(:clear_all)
1124+
@custom_context_updates = args[:custom_context_updates] if args.key?(:custom_context_updates)
1125+
end
1126+
end
10381127
end
10391128
end
10401129
end

generated/google-apis-storagebatchoperations_v1/lib/google/apis/storagebatchoperations_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module StoragebatchoperationsV1
1818
# Version of the google-apis-storagebatchoperations_v1 gem
19-
GEM_VERSION = "0.13.0"
19+
GEM_VERSION = "0.14.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20260204"
25+
REVISION = "20260218"
2626
end
2727
end
2828
end

generated/google-apis-storagebatchoperations_v1/lib/google/apis/storagebatchoperations_v1/representations.rb

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
6464
include Google::Apis::Core::JsonObjectSupport
6565
end
6666

67+
class CustomContextUpdates
68+
class Representation < Google::Apis::Core::JsonRepresentation; end
69+
70+
include Google::Apis::Core::JsonObjectSupport
71+
end
72+
6773
class DeleteObject
6874
class Representation < Google::Apis::Core::JsonRepresentation; end
6975

@@ -136,6 +142,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
136142
include Google::Apis::Core::JsonObjectSupport
137143
end
138144

145+
class ObjectCustomContextPayload
146+
class Representation < Google::Apis::Core::JsonRepresentation; end
147+
148+
include Google::Apis::Core::JsonObjectSupport
149+
end
150+
139151
class ObjectRetention
140152
class Representation < Google::Apis::Core::JsonRepresentation; end
141153

@@ -184,6 +196,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
184196
include Google::Apis::Core::JsonObjectSupport
185197
end
186198

199+
class UpdateObjectCustomContext
200+
class Representation < Google::Apis::Core::JsonRepresentation; end
201+
202+
include Google::Apis::Core::JsonObjectSupport
203+
end
204+
187205
class Bucket
188206
# @private
189207
class Representation < Google::Apis::Core::JsonRepresentation
@@ -228,6 +246,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
228246

229247
property :start_time, as: 'startTime'
230248
property :state, as: 'state'
249+
property :update_object_custom_context, as: 'updateObjectCustomContext', class: Google::Apis::StoragebatchoperationsV1::UpdateObjectCustomContext, decorator: Google::Apis::StoragebatchoperationsV1::UpdateObjectCustomContext::Representation
250+
231251
end
232252
end
233253

@@ -260,6 +280,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
260280
end
261281
end
262282

283+
class CustomContextUpdates
284+
# @private
285+
class Representation < Google::Apis::Core::JsonRepresentation
286+
collection :keys_to_clear, as: 'keysToClear'
287+
hash :updates, as: 'updates', class: Google::Apis::StoragebatchoperationsV1::ObjectCustomContextPayload, decorator: Google::Apis::StoragebatchoperationsV1::ObjectCustomContextPayload::Representation
288+
289+
end
290+
end
291+
263292
class DeleteObject
264293
# @private
265294
class Representation < Google::Apis::Core::JsonRepresentation
@@ -318,6 +347,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
318347

319348
property :schedule_time, as: 'scheduleTime'
320349
property :state, as: 'state'
350+
property :update_object_custom_context, as: 'updateObjectCustomContext', class: Google::Apis::StoragebatchoperationsV1::UpdateObjectCustomContext, decorator: Google::Apis::StoragebatchoperationsV1::UpdateObjectCustomContext::Representation
351+
321352
end
322353
end
323354

@@ -386,6 +417,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
386417
end
387418
end
388419

420+
class ObjectCustomContextPayload
421+
# @private
422+
class Representation < Google::Apis::Core::JsonRepresentation
423+
property :value, as: 'value'
424+
end
425+
end
426+
389427
class ObjectRetention
390428
# @private
391429
class Representation < Google::Apis::Core::JsonRepresentation
@@ -464,6 +502,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
464502
property :message, as: 'message'
465503
end
466504
end
505+
506+
class UpdateObjectCustomContext
507+
# @private
508+
class Representation < Google::Apis::Core::JsonRepresentation
509+
property :clear_all, as: 'clearAll'
510+
property :custom_context_updates, as: 'customContextUpdates', class: Google::Apis::StoragebatchoperationsV1::CustomContextUpdates, decorator: Google::Apis::StoragebatchoperationsV1::CustomContextUpdates::Representation
511+
512+
end
513+
end
467514
end
468515
end
469516
end

0 commit comments

Comments
 (0)