google-apis-storage_v1 0.40.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: cc2817e120ad16d60743c2a442925e8a855dab1ad241d7cb9e44fdf4f71e1582
4
- data.tar.gz: 8baf01d69125bf894fb49416a916a62e73a55cfe79ff58fecc32c065756fe8ff
3
+ metadata.gz: f0d27e1f5816add42a6b30d40f3965f03e5d7134fc5f534d826fd54fddc27d79
4
+ data.tar.gz: 3432572957fd577ec18c80ab0c6d6551e926e237989f34c4bd2b6771f6d4b9ff
5
5
  SHA512:
6
- metadata.gz: 44a5a33c4d0d48747f2a68ab884764d5ccf7fe8f64eae86b1c301f4e5d088cc4888a58405e0d922200eb83978f8e39b60e268880401da42b4bac69ee824c212b
7
- data.tar.gz: 8dc887aef896142eab243f127b9874e634ecbae9537e359bf2a60e029c510797f29f07f188269b3a4859549ffc150f9e1fe7d39fb7b0fd9c6d15e6a7aaba3243
6
+ metadata.gz: e77cdfa2248dccd3b31890317633baac88420190c4dd2b76ecfcc423fcb80fe789f71dc12903610609e663eab151366cef49771ea636563fd6f56334e401216f
7
+ data.tar.gz: de8c652fc2682caf03c494440955c90c29ea79d62f0b744c3d9f9487ae9234e37ec4d825e2945177a145547c82af65dcd3150a64fdbadb69d20b411a0d2208c3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
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
+
8
+ ### v0.41.0 (2024-07-25)
9
+
10
+ * Regenerated from discovery document revision 20240706
11
+
3
12
  ### v0.40.0 (2024-06-26)
4
13
 
5
14
  * Regenerated from discovery document revision 20240621
@@ -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]
@@ -219,6 +224,13 @@ module Google
219
224
  # @return [String]
220
225
  attr_accessor :id
221
226
 
227
+ # The bucket's IP filter configuration. Specifies the network sources that are
228
+ # allowed to access the operations on the bucket, as well as its underlying
229
+ # objects. Only enforced when the mode is set to 'Enabled'.
230
+ # Corresponds to the JSON property `ipFilter`
231
+ # @return [Google::Apis::StorageV1::Bucket::IpFilter]
232
+ attr_accessor :ip_filter
233
+
222
234
  # The kind of item this is. For buckets, this is always storage#bucket.
223
235
  # Corresponds to the JSON property `kind`
224
236
  # @return [String]
@@ -297,6 +309,12 @@ module Google
297
309
  # @return [String]
298
310
  attr_accessor :rpo
299
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
+
300
318
  # Reserved for future use.
301
319
  # Corresponds to the JSON property `satisfiesPZS`
302
320
  # @return [Boolean]
@@ -362,9 +380,11 @@ module Google
362
380
  @default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl)
363
381
  @encryption = args[:encryption] if args.key?(:encryption)
364
382
  @etag = args[:etag] if args.key?(:etag)
383
+ @generation = args[:generation] if args.key?(:generation)
365
384
  @hierarchical_namespace = args[:hierarchical_namespace] if args.key?(:hierarchical_namespace)
366
385
  @iam_configuration = args[:iam_configuration] if args.key?(:iam_configuration)
367
386
  @id = args[:id] if args.key?(:id)
387
+ @ip_filter = args[:ip_filter] if args.key?(:ip_filter)
368
388
  @kind = args[:kind] if args.key?(:kind)
369
389
  @labels = args[:labels] if args.key?(:labels)
370
390
  @lifecycle = args[:lifecycle] if args.key?(:lifecycle)
@@ -378,6 +398,7 @@ module Google
378
398
  @project_number = args[:project_number] if args.key?(:project_number)
379
399
  @retention_policy = args[:retention_policy] if args.key?(:retention_policy)
380
400
  @rpo = args[:rpo] if args.key?(:rpo)
401
+ @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
381
402
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
382
403
  @self_link = args[:self_link] if args.key?(:self_link)
383
404
  @soft_delete_policy = args[:soft_delete_policy] if args.key?(:soft_delete_policy)
@@ -649,6 +670,87 @@ module Google
649
670
  end
650
671
  end
651
672
 
673
+ # The bucket's IP filter configuration. Specifies the network sources that are
674
+ # allowed to access the operations on the bucket, as well as its underlying
675
+ # objects. Only enforced when the mode is set to 'Enabled'.
676
+ class IpFilter
677
+ include Google::Apis::Core::Hashable
678
+
679
+ # The mode of the IP filter. Valid values are 'Enabled' and 'Disabled'.
680
+ # Corresponds to the JSON property `mode`
681
+ # @return [String]
682
+ attr_accessor :mode
683
+
684
+ # The public network source of the bucket's IP filter.
685
+ # Corresponds to the JSON property `publicNetworkSource`
686
+ # @return [Google::Apis::StorageV1::Bucket::IpFilter::PublicNetworkSource]
687
+ attr_accessor :public_network_source
688
+
689
+ # The list of [VPC network](https://cloud.google.com/vpc/docs/vpc) sources of
690
+ # the bucket's IP filter.
691
+ # Corresponds to the JSON property `vpcNetworkSources`
692
+ # @return [Array<Google::Apis::StorageV1::Bucket::IpFilter::VpcNetworkSource>]
693
+ attr_accessor :vpc_network_sources
694
+
695
+ def initialize(**args)
696
+ update!(**args)
697
+ end
698
+
699
+ # Update properties of this object
700
+ def update!(**args)
701
+ @mode = args[:mode] if args.key?(:mode)
702
+ @public_network_source = args[:public_network_source] if args.key?(:public_network_source)
703
+ @vpc_network_sources = args[:vpc_network_sources] if args.key?(:vpc_network_sources)
704
+ end
705
+
706
+ # The public network source of the bucket's IP filter.
707
+ class PublicNetworkSource
708
+ include Google::Apis::Core::Hashable
709
+
710
+ # The list of public IPv4, IPv6 cidr ranges that are allowed to access the
711
+ # bucket.
712
+ # Corresponds to the JSON property `allowedIpCidrRanges`
713
+ # @return [Array<String>]
714
+ attr_accessor :allowed_ip_cidr_ranges
715
+
716
+ def initialize(**args)
717
+ update!(**args)
718
+ end
719
+
720
+ # Update properties of this object
721
+ def update!(**args)
722
+ @allowed_ip_cidr_ranges = args[:allowed_ip_cidr_ranges] if args.key?(:allowed_ip_cidr_ranges)
723
+ end
724
+ end
725
+
726
+ #
727
+ class VpcNetworkSource
728
+ include Google::Apis::Core::Hashable
729
+
730
+ # The list of IPv4, IPv6 cidr ranges subnetworks that are allowed to access the
731
+ # bucket.
732
+ # Corresponds to the JSON property `allowedIpCidrRanges`
733
+ # @return [Array<String>]
734
+ attr_accessor :allowed_ip_cidr_ranges
735
+
736
+ # Name of the network. Format: projects/`PROJECT_ID`/global/networks/`
737
+ # NETWORK_NAME`
738
+ # Corresponds to the JSON property `network`
739
+ # @return [String]
740
+ attr_accessor :network
741
+
742
+ def initialize(**args)
743
+ update!(**args)
744
+ end
745
+
746
+ # Update properties of this object
747
+ def update!(**args)
748
+ @allowed_ip_cidr_ranges = args[:allowed_ip_cidr_ranges] if args.key?(:allowed_ip_cidr_ranges)
749
+ @network = args[:network] if args.key?(:network)
750
+ end
751
+ end
752
+ end
753
+
652
754
  # The bucket's lifecycle configuration. See lifecycle management for more
653
755
  # information.
654
756
  class Lifecycle
@@ -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.40.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 = "20240621"
25
+ REVISION = "20240805"
26
26
  end
27
27
  end
28
28
  end
@@ -91,6 +91,24 @@ module Google
91
91
  include Google::Apis::Core::JsonObjectSupport
92
92
  end
93
93
 
94
+ class IpFilter
95
+ class Representation < Google::Apis::Core::JsonRepresentation; end
96
+
97
+ class PublicNetworkSource
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class VpcNetworkSource
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ include Google::Apis::Core::JsonObjectSupport
110
+ end
111
+
94
112
  class Lifecycle
95
113
  class Representation < Google::Apis::Core::JsonRepresentation; end
96
114
 
@@ -443,11 +461,14 @@ module Google
443
461
  property :encryption, as: 'encryption', class: Google::Apis::StorageV1::Bucket::Encryption, decorator: Google::Apis::StorageV1::Bucket::Encryption::Representation
444
462
 
445
463
  property :etag, as: 'etag'
464
+ property :generation, :numeric_string => true, as: 'generation'
446
465
  property :hierarchical_namespace, as: 'hierarchicalNamespace', class: Google::Apis::StorageV1::Bucket::HierarchicalNamespace, decorator: Google::Apis::StorageV1::Bucket::HierarchicalNamespace::Representation
447
466
 
448
467
  property :iam_configuration, as: 'iamConfiguration', class: Google::Apis::StorageV1::Bucket::IamConfiguration, decorator: Google::Apis::StorageV1::Bucket::IamConfiguration::Representation
449
468
 
450
469
  property :id, as: 'id'
470
+ property :ip_filter, as: 'ipFilter', class: Google::Apis::StorageV1::Bucket::IpFilter, decorator: Google::Apis::StorageV1::Bucket::IpFilter::Representation
471
+
451
472
  property :kind, as: 'kind'
452
473
  hash :labels, as: 'labels'
453
474
  property :lifecycle, as: 'lifecycle', class: Google::Apis::StorageV1::Bucket::Lifecycle, decorator: Google::Apis::StorageV1::Bucket::Lifecycle::Representation
@@ -466,6 +487,7 @@ module Google
466
487
  property :retention_policy, as: 'retentionPolicy', class: Google::Apis::StorageV1::Bucket::RetentionPolicy, decorator: Google::Apis::StorageV1::Bucket::RetentionPolicy::Representation
467
488
 
468
489
  property :rpo, as: 'rpo'
490
+ property :satisfies_pzi, as: 'satisfiesPZI'
469
491
  property :satisfies_pzs, as: 'satisfiesPZS'
470
492
  property :self_link, as: 'selfLink'
471
493
  property :soft_delete_policy, as: 'softDeletePolicy', class: Google::Apis::StorageV1::Bucket::SoftDeletePolicy, decorator: Google::Apis::StorageV1::Bucket::SoftDeletePolicy::Representation
@@ -560,6 +582,32 @@ module Google
560
582
  end
561
583
  end
562
584
 
585
+ class IpFilter
586
+ # @private
587
+ class Representation < Google::Apis::Core::JsonRepresentation
588
+ property :mode, as: 'mode'
589
+ property :public_network_source, as: 'publicNetworkSource', class: Google::Apis::StorageV1::Bucket::IpFilter::PublicNetworkSource, decorator: Google::Apis::StorageV1::Bucket::IpFilter::PublicNetworkSource::Representation
590
+
591
+ collection :vpc_network_sources, as: 'vpcNetworkSources', class: Google::Apis::StorageV1::Bucket::IpFilter::VpcNetworkSource, decorator: Google::Apis::StorageV1::Bucket::IpFilter::VpcNetworkSource::Representation
592
+
593
+ end
594
+
595
+ class PublicNetworkSource
596
+ # @private
597
+ class Representation < Google::Apis::Core::JsonRepresentation
598
+ collection :allowed_ip_cidr_ranges, as: 'allowedIpCidrRanges'
599
+ end
600
+ end
601
+
602
+ class VpcNetworkSource
603
+ # @private
604
+ class Representation < Google::Apis::Core::JsonRepresentation
605
+ collection :allowed_ip_cidr_ranges, as: 'allowedIpCidrRanges'
606
+ property :network, as: 'network'
607
+ end
608
+ end
609
+ end
610
+
563
611
  class Lifecycle
564
612
  # @private
565
613
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -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.40.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-06-27 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.40.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: []