Skip to content

Commit 4bcadb3

Browse files
feat: Automated regeneration of storagebatchoperations v1 client (#24648)
Auto-created at 2025-10-19 09:21:38 +0000 using the toys pull request generator.
1 parent 057a446 commit 4bcadb3

File tree

5 files changed

+59
-2
lines changed

5 files changed

+59
-2
lines changed

api_names_out.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364977,6 +364977,9 @@
364977364977
"/storagebatchoperations:v1/LoggingConfig/logActions/log_action": log_action
364978364978
"/storagebatchoperations:v1/Manifest": manifest
364979364979
"/storagebatchoperations:v1/Manifest/manifestLocation": manifest_location
364980+
"/storagebatchoperations:v1/ObjectRetention": object_retention
364981+
"/storagebatchoperations:v1/ObjectRetention/retainUntilTime": retain_until_time
364982+
"/storagebatchoperations:v1/ObjectRetention/retentionMode": retention_mode
364980364983
"/storagebatchoperations:v1/Operation": operation
364981364984
"/storagebatchoperations:v1/Operation/done": done
364982364985
"/storagebatchoperations:v1/Operation/error": error
@@ -365004,6 +365007,7 @@
365004365007
"/storagebatchoperations:v1/PutMetadata/customMetadata": custom_metadata
365005365008
"/storagebatchoperations:v1/PutMetadata/customMetadata/custom_metadatum": custom_metadatum
365006365009
"/storagebatchoperations:v1/PutMetadata/customTime": custom_time
365010+
"/storagebatchoperations:v1/PutMetadata/objectRetention": object_retention
365007365011
"/storagebatchoperations:v1/PutObjectHold": put_object_hold
365008365012
"/storagebatchoperations:v1/PutObjectHold/eventBasedHold": event_based_hold
365009365013
"/storagebatchoperations:v1/PutObjectHold/temporaryHold": temporary_hold

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.7.0 (2025-10-19)
4+
5+
* Regenerated from discovery document revision 20251015
6+
37
### v0.6.0 (2025-10-05)
48

59
* Regenerated from discovery document revision 20250924

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,33 @@ def update!(**args)
544544
end
545545
end
546546

547+
# Describes options for object retention update.
548+
class ObjectRetention
549+
include Google::Apis::Core::Hashable
550+
551+
# Required. The time when the object will be retained until. UNSET will clear
552+
# the retention. Must be specified in RFC 3339 format e.g. YYYY-MM-DD'T'HH:MM:SS.
553+
# SS'Z' or YYYY-MM-DD'T'HH:MM:SS'Z'.
554+
# Corresponds to the JSON property `retainUntilTime`
555+
# @return [String]
556+
attr_accessor :retain_until_time
557+
558+
# Required. The retention mode of the object.
559+
# Corresponds to the JSON property `retentionMode`
560+
# @return [String]
561+
attr_accessor :retention_mode
562+
563+
def initialize(**args)
564+
update!(**args)
565+
end
566+
567+
# Update properties of this object
568+
def update!(**args)
569+
@retain_until_time = args[:retain_until_time] if args.key?(:retain_until_time)
570+
@retention_mode = args[:retention_mode] if args.key?(:retention_mode)
571+
end
572+
end
573+
547574
# This resource represents a long-running operation that is the result of a
548575
# network API call.
549576
class Operation
@@ -740,6 +767,11 @@ class PutMetadata
740767
# @return [String]
741768
attr_accessor :custom_time
742769

770+
# Describes options for object retention update.
771+
# Corresponds to the JSON property `objectRetention`
772+
# @return [Google::Apis::StoragebatchoperationsV1::ObjectRetention]
773+
attr_accessor :object_retention
774+
743775
def initialize(**args)
744776
update!(**args)
745777
end
@@ -753,6 +785,7 @@ def update!(**args)
753785
@content_type = args[:content_type] if args.key?(:content_type)
754786
@custom_metadata = args[:custom_metadata] if args.key?(:custom_metadata)
755787
@custom_time = args[:custom_time] if args.key?(:custom_time)
788+
@object_retention = args[:object_retention] if args.key?(:object_retention)
756789
end
757790
end
758791

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.6.0"
19+
GEM_VERSION = "0.7.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 = "20250924"
25+
REVISION = "20251015"
2626
end
2727
end
2828
end

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
124124
include Google::Apis::Core::JsonObjectSupport
125125
end
126126

127+
class ObjectRetention
128+
class Representation < Google::Apis::Core::JsonRepresentation; end
129+
130+
include Google::Apis::Core::JsonObjectSupport
131+
end
132+
127133
class Operation
128134
class Representation < Google::Apis::Core::JsonRepresentation; end
129135

@@ -327,6 +333,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
327333
end
328334
end
329335

336+
class ObjectRetention
337+
# @private
338+
class Representation < Google::Apis::Core::JsonRepresentation
339+
property :retain_until_time, as: 'retainUntilTime'
340+
property :retention_mode, as: 'retentionMode'
341+
end
342+
end
343+
330344
class Operation
331345
# @private
332346
class Representation < Google::Apis::Core::JsonRepresentation
@@ -369,6 +383,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
369383
property :content_type, as: 'contentType'
370384
hash :custom_metadata, as: 'customMetadata'
371385
property :custom_time, as: 'customTime'
386+
property :object_retention, as: 'objectRetention', class: Google::Apis::StoragebatchoperationsV1::ObjectRetention, decorator: Google::Apis::StoragebatchoperationsV1::ObjectRetention::Representation
387+
372388
end
373389
end
374390

0 commit comments

Comments
 (0)