google-apis-storage_v1 0.44.0 → 0.45.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: a060c3c7741a0cfb86a92565060e4600c90dd1e66ed96beba4dddb416de6bb50
|
4
|
+
data.tar.gz: 5f812a21f3cc99bed5c5f9601692889e9dc11757aa661a21f6fa40d1fd81c90b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4f122e3e0c9149e0a717ad940654bfe8330692dbc2c43c76dea51170ce2782b4699ba30ab8bd70798705d6c578c96cef0b8f2ae1fe9a6cd01ec4f0209452a19
|
7
|
+
data.tar.gz: cc0e44be8485032c9db0eea1c80608b34c90d7165ed9f05afc9a85078d01b2176c642334b1ca849ad5faf249ebaa40f325a5efedce9574a071b240996e4640e1
|
data/CHANGELOG.md
CHANGED
@@ -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)
|
@@ -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.45.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 = "20240916"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1045,6 +1045,7 @@ module Google
|
|
1045
1045
|
property :name, as: 'name'
|
1046
1046
|
property :owner, as: 'owner', class: Google::Apis::StorageV1::Object::Owner, decorator: Google::Apis::StorageV1::Object::Owner::Representation
|
1047
1047
|
|
1048
|
+
property :restore_token, as: 'restoreToken'
|
1048
1049
|
property :retention, as: 'retention', class: Google::Apis::StorageV1::Object::Retention, decorator: Google::Apis::StorageV1::Object::Retention::Representation
|
1049
1050
|
|
1050
1051
|
property :retention_expiration_time, as: 'retentionExpirationTime', type: DateTime
|
@@ -2660,6 +2660,12 @@ module Google
|
|
2660
2660
|
# does not match the given value.
|
2661
2661
|
# @param [String] projection
|
2662
2662
|
# Set of properties to return. Defaults to noAcl.
|
2663
|
+
# @param [String] restore_token
|
2664
|
+
# Restore token used to differentiate soft-deleted objects with the same name
|
2665
|
+
# and generation. Only applicable for hierarchical namespace buckets and if
|
2666
|
+
# softDeleted is set to true. This parameter is optional, and is only required
|
2667
|
+
# in the rare case when there are multiple soft-deleted objects with the same
|
2668
|
+
# name and generation.
|
2663
2669
|
# @param [Boolean] soft_deleted
|
2664
2670
|
# If true, only soft-deleted object versions will be listed. The default is
|
2665
2671
|
# false. For more information, see [Soft Delete](https://cloud.google.com/
|
@@ -2687,7 +2693,7 @@ module Google
|
|
2687
2693
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2688
2694
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2689
2695
|
# @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)
|
2696
|
+
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
2697
|
|
2692
2698
|
if download_dest.nil?
|
2693
2699
|
command = make_simple_command(:get, 'b/{bucket}/o/{object}', options)
|
@@ -2705,6 +2711,7 @@ module Google
|
|
2705
2711
|
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
2706
2712
|
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
2707
2713
|
command.query['projection'] = projection unless projection.nil?
|
2714
|
+
command.query['restoreToken'] = restore_token unless restore_token.nil?
|
2708
2715
|
command.query['softDeleted'] = soft_deleted unless soft_deleted.nil?
|
2709
2716
|
command.query['userProject'] = user_project unless user_project.nil?
|
2710
2717
|
command.query['fields'] = fields unless fields.nil?
|
@@ -3048,6 +3055,11 @@ module Google
|
|
3048
3055
|
# metagenerations match the given value.
|
3049
3056
|
# @param [String] projection
|
3050
3057
|
# Set of properties to return. Defaults to full.
|
3058
|
+
# @param [String] restore_token
|
3059
|
+
# Restore token used to differentiate sof-deleted objects with the same name and
|
3060
|
+
# generation. Only applicable for hierarchical namespace buckets. This parameter
|
3061
|
+
# is optional, and is only required in the rare case when there are multiple
|
3062
|
+
# soft-deleted objects with the same name and generation.
|
3051
3063
|
# @param [String] user_project
|
3052
3064
|
# The project to be billed for this request. Required for Requester Pays buckets.
|
3053
3065
|
# @param [String] fields
|
@@ -3069,7 +3081,7 @@ module Google
|
|
3069
3081
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3070
3082
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3071
3083
|
# @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)
|
3084
|
+
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
3085
|
command = make_simple_command(:post, 'b/{bucket}/o/{object}/restore', options)
|
3074
3086
|
command.response_representation = Google::Apis::StorageV1::Object::Representation
|
3075
3087
|
command.response_class = Google::Apis::StorageV1::Object
|
@@ -3082,6 +3094,7 @@ module Google
|
|
3082
3094
|
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
3083
3095
|
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
3084
3096
|
command.query['projection'] = projection unless projection.nil?
|
3097
|
+
command.query['restoreToken'] = restore_token unless restore_token.nil?
|
3085
3098
|
command.query['userProject'] = user_project unless user_project.nil?
|
3086
3099
|
command.query['fields'] = fields unless fields.nil?
|
3087
3100
|
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.
|
4
|
+
version: 0.45.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-09-22 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.45.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: []
|