google-apis-storage_v1 0.26.0 → 0.28.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: c0463e1a2829b3116b7369f32cc7f839e377c1618303e8a63d3600a411a555f4
|
4
|
+
data.tar.gz: c0ee248c3b7e6bcb7622a0c9ac1d28211d4155c12db245b0ab06ab06190056eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87417738d5d357e9b3105936b049470b1eb2db02d805d4f6f121652c482866b93da38622d11d244e9f4ff006c99ee58f1375ae0877a2f5ea899f74e56a9c0e3e
|
7
|
+
data.tar.gz: e41b93f79c70c63654ef5a763004f906fce4b2dc653b5274946b663e4cb364262291ac8a233cc82f069c64e18e089b46f16af6fdbcd28290637a67248651a5db
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-storage_v1
|
2
2
|
|
3
|
+
### v0.28.0 (2023-10-01)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230926
|
6
|
+
|
7
|
+
### v0.27.0 (2023-09-24)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230922
|
10
|
+
|
3
11
|
### v0.26.0 (2023-09-17)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230914
|
@@ -1764,6 +1764,13 @@ module Google
|
|
1764
1764
|
# @return [Fixnum]
|
1765
1765
|
attr_accessor :generation
|
1766
1766
|
|
1767
|
+
# This is the time (in the future) when the soft-deleted object will no longer
|
1768
|
+
# be restorable. It is equal to the soft delete time plus the current soft
|
1769
|
+
# delete retention duration of the bucket.
|
1770
|
+
# Corresponds to the JSON property `hardDeleteTime`
|
1771
|
+
# @return [DateTime]
|
1772
|
+
attr_accessor :hard_delete_time
|
1773
|
+
|
1767
1774
|
# The ID of the object, including the bucket name, object name, and generation
|
1768
1775
|
# number.
|
1769
1776
|
# Corresponds to the JSON property `id`
|
@@ -1840,6 +1847,11 @@ module Google
|
|
1840
1847
|
# @return [Fixnum]
|
1841
1848
|
attr_accessor :size
|
1842
1849
|
|
1850
|
+
# The time at which the object became soft-deleted in RFC 3339 format.
|
1851
|
+
# Corresponds to the JSON property `softDeleteTime`
|
1852
|
+
# @return [DateTime]
|
1853
|
+
attr_accessor :soft_delete_time
|
1854
|
+
|
1843
1855
|
# Storage class of the object.
|
1844
1856
|
# Corresponds to the JSON property `storageClass`
|
1845
1857
|
# @return [String]
|
@@ -1860,8 +1872,8 @@ module Google
|
|
1860
1872
|
# @return [DateTime]
|
1861
1873
|
attr_accessor :time_created
|
1862
1874
|
|
1863
|
-
# The
|
1864
|
-
# only if this version of the object has been deleted.
|
1875
|
+
# The time at which the object became noncurrent in RFC 3339 format. Will be
|
1876
|
+
# returned if and only if this version of the object has been deleted.
|
1865
1877
|
# Corresponds to the JSON property `timeDeleted`
|
1866
1878
|
# @return [DateTime]
|
1867
1879
|
attr_accessor :time_deleted
|
@@ -1901,6 +1913,7 @@ module Google
|
|
1901
1913
|
@etag = args[:etag] if args.key?(:etag)
|
1902
1914
|
@event_based_hold = args[:event_based_hold] if args.key?(:event_based_hold)
|
1903
1915
|
@generation = args[:generation] if args.key?(:generation)
|
1916
|
+
@hard_delete_time = args[:hard_delete_time] if args.key?(:hard_delete_time)
|
1904
1917
|
@id = args[:id] if args.key?(:id)
|
1905
1918
|
@kind = args[:kind] if args.key?(:kind)
|
1906
1919
|
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
@@ -1914,6 +1927,7 @@ module Google
|
|
1914
1927
|
@retention_expiration_time = args[:retention_expiration_time] if args.key?(:retention_expiration_time)
|
1915
1928
|
@self_link = args[:self_link] if args.key?(:self_link)
|
1916
1929
|
@size = args[:size] if args.key?(:size)
|
1930
|
+
@soft_delete_time = args[:soft_delete_time] if args.key?(:soft_delete_time)
|
1917
1931
|
@storage_class = args[:storage_class] if args.key?(:storage_class)
|
1918
1932
|
@temporary_hold = args[:temporary_hold] if args.key?(:temporary_hold)
|
1919
1933
|
@time_created = args[:time_created] if args.key?(:time_created)
|
@@ -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.28.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230926"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -784,6 +784,8 @@ module Google
|
|
784
784
|
property :etag, as: 'etag'
|
785
785
|
property :event_based_hold, as: 'eventBasedHold'
|
786
786
|
property :generation, :numeric_string => true, as: 'generation'
|
787
|
+
property :hard_delete_time, as: 'hardDeleteTime', type: DateTime
|
788
|
+
|
787
789
|
property :id, as: 'id'
|
788
790
|
property :kind, as: 'kind'
|
789
791
|
property :kms_key_name, as: 'kmsKeyName'
|
@@ -800,6 +802,8 @@ module Google
|
|
800
802
|
|
801
803
|
property :self_link, as: 'selfLink'
|
802
804
|
property :size, :numeric_string => true, as: 'size'
|
805
|
+
property :soft_delete_time, as: 'softDeleteTime', type: DateTime
|
806
|
+
|
803
807
|
property :storage_class, as: 'storageClass'
|
804
808
|
property :temporary_hold, as: 'temporaryHold'
|
805
809
|
property :time_created, as: 'timeCreated', type: DateTime
|
@@ -2134,6 +2134,9 @@ module Google
|
|
2134
2134
|
# Name of the object. For information about how to URL encode object names to be
|
2135
2135
|
# path safe, see Encoding URI Path Parts.
|
2136
2136
|
# @param [Google::Apis::StorageV1::Object] object_object
|
2137
|
+
# @param [Boolean] copy_source_acl
|
2138
|
+
# If true, copies the source object's ACL; otherwise, uses the bucket's default
|
2139
|
+
# object ACL. The default is false.
|
2137
2140
|
# @param [Fixnum] if_generation_match
|
2138
2141
|
# Makes the operation conditional on whether the object's one live generation
|
2139
2142
|
# matches the given value. Setting to 0 makes the operation succeed only if
|
@@ -2172,7 +2175,7 @@ module Google
|
|
2172
2175
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2173
2176
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2174
2177
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2175
|
-
def restore_object(bucket, object, object_object = 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)
|
2178
|
+
def restore_object(bucket, object, object_object = nil, 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)
|
2176
2179
|
command = make_simple_command(:post, 'b/{bucket}/o/{object}/restore', options)
|
2177
2180
|
command.request_representation = Google::Apis::StorageV1::Object::Representation
|
2178
2181
|
command.request_object = object_object
|
@@ -2180,6 +2183,7 @@ module Google
|
|
2180
2183
|
command.response_class = Google::Apis::StorageV1::Object
|
2181
2184
|
command.params['bucket'] = bucket unless bucket.nil?
|
2182
2185
|
command.params['object'] = object unless object.nil?
|
2186
|
+
command.query['copySourceAcl'] = copy_source_acl unless copy_source_acl.nil?
|
2183
2187
|
command.query['generation'] = generation unless generation.nil?
|
2184
2188
|
command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
|
2185
2189
|
command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.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.28.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: 2023-
|
11
|
+
date: 2023-10-01 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.28.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: []
|