google-cloud-translate 2.3.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +5 -8
- data/AUTHENTICATION.md +67 -81
- data/LICENSE.md +201 -0
- data/MIGRATING.md +302 -0
- data/README.md +139 -0
- data/lib/google-cloud-translate.rb +5 -146
- data/lib/google/cloud/translate.rb +79 -178
- data/lib/google/cloud/translate/helpers.rb +107 -0
- data/lib/google/cloud/translate/version.rb +6 -2
- metadata +38 -138
- data/CHANGELOG.md +0 -164
- data/CODE_OF_CONDUCT.md +0 -40
- data/CONTRIBUTING.md +0 -188
- data/LICENSE +0 -201
- data/OVERVIEW.md +0 -390
- data/TROUBLESHOOTING.md +0 -37
- data/lib/google/cloud/translate/v2.rb +0 -169
- data/lib/google/cloud/translate/v2/api.rb +0 -255
- data/lib/google/cloud/translate/v2/credentials.rb +0 -58
- data/lib/google/cloud/translate/v2/detection.rb +0 -132
- data/lib/google/cloud/translate/v2/language.rb +0 -68
- data/lib/google/cloud/translate/v2/service.rb +0 -209
- data/lib/google/cloud/translate/v2/translation.rb +0 -120
- data/lib/google/cloud/translate/v3.rb +0 -144
- data/lib/google/cloud/translate/v3/credentials.rb +0 -42
- data/lib/google/cloud/translate/v3/doc/google/cloud/translate/v3/translation_service.rb +0 -663
- data/lib/google/cloud/translate/v3/doc/google/longrunning/operations.rb +0 -51
- data/lib/google/cloud/translate/v3/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/translate/v3/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/translate/v3/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/translate/v3/translation_service_client.rb +0 -930
- data/lib/google/cloud/translate/v3/translation_service_client_config.json +0 -66
- data/lib/google/cloud/translate/v3/translation_service_pb.rb +0 -226
- data/lib/google/cloud/translate/v3/translation_service_services_pb.rb +0 -68
@@ -0,0 +1,107 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
|
18
|
+
module Google
|
19
|
+
module Cloud
|
20
|
+
module Translate
|
21
|
+
##
|
22
|
+
# Creates a new object for connecting to the legacy V2 version of the
|
23
|
+
# Cloud Translation API.
|
24
|
+
#
|
25
|
+
# Like other Cloud Platform services, Google Cloud Translation API supports authentication using a project ID
|
26
|
+
# and OAuth 2.0 credentials. In addition, it supports authentication using a public API access key. (If both the
|
27
|
+
# API key and the project and OAuth 2.0 credentials are provided, the API key will be used.) Instructions and
|
28
|
+
# configuration options are covered in the {file:AUTHENTICATION.md Authentication Guide}.
|
29
|
+
#
|
30
|
+
# @param [String] project_id Project identifier for the Cloud Translation service you are connecting to. If not
|
31
|
+
# present, the default project for the credentials is used.
|
32
|
+
# @param [String, Hash, Google::Auth::Credentials] credentials The path to the keyfile as a String, the contents
|
33
|
+
# of the keyfile as a Hash, or a Google::Auth::Credentials object.
|
34
|
+
# @param [String] key a public API access key (not an OAuth 2.0 token)
|
35
|
+
# @param [String, Array<String>] scope The OAuth 2.0 scopes controlling the set of resources and operations that
|
36
|
+
# the connection can access. See [Using OAuth 2.0 to Access Google
|
37
|
+
# APIs](https://developers.google.com/identity/protocols/OAuth2).
|
38
|
+
#
|
39
|
+
# The default scope is:
|
40
|
+
#
|
41
|
+
# * `https://www.googleapis.com/auth/cloud-platform`
|
42
|
+
# @param [Integer] retries Number of times to retry requests on server error. The default value is `3`.
|
43
|
+
# Optional.
|
44
|
+
# @param [Integer] timeout Default timeout to use in requests. Optional.
|
45
|
+
# @param [String] endpoint Override of the endpoint host name. Optional. If the param is nil, uses the default
|
46
|
+
# endpoint.
|
47
|
+
#
|
48
|
+
# @return [Google::Cloud::Translate::V2::Api]
|
49
|
+
#
|
50
|
+
# @example
|
51
|
+
# require "google/cloud/translate/v2"
|
52
|
+
#
|
53
|
+
# translate = Google::Cloud::Translate::V2.new(
|
54
|
+
# version: :v2,
|
55
|
+
# project_id: "my-todo-project",
|
56
|
+
# credentials: "/path/to/keyfile.json"
|
57
|
+
# )
|
58
|
+
#
|
59
|
+
# translation = translate.translate "Hello world!", to: "la"
|
60
|
+
# translation.text #=> "Salve mundi!"
|
61
|
+
#
|
62
|
+
# @example Using API Key.
|
63
|
+
# require "google/cloud/translate/v2"
|
64
|
+
#
|
65
|
+
# translate = Google::Cloud::Translate::V2.new(
|
66
|
+
# key: "api-key-abc123XYZ789"
|
67
|
+
# )
|
68
|
+
#
|
69
|
+
# translation = translate.translate "Hello world!", to: "la"
|
70
|
+
# translation.text #=> "Salve mundi!"
|
71
|
+
#
|
72
|
+
# @example Using API Key from the environment variable.
|
73
|
+
# require "google/cloud/translate/v2"
|
74
|
+
#
|
75
|
+
# ENV["TRANSLATE_KEY"] = "api-key-abc123XYZ789"
|
76
|
+
#
|
77
|
+
# translate = Google::Cloud::Translate::V2.new
|
78
|
+
#
|
79
|
+
# translation = translate.translate "Hello world!", to: "la"
|
80
|
+
# translation.text #=> "Salve mundi!"
|
81
|
+
#
|
82
|
+
def self.translation_v2_service project_id: nil,
|
83
|
+
credentials: nil,
|
84
|
+
key: nil,
|
85
|
+
scope: nil,
|
86
|
+
retries: nil,
|
87
|
+
timeout: nil,
|
88
|
+
endpoint: nil
|
89
|
+
require "google/cloud/translate/v2"
|
90
|
+
Google::Cloud::Translate::V2.new project_id: project_id,
|
91
|
+
credentials: credentials,
|
92
|
+
key: key,
|
93
|
+
scope: scope,
|
94
|
+
retries: retries,
|
95
|
+
timeout: timeout,
|
96
|
+
endpoint: endpoint
|
97
|
+
end
|
98
|
+
|
99
|
+
# Additional config keys used by V2
|
100
|
+
configure do |config|
|
101
|
+
config.add_field! :project_id, nil, match: ::String
|
102
|
+
config.add_field! :key, nil, match: ::String
|
103
|
+
config.add_field! :retries, nil, match: ::Integer
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
@@ -1,4 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
2
4
|
#
|
3
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
6
|
# you may not use this file except in compliance with the License.
|
@@ -12,11 +14,13 @@
|
|
12
14
|
# See the License for the specific language governing permissions and
|
13
15
|
# limitations under the License.
|
14
16
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
15
19
|
|
16
20
|
module Google
|
17
21
|
module Cloud
|
18
22
|
module Translate
|
19
|
-
VERSION = "
|
23
|
+
VERSION = "3.1.0"
|
20
24
|
end
|
21
25
|
end
|
22
26
|
end
|
metadata
CHANGED
@@ -1,187 +1,127 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-translate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.1.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:
|
11
|
+
date: 2021-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: faraday
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 0.17.3
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '2.0'
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 0.17.3
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '2.0'
|
33
13
|
- !ruby/object:Gem::Dependency
|
34
14
|
name: google-cloud-core
|
35
15
|
requirement: !ruby/object:Gem::Requirement
|
36
16
|
requirements:
|
37
17
|
- - "~>"
|
38
18
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
19
|
+
version: '1.5'
|
40
20
|
type: :runtime
|
41
21
|
prerelease: false
|
42
22
|
version_requirements: !ruby/object:Gem::Requirement
|
43
23
|
requirements:
|
44
24
|
- - "~>"
|
45
25
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
26
|
+
version: '1.5'
|
47
27
|
- !ruby/object:Gem::Dependency
|
48
|
-
name: google-
|
28
|
+
name: google-cloud-translate-v2
|
49
29
|
requirement: !ruby/object:Gem::Requirement
|
50
30
|
requirements:
|
51
31
|
- - "~>"
|
52
32
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
33
|
+
version: '0.0'
|
54
34
|
type: :runtime
|
55
35
|
prerelease: false
|
56
36
|
version_requirements: !ruby/object:Gem::Requirement
|
57
37
|
requirements:
|
58
38
|
- - "~>"
|
59
39
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: googleapis-common-protos
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - ">="
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: 1.3.9
|
68
|
-
- - "<"
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: '2.0'
|
71
|
-
type: :runtime
|
72
|
-
prerelease: false
|
73
|
-
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
requirements:
|
75
|
-
- - ">="
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: 1.3.9
|
78
|
-
- - "<"
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version: '2.0'
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: googleapis-common-protos-types
|
83
|
-
requirement: !ruby/object:Gem::Requirement
|
84
|
-
requirements:
|
85
|
-
- - ">="
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
version: 1.0.4
|
88
|
-
- - "<"
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: '2.0'
|
91
|
-
type: :runtime
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - ">="
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: 1.0.4
|
98
|
-
- - "<"
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
version: '2.0'
|
40
|
+
version: '0.0'
|
101
41
|
- !ruby/object:Gem::Dependency
|
102
|
-
name:
|
42
|
+
name: google-cloud-translate-v3
|
103
43
|
requirement: !ruby/object:Gem::Requirement
|
104
44
|
requirements:
|
105
45
|
- - "~>"
|
106
46
|
- !ruby/object:Gem::Version
|
107
|
-
version: '
|
108
|
-
type: :
|
47
|
+
version: '0.0'
|
48
|
+
type: :runtime
|
109
49
|
prerelease: false
|
110
50
|
version_requirements: !ruby/object:Gem::Requirement
|
111
51
|
requirements:
|
112
52
|
- - "~>"
|
113
53
|
- !ruby/object:Gem::Version
|
114
|
-
version: '
|
54
|
+
version: '0.0'
|
115
55
|
- !ruby/object:Gem::Dependency
|
116
56
|
name: google-style
|
117
57
|
requirement: !ruby/object:Gem::Requirement
|
118
58
|
requirements:
|
119
59
|
- - "~>"
|
120
60
|
- !ruby/object:Gem::Version
|
121
|
-
version: 1.
|
61
|
+
version: 1.25.1
|
122
62
|
type: :development
|
123
63
|
prerelease: false
|
124
64
|
version_requirements: !ruby/object:Gem::Requirement
|
125
65
|
requirements:
|
126
66
|
- - "~>"
|
127
67
|
- !ruby/object:Gem::Version
|
128
|
-
version: 1.
|
68
|
+
version: 1.25.1
|
129
69
|
- !ruby/object:Gem::Dependency
|
130
70
|
name: minitest
|
131
71
|
requirement: !ruby/object:Gem::Requirement
|
132
72
|
requirements:
|
133
73
|
- - "~>"
|
134
74
|
- !ruby/object:Gem::Version
|
135
|
-
version: '5.
|
75
|
+
version: '5.14'
|
136
76
|
type: :development
|
137
77
|
prerelease: false
|
138
78
|
version_requirements: !ruby/object:Gem::Requirement
|
139
79
|
requirements:
|
140
80
|
- - "~>"
|
141
81
|
- !ruby/object:Gem::Version
|
142
|
-
version: '5.
|
82
|
+
version: '5.14'
|
143
83
|
- !ruby/object:Gem::Dependency
|
144
|
-
name: minitest-
|
84
|
+
name: minitest-focus
|
145
85
|
requirement: !ruby/object:Gem::Requirement
|
146
86
|
requirements:
|
147
87
|
- - "~>"
|
148
88
|
- !ruby/object:Gem::Version
|
149
|
-
version: '1.
|
89
|
+
version: '1.1'
|
150
90
|
type: :development
|
151
91
|
prerelease: false
|
152
92
|
version_requirements: !ruby/object:Gem::Requirement
|
153
93
|
requirements:
|
154
94
|
- - "~>"
|
155
95
|
- !ruby/object:Gem::Version
|
156
|
-
version: '1.
|
96
|
+
version: '1.1'
|
157
97
|
- !ruby/object:Gem::Dependency
|
158
|
-
name: minitest-
|
98
|
+
name: minitest-rg
|
159
99
|
requirement: !ruby/object:Gem::Requirement
|
160
100
|
requirements:
|
161
101
|
- - "~>"
|
162
102
|
- !ruby/object:Gem::Version
|
163
|
-
version: '
|
103
|
+
version: '5.2'
|
164
104
|
type: :development
|
165
105
|
prerelease: false
|
166
106
|
version_requirements: !ruby/object:Gem::Requirement
|
167
107
|
requirements:
|
168
108
|
- - "~>"
|
169
109
|
- !ruby/object:Gem::Version
|
170
|
-
version: '
|
110
|
+
version: '5.2'
|
171
111
|
- !ruby/object:Gem::Dependency
|
172
|
-
name:
|
112
|
+
name: rake
|
173
113
|
requirement: !ruby/object:Gem::Requirement
|
174
114
|
requirements:
|
175
|
-
- - "
|
115
|
+
- - ">="
|
176
116
|
- !ruby/object:Gem::Version
|
177
|
-
version: '
|
117
|
+
version: '12.0'
|
178
118
|
type: :development
|
179
119
|
prerelease: false
|
180
120
|
version_requirements: !ruby/object:Gem::Requirement
|
181
121
|
requirements:
|
182
|
-
- - "
|
122
|
+
- - ">="
|
183
123
|
- !ruby/object:Gem::Version
|
184
|
-
version: '
|
124
|
+
version: '12.0'
|
185
125
|
- !ruby/object:Gem::Dependency
|
186
126
|
name: redcarpet
|
187
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -224,22 +164,9 @@ dependencies:
|
|
224
164
|
- - "~>"
|
225
165
|
- !ruby/object:Gem::Version
|
226
166
|
version: '0.9'
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
requirements:
|
231
|
-
- - "~>"
|
232
|
-
- !ruby/object:Gem::Version
|
233
|
-
version: 0.1.13
|
234
|
-
type: :development
|
235
|
-
prerelease: false
|
236
|
-
version_requirements: !ruby/object:Gem::Requirement
|
237
|
-
requirements:
|
238
|
-
- - "~>"
|
239
|
-
- !ruby/object:Gem::Version
|
240
|
-
version: 0.1.13
|
241
|
-
description: google-cloud-translate is the official library for Cloud Translation
|
242
|
-
API.
|
167
|
+
description: Cloud Translation can dynamically translate text between thousands of
|
168
|
+
language pairs. Translation lets websites and programs programmatically integrate
|
169
|
+
with the translation service.
|
243
170
|
email: googleapis-packages@google.com
|
244
171
|
executables: []
|
245
172
|
extensions: []
|
@@ -247,45 +174,18 @@ extra_rdoc_files: []
|
|
247
174
|
files:
|
248
175
|
- ".yardopts"
|
249
176
|
- AUTHENTICATION.md
|
250
|
-
-
|
251
|
-
-
|
252
|
-
-
|
253
|
-
- LICENSE
|
254
|
-
- OVERVIEW.md
|
255
|
-
- TROUBLESHOOTING.md
|
177
|
+
- LICENSE.md
|
178
|
+
- MIGRATING.md
|
179
|
+
- README.md
|
256
180
|
- lib/google-cloud-translate.rb
|
257
181
|
- lib/google/cloud/translate.rb
|
258
|
-
- lib/google/cloud/translate/
|
259
|
-
- lib/google/cloud/translate/v2/api.rb
|
260
|
-
- lib/google/cloud/translate/v2/credentials.rb
|
261
|
-
- lib/google/cloud/translate/v2/detection.rb
|
262
|
-
- lib/google/cloud/translate/v2/language.rb
|
263
|
-
- lib/google/cloud/translate/v2/service.rb
|
264
|
-
- lib/google/cloud/translate/v2/translation.rb
|
265
|
-
- lib/google/cloud/translate/v3.rb
|
266
|
-
- lib/google/cloud/translate/v3/credentials.rb
|
267
|
-
- lib/google/cloud/translate/v3/doc/google/cloud/translate/v3/translation_service.rb
|
268
|
-
- lib/google/cloud/translate/v3/doc/google/longrunning/operations.rb
|
269
|
-
- lib/google/cloud/translate/v3/doc/google/protobuf/any.rb
|
270
|
-
- lib/google/cloud/translate/v3/doc/google/protobuf/timestamp.rb
|
271
|
-
- lib/google/cloud/translate/v3/doc/google/rpc/status.rb
|
272
|
-
- lib/google/cloud/translate/v3/translation_service_client.rb
|
273
|
-
- lib/google/cloud/translate/v3/translation_service_client_config.json
|
274
|
-
- lib/google/cloud/translate/v3/translation_service_pb.rb
|
275
|
-
- lib/google/cloud/translate/v3/translation_service_services_pb.rb
|
182
|
+
- lib/google/cloud/translate/helpers.rb
|
276
183
|
- lib/google/cloud/translate/version.rb
|
277
|
-
homepage: https://github.com/googleapis/google-cloud-ruby
|
184
|
+
homepage: https://github.com/googleapis/google-cloud-ruby
|
278
185
|
licenses:
|
279
186
|
- Apache-2.0
|
280
187
|
metadata: {}
|
281
|
-
post_install_message:
|
282
|
-
The 2.0 release introduces breaking changes by defaulting to a
|
283
|
-
new generated v3 API client. This gem continues to contain the
|
284
|
-
legacy hand-written v2 client for backward compatibility aside
|
285
|
-
from the default client constructor.
|
286
|
-
|
287
|
-
For more details please visit the 2.0.0 CHANGELOG:
|
288
|
-
https://googleapis.dev/ruby/google-cloud-translate/v2.0.0/file.CHANGELOG.html#2_0_0___2019-10-28
|
188
|
+
post_install_message:
|
289
189
|
rdoc_options: []
|
290
190
|
require_paths:
|
291
191
|
- lib
|
@@ -293,15 +193,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
293
193
|
requirements:
|
294
194
|
- - ">="
|
295
195
|
- !ruby/object:Gem::Version
|
296
|
-
version: '2.
|
196
|
+
version: '2.5'
|
297
197
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
298
198
|
requirements:
|
299
199
|
- - ">="
|
300
200
|
- !ruby/object:Gem::Version
|
301
201
|
version: '0'
|
302
202
|
requirements: []
|
303
|
-
rubygems_version: 3.
|
203
|
+
rubygems_version: 3.2.13
|
304
204
|
signing_key:
|
305
205
|
specification_version: 4
|
306
|
-
summary: API Client library for Cloud Translation API
|
206
|
+
summary: API Client library for the Cloud Translation API
|
307
207
|
test_files: []
|
data/CHANGELOG.md
DELETED
@@ -1,164 +0,0 @@
|
|
1
|
-
# Release History
|
2
|
-
|
3
|
-
### 2.3.0 / 2020-03-28
|
4
|
-
|
5
|
-
#### Features
|
6
|
-
|
7
|
-
* send quota project header in the V2 client
|
8
|
-
|
9
|
-
### 2.2.0 / 2020-03-11
|
10
|
-
|
11
|
-
#### Features
|
12
|
-
|
13
|
-
* Support separate project setting for quota/billing
|
14
|
-
|
15
|
-
### 2.1.2 / 2020-03-02
|
16
|
-
|
17
|
-
#### Bug Fixes
|
18
|
-
|
19
|
-
* support faraday 1.x
|
20
|
-
|
21
|
-
### 2.1.1 / 2020-01-23
|
22
|
-
|
23
|
-
#### Documentation
|
24
|
-
|
25
|
-
* Update copyright year
|
26
|
-
* Update Status documentation
|
27
|
-
|
28
|
-
### 2.1.0 / 2019-11-06
|
29
|
-
|
30
|
-
#### Bug Fixes
|
31
|
-
|
32
|
-
* Update minimum runtime dependencies
|
33
|
-
* Fixes an issue where required dependencies may not be used.
|
34
|
-
|
35
|
-
### 2.0.0 / 2019-10-28
|
36
|
-
|
37
|
-
#### ⚠ BREAKING CHANGES
|
38
|
-
|
39
|
-
* Add Translate V3 client
|
40
|
-
* Update google-cloud-translate to contain a generated v3 client
|
41
|
-
as well as the legacy hand-written v2 client.
|
42
|
-
* The following methods now return an instance of
|
43
|
-
Google::Cloud::Translate::V3::TranslationServiceClient:
|
44
|
-
* Google::Cloud#translate
|
45
|
-
* Google::Cloud.translate
|
46
|
-
* Google::Cloud::Translate.new
|
47
|
-
* To use the legacy v2 client specify the version when creating:
|
48
|
-
* v2_client = Google::Cloud::Translate.new version: :v2
|
49
|
-
|
50
|
-
#### Features
|
51
|
-
|
52
|
-
* Add Translate V3 client
|
53
|
-
* The v3 client includes several new features and updates:
|
54
|
-
* Glossaries - Create a custom dictionary to correctly and
|
55
|
-
consistently translate terms that are customer-specific.
|
56
|
-
* Batch requests - Make an asynchronous request to translate
|
57
|
-
large amounts of text.
|
58
|
-
* AutoML models - Cloud Translation adds support for translating
|
59
|
-
text with custom models that you create using AutoML Translation.
|
60
|
-
* Labels - The Cloud Translation API supports adding user-defined
|
61
|
-
labels (key-value pairs) to requests.
|
62
|
-
* Now requires Ruby 2.4 or later.
|
63
|
-
|
64
|
-
#### Documentation
|
65
|
-
|
66
|
-
* Update the list of GCP environments for automatic authentication
|
67
|
-
|
68
|
-
### 1.4.0 / 2019-10-01
|
69
|
-
|
70
|
-
#### Features
|
71
|
-
|
72
|
-
* Support overriding of service endpoint
|
73
|
-
|
74
|
-
### 1.3.1 / 2019-08-23
|
75
|
-
|
76
|
-
#### Documentation
|
77
|
-
|
78
|
-
* Update documentation
|
79
|
-
|
80
|
-
### 1.3.0 / 2019-02-01
|
81
|
-
|
82
|
-
* Make use of Credentials#project_id
|
83
|
-
* Use Credentials#project_id
|
84
|
-
If a project_id is not provided, use the value on the Credentials object.
|
85
|
-
This value was added in googleauth 0.7.0.
|
86
|
-
* Loosen googleauth dependency
|
87
|
-
Allow for new releases up to 0.10.
|
88
|
-
The googleauth devs have committed to maintaining the current API
|
89
|
-
and will not make backwards compatible changes before 0.10.
|
90
|
-
|
91
|
-
### 1.2.4 / 2018-09-20
|
92
|
-
|
93
|
-
* Update documentation.
|
94
|
-
* Change documentation URL to googleapis GitHub org.
|
95
|
-
* Fix circular require warning.
|
96
|
-
|
97
|
-
### 1.2.3 / 2018-09-12
|
98
|
-
|
99
|
-
* Add missing documentation files to package.
|
100
|
-
|
101
|
-
### 1.2.2 / 2018-09-10
|
102
|
-
|
103
|
-
* Update documentation.
|
104
|
-
|
105
|
-
### 1.2.1 / 2018-08-21
|
106
|
-
|
107
|
-
* Update documentation.
|
108
|
-
|
109
|
-
### 1.2.0 / 2018-02-27
|
110
|
-
|
111
|
-
* Support Shared Configuration.
|
112
|
-
|
113
|
-
### 1.1.0 / 2017-11-14
|
114
|
-
|
115
|
-
* Add `Google::Cloud::Translate::Credentials` class.
|
116
|
-
* Rename constructor arguments to `project_id` and `credentials`.
|
117
|
-
(The previous arguments `project` and `keyfile` are still supported.)
|
118
|
-
* Document `Google::Auth::Credentials` as `credentials` value.
|
119
|
-
* Updated `faraday`, `googleauth` dependencies.
|
120
|
-
|
121
|
-
### 1.0.1 / 2017-07-11
|
122
|
-
|
123
|
-
* Remove mention of discontinued Premium Edition billing from documentation.
|
124
|
-
|
125
|
-
### 1.0.0 / 2017-06-28
|
126
|
-
|
127
|
-
* Release 1.0
|
128
|
-
|
129
|
-
### 0.23.1 / 2017-05-23
|
130
|
-
|
131
|
-
* Fix error handling (adrian-gomez)
|
132
|
-
|
133
|
-
### 0.23.0 / 2017-03-31
|
134
|
-
|
135
|
-
* No changes
|
136
|
-
|
137
|
-
### 0.22.2 / 2016-12-22
|
138
|
-
|
139
|
-
* Change product name to Google Cloud Translation API in docs.
|
140
|
-
|
141
|
-
### 0.22.1 / 2016-11-16
|
142
|
-
|
143
|
-
* Add missing googleauth dependency (frankyn)
|
144
|
-
|
145
|
-
### 0.22.0 / 2016-11-14
|
146
|
-
|
147
|
-
* Support authentication with service accounts
|
148
|
-
* Add `model` parameter to translate method
|
149
|
-
* Add `model` attribute to Translation objects
|
150
|
-
|
151
|
-
### 0.21.0 / 2016-10-20
|
152
|
-
|
153
|
-
* New service constructor Google::Cloud::Translate.new
|
154
|
-
|
155
|
-
### 0.20.1 / 2016-09-02
|
156
|
-
|
157
|
-
* Fix for timeout on uploads.
|
158
|
-
|
159
|
-
### 0.20.0 / 2016-08-26
|
160
|
-
|
161
|
-
This gem contains the Google Cloud Translate service implementation for the `google-cloud` gem. The `google-cloud` gem replaces the old `gcloud` gem. Legacy code can continue to use the `gcloud` gem.
|
162
|
-
|
163
|
-
* Namespace is now `Google::Cloud`
|
164
|
-
* The `google-cloud` gem is now an umbrella package for individual gems
|