google-apis-storage_v1 0.52.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: 5b741919bd80142548b84a6e8bcde0c44d0951b7d04a33b221e98728b34382c8
4
- data.tar.gz: 588099d3946f8e424defd3fdd138dd6dbaa0c43f194d16e8ef6ace0704d34bf2
3
+ metadata.gz: fa970eb10daa7086ca122e06870da25f4dda6e6a8924ddb2f815cbbe3f0552c8
4
+ data.tar.gz: 147ca1aff8d72b18d138c57728e49061012076bfca6d4f19cf56138fa50619b1
5
5
  SHA512:
6
- metadata.gz: 2a57414306079dd0c9b6f476b0bd1323ad0baca977c631f6d27e3f3e778fcb6c19085c1b47915d0e39caae5412bde86e40a02fd1d8764a00b8409716e33d5353
7
- data.tar.gz: 998f5382077fca007ca6e56de942ee62aa965e905bdd8eebef14d7ae1c5e521b5544b62e03edeeaca499ce89c367e27db545b6d3f64aab69de0516a0a1f9848c
6
+ metadata.gz: ede8047d5f367bc45ad29d7a2f903ef0f667c58e12ec872a3a5aef91d87aeff58d607e2c4fde816ffffe78bf4e401731b113bacb0aa6abd202b3391704b015c5
7
+ data.tar.gz: bf6477497b460bc5661471daa7370702220404d7364feae51536b267ca3d5911576bc00b67c6a8074b0bd42655e3e4b1d0cf49bef951072989258df9631143cd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.53.0 (2025-06-15)
8
+
9
+ * Regenerated from discovery document revision 20250605
10
+
3
11
  ### v0.52.0 (2025-06-01)
4
12
 
5
13
  * Regenerated from discovery document revision 20250524
@@ -717,6 +717,13 @@ module Google
717
717
  class IpFilter
718
718
  include Google::Apis::Core::Hashable
719
719
 
720
+ # Whether to allow all service agents to access the bucket regardless of the IP
721
+ # filter configuration.
722
+ # Corresponds to the JSON property `allowAllServiceAgentAccess`
723
+ # @return [Boolean]
724
+ attr_accessor :allow_all_service_agent_access
725
+ alias_method :allow_all_service_agent_access?, :allow_all_service_agent_access
726
+
720
727
  # Whether to allow cross-org VPCs in the bucket's IP filter configuration.
721
728
  # Corresponds to the JSON property `allowCrossOrgVpcs`
722
729
  # @return [Boolean]
@@ -745,6 +752,7 @@ module Google
745
752
 
746
753
  # Update properties of this object
747
754
  def update!(**args)
755
+ @allow_all_service_agent_access = args[:allow_all_service_agent_access] if args.key?(:allow_all_service_agent_access)
748
756
  @allow_cross_org_vpcs = args[:allow_cross_org_vpcs] if args.key?(:allow_cross_org_vpcs)
749
757
  @mode = args[:mode] if args.key?(:mode)
750
758
  @public_network_source = args[:public_network_source] if args.key?(:public_network_source)
@@ -2343,6 +2351,13 @@ module Google
2343
2351
  # @return [String]
2344
2352
  attr_accessor :content_type
2345
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
+
2346
2361
  # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in
2347
2362
  # big-endian byte order. For more information about using the CRC32c checksum,
2348
2363
  # see [Data Validation and Change Detection](https://cloud.google.com/storage/
@@ -2544,6 +2559,7 @@ module Google
2544
2559
  @content_encoding = args[:content_encoding] if args.key?(:content_encoding)
2545
2560
  @content_language = args[:content_language] if args.key?(:content_language)
2546
2561
  @content_type = args[:content_type] if args.key?(:content_type)
2562
+ @contexts = args[:contexts] if args.key?(:contexts)
2547
2563
  @crc32c = args[:crc32c] if args.key?(:crc32c)
2548
2564
  @custom_time = args[:custom_time] if args.key?(:custom_time)
2549
2565
  @customer_encryption = args[:customer_encryption] if args.key?(:customer_encryption)
@@ -2575,6 +2591,27 @@ module Google
2575
2591
  @updated = args[:updated] if args.key?(:updated)
2576
2592
  end
2577
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
+
2578
2615
  # Metadata of customer-supplied encryption key, if the object is encrypted by
2579
2616
  # such a key.
2580
2617
  class CustomerEncryption
@@ -2807,6 +2844,37 @@ module Google
2807
2844
  end
2808
2845
  end
2809
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
+
2810
2878
  # A list of objects.
2811
2879
  class Objects
2812
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.52.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 = "20250524"
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
 
@@ -616,6 +628,7 @@ module Google
616
628
  class IpFilter
617
629
  # @private
618
630
  class Representation < Google::Apis::Core::JsonRepresentation
631
+ property :allow_all_service_agent_access, as: 'allowAllServiceAgentAccess'
619
632
  property :allow_cross_org_vpcs, as: 'allowCrossOrgVpcs'
620
633
  property :mode, as: 'mode'
621
634
  property :public_network_source, as: 'publicNetworkSource', class: Google::Apis::StorageV1::Bucket::IpFilter::PublicNetworkSource, decorator: Google::Apis::StorageV1::Bucket::IpFilter::PublicNetworkSource::Representation
@@ -1053,6 +1066,8 @@ module Google
1053
1066
  property :content_encoding, as: 'contentEncoding'
1054
1067
  property :content_language, as: 'contentLanguage'
1055
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
+
1056
1071
  property :crc32c, as: 'crc32c'
1057
1072
  property :custom_time, as: 'customTime', type: DateTime
1058
1073
 
@@ -1096,6 +1111,14 @@ module Google
1096
1111
 
1097
1112
  end
1098
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
+
1099
1122
  class CustomerEncryption
1100
1123
  # @private
1101
1124
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1159,6 +1182,17 @@ module Google
1159
1182
  end
1160
1183
  end
1161
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
+
1162
1196
  class Objects
1163
1197
  # @private
1164
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.52.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.52.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: