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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7697756af25f2776c2cf270ac1d917e0d7830ecdaadd612c10058523dbde336b
|
|
4
|
+
data.tar.gz: 0c2807aa1e1daac67947470defe54804f6972fa93202c7ef9bdfc3faeb0ed4b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 =
|
|
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,
|
|
441
|
-
config_attr :credentials,
|
|
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,
|
|
447
|
-
config_attr :lib_name,
|
|
448
|
-
config_attr :lib_version,
|
|
449
|
-
config_attr(:channel_args,
|
|
450
|
-
config_attr :interceptors,
|
|
451
|
-
config_attr :timeout,
|
|
452
|
-
config_attr :metadata,
|
|
453
|
-
config_attr :retry_policy,
|
|
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,
|
|
472
|
-
config_attr :credentials,
|
|
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,
|
|
478
|
-
config_attr :lib_name,
|
|
479
|
-
config_attr :lib_version,
|
|
480
|
-
config_attr(:channel_args,
|
|
481
|
-
config_attr :interceptors,
|
|
482
|
-
config_attr :timeout,
|
|
483
|
-
config_attr :metadata,
|
|
484
|
-
config_attr :retry_policy,
|
|
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
|
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.
|
|
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-
|
|
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.
|
|
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.
|
|
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
|