google-apis-storage_v1 0.41.0 → 0.42.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: f0d27e1f5816add42a6b30d40f3965f03e5d7134fc5f534d826fd54fddc27d79
4
+ data.tar.gz: 3432572957fd577ec18c80ab0c6d6551e926e237989f34c4bd2b6771f6d4b9ff
5
5
  SHA512:
6
- metadata.gz: 5119dc88378c0302b7052a3d2c25f1ccfc527c53febc61577794703176fc5e2686413230eaa7a4eb747495d7e28036d9be7d3b5210fb34cf9ec8ec90e63a3d18
7
- data.tar.gz: 559386b27b822dd2b337feb90fda12bd1679d1296a8c108dee7f131164429709e106b7541721d6ba60b64ab7b38ffa25b057c6a82dcb4aecba55fbaff08fb1b3
6
+ metadata.gz: e77cdfa2248dccd3b31890317633baac88420190c4dd2b76ecfcc423fcb80fe789f71dc12903610609e663eab151366cef49771ea636563fd6f56334e401216f
7
+ data.tar.gz: de8c652fc2682caf03c494440955c90c29ea79d62f0b744c3d9f9487ae9234e37ec4d825e2945177a145547c82af65dcd3150a64fdbadb69d20b411a0d2208c3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-storage_v1
2
2
 
3
+ ### v0.42.0 (2024-08-11)
4
+
5
+ * Regenerated from discovery document revision 20240805
6
+ * Regenerated using generator version 0.15.1
7
+
3
8
  ### v0.41.0 (2024-07-25)
4
9
 
5
10
  * 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]
@@ -304,6 +309,12 @@ module Google
304
309
  # @return [String]
305
310
  attr_accessor :rpo
306
311
 
312
+ # Reserved for future use.
313
+ # Corresponds to the JSON property `satisfiesPZI`
314
+ # @return [Boolean]
315
+ attr_accessor :satisfies_pzi
316
+ alias_method :satisfies_pzi?, :satisfies_pzi
317
+
307
318
  # Reserved for future use.
308
319
  # Corresponds to the JSON property `satisfiesPZS`
309
320
  # @return [Boolean]
@@ -369,6 +380,7 @@ module Google
369
380
  @default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl)
370
381
  @encryption = args[:encryption] if args.key?(:encryption)
371
382
  @etag = args[:etag] if args.key?(:etag)
383
+ @generation = args[:generation] if args.key?(:generation)
372
384
  @hierarchical_namespace = args[:hierarchical_namespace] if args.key?(:hierarchical_namespace)
373
385
  @iam_configuration = args[:iam_configuration] if args.key?(:iam_configuration)
374
386
  @id = args[:id] if args.key?(:id)
@@ -386,6 +398,7 @@ module Google
386
398
  @project_number = args[:project_number] if args.key?(:project_number)
387
399
  @retention_policy = args[:retention_policy] if args.key?(:retention_policy)
388
400
  @rpo = args[:rpo] if args.key?(:rpo)
401
+ @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
389
402
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
390
403
  @self_link = args[:self_link] if args.key?(:self_link)
391
404
  @soft_delete_policy = args[:soft_delete_policy] if args.key?(:soft_delete_policy)
@@ -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.42.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 = "20240805"
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
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.42.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-11 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.42.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: []