google-apis-storage_v1 0.53.0 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b147f0d26469a3bf45821f8830d62eb2080f3a75d3513b5ca76a9a349b0c037
4
- data.tar.gz: 722356e698889ca540051265e25215f65d3cd86e07bf0d0182bc3d5bc8ebef53
3
+ metadata.gz: fa970eb10daa7086ca122e06870da25f4dda6e6a8924ddb2f815cbbe3f0552c8
4
+ data.tar.gz: 147ca1aff8d72b18d138c57728e49061012076bfca6d4f19cf56138fa50619b1
5
5
  SHA512:
6
- metadata.gz: 59facda71b1c0adbfb638ff1c9c9cf170d4ed13530ad97d874048915c1037d9624de1c7cc53dd3e4898b6526d1f2c6511f12cde41cfb5b1108864e59d7a95d6e
7
- data.tar.gz: 20c81e13338dbd772d8827130b921290fbee2e12a29f076aee190cae321abbb28a53ce0a94bd2b5c055414fa28d379bebc3c8bb9d9c9f6db87a7970ca2deb181
6
+ metadata.gz: ede8047d5f367bc45ad29d7a2f903ef0f667c58e12ec872a3a5aef91d87aeff58d607e2c4fde816ffffe78bf4e401731b113bacb0aa6abd202b3391704b015c5
7
+ data.tar.gz: bf6477497b460bc5661471daa7370702220404d7364feae51536b267ca3d5911576bc00b67c6a8074b0bd42655e3e4b1d0cf49bef951072989258df9631143cd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-storage_v1
2
2
 
3
+ ### v0.54.0 (2025-07-06)
4
+
5
+ * Regenerated from discovery document revision 20250629
6
+
3
7
  ### v0.53.0 (2025-06-15)
4
8
 
5
9
  * Regenerated from discovery document revision 20250605
@@ -2351,6 +2351,13 @@ module Google
2351
2351
  # @return [String]
2352
2352
  attr_accessor :content_type
2353
2353
 
2354
+ # User-defined or system-defined object contexts. Each object context is a key-
2355
+ # payload pair, where the key provides the identification and the payload holds
2356
+ # the associated value and additional metadata.
2357
+ # Corresponds to the JSON property `contexts`
2358
+ # @return [Google::Apis::StorageV1::Object::Contexts]
2359
+ attr_accessor :contexts
2360
+
2354
2361
  # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in
2355
2362
  # big-endian byte order. For more information about using the CRC32c checksum,
2356
2363
  # see [Data Validation and Change Detection](https://cloud.google.com/storage/
@@ -2552,6 +2559,7 @@ module Google
2552
2559
  @content_encoding = args[:content_encoding] if args.key?(:content_encoding)
2553
2560
  @content_language = args[:content_language] if args.key?(:content_language)
2554
2561
  @content_type = args[:content_type] if args.key?(:content_type)
2562
+ @contexts = args[:contexts] if args.key?(:contexts)
2555
2563
  @crc32c = args[:crc32c] if args.key?(:crc32c)
2556
2564
  @custom_time = args[:custom_time] if args.key?(:custom_time)
2557
2565
  @customer_encryption = args[:customer_encryption] if args.key?(:customer_encryption)
@@ -2583,6 +2591,27 @@ module Google
2583
2591
  @updated = args[:updated] if args.key?(:updated)
2584
2592
  end
2585
2593
 
2594
+ # User-defined or system-defined object contexts. Each object context is a key-
2595
+ # payload pair, where the key provides the identification and the payload holds
2596
+ # the associated value and additional metadata.
2597
+ class Contexts
2598
+ include Google::Apis::Core::Hashable
2599
+
2600
+ # User-defined object contexts.
2601
+ # Corresponds to the JSON property `custom`
2602
+ # @return [Hash<String,Google::Apis::StorageV1::ObjectCustomContextPayload>]
2603
+ attr_accessor :custom
2604
+
2605
+ def initialize(**args)
2606
+ update!(**args)
2607
+ end
2608
+
2609
+ # Update properties of this object
2610
+ def update!(**args)
2611
+ @custom = args[:custom] if args.key?(:custom)
2612
+ end
2613
+ end
2614
+
2586
2615
  # Metadata of customer-supplied encryption key, if the object is encrypted by
2587
2616
  # such a key.
2588
2617
  class CustomerEncryption
@@ -2815,6 +2844,37 @@ module Google
2815
2844
  end
2816
2845
  end
2817
2846
 
2847
+ # The payload of a single user-defined object context.
2848
+ class ObjectCustomContextPayload
2849
+ include Google::Apis::Core::Hashable
2850
+
2851
+ # The time at which the object context was created in RFC 3339 format.
2852
+ # Corresponds to the JSON property `createTime`
2853
+ # @return [DateTime]
2854
+ attr_accessor :create_time
2855
+
2856
+ # The time at which the object context was last updated in RFC 3339 format.
2857
+ # Corresponds to the JSON property `updateTime`
2858
+ # @return [DateTime]
2859
+ attr_accessor :update_time
2860
+
2861
+ # The value of the object context.
2862
+ # Corresponds to the JSON property `value`
2863
+ # @return [String]
2864
+ attr_accessor :value
2865
+
2866
+ def initialize(**args)
2867
+ update!(**args)
2868
+ end
2869
+
2870
+ # Update properties of this object
2871
+ def update!(**args)
2872
+ @create_time = args[:create_time] if args.key?(:create_time)
2873
+ @update_time = args[:update_time] if args.key?(:update_time)
2874
+ @value = args[:value] if args.key?(:value)
2875
+ end
2876
+ end
2877
+
2818
2878
  # A list of objects.
2819
2879
  class Objects
2820
2880
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module StorageV1
18
18
  # Version of the google-apis-storage_v1 gem
19
- GEM_VERSION = "0.53.0"
19
+ GEM_VERSION = "0.54.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250605"
25
+ REVISION = "20250629"
26
26
  end
27
27
  end
28
28
  end
@@ -343,6 +343,12 @@ module Google
343
343
  class Object
344
344
  class Representation < Google::Apis::Core::JsonRepresentation; end
345
345
 
346
+ class Contexts
347
+ class Representation < Google::Apis::Core::JsonRepresentation; end
348
+
349
+ include Google::Apis::Core::JsonObjectSupport
350
+ end
351
+
346
352
  class CustomerEncryption
347
353
  class Representation < Google::Apis::Core::JsonRepresentation; end
348
354
 
@@ -382,6 +388,12 @@ module Google
382
388
  include Google::Apis::Core::JsonObjectSupport
383
389
  end
384
390
 
391
+ class ObjectCustomContextPayload
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
385
397
  class Objects
386
398
  class Representation < Google::Apis::Core::JsonRepresentation; end
387
399
 
@@ -1054,6 +1066,8 @@ module Google
1054
1066
  property :content_encoding, as: 'contentEncoding'
1055
1067
  property :content_language, as: 'contentLanguage'
1056
1068
  property :content_type, as: 'contentType'
1069
+ property :contexts, as: 'contexts', class: Google::Apis::StorageV1::Object::Contexts, decorator: Google::Apis::StorageV1::Object::Contexts::Representation
1070
+
1057
1071
  property :crc32c, as: 'crc32c'
1058
1072
  property :custom_time, as: 'customTime', type: DateTime
1059
1073
 
@@ -1097,6 +1111,14 @@ module Google
1097
1111
 
1098
1112
  end
1099
1113
 
1114
+ class Contexts
1115
+ # @private
1116
+ class Representation < Google::Apis::Core::JsonRepresentation
1117
+ hash :custom, as: 'custom', class: Google::Apis::StorageV1::ObjectCustomContextPayload, decorator: Google::Apis::StorageV1::ObjectCustomContextPayload::Representation
1118
+
1119
+ end
1120
+ end
1121
+
1100
1122
  class CustomerEncryption
1101
1123
  # @private
1102
1124
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1160,6 +1182,17 @@ module Google
1160
1182
  end
1161
1183
  end
1162
1184
 
1185
+ class ObjectCustomContextPayload
1186
+ # @private
1187
+ class Representation < Google::Apis::Core::JsonRepresentation
1188
+ property :create_time, as: 'createTime', type: DateTime
1189
+
1190
+ property :update_time, as: 'updateTime', type: DateTime
1191
+
1192
+ property :value, as: 'value'
1193
+ end
1194
+ end
1195
+
1163
1196
  class Objects
1164
1197
  # @private
1165
1198
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2913,6 +2913,9 @@ module Google
2913
2913
  # Filter results to objects whose names are lexicographically before endOffset.
2914
2914
  # If startOffset is also set, the objects listed will have names between
2915
2915
  # startOffset (inclusive) and endOffset (exclusive).
2916
+ # @param [String] filter
2917
+ # Filter the returned objects. Currently only supported for the contexts field.
2918
+ # If delimiter is set, the returned prefixes are exempt from this filter.
2916
2919
  # @param [Boolean] include_folders_as_prefixes
2917
2920
  # Only applicable if delimiter is set to '/'. If true, will also include folders
2918
2921
  # and managed folders (besides objects) in the returned prefixes.
@@ -2966,13 +2969,14 @@ module Google
2966
2969
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2967
2970
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2968
2971
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2969
- def list_objects(bucket, delimiter: nil, end_offset: nil, include_folders_as_prefixes: nil, include_trailing_delimiter: nil, match_glob: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, soft_deleted: nil, start_offset: nil, user_project: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2972
+ def list_objects(bucket, delimiter: nil, end_offset: nil, filter: nil, include_folders_as_prefixes: nil, include_trailing_delimiter: nil, match_glob: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, soft_deleted: nil, start_offset: nil, user_project: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2970
2973
  command = make_simple_command(:get, 'b/{bucket}/o', options)
2971
2974
  command.response_representation = Google::Apis::StorageV1::Objects::Representation
2972
2975
  command.response_class = Google::Apis::StorageV1::Objects
2973
2976
  command.params['bucket'] = bucket unless bucket.nil?
2974
2977
  command.query['delimiter'] = delimiter unless delimiter.nil?
2975
2978
  command.query['endOffset'] = end_offset unless end_offset.nil?
2979
+ command.query['filter'] = filter unless filter.nil?
2976
2980
  command.query['includeFoldersAsPrefixes'] = include_folders_as_prefixes unless include_folders_as_prefixes.nil?
2977
2981
  command.query['includeTrailingDelimiter'] = include_trailing_delimiter unless include_trailing_delimiter.nil?
2978
2982
  command.query['matchGlob'] = match_glob unless match_glob.nil?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-storage_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.53.0
4
+ version: 0.54.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storage_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.53.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.54.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storage_v1
62
62
  rdoc_options: []
63
63
  require_paths: