google-apis-storage_v1 0.5.0 → 0.9.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: 2690cab47cae1a044e46ef1682aaef9746610773342f045261c41029e37ab975
4
- data.tar.gz: a4890b882496c5b94659bad67d2b5b25ae14083090a61546a243a96c9ba317b3
3
+ metadata.gz: 4d39b5a7030b3c46448bfed91dee7e11f91110f66f8d6586afa689b66ca9af24
4
+ data.tar.gz: c0afa1199a13180670ef00a4299a7372b31edbf63f7d222aa8826ebac771ed5a
5
5
  SHA512:
6
- metadata.gz: eb878ef7403ce52ee5230961575dd663b0c85d200f60b44dec20d0997cc75a83bb2eb9ac20ec5400bd993571ba4f69da28bf0751316dfb17c4e93ab52dbd498a
7
- data.tar.gz: 396d8e245487d3be6dd927c89a2cb1595d15c718d468e1d8558d6d44ba6e0e9bfead5681deb9f756b0bd539f5a5f8ed20db24738835608615a9d56562ce31d57
6
+ metadata.gz: d172be36170052bf3f490c294eba1238225a27b22ed7abfcdd1f5700a677a9671e450fc13c4debf730507450dd1d77b1825212eff1822a4409130e1ee37c739c
7
+ data.tar.gz: 3b975bbd6805f7cbda4e11a2542308d818c06d2585159059422d208f67e4355e3b29cdae9c380518139e1da50f50b54f25a789a11cd0f919bbf2694db8a4339c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-storage_v1
2
2
 
3
+ ### v0.9.0 (2021-10-23)
4
+
5
+ * Regenerated from discovery document revision 20211018
6
+ * Unspecified changes
7
+
8
+ ### v0.8.0 (2021-09-24)
9
+
10
+ * Regenerated from discovery document revision 20210918
11
+
12
+ ### v0.7.0 (2021-09-19)
13
+
14
+ * Regenerated from discovery document revision 20210914
15
+
16
+ ### v0.6.0 (2021-06-29)
17
+
18
+ * Regenerated using generator version 0.4.0
19
+
3
20
  ### v0.5.0 (2021-06-24)
4
21
 
5
22
  * Regenerated using generator version 0.3.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/master/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/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
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
- @zone_affinity = args[:zone_affinity] if args.key?(:zone_affinity)
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
@@ -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.5.0"
19
+ GEM_VERSION = "0.9.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.3.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210127"
25
+ REVISION = "20211018"
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
- collection :zone_affinity, as: 'zoneAffinity'
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.5.0
4
+ version: 0.9.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-06-28 00:00:00.000000000 Z
11
+ date: 2021-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
19
+ version: '0.4'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.3'
29
+ version: '0.4'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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/master/generated/google-apis-storage_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.5.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-storage_v1
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.9.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: