google-cloud-datastream-v1alpha1 0.3.0 → 0.5.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: 74efe46f067e4112dfea42629eb4625506aaf6cd4fa37870646cc074d55b5160
4
- data.tar.gz: d8366e985eaa5967b2f91028d69d94730ced0ce382e37d7ea16572319e3ac9e3
3
+ metadata.gz: be2d990377da642cc8b2847ca3cf2eb9f4da3fd632737995027ad79381eae103
4
+ data.tar.gz: 8c0ce4a49c586dd335e6f95fa7cf20a0905af8c775b2645da8feb27097b2bc7d
5
5
  SHA512:
6
- metadata.gz: d7229786b9a474a3f3151d97edfe24dae6afca1df4dd374923270feefd90959f09cba44b961c819891806b4c5ef9dfabd5de180b8f0dc1defedc7e9bd6921ce9
7
- data.tar.gz: 189366d0014ee13bf0b597fba3f4a30c1535a48f474ac22041a3f617325c2121dbb36cb7ae692aae821bf530351cb58049e13169e4b008ad14ddbce35113b241
6
+ metadata.gz: 0b8d186cfd69078120181ed848958d1a2bc0cd4f34f7ad1dec766e5efd1b7f53a069c29435fe34100a47a93f5f201a0dbcfa9e46714f7d8de835056ac8bc052a
7
+ data.tar.gz: 28e9050fe96ff35d6b11d88c762e21ee0a45dcd5d455a84110f4f2e1ccb898bf1a1bab1327a15064f55e989ade4d8a85cfcc76eb8ce3b07ac92a9d80b2ac3b20
data/README.md CHANGED
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -148,7 +148,7 @@ module Google
148
148
  credentials = @config.credentials
149
149
  # Use self-signed JWT if the endpoint is unchanged from default,
150
150
  # but only if the default endpoint does not have a region prefix.
151
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
151
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
152
152
  !@config.endpoint.split(".").first.include?("-")
153
153
  credentials ||= Credentials.default scope: @config.scope,
154
154
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -169,7 +169,8 @@ module Google
169
169
  credentials: credentials,
170
170
  endpoint: @config.endpoint,
171
171
  channel_args: @config.channel_args,
172
- interceptors: @config.interceptors
172
+ interceptors: @config.interceptors,
173
+ channel_pool_config: @config.channel_pool
173
174
  )
174
175
  end
175
176
 
@@ -2383,9 +2384,9 @@ module Google
2383
2384
  # * (`String`) The path to a service account key file in JSON format
2384
2385
  # * (`Hash`) A service account key as a Hash
2385
2386
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2386
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
2387
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2387
2388
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2388
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
2389
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2389
2390
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2390
2391
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2391
2392
  # * (`nil`) indicating no credentials
@@ -2427,7 +2428,9 @@ module Google
2427
2428
  class Configuration
2428
2429
  extend ::Gapic::Config
2429
2430
 
2430
- config_attr :endpoint, "datastream.googleapis.com", ::String
2431
+ DEFAULT_ENDPOINT = "datastream.googleapis.com"
2432
+
2433
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
2431
2434
  config_attr :credentials, nil do |value|
2432
2435
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2433
2436
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -2462,6 +2465,14 @@ module Google
2462
2465
  end
2463
2466
  end
2464
2467
 
2468
+ ##
2469
+ # Configuration for the channel pool
2470
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
2471
+ #
2472
+ def channel_pool
2473
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
2474
+ end
2475
+
2465
2476
  ##
2466
2477
  # Configuration RPC class for the Datastream API.
2467
2478
  #
@@ -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
@@ -620,9 +621,9 @@ module Google
620
621
  # * (`String`) The path to a service account key file in JSON format
621
622
  # * (`Hash`) A service account key as a Hash
622
623
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
624
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
625
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
626
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
627
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
628
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
629
  # * (`nil`) indicating no credentials
@@ -664,7 +665,9 @@ module Google
664
665
  class Configuration
665
666
  extend ::Gapic::Config
666
667
 
667
- config_attr :endpoint, "datastream.googleapis.com", ::String
668
+ DEFAULT_ENDPOINT = "datastream.googleapis.com"
669
+
670
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
671
  config_attr :credentials, nil do |value|
669
672
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
673
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -699,6 +702,14 @@ module Google
699
702
  end
700
703
  end
701
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
702
713
  ##
703
714
  # Configuration RPC class for the Operations API.
704
715
  #