google-apis-storage_v1 0.48.0 → 0.49.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/storage_v1/gem_version.rb +2 -2
- data/lib/google/apis/storage_v1/service.rb +97 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff26be4bb55f4a670e315ca18140db560ab3044093d58c602c5f003df7c23939
|
4
|
+
data.tar.gz: 6ace78a94b2cbc82857df21f4a997991961084584a6132770a5722df921fe82c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d90a9aa6f2124d2dd9c1a8b2896412f092477911d9d811a9cd7c286511e3c8a851fab92477a411da06663c50e0e1f87d0a2be93cb6362e8b7efb6cb46ffca736
|
7
|
+
data.tar.gz: 88fd5cfce0a4f5c76d0912f3d58fe929ed8e850cd73abbf2853d0ed53118ba3a3a0febfdb575ec11576e7103bcaa626d5327d6ee9079a7dc75a370dc674a1d00
|
data/CHANGELOG.md
CHANGED
@@ -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.49.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 = "20241206"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -2990,6 +2990,103 @@ module Google
|
|
2990
2990
|
execute_or_queue_command(command, &block)
|
2991
2991
|
end
|
2992
2992
|
|
2993
|
+
# Moves the source object to the destination object in the same bucket.
|
2994
|
+
# @param [String] bucket
|
2995
|
+
# Name of the bucket in which the object resides.
|
2996
|
+
# @param [String] source_object
|
2997
|
+
# Name of the source object. For information about how to URL encode object
|
2998
|
+
# names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/
|
2999
|
+
# storage/docs/request-endpoints#encoding).
|
3000
|
+
# @param [String] destination_object
|
3001
|
+
# Name of the destination object. For information about how to URL encode object
|
3002
|
+
# names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/
|
3003
|
+
# storage/docs/request-endpoints#encoding).
|
3004
|
+
# @param [Fixnum] if_generation_match
|
3005
|
+
# Makes the operation conditional on whether the destination object's current
|
3006
|
+
# generation matches the given value. Setting to 0 makes the operation succeed
|
3007
|
+
# only if there are no live versions of the object. `ifGenerationMatch` and `
|
3008
|
+
# ifGenerationNotMatch` conditions are mutually exclusive: it's an error for
|
3009
|
+
# both of them to be set in the request.
|
3010
|
+
# @param [Fixnum] if_generation_not_match
|
3011
|
+
# Makes the operation conditional on whether the destination object's current
|
3012
|
+
# generation does not match the given value. If no live object exists, the
|
3013
|
+
# precondition fails. Setting to 0 makes the operation succeed only if there is
|
3014
|
+
# a live version of the object.`ifGenerationMatch` and `ifGenerationNotMatch`
|
3015
|
+
# conditions are mutually exclusive: it's an error for both of them to be set in
|
3016
|
+
# the request.
|
3017
|
+
# @param [Fixnum] if_metageneration_match
|
3018
|
+
# Makes the operation conditional on whether the destination object's current
|
3019
|
+
# metageneration matches the given value. `ifMetagenerationMatch` and `
|
3020
|
+
# ifMetagenerationNotMatch` conditions are mutually exclusive: it's an error for
|
3021
|
+
# both of them to be set in the request.
|
3022
|
+
# @param [Fixnum] if_metageneration_not_match
|
3023
|
+
# Makes the operation conditional on whether the destination object's current
|
3024
|
+
# metageneration does not match the given value. `ifMetagenerationMatch` and `
|
3025
|
+
# ifMetagenerationNotMatch` conditions are mutually exclusive: it's an error for
|
3026
|
+
# both of them to be set in the request.
|
3027
|
+
# @param [Fixnum] if_source_generation_match
|
3028
|
+
# Makes the operation conditional on whether the source object's current
|
3029
|
+
# generation matches the given value. `ifSourceGenerationMatch` and `
|
3030
|
+
# ifSourceGenerationNotMatch` conditions are mutually exclusive: it's an error
|
3031
|
+
# for both of them to be set in the request.
|
3032
|
+
# @param [Fixnum] if_source_generation_not_match
|
3033
|
+
# Makes the operation conditional on whether the source object's current
|
3034
|
+
# generation does not match the given value. `ifSourceGenerationMatch` and `
|
3035
|
+
# ifSourceGenerationNotMatch` conditions are mutually exclusive: it's an error
|
3036
|
+
# for both of them to be set in the request.
|
3037
|
+
# @param [Fixnum] if_source_metageneration_match
|
3038
|
+
# Makes the operation conditional on whether the source object's current
|
3039
|
+
# metageneration matches the given value. `ifSourceMetagenerationMatch` and `
|
3040
|
+
# ifSourceMetagenerationNotMatch` conditions are mutually exclusive: it's an
|
3041
|
+
# error for both of them to be set in the request.
|
3042
|
+
# @param [Fixnum] if_source_metageneration_not_match
|
3043
|
+
# Makes the operation conditional on whether the source object's current
|
3044
|
+
# metageneration does not match the given value. `ifSourceMetagenerationMatch`
|
3045
|
+
# and `ifSourceMetagenerationNotMatch` conditions are mutually exclusive: it's
|
3046
|
+
# an error for both of them to be set in the request.
|
3047
|
+
# @param [String] user_project
|
3048
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
3049
|
+
# @param [String] fields
|
3050
|
+
# Selector specifying which fields to include in a partial response.
|
3051
|
+
# @param [String] quota_user
|
3052
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3053
|
+
# characters.
|
3054
|
+
# @param [String] user_ip
|
3055
|
+
# Deprecated. Please use quotaUser instead.
|
3056
|
+
# @param [Google::Apis::RequestOptions] options
|
3057
|
+
# Request-specific options
|
3058
|
+
#
|
3059
|
+
# @yield [result, err] Result & error if block supplied
|
3060
|
+
# @yieldparam result [Google::Apis::StorageV1::Object] parsed result object
|
3061
|
+
# @yieldparam err [StandardError] error object if request failed
|
3062
|
+
#
|
3063
|
+
# @return [Google::Apis::StorageV1::Object]
|
3064
|
+
#
|
3065
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3066
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3067
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3068
|
+
def move_object(bucket, source_object, destination_object, 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, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3069
|
+
command = make_simple_command(:post, 'b/{bucket}/o/{sourceObject}/moveTo/o/{destinationObject}', options)
|
3070
|
+
command.response_representation = Google::Apis::StorageV1::Object::Representation
|
3071
|
+
command.response_class = Google::Apis::StorageV1::Object
|
3072
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
3073
|
+
command.params['sourceObject'] = source_object unless source_object.nil?
|
3074
|
+
command.params['destinationObject'] = destination_object unless destination_object.nil?
|
3075
|
+
command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
|
3076
|
+
command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
|
3077
|
+
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
3078
|
+
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
3079
|
+
command.query['ifSourceGenerationMatch'] = if_source_generation_match unless if_source_generation_match.nil?
|
3080
|
+
command.query['ifSourceGenerationNotMatch'] = if_source_generation_not_match unless if_source_generation_not_match.nil?
|
3081
|
+
command.query['ifSourceMetagenerationMatch'] = if_source_metageneration_match unless if_source_metageneration_match.nil?
|
3082
|
+
command.query['ifSourceMetagenerationNotMatch'] = if_source_metageneration_not_match unless if_source_metageneration_not_match.nil?
|
3083
|
+
command.query['userProject'] = user_project unless user_project.nil?
|
3084
|
+
command.query['fields'] = fields unless fields.nil?
|
3085
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3086
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3087
|
+
execute_or_queue_command(command, &block)
|
3088
|
+
end
|
3089
|
+
|
2993
3090
|
# Patches an object's metadata.
|
2994
3091
|
# @param [String] bucket
|
2995
3092
|
# Name of the bucket in which the object resides.
|
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.49.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-12-
|
11
|
+
date: 2024-12-15 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.49.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.
|
78
|
+
rubygems_version: 3.5.23
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Storage JSON API V1
|