google-cloud-translate 2.3.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +5 -8
  3. data/AUTHENTICATION.md +67 -81
  4. data/LICENSE.md +203 -0
  5. data/MIGRATING.md +302 -0
  6. data/README.md +80 -0
  7. data/lib/google-cloud-translate.rb +5 -146
  8. data/lib/google/cloud/translate.rb +81 -178
  9. data/lib/google/cloud/translate/helpers.rb +100 -0
  10. data/lib/google/cloud/translate/version.rb +6 -2
  11. metadata +35 -135
  12. data/CHANGELOG.md +0 -164
  13. data/CODE_OF_CONDUCT.md +0 -40
  14. data/CONTRIBUTING.md +0 -188
  15. data/LICENSE +0 -201
  16. data/OVERVIEW.md +0 -390
  17. data/TROUBLESHOOTING.md +0 -37
  18. data/lib/google/cloud/translate/v2.rb +0 -169
  19. data/lib/google/cloud/translate/v2/api.rb +0 -255
  20. data/lib/google/cloud/translate/v2/credentials.rb +0 -58
  21. data/lib/google/cloud/translate/v2/detection.rb +0 -132
  22. data/lib/google/cloud/translate/v2/language.rb +0 -68
  23. data/lib/google/cloud/translate/v2/service.rb +0 -209
  24. data/lib/google/cloud/translate/v2/translation.rb +0 -120
  25. data/lib/google/cloud/translate/v3.rb +0 -144
  26. data/lib/google/cloud/translate/v3/credentials.rb +0 -42
  27. data/lib/google/cloud/translate/v3/doc/google/cloud/translate/v3/translation_service.rb +0 -663
  28. data/lib/google/cloud/translate/v3/doc/google/longrunning/operations.rb +0 -51
  29. data/lib/google/cloud/translate/v3/doc/google/protobuf/any.rb +0 -131
  30. data/lib/google/cloud/translate/v3/doc/google/protobuf/timestamp.rb +0 -113
  31. data/lib/google/cloud/translate/v3/doc/google/rpc/status.rb +0 -39
  32. data/lib/google/cloud/translate/v3/translation_service_client.rb +0 -930
  33. data/lib/google/cloud/translate/v3/translation_service_client_config.json +0 -66
  34. data/lib/google/cloud/translate/v3/translation_service_pb.rb +0 -226
  35. data/lib/google/cloud/translate/v3/translation_service_services_pb.rb +0 -68
@@ -1,4 +1,6 @@
1
- # Copyright 2019 Google LLC
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,203 +14,104 @@
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
+
19
+ # Require this file early so that the version constant gets defined before
20
+ # requiring "google/cloud". This is because google-cloud-core will load the
21
+ # entrypoint (gem name) file, which in turn re-requires this file (hence
22
+ # causing a require cycle) unless the version constant is already defined.
23
+ require "google/cloud/translate/version"
15
24
 
16
- require "google-cloud-translate"
25
+ require "googleauth"
26
+ gem "google-cloud-core"
27
+ require "google/cloud" unless defined? ::Google::Cloud.new
17
28
  require "google/cloud/config"
18
- require "google/gax"
19
- require "pathname"
29
+
30
+ # Set the default configuration
31
+ ::Google::Cloud.configure.add_config! :translate do |config|
32
+ config.add_field! :endpoint, "translate.googleapis.com", match: ::String
33
+ config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
34
+ config.add_field! :scope, nil, match: [::Array, ::String]
35
+ config.add_field! :lib_name, nil, match: ::String
36
+ config.add_field! :lib_version, nil, match: ::String
37
+ config.add_field! :interceptors, nil, match: ::Array
38
+ config.add_field! :timeout, nil, match: ::Numeric
39
+ config.add_field! :metadata, nil, match: ::Hash
40
+ config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
41
+ config.add_field! :quota_project, nil, match: ::String
42
+ config.add_field! :key, nil, match: ::String
43
+ config.add_field! :retries, nil, match: ::Integer
44
+ end
20
45
 
21
46
  module Google
22
47
  module Cloud
23
- ##
24
- # # Google Cloud Translation API
25
- #
26
- # [Google Cloud Translation API](https://cloud.google.com/translation/)
27
- # provides a simple, programmatic interface for translating an arbitrary
28
- # string into any supported language. It is highly responsive, so websites
29
- # and applications can integrate with Translation API for fast, dynamic
30
- # translation of source text. Language detection is also available in cases
31
- # where the source language is unknown.
32
- #
33
- # Translation API supports more than one hundred different languages, from
34
- # Afrikaans to Zulu. Used in combination, this enables translation between
35
- # thousands of language pairs. Also, you can send in HTML and receive HTML
36
- # with translated text back. You don't need to extract your source text or
37
- # reassemble the translated content.
38
- #
39
- # The google-cloud-translate 2.0 gem contains a generated v3 client and a legacy hand-written v2 client.
40
- # To use the legacy v2 client, call {Google::Cloud::Translate.new} and specify `version: :v2`.
41
- # See [Migrating to Translation v3](https://cloud.google.com/translate/docs/migrate-to-v3) for details regarding
42
- # differences between v2 and v3.
43
- #
44
- # See {file:OVERVIEW.md Translation Overview}.
45
- #
46
48
  module Translate
47
- FILE_DIR = File.realdirpath Pathname.new(__FILE__).join("..").join("translate")
48
-
49
- AVAILABLE_VERSIONS = Dir["#{FILE_DIR}/*"]
50
- .select { |file| File.directory? file }
51
- .select { |dir| Google::Gax::VERSION_MATCHER.match File.basename(dir) }
52
- .select { |dir| File.exist? dir + ".rb" }
53
- .map { |dir| File.basename dir }
54
-
55
49
  ##
56
- # Provides natural language translation operations.
57
- #
58
- # @overload new(version:, credentials:, scopes:, client_config:, timeout:)
59
- # @param version [Symbol, String]
60
- # The major version of the service to be used. By default `:v3` is used.
61
- # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel,
62
- # GRPC::Core::ChannelCredentials, Proc]
63
- # Provides the means for authenticating requests made by the client. This parameter can be many types.
64
- # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for authenticating requests
65
- # made by this client.
66
- # A `String` will be treated as the path to the keyfile to be used for the construction of credentials for
67
- # this client.
68
- # A `Hash` will be treated as the contents of a keyfile to be used for the construction of credentials for
69
- # this client.
70
- # A `GRPC::Core::Channel` will be used to make calls through.
71
- # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials should already
72
- # be composed with a `GRPC::Core::CallCredentials` object.
73
- # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the metadata for
74
- # requests, generally, to give OAuth credentials.
75
- # @param scopes [Array<String>]
76
- # The OAuth scopes for this service. This parameter is ignored if an updater_proc is supplied.
77
- # @param client_config [Hash]
78
- # A Hash for call options for each method. See Google::Gax#construct_settings for the structure of this data.
79
- # Falls back to the default config if not specified or the specified config is missing data points.
80
- # @param timeout [Numeric]
81
- # The default timeout, in seconds, for calls made through this client.
82
- # @param metadata [Hash]
83
- # Default metadata to be sent with each request. This can be overridden on a per call basis.
84
- # @param service_address [String]
85
- # Override for the service hostname, or `nil` to leave as the default.
86
- # @param service_port [Integer]
87
- # Override for the service port, or `nil` to leave as the default.
88
- # @param exception_transformer [Proc]
89
- # An optional proc that intercepts any exceptions raised during an API call to inject custom error handling.
90
- # @overload new(version:, project_id:, credentials:, key:, scope:, retries:, timeout:, endpoint:)
91
- # @param version [Symbol, String]
92
- # The major version of the service to be used. Specifying `:v2` will return the legacy client.
93
- # @param [String] project_id Project identifier for the Cloud Translation service you are connecting to. If not
94
- # present, the default project for the credentials is used.
95
- # @param [String, Hash, Google::Auth::Credentials] credentials The path to the keyfile as a String, the contents
96
- # of the keyfile as a Hash, or a Google::Auth::Credentials object. (See
97
- # {Google::Cloud::Translate::V2::Credentials})
98
- # @param [String] key a public API access key (not an OAuth 2.0 token)
99
- # @param [String, Array<String>] scope The OAuth 2.0 scopes controlling the set of resources and operations that
100
- # the connection can access. See [Using OAuth 2.0 to Access Google
101
- # APIs](https://developers.google.com/identity/protocols/OAuth2).
102
- #
103
- # The default scope is:
104
- #
105
- # * `https://www.googleapis.com/auth/cloud-platform`
106
- # @param [Integer] retries Number of times to retry requests on server error. The default value is `3`.
107
- # Optional.
108
- # @param [Integer] timeout Default timeout to use in requests. Optional.
109
- # @param [String] endpoint Override of the endpoint host name. Optional. If the param is nil, uses the default
110
- # endpoint.
111
- #
112
- # @example Using the v3 client.
113
- # require "google/cloud/translate"
114
- #
115
- # client = Google::Cloud::Translate.new
116
- #
117
- # project_id = "my-project-id"
118
- # location_id = "us-central1"
119
- # model_id = "my-automl-model-id"
120
- #
121
- # # The `model` type requested for this translation.
122
- # model = "projects/#{project_id}/locations/#{location_id}/models/#{model_id}"
123
- # # The content to translate in string format
124
- # contents = ["Hello, world!"]
125
- # # Required. The BCP-47 language code to use for translation.
126
- # target_language = "fr"
127
- # # Optional. The BCP-47 language code of the input text.
128
- # source_language = "en"
129
- # # Optional. Can be "text/plain" or "text/html".
130
- # mime_type = "text/plain"
131
- # parent = client.class.location_path project_id, location_id
50
+ # Create a new client object for TranslationService.
132
51
  #
133
- # response = client.translate_text contents, target_language, parent,
134
- # source_language_code: source_language, model: model, mime_type: mime_type
52
+ # By default, this returns an instance of
53
+ # [Google::Cloud::Translate::V3::TranslationService::Client](https://googleapis.dev/ruby/google-cloud-translate-v3/latest/Google/Cloud/Translate/V3/TranslationService/Client.html)
54
+ # for version V3 of the API.
55
+ # However, you can specify specify a different API version by passing it in the
56
+ # `version` parameter. If the TranslationService service is
57
+ # supported by that API version, and the corresponding gem is available, the
58
+ # appropriate versioned client will be returned.
135
59
  #
136
- # # Display the translation for each input text provided
137
- # response.translations.each do |translation|
138
- # puts "Translated text: #{translation.translated_text}"
139
- # end
60
+ # ## About TranslationService
140
61
  #
141
- # @example Using the legacy v2 client.
142
- # require "google/cloud/translate"
143
- #
144
- # translate = Google::Cloud::Translate.new(
145
- # version: :v2,
146
- # project_id: "my-todo-project",
147
- # credentials: "/path/to/keyfile.json"
148
- # )
149
- #
150
- # translation = translate.translate "Hello world!", to: "la"
151
- # translation.text #=> "Salve mundi!"
152
- #
153
- # @example Using the legacy v2 client with an API Key.
154
- # require "google/cloud/translate"
155
- #
156
- # translate = Google::Cloud::Translate.new(
157
- # version: :v2,
158
- # key: "api-key-abc123XYZ789"
159
- # )
160
- #
161
- # translation = translate.translate "Hello world!", to: "la"
162
- # translation.text #=> "Salve mundi!"
163
- #
164
- # @example Using API Key from the environment variable.
165
- # require "google/cloud/translate"
166
- #
167
- # ENV["TRANSLATE_KEY"] = "api-key-abc123XYZ789"
168
- #
169
- # translate = Google::Cloud::Translate.new version: :v2
62
+ # Provides natural language translation operations.
170
63
  #
171
- # translation = translate.translate "Hello world!", to: "la"
172
- # translation.text #=> "Salve mundi!"
64
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
65
+ # Defaults to `:v3`.
66
+ # @return [TranslationService::Client] A client object for the specified version.
173
67
  #
174
- def self.new *args, version: :v3, **kwargs
175
- unless AVAILABLE_VERSIONS.include? version.to_s.downcase
176
- raise "The version: #{version} is not available. The available versions " \
177
- "are: [#{AVAILABLE_VERSIONS.join ', '}]"
178
- end
68
+ def self.translation_service version: :v3, &block
69
+ require "google/cloud/translate/#{version.to_s.downcase}"
179
70
 
180
- require "#{FILE_DIR}/#{version.to_s.downcase}"
181
- version_module = Google::Cloud::Translate
182
- .constants
183
- .select { |sym| sym.to_s.casecmp(version.to_s).zero? }
184
- .first
185
- Google::Cloud::Translate.const_get(version_module).new(*args, **kwargs)
71
+ package_name = Google::Cloud::Translate
72
+ .constants
73
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
74
+ .first
75
+ package_module = Google::Cloud::Translate.const_get package_name
76
+ package_module.const_get(:TranslationService).const_get(:Client).new(&block)
186
77
  end
187
78
 
188
79
  ##
189
- # Configure the Google Cloud Translate library.
190
- #
191
- # The following Translate configuration parameters are supported:
192
- #
193
- # * `project_id` - (String) Identifier for a Translate project.
194
- # * `credentials` - (String, Hash, Google::Auth::Credentials) The path to the keyfile as a String, the contents of
195
- # the keyfile as a Hash, or a Google::Auth::Credentials object. (See
196
- # {Google::Cloud::Translate::V2::Credentials})
197
- # * `scope` - (String, Array<String>) The OAuth 2.0 scopes controlling the set of resources and operations that
198
- # the connection can access.
199
- # * `retries` - (Integer) Number of times to retry requests on server error.
200
- # * `timeout` - (Integer) Default timeout to use in requests.
201
- # * `endpoint` - (String) Override of the endpoint host name, or `nil` to use the default endpoint.
202
- #
203
- # @note These values are only used by the legacy v2 client.
204
- #
205
- # @return [Google::Cloud::Config] The configuration object the Google::Cloud::Translate library uses.
80
+ # Configure the google-cloud-translate library.
81
+ #
82
+ # The following configuration parameters are supported:
83
+ #
84
+ # * `credentials` (*type:* `String, Hash, Google::Auth::Credentials`) -
85
+ # The path to the keyfile as a String, the contents of the keyfile as a
86
+ # Hash, or a Google::Auth::Credentials object.
87
+ # * `lib_name` (*type:* `String`) -
88
+ # The library name as recorded in instrumentation and logging.
89
+ # * `lib_version` (*type:* `String`) -
90
+ # The library version as recorded in instrumentation and logging.
91
+ # * `interceptors` (*type:* `Array<GRPC::ClientInterceptor>`) -
92
+ # An array of interceptors that are run before calls are executed.
93
+ # * `timeout` (*type:* `Integer`) -
94
+ # Default timeout in milliseconds.
95
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) -
96
+ # Additional gRPC headers to be sent with the call.
97
+ # * `retry_policy` (*type:* `Hash`) -
98
+ # The retry policy. The value is a hash with the following keys:
99
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
100
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
101
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
102
+ # * `:retry_codes` (*type:* `Array<String>`) -
103
+ # The error codes that should trigger a retry.
104
+ #
105
+ # @return [::Google::Cloud::Config] The default configuration used by this library
206
106
  #
207
107
  def self.configure
208
- yield Google::Cloud.configure.translate if block_given?
108
+ yield ::Google::Cloud.configure.translate if block_given?
209
109
 
210
- Google::Cloud.configure.translate
110
+ ::Google::Cloud.configure.translate
211
111
  end
212
112
  end
213
113
  end
214
114
  end
115
+
116
+ helper_path = ::File.join __dir__, "translate", "helpers.rb"
117
+ require "google/cloud/translate/helpers" if ::File.file? helper_path
@@ -0,0 +1,100 @@
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
+ end
99
+ end
100
+ end
@@ -1,4 +1,6 @@
1
- # Copyright 2016 Google LLC
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 = "2.3.0".freeze
23
+ VERSION = "3.0.0"
20
24
  end
21
25
  end
22
26
  end
metadata CHANGED
@@ -1,117 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-translate
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 3.0.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: 2020-03-30 00:00:00.000000000 Z
11
+ date: 2020-06-18 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.2'
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.2'
26
+ version: '1.5'
47
27
  - !ruby/object:Gem::Dependency
48
- name: google-gax
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: '1.8'
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: '1.8'
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: autotest-suffix
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: '1.1'
108
- type: :development
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: '1.1'
54
+ version: '0.0'
115
55
  - !ruby/object:Gem::Dependency
116
56
  name: google-style
117
57
  requirement: !ruby/object:Gem::Requirement
@@ -132,56 +72,56 @@ dependencies:
132
72
  requirements:
133
73
  - - "~>"
134
74
  - !ruby/object:Gem::Version
135
- version: '5.10'
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.10'
82
+ version: '5.14'
143
83
  - !ruby/object:Gem::Dependency
144
- name: minitest-autotest
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.0'
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.0'
96
+ version: '1.1'
157
97
  - !ruby/object:Gem::Dependency
158
- name: minitest-focus
98
+ name: minitest-rg
159
99
  requirement: !ruby/object:Gem::Requirement
160
100
  requirements:
161
101
  - - "~>"
162
102
  - !ruby/object:Gem::Version
163
- version: '1.1'
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: '1.1'
110
+ version: '5.2'
171
111
  - !ruby/object:Gem::Dependency
172
- name: minitest-rg
112
+ name: rake
173
113
  requirement: !ruby/object:Gem::Requirement
174
114
  requirements:
175
- - - "~>"
115
+ - - ">="
176
116
  - !ruby/object:Gem::Version
177
- version: '5.2'
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: '5.2'
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
- - !ruby/object:Gem::Dependency
228
- name: yard-doctest
229
- requirement: !ruby/object:Gem::Requirement
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
- - CHANGELOG.md
251
- - CODE_OF_CONDUCT.md
252
- - CONTRIBUTING.md
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/v2.rb
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/tree/master/google-cloud-translate
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
@@ -300,8 +200,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
300
200
  - !ruby/object:Gem::Version
301
201
  version: '0'
302
202
  requirements: []
303
- rubygems_version: 3.0.6
203
+ rubygems_version: 3.1.3
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: []