google-apis-storage_v1 0.6.0 → 0.10.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 +17 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/storage_v1/classes.rb +66 -11
- data/lib/google/apis/storage_v1/gem_version.rb +2 -2
- data/lib/google/apis/storage_v1/representations.rb +33 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '038e83e5dd457bf81f63a9a53053ee606465c93bc461ec93f3d857751fc42b69'
|
4
|
+
data.tar.gz: 71e35693c90067fd6ff1952318c28c91bd7bc5cc4181e8345d9feef31ede3027
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86c71f82fb307b519b2b2968ecc90cd3a4aada26805f5574d429f92ee4f83fa59f2eb9a5966cbed6b72924012fe163d98a7f9c07dbb2050bad4bb08295657152
|
7
|
+
data.tar.gz: bbd6dc3d31ec24f5f755103ef20f70611320aa9c6a443d80ca9a6873147a0c6c86ae3b4e7a0ccccc5f365e8fc845647b286353ac31dd54978eac01abb10c0178
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-storage_v1
|
2
2
|
|
3
|
+
### v0.10.0 (2021-12-05)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211201
|
6
|
+
|
7
|
+
### v0.9.0 (2021-10-23)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211018
|
10
|
+
* Unspecified changes
|
11
|
+
|
12
|
+
### v0.8.0 (2021-09-24)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210918
|
15
|
+
|
16
|
+
### v0.7.0 (2021-09-19)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210914
|
19
|
+
|
3
20
|
### v0.6.0 (2021-06-29)
|
4
21
|
|
5
22
|
* Regenerated using generator version 0.4.0
|
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Storage service in particular.)
|
67
67
|
|
@@ -31,6 +31,11 @@ module Google
|
|
31
31
|
# @return [Array<Google::Apis::StorageV1::BucketAccessControl>]
|
32
32
|
attr_accessor :acl
|
33
33
|
|
34
|
+
# The bucket's Autoclass configuration.
|
35
|
+
# Corresponds to the JSON property `autoclass`
|
36
|
+
# @return [Google::Apis::StorageV1::Bucket::Autoclass]
|
37
|
+
attr_accessor :autoclass
|
38
|
+
|
34
39
|
# The bucket's billing configuration.
|
35
40
|
# Corresponds to the JSON property `billing`
|
36
41
|
# @return [Google::Apis::StorageV1::Bucket::Billing]
|
@@ -41,6 +46,11 @@ module Google
|
|
41
46
|
# @return [Array<Google::Apis::StorageV1::Bucket::CorsConfiguration>]
|
42
47
|
attr_accessor :cors_configurations
|
43
48
|
|
49
|
+
# The bucket's custom placement configuration for Custom Dual Regions.
|
50
|
+
# Corresponds to the JSON property `customPlacementConfig`
|
51
|
+
# @return [Google::Apis::StorageV1::Bucket::CustomPlacementConfig]
|
52
|
+
attr_accessor :custom_placement_config
|
53
|
+
|
44
54
|
# The default value for event-based hold on newly created objects in this bucket.
|
45
55
|
# Event-based hold is a way to retain objects indefinitely until an event
|
46
56
|
# occurs, signified by the hold's release. After being released, such objects
|
@@ -150,6 +160,12 @@ module Google
|
|
150
160
|
# @return [Google::Apis::StorageV1::Bucket::RetentionPolicy]
|
151
161
|
attr_accessor :retention_policy
|
152
162
|
|
163
|
+
# The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to turn
|
164
|
+
# on Turbo Replication on a bucket.
|
165
|
+
# Corresponds to the JSON property `rpo`
|
166
|
+
# @return [String]
|
167
|
+
attr_accessor :rpo
|
168
|
+
|
153
169
|
# Reserved for future use.
|
154
170
|
# Corresponds to the JSON property `satisfiesPZS`
|
155
171
|
# @return [Boolean]
|
@@ -194,15 +210,6 @@ module Google
|
|
194
210
|
# @return [Google::Apis::StorageV1::Bucket::Website]
|
195
211
|
attr_accessor :website
|
196
212
|
|
197
|
-
# The zone or zones from which the bucket is intended to use zonal quota.
|
198
|
-
# Requests for data from outside the specified affinities are still allowed but
|
199
|
-
# won't be able to use zonal quota. The zone or zones need to be within the
|
200
|
-
# bucket location otherwise the requests will fail with a 400 Bad Request
|
201
|
-
# response.
|
202
|
-
# Corresponds to the JSON property `zoneAffinity`
|
203
|
-
# @return [Array<String>]
|
204
|
-
attr_accessor :zone_affinity
|
205
|
-
|
206
213
|
def initialize(**args)
|
207
214
|
update!(**args)
|
208
215
|
end
|
@@ -210,8 +217,10 @@ module Google
|
|
210
217
|
# Update properties of this object
|
211
218
|
def update!(**args)
|
212
219
|
@acl = args[:acl] if args.key?(:acl)
|
220
|
+
@autoclass = args[:autoclass] if args.key?(:autoclass)
|
213
221
|
@billing = args[:billing] if args.key?(:billing)
|
214
222
|
@cors_configurations = args[:cors_configurations] if args.key?(:cors_configurations)
|
223
|
+
@custom_placement_config = args[:custom_placement_config] if args.key?(:custom_placement_config)
|
215
224
|
@default_event_based_hold = args[:default_event_based_hold] if args.key?(:default_event_based_hold)
|
216
225
|
@default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl)
|
217
226
|
@encryption = args[:encryption] if args.key?(:encryption)
|
@@ -229,6 +238,7 @@ module Google
|
|
229
238
|
@owner = args[:owner] if args.key?(:owner)
|
230
239
|
@project_number = args[:project_number] if args.key?(:project_number)
|
231
240
|
@retention_policy = args[:retention_policy] if args.key?(:retention_policy)
|
241
|
+
@rpo = args[:rpo] if args.key?(:rpo)
|
232
242
|
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
233
243
|
@self_link = args[:self_link] if args.key?(:self_link)
|
234
244
|
@storage_class = args[:storage_class] if args.key?(:storage_class)
|
@@ -236,7 +246,33 @@ module Google
|
|
236
246
|
@updated = args[:updated] if args.key?(:updated)
|
237
247
|
@versioning = args[:versioning] if args.key?(:versioning)
|
238
248
|
@website = args[:website] if args.key?(:website)
|
239
|
-
|
249
|
+
end
|
250
|
+
|
251
|
+
# The bucket's Autoclass configuration.
|
252
|
+
class Autoclass
|
253
|
+
include Google::Apis::Core::Hashable
|
254
|
+
|
255
|
+
# Whether or not Autoclass is enabled on this bucket
|
256
|
+
# Corresponds to the JSON property `enabled`
|
257
|
+
# @return [Boolean]
|
258
|
+
attr_accessor :enabled
|
259
|
+
alias_method :enabled?, :enabled
|
260
|
+
|
261
|
+
# A date and time in RFC 3339 format representing the instant at which "enabled"
|
262
|
+
# was last toggled.
|
263
|
+
# Corresponds to the JSON property `toggleTime`
|
264
|
+
# @return [DateTime]
|
265
|
+
attr_accessor :toggle_time
|
266
|
+
|
267
|
+
def initialize(**args)
|
268
|
+
update!(**args)
|
269
|
+
end
|
270
|
+
|
271
|
+
# Update properties of this object
|
272
|
+
def update!(**args)
|
273
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
274
|
+
@toggle_time = args[:toggle_time] if args.key?(:toggle_time)
|
275
|
+
end
|
240
276
|
end
|
241
277
|
|
242
278
|
# The bucket's billing configuration.
|
@@ -301,6 +337,25 @@ module Google
|
|
301
337
|
end
|
302
338
|
end
|
303
339
|
|
340
|
+
# The bucket's custom placement configuration for Custom Dual Regions.
|
341
|
+
class CustomPlacementConfig
|
342
|
+
include Google::Apis::Core::Hashable
|
343
|
+
|
344
|
+
# The list of regional locations in which data is placed.
|
345
|
+
# Corresponds to the JSON property `dataLocations`
|
346
|
+
# @return [Array<String>]
|
347
|
+
attr_accessor :data_locations
|
348
|
+
|
349
|
+
def initialize(**args)
|
350
|
+
update!(**args)
|
351
|
+
end
|
352
|
+
|
353
|
+
# Update properties of this object
|
354
|
+
def update!(**args)
|
355
|
+
@data_locations = args[:data_locations] if args.key?(:data_locations)
|
356
|
+
end
|
357
|
+
end
|
358
|
+
|
304
359
|
# Encryption configuration for a bucket.
|
305
360
|
class Encryption
|
306
361
|
include Google::Apis::Core::Hashable
|
@@ -334,7 +389,7 @@ module Google
|
|
334
389
|
# @return [Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly]
|
335
390
|
attr_accessor :bucket_policy_only
|
336
391
|
|
337
|
-
# The bucket's Public Access Prevention configuration. Currently, '
|
392
|
+
# The bucket's Public Access Prevention configuration. Currently, 'inherited'
|
338
393
|
# and 'enforced' are supported.
|
339
394
|
# Corresponds to the JSON property `publicAccessPrevention`
|
340
395
|
# @return [String]
|
@@ -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.10.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211201"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -25,6 +25,12 @@ module Google
|
|
25
25
|
class Bucket
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
27
|
|
28
|
+
class Autoclass
|
29
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
30
|
+
|
31
|
+
include Google::Apis::Core::JsonObjectSupport
|
32
|
+
end
|
33
|
+
|
28
34
|
class Billing
|
29
35
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
30
36
|
|
@@ -37,6 +43,12 @@ module Google
|
|
37
43
|
include Google::Apis::Core::JsonObjectSupport
|
38
44
|
end
|
39
45
|
|
46
|
+
class CustomPlacementConfig
|
47
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
48
|
+
|
49
|
+
include Google::Apis::Core::JsonObjectSupport
|
50
|
+
end
|
51
|
+
|
40
52
|
class Encryption
|
41
53
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
42
54
|
|
@@ -279,10 +291,14 @@ module Google
|
|
279
291
|
class Representation < Google::Apis::Core::JsonRepresentation
|
280
292
|
collection :acl, as: 'acl', class: Google::Apis::StorageV1::BucketAccessControl, decorator: Google::Apis::StorageV1::BucketAccessControl::Representation
|
281
293
|
|
294
|
+
property :autoclass, as: 'autoclass', class: Google::Apis::StorageV1::Bucket::Autoclass, decorator: Google::Apis::StorageV1::Bucket::Autoclass::Representation
|
295
|
+
|
282
296
|
property :billing, as: 'billing', class: Google::Apis::StorageV1::Bucket::Billing, decorator: Google::Apis::StorageV1::Bucket::Billing::Representation
|
283
297
|
|
284
298
|
collection :cors_configurations, as: 'cors', class: Google::Apis::StorageV1::Bucket::CorsConfiguration, decorator: Google::Apis::StorageV1::Bucket::CorsConfiguration::Representation
|
285
299
|
|
300
|
+
property :custom_placement_config, as: 'customPlacementConfig', class: Google::Apis::StorageV1::Bucket::CustomPlacementConfig, decorator: Google::Apis::StorageV1::Bucket::CustomPlacementConfig::Representation
|
301
|
+
|
286
302
|
property :default_event_based_hold, as: 'defaultEventBasedHold'
|
287
303
|
collection :default_object_acl, as: 'defaultObjectAcl', class: Google::Apis::StorageV1::ObjectAccessControl, decorator: Google::Apis::StorageV1::ObjectAccessControl::Representation
|
288
304
|
|
@@ -307,6 +323,7 @@ module Google
|
|
307
323
|
property :project_number, :numeric_string => true, as: 'projectNumber'
|
308
324
|
property :retention_policy, as: 'retentionPolicy', class: Google::Apis::StorageV1::Bucket::RetentionPolicy, decorator: Google::Apis::StorageV1::Bucket::RetentionPolicy::Representation
|
309
325
|
|
326
|
+
property :rpo, as: 'rpo'
|
310
327
|
property :satisfies_pzs, as: 'satisfiesPZS'
|
311
328
|
property :self_link, as: 'selfLink'
|
312
329
|
property :storage_class, as: 'storageClass'
|
@@ -318,7 +335,15 @@ module Google
|
|
318
335
|
|
319
336
|
property :website, as: 'website', class: Google::Apis::StorageV1::Bucket::Website, decorator: Google::Apis::StorageV1::Bucket::Website::Representation
|
320
337
|
|
321
|
-
|
338
|
+
end
|
339
|
+
|
340
|
+
class Autoclass
|
341
|
+
# @private
|
342
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
343
|
+
property :enabled, as: 'enabled'
|
344
|
+
property :toggle_time, as: 'toggleTime', type: DateTime
|
345
|
+
|
346
|
+
end
|
322
347
|
end
|
323
348
|
|
324
349
|
class Billing
|
@@ -338,6 +363,13 @@ module Google
|
|
338
363
|
end
|
339
364
|
end
|
340
365
|
|
366
|
+
class CustomPlacementConfig
|
367
|
+
# @private
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
369
|
+
collection :data_locations, as: 'dataLocations'
|
370
|
+
end
|
371
|
+
end
|
372
|
+
|
341
373
|
class Encryption
|
342
374
|
# @private
|
343
375
|
class Representation < Google::Apis::Core::JsonRepresentation
|
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.10.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: 2021-
|
11
|
+
date: 2021-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.10.0
|
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: []
|
65
65
|
require_paths:
|