google-apis-translate_v3beta1 0.21.0 → 0.23.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c4ab7305c19a7e65e1927436a32784c73e5d0dede983ea6eeb9b52db768ed3f
|
4
|
+
data.tar.gz: 3c8c473a0ea50adf716c4e3d1ba052e7b36a85ef183af92ee20bdc6ea6b75fcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d530a07bdd898fbda3d704b561d3f302d3fa51499c4e0e1a9732fd4debcb5046da2574dabfcdf5f492993d4167b4872481a7e7bd1c6ea591be9bb61a2cb3ca2d
|
7
|
+
data.tar.gz: cc13993e2c2eb47a6dace4811289e01d225b58f2409cbacd94f80e94e98c281a084da2ae20574e51e7e959073cbc6ee31c7b0a30acdf6aff8f9e4e7eda639ce2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-translate_v3beta1
|
2
2
|
|
3
|
+
### v0.23.0 (2023-01-15)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230106
|
6
|
+
* Regenerated using generator version 0.11.1
|
7
|
+
|
8
|
+
### v0.22.0 (2022-10-27)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20221021
|
11
|
+
|
3
12
|
### v0.21.0 (2022-10-19)
|
4
13
|
|
5
14
|
* Regenerated using generator version 0.11.0
|
@@ -64,6 +64,14 @@ module Google
|
|
64
64
|
class BatchTranslateDocumentRequest
|
65
65
|
include Google::Apis::Core::Hashable
|
66
66
|
|
67
|
+
# Optional. This flag is to support user customized attribution. If not provided,
|
68
|
+
# the default is `Machine Translated by Google`. Customized attribution should
|
69
|
+
# follow rules in https://cloud.google.com/translate/attribution#
|
70
|
+
# attribution_and_logos
|
71
|
+
# Corresponds to the JSON property `customizedAttribution`
|
72
|
+
# @return [String]
|
73
|
+
attr_accessor :customized_attribution
|
74
|
+
|
67
75
|
# Optional.
|
68
76
|
# Corresponds to the JSON property `formatConversions`
|
69
77
|
# @return [Hash<String,String>]
|
@@ -117,6 +125,7 @@ module Google
|
|
117
125
|
|
118
126
|
# Update properties of this object
|
119
127
|
def update!(**args)
|
128
|
+
@customized_attribution = args[:customized_attribution] if args.key?(:customized_attribution)
|
120
129
|
@format_conversions = args[:format_conversions] if args.key?(:format_conversions)
|
121
130
|
@glossaries = args[:glossaries] if args.key?(:glossaries)
|
122
131
|
@input_configs = args[:input_configs] if args.key?(:input_configs)
|
@@ -944,12 +953,27 @@ module Google
|
|
944
953
|
# @return [Google::Apis::TranslateV3beta1::DocumentOutputConfig]
|
945
954
|
attr_accessor :document_output_config
|
946
955
|
|
956
|
+
# Optional. If true, use the text removal server to remove the shadow text on
|
957
|
+
# background image for native pdf translation.
|
958
|
+
# Corresponds to the JSON property `enableShadowRemovalNativePdf`
|
959
|
+
# @return [Boolean]
|
960
|
+
attr_accessor :enable_shadow_removal_native_pdf
|
961
|
+
alias_method :enable_shadow_removal_native_pdf?, :enable_shadow_removal_native_pdf
|
962
|
+
|
947
963
|
# Configures which glossary should be used for a specific target language, and
|
948
964
|
# defines options for applying that glossary.
|
949
965
|
# Corresponds to the JSON property `glossaryConfig`
|
950
966
|
# @return [Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig]
|
951
967
|
attr_accessor :glossary_config
|
952
968
|
|
969
|
+
# Optional. is_translate_native_pdf_only field for external customers. If true,
|
970
|
+
# the page limit of online native pdf translation is 300 and only native pdf
|
971
|
+
# pages will be translated.
|
972
|
+
# Corresponds to the JSON property `isTranslateNativePdfOnly`
|
973
|
+
# @return [Boolean]
|
974
|
+
attr_accessor :is_translate_native_pdf_only
|
975
|
+
alias_method :is_translate_native_pdf_only?, :is_translate_native_pdf_only
|
976
|
+
|
953
977
|
# Optional. The labels with user-defined metadata for the request. Label keys
|
954
978
|
# and values can be no longer than 63 characters (Unicode codepoints), can only
|
955
979
|
# contain lowercase letters, numeric characters, underscores and dashes.
|
@@ -994,7 +1018,9 @@ module Google
|
|
994
1018
|
@customized_attribution = args[:customized_attribution] if args.key?(:customized_attribution)
|
995
1019
|
@document_input_config = args[:document_input_config] if args.key?(:document_input_config)
|
996
1020
|
@document_output_config = args[:document_output_config] if args.key?(:document_output_config)
|
1021
|
+
@enable_shadow_removal_native_pdf = args[:enable_shadow_removal_native_pdf] if args.key?(:enable_shadow_removal_native_pdf)
|
997
1022
|
@glossary_config = args[:glossary_config] if args.key?(:glossary_config)
|
1023
|
+
@is_translate_native_pdf_only = args[:is_translate_native_pdf_only] if args.key?(:is_translate_native_pdf_only)
|
998
1024
|
@labels = args[:labels] if args.key?(:labels)
|
999
1025
|
@model = args[:model] if args.key?(:model)
|
1000
1026
|
@source_language_code = args[:source_language_code] if args.key?(:source_language_code)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module TranslateV3beta1
|
18
18
|
# Version of the google-apis-translate_v3beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.23.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.11.
|
22
|
+
GENERATOR_VERSION = "0.11.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230106"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -251,6 +251,7 @@ module Google
|
|
251
251
|
class BatchTranslateDocumentRequest
|
252
252
|
# @private
|
253
253
|
class Representation < Google::Apis::Core::JsonRepresentation
|
254
|
+
property :customized_attribution, as: 'customizedAttribution'
|
254
255
|
hash :format_conversions, as: 'formatConversions'
|
255
256
|
hash :glossaries, as: 'glossaries', class: Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig, decorator: Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig::Representation
|
256
257
|
|
@@ -501,8 +502,10 @@ module Google
|
|
501
502
|
|
502
503
|
property :document_output_config, as: 'documentOutputConfig', class: Google::Apis::TranslateV3beta1::DocumentOutputConfig, decorator: Google::Apis::TranslateV3beta1::DocumentOutputConfig::Representation
|
503
504
|
|
505
|
+
property :enable_shadow_removal_native_pdf, as: 'enableShadowRemovalNativePdf'
|
504
506
|
property :glossary_config, as: 'glossaryConfig', class: Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig, decorator: Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig::Representation
|
505
507
|
|
508
|
+
property :is_translate_native_pdf_only, as: 'isTranslateNativePdfOnly'
|
506
509
|
hash :labels, as: 'labels'
|
507
510
|
property :model, as: 'model'
|
508
511
|
property :source_language_code, as: 'sourceLanguageCode'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-translate_v3beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.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: 2023-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-translate_v3beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-translate_v3beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-translate_v3beta1/v0.23.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-translate_v3beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.4.2
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Translation API V3beta1
|