google-apis-translate_v3 0.21.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,6 +52,24 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class Dataset
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class DatasetInputConfig
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class DatasetOutputConfig
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
55
73
  class DetectLanguageRequest
56
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
75
 
@@ -94,12 +112,36 @@ module Google
94
112
  include Google::Apis::Core::JsonObjectSupport
95
113
  end
96
114
 
115
+ class Example
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ExportDataRequest
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
97
127
  class GcsDestination
98
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
129
 
100
130
  include Google::Apis::Core::JsonObjectSupport
101
131
  end
102
132
 
133
+ class GcsInputSource
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class GcsOutputDestination
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
103
145
  class GcsSource
104
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
147
 
@@ -142,12 +184,24 @@ module Google
142
184
  include Google::Apis::Core::JsonObjectSupport
143
185
  end
144
186
 
187
+ class ImportDataRequest
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
145
193
  class InputConfig
146
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
195
 
148
196
  include Google::Apis::Core::JsonObjectSupport
149
197
  end
150
198
 
199
+ class InputFile
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
151
205
  class LanguageCodePair
152
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
207
 
@@ -160,6 +214,18 @@ module Google
160
214
  include Google::Apis::Core::JsonObjectSupport
161
215
  end
162
216
 
217
+ class ListDatasetsResponse
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class ListExamplesResponse
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
163
229
  class ListGlossariesResponse
164
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
231
 
@@ -178,6 +244,12 @@ module Google
178
244
  include Google::Apis::Core::JsonObjectSupport
179
245
  end
180
246
 
247
+ class ListModelsResponse
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
181
253
  class ListOperationsResponse
182
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
255
 
@@ -190,6 +262,12 @@ module Google
190
262
  include Google::Apis::Core::JsonObjectSupport
191
263
  end
192
264
 
265
+ class Model
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
193
271
  class Operation
194
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
273
 
@@ -281,6 +359,7 @@ module Google
281
359
  class BatchTranslateDocumentRequest
282
360
  # @private
283
361
  class Representation < Google::Apis::Core::JsonRepresentation
362
+ property :customized_attribution, as: 'customizedAttribution'
284
363
  hash :format_conversions, as: 'formatConversions'
285
364
  hash :glossaries, as: 'glossaries', class: Google::Apis::TranslateV3::TranslateTextGlossaryConfig, decorator: Google::Apis::TranslateV3::TranslateTextGlossaryConfig::Representation
286
365
 
@@ -316,6 +395,38 @@ module Google
316
395
  end
317
396
  end
318
397
 
398
+ class Dataset
399
+ # @private
400
+ class Representation < Google::Apis::Core::JsonRepresentation
401
+ property :create_time, as: 'createTime'
402
+ property :display_name, as: 'displayName'
403
+ property :example_count, as: 'exampleCount'
404
+ property :name, as: 'name'
405
+ property :source_language_code, as: 'sourceLanguageCode'
406
+ property :target_language_code, as: 'targetLanguageCode'
407
+ property :test_example_count, as: 'testExampleCount'
408
+ property :train_example_count, as: 'trainExampleCount'
409
+ property :update_time, as: 'updateTime'
410
+ property :validate_example_count, as: 'validateExampleCount'
411
+ end
412
+ end
413
+
414
+ class DatasetInputConfig
415
+ # @private
416
+ class Representation < Google::Apis::Core::JsonRepresentation
417
+ collection :input_files, as: 'inputFiles', class: Google::Apis::TranslateV3::InputFile, decorator: Google::Apis::TranslateV3::InputFile::Representation
418
+
419
+ end
420
+ end
421
+
422
+ class DatasetOutputConfig
423
+ # @private
424
+ class Representation < Google::Apis::Core::JsonRepresentation
425
+ property :gcs_destination, as: 'gcsDestination', class: Google::Apis::TranslateV3::GcsOutputDestination, decorator: Google::Apis::TranslateV3::GcsOutputDestination::Representation
426
+
427
+ end
428
+ end
429
+
319
430
  class DetectLanguageRequest
320
431
  # @private
321
432
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -376,6 +487,24 @@ module Google
376
487
  end
377
488
  end
378
489
 
490
+ class Example
491
+ # @private
492
+ class Representation < Google::Apis::Core::JsonRepresentation
493
+ property :name, as: 'name'
494
+ property :source_text, as: 'sourceText'
495
+ property :target_text, as: 'targetText'
496
+ property :usage, as: 'usage'
497
+ end
498
+ end
499
+
500
+ class ExportDataRequest
501
+ # @private
502
+ class Representation < Google::Apis::Core::JsonRepresentation
503
+ property :output_config, as: 'outputConfig', class: Google::Apis::TranslateV3::DatasetOutputConfig, decorator: Google::Apis::TranslateV3::DatasetOutputConfig::Representation
504
+
505
+ end
506
+ end
507
+
379
508
  class GcsDestination
380
509
  # @private
381
510
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -383,6 +512,20 @@ module Google
383
512
  end
384
513
  end
385
514
 
515
+ class GcsInputSource
516
+ # @private
517
+ class Representation < Google::Apis::Core::JsonRepresentation
518
+ property :input_uri, as: 'inputUri'
519
+ end
520
+ end
521
+
522
+ class GcsOutputDestination
523
+ # @private
524
+ class Representation < Google::Apis::Core::JsonRepresentation
525
+ property :output_uri_prefix, as: 'outputUriPrefix'
526
+ end
527
+ end
528
+
386
529
  class GcsSource
387
530
  # @private
388
531
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -453,6 +596,14 @@ module Google
453
596
  end
454
597
  end
455
598
 
599
+ class ImportDataRequest
600
+ # @private
601
+ class Representation < Google::Apis::Core::JsonRepresentation
602
+ property :input_config, as: 'inputConfig', class: Google::Apis::TranslateV3::DatasetInputConfig, decorator: Google::Apis::TranslateV3::DatasetInputConfig::Representation
603
+
604
+ end
605
+ end
606
+
456
607
  class InputConfig
457
608
  # @private
458
609
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -462,6 +613,15 @@ module Google
462
613
  end
463
614
  end
464
615
 
616
+ class InputFile
617
+ # @private
618
+ class Representation < Google::Apis::Core::JsonRepresentation
619
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::TranslateV3::GcsInputSource, decorator: Google::Apis::TranslateV3::GcsInputSource::Representation
620
+
621
+ property :usage, as: 'usage'
622
+ end
623
+ end
624
+
465
625
  class LanguageCodePair
466
626
  # @private
467
627
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -477,6 +637,24 @@ module Google
477
637
  end
478
638
  end
479
639
 
640
+ class ListDatasetsResponse
641
+ # @private
642
+ class Representation < Google::Apis::Core::JsonRepresentation
643
+ collection :datasets, as: 'datasets', class: Google::Apis::TranslateV3::Dataset, decorator: Google::Apis::TranslateV3::Dataset::Representation
644
+
645
+ property :next_page_token, as: 'nextPageToken'
646
+ end
647
+ end
648
+
649
+ class ListExamplesResponse
650
+ # @private
651
+ class Representation < Google::Apis::Core::JsonRepresentation
652
+ collection :examples, as: 'examples', class: Google::Apis::TranslateV3::Example, decorator: Google::Apis::TranslateV3::Example::Representation
653
+
654
+ property :next_page_token, as: 'nextPageToken'
655
+ end
656
+ end
657
+
480
658
  class ListGlossariesResponse
481
659
  # @private
482
660
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -504,6 +682,15 @@ module Google
504
682
  end
505
683
  end
506
684
 
685
+ class ListModelsResponse
686
+ # @private
687
+ class Representation < Google::Apis::Core::JsonRepresentation
688
+ collection :models, as: 'models', class: Google::Apis::TranslateV3::Model, decorator: Google::Apis::TranslateV3::Model::Representation
689
+
690
+ property :next_page_token, as: 'nextPageToken'
691
+ end
692
+ end
693
+
507
694
  class ListOperationsResponse
508
695
  # @private
509
696
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -524,6 +711,23 @@ module Google
524
711
  end
525
712
  end
526
713
 
714
+ class Model
715
+ # @private
716
+ class Representation < Google::Apis::Core::JsonRepresentation
717
+ property :create_time, as: 'createTime'
718
+ property :dataset, as: 'dataset'
719
+ property :deploy_time, as: 'deployTime'
720
+ property :display_name, as: 'displayName'
721
+ property :name, as: 'name'
722
+ property :source_language_code, as: 'sourceLanguageCode'
723
+ property :target_language_code, as: 'targetLanguageCode'
724
+ property :test_example_count, as: 'testExampleCount'
725
+ property :train_example_count, as: 'trainExampleCount'
726
+ property :update_time, as: 'updateTime'
727
+ property :validate_example_count, as: 'validateExampleCount'
728
+ end
729
+ end
730
+
527
731
  class Operation
528
732
  # @private
529
733
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -579,6 +783,7 @@ module Google
579
783
 
580
784
  property :document_output_config, as: 'documentOutputConfig', class: Google::Apis::TranslateV3::DocumentOutputConfig, decorator: Google::Apis::TranslateV3::DocumentOutputConfig::Representation
581
785
 
786
+ property :enable_shadow_removal_native_pdf, as: 'enableShadowRemovalNativePdf'
582
787
  property :glossary_config, as: 'glossaryConfig', class: Google::Apis::TranslateV3::TranslateTextGlossaryConfig, decorator: Google::Apis::TranslateV3::TranslateTextGlossaryConfig::Representation
583
788
 
584
789
  property :is_translate_native_pdf_only, as: 'isTranslateNativePdfOnly'