google-apis-storage_v1 0.44.0 → 0.46.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: db2c5b0c0f27e2492f68f0d6b567f9e0f9836fff031d7ca4f36ae3cd43baad0c
4
- data.tar.gz: 07b9c9f3590d43a55247ddbc43a6464189f3ed69545b318f1c3a5d71f947dec1
3
+ metadata.gz: 1157b77e0344db0a3c7d1bbaf09130e72f20e68a62890bc84cca07ddfb07aa88
4
+ data.tar.gz: 610fb3cd0d5c8b7b9fed4f3ff9ef2c3e008480cffc5469c5164cb781403bb2ec
5
5
  SHA512:
6
- metadata.gz: cf6db1090e0a02d8a7ab7a8b7019bc943ea50a74448542bb2fc32607fd39687e19ab92315230398d83c8538349bc3fd079022a35d55b0f04567ee8a8f01ca8d0
7
- data.tar.gz: 81c92691c9a908b1776916ada6e42c8d39473ee5bd74718ca51f5409185acd510255c8f5b8cbccd0ebb063cb605797f120c4149a04cae0e27d2f2f891a7d22ca
6
+ metadata.gz: cb8b236a908a129179f847901c3ea9b829d2c44a1831e1fdf08b5c306b4aed8cc9fa99098dcd304ed944d82c1c4fe5f0d30db931cf6488c40133a63d8b5491a5
7
+ data.tar.gz: a08bdd88746ff2260d91fd6dbe458b80e61bd547fe801c0420fb4bc606c91c143d4165ebed7b7270d69f0f90db8e20b13930e7a9294ce794359ea51150f6de61
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-storage_v1
2
2
 
3
+ ### v0.46.0 (2024-09-29)
4
+
5
+ * Regenerated from discovery document revision 20240924
6
+
7
+ ### v0.45.0 (2024-09-22)
8
+
9
+ * Regenerated from discovery document revision 20240916
10
+
3
11
  ### v0.44.0 (2024-08-25)
4
12
 
5
13
  * Regenerated from discovery document revision 20240819
@@ -2412,6 +2412,13 @@ module Google
2412
2412
  # @return [Google::Apis::StorageV1::Object::Owner]
2413
2413
  attr_accessor :owner
2414
2414
 
2415
+ # Restore token used to differentiate deleted objects with the same name and
2416
+ # generation. This field is only returned for deleted objects in hierarchical
2417
+ # namespace buckets.
2418
+ # Corresponds to the JSON property `restoreToken`
2419
+ # @return [String]
2420
+ attr_accessor :restore_token
2421
+
2415
2422
  # A collection of object level retention parameters.
2416
2423
  # Corresponds to the JSON property `retention`
2417
2424
  # @return [Google::Apis::StorageV1::Object::Retention]
@@ -2513,6 +2520,7 @@ module Google
2513
2520
  @metageneration = args[:metageneration] if args.key?(:metageneration)
2514
2521
  @name = args[:name] if args.key?(:name)
2515
2522
  @owner = args[:owner] if args.key?(:owner)
2523
+ @restore_token = args[:restore_token] if args.key?(:restore_token)
2516
2524
  @retention = args[:retention] if args.key?(:retention)
2517
2525
  @retention_expiration_time = args[:retention_expiration_time] if args.key?(:retention_expiration_time)
2518
2526
  @self_link = args[:self_link] if args.key?(:self_link)
@@ -2923,6 +2931,59 @@ module Google
2923
2931
  end
2924
2932
  end
2925
2933
 
2934
+ # A Relocate Bucket request.
2935
+ class RelocateBucketRequest
2936
+ include Google::Apis::Core::Hashable
2937
+
2938
+ # The bucket's new custom placement configuration if relocating to a Custom Dual
2939
+ # Region.
2940
+ # Corresponds to the JSON property `destinationCustomPlacementConfig`
2941
+ # @return [Google::Apis::StorageV1::RelocateBucketRequest::DestinationCustomPlacementConfig]
2942
+ attr_accessor :destination_custom_placement_config
2943
+
2944
+ # The new location the bucket will be relocated to.
2945
+ # Corresponds to the JSON property `destinationLocation`
2946
+ # @return [String]
2947
+ attr_accessor :destination_location
2948
+
2949
+ # If true, validate the operation, but do not actually relocate the bucket.
2950
+ # Corresponds to the JSON property `validateOnly`
2951
+ # @return [Boolean]
2952
+ attr_accessor :validate_only
2953
+ alias_method :validate_only?, :validate_only
2954
+
2955
+ def initialize(**args)
2956
+ update!(**args)
2957
+ end
2958
+
2959
+ # Update properties of this object
2960
+ def update!(**args)
2961
+ @destination_custom_placement_config = args[:destination_custom_placement_config] if args.key?(:destination_custom_placement_config)
2962
+ @destination_location = args[:destination_location] if args.key?(:destination_location)
2963
+ @validate_only = args[:validate_only] if args.key?(:validate_only)
2964
+ end
2965
+
2966
+ # The bucket's new custom placement configuration if relocating to a Custom Dual
2967
+ # Region.
2968
+ class DestinationCustomPlacementConfig
2969
+ include Google::Apis::Core::Hashable
2970
+
2971
+ # The list of regional locations in which data is placed.
2972
+ # Corresponds to the JSON property `dataLocations`
2973
+ # @return [Array<String>]
2974
+ attr_accessor :data_locations
2975
+
2976
+ def initialize(**args)
2977
+ update!(**args)
2978
+ end
2979
+
2980
+ # Update properties of this object
2981
+ def update!(**args)
2982
+ @data_locations = args[:data_locations] if args.key?(:data_locations)
2983
+ end
2984
+ end
2985
+ end
2986
+
2926
2987
  # A rewrite response.
2927
2988
  class RewriteResponse
2928
2989
  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.44.0"
19
+ GEM_VERSION = "0.46.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240819"
25
+ REVISION = "20240924"
26
26
  end
27
27
  end
28
28
  end
@@ -394,6 +394,18 @@ module Google
394
394
  include Google::Apis::Core::JsonObjectSupport
395
395
  end
396
396
 
397
+ class RelocateBucketRequest
398
+ class Representation < Google::Apis::Core::JsonRepresentation; end
399
+
400
+ class DestinationCustomPlacementConfig
401
+ class Representation < Google::Apis::Core::JsonRepresentation; end
402
+
403
+ include Google::Apis::Core::JsonObjectSupport
404
+ end
405
+
406
+ include Google::Apis::Core::JsonObjectSupport
407
+ end
408
+
397
409
  class RewriteResponse
398
410
  class Representation < Google::Apis::Core::JsonRepresentation; end
399
411
 
@@ -1045,6 +1057,7 @@ module Google
1045
1057
  property :name, as: 'name'
1046
1058
  property :owner, as: 'owner', class: Google::Apis::StorageV1::Object::Owner, decorator: Google::Apis::StorageV1::Object::Owner::Representation
1047
1059
 
1060
+ property :restore_token, as: 'restoreToken'
1048
1061
  property :retention, as: 'retention', class: Google::Apis::StorageV1::Object::Retention, decorator: Google::Apis::StorageV1::Object::Retention::Representation
1049
1062
 
1050
1063
  property :retention_expiration_time, as: 'retentionExpirationTime', type: DateTime
@@ -1161,6 +1174,23 @@ module Google
1161
1174
  end
1162
1175
  end
1163
1176
 
1177
+ class RelocateBucketRequest
1178
+ # @private
1179
+ class Representation < Google::Apis::Core::JsonRepresentation
1180
+ property :destination_custom_placement_config, as: 'destinationCustomPlacementConfig', class: Google::Apis::StorageV1::RelocateBucketRequest::DestinationCustomPlacementConfig, decorator: Google::Apis::StorageV1::RelocateBucketRequest::DestinationCustomPlacementConfig::Representation
1181
+
1182
+ property :destination_location, as: 'destinationLocation'
1183
+ property :validate_only, as: 'validateOnly'
1184
+ end
1185
+
1186
+ class DestinationCustomPlacementConfig
1187
+ # @private
1188
+ class Representation < Google::Apis::Core::JsonRepresentation
1189
+ collection :data_locations, as: 'dataLocations'
1190
+ end
1191
+ end
1192
+ end
1193
+
1164
1194
  class RewriteResponse
1165
1195
  # @private
1166
1196
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -935,6 +935,42 @@ module Google
935
935
  execute_or_queue_command(command, &block)
936
936
  end
937
937
 
938
+ # Initiates a long-running Relocate Bucket operation on the specified bucket.
939
+ # @param [String] bucket
940
+ # Name of the bucket to be moved.
941
+ # @param [Google::Apis::StorageV1::RelocateBucketRequest] relocate_bucket_request_object
942
+ # @param [String] fields
943
+ # Selector specifying which fields to include in a partial response.
944
+ # @param [String] quota_user
945
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
946
+ # characters.
947
+ # @param [String] user_ip
948
+ # Deprecated. Please use quotaUser instead.
949
+ # @param [Google::Apis::RequestOptions] options
950
+ # Request-specific options
951
+ #
952
+ # @yield [result, err] Result & error if block supplied
953
+ # @yieldparam result [Google::Apis::StorageV1::GoogleLongrunningOperation] parsed result object
954
+ # @yieldparam err [StandardError] error object if request failed
955
+ #
956
+ # @return [Google::Apis::StorageV1::GoogleLongrunningOperation]
957
+ #
958
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
959
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
960
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
961
+ def relocate_bucket(bucket, relocate_bucket_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
962
+ command = make_simple_command(:post, 'b/{bucket}/relocate', options)
963
+ command.request_representation = Google::Apis::StorageV1::RelocateBucketRequest::Representation
964
+ command.request_object = relocate_bucket_request_object
965
+ command.response_representation = Google::Apis::StorageV1::GoogleLongrunningOperation::Representation
966
+ command.response_class = Google::Apis::StorageV1::GoogleLongrunningOperation
967
+ command.params['bucket'] = bucket unless bucket.nil?
968
+ command.query['fields'] = fields unless fields.nil?
969
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
970
+ command.query['userIp'] = user_ip unless user_ip.nil?
971
+ execute_or_queue_command(command, &block)
972
+ end
973
+
938
974
  # Restores a soft-deleted bucket.
939
975
  # @param [String] bucket
940
976
  # Name of a bucket.
@@ -2660,6 +2696,12 @@ module Google
2660
2696
  # does not match the given value.
2661
2697
  # @param [String] projection
2662
2698
  # Set of properties to return. Defaults to noAcl.
2699
+ # @param [String] restore_token
2700
+ # Restore token used to differentiate soft-deleted objects with the same name
2701
+ # and generation. Only applicable for hierarchical namespace buckets and if
2702
+ # softDeleted is set to true. This parameter is optional, and is only required
2703
+ # in the rare case when there are multiple soft-deleted objects with the same
2704
+ # name and generation.
2663
2705
  # @param [Boolean] soft_deleted
2664
2706
  # If true, only soft-deleted object versions will be listed. The default is
2665
2707
  # false. For more information, see [Soft Delete](https://cloud.google.com/
@@ -2687,7 +2729,7 @@ module Google
2687
2729
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2688
2730
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2689
2731
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2690
- def get_object(bucket, object, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, soft_deleted: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
2732
+ def get_object(bucket, object, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, restore_token: nil, soft_deleted: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
2691
2733
 
2692
2734
  if download_dest.nil?
2693
2735
  command = make_simple_command(:get, 'b/{bucket}/o/{object}', options)
@@ -2705,6 +2747,7 @@ module Google
2705
2747
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
2706
2748
  command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
2707
2749
  command.query['projection'] = projection unless projection.nil?
2750
+ command.query['restoreToken'] = restore_token unless restore_token.nil?
2708
2751
  command.query['softDeleted'] = soft_deleted unless soft_deleted.nil?
2709
2752
  command.query['userProject'] = user_project unless user_project.nil?
2710
2753
  command.query['fields'] = fields unless fields.nil?
@@ -3048,6 +3091,11 @@ module Google
3048
3091
  # metagenerations match the given value.
3049
3092
  # @param [String] projection
3050
3093
  # Set of properties to return. Defaults to full.
3094
+ # @param [String] restore_token
3095
+ # Restore token used to differentiate sof-deleted objects with the same name and
3096
+ # generation. Only applicable for hierarchical namespace buckets. This parameter
3097
+ # is optional, and is only required in the rare case when there are multiple
3098
+ # soft-deleted objects with the same name and generation.
3051
3099
  # @param [String] user_project
3052
3100
  # The project to be billed for this request. Required for Requester Pays buckets.
3053
3101
  # @param [String] fields
@@ -3069,7 +3117,7 @@ module Google
3069
3117
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3070
3118
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3071
3119
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3072
- def restore_object(bucket, object, generation, copy_source_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3120
+ def restore_object(bucket, object, generation, copy_source_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, restore_token: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3073
3121
  command = make_simple_command(:post, 'b/{bucket}/o/{object}/restore', options)
3074
3122
  command.response_representation = Google::Apis::StorageV1::Object::Representation
3075
3123
  command.response_class = Google::Apis::StorageV1::Object
@@ -3082,6 +3130,7 @@ module Google
3082
3130
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
3083
3131
  command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
3084
3132
  command.query['projection'] = projection unless projection.nil?
3133
+ command.query['restoreToken'] = restore_token unless restore_token.nil?
3085
3134
  command.query['userProject'] = user_project unless user_project.nil?
3086
3135
  command.query['fields'] = fields unless fields.nil?
3087
3136
  command.query['quotaUser'] = quota_user unless quota_user.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-storage_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.44.0
4
+ version: 0.46.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-25 00:00:00.000000000 Z
11
+ date: 2024-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storage_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.44.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.46.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storage_v1
63
63
  post_install_message:
64
64
  rdoc_options: []