google-cloud-dialogflow 1.3.3 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/MIGRATING.md +1 -1
- data/README.md +6 -6
- data/lib/google/cloud/dialogflow/version.rb +1 -1
- data/lib/google/cloud/dialogflow.rb +63 -0
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a26b7816f2f86721dbc45d4efb34b34673b47a1060d0a95fecd8a04201e9ea4
|
4
|
+
data.tar.gz: f30bc854e8542b638c7ef4cf3592553bd2ede4cc01a824bc9728f30ce27877ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2da2981c302da5a9ee8430b7314a9aa9dd89522e58530a1202882eef6569d5bf310f9ac0127811cf4512b6f00f5841cecaf1abc3b4bccb72b369a4466174de6f
|
7
|
+
data.tar.gz: e2805ed9e9d3f090bcd01cde2ccbacc04ee9e0271befa14d4baf2502b87b7926148b5bfe7cf385e7ec22949756db4c1d8c117beb38329e608a2fc47dbfc22537
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
data/MIGRATING.md
CHANGED
@@ -385,7 +385,7 @@ response_thread.join
|
|
385
385
|
### Handling Errors
|
386
386
|
|
387
387
|
The client reports standard
|
388
|
-
|
388
|
+
[gRPC error codes](https://github.com/grpc/grpc/blob/master/doc/statuscodes.md)
|
389
389
|
by raising exceptions. In older releases, these exceptions were located in the
|
390
390
|
`Google::Gax` namespace and were subclasses of the `Google::Gax::GaxError` base
|
391
391
|
exception class, defined in the `google-gax` gem. However, these classes were
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@ verisoned gems in as dependencies, and provides high-level methods for
|
|
11
11
|
constructing clients. More information on versioned clients can be found below
|
12
12
|
in the section titled *Which client should I use?*.
|
13
13
|
|
14
|
-
View the [Client Library Documentation](https://
|
14
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow/latest)
|
15
15
|
for this library, google-cloud-dialogflow, to see the convenience methods for
|
16
16
|
constructing client objects. Reference documentation for the client objects
|
17
17
|
themselves can be found in the client library documentation for the versioned
|
@@ -70,14 +70,14 @@ end
|
|
70
70
|
|
71
71
|
## Supported Ruby Versions
|
72
72
|
|
73
|
-
This library is supported on Ruby 2.
|
73
|
+
This library is supported on Ruby 2.6+.
|
74
74
|
|
75
75
|
Google provides official support for Ruby versions that are actively supported
|
76
76
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
77
|
-
in security maintenance, and not end of life.
|
78
|
-
|
79
|
-
|
80
|
-
|
77
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
78
|
+
still work, but are unsupported and not recommended. See
|
79
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
80
|
+
support schedule.
|
81
81
|
|
82
82
|
## Which client should I use?
|
83
83
|
|
@@ -317,6 +317,69 @@ module Google
|
|
317
317
|
package_module.const_get(:Conversations).const_get(:Client).new(&block)
|
318
318
|
end
|
319
319
|
|
320
|
+
##
|
321
|
+
# Create a new client object for ConversationDatasets.
|
322
|
+
#
|
323
|
+
# By default, this returns an instance of
|
324
|
+
# [Google::Cloud::Dialogflow::V2::ConversationDatasets::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/ConversationDatasets/Client.html)
|
325
|
+
# for version V2 of the API.
|
326
|
+
# However, you can specify specify a different API version by passing it in the
|
327
|
+
# `version` parameter. If the ConversationDatasets service is
|
328
|
+
# supported by that API version, and the corresponding gem is available, the
|
329
|
+
# appropriate versioned client will be returned.
|
330
|
+
#
|
331
|
+
# ## About ConversationDatasets
|
332
|
+
#
|
333
|
+
# Conversation datasets.
|
334
|
+
#
|
335
|
+
# Conversation datasets contain raw conversation files and their
|
336
|
+
# customizable metadata that can be used for model training.
|
337
|
+
#
|
338
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
339
|
+
# Defaults to `:v2`.
|
340
|
+
# @return [ConversationDatasets::Client] A client object for the specified version.
|
341
|
+
#
|
342
|
+
def self.conversation_datasets version: :v2, &block
|
343
|
+
require "google/cloud/dialogflow/#{version.to_s.downcase}"
|
344
|
+
|
345
|
+
package_name = Google::Cloud::Dialogflow
|
346
|
+
.constants
|
347
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
348
|
+
.first
|
349
|
+
package_module = Google::Cloud::Dialogflow.const_get package_name
|
350
|
+
package_module.const_get(:ConversationDatasets).const_get(:Client).new(&block)
|
351
|
+
end
|
352
|
+
|
353
|
+
##
|
354
|
+
# Create a new client object for ConversationModels.
|
355
|
+
#
|
356
|
+
# By default, this returns an instance of
|
357
|
+
# [Google::Cloud::Dialogflow::V2::ConversationModels::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/ConversationModels/Client.html)
|
358
|
+
# for version V2 of the API.
|
359
|
+
# However, you can specify specify a different API version by passing it in the
|
360
|
+
# `version` parameter. If the ConversationModels service is
|
361
|
+
# supported by that API version, and the corresponding gem is available, the
|
362
|
+
# appropriate versioned client will be returned.
|
363
|
+
#
|
364
|
+
# ## About ConversationModels
|
365
|
+
#
|
366
|
+
# Manages a collection of models for human agent assistant.
|
367
|
+
#
|
368
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
369
|
+
# Defaults to `:v2`.
|
370
|
+
# @return [ConversationModels::Client] A client object for the specified version.
|
371
|
+
#
|
372
|
+
def self.conversation_models version: :v2, &block
|
373
|
+
require "google/cloud/dialogflow/#{version.to_s.downcase}"
|
374
|
+
|
375
|
+
package_name = Google::Cloud::Dialogflow
|
376
|
+
.constants
|
377
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
378
|
+
.first
|
379
|
+
package_module = Google::Cloud::Dialogflow.const_get package_name
|
380
|
+
package_module.const_get(:ConversationModels).const_get(:Client).new(&block)
|
381
|
+
end
|
382
|
+
|
320
383
|
##
|
321
384
|
# Create a new client object for ConversationProfiles.
|
322
385
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dialogflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.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: 2022-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.15'
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: 2.a
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '0.
|
43
|
+
version: '0.15'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 2.a
|
@@ -50,28 +50,28 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
53
|
+
version: 1.26.1
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.26.1
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
67
|
+
version: '5.16'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
74
|
+
version: '5.16'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest-focus
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '13.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '13.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: redcarpet
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -187,14 +187,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
187
187
|
requirements:
|
188
188
|
- - ">="
|
189
189
|
- !ruby/object:Gem::Version
|
190
|
-
version: '2.
|
190
|
+
version: '2.6'
|
191
191
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
192
192
|
requirements:
|
193
193
|
- - ">="
|
194
194
|
- !ruby/object:Gem::Version
|
195
195
|
version: '0'
|
196
196
|
requirements: []
|
197
|
-
rubygems_version: 3.
|
197
|
+
rubygems_version: 3.3.14
|
198
198
|
signing_key:
|
199
199
|
specification_version: 4
|
200
200
|
summary: API Client library for the Dialogflow API
|