google-apis-storage_v1 0.56.0 → 0.63.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: 1be8f7fbd87aa2831b6f9d6355a0f0933a530a7b986e77b0e2cf34b832225dfd
4
- data.tar.gz: 9f5f0e6ce00326243a02e36558118d6bedf93c5e5595eae5c660ff875c91f42e
3
+ metadata.gz: e3f6d212025eb57b7c7ba8e4ec054f2dd6b4c29ff0c04fc795e4082abc29de34
4
+ data.tar.gz: 5c413dd0a2fba1d7b5db744b2d1a14b408fe2b5db276865848a89e1b7947c33d
5
5
  SHA512:
6
- metadata.gz: 1db84f3cbf54976e3625ed3a5b98397d4e70d65e8c36bec15b3e018609395e75d636412cecfa82887653112746b2e099a3564f6a17f7d8587536aa6d4a9c8d32
7
- data.tar.gz: '084a24cb1afd974f251b2e7ee3a2d2776f19ddb61b1f11fcb3f26cc6f40f5be1f9c705ecf604a6c019fefdb77bba597c1aaa3ca451171718d275317a5d68e845'
6
+ metadata.gz: 92bf5cd9e4e0a2b64d54338ca83e9440ce2719236faf6c79461358dd10bd1feee8fff68ec949566a3811fef3ad0eefd32687a79ec335adde5020fb270f1b9265
7
+ data.tar.gz: 5df3133a8c12d1137efdfbe1bb772951725802377a259600f0d017d734e609f53c51ca3ddeee0afbfb813c3bb025f2d7fed2987d99e72feb05017be614baa634
data/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # Release history for google-apis-storage_v1
2
2
 
3
+ ### v0.63.0 (2026-05-31)
4
+
5
+ * Regenerated from discovery document revision 20260524
6
+
7
+ ### v0.62.0 (2026-04-19)
8
+
9
+ * Regenerated from discovery document revision 20260408
10
+
11
+ ### v0.61.0 (2026-02-15)
12
+
13
+ * Regenerated from discovery document revision 20260204
14
+
15
+ ### v0.60.0 (2026-02-08)
16
+
17
+ * Regenerated from discovery document revision 20260131
18
+
19
+ ### v0.59.0 (2026-01-18)
20
+
21
+ * Regenerated from discovery document revision 20260111
22
+
23
+ ### v0.58.0 (2025-12-07)
24
+
25
+ * Regenerated from discovery document revision 20251118
26
+
27
+ ### v0.57.0 (2025-10-05)
28
+
29
+ * Regenerated from discovery document revision 20250925
30
+
3
31
  ### v0.56.0 (2025-08-24)
4
32
 
5
33
  * Regenerated from discovery document revision 20250814
@@ -80,6 +80,12 @@ module Google
80
80
  # @return [String]
81
81
  attr_accessor :id
82
82
 
83
+ # Specifies whether objects are ingested into the cache upon write.
84
+ # Corresponds to the JSON property `ingestOnWrite`
85
+ # @return [Boolean]
86
+ attr_accessor :ingest_on_write
87
+ alias_method :ingest_on_write?, :ingest_on_write
88
+
83
89
  # The kind of item this is. For Anywhere Cache, this is always storage#
84
90
  # anywhereCache.
85
91
  # Corresponds to the JSON property `kind`
@@ -128,6 +134,7 @@ module Google
128
134
  @bucket = args[:bucket] if args.key?(:bucket)
129
135
  @create_time = args[:create_time] if args.key?(:create_time)
130
136
  @id = args[:id] if args.key?(:id)
137
+ @ingest_on_write = args[:ingest_on_write] if args.key?(:ingest_on_write)
131
138
  @kind = args[:kind] if args.key?(:kind)
132
139
  @pending_update = args[:pending_update] if args.key?(:pending_update)
133
140
  @self_link = args[:self_link] if args.key?(:self_link)
@@ -1082,6 +1089,16 @@ module Google
1082
1089
  # @return [Fixnum]
1083
1090
  attr_accessor :num_newer_versions
1084
1091
 
1092
+ # Objects having a size greater than this value in bytes will be matched.
1093
+ # Corresponds to the JSON property `sizeAboveBytes`
1094
+ # @return [Fixnum]
1095
+ attr_accessor :size_above_bytes
1096
+
1097
+ # Objects having a size less than this value in bytes will be matched.
1098
+ # Corresponds to the JSON property `sizeBelowBytes`
1099
+ # @return [Fixnum]
1100
+ attr_accessor :size_below_bytes
1101
+
1085
1102
  def initialize(**args)
1086
1103
  update!(**args)
1087
1104
  end
@@ -1100,6 +1117,8 @@ module Google
1100
1117
  @matches_suffix = args[:matches_suffix] if args.key?(:matches_suffix)
1101
1118
  @noncurrent_time_before = args[:noncurrent_time_before] if args.key?(:noncurrent_time_before)
1102
1119
  @num_newer_versions = args[:num_newer_versions] if args.key?(:num_newer_versions)
1120
+ @size_above_bytes = args[:size_above_bytes] if args.key?(:size_above_bytes)
1121
+ @size_below_bytes = args[:size_below_bytes] if args.key?(:size_below_bytes)
1103
1122
  end
1104
1123
  end
1105
1124
  end
@@ -1552,6 +1571,12 @@ module Google
1552
1571
  # @return [String]
1553
1572
  attr_accessor :next_page_token
1554
1573
 
1574
+ # The list of bucket resource names that could not be reached during the listing
1575
+ # operation.
1576
+ # Corresponds to the JSON property `unreachable`
1577
+ # @return [Array<String>]
1578
+ attr_accessor :unreachable
1579
+
1555
1580
  def initialize(**args)
1556
1581
  update!(**args)
1557
1582
  end
@@ -1561,6 +1586,7 @@ module Google
1561
1586
  @items = args[:items] if args.key?(:items)
1562
1587
  @kind = args[:kind] if args.key?(:kind)
1563
1588
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1589
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1564
1590
  end
1565
1591
  end
1566
1592
 
@@ -1711,6 +1737,12 @@ module Google
1711
1737
  class ComposeRequest
1712
1738
  include Google::Apis::Core::Hashable
1713
1739
 
1740
+ # If true, the source objects will be deleted.
1741
+ # Corresponds to the JSON property `deleteSourceObjects`
1742
+ # @return [Boolean]
1743
+ attr_accessor :delete_source_objects
1744
+ alias_method :delete_source_objects?, :delete_source_objects
1745
+
1714
1746
  # An object.
1715
1747
  # Corresponds to the JSON property `destination`
1716
1748
  # @return [Google::Apis::StorageV1::Object]
@@ -1732,6 +1764,7 @@ module Google
1732
1764
 
1733
1765
  # Update properties of this object
1734
1766
  def update!(**args)
1767
+ @delete_source_objects = args[:delete_source_objects] if args.key?(:delete_source_objects)
1735
1768
  @destination = args[:destination] if args.key?(:destination)
1736
1769
  @kind = args[:kind] if args.key?(:kind)
1737
1770
  @source_objects = args[:source_objects] if args.key?(:source_objects)
@@ -3178,6 +3211,13 @@ module Google
3178
3211
  # @return [Google::Apis::StorageV1::RelocateBucketRequest::DestinationCustomPlacementConfig]
3179
3212
  attr_accessor :destination_custom_placement_config
3180
3213
 
3214
+ # Resource name of a Cloud KMS key, of the form projects/my-project/locations/
3215
+ # global/keyRings/my-kr/cryptoKeys/my-key. If set, is used to encrypt all
3216
+ # objects in the destination bucket.
3217
+ # Corresponds to the JSON property `destinationKmsKeyName`
3218
+ # @return [String]
3219
+ attr_accessor :destination_kms_key_name
3220
+
3181
3221
  # The new location the bucket will be relocated to.
3182
3222
  # Corresponds to the JSON property `destinationLocation`
3183
3223
  # @return [String]
@@ -3196,6 +3236,7 @@ module Google
3196
3236
  # Update properties of this object
3197
3237
  def update!(**args)
3198
3238
  @destination_custom_placement_config = args[:destination_custom_placement_config] if args.key?(:destination_custom_placement_config)
3239
+ @destination_kms_key_name = args[:destination_kms_key_name] if args.key?(:destination_kms_key_name)
3199
3240
  @destination_location = args[:destination_location] if args.key?(:destination_location)
3200
3241
  @validate_only = args[:validate_only] if args.key?(:validate_only)
3201
3242
  end
@@ -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.56.0"
19
+ GEM_VERSION = "0.63.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 = "20250814"
25
+ REVISION = "20260524"
26
26
  end
27
27
  end
28
28
  end
@@ -478,6 +478,7 @@ module Google
478
478
  property :create_time, as: 'createTime', type: DateTime
479
479
 
480
480
  property :id, as: 'id'
481
+ property :ingest_on_write, as: 'ingestOnWrite'
481
482
  property :kind, as: 'kind'
482
483
  property :pending_update, as: 'pendingUpdate'
483
484
  property :self_link, as: 'selfLink'
@@ -746,6 +747,8 @@ module Google
746
747
  property :noncurrent_time_before, as: 'noncurrentTimeBefore', type: Date
747
748
 
748
749
  property :num_newer_versions, as: 'numNewerVersions'
750
+ property :size_above_bytes, :numeric_string => true, as: 'sizeAboveBytes'
751
+ property :size_below_bytes, :numeric_string => true, as: 'sizeBelowBytes'
749
752
  end
750
753
  end
751
754
  end
@@ -879,6 +882,7 @@ module Google
879
882
 
880
883
  property :kind, as: 'kind'
881
884
  property :next_page_token, as: 'nextPageToken'
885
+ collection :unreachable, as: 'unreachable'
882
886
  end
883
887
  end
884
888
 
@@ -918,6 +922,7 @@ module Google
918
922
  class ComposeRequest
919
923
  # @private
920
924
  class Representation < Google::Apis::Core::JsonRepresentation
925
+ property :delete_source_objects, as: 'deleteSourceObjects'
921
926
  property :destination, as: 'destination', class: Google::Apis::StorageV1::Object, decorator: Google::Apis::StorageV1::Object::Representation
922
927
 
923
928
  property :kind, as: 'kind'
@@ -1286,6 +1291,7 @@ module Google
1286
1291
  class Representation < Google::Apis::Core::JsonRepresentation
1287
1292
  property :destination_custom_placement_config, as: 'destinationCustomPlacementConfig', class: Google::Apis::StorageV1::RelocateBucketRequest::DestinationCustomPlacementConfig, decorator: Google::Apis::StorageV1::RelocateBucketRequest::DestinationCustomPlacementConfig::Representation
1288
1293
 
1294
+ property :destination_kms_key_name, as: 'destinationKmsKeyName'
1289
1295
  property :destination_location, as: 'destinationLocation'
1290
1296
  property :validate_only, as: 'validateOnly'
1291
1297
  end
@@ -275,7 +275,7 @@ module Google
275
275
  execute_or_queue_command(command, &block)
276
276
  end
277
277
 
278
- # Updates the config(ttl and admissionPolicy) of an Anywhere Cache instance.
278
+ # Updates the config of an Anywhere Cache instance.
279
279
  # @param [String] bucket
280
280
  # Name of the parent bucket.
281
281
  # @param [String] anywhere_cache_id
@@ -796,6 +796,9 @@ module Google
796
796
  # Filter results to buckets whose names begin with this prefix.
797
797
  # @param [String] projection
798
798
  # Set of properties to return. Defaults to noAcl.
799
+ # @param [Boolean] return_partial_success
800
+ # If true, return a list of bucket resource names for buckets that are in
801
+ # unreachable locations.
799
802
  # @param [Boolean] soft_deleted
800
803
  # If true, only soft-deleted bucket versions will be returned. The default is
801
804
  # false. For more information, see [Soft Delete](https://cloud.google.com/
@@ -821,7 +824,7 @@ module Google
821
824
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
822
825
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
823
826
  # @raise [Google::Apis::AuthorizationError] Authorization is required
824
- def list_buckets(project, max_results: nil, page_token: nil, prefix: nil, projection: nil, soft_deleted: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
827
+ def list_buckets(project, max_results: nil, page_token: nil, prefix: nil, projection: nil, return_partial_success: nil, soft_deleted: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
825
828
  command = make_simple_command(:get, 'b', options)
826
829
  command.response_representation = Google::Apis::StorageV1::Buckets::Representation
827
830
  command.response_class = Google::Apis::StorageV1::Buckets
@@ -830,6 +833,7 @@ module Google
830
833
  command.query['prefix'] = prefix unless prefix.nil?
831
834
  command.query['project'] = project unless project.nil?
832
835
  command.query['projection'] = projection unless projection.nil?
836
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
833
837
  command.query['softDeleted'] = soft_deleted unless soft_deleted.nil?
834
838
  command.query['userProject'] = user_project unless user_project.nil?
835
839
  command.query['fields'] = fields unless fields.nil?
@@ -1471,6 +1475,50 @@ module Google
1471
1475
  execute_or_queue_command(command, &block)
1472
1476
  end
1473
1477
 
1478
+ # Deletes a folder recursively. Only applicable to buckets with hierarchical
1479
+ # namespace enabled.
1480
+ # @param [String] bucket
1481
+ # Name of the bucket in which the folder resides.
1482
+ # @param [String] folder
1483
+ # Name of a folder.
1484
+ # @param [Fixnum] if_metageneration_match
1485
+ # If set, only deletes the folder if its metageneration matches this value.
1486
+ # @param [Fixnum] if_metageneration_not_match
1487
+ # If set, only deletes the folder if its metageneration does not match this
1488
+ # value.
1489
+ # @param [String] fields
1490
+ # Selector specifying which fields to include in a partial response.
1491
+ # @param [String] quota_user
1492
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1493
+ # characters.
1494
+ # @param [String] user_ip
1495
+ # Deprecated. Please use quotaUser instead.
1496
+ # @param [Google::Apis::RequestOptions] options
1497
+ # Request-specific options
1498
+ #
1499
+ # @yield [result, err] Result & error if block supplied
1500
+ # @yieldparam result [Google::Apis::StorageV1::GoogleLongrunningOperation] parsed result object
1501
+ # @yieldparam err [StandardError] error object if request failed
1502
+ #
1503
+ # @return [Google::Apis::StorageV1::GoogleLongrunningOperation]
1504
+ #
1505
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1506
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1507
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1508
+ def delete_folder_recursive(bucket, folder, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1509
+ command = make_simple_command(:post, 'b/{bucket}/folders/{folder}/deleteRecursive', options)
1510
+ command.response_representation = Google::Apis::StorageV1::GoogleLongrunningOperation::Representation
1511
+ command.response_class = Google::Apis::StorageV1::GoogleLongrunningOperation
1512
+ command.params['bucket'] = bucket unless bucket.nil?
1513
+ command.params['folder'] = folder unless folder.nil?
1514
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1515
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1516
+ command.query['fields'] = fields unless fields.nil?
1517
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1518
+ command.query['userIp'] = user_ip unless user_ip.nil?
1519
+ execute_or_queue_command(command, &block)
1520
+ end
1521
+
1474
1522
  # Returns metadata for the specified folder. Only applicable to buckets with
1475
1523
  # hierarchical namespace enabled.
1476
1524
  # @param [String] bucket
@@ -2455,6 +2503,9 @@ module Google
2455
2503
  # @param [Google::Apis::StorageV1::ComposeRequest] compose_request_object
2456
2504
  # @param [String] destination_predefined_acl
2457
2505
  # Apply a predefined set of access controls to the destination object.
2506
+ # @param [Array<String>, String] drop_context_groups
2507
+ # Specifies which groups of Object Contexts from the source object(s) should be
2508
+ # dropped from the destination object.
2458
2509
  # @param [Fixnum] if_generation_match
2459
2510
  # Makes the operation conditional on whether the object's current generation
2460
2511
  # matches the given value. Setting to 0 makes the operation succeed only if
@@ -2487,7 +2538,7 @@ module Google
2487
2538
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2488
2539
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2489
2540
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2490
- def compose_object(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_metageneration_match: nil, kms_key_name: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2541
+ def compose_object(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, drop_context_groups: nil, if_generation_match: nil, if_metageneration_match: nil, kms_key_name: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2491
2542
  command = make_simple_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
2492
2543
  command.request_representation = Google::Apis::StorageV1::ComposeRequest::Representation
2493
2544
  command.request_object = compose_request_object
@@ -2496,6 +2547,7 @@ module Google
2496
2547
  command.params['destinationBucket'] = destination_bucket unless destination_bucket.nil?
2497
2548
  command.params['destinationObject'] = destination_object unless destination_object.nil?
2498
2549
  command.query['destinationPredefinedAcl'] = destination_predefined_acl unless destination_predefined_acl.nil?
2550
+ command.query['dropContextGroups'] = drop_context_groups unless drop_context_groups.nil?
2499
2551
  command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
2500
2552
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
2501
2553
  command.query['kmsKeyName'] = kms_key_name unless kms_key_name.nil?
@@ -3270,6 +3322,9 @@ module Google
3270
3322
  # object. Overrides the object metadata's kms_key_name value, if any.
3271
3323
  # @param [String] destination_predefined_acl
3272
3324
  # Apply a predefined set of access controls to the destination object.
3325
+ # @param [Array<String>, String] drop_context_groups
3326
+ # Specifies which groups of Object Contexts from the source object should be
3327
+ # dropped from the destination object.
3273
3328
  # @param [Fixnum] if_generation_match
3274
3329
  # Makes the operation conditional on whether the object's current generation
3275
3330
  # matches the given value. Setting to 0 makes the operation succeed only if
@@ -3337,7 +3392,7 @@ module Google
3337
3392
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3338
3393
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3339
3394
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3340
- def rewrite_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_kms_key_name: nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, max_bytes_rewritten_per_call: nil, projection: nil, rewrite_token: nil, source_generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3395
+ def rewrite_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_kms_key_name: nil, destination_predefined_acl: nil, drop_context_groups: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, max_bytes_rewritten_per_call: nil, projection: nil, rewrite_token: nil, source_generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3341
3396
  command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}', options)
3342
3397
  command.request_representation = Google::Apis::StorageV1::Object::Representation
3343
3398
  command.request_object = object_object
@@ -3349,6 +3404,7 @@ module Google
3349
3404
  command.params['destinationObject'] = destination_object unless destination_object.nil?
3350
3405
  command.query['destinationKmsKeyName'] = destination_kms_key_name unless destination_kms_key_name.nil?
3351
3406
  command.query['destinationPredefinedAcl'] = destination_predefined_acl unless destination_predefined_acl.nil?
3407
+ command.query['dropContextGroups'] = drop_context_groups unless drop_context_groups.nil?
3352
3408
  command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
3353
3409
  command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
3354
3410
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.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.56.0
4
+ version: 0.63.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.56.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.63.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: