google-cloud-speech-v1p1beta1 0.2.1 → 0.3.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: 4adf8d1e4eeaa7f2155224cecb3e8c0e92c2a5ccafac16e989a532f58cc34c61
4
- data.tar.gz: 1d0cbe2deab182a6216f549a2067deab137103c2440e4c1c19156ae2365f7edc
3
+ metadata.gz: 05372f925ff8d6076b29520efb9224f34d5e86fae7b53fc83e46a00f44c26223
4
+ data.tar.gz: 1a50809d619b3239a9427b8ca180acea396b5d3d6daa47913333292d74b87f36
5
5
  SHA512:
6
- metadata.gz: 8ef921b6faf8847146e3bf9bd1a6b8ec036818c1871fed7681768e5352e2dce8cdea2b77181665ba5d6f292971c261e65517ab1bcd1b8a1ae0a0fb1c8e4354cf
7
- data.tar.gz: 6f661908a45d4c6dadb9e5a14ece5d78ff25f1786aa110bb867b4aba0827cd4011d0588782579640d4897fe861c69b5a64b411c3ba50957152cf85c9bca114ca
6
+ metadata.gz: b15afaadafe440bc1b331bb1a72a2ab8f6f44efcbb4ef95a56c8aea31ac4b128f559f2e1086cd67cbf4a3a0a214dc672af5c44a995fa2e49c9f207841404735f
7
+ data.tar.gz: 46f10399c2190905c10c0e59226fd172cfbee9df976b4ed0c22d0511b4a677f9471c604900fcdaca5062af481c329d9e64ae2b3b6604a868b1103229ca1ebae9
@@ -148,7 +148,8 @@ module Google
148
148
  if credentials.is_a?(String) || credentials.is_a?(Hash)
149
149
  credentials = Credentials.new credentials, scope: @config.scope
150
150
  end
151
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
151
+ @quota_project_id = @config.quota_project
152
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
152
153
 
153
154
  @operations_client = Operations.new do |config|
154
155
  config.credentials = credentials
@@ -435,24 +436,28 @@ module Google
435
436
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
436
437
  # trigger a retry.
437
438
  # @return [::Hash]
439
+ # @!attribute [rw] quota_project
440
+ # A separate project against which to charge quota.
441
+ # @return [::String]
438
442
  #
439
443
  class Configuration
440
444
  extend ::Gapic::Config
441
445
 
442
- config_attr :endpoint, "speech.googleapis.com", String
443
- config_attr :credentials, nil do |value|
446
+ config_attr :endpoint, "speech.googleapis.com", ::String
447
+ config_attr :credentials, nil do |value|
444
448
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
445
449
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
446
450
  allowed.any? { |klass| klass === value }
447
451
  end
448
- config_attr :scope, nil, ::String, ::Array, nil
449
- config_attr :lib_name, nil, ::String, nil
450
- config_attr :lib_version, nil, ::String, nil
451
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
452
- config_attr :interceptors, nil, ::Array, nil
453
- config_attr :timeout, nil, ::Numeric, nil
454
- config_attr :metadata, nil, ::Hash, nil
455
- config_attr :retry_policy, nil, ::Hash, Proc, nil
452
+ config_attr :scope, nil, ::String, ::Array, nil
453
+ config_attr :lib_name, nil, ::String, nil
454
+ config_attr :lib_version, nil, ::String, nil
455
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
456
+ config_attr :interceptors, nil, ::Array, nil
457
+ config_attr :timeout, nil, ::Numeric, nil
458
+ config_attr :metadata, nil, ::Hash, nil
459
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
460
+ config_attr :quota_project, nil, ::String, nil
456
461
 
457
462
  # @private
458
463
  def initialize parent_config = nil
@@ -464,24 +464,28 @@ module Google
464
464
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
465
465
  # trigger a retry.
466
466
  # @return [::Hash]
467
+ # @!attribute [rw] quota_project
468
+ # A separate project against which to charge quota.
469
+ # @return [::String]
467
470
  #
468
471
  class Configuration
469
472
  extend ::Gapic::Config
470
473
 
471
- config_attr :endpoint, "speech.googleapis.com", String
472
- config_attr :credentials, nil do |value|
474
+ config_attr :endpoint, "speech.googleapis.com", ::String
475
+ config_attr :credentials, nil do |value|
473
476
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
474
477
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
475
478
  allowed.any? { |klass| klass === value }
476
479
  end
477
- config_attr :scope, nil, ::String, ::Array, nil
478
- config_attr :lib_name, nil, ::String, nil
479
- config_attr :lib_version, nil, ::String, nil
480
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
481
- config_attr :interceptors, nil, ::Array, nil
482
- config_attr :timeout, nil, ::Numeric, nil
483
- config_attr :metadata, nil, ::Hash, nil
484
- config_attr :retry_policy, nil, ::Hash, Proc, nil
480
+ config_attr :scope, nil, ::String, ::Array, nil
481
+ config_attr :lib_name, nil, ::String, nil
482
+ config_attr :lib_version, nil, ::String, nil
483
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
484
+ config_attr :interceptors, nil, ::Array, nil
485
+ config_attr :timeout, nil, ::Numeric, nil
486
+ config_attr :metadata, nil, ::Hash, nil
487
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
488
+ config_attr :quota_project, nil, ::String, nil
485
489
 
486
490
  # @private
487
491
  def initialize parent_config = nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Speech
23
23
  module V1p1beta1
24
- VERSION = "0.2.1"
24
+ VERSION = "0.3.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-speech-v1p1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.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: 2020-05-05 00:00:00.000000000 Z
11
+ date: 2020-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -58,14 +58,42 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5.10'
61
+ version: '5.14'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '5.10'
68
+ version: '5.14'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest-focus
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.1'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest-rg
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '5.2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '5.2'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: rake
71
99
  requirement: !ruby/object:Gem::Requirement