google-cloud-translate 3.7.1 → 3.7.3
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 +4 -4
- data/MIGRATING.md +1 -1
- data/README.md +8 -0
- data/lib/google/cloud/translate/version.rb +1 -1
- 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: 23688139762ed002d6ea1689cfa724a963b0f98c8cad36fe721b40c4fff39e63
|
4
|
+
data.tar.gz: 599281e0a0f27d01dfcf9e46c21b52290572e0211ca268cbc18e87e5c29f10f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54a8550e86f0263ef5e01194aea6247dc3fdc1c41d0c5532040ba4e266aaaa5f3117a92b15cdc1ab7e4f5f5195bad87adc687c0450c3b2d282341172ba48e231
|
7
|
+
data.tar.gz: c93e11a8fe4b0c497a97ab96494211b7cf2b85dea94a8508814fa1a1311eed78e039b652ef59a4c9c2f3db752c33fbdf993931ca563fb265637a4bea00a74d0c
|
data/MIGRATING.md
CHANGED
data/README.md
CHANGED
@@ -35,6 +35,14 @@ In order to use this library, you first need to go through the following steps:
|
|
35
35
|
1. [Enable the API.](https://console.cloud.google.com/apis/library/translate.googleapis.com)
|
36
36
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
37
37
|
|
38
|
+
```ruby
|
39
|
+
require "google/cloud/translate"
|
40
|
+
|
41
|
+
client = Google::Cloud::Translate.translation_service
|
42
|
+
request = ::Google::Cloud::Translate::V3::TranslateTextRequest.new # (request fields as keyword arguments...)
|
43
|
+
response = client.translate_text request
|
44
|
+
```
|
45
|
+
|
38
46
|
## Migrating from 2.x versions
|
39
47
|
|
40
48
|
The 3.0 release of the google-cloud-translate client is a significant upgrade
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-translate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.7.
|
4
|
+
version: 3.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '0'
|
100
100
|
requirements: []
|
101
|
-
rubygems_version: 3.6.
|
101
|
+
rubygems_version: 3.6.9
|
102
102
|
specification_version: 4
|
103
103
|
summary: API Client library for the Cloud Translation API
|
104
104
|
test_files: []
|