google-cloud-service_usage-v1 0.3.0 → 0.4.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: ee03208354280563d5cf17faa176f4bc1adf95055f241459272b31c1948d0cbe
4
- data.tar.gz: 4e2be6e41bcb4d161e0954871301b6532406b362a6c639e68081d3b4e9b426de
3
+ metadata.gz: f69e245645b5322b15edcaad60b61f72163f2669c39e6a6ca0b46aa094ff0dd1
4
+ data.tar.gz: 77e7144aa5fae801ae1fac2a24e5efa1ece28d3de9b8def2e4a7d76380ee8a6d
5
5
  SHA512:
6
- metadata.gz: db6c7105a732278866d789272ffd83d07b3fb53630836d7fdbe9ef2721d03ff815213be03439f03bf343a6fc50c0b30421dd0b7da64b77a8be28e1319c3ed3ca
7
- data.tar.gz: 0fa7db2840685dbe0f76ea8587e8f50fff5611ff0af5c55fccc97751354306a0a05beb2832d54064965645d22d3405f67f2a96f16f47f075b5c144166d917ad9
6
+ metadata.gz: f6d7a83ce6917e10427aa08d26f8c64f3e410c2273d29a55ab3ea28c4bd6e739d4d1e47fc5cab2505b2b204a503b09725522ec10bf7674906df8bb0d96acffb8
7
+ data.tar.gz: 5fc89bfb5593a94474b518ab85812683b56eaec906257f82af9a6bca4e9f327aa4c88da3947056e820aeaad879b773b1ff292a0856a747c739c2a16c82ae2648
@@ -127,7 +127,7 @@ module Google
127
127
  credentials = @config.credentials
128
128
  # Use self-signed JWT if the endpoint is unchanged from default,
129
129
  # but only if the default endpoint does not have a region prefix.
130
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
130
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
131
131
  !@config.endpoint.split(".").first.include?("-")
132
132
  credentials ||= Credentials.default scope: @config.scope,
133
133
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -148,7 +148,8 @@ module Google
148
148
  credentials: credentials,
149
149
  endpoint: @config.endpoint,
150
150
  channel_args: @config.channel_args,
151
- interceptors: @config.interceptors
151
+ interceptors: @config.interceptors,
152
+ channel_pool_config: @config.channel_pool
152
153
  )
153
154
  end
154
155
 
@@ -872,7 +873,9 @@ module Google
872
873
  class Configuration
873
874
  extend ::Gapic::Config
874
875
 
875
- config_attr :endpoint, "serviceusage.googleapis.com", ::String
876
+ DEFAULT_ENDPOINT = "serviceusage.googleapis.com"
877
+
878
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
876
879
  config_attr :credentials, nil do |value|
877
880
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
878
881
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -907,6 +910,14 @@ module Google
907
910
  end
908
911
  end
909
912
 
913
+ ##
914
+ # Configuration for the channel pool
915
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
916
+ #
917
+ def channel_pool
918
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
919
+ end
920
+
910
921
  ##
911
922
  # Configuration RPC class for the ServiceUsage API.
912
923
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -656,7 +657,9 @@ module Google
656
657
  class Configuration
657
658
  extend ::Gapic::Config
658
659
 
659
- config_attr :endpoint, "serviceusage.googleapis.com", ::String
660
+ DEFAULT_ENDPOINT = "serviceusage.googleapis.com"
661
+
662
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
660
663
  config_attr :credentials, nil do |value|
661
664
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
662
665
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -691,6 +694,14 @@ module Google
691
694
  end
692
695
  end
693
696
 
697
+ ##
698
+ # Configuration for the channel pool
699
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
700
+ #
701
+ def channel_pool
702
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
703
+ end
704
+
694
705
  ##
695
706
  # Configuration RPC class for the Operations API.
696
707
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceUsage
23
23
  module V1
24
- VERSION = "0.3.0"
24
+ VERSION = "0.4.0"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-service_usage-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.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: 2023-05-31 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.0
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.0
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  - !ruby/object:Gem::Version
224
224
  version: '0'
225
225
  requirements: []
226
- rubygems_version: 3.4.2
226
+ rubygems_version: 3.4.19
227
227
  signing_key:
228
228
  specification_version: 4
229
229
  summary: Enables services that service consumers want to use on Google Cloud Platform,