Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down