google-cloud-cloud_quotas-v1 1.2.0 → 2.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82e9eb7f32ca73ecb610c48cb18092f9f31501ed23f0c98bd5903723df2f8228
4
- data.tar.gz: 3d71b76b6d6b98a562a1a0fa222749facdfad3b3ae9fa0cf995c54952db5ace9
3
+ metadata.gz: 198baa412a792be6406217dd2c387336cc753b1ab96f11ba1a9e3cb662490d56
4
+ data.tar.gz: b3e8c186c3ca932e86b6ff92f60bc956bba89cb154aa30513b60374b75b467b2
5
5
  SHA512:
6
- metadata.gz: 7687b387e2253828e01136b51b65b0bbde5bc77c17c2a49707a2d4144e6fef85097b910af8a783eaef61f2e92eb143c57940eaae226d48020fa539867b9ff91c
7
- data.tar.gz: c6abf91a3c3fb6b10113ec00d8cb4336a9c9dc09bf95b3b8c487f6db4d55756f8d6327e77240d3149c2b838b0c33e966bce815636224f2c5b44ea0e4b916f24f
6
+ metadata.gz: 79fd6de9900ea45b5f64517722db8279e811adc95d875d85186c79b048bafbcbc0820c513da471e0da9b4963983039d3753b3c49ddd1e19059e9d3de39885717
7
+ data.tar.gz: 4eb2c5ec598aead8c36085837958394a58be3be125136cbe9b9871ef537a7438546051fd583b9ca4995402314f3c2180940782f5c8b7866166437f2078be14e5
data/README.md CHANGED
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
86
86
 
87
87
  ## Supported Ruby Versions
88
88
 
89
- This library is supported on Ruby 2.7+.
89
+ This library is supported on Ruby 3.0+.
90
90
 
91
91
  Google provides official support for Ruby versions that are actively supported
92
92
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -857,6 +857,13 @@ module Google
857
857
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
858
858
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
859
859
  # * (`nil`) indicating no credentials
860
+ #
861
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
862
+ # external source for authentication to Google Cloud, you must validate it before
863
+ # providing it to a Google API client library. Providing an unvalidated credential
864
+ # configuration to Google APIs can compromise the security of your systems and data.
865
+ # For more information, refer to [Validate credential configurations from external
866
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
860
867
  # @return [::Object]
861
868
  # @!attribute [rw] scope
862
869
  # The OAuth scopes
@@ -438,10 +438,10 @@ module Google
438
438
  # `quota_id`,
439
439
  # `service, create_time`
440
440
  # @yield [result, operation] Access the result along with the TransportOperation object
441
- # @yieldparam result [::Google::Cloud::CloudQuotas::V1::ListQuotaPreferencesResponse]
441
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudQuotas::V1::QuotaPreference>]
442
442
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
443
443
  #
444
- # @return [::Google::Cloud::CloudQuotas::V1::ListQuotaPreferencesResponse]
444
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudQuotas::V1::QuotaPreference>]
445
445
  #
446
446
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
447
447
  #
@@ -493,7 +493,9 @@ module Google
493
493
  retry_policy: @config.retry_policy
494
494
 
495
495
  @cloud_quotas_stub.list_quota_preferences request, options do |result, operation|
496
+ result = ::Gapic::Rest::PagedEnumerable.new @cloud_quotas_stub, :list_quota_preferences, "quota_preferences", request, result, options
496
497
  yield result, operation if block_given?
498
+ throw :response, result
497
499
  end
498
500
  rescue ::Gapic::Rest::Error => e
499
501
  raise ::Google::Cloud::Error.from_error(e)
@@ -804,6 +806,13 @@ module Google
804
806
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
805
807
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
806
808
  # * (`nil`) indicating no credentials
809
+ #
810
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
811
+ # external source for authentication to Google Cloud, you must validate it before
812
+ # providing it to a Google API client library. Providing an unvalidated credential
813
+ # configuration to Google APIs can compromise the security of your systems and data.
814
+ # For more information, refer to [Validate credential configurations from external
815
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
807
816
  # @return [::Object]
808
817
  # @!attribute [rw] scope
809
818
  # The OAuth scopes
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module CloudQuotas
23
23
  module V1
24
- VERSION = "1.2.0"
24
+ VERSION = "2.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -409,6 +409,14 @@ module Google
409
409
  # @return [::Array<::String>]
410
410
  # An allowlist of the fully qualified names of RPCs that should be included
411
411
  # on public client surfaces.
412
+ # @!attribute [rw] generate_omitted_as_internal
413
+ # @return [::Boolean]
414
+ # Setting this to true indicates to the client generators that methods
415
+ # that would be excluded from the generation should instead be generated
416
+ # in a way that indicates these methods should not be consumed by
417
+ # end users. How this is expressed is up to individual language
418
+ # implementations to decide. Some examples may be: added annotations,
419
+ # obfuscated identifiers, or other language idiomatic patterns.
412
420
  class SelectiveGapicGeneration
413
421
  include ::Google::Protobuf::MessageExts
414
422
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-cloud_quotas-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
10
+ date: 2025-02-07 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: gapic-common
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.24.0
18
+ version: 0.25.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.24.0
28
+ version: 0.25.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -87,7 +86,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
87
86
  licenses:
88
87
  - Apache-2.0
89
88
  metadata: {}
90
- post_install_message:
91
89
  rdoc_options: []
92
90
  require_paths:
93
91
  - lib
@@ -95,15 +93,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
95
93
  requirements:
96
94
  - - ">="
97
95
  - !ruby/object:Gem::Version
98
- version: '2.7'
96
+ version: '3.0'
99
97
  required_rubygems_version: !ruby/object:Gem::Requirement
100
98
  requirements:
101
99
  - - ">="
102
100
  - !ruby/object:Gem::Version
103
101
  version: '0'
104
102
  requirements: []
105
- rubygems_version: 3.5.23
106
- signing_key:
103
+ rubygems_version: 3.6.3
107
104
  specification_version: 4
108
105
  summary: Cloud Quotas API provides Google Cloud service consumers with management
109
106
  and observability for resource usage, quotas, and restrictions of the services they