google-apis-storage_v1 0.47.0 → 0.49.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:
|
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
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-storage_v1
|
2
2
|
|
3
|
+
### v0.49.0 (2024-12-15)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241206
|
6
|
+
|
7
|
+
### v0.48.0 (2024-11-24)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20241113
|
10
|
+
|
3
11
|
### v0.47.0 (2024-10-13)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20241008
|
@@ -2503,6 +2503,11 @@ module Google
|
|
2503
2503
|
# @return [DateTime]
|
2504
2504
|
attr_accessor :time_deleted
|
2505
2505
|
|
2506
|
+
# The time when the object was finalized.
|
2507
|
+
# Corresponds to the JSON property `timeFinalized`
|
2508
|
+
# @return [DateTime]
|
2509
|
+
attr_accessor :time_finalized
|
2510
|
+
|
2506
2511
|
# The time at which the object's storage class was last changed. When the object
|
2507
2512
|
# is initially created, it will be set to timeCreated.
|
2508
2513
|
# Corresponds to the JSON property `timeStorageClassUpdated`
|
@@ -2558,6 +2563,7 @@ module Google
|
|
2558
2563
|
@temporary_hold = args[:temporary_hold] if args.key?(:temporary_hold)
|
2559
2564
|
@time_created = args[:time_created] if args.key?(:time_created)
|
2560
2565
|
@time_deleted = args[:time_deleted] if args.key?(:time_deleted)
|
2566
|
+
@time_finalized = args[:time_finalized] if args.key?(:time_finalized)
|
2561
2567
|
@time_storage_class_updated = args[:time_storage_class_updated] if args.key?(:time_storage_class_updated)
|
2562
2568
|
@updated = args[:updated] if args.key?(:updated)
|
2563
2569
|
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.
|
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
|
@@ -1087,6 +1087,8 @@ module Google
|
|
1087
1087
|
|
1088
1088
|
property :time_deleted, as: 'timeDeleted', type: DateTime
|
1089
1089
|
|
1090
|
+
property :time_finalized, as: 'timeFinalized', type: DateTime
|
1091
|
+
|
1090
1092
|
property :time_storage_class_updated, as: 'timeStorageClassUpdated', type: DateTime
|
1091
1093
|
|
1092
1094
|
property :updated, as: 'updated', type: DateTime
|
@@ -976,6 +976,8 @@ module Google
|
|
976
976
|
# Name of a bucket.
|
977
977
|
# @param [Fixnum] generation
|
978
978
|
# Generation of a bucket.
|
979
|
+
# @param [String] projection
|
980
|
+
# Set of properties to return. Defaults to full.
|
979
981
|
# @param [String] user_project
|
980
982
|
# The project to be billed for this request. Required for Requester Pays buckets.
|
981
983
|
# @param [String] fields
|
@@ -989,18 +991,21 @@ module Google
|
|
989
991
|
# Request-specific options
|
990
992
|
#
|
991
993
|
# @yield [result, err] Result & error if block supplied
|
992
|
-
# @yieldparam result [
|
994
|
+
# @yieldparam result [Google::Apis::StorageV1::Bucket] parsed result object
|
993
995
|
# @yieldparam err [StandardError] error object if request failed
|
994
996
|
#
|
995
|
-
# @return [
|
997
|
+
# @return [Google::Apis::StorageV1::Bucket]
|
996
998
|
#
|
997
999
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
998
1000
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
999
1001
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1000
|
-
def restore_bucket(bucket, generation, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1002
|
+
def restore_bucket(bucket, generation, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1001
1003
|
command = make_simple_command(:post, 'b/{bucket}/restore', options)
|
1004
|
+
command.response_representation = Google::Apis::StorageV1::Bucket::Representation
|
1005
|
+
command.response_class = Google::Apis::StorageV1::Bucket
|
1002
1006
|
command.params['bucket'] = bucket unless bucket.nil?
|
1003
1007
|
command.query['generation'] = generation unless generation.nil?
|
1008
|
+
command.query['projection'] = projection unless projection.nil?
|
1004
1009
|
command.query['userProject'] = user_project unless user_project.nil?
|
1005
1010
|
command.query['fields'] = fields unless fields.nil?
|
1006
1011
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -2985,6 +2990,103 @@ module Google
|
|
2985
2990
|
execute_or_queue_command(command, &block)
|
2986
2991
|
end
|
2987
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
|
+
|
2988
3090
|
# Patches an object's metadata.
|
2989
3091
|
# @param [String] bucket
|
2990
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-
|
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
|