diff --git a/api_names_out.yaml b/api_names_out.yaml index 3e72c8b351a..6678481ace0 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -364868,6 +364868,9 @@ "/storagebatchoperations:v1/LoggingConfig/logActions/log_action": log_action "/storagebatchoperations:v1/Manifest": manifest "/storagebatchoperations:v1/Manifest/manifestLocation": manifest_location +"/storagebatchoperations:v1/ObjectRetention": object_retention +"/storagebatchoperations:v1/ObjectRetention/retainUntilTime": retain_until_time +"/storagebatchoperations:v1/ObjectRetention/retentionMode": retention_mode "/storagebatchoperations:v1/Operation": operation "/storagebatchoperations:v1/Operation/done": done "/storagebatchoperations:v1/Operation/error": error @@ -364895,6 +364898,7 @@ "/storagebatchoperations:v1/PutMetadata/customMetadata": custom_metadata "/storagebatchoperations:v1/PutMetadata/customMetadata/custom_metadatum": custom_metadatum "/storagebatchoperations:v1/PutMetadata/customTime": custom_time +"/storagebatchoperations:v1/PutMetadata/objectRetention": object_retention "/storagebatchoperations:v1/PutObjectHold": put_object_hold "/storagebatchoperations:v1/PutObjectHold/eventBasedHold": event_based_hold "/storagebatchoperations:v1/PutObjectHold/temporaryHold": temporary_hold diff --git a/generated/google-apis-storagebatchoperations_v1/CHANGELOG.md b/generated/google-apis-storagebatchoperations_v1/CHANGELOG.md index fe70e62f558..729f9b59abe 100644 --- a/generated/google-apis-storagebatchoperations_v1/CHANGELOG.md +++ b/generated/google-apis-storagebatchoperations_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-storagebatchoperations_v1 +### v0.7.0 (2025-10-19) + +* Regenerated from discovery document revision 20251015 + ### v0.6.0 (2025-10-05) * Regenerated from discovery document revision 20250924 diff --git a/generated/google-apis-storagebatchoperations_v1/lib/google/apis/storagebatchoperations_v1/classes.rb b/generated/google-apis-storagebatchoperations_v1/lib/google/apis/storagebatchoperations_v1/classes.rb index 0c46e33ce1e..bc9171399f4 100644 --- a/generated/google-apis-storagebatchoperations_v1/lib/google/apis/storagebatchoperations_v1/classes.rb +++ b/generated/google-apis-storagebatchoperations_v1/lib/google/apis/storagebatchoperations_v1/classes.rb @@ -544,6 +544,33 @@ def update!(**args) end end + # Describes options for object retention update. + class ObjectRetention + include Google::Apis::Core::Hashable + + # Required. The time when the object will be retained until. UNSET will clear + # the retention. Must be specified in RFC 3339 format e.g. YYYY-MM-DD'T'HH:MM:SS. + # SS'Z' or YYYY-MM-DD'T'HH:MM:SS'Z'. + # Corresponds to the JSON property `retainUntilTime` + # @return [String] + attr_accessor :retain_until_time + + # Required. The retention mode of the object. + # Corresponds to the JSON property `retentionMode` + # @return [String] + attr_accessor :retention_mode + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @retain_until_time = args[:retain_until_time] if args.key?(:retain_until_time) + @retention_mode = args[:retention_mode] if args.key?(:retention_mode) + end + end + # This resource represents a long-running operation that is the result of a # network API call. class Operation @@ -740,6 +767,11 @@ class PutMetadata # @return [String] attr_accessor :custom_time + # Describes options for object retention update. + # Corresponds to the JSON property `objectRetention` + # @return [Google::Apis::StoragebatchoperationsV1::ObjectRetention] + attr_accessor :object_retention + def initialize(**args) update!(**args) end @@ -753,6 +785,7 @@ def update!(**args) @content_type = args[:content_type] if args.key?(:content_type) @custom_metadata = args[:custom_metadata] if args.key?(:custom_metadata) @custom_time = args[:custom_time] if args.key?(:custom_time) + @object_retention = args[:object_retention] if args.key?(:object_retention) end end diff --git a/generated/google-apis-storagebatchoperations_v1/lib/google/apis/storagebatchoperations_v1/gem_version.rb b/generated/google-apis-storagebatchoperations_v1/lib/google/apis/storagebatchoperations_v1/gem_version.rb index 70fc36a3700..2e8881742f1 100644 --- a/generated/google-apis-storagebatchoperations_v1/lib/google/apis/storagebatchoperations_v1/gem_version.rb +++ b/generated/google-apis-storagebatchoperations_v1/lib/google/apis/storagebatchoperations_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module StoragebatchoperationsV1 # Version of the google-apis-storagebatchoperations_v1 gem - GEM_VERSION = "0.6.0" + GEM_VERSION = "0.7.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20250924" + REVISION = "20251015" end end end diff --git a/generated/google-apis-storagebatchoperations_v1/lib/google/apis/storagebatchoperations_v1/representations.rb b/generated/google-apis-storagebatchoperations_v1/lib/google/apis/storagebatchoperations_v1/representations.rb index 1a1d11094cb..aa53c1eedb3 100644 --- a/generated/google-apis-storagebatchoperations_v1/lib/google/apis/storagebatchoperations_v1/representations.rb +++ b/generated/google-apis-storagebatchoperations_v1/lib/google/apis/storagebatchoperations_v1/representations.rb @@ -124,6 +124,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ObjectRetention + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Operation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -327,6 +333,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ObjectRetention + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :retain_until_time, as: 'retainUntilTime' + property :retention_mode, as: 'retentionMode' + end + end + class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -369,6 +383,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :content_type, as: 'contentType' hash :custom_metadata, as: 'customMetadata' property :custom_time, as: 'customTime' + property :object_retention, as: 'objectRetention', class: Google::Apis::StoragebatchoperationsV1::ObjectRetention, decorator: Google::Apis::StoragebatchoperationsV1::ObjectRetention::Representation + end end