google-apis-storage_v1 0.8.0 → 0.14.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: 9d63506aefa57f170d680e31d991abf54080d7aaa03a634f49fd99bb45a6f844
4
- data.tar.gz: 773352a014ea36e4be76b9efe854997ef2af347a4ecc2abe4156238c5fed0269
3
+ metadata.gz: 6b09a7a89c3359a7a7ac3b226656526bc2995ac49274c27dd7059dd0e1aa5b65
4
+ data.tar.gz: b587f670edbe3d16d8a35ae85e18704536fea3335760cca736f33a1f9a3501c7
5
5
  SHA512:
6
- metadata.gz: 551024165be12d18f8f616523af1f07d79914368a8ba96b2bf85420100cfa0dda6c37ff3626358aacddc3a2ad4ea205b5abddfbbc75ea38cef07d5876e647d1b
7
- data.tar.gz: 856f15d95de12d7e6e80817c135a46f45db2a2789f1b6100584602cc0ce9eff5ad616302ee811ff1dda9a4a73795b65e81a66501f76be9a69d87d157177fd531
6
+ metadata.gz: 942de35fa75c5ca80c2b9637e74114d3a73c0b313f73d1b0829c1f79cc165b0581d788c4bbec2cf7751726d8a7d1db567a3550b32c59cfeccbd74bd35835698c
7
+ data.tar.gz: 3a41e17ccbfa2ea364bfcce6c43f95c62d62bbf43a7e2e5d7abc64af16c0baf817ef5b946880905523cc0899edcd80ded09de9a279a4af891902f09782faabeb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Release history for google-apis-storage_v1
2
2
 
3
+ ### v0.14.0 (2022-05-13)
4
+
5
+ * Regenerated from discovery document revision 20220509
6
+
7
+ ### v0.13.0 (2022-04-05)
8
+
9
+ * Regenerated from discovery document revision 20220401
10
+
11
+ ### v0.12.0 (2022-04-01)
12
+
13
+ * Regenerated from discovery document revision 20220328
14
+ * Regenerated using generator version 0.4.1
15
+
16
+ ### v0.11.0 (2021-12-14)
17
+
18
+ * Unspecified changes
19
+
20
+ ### v0.10.0 (2021-12-05)
21
+
22
+ * Regenerated from discovery document revision 20211201
23
+
24
+ ### v0.9.0 (2021-10-23)
25
+
26
+ * Regenerated from discovery document revision 20211018
27
+ * Unspecified changes
28
+
3
29
  ### v0.8.0 (2021-09-24)
4
30
 
5
31
  * Regenerated from discovery document revision 20210918
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.authentication = # ... use the googleauth gem to create credentials
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/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,11 +46,6 @@ module Google
41
46
  # @return [Array<Google::Apis::StorageV1::Bucket::CorsConfiguration>]
42
47
  attr_accessor :cors_configurations
43
48
 
44
- # The bucket's custom placement configuration for Custom Dual Regions.
45
- # Corresponds to the JSON property `customPlacementConfig`
46
- # @return [Google::Apis::StorageV1::Bucket::CustomPlacementConfig]
47
- attr_accessor :custom_placement_config
48
-
49
49
  # The default value for event-based hold on newly created objects in this bucket.
50
50
  # Event-based hold is a way to retain objects indefinitely until an event
51
51
  # occurs, signified by the hold's release. After being released, such objects
@@ -212,9 +212,9 @@ module Google
212
212
  # Update properties of this object
213
213
  def update!(**args)
214
214
  @acl = args[:acl] if args.key?(:acl)
215
+ @autoclass = args[:autoclass] if args.key?(:autoclass)
215
216
  @billing = args[:billing] if args.key?(:billing)
216
217
  @cors_configurations = args[:cors_configurations] if args.key?(:cors_configurations)
217
- @custom_placement_config = args[:custom_placement_config] if args.key?(:custom_placement_config)
218
218
  @default_event_based_hold = args[:default_event_based_hold] if args.key?(:default_event_based_hold)
219
219
  @default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl)
220
220
  @encryption = args[:encryption] if args.key?(:encryption)
@@ -242,6 +242,33 @@ module Google
242
242
  @website = args[:website] if args.key?(:website)
243
243
  end
244
244
 
245
+ # The bucket's Autoclass configuration.
246
+ class Autoclass
247
+ include Google::Apis::Core::Hashable
248
+
249
+ # Whether or not Autoclass is enabled on this bucket
250
+ # Corresponds to the JSON property `enabled`
251
+ # @return [Boolean]
252
+ attr_accessor :enabled
253
+ alias_method :enabled?, :enabled
254
+
255
+ # A date and time in RFC 3339 format representing the instant at which "enabled"
256
+ # was last toggled.
257
+ # Corresponds to the JSON property `toggleTime`
258
+ # @return [DateTime]
259
+ attr_accessor :toggle_time
260
+
261
+ def initialize(**args)
262
+ update!(**args)
263
+ end
264
+
265
+ # Update properties of this object
266
+ def update!(**args)
267
+ @enabled = args[:enabled] if args.key?(:enabled)
268
+ @toggle_time = args[:toggle_time] if args.key?(:toggle_time)
269
+ end
270
+ end
271
+
245
272
  # The bucket's billing configuration.
246
273
  class Billing
247
274
  include Google::Apis::Core::Hashable
@@ -304,25 +331,6 @@ module Google
304
331
  end
305
332
  end
306
333
 
307
- # The bucket's custom placement configuration for Custom Dual Regions.
308
- class CustomPlacementConfig
309
- include Google::Apis::Core::Hashable
310
-
311
- # The list of regional locations in which data is placed.
312
- # Corresponds to the JSON property `dataLocations`
313
- # @return [Array<String>]
314
- attr_accessor :data_locations
315
-
316
- def initialize(**args)
317
- update!(**args)
318
- end
319
-
320
- # Update properties of this object
321
- def update!(**args)
322
- @data_locations = args[:data_locations] if args.key?(:data_locations)
323
- end
324
- end
325
-
326
334
  # Encryption configuration for a bucket.
327
335
  class Encryption
328
336
  include Google::Apis::Core::Hashable
@@ -356,7 +364,7 @@ module Google
356
364
  # @return [Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly]
357
365
  attr_accessor :bucket_policy_only
358
366
 
359
- # The bucket's Public Access Prevention configuration. Currently, 'unspecified'
367
+ # The bucket's Public Access Prevention configuration. Currently, 'inherited'
360
368
  # and 'enforced' are supported.
361
369
  # Corresponds to the JSON property `publicAccessPrevention`
362
370
  # @return [String]
@@ -566,6 +574,12 @@ module Google
566
574
  # @return [String]
567
575
  attr_accessor :matches_pattern
568
576
 
577
+ # List of object name prefixes. This condition will be satisfied when at least
578
+ # one of the prefixes exactly matches the beginning of the object name.
579
+ # Corresponds to the JSON property `matchesPrefix`
580
+ # @return [Array<String>]
581
+ attr_accessor :matches_prefix
582
+
569
583
  # Objects having any of the storage classes specified by this condition will be
570
584
  # matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE,
571
585
  # STANDARD, and DURABLE_REDUCED_AVAILABILITY.
@@ -573,6 +587,12 @@ module Google
573
587
  # @return [Array<String>]
574
588
  attr_accessor :matches_storage_class
575
589
 
590
+ # List of object name suffixes. This condition will be satisfied when at least
591
+ # one of the suffixes exactly matches the end of the object name.
592
+ # Corresponds to the JSON property `matchesSuffix`
593
+ # @return [Array<String>]
594
+ attr_accessor :matches_suffix
595
+
576
596
  # A date in RFC 3339 format with only the date part (for instance, "2013-01-15").
577
597
  # This condition is satisfied when the noncurrent time on an object is before
578
598
  # this date in UTC. This condition is relevant only for versioned objects.
@@ -600,7 +620,9 @@ module Google
600
620
  @days_since_noncurrent_time = args[:days_since_noncurrent_time] if args.key?(:days_since_noncurrent_time)
601
621
  @is_live = args[:is_live] if args.key?(:is_live)
602
622
  @matches_pattern = args[:matches_pattern] if args.key?(:matches_pattern)
623
+ @matches_prefix = args[:matches_prefix] if args.key?(:matches_prefix)
603
624
  @matches_storage_class = args[:matches_storage_class] if args.key?(:matches_storage_class)
625
+ @matches_suffix = args[:matches_suffix] if args.key?(:matches_suffix)
604
626
  @noncurrent_time_before = args[:noncurrent_time_before] if args.key?(:noncurrent_time_before)
605
627
  @num_newer_versions = args[:num_newer_versions] if args.key?(:num_newer_versions)
606
628
  end
@@ -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.8.0"
19
+ GEM_VERSION = "0.14.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210918"
25
+ REVISION = "20220509"
26
26
  end
27
27
  end
28
28
  end
@@ -25,19 +25,19 @@ module Google
25
25
  class Bucket
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
- class Billing
28
+ class Autoclass
29
29
  class Representation < Google::Apis::Core::JsonRepresentation; end
30
30
 
31
31
  include Google::Apis::Core::JsonObjectSupport
32
32
  end
33
33
 
34
- class CorsConfiguration
34
+ class Billing
35
35
  class Representation < Google::Apis::Core::JsonRepresentation; end
36
36
 
37
37
  include Google::Apis::Core::JsonObjectSupport
38
38
  end
39
39
 
40
- class CustomPlacementConfig
40
+ class CorsConfiguration
41
41
  class Representation < Google::Apis::Core::JsonRepresentation; end
42
42
 
43
43
  include Google::Apis::Core::JsonObjectSupport
@@ -285,12 +285,12 @@ module Google
285
285
  class Representation < Google::Apis::Core::JsonRepresentation
286
286
  collection :acl, as: 'acl', class: Google::Apis::StorageV1::BucketAccessControl, decorator: Google::Apis::StorageV1::BucketAccessControl::Representation
287
287
 
288
+ property :autoclass, as: 'autoclass', class: Google::Apis::StorageV1::Bucket::Autoclass, decorator: Google::Apis::StorageV1::Bucket::Autoclass::Representation
289
+
288
290
  property :billing, as: 'billing', class: Google::Apis::StorageV1::Bucket::Billing, decorator: Google::Apis::StorageV1::Bucket::Billing::Representation
289
291
 
290
292
  collection :cors_configurations, as: 'cors', class: Google::Apis::StorageV1::Bucket::CorsConfiguration, decorator: Google::Apis::StorageV1::Bucket::CorsConfiguration::Representation
291
293
 
292
- property :custom_placement_config, as: 'customPlacementConfig', class: Google::Apis::StorageV1::Bucket::CustomPlacementConfig, decorator: Google::Apis::StorageV1::Bucket::CustomPlacementConfig::Representation
293
-
294
294
  property :default_event_based_hold, as: 'defaultEventBasedHold'
295
295
  collection :default_object_acl, as: 'defaultObjectAcl', class: Google::Apis::StorageV1::ObjectAccessControl, decorator: Google::Apis::StorageV1::ObjectAccessControl::Representation
296
296
 
@@ -329,6 +329,15 @@ module Google
329
329
 
330
330
  end
331
331
 
332
+ class Autoclass
333
+ # @private
334
+ class Representation < Google::Apis::Core::JsonRepresentation
335
+ property :enabled, as: 'enabled'
336
+ property :toggle_time, as: 'toggleTime', type: DateTime
337
+
338
+ end
339
+ end
340
+
332
341
  class Billing
333
342
  # @private
334
343
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -346,13 +355,6 @@ module Google
346
355
  end
347
356
  end
348
357
 
349
- class CustomPlacementConfig
350
- # @private
351
- class Representation < Google::Apis::Core::JsonRepresentation
352
- collection :data_locations, as: 'dataLocations'
353
- end
354
- end
355
-
356
358
  class Encryption
357
359
  # @private
358
360
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -425,7 +427,9 @@ module Google
425
427
  property :days_since_noncurrent_time, as: 'daysSinceNoncurrentTime'
426
428
  property :is_live, as: 'isLive'
427
429
  property :matches_pattern, as: 'matchesPattern'
430
+ collection :matches_prefix, as: 'matchesPrefix'
428
431
  collection :matches_storage_class, as: 'matchesStorageClass'
432
+ collection :matches_suffix, as: 'matchesSuffix'
429
433
  property :noncurrent_time_before, as: 'noncurrentTimeBefore', type: Date
430
434
 
431
435
  property :num_newer_versions, as: 'numNewerVersions'