google-cloud-api_gateway-v1 1.1.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: 02cf0b29afb24d65d9002efc43e55aac8f66f5c277717e18a6a15489b5a831ba
4
- data.tar.gz: 1aeaa98d7804cbc6ea546ecddbd2e0b7690b335c6d1cc2a59e7fdd3b80022bcf
3
+ metadata.gz: 3b7bb865cbced66d5cafa085a47501a6763e37cb16673dfb88e203fda29b782e
4
+ data.tar.gz: c50e9610c14d5b63bf7ea72874902e086729079c6f33066b0ca367acc48343f8
5
5
  SHA512:
6
- metadata.gz: 6e30a972899998ca62c507b4d0facf9eb2a3ec5db2eadc8fa79fd2de937f193aa29afc098ec504b738d9b2bbcf5c0df2a61a9164c4688a94f2bf4b3a0e02e6e1
7
- data.tar.gz: 16ea8fa95a40c66d58ea3ba3b9b784ba5721e95ccff7ac91ebeedd196c9412ac3773688ab6a883674770e6cab44750523f1c26f5f17078e222d97774260bcc36
6
+ metadata.gz: 64d0851b85dd2d187e033cefb73dd3969616105fd7207c9f2cdd2aff8e68a6f8a4c5c4dd4da31204cfc31b7fc4983bbab86a3226fad999b3763ec80b89f923d7
7
+ data.tar.gz: 784b66408f01d6fd1d56b010fc2b47d9f51491eaa83fa8d4928f26f7e5e75b0cb59274434e1c9e2f8dc05f427c0ebadcbd7527d59b476e15b62a61731557641e
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
@@ -1732,6 +1732,13 @@ module Google
1732
1732
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1733
1733
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1734
1734
  # * (`nil`) indicating no credentials
1735
+ #
1736
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1737
+ # external source for authentication to Google Cloud, you must validate it before
1738
+ # providing it to a Google API client library. Providing an unvalidated credential
1739
+ # configuration to Google APIs can compromise the security of your systems and data.
1740
+ # For more information, refer to [Validate credential configurations from external
1741
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1735
1742
  # @return [::Object]
1736
1743
  # @!attribute [rw] scope
1737
1744
  # The OAuth scopes
@@ -640,6 +640,13 @@ module Google
640
640
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
641
641
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
642
642
  # * (`nil`) indicating no credentials
643
+ #
644
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
645
+ # external source for authentication to Google Cloud, you must validate it before
646
+ # providing it to a Google API client library. Providing an unvalidated credential
647
+ # configuration to Google APIs can compromise the security of your systems and data.
648
+ # For more information, refer to [Validate credential configurations from external
649
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
643
650
  # @return [::Object]
644
651
  # @!attribute [rw] scope
645
652
  # The OAuth scopes
@@ -265,10 +265,10 @@ module Google
265
265
  # @param order_by [::String]
266
266
  # Order by parameters.
267
267
  # @yield [result, operation] Access the result along with the TransportOperation object
268
- # @yieldparam result [::Google::Cloud::ApiGateway::V1::ListGatewaysResponse]
268
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApiGateway::V1::Gateway>]
269
269
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
270
270
  #
271
- # @return [::Google::Cloud::ApiGateway::V1::ListGatewaysResponse]
271
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApiGateway::V1::Gateway>]
272
272
  #
273
273
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
274
274
  #
@@ -320,7 +320,9 @@ module Google
320
320
  retry_policy: @config.retry_policy
321
321
 
322
322
  @api_gateway_service_stub.list_gateways request, options do |result, operation|
323
+ result = ::Gapic::Rest::PagedEnumerable.new @api_gateway_service_stub, :list_gateways, "gateways", request, result, options
323
324
  yield result, operation if block_given?
325
+ throw :response, result
324
326
  end
325
327
  rescue ::Gapic::Rest::Error => e
326
328
  raise ::Google::Cloud::Error.from_error(e)
@@ -709,10 +711,10 @@ module Google
709
711
  # @param order_by [::String]
710
712
  # Order by parameters.
711
713
  # @yield [result, operation] Access the result along with the TransportOperation object
712
- # @yieldparam result [::Google::Cloud::ApiGateway::V1::ListApisResponse]
714
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApiGateway::V1::Api>]
713
715
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
714
716
  #
715
- # @return [::Google::Cloud::ApiGateway::V1::ListApisResponse]
717
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApiGateway::V1::Api>]
716
718
  #
717
719
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
718
720
  #
@@ -764,7 +766,9 @@ module Google
764
766
  retry_policy: @config.retry_policy
765
767
 
766
768
  @api_gateway_service_stub.list_apis request, options do |result, operation|
769
+ result = ::Gapic::Rest::PagedEnumerable.new @api_gateway_service_stub, :list_apis, "apis", request, result, options
767
770
  yield result, operation if block_given?
771
+ throw :response, result
768
772
  end
769
773
  rescue ::Gapic::Rest::Error => e
770
774
  raise ::Google::Cloud::Error.from_error(e)
@@ -1153,10 +1157,10 @@ module Google
1153
1157
  # @param order_by [::String]
1154
1158
  # Order by parameters.
1155
1159
  # @yield [result, operation] Access the result along with the TransportOperation object
1156
- # @yieldparam result [::Google::Cloud::ApiGateway::V1::ListApiConfigsResponse]
1160
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApiGateway::V1::ApiConfig>]
1157
1161
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1158
1162
  #
1159
- # @return [::Google::Cloud::ApiGateway::V1::ListApiConfigsResponse]
1163
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApiGateway::V1::ApiConfig>]
1160
1164
  #
1161
1165
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1162
1166
  #
@@ -1208,7 +1212,9 @@ module Google
1208
1212
  retry_policy: @config.retry_policy
1209
1213
 
1210
1214
  @api_gateway_service_stub.list_api_configs request, options do |result, operation|
1215
+ result = ::Gapic::Rest::PagedEnumerable.new @api_gateway_service_stub, :list_api_configs, "api_configs", request, result, options
1211
1216
  yield result, operation if block_given?
1217
+ throw :response, result
1212
1218
  end
1213
1219
  rescue ::Gapic::Rest::Error => e
1214
1220
  raise ::Google::Cloud::Error.from_error(e)
@@ -1612,6 +1618,13 @@ module Google
1612
1618
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1613
1619
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1614
1620
  # * (`nil`) indicating no credentials
1621
+ #
1622
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1623
+ # external source for authentication to Google Cloud, you must validate it before
1624
+ # providing it to a Google API client library. Providing an unvalidated credential
1625
+ # configuration to Google APIs can compromise the security of your systems and data.
1626
+ # For more information, refer to [Validate credential configurations from external
1627
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1615
1628
  # @return [::Object]
1616
1629
  # @!attribute [rw] scope
1617
1630
  # The OAuth scopes
@@ -502,6 +502,13 @@ module Google
502
502
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
503
503
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
504
504
  # * (`nil`) indicating no credentials
505
+ #
506
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
507
+ # external source for authentication to Google Cloud, you must validate it before
508
+ # providing it to a Google API client library. Providing an unvalidated credential
509
+ # configuration to Google APIs can compromise the security of your systems and data.
510
+ # For more information, refer to [Validate credential configurations from external
511
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
505
512
  # @return [::Object]
506
513
  # @!attribute [rw] scope
507
514
  # The OAuth scopes
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ApiGateway
23
23
  module V1
24
- VERSION = "1.1.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
@@ -40,6 +40,8 @@ module Google
40
40
  # @!attribute [rw] error
41
41
  # @return [::Google::Rpc::Status]
42
42
  # The error result of the operation in case of failure or cancellation.
43
+ #
44
+ # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
43
45
  # @!attribute [rw] response
44
46
  # @return [::Google::Protobuf::Any]
45
47
  # The normal, successful response of the operation. If the original
@@ -50,6 +52,8 @@ module Google
50
52
  # is the original method name. For example, if the original method name
51
53
  # is `TakeSnapshot()`, the inferred response type is
52
54
  # `TakeSnapshotResponse`.
55
+ #
56
+ # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
53
57
  class Operation
54
58
  include ::Google::Protobuf::MessageExts
55
59
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-api_gateway-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.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
@@ -94,7 +93,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
94
93
  licenses:
95
94
  - Apache-2.0
96
95
  metadata: {}
97
- post_install_message:
98
96
  rdoc_options: []
99
97
  require_paths:
100
98
  - lib
@@ -102,15 +100,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
100
  requirements:
103
101
  - - ">="
104
102
  - !ruby/object:Gem::Version
105
- version: '2.7'
103
+ version: '3.0'
106
104
  required_rubygems_version: !ruby/object:Gem::Requirement
107
105
  requirements:
108
106
  - - ">="
109
107
  - !ruby/object:Gem::Version
110
108
  version: '0'
111
109
  requirements: []
112
- rubygems_version: 3.5.23
113
- signing_key:
110
+ rubygems_version: 3.6.3
114
111
  specification_version: 4
115
112
  summary: API Client library for the API Gateway V1 API
116
113
  test_files: []