google-apis-storage_v1 0.19.0 → 0.40.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.
@@ -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.0"
19
+ GEM_VERSION = "0.40.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.10.0"
22
+ GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220705"
25
+ REVISION = "20240621"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,18 @@ module Google
22
22
  module Apis
23
23
  module StorageV1
24
24
 
25
+ class AnywhereCache
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AnywhereCaches
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
25
37
  class Bucket
26
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
39
 
@@ -55,6 +67,12 @@ module Google
55
67
  include Google::Apis::Core::JsonObjectSupport
56
68
  end
57
69
 
70
+ class HierarchicalNamespace
71
+ class Representation < Google::Apis::Core::JsonRepresentation; end
72
+
73
+ include Google::Apis::Core::JsonObjectSupport
74
+ end
75
+
58
76
  class IamConfiguration
59
77
  class Representation < Google::Apis::Core::JsonRepresentation; end
60
78
 
@@ -103,6 +121,12 @@ module Google
103
121
  include Google::Apis::Core::JsonObjectSupport
104
122
  end
105
123
 
124
+ class ObjectRetention
125
+ class Representation < Google::Apis::Core::JsonRepresentation; end
126
+
127
+ include Google::Apis::Core::JsonObjectSupport
128
+ end
129
+
106
130
  class Owner
107
131
  class Representation < Google::Apis::Core::JsonRepresentation; end
108
132
 
@@ -115,6 +139,12 @@ module Google
115
139
  include Google::Apis::Core::JsonObjectSupport
116
140
  end
117
141
 
142
+ class SoftDeletePolicy
143
+ class Representation < Google::Apis::Core::JsonRepresentation; end
144
+
145
+ include Google::Apis::Core::JsonObjectSupport
146
+ end
147
+
118
148
  class Versioning
119
149
  class Representation < Google::Apis::Core::JsonRepresentation; end
120
150
 
@@ -148,12 +178,36 @@ module Google
148
178
  include Google::Apis::Core::JsonObjectSupport
149
179
  end
150
180
 
181
+ class BucketStorageLayout
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ class CustomPlacementConfig
185
+ class Representation < Google::Apis::Core::JsonRepresentation; end
186
+
187
+ include Google::Apis::Core::JsonObjectSupport
188
+ end
189
+
190
+ class HierarchicalNamespace
191
+ class Representation < Google::Apis::Core::JsonRepresentation; end
192
+
193
+ include Google::Apis::Core::JsonObjectSupport
194
+ end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
151
199
  class Buckets
152
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
201
 
154
202
  include Google::Apis::Core::JsonObjectSupport
155
203
  end
156
204
 
205
+ class BulkRestoreObjectsRequest
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
157
211
  class Channel
158
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
213
 
@@ -184,6 +238,42 @@ module Google
184
238
  include Google::Apis::Core::JsonObjectSupport
185
239
  end
186
240
 
241
+ class Folder
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ class PendingRenameInfo
245
+ class Representation < Google::Apis::Core::JsonRepresentation; end
246
+
247
+ include Google::Apis::Core::JsonObjectSupport
248
+ end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class Folders
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class GoogleLongrunningListOperationsResponse
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class GoogleLongrunningOperation
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class GoogleRpcStatus
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
187
277
  class HmacKey
188
278
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
279
 
@@ -202,6 +292,18 @@ module Google
202
292
  include Google::Apis::Core::JsonObjectSupport
203
293
  end
204
294
 
295
+ class ManagedFolder
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
301
+ class ManagedFolders
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
205
307
  class Notification
206
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
309
 
@@ -228,6 +330,12 @@ module Google
228
330
 
229
331
  include Google::Apis::Core::JsonObjectSupport
230
332
  end
333
+
334
+ class Retention
335
+ class Representation < Google::Apis::Core::JsonRepresentation; end
336
+
337
+ include Google::Apis::Core::JsonObjectSupport
338
+ end
231
339
 
232
340
  include Google::Apis::Core::JsonObjectSupport
233
341
  end
@@ -286,6 +394,36 @@ module Google
286
394
  include Google::Apis::Core::JsonObjectSupport
287
395
  end
288
396
 
397
+ class AnywhereCache
398
+ # @private
399
+ class Representation < Google::Apis::Core::JsonRepresentation
400
+ property :admission_policy, as: 'admissionPolicy'
401
+ property :anywhere_cache_id, as: 'anywhereCacheId'
402
+ property :bucket, as: 'bucket'
403
+ property :create_time, as: 'createTime', type: DateTime
404
+
405
+ property :id, as: 'id'
406
+ property :kind, as: 'kind'
407
+ property :pending_update, as: 'pendingUpdate'
408
+ property :self_link, as: 'selfLink'
409
+ property :state, as: 'state'
410
+ property :ttl, as: 'ttl'
411
+ property :update_time, as: 'updateTime', type: DateTime
412
+
413
+ property :zone, as: 'zone'
414
+ end
415
+ end
416
+
417
+ class AnywhereCaches
418
+ # @private
419
+ class Representation < Google::Apis::Core::JsonRepresentation
420
+ collection :items, as: 'items', class: Google::Apis::StorageV1::AnywhereCache, decorator: Google::Apis::StorageV1::AnywhereCache::Representation
421
+
422
+ property :kind, as: 'kind'
423
+ property :next_page_token, as: 'nextPageToken'
424
+ end
425
+ end
426
+
289
427
  class Bucket
290
428
  # @private
291
429
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -305,6 +443,8 @@ module Google
305
443
  property :encryption, as: 'encryption', class: Google::Apis::StorageV1::Bucket::Encryption, decorator: Google::Apis::StorageV1::Bucket::Encryption::Representation
306
444
 
307
445
  property :etag, as: 'etag'
446
+ property :hierarchical_namespace, as: 'hierarchicalNamespace', class: Google::Apis::StorageV1::Bucket::HierarchicalNamespace, decorator: Google::Apis::StorageV1::Bucket::HierarchicalNamespace::Representation
447
+
308
448
  property :iam_configuration, as: 'iamConfiguration', class: Google::Apis::StorageV1::Bucket::IamConfiguration, decorator: Google::Apis::StorageV1::Bucket::IamConfiguration::Representation
309
449
 
310
450
  property :id, as: 'id'
@@ -318,6 +458,8 @@ module Google
318
458
 
319
459
  property :metageneration, :numeric_string => true, as: 'metageneration'
320
460
  property :name, as: 'name'
461
+ property :object_retention, as: 'objectRetention', class: Google::Apis::StorageV1::Bucket::ObjectRetention, decorator: Google::Apis::StorageV1::Bucket::ObjectRetention::Representation
462
+
321
463
  property :owner, as: 'owner', class: Google::Apis::StorageV1::Bucket::Owner, decorator: Google::Apis::StorageV1::Bucket::Owner::Representation
322
464
 
323
465
  property :project_number, :numeric_string => true, as: 'projectNumber'
@@ -326,6 +468,8 @@ module Google
326
468
  property :rpo, as: 'rpo'
327
469
  property :satisfies_pzs, as: 'satisfiesPZS'
328
470
  property :self_link, as: 'selfLink'
471
+ property :soft_delete_policy, as: 'softDeletePolicy', class: Google::Apis::StorageV1::Bucket::SoftDeletePolicy, decorator: Google::Apis::StorageV1::Bucket::SoftDeletePolicy::Representation
472
+
329
473
  property :storage_class, as: 'storageClass'
330
474
  property :time_created, as: 'timeCreated', type: DateTime
331
475
 
@@ -341,6 +485,9 @@ module Google
341
485
  # @private
342
486
  class Representation < Google::Apis::Core::JsonRepresentation
343
487
  property :enabled, as: 'enabled'
488
+ property :terminal_storage_class, as: 'terminalStorageClass'
489
+ property :terminal_storage_class_update_time, as: 'terminalStorageClassUpdateTime', type: DateTime
490
+
344
491
  property :toggle_time, as: 'toggleTime', type: DateTime
345
492
 
346
493
  end
@@ -377,6 +524,13 @@ module Google
377
524
  end
378
525
  end
379
526
 
527
+ class HierarchicalNamespace
528
+ # @private
529
+ class Representation < Google::Apis::Core::JsonRepresentation
530
+ property :enabled, as: 'enabled'
531
+ end
532
+ end
533
+
380
534
  class IamConfiguration
381
535
  # @private
382
536
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -461,6 +615,13 @@ module Google
461
615
  end
462
616
  end
463
617
 
618
+ class ObjectRetention
619
+ # @private
620
+ class Representation < Google::Apis::Core::JsonRepresentation
621
+ property :mode, as: 'mode'
622
+ end
623
+ end
624
+
464
625
  class Owner
465
626
  # @private
466
627
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -479,6 +640,15 @@ module Google
479
640
  end
480
641
  end
481
642
 
643
+ class SoftDeletePolicy
644
+ # @private
645
+ class Representation < Google::Apis::Core::JsonRepresentation
646
+ property :effective_time, as: 'effectiveTime', type: DateTime
647
+
648
+ property :retention_duration_seconds, :numeric_string => true, as: 'retentionDurationSeconds'
649
+ end
650
+ end
651
+
482
652
  class Versioning
483
653
  # @private
484
654
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -530,6 +700,34 @@ module Google
530
700
  end
531
701
  end
532
702
 
703
+ class BucketStorageLayout
704
+ # @private
705
+ class Representation < Google::Apis::Core::JsonRepresentation
706
+ property :bucket, as: 'bucket'
707
+ property :custom_placement_config, as: 'customPlacementConfig', class: Google::Apis::StorageV1::BucketStorageLayout::CustomPlacementConfig, decorator: Google::Apis::StorageV1::BucketStorageLayout::CustomPlacementConfig::Representation
708
+
709
+ property :hierarchical_namespace, as: 'hierarchicalNamespace', class: Google::Apis::StorageV1::BucketStorageLayout::HierarchicalNamespace, decorator: Google::Apis::StorageV1::BucketStorageLayout::HierarchicalNamespace::Representation
710
+
711
+ property :kind, as: 'kind'
712
+ property :location, as: 'location'
713
+ property :location_type, as: 'locationType'
714
+ end
715
+
716
+ class CustomPlacementConfig
717
+ # @private
718
+ class Representation < Google::Apis::Core::JsonRepresentation
719
+ collection :data_locations, as: 'dataLocations'
720
+ end
721
+ end
722
+
723
+ class HierarchicalNamespace
724
+ # @private
725
+ class Representation < Google::Apis::Core::JsonRepresentation
726
+ property :enabled, as: 'enabled'
727
+ end
728
+ end
729
+ end
730
+
533
731
  class Buckets
534
732
  # @private
535
733
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -540,6 +738,19 @@ module Google
540
738
  end
541
739
  end
542
740
 
741
+ class BulkRestoreObjectsRequest
742
+ # @private
743
+ class Representation < Google::Apis::Core::JsonRepresentation
744
+ property :allow_overwrite, as: 'allowOverwrite'
745
+ property :copy_source_acl, as: 'copySourceAcl'
746
+ collection :match_globs, as: 'matchGlobs'
747
+ property :soft_deleted_after_time, as: 'softDeletedAfterTime', type: DateTime
748
+
749
+ property :soft_deleted_before_time, as: 'softDeletedBeforeTime', type: DateTime
750
+
751
+ end
752
+ end
753
+
543
754
  class Channel
544
755
  # @private
545
756
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -594,6 +805,74 @@ module Google
594
805
  end
595
806
  end
596
807
 
808
+ class Folder
809
+ # @private
810
+ class Representation < Google::Apis::Core::JsonRepresentation
811
+ property :bucket, as: 'bucket'
812
+ property :create_time, as: 'createTime', type: DateTime
813
+
814
+ property :id, as: 'id'
815
+ property :kind, as: 'kind'
816
+ property :metageneration, :numeric_string => true, as: 'metageneration'
817
+ property :name, as: 'name'
818
+ property :pending_rename_info, as: 'pendingRenameInfo', class: Google::Apis::StorageV1::Folder::PendingRenameInfo, decorator: Google::Apis::StorageV1::Folder::PendingRenameInfo::Representation
819
+
820
+ property :self_link, as: 'selfLink'
821
+ property :update_time, as: 'updateTime', type: DateTime
822
+
823
+ end
824
+
825
+ class PendingRenameInfo
826
+ # @private
827
+ class Representation < Google::Apis::Core::JsonRepresentation
828
+ property :operation_id, as: 'operationId'
829
+ end
830
+ end
831
+ end
832
+
833
+ class Folders
834
+ # @private
835
+ class Representation < Google::Apis::Core::JsonRepresentation
836
+ collection :items, as: 'items', class: Google::Apis::StorageV1::Folder, decorator: Google::Apis::StorageV1::Folder::Representation
837
+
838
+ property :kind, as: 'kind'
839
+ property :next_page_token, as: 'nextPageToken'
840
+ end
841
+ end
842
+
843
+ class GoogleLongrunningListOperationsResponse
844
+ # @private
845
+ class Representation < Google::Apis::Core::JsonRepresentation
846
+ property :kind, as: 'kind'
847
+ property :next_page_token, as: 'nextPageToken'
848
+ collection :operations, as: 'operations', class: Google::Apis::StorageV1::GoogleLongrunningOperation, decorator: Google::Apis::StorageV1::GoogleLongrunningOperation::Representation
849
+
850
+ end
851
+ end
852
+
853
+ class GoogleLongrunningOperation
854
+ # @private
855
+ class Representation < Google::Apis::Core::JsonRepresentation
856
+ property :done, as: 'done'
857
+ property :error, as: 'error', class: Google::Apis::StorageV1::GoogleRpcStatus, decorator: Google::Apis::StorageV1::GoogleRpcStatus::Representation
858
+
859
+ property :kind, as: 'kind'
860
+ hash :metadata, as: 'metadata'
861
+ property :name, as: 'name'
862
+ hash :response, as: 'response'
863
+ property :self_link, as: 'selfLink'
864
+ end
865
+ end
866
+
867
+ class GoogleRpcStatus
868
+ # @private
869
+ class Representation < Google::Apis::Core::JsonRepresentation
870
+ property :code, as: 'code'
871
+ collection :details, as: 'details'
872
+ property :message, as: 'message'
873
+ end
874
+ end
875
+
597
876
  class HmacKey
598
877
  # @private
599
878
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -632,6 +911,32 @@ module Google
632
911
  end
633
912
  end
634
913
 
914
+ class ManagedFolder
915
+ # @private
916
+ class Representation < Google::Apis::Core::JsonRepresentation
917
+ property :bucket, as: 'bucket'
918
+ property :create_time, as: 'createTime', type: DateTime
919
+
920
+ property :id, as: 'id'
921
+ property :kind, as: 'kind'
922
+ property :metageneration, :numeric_string => true, as: 'metageneration'
923
+ property :name, as: 'name'
924
+ property :self_link, as: 'selfLink'
925
+ property :update_time, as: 'updateTime', type: DateTime
926
+
927
+ end
928
+ end
929
+
930
+ class ManagedFolders
931
+ # @private
932
+ class Representation < Google::Apis::Core::JsonRepresentation
933
+ collection :items, as: 'items', class: Google::Apis::StorageV1::ManagedFolder, decorator: Google::Apis::StorageV1::ManagedFolder::Representation
934
+
935
+ property :kind, as: 'kind'
936
+ property :next_page_token, as: 'nextPageToken'
937
+ end
938
+ end
939
+
635
940
  class Notification
636
941
  # @private
637
942
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -676,6 +981,8 @@ module Google
676
981
  property :etag, as: 'etag'
677
982
  property :event_based_hold, as: 'eventBasedHold'
678
983
  property :generation, :numeric_string => true, as: 'generation'
984
+ property :hard_delete_time, as: 'hardDeleteTime', type: DateTime
985
+
679
986
  property :id, as: 'id'
680
987
  property :kind, as: 'kind'
681
988
  property :kms_key_name, as: 'kmsKeyName'
@@ -686,10 +993,14 @@ module Google
686
993
  property :name, as: 'name'
687
994
  property :owner, as: 'owner', class: Google::Apis::StorageV1::Object::Owner, decorator: Google::Apis::StorageV1::Object::Owner::Representation
688
995
 
996
+ property :retention, as: 'retention', class: Google::Apis::StorageV1::Object::Retention, decorator: Google::Apis::StorageV1::Object::Retention::Representation
997
+
689
998
  property :retention_expiration_time, as: 'retentionExpirationTime', type: DateTime
690
999
 
691
1000
  property :self_link, as: 'selfLink'
692
1001
  property :size, :numeric_string => true, as: 'size'
1002
+ property :soft_delete_time, as: 'softDeleteTime', type: DateTime
1003
+
693
1004
  property :storage_class, as: 'storageClass'
694
1005
  property :temporary_hold, as: 'temporaryHold'
695
1006
  property :time_created, as: 'timeCreated', type: DateTime
@@ -717,6 +1028,15 @@ module Google
717
1028
  property :entity_id, as: 'entityId'
718
1029
  end
719
1030
  end
1031
+
1032
+ class Retention
1033
+ # @private
1034
+ class Representation < Google::Apis::Core::JsonRepresentation
1035
+ property :mode, as: 'mode'
1036
+ property :retain_until_time, as: 'retainUntilTime', type: DateTime
1037
+
1038
+ end
1039
+ end
720
1040
  end
721
1041
 
722
1042
  class ObjectAccessControl