google-apis-storage_v1 0.45.0 → 0.47.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a060c3c7741a0cfb86a92565060e4600c90dd1e66ed96beba4dddb416de6bb50
4
- data.tar.gz: 5f812a21f3cc99bed5c5f9601692889e9dc11757aa661a21f6fa40d1fd81c90b
3
+ metadata.gz: ef8b5adcdb3729a4eb973fca4db7833a049cf192d1143b51c65a8fa9052fa15e
4
+ data.tar.gz: 4bceace55bc99a4dce993779048757d5092e5b56f04230519a95b8fabe35d53f
5
5
  SHA512:
6
- metadata.gz: a4f122e3e0c9149e0a717ad940654bfe8330692dbc2c43c76dea51170ce2782b4699ba30ab8bd70798705d6c578c96cef0b8f2ae1fe9a6cd01ec4f0209452a19
7
- data.tar.gz: cc0e44be8485032c9db0eea1c80608b34c90d7165ed9f05afc9a85078d01b2176c642334b1ca849ad5faf249ebaa40f325a5efedce9574a071b240996e4640e1
6
+ metadata.gz: '08ca145fa5900879fc2c04c59228785e90132215b7255c08e1c4fe10898afb7d34390e3d80814baa1040ddc11e7d46ad1d94e7bda508d1810e4cc8a370a4400e'
7
+ data.tar.gz: e913f80e5dd886a4abf5637c9c7c0d51bf075471c5ec070c3d0c0a41a2e56a1f7b11382100d8439980590664ea94e0d5a3f4da3c470a0e902dd234a6e3349053
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-storage_v1
2
2
 
3
+ ### v0.47.0 (2024-10-13)
4
+
5
+ * Regenerated from discovery document revision 20241008
6
+
7
+ ### v0.46.0 (2024-09-29)
8
+
9
+ * Regenerated from discovery document revision 20240924
10
+
3
11
  ### v0.45.0 (2024-09-22)
4
12
 
5
13
  * Regenerated from discovery document revision 20240916
@@ -22,6 +22,34 @@ module Google
22
22
  module Apis
23
23
  module StorageV1
24
24
 
25
+ # An AdvanceRelocateBucketOperation request.
26
+ class AdvanceRelocateBucketOperationRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Specifies the time when the relocation will revert to the sync stage if the
30
+ # relocation hasn't succeeded.
31
+ # Corresponds to the JSON property `expireTime`
32
+ # @return [DateTime]
33
+ attr_accessor :expire_time
34
+
35
+ # Specifies the duration after which the relocation will revert to the sync
36
+ # stage if the relocation hasn't succeeded. Optional, if not supplied, a default
37
+ # value of 12h will be used.
38
+ # Corresponds to the JSON property `ttl`
39
+ # @return [String]
40
+ attr_accessor :ttl
41
+
42
+ def initialize(**args)
43
+ update!(**args)
44
+ end
45
+
46
+ # Update properties of this object
47
+ def update!(**args)
48
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
49
+ @ttl = args[:ttl] if args.key?(:ttl)
50
+ end
51
+ end
52
+
25
53
  # An Anywhere Cache instance.
26
54
  class AnywhereCache
27
55
  include Google::Apis::Core::Hashable
@@ -2931,6 +2959,59 @@ module Google
2931
2959
  end
2932
2960
  end
2933
2961
 
2962
+ # A Relocate Bucket request.
2963
+ class RelocateBucketRequest
2964
+ include Google::Apis::Core::Hashable
2965
+
2966
+ # The bucket's new custom placement configuration if relocating to a Custom Dual
2967
+ # Region.
2968
+ # Corresponds to the JSON property `destinationCustomPlacementConfig`
2969
+ # @return [Google::Apis::StorageV1::RelocateBucketRequest::DestinationCustomPlacementConfig]
2970
+ attr_accessor :destination_custom_placement_config
2971
+
2972
+ # The new location the bucket will be relocated to.
2973
+ # Corresponds to the JSON property `destinationLocation`
2974
+ # @return [String]
2975
+ attr_accessor :destination_location
2976
+
2977
+ # If true, validate the operation, but do not actually relocate the bucket.
2978
+ # Corresponds to the JSON property `validateOnly`
2979
+ # @return [Boolean]
2980
+ attr_accessor :validate_only
2981
+ alias_method :validate_only?, :validate_only
2982
+
2983
+ def initialize(**args)
2984
+ update!(**args)
2985
+ end
2986
+
2987
+ # Update properties of this object
2988
+ def update!(**args)
2989
+ @destination_custom_placement_config = args[:destination_custom_placement_config] if args.key?(:destination_custom_placement_config)
2990
+ @destination_location = args[:destination_location] if args.key?(:destination_location)
2991
+ @validate_only = args[:validate_only] if args.key?(:validate_only)
2992
+ end
2993
+
2994
+ # The bucket's new custom placement configuration if relocating to a Custom Dual
2995
+ # Region.
2996
+ class DestinationCustomPlacementConfig
2997
+ include Google::Apis::Core::Hashable
2998
+
2999
+ # The list of regional locations in which data is placed.
3000
+ # Corresponds to the JSON property `dataLocations`
3001
+ # @return [Array<String>]
3002
+ attr_accessor :data_locations
3003
+
3004
+ def initialize(**args)
3005
+ update!(**args)
3006
+ end
3007
+
3008
+ # Update properties of this object
3009
+ def update!(**args)
3010
+ @data_locations = args[:data_locations] if args.key?(:data_locations)
3011
+ end
3012
+ end
3013
+ end
3014
+
2934
3015
  # A rewrite response.
2935
3016
  class RewriteResponse
2936
3017
  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.45.0"
19
+ GEM_VERSION = "0.47.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 = "20240916"
25
+ REVISION = "20241008"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module StorageV1
24
24
 
25
+ class AdvanceRelocateBucketOperationRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class AnywhereCache
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -394,6 +400,18 @@ module Google
394
400
  include Google::Apis::Core::JsonObjectSupport
395
401
  end
396
402
 
403
+ class RelocateBucketRequest
404
+ class Representation < Google::Apis::Core::JsonRepresentation; end
405
+
406
+ class DestinationCustomPlacementConfig
407
+ class Representation < Google::Apis::Core::JsonRepresentation; end
408
+
409
+ include Google::Apis::Core::JsonObjectSupport
410
+ end
411
+
412
+ include Google::Apis::Core::JsonObjectSupport
413
+ end
414
+
397
415
  class RewriteResponse
398
416
  class Representation < Google::Apis::Core::JsonRepresentation; end
399
417
 
@@ -412,6 +430,15 @@ module Google
412
430
  include Google::Apis::Core::JsonObjectSupport
413
431
  end
414
432
 
433
+ class AdvanceRelocateBucketOperationRequest
434
+ # @private
435
+ class Representation < Google::Apis::Core::JsonRepresentation
436
+ property :expire_time, as: 'expireTime', type: DateTime
437
+
438
+ property :ttl, as: 'ttl'
439
+ end
440
+ end
441
+
415
442
  class AnywhereCache
416
443
  # @private
417
444
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1162,6 +1189,23 @@ module Google
1162
1189
  end
1163
1190
  end
1164
1191
 
1192
+ class RelocateBucketRequest
1193
+ # @private
1194
+ class Representation < Google::Apis::Core::JsonRepresentation
1195
+ property :destination_custom_placement_config, as: 'destinationCustomPlacementConfig', class: Google::Apis::StorageV1::RelocateBucketRequest::DestinationCustomPlacementConfig, decorator: Google::Apis::StorageV1::RelocateBucketRequest::DestinationCustomPlacementConfig::Representation
1196
+
1197
+ property :destination_location, as: 'destinationLocation'
1198
+ property :validate_only, as: 'validateOnly'
1199
+ end
1200
+
1201
+ class DestinationCustomPlacementConfig
1202
+ # @private
1203
+ class Representation < Google::Apis::Core::JsonRepresentation
1204
+ collection :data_locations, as: 'dataLocations'
1205
+ end
1206
+ end
1207
+ end
1208
+
1165
1209
  class RewriteResponse
1166
1210
  # @private
1167
1211
  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.
@@ -3478,6 +3514,46 @@ module Google
3478
3514
  execute_or_queue_command(command, &block)
3479
3515
  end
3480
3516
 
3517
+ # Starts asynchronous advancement of the relocate bucket operation in the case
3518
+ # of required write downtime, to allow it to lock the bucket at the source
3519
+ # location, and proceed with the bucket location swap. The server makes a best
3520
+ # effort to advance the relocate bucket operation, but success is not guaranteed.
3521
+ # @param [String] bucket
3522
+ # Name of the bucket to advance the relocate for.
3523
+ # @param [String] operation_id
3524
+ # ID of the operation resource.
3525
+ # @param [Google::Apis::StorageV1::AdvanceRelocateBucketOperationRequest] advance_relocate_bucket_operation_request_object
3526
+ # @param [String] fields
3527
+ # Selector specifying which fields to include in a partial response.
3528
+ # @param [String] quota_user
3529
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3530
+ # characters.
3531
+ # @param [String] user_ip
3532
+ # Deprecated. Please use quotaUser instead.
3533
+ # @param [Google::Apis::RequestOptions] options
3534
+ # Request-specific options
3535
+ #
3536
+ # @yield [result, err] Result & error if block supplied
3537
+ # @yieldparam result [NilClass] No result returned for this method
3538
+ # @yieldparam err [StandardError] error object if request failed
3539
+ #
3540
+ # @return [void]
3541
+ #
3542
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3543
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3544
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3545
+ def advance_relocate_bucket_operation(bucket, operation_id, advance_relocate_bucket_operation_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3546
+ command = make_simple_command(:post, 'b/{bucket}/operations/{operationId}/advanceRelocateBucket', options)
3547
+ command.request_representation = Google::Apis::StorageV1::AdvanceRelocateBucketOperationRequest::Representation
3548
+ command.request_object = advance_relocate_bucket_operation_request_object
3549
+ command.params['bucket'] = bucket unless bucket.nil?
3550
+ command.params['operationId'] = operation_id unless operation_id.nil?
3551
+ command.query['fields'] = fields unless fields.nil?
3552
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3553
+ command.query['userIp'] = user_ip unless user_ip.nil?
3554
+ execute_or_queue_command(command, &block)
3555
+ end
3556
+
3481
3557
  # Starts asynchronous cancellation on a long-running operation. The server makes
3482
3558
  # a best effort to cancel the operation, but success is not guaranteed.
3483
3559
  # @param [String] bucket
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.45.0
4
+ version: 0.47.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-09-22 00:00:00.000000000 Z
11
+ date: 2024-10-13 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.45.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.47.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.6
78
+ rubygems_version: 3.5.21
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Storage JSON API V1