google-apis-translate_v3beta1 0.8.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/translate_v3beta1/classes.rb +11 -9
- data/lib/google/apis/translate_v3beta1/gem_version.rb +3 -3
- data/lib/google/apis/translate_v3beta1/representations.rb +1 -0
- data/lib/google/apis/translate_v3beta1/service.rb +4 -6
- data/lib/google/apis/translate_v3beta1.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17e48214fcc17ed84be95dcd6a97fee41c12fc0a5b19086128347caf694012a8
|
4
|
+
data.tar.gz: d840af697649c0f7fe0cf94e7fbf77b5453119ea6b9a98f2f07b550ed9ccf546
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa2dfd96e52ec013c767dc472c7cb8feb0622cfe7724fd7b30fb483633473d89d364ab604b58606f0df3ddf7cd71c676ec1fe47a079ac76c748994afebbf228e
|
7
|
+
data.tar.gz: 7e5b3ed15cf3d8c4d38372be5623e552dd155ceef151b4df73aee76740c64430982a82088cb45b19d58a6f6c506fd1fe16b3914ec937ec2dd65da46734cb6c19
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-translate_v3beta1
|
2
2
|
|
3
|
+
### v0.12.0 (2021-11-01)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211029
|
6
|
+
|
7
|
+
### v0.11.0 (2021-10-21)
|
8
|
+
|
9
|
+
* Unspecified changes
|
10
|
+
|
11
|
+
### v0.10.0 (2021-09-01)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210809
|
14
|
+
|
15
|
+
### v0.9.0 (2021-06-29)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210625
|
18
|
+
* Regenerated using generator version 0.4.0
|
19
|
+
|
3
20
|
### v0.8.0 (2021-06-24)
|
4
21
|
|
5
22
|
* Regenerated using generator version 0.3.0
|
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Translate service in particular.)
|
67
67
|
|
@@ -64,6 +64,11 @@ module Google
|
|
64
64
|
class BatchTranslateDocumentRequest
|
65
65
|
include Google::Apis::Core::Hashable
|
66
66
|
|
67
|
+
# Optional.
|
68
|
+
# Corresponds to the JSON property `formatConversions`
|
69
|
+
# @return [Hash<String,String>]
|
70
|
+
attr_accessor :format_conversions
|
71
|
+
|
67
72
|
# Optional. Glossaries to be applied. It's keyed by target language code.
|
68
73
|
# Corresponds to the JSON property `glossaries`
|
69
74
|
# @return [Hash<String,Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig>]
|
@@ -81,8 +86,7 @@ module Google
|
|
81
86
|
# AutoML Translation model. The value format depends on model type: - AutoML
|
82
87
|
# Translation models: `projects/`project-number-or-id`/locations/`location-id`/
|
83
88
|
# models/`model-id`` - General (built-in) models: `projects/`project-number-or-
|
84
|
-
# id`/locations/`location-id`/models/general/nmt`,
|
85
|
-
# id`/locations/`location-id`/models/general/base` If the map is empty or a
|
89
|
+
# id`/locations/`location-id`/models/general/nmt`, If the map is empty or a
|
86
90
|
# specific model is not requested for a language pair, then default google model
|
87
91
|
# (nmt) is used.
|
88
92
|
# Corresponds to the JSON property `models`
|
@@ -113,6 +117,7 @@ module Google
|
|
113
117
|
|
114
118
|
# Update properties of this object
|
115
119
|
def update!(**args)
|
120
|
+
@format_conversions = args[:format_conversions] if args.key?(:format_conversions)
|
116
121
|
@glossaries = args[:glossaries] if args.key?(:glossaries)
|
117
122
|
@input_configs = args[:input_configs] if args.key?(:input_configs)
|
118
123
|
@models = args[:models] if args.key?(:models)
|
@@ -154,8 +159,7 @@ module Google
|
|
154
159
|
# AutoML Translation model. The value format depends on model type: - AutoML
|
155
160
|
# Translation models: `projects/`project-number-or-id`/locations/`location-id`/
|
156
161
|
# models/`model-id`` - General (built-in) models: `projects/`project-number-or-
|
157
|
-
# id`/locations/`location-id`/models/general/nmt`,
|
158
|
-
# id`/locations/`location-id`/models/general/base` If the map is empty or a
|
162
|
+
# id`/locations/`location-id`/models/general/nmt`, If the map is empty or a
|
159
163
|
# specific model is not requested for a language pair, then default google model
|
160
164
|
# (nmt) is used.
|
161
165
|
# Corresponds to the JSON property `models`
|
@@ -952,8 +956,7 @@ module Google
|
|
952
956
|
# Optional. The `model` type requested for this translation. The format depends
|
953
957
|
# on model type: - AutoML Translation models: `projects/`project-number-or-id`/
|
954
958
|
# locations/`location-id`/models/`model-id`` - General (built-in) models: `
|
955
|
-
# projects/`project-number-or-id`/locations/`location-id`/models/general/nmt`,
|
956
|
-
# projects/`project-number-or-id`/locations/`location-id`/models/general/base`
|
959
|
+
# projects/`project-number-or-id`/locations/`location-id`/models/general/nmt`,
|
957
960
|
# If not provided, the default Google model (NMT) will be used for translation.
|
958
961
|
# Corresponds to the JSON property `model`
|
959
962
|
# @return [String]
|
@@ -1098,11 +1101,10 @@ module Google
|
|
1098
1101
|
# Optional. The `model` type requested for this translation. The format depends
|
1099
1102
|
# on model type: - AutoML Translation models: `projects/`project-number-or-id`/
|
1100
1103
|
# locations/`location-id`/models/`model-id`` - General (built-in) models: `
|
1101
|
-
# projects/`project-number-or-id`/locations/`location-id`/models/general/nmt`,
|
1102
|
-
# projects/`project-number-or-id`/locations/`location-id`/models/general/base`
|
1104
|
+
# projects/`project-number-or-id`/locations/`location-id`/models/general/nmt`,
|
1103
1105
|
# For global (non-regionalized) requests, use `location-id` `global`. For
|
1104
1106
|
# example, `projects/`project-number-or-id`/locations/global/models/general/nmt`.
|
1105
|
-
# If
|
1107
|
+
# If not provided, the default Google model (NMT) will be used
|
1106
1108
|
# Corresponds to the JSON property `model`
|
1107
1109
|
# @return [String]
|
1108
1110
|
attr_accessor :model
|
@@ -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.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211029"
|
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
|
+
hash :format_conversions, as: 'formatConversions'
|
254
255
|
hash :glossaries, as: 'glossaries', class: Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig, decorator: Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig::Representation
|
255
256
|
|
256
257
|
collection :input_configs, as: 'inputConfigs', class: Google::Apis::TranslateV3beta1::BatchDocumentInputConfig, decorator: Google::Apis::TranslateV3beta1::BatchDocumentInputConfig::Representation
|
@@ -104,10 +104,9 @@ module Google
|
|
104
104
|
# Optional. Get supported languages of this model. The format depends on model
|
105
105
|
# type: - AutoML Translation models: `projects/`project-number-or-id`/locations/`
|
106
106
|
# location-id`/models/`model-id`` - General (built-in) models: `projects/`
|
107
|
-
# project-number-or-id`/locations/`location-id`/models/general/nmt`,
|
108
|
-
# project-number-or-id`/locations/`location-id`/models/general/base` Returns
|
107
|
+
# project-number-or-id`/locations/`location-id`/models/general/nmt`, Returns
|
109
108
|
# languages supported by the specified model. If missing, we get supported
|
110
|
-
# languages of Google general
|
109
|
+
# languages of Google general NMT model.
|
111
110
|
# @param [String] fields
|
112
111
|
# Selector specifying which fields to include in a partial response.
|
113
112
|
# @param [String] quota_user
|
@@ -345,10 +344,9 @@ module Google
|
|
345
344
|
# Optional. Get supported languages of this model. The format depends on model
|
346
345
|
# type: - AutoML Translation models: `projects/`project-number-or-id`/locations/`
|
347
346
|
# location-id`/models/`model-id`` - General (built-in) models: `projects/`
|
348
|
-
# project-number-or-id`/locations/`location-id`/models/general/nmt`,
|
349
|
-
# project-number-or-id`/locations/`location-id`/models/general/base` Returns
|
347
|
+
# project-number-or-id`/locations/`location-id`/models/general/nmt`, Returns
|
350
348
|
# languages supported by the specified model. If missing, we get supported
|
351
|
-
# languages of Google general
|
349
|
+
# languages of Google general NMT model.
|
352
350
|
# @param [String] fields
|
353
351
|
# Selector specifying which fields to include in a partial response.
|
354
352
|
# @param [String] quota_user
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# This is NOT the gem version.
|
30
30
|
VERSION = 'V3beta1'
|
31
31
|
|
32
|
-
# See, edit, configure, and delete your Google Cloud
|
32
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
34
|
|
35
35
|
# Translate text from one language to another using Google Translate
|
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.12.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: 2021-
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.4'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-translate_v3beta1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.12.0
|
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: []
|
65
65
|
require_paths:
|