google-cloud-language-v1 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +1 -1
- data/lib/google/cloud/language/v1/language_service/client.rb +139 -139
- data/lib/google/cloud/language/v1/language_service/credentials.rb +1 -1
- data/lib/google/cloud/language/v1/language_service.rb +1 -1
- data/lib/google/cloud/language/v1/version.rb +1 -1
- data/lib/google/cloud/language/v1.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/language/v1/language_service.rb +136 -136
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 936aac178886abc68770d67019be866f942b4a1f16b624f5fd4880587be937b3
|
4
|
+
data.tar.gz: a2144fe05eb2ca589d005bf0638ca8215b68b4eb18d84bf9d42669b2bb2521df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb3e00d78bfbac81bf41d933d2177c2520d7d385544132b19495598d90e4a66ddbf0a25cc3960aaf56688e87efb9c496e5deda5055d16c00bf32905290dde919
|
7
|
+
data.tar.gz: 27c90d223a07b928aef8869c7340b4ca2214aec521e087edf68f3e592276d8ddc10d15a039037ac2c6e3421949ffd0d23f0f8873b0f18bf7a5f634b09653c46e
|
data/AUTHENTICATION.md
CHANGED
@@ -27,7 +27,7 @@ export LANGUAGE_CREDENTIALS=path/to/keyfile.json
|
|
27
27
|
```ruby
|
28
28
|
require "google/cloud/language/v1"
|
29
29
|
|
30
|
-
client = Google::Cloud::Language::V1::LanguageService::Client.new
|
30
|
+
client = ::Google::Cloud::Language::V1::LanguageService::Client.new
|
31
31
|
```
|
32
32
|
|
33
33
|
## Credential Lookup
|
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
|
|
64
64
|
|
65
65
|
The environment variables that google-cloud-language-v1
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
{Google::Cloud::Language::V1::LanguageService::Credentials}):
|
67
|
+
{::Google::Cloud::Language::V1::LanguageService::Credentials}):
|
68
68
|
|
69
69
|
1. `LANGUAGE_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
2. `LANGUAGE_KEYFILE` - Path to JSON file, or JSON contents
|
@@ -77,7 +77,7 @@ require "google/cloud/language/v1"
|
|
77
77
|
|
78
78
|
ENV["LANGUAGE_CREDENTIALS"] = "path/to/keyfile.json"
|
79
79
|
|
80
|
-
client = Google::Cloud::Language::V1::LanguageService::Client.new
|
80
|
+
client = ::Google::Cloud::Language::V1::LanguageService::Client.new
|
81
81
|
```
|
82
82
|
|
83
83
|
### Configuration
|
@@ -88,7 +88,7 @@ environment variables. Either on an individual client initialization:
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/language/v1"
|
90
90
|
|
91
|
-
client = Google::Cloud::Language::V1::LanguageService::Client.new do |config|
|
91
|
+
client = ::Google::Cloud::Language::V1::LanguageService::Client.new do |config|
|
92
92
|
config.credentials = "path/to/keyfile.json"
|
93
93
|
end
|
94
94
|
```
|
@@ -98,11 +98,11 @@ Or configured globally for all clients:
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/language/v1"
|
100
100
|
|
101
|
-
Google::Cloud::Language::V1::LanguageService::Client.configure do |config|
|
101
|
+
::Google::Cloud::Language::V1::LanguageService::Client.configure do |config|
|
102
102
|
config.credentials = "path/to/keyfile.json"
|
103
103
|
end
|
104
104
|
|
105
|
-
client = Google::Cloud::Language::V1::LanguageService::Client.new
|
105
|
+
client = ::Google::Cloud::Language::V1::LanguageService::Client.new
|
106
106
|
```
|
107
107
|
|
108
108
|
### Cloud SDK
|
data/README.md
CHANGED
@@ -25,7 +25,7 @@ In order to use this library, you first need to go through the following steps:
|
|
25
25
|
```ruby
|
26
26
|
require "google/cloud/language/v1"
|
27
27
|
|
28
|
-
client = Google::Cloud::Language::V1::LanguageService::Client.new
|
28
|
+
client = ::Google::Cloud::Language::V1::LanguageService::Client.new
|
29
29
|
request = my_create_request
|
30
30
|
response = client.analyze_sentiment request
|
31
31
|
```
|