google-apis-storage_v1 0.45.0 → 0.46.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1157b77e0344db0a3c7d1bbaf09130e72f20e68a62890bc84cca07ddfb07aa88
|
4
|
+
data.tar.gz: 610fb3cd0d5c8b7b9fed4f3ff9ef2c3e008480cffc5469c5164cb781403bb2ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb8b236a908a129179f847901c3ea9b829d2c44a1831e1fdf08b5c306b4aed8cc9fa99098dcd304ed944d82c1c4fe5f0d30db931cf6488c40133a63d8b5491a5
|
7
|
+
data.tar.gz: a08bdd88746ff2260d91fd6dbe458b80e61bd547fe801c0420fb4bc606c91c143d4165ebed7b7270d69f0f90db8e20b13930e7a9294ce794359ea51150f6de61
|
data/CHANGELOG.md
CHANGED
@@ -2931,6 +2931,59 @@ module Google
|
|
2931
2931
|
end
|
2932
2932
|
end
|
2933
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
|
+
|
2934
2987
|
# A rewrite response.
|
2935
2988
|
class RewriteResponse
|
2936
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.
|
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 = "
|
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
|
|
@@ -1162,6 +1174,23 @@ module Google
|
|
1162
1174
|
end
|
1163
1175
|
end
|
1164
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
|
+
|
1165
1194
|
class RewriteResponse
|
1166
1195
|
# @private
|
1167
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.
|
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.
|
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-09-
|
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.
|
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: []
|