google-cloud-speech-v1 0.1.4 → 0.2.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: e61467bec2b883587f3bbd2b40b86c3b103be3446fb34fe56d5f4281eac996aa
4
- data.tar.gz: 66649e057ae49b6a217b4061a0a54dda84e25951eabad1e8d3a845fb1b5a1169
3
+ metadata.gz: 7697756af25f2776c2cf270ac1d917e0d7830ecdaadd612c10058523dbde336b
4
+ data.tar.gz: 0c2807aa1e1daac67947470defe54804f6972fa93202c7ef9bdfc3faeb0ed4b1
5
5
  SHA512:
6
- metadata.gz: 2519ad72380ad73d5bdaa281be246787df7e1ea7569c15805471d634e1d0afaafbb42a18ca5d708543d2a76d5173ed6074d059291118d4898772978251b6d013
7
- data.tar.gz: 7288627763768ab25e3cae2c0b4a0121941ababe90fefee268ff9cc9ed31922d2c3014ab11f447250f8de58c133612f6ec3facc3c5efdb67da2ba458ebbbc951
6
+ metadata.gz: 744b1144d5c40beb956ffa88228e4322c75b58f5ffbdc6fb50f460a9e5e7a0ecaf7943ab4ddd1a11b7ea90da57cd4e373fb42751d8e18c07dfef754ca185e63c
7
+ data.tar.gz: fcb535466d0423fbe55050b4636f241195f24f089467c108a7bcb1be22cd9070349364f8b9234dd27fc4ee5b394d7958ee9677e085c17fd159d7e9e35f3679e2
@@ -146,7 +146,8 @@ module Google
146
146
  if credentials.is_a?(String) || credentials.is_a?(Hash)
147
147
  credentials = Credentials.new credentials, scope: @config.scope
148
148
  end
149
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
149
+ @quota_project_id = @config.quota_project
150
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
150
151
 
151
152
  @operations_client = Operations.new do |config|
152
153
  config.credentials = credentials
@@ -433,24 +434,28 @@ module Google
433
434
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
434
435
  # trigger a retry.
435
436
  # @return [::Hash]
437
+ # @!attribute [rw] quota_project
438
+ # A separate project against which to charge quota.
439
+ # @return [::String]
436
440
  #
437
441
  class Configuration
438
442
  extend ::Gapic::Config
439
443
 
440
- config_attr :endpoint, "speech.googleapis.com", String
441
- config_attr :credentials, nil do |value|
444
+ config_attr :endpoint, "speech.googleapis.com", ::String
445
+ config_attr :credentials, nil do |value|
442
446
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
443
447
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
444
448
  allowed.any? { |klass| klass === value }
445
449
  end
446
- config_attr :scope, nil, ::String, ::Array, nil
447
- config_attr :lib_name, nil, ::String, nil
448
- config_attr :lib_version, nil, ::String, nil
449
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
450
- config_attr :interceptors, nil, ::Array, nil
451
- config_attr :timeout, nil, ::Numeric, nil
452
- config_attr :metadata, nil, ::Hash, nil
453
- config_attr :retry_policy, nil, ::Hash, Proc, nil
450
+ config_attr :scope, nil, ::String, ::Array, nil
451
+ config_attr :lib_name, nil, ::String, nil
452
+ config_attr :lib_version, nil, ::String, nil
453
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
454
+ config_attr :interceptors, nil, ::Array, nil
455
+ config_attr :timeout, nil, ::Numeric, nil
456
+ config_attr :metadata, nil, ::Hash, nil
457
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
458
+ config_attr :quota_project, nil, ::String, nil
454
459
 
455
460
  # @private
456
461
  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 V1
24
- VERSION = "0.1.4"
24
+ VERSION = "0.2.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-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.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-20 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