google-apis-storage_v1 0.41.0 → 0.43.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: 57c37c08f620ede9482e418a18d8454f12fc8b008086ae1b081ff607e6d9fc88
4
- data.tar.gz: 3f99f26864ddf171f5b309c322a2e02d58adb63830200fd96f9f76aa8ca21c9b
3
+ metadata.gz: 4147b062494ed402f9ce3cd0d92f27f082e9286f573e198986aa844aae277d88
4
+ data.tar.gz: a9b998a64d28d1c07b6932d48a68e13b7a5591f7530028c52f643d4fe3016873
5
5
  SHA512:
6
- metadata.gz: 5119dc88378c0302b7052a3d2c25f1ccfc527c53febc61577794703176fc5e2686413230eaa7a4eb747495d7e28036d9be7d3b5210fb34cf9ec8ec90e63a3d18
7
- data.tar.gz: 559386b27b822dd2b337feb90fda12bd1679d1296a8c108dee7f131164429709e106b7541721d6ba60b64ab7b38ffa25b057c6a82dcb4aecba55fbaff08fb1b3
6
+ metadata.gz: 528543b71faf74abf53a18615655ef827fc0c7189ff0389d5d391d5005fe9676e514424291d174c8e79297f495c59fba84c6acdd9cde0025d602cc11c15db5ee
7
+ data.tar.gz: fb4c2ac87c4075ff8ed059caca50490d72600c30dbbad18b4be387e87c1c338c1bb1398e89d435da05964a11511a76af4a8014e9c8eb7696b11ab04cf13e80b6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-storage_v1
2
2
 
3
+ ### v0.43.0 (2024-08-18)
4
+
5
+ * Regenerated from discovery document revision 20240809
6
+
7
+ ### v0.42.0 (2024-08-11)
8
+
9
+ * Regenerated from discovery document revision 20240805
10
+ * Regenerated using generator version 0.15.1
11
+
3
12
  ### v0.41.0 (2024-07-25)
4
13
 
5
14
  * Regenerated from discovery document revision 20240706
@@ -204,6 +204,11 @@ module Google
204
204
  # @return [String]
205
205
  attr_accessor :etag
206
206
 
207
+ # The generation of this bucket.
208
+ # Corresponds to the JSON property `generation`
209
+ # @return [Fixnum]
210
+ attr_accessor :generation
211
+
207
212
  # The bucket's hierarchical namespace configuration.
208
213
  # Corresponds to the JSON property `hierarchicalNamespace`
209
214
  # @return [Google::Apis::StorageV1::Bucket::HierarchicalNamespace]
@@ -236,15 +241,16 @@ module Google
236
241
  # @return [Hash<String,String>]
237
242
  attr_accessor :labels
238
243
 
239
- # The bucket's lifecycle configuration. See lifecycle management for more
240
- # information.
244
+ # The bucket's lifecycle configuration. See [Lifecycle Management](https://cloud.
245
+ # google.com/storage/docs/lifecycle) for more information.
241
246
  # Corresponds to the JSON property `lifecycle`
242
247
  # @return [Google::Apis::StorageV1::Bucket::Lifecycle]
243
248
  attr_accessor :lifecycle
244
249
 
245
250
  # The location of the bucket. Object data for objects in the bucket resides in
246
- # physical storage within this region. Defaults to US. See the developer's guide
247
- # for the authoritative list.
251
+ # physical storage within this region. Defaults to US. See the [Developer's
252
+ # Guide](https://cloud.google.com/storage/docs/locations) for the authoritative
253
+ # list.
248
254
  # Corresponds to the JSON property `location`
249
255
  # @return [String]
250
256
  attr_accessor :location
@@ -304,6 +310,12 @@ module Google
304
310
  # @return [String]
305
311
  attr_accessor :rpo
306
312
 
313
+ # Reserved for future use.
314
+ # Corresponds to the JSON property `satisfiesPZI`
315
+ # @return [Boolean]
316
+ attr_accessor :satisfies_pzi
317
+ alias_method :satisfies_pzi?, :satisfies_pzi
318
+
307
319
  # Reserved for future use.
308
320
  # Corresponds to the JSON property `satisfiesPZS`
309
321
  # @return [Boolean]
@@ -326,8 +338,8 @@ module Google
326
338
  # and determines the SLA and the cost of storage. Values include MULTI_REGIONAL,
327
339
  # REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and
328
340
  # DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket
329
- # is created, it will default to STANDARD. For more information, see storage
330
- # classes.
341
+ # is created, it will default to STANDARD. For more information, see [Storage
342
+ # Classes](https://cloud.google.com/storage/docs/storage-classes).
331
343
  # Corresponds to the JSON property `storageClass`
332
344
  # @return [String]
333
345
  attr_accessor :storage_class
@@ -348,8 +360,8 @@ module Google
348
360
  attr_accessor :versioning
349
361
 
350
362
  # The bucket's website configuration, controlling how the service behaves when
351
- # accessing bucket contents as a web site. See the Static Website Examples for
352
- # more information.
363
+ # accessing bucket contents as a web site. See the [Static Website Examples](
364
+ # https://cloud.google.com/storage/docs/static-website) for more information.
353
365
  # Corresponds to the JSON property `website`
354
366
  # @return [Google::Apis::StorageV1::Bucket::Website]
355
367
  attr_accessor :website
@@ -369,6 +381,7 @@ module Google
369
381
  @default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl)
370
382
  @encryption = args[:encryption] if args.key?(:encryption)
371
383
  @etag = args[:etag] if args.key?(:etag)
384
+ @generation = args[:generation] if args.key?(:generation)
372
385
  @hierarchical_namespace = args[:hierarchical_namespace] if args.key?(:hierarchical_namespace)
373
386
  @iam_configuration = args[:iam_configuration] if args.key?(:iam_configuration)
374
387
  @id = args[:id] if args.key?(:id)
@@ -386,6 +399,7 @@ module Google
386
399
  @project_number = args[:project_number] if args.key?(:project_number)
387
400
  @retention_policy = args[:retention_policy] if args.key?(:retention_policy)
388
401
  @rpo = args[:rpo] if args.key?(:rpo)
402
+ @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
389
403
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
390
404
  @self_link = args[:self_link] if args.key?(:self_link)
391
405
  @soft_delete_policy = args[:soft_delete_policy] if args.key?(:soft_delete_policy)
@@ -738,8 +752,8 @@ module Google
738
752
  end
739
753
  end
740
754
 
741
- # The bucket's lifecycle configuration. See lifecycle management for more
742
- # information.
755
+ # The bucket's lifecycle configuration. See [Lifecycle Management](https://cloud.
756
+ # google.com/storage/docs/lifecycle) for more information.
743
757
  class Lifecycle
744
758
  include Google::Apis::Core::Hashable
745
759
 
@@ -1083,8 +1097,8 @@ module Google
1083
1097
  end
1084
1098
 
1085
1099
  # The bucket's website configuration, controlling how the service behaves when
1086
- # accessing bucket contents as a web site. See the Static Website Examples for
1087
- # more information.
1100
+ # accessing bucket contents as a web site. See the [Static Website Examples](
1101
+ # https://cloud.google.com/storage/docs/static-website) for more information.
1088
1102
  class Website
1089
1103
  include Google::Apis::Core::Hashable
1090
1104
 
@@ -2284,7 +2298,8 @@ module Google
2284
2298
 
2285
2299
  # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in
2286
2300
  # big-endian byte order. For more information about using the CRC32c checksum,
2287
- # see Hashes and ETags: Best Practices.
2301
+ # see [Data Validation and Change Detection](https://cloud.google.com/storage/
2302
+ # docs/data-validation).
2288
2303
  # Corresponds to the JSON property `crc32c`
2289
2304
  # @return [String]
2290
2305
  attr_accessor :crc32c
@@ -2351,7 +2366,8 @@ module Google
2351
2366
  attr_accessor :kms_key_name
2352
2367
 
2353
2368
  # MD5 hash of the data; encoded using base64. For more information about using
2354
- # the MD5 hash, see Hashes and ETags: Best Practices.
2369
+ # the MD5 hash, see [Data Validation and Change Detection](https://cloud.google.
2370
+ # com/storage/docs/data-validation).
2355
2371
  # Corresponds to the JSON property `md5Hash`
2356
2372
  # @return [String]
2357
2373
  attr_accessor :md5_hash
@@ -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.41.0"
19
+ GEM_VERSION = "0.43.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.0"
22
+ GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240706"
25
+ REVISION = "20240809"
26
26
  end
27
27
  end
28
28
  end
@@ -461,6 +461,7 @@ module Google
461
461
  property :encryption, as: 'encryption', class: Google::Apis::StorageV1::Bucket::Encryption, decorator: Google::Apis::StorageV1::Bucket::Encryption::Representation
462
462
 
463
463
  property :etag, as: 'etag'
464
+ property :generation, :numeric_string => true, as: 'generation'
464
465
  property :hierarchical_namespace, as: 'hierarchicalNamespace', class: Google::Apis::StorageV1::Bucket::HierarchicalNamespace, decorator: Google::Apis::StorageV1::Bucket::HierarchicalNamespace::Representation
465
466
 
466
467
  property :iam_configuration, as: 'iamConfiguration', class: Google::Apis::StorageV1::Bucket::IamConfiguration, decorator: Google::Apis::StorageV1::Bucket::IamConfiguration::Representation
@@ -486,6 +487,7 @@ module Google
486
487
  property :retention_policy, as: 'retentionPolicy', class: Google::Apis::StorageV1::Bucket::RetentionPolicy, decorator: Google::Apis::StorageV1::Bucket::RetentionPolicy::Representation
487
488
 
488
489
  property :rpo, as: 'rpo'
490
+ property :satisfies_pzi, as: 'satisfiesPZI'
489
491
  property :satisfies_pzs, as: 'satisfiesPZS'
490
492
  property :self_link, as: 'selfLink'
491
493
  property :soft_delete_policy, as: 'softDeletePolicy', class: Google::Apis::StorageV1::Bucket::SoftDeletePolicy, decorator: Google::Apis::StorageV1::Bucket::SoftDeletePolicy::Representation
@@ -554,7 +554,8 @@ module Google
554
554
  execute_or_queue_command(command, &block)
555
555
  end
556
556
 
557
- # Permanently deletes an empty bucket.
557
+ # Deletes an empty bucket. Deletions are permanent unless soft delete is enabled
558
+ # on the bucket.
558
559
  # @param [String] bucket
559
560
  # Name of a bucket.
560
561
  # @param [Fixnum] if_metageneration_match
@@ -598,6 +599,9 @@ module Google
598
599
  # Returns metadata for the specified bucket.
599
600
  # @param [String] bucket
600
601
  # Name of a bucket.
602
+ # @param [Fixnum] generation
603
+ # If present, specifies the generation of the bucket. This is required if
604
+ # softDeleted is true.
601
605
  # @param [Fixnum] if_metageneration_match
602
606
  # Makes the return of the bucket metadata conditional on whether the bucket's
603
607
  # current metageneration matches the given value.
@@ -606,6 +610,10 @@ module Google
606
610
  # current metageneration does not match the given value.
607
611
  # @param [String] projection
608
612
  # Set of properties to return. Defaults to noAcl.
613
+ # @param [Boolean] soft_deleted
614
+ # If true, return the soft-deleted version of this bucket. The default is false.
615
+ # For more information, see [Soft Delete](https://cloud.google.com/storage/docs/
616
+ # soft-delete).
609
617
  # @param [String] user_project
610
618
  # The project to be billed for this request. Required for Requester Pays buckets.
611
619
  # @param [String] fields
@@ -627,14 +635,16 @@ module Google
627
635
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
628
636
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
629
637
  # @raise [Google::Apis::AuthorizationError] Authorization is required
630
- def get_bucket(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
638
+ def get_bucket(bucket, generation: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, soft_deleted: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
631
639
  command = make_simple_command(:get, 'b/{bucket}', options)
632
640
  command.response_representation = Google::Apis::StorageV1::Bucket::Representation
633
641
  command.response_class = Google::Apis::StorageV1::Bucket
634
642
  command.params['bucket'] = bucket unless bucket.nil?
643
+ command.query['generation'] = generation unless generation.nil?
635
644
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
636
645
  command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
637
646
  command.query['projection'] = projection unless projection.nil?
647
+ command.query['softDeleted'] = soft_deleted unless soft_deleted.nil?
638
648
  command.query['userProject'] = user_project unless user_project.nil?
639
649
  command.query['fields'] = fields unless fields.nil?
640
650
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -786,6 +796,10 @@ module Google
786
796
  # Filter results to buckets whose names begin with this prefix.
787
797
  # @param [String] projection
788
798
  # Set of properties to return. Defaults to noAcl.
799
+ # @param [Boolean] soft_deleted
800
+ # If true, only soft-deleted bucket versions will be returned. The default is
801
+ # false. For more information, see [Soft Delete](https://cloud.google.com/
802
+ # storage/docs/soft-delete).
789
803
  # @param [String] user_project
790
804
  # The project to be billed for this request.
791
805
  # @param [String] fields
@@ -807,7 +821,7 @@ module Google
807
821
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
808
822
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
809
823
  # @raise [Google::Apis::AuthorizationError] Authorization is required
810
- def list_buckets(project, max_results: nil, page_token: nil, prefix: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
824
+ def list_buckets(project, max_results: nil, page_token: nil, prefix: nil, projection: nil, soft_deleted: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
811
825
  command = make_simple_command(:get, 'b', options)
812
826
  command.response_representation = Google::Apis::StorageV1::Buckets::Representation
813
827
  command.response_class = Google::Apis::StorageV1::Buckets
@@ -816,6 +830,7 @@ module Google
816
830
  command.query['prefix'] = prefix unless prefix.nil?
817
831
  command.query['project'] = project unless project.nil?
818
832
  command.query['projection'] = projection unless projection.nil?
833
+ command.query['softDeleted'] = soft_deleted unless soft_deleted.nil?
819
834
  command.query['userProject'] = user_project unless user_project.nil?
820
835
  command.query['fields'] = fields unless fields.nil?
821
836
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -920,6 +935,43 @@ module Google
920
935
  execute_or_queue_command(command, &block)
921
936
  end
922
937
 
938
+ # Restores a soft-deleted bucket.
939
+ # @param [String] bucket
940
+ # Name of a bucket.
941
+ # @param [Fixnum] generation
942
+ # Generation of a bucket.
943
+ # @param [String] user_project
944
+ # The project to be billed for this request. Required for Requester Pays buckets.
945
+ # @param [String] fields
946
+ # Selector specifying which fields to include in a partial response.
947
+ # @param [String] quota_user
948
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
949
+ # characters.
950
+ # @param [String] user_ip
951
+ # Deprecated. Please use quotaUser instead.
952
+ # @param [Google::Apis::RequestOptions] options
953
+ # Request-specific options
954
+ #
955
+ # @yield [result, err] Result & error if block supplied
956
+ # @yieldparam result [NilClass] No result returned for this method
957
+ # @yieldparam err [StandardError] error object if request failed
958
+ #
959
+ # @return [void]
960
+ #
961
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
962
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
963
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
964
+ def restore_bucket(bucket, generation, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
965
+ command = make_simple_command(:post, 'b/{bucket}/restore', options)
966
+ command.params['bucket'] = bucket unless bucket.nil?
967
+ command.query['generation'] = generation unless generation.nil?
968
+ command.query['userProject'] = user_project unless user_project.nil?
969
+ command.query['fields'] = fields unless fields.nil?
970
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
971
+ command.query['userIp'] = user_ip unless user_ip.nil?
972
+ execute_or_queue_command(command, &block)
973
+ end
974
+
923
975
  # Updates an IAM policy for the specified bucket.
924
976
  # @param [String] bucket
925
977
  # Name of a bucket.
@@ -2610,7 +2662,8 @@ module Google
2610
2662
  # Set of properties to return. Defaults to noAcl.
2611
2663
  # @param [Boolean] soft_deleted
2612
2664
  # If true, only soft-deleted object versions will be listed. The default is
2613
- # false. For more information, see Soft Delete.
2665
+ # false. For more information, see [Soft Delete](https://cloud.google.com/
2666
+ # storage/docs/soft-delete).
2614
2667
  # @param [String] user_project
2615
2668
  # The project to be billed for this request. Required for Requester Pays buckets.
2616
2669
  # @param [String] fields
@@ -2834,7 +2887,8 @@ module Google
2834
2887
  # Set of properties to return. Defaults to noAcl.
2835
2888
  # @param [Boolean] soft_deleted
2836
2889
  # If true, only soft-deleted object versions will be listed. The default is
2837
- # false. For more information, see Soft Delete.
2890
+ # false. For more information, see [Soft Delete](https://cloud.google.com/
2891
+ # storage/docs/soft-delete).
2838
2892
  # @param [String] start_offset
2839
2893
  # Filter results to objects whose names are lexicographically equal to or after
2840
2894
  # startOffset. If endOffset is also set, the objects listed will have names
@@ -2843,7 +2897,8 @@ module Google
2843
2897
  # The project to be billed for this request. Required for Requester Pays buckets.
2844
2898
  # @param [Boolean] versions
2845
2899
  # If true, lists all versions of an object as distinct results. The default is
2846
- # false. For more information, see Object Versioning.
2900
+ # false. For more information, see [Object Versioning](https://cloud.google.com/
2901
+ # storage/docs/object-versioning).
2847
2902
  # @param [String] fields
2848
2903
  # Selector specifying which fields to include in a partial response.
2849
2904
  # @param [String] quota_user
@@ -2969,7 +3024,8 @@ module Google
2969
3024
  # Name of the bucket in which the object resides.
2970
3025
  # @param [String] object
2971
3026
  # Name of the object. For information about how to URL encode object names to be
2972
- # path safe, see Encoding URI Path Parts.
3027
+ # path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/
3028
+ # request-endpoints#encoding).
2973
3029
  # @param [Fixnum] generation
2974
3030
  # Selects a specific revision of this object.
2975
3031
  # @param [Boolean] copy_source_acl
@@ -3365,7 +3421,8 @@ module Google
3365
3421
  # The project to be billed for this request. Required for Requester Pays buckets.
3366
3422
  # @param [Boolean] versions
3367
3423
  # If true, lists all versions of an object as distinct results. The default is
3368
- # false. For more information, see Object Versioning.
3424
+ # false. For more information, see [Object Versioning](https://cloud.google.com/
3425
+ # storage/docs/object-versioning).
3369
3426
  # @param [String] fields
3370
3427
  # Selector specifying which fields to include in a partial response.
3371
3428
  # @param [String] quota_user
@@ -3693,8 +3750,9 @@ module Google
3693
3750
  execute_or_queue_command(command, &block)
3694
3751
  end
3695
3752
 
3696
- # Updates the state of an HMAC key. See the HMAC Key resource descriptor for
3697
- # valid states.
3753
+ # Updates the state of an HMAC key. See the [HMAC Key resource descriptor](https:
3754
+ # //cloud.google.com/storage/docs/json_api/v1/projects/hmacKeys/update#request-
3755
+ # body) for valid states.
3698
3756
  # @param [String] project_id
3699
3757
  # Project ID owning the service account of the updated key.
3700
3758
  # @param [String] access_id
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.41.0
4
+ version: 0.43.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: 2024-07-25 00:00:00.000000000 Z
11
+ date: 2024-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
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.41.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.43.0
62
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: []