google-cloud-language-v1beta2 0.1.5 → 0.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13eca186be21911f26458bd039554756afa0529b5762e4fe59111fbaa3918968
|
4
|
+
data.tar.gz: '08d7ecb7c36725435f1167fdf98f91aa9dff86ef14b4fbb11289d851cf413fb1'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8869b0fda7fb9d346291c6cfe46c3312207bfcacfa51d9a7021fbbe9007a744b5645b5fd33747356049d1b6a481b55cba33149f6b1b068e0004ae31a874197c8
|
7
|
+
data.tar.gz: c24af4c3c05d7760db385a10c44b084ba4a2bf1f9b071ed06cc55c83eb66d090ebdd8ff6555ce5ec6251a09ab18bbe7b1b4888cce8f70aae8d23c545e3b55362
|
@@ -177,7 +177,8 @@ module Google
|
|
177
177
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
178
178
|
credentials = Credentials.new credentials, scope: @config.scope
|
179
179
|
end
|
180
|
-
@quota_project_id =
|
180
|
+
@quota_project_id = @config.quota_project
|
181
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
181
182
|
|
182
183
|
@language_service_stub = ::Gapic::ServiceStub.new(
|
183
184
|
::Google::Cloud::Language::V1beta2::LanguageService::Stub,
|
@@ -645,24 +646,28 @@ module Google
|
|
645
646
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
646
647
|
# trigger a retry.
|
647
648
|
# @return [::Hash]
|
649
|
+
# @!attribute [rw] quota_project
|
650
|
+
# A separate project against which to charge quota.
|
651
|
+
# @return [::String]
|
648
652
|
#
|
649
653
|
class Configuration
|
650
654
|
extend ::Gapic::Config
|
651
655
|
|
652
|
-
config_attr :endpoint,
|
653
|
-
config_attr :credentials,
|
656
|
+
config_attr :endpoint, "language.googleapis.com", ::String
|
657
|
+
config_attr :credentials, nil do |value|
|
654
658
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
655
659
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
656
660
|
allowed.any? { |klass| klass === value }
|
657
661
|
end
|
658
|
-
config_attr :scope,
|
659
|
-
config_attr :lib_name,
|
660
|
-
config_attr :lib_version,
|
661
|
-
config_attr(:channel_args,
|
662
|
-
config_attr :interceptors,
|
663
|
-
config_attr :timeout,
|
664
|
-
config_attr :metadata,
|
665
|
-
config_attr :retry_policy,
|
662
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
663
|
+
config_attr :lib_name, nil, ::String, nil
|
664
|
+
config_attr :lib_version, nil, ::String, nil
|
665
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
666
|
+
config_attr :interceptors, nil, ::Array, nil
|
667
|
+
config_attr :timeout, nil, ::Numeric, nil
|
668
|
+
config_attr :metadata, nil, ::Hash, nil
|
669
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
670
|
+
config_attr :quota_project, nil, ::String, nil
|
666
671
|
|
667
672
|
# @private
|
668
673
|
def initialize parent_config = nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-language-v1beta2
|
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
|