google-apis-translate_v3beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module TranslateV3beta1
18
+ # Version of the google-apis-translate_v3beta1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20201204"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,439 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module TranslateV3beta1
24
+
25
+ class BatchTranslateTextRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class CancelOperationRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class DetectLanguageRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class DetectLanguageResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class DetectedLanguage
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Empty
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class GcsDestination
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GcsSource
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Glossary
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GlossaryInputConfig
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class InputConfig
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class LanguageCodePair
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class LanguageCodesSet
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ListGlossariesResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListLocationsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListOperationsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class Location
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class Operation
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class OutputConfig
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Status
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class SupportedLanguage
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class SupportedLanguages
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class TranslateTextGlossaryConfig
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class TranslateTextRequest
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class TranslateTextResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class Translation
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class WaitOperationRequest
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class BatchTranslateTextRequest
188
+ # @private
189
+ class Representation < Google::Apis::Core::JsonRepresentation
190
+ hash :glossaries, as: 'glossaries', class: Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig, decorator: Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig::Representation
191
+
192
+ collection :input_configs, as: 'inputConfigs', class: Google::Apis::TranslateV3beta1::InputConfig, decorator: Google::Apis::TranslateV3beta1::InputConfig::Representation
193
+
194
+ hash :labels, as: 'labels'
195
+ hash :models, as: 'models'
196
+ property :output_config, as: 'outputConfig', class: Google::Apis::TranslateV3beta1::OutputConfig, decorator: Google::Apis::TranslateV3beta1::OutputConfig::Representation
197
+
198
+ property :source_language_code, as: 'sourceLanguageCode'
199
+ collection :target_language_codes, as: 'targetLanguageCodes'
200
+ end
201
+ end
202
+
203
+ class CancelOperationRequest
204
+ # @private
205
+ class Representation < Google::Apis::Core::JsonRepresentation
206
+ end
207
+ end
208
+
209
+ class DetectLanguageRequest
210
+ # @private
211
+ class Representation < Google::Apis::Core::JsonRepresentation
212
+ property :content, as: 'content'
213
+ hash :labels, as: 'labels'
214
+ property :mime_type, as: 'mimeType'
215
+ property :model, as: 'model'
216
+ end
217
+ end
218
+
219
+ class DetectLanguageResponse
220
+ # @private
221
+ class Representation < Google::Apis::Core::JsonRepresentation
222
+ collection :languages, as: 'languages', class: Google::Apis::TranslateV3beta1::DetectedLanguage, decorator: Google::Apis::TranslateV3beta1::DetectedLanguage::Representation
223
+
224
+ end
225
+ end
226
+
227
+ class DetectedLanguage
228
+ # @private
229
+ class Representation < Google::Apis::Core::JsonRepresentation
230
+ property :confidence, as: 'confidence'
231
+ property :language_code, as: 'languageCode'
232
+ end
233
+ end
234
+
235
+ class Empty
236
+ # @private
237
+ class Representation < Google::Apis::Core::JsonRepresentation
238
+ end
239
+ end
240
+
241
+ class GcsDestination
242
+ # @private
243
+ class Representation < Google::Apis::Core::JsonRepresentation
244
+ property :output_uri_prefix, as: 'outputUriPrefix'
245
+ end
246
+ end
247
+
248
+ class GcsSource
249
+ # @private
250
+ class Representation < Google::Apis::Core::JsonRepresentation
251
+ property :input_uri, as: 'inputUri'
252
+ end
253
+ end
254
+
255
+ class Glossary
256
+ # @private
257
+ class Representation < Google::Apis::Core::JsonRepresentation
258
+ property :end_time, as: 'endTime'
259
+ property :entry_count, as: 'entryCount'
260
+ property :input_config, as: 'inputConfig', class: Google::Apis::TranslateV3beta1::GlossaryInputConfig, decorator: Google::Apis::TranslateV3beta1::GlossaryInputConfig::Representation
261
+
262
+ property :language_codes_set, as: 'languageCodesSet', class: Google::Apis::TranslateV3beta1::LanguageCodesSet, decorator: Google::Apis::TranslateV3beta1::LanguageCodesSet::Representation
263
+
264
+ property :language_pair, as: 'languagePair', class: Google::Apis::TranslateV3beta1::LanguageCodePair, decorator: Google::Apis::TranslateV3beta1::LanguageCodePair::Representation
265
+
266
+ property :name, as: 'name'
267
+ property :submit_time, as: 'submitTime'
268
+ end
269
+ end
270
+
271
+ class GlossaryInputConfig
272
+ # @private
273
+ class Representation < Google::Apis::Core::JsonRepresentation
274
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::TranslateV3beta1::GcsSource, decorator: Google::Apis::TranslateV3beta1::GcsSource::Representation
275
+
276
+ end
277
+ end
278
+
279
+ class InputConfig
280
+ # @private
281
+ class Representation < Google::Apis::Core::JsonRepresentation
282
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::TranslateV3beta1::GcsSource, decorator: Google::Apis::TranslateV3beta1::GcsSource::Representation
283
+
284
+ property :mime_type, as: 'mimeType'
285
+ end
286
+ end
287
+
288
+ class LanguageCodePair
289
+ # @private
290
+ class Representation < Google::Apis::Core::JsonRepresentation
291
+ property :source_language_code, as: 'sourceLanguageCode'
292
+ property :target_language_code, as: 'targetLanguageCode'
293
+ end
294
+ end
295
+
296
+ class LanguageCodesSet
297
+ # @private
298
+ class Representation < Google::Apis::Core::JsonRepresentation
299
+ collection :language_codes, as: 'languageCodes'
300
+ end
301
+ end
302
+
303
+ class ListGlossariesResponse
304
+ # @private
305
+ class Representation < Google::Apis::Core::JsonRepresentation
306
+ collection :glossaries, as: 'glossaries', class: Google::Apis::TranslateV3beta1::Glossary, decorator: Google::Apis::TranslateV3beta1::Glossary::Representation
307
+
308
+ property :next_page_token, as: 'nextPageToken'
309
+ end
310
+ end
311
+
312
+ class ListLocationsResponse
313
+ # @private
314
+ class Representation < Google::Apis::Core::JsonRepresentation
315
+ collection :locations, as: 'locations', class: Google::Apis::TranslateV3beta1::Location, decorator: Google::Apis::TranslateV3beta1::Location::Representation
316
+
317
+ property :next_page_token, as: 'nextPageToken'
318
+ end
319
+ end
320
+
321
+ class ListOperationsResponse
322
+ # @private
323
+ class Representation < Google::Apis::Core::JsonRepresentation
324
+ property :next_page_token, as: 'nextPageToken'
325
+ collection :operations, as: 'operations', class: Google::Apis::TranslateV3beta1::Operation, decorator: Google::Apis::TranslateV3beta1::Operation::Representation
326
+
327
+ end
328
+ end
329
+
330
+ class Location
331
+ # @private
332
+ class Representation < Google::Apis::Core::JsonRepresentation
333
+ property :display_name, as: 'displayName'
334
+ hash :labels, as: 'labels'
335
+ property :location_id, as: 'locationId'
336
+ hash :metadata, as: 'metadata'
337
+ property :name, as: 'name'
338
+ end
339
+ end
340
+
341
+ class Operation
342
+ # @private
343
+ class Representation < Google::Apis::Core::JsonRepresentation
344
+ property :done, as: 'done'
345
+ property :error, as: 'error', class: Google::Apis::TranslateV3beta1::Status, decorator: Google::Apis::TranslateV3beta1::Status::Representation
346
+
347
+ hash :metadata, as: 'metadata'
348
+ property :name, as: 'name'
349
+ hash :response, as: 'response'
350
+ end
351
+ end
352
+
353
+ class OutputConfig
354
+ # @private
355
+ class Representation < Google::Apis::Core::JsonRepresentation
356
+ property :gcs_destination, as: 'gcsDestination', class: Google::Apis::TranslateV3beta1::GcsDestination, decorator: Google::Apis::TranslateV3beta1::GcsDestination::Representation
357
+
358
+ end
359
+ end
360
+
361
+ class Status
362
+ # @private
363
+ class Representation < Google::Apis::Core::JsonRepresentation
364
+ property :code, as: 'code'
365
+ collection :details, as: 'details'
366
+ property :message, as: 'message'
367
+ end
368
+ end
369
+
370
+ class SupportedLanguage
371
+ # @private
372
+ class Representation < Google::Apis::Core::JsonRepresentation
373
+ property :display_name, as: 'displayName'
374
+ property :language_code, as: 'languageCode'
375
+ property :support_source, as: 'supportSource'
376
+ property :support_target, as: 'supportTarget'
377
+ end
378
+ end
379
+
380
+ class SupportedLanguages
381
+ # @private
382
+ class Representation < Google::Apis::Core::JsonRepresentation
383
+ collection :languages, as: 'languages', class: Google::Apis::TranslateV3beta1::SupportedLanguage, decorator: Google::Apis::TranslateV3beta1::SupportedLanguage::Representation
384
+
385
+ end
386
+ end
387
+
388
+ class TranslateTextGlossaryConfig
389
+ # @private
390
+ class Representation < Google::Apis::Core::JsonRepresentation
391
+ property :glossary, as: 'glossary'
392
+ property :ignore_case, as: 'ignoreCase'
393
+ end
394
+ end
395
+
396
+ class TranslateTextRequest
397
+ # @private
398
+ class Representation < Google::Apis::Core::JsonRepresentation
399
+ collection :contents, as: 'contents'
400
+ property :glossary_config, as: 'glossaryConfig', class: Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig, decorator: Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig::Representation
401
+
402
+ hash :labels, as: 'labels'
403
+ property :mime_type, as: 'mimeType'
404
+ property :model, as: 'model'
405
+ property :source_language_code, as: 'sourceLanguageCode'
406
+ property :target_language_code, as: 'targetLanguageCode'
407
+ end
408
+ end
409
+
410
+ class TranslateTextResponse
411
+ # @private
412
+ class Representation < Google::Apis::Core::JsonRepresentation
413
+ collection :glossary_translations, as: 'glossaryTranslations', class: Google::Apis::TranslateV3beta1::Translation, decorator: Google::Apis::TranslateV3beta1::Translation::Representation
414
+
415
+ collection :translations, as: 'translations', class: Google::Apis::TranslateV3beta1::Translation, decorator: Google::Apis::TranslateV3beta1::Translation::Representation
416
+
417
+ end
418
+ end
419
+
420
+ class Translation
421
+ # @private
422
+ class Representation < Google::Apis::Core::JsonRepresentation
423
+ property :detected_language_code, as: 'detectedLanguageCode'
424
+ property :glossary_config, as: 'glossaryConfig', class: Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig, decorator: Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig::Representation
425
+
426
+ property :model, as: 'model'
427
+ property :translated_text, as: 'translatedText'
428
+ end
429
+ end
430
+
431
+ class WaitOperationRequest
432
+ # @private
433
+ class Representation < Google::Apis::Core::JsonRepresentation
434
+ property :timeout, as: 'timeout'
435
+ end
436
+ end
437
+ end
438
+ end
439
+ end