google-apis-storage_v1 0.7.0 → 0.11.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 +3 -3
- data/lib/google/apis/storage_v1/classes.rb +59 -11
- data/lib/google/apis/storage_v1/gem_version.rb +2 -2
- data/lib/google/apis/storage_v1/representations.rb +32 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 016b33a9fb3f3cf83ad3b022162b0681a39401969ef2b0bb86c1d1a59fc25946
|
4
|
+
data.tar.gz: 9bfd3dc689547ee29407f1814a1c572090487761a32268cd3e7190b49a15c990
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b81f46df4a61fc7627cd7468a56352f203bba1734161c4fa1ba7f1b0461b1f958d5b05a4c397d14b46995f01b0326bda90d40b1ae06f6e47ee576d273006727
|
7
|
+
data.tar.gz: 2f5ce26cd9a80f0c67bdc0e554aea357381214aaf264fe41c896a78517549d54d3ea39597440aaaf1f67e0d6c07575785799c3c68ab818ef75d253ddb6bd38cc
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-storage_v1
|
2
2
|
|
3
|
+
### v0.11.0 (2021-12-14)
|
4
|
+
|
5
|
+
* Unspecified changes
|
6
|
+
|
7
|
+
### v0.10.0 (2021-12-05)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211201
|
10
|
+
|
11
|
+
### v0.9.0 (2021-10-23)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20211018
|
14
|
+
* Unspecified changes
|
15
|
+
|
16
|
+
### v0.8.0 (2021-09-24)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210918
|
19
|
+
|
3
20
|
### v0.7.0 (2021-09-19)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210914
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/storage_v1"
|
|
51
51
|
client = Google::Apis::StorageV1::StorageService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -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
|
@@ -200,15 +210,6 @@ module Google
|
|
200
210
|
# @return [Google::Apis::StorageV1::Bucket::Website]
|
201
211
|
attr_accessor :website
|
202
212
|
|
203
|
-
# The zone or zones from which the bucket is intended to use zonal quota.
|
204
|
-
# Requests for data from outside the specified affinities are still allowed but
|
205
|
-
# won't be able to use zonal quota. The zone or zones need to be within the
|
206
|
-
# bucket location otherwise the requests will fail with a 400 Bad Request
|
207
|
-
# response.
|
208
|
-
# Corresponds to the JSON property `zoneAffinity`
|
209
|
-
# @return [Array<String>]
|
210
|
-
attr_accessor :zone_affinity
|
211
|
-
|
212
213
|
def initialize(**args)
|
213
214
|
update!(**args)
|
214
215
|
end
|
@@ -216,8 +217,10 @@ module Google
|
|
216
217
|
# Update properties of this object
|
217
218
|
def update!(**args)
|
218
219
|
@acl = args[:acl] if args.key?(:acl)
|
220
|
+
@autoclass = args[:autoclass] if args.key?(:autoclass)
|
219
221
|
@billing = args[:billing] if args.key?(:billing)
|
220
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)
|
221
224
|
@default_event_based_hold = args[:default_event_based_hold] if args.key?(:default_event_based_hold)
|
222
225
|
@default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl)
|
223
226
|
@encryption = args[:encryption] if args.key?(:encryption)
|
@@ -243,7 +246,33 @@ module Google
|
|
243
246
|
@updated = args[:updated] if args.key?(:updated)
|
244
247
|
@versioning = args[:versioning] if args.key?(:versioning)
|
245
248
|
@website = args[:website] if args.key?(:website)
|
246
|
-
|
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
|
247
276
|
end
|
248
277
|
|
249
278
|
# The bucket's billing configuration.
|
@@ -308,6 +337,25 @@ module Google
|
|
308
337
|
end
|
309
338
|
end
|
310
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
|
+
|
311
359
|
# Encryption configuration for a bucket.
|
312
360
|
class Encryption
|
313
361
|
include Google::Apis::Core::Hashable
|
@@ -341,7 +389,7 @@ module Google
|
|
341
389
|
# @return [Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly]
|
342
390
|
attr_accessor :bucket_policy_only
|
343
391
|
|
344
|
-
# The bucket's Public Access Prevention configuration. Currently, '
|
392
|
+
# The bucket's Public Access Prevention configuration. Currently, 'inherited'
|
345
393
|
# and 'enforced' are supported.
|
346
394
|
# Corresponds to the JSON property `publicAccessPrevention`
|
347
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.11.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
|
|
@@ -319,7 +335,15 @@ module Google
|
|
319
335
|
|
320
336
|
property :website, as: 'website', class: Google::Apis::StorageV1::Bucket::Website, decorator: Google::Apis::StorageV1::Bucket::Website::Representation
|
321
337
|
|
322
|
-
|
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
|
323
347
|
end
|
324
348
|
|
325
349
|
class Billing
|
@@ -339,6 +363,13 @@ module Google
|
|
339
363
|
end
|
340
364
|
end
|
341
365
|
|
366
|
+
class CustomPlacementConfig
|
367
|
+
# @private
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
369
|
+
collection :data_locations, as: 'dataLocations'
|
370
|
+
end
|
371
|
+
end
|
372
|
+
|
342
373
|
class Encryption
|
343
374
|
# @private
|
344
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.11.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:
|
11
|
+
date: 2022-01-10 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.11.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:
|
@@ -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.
|
78
|
+
rubygems_version: 3.3.4
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Storage JSON API V1
|