generated/google/apis/storage_v1/classes.rb in google-api-client-0.38.0 vs generated/google/apis/storage_v1/classes.rb in google-api-client-0.39.0
- old
+ new
@@ -497,10 +497,23 @@
# specified date in UTC.
# Corresponds to the JSON property `createdBefore`
# @return [Date]
attr_accessor :created_before
+ # A timestamp in RFC 3339 format. This condition is satisfied when the custom
+ # time on an object is before this timestamp.
+ # Corresponds to the JSON property `customTimeBefore`
+ # @return [DateTime]
+ attr_accessor :custom_time_before
+
+ # Number of days elapsed since the user-specified timestamp set on an object.
+ # The condition is satisfied if the days elapsed is at least this number. If no
+ # custom timestamp is specified on an object, the condition does not apply.
+ # Corresponds to the JSON property `daysSinceCustomTime`
+ # @return [Fixnum]
+ attr_accessor :days_since_custom_time
+
# Relevant only for versioned objects. If the value is true, this condition
# matches live objects; if the value is false, it matches archived objects.
# Corresponds to the JSON property `isLive`
# @return [Boolean]
attr_accessor :is_live
@@ -535,10 +548,12 @@
# Update properties of this object
def update!(**args)
@age = args[:age] if args.key?(:age)
@created_before = args[:created_before] if args.key?(:created_before)
+ @custom_time_before = args[:custom_time_before] if args.key?(:custom_time_before)
+ @days_since_custom_time = args[:days_since_custom_time] if args.key?(:days_since_custom_time)
@is_live = args[:is_live] if args.key?(:is_live)
@matches_pattern = args[:matches_pattern] if args.key?(:matches_pattern)
@matches_storage_class = args[:matches_storage_class] if args.key?(:matches_storage_class)
@num_newer_versions = args[:num_newer_versions] if args.key?(:num_newer_versions)
end
@@ -1362,10 +1377,15 @@
# see Hashes and ETags: Best Practices.
# Corresponds to the JSON property `crc32c`
# @return [String]
attr_accessor :crc32c
+ # A timestamp in RFC 3339 format specified by the user for an object.
+ # Corresponds to the JSON property `customTime`
+ # @return [DateTime]
+ attr_accessor :custom_time
+
# Metadata of customer-supplied encryption key, if the object is encrypted by
# such a key.
# Corresponds to the JSON property `customerEncryption`
# @return [Google::Apis::StorageV1::Object::CustomerEncryption]
attr_accessor :customer_encryption
@@ -1517,9 +1537,10 @@
@content_disposition = args[:content_disposition] if args.key?(:content_disposition)
@content_encoding = args[:content_encoding] if args.key?(:content_encoding)
@content_language = args[:content_language] if args.key?(:content_language)
@content_type = args[:content_type] if args.key?(:content_type)
@crc32c = args[:crc32c] if args.key?(:crc32c)
+ @custom_time = args[:custom_time] if args.key?(:custom_time)
@customer_encryption = args[:customer_encryption] if args.key?(:customer_encryption)
@etag = args[:etag] if args.key?(:etag)
@event_based_hold = args[:event_based_hold] if args.key?(:event_based_hold)
@generation = args[:generation] if args.key?(:generation)
@id = args[:id] if args.key?(:id)