google-cloud-dialogflow-cx 0.2.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +6 -32
- data/lib/google/cloud/dialogflow/cx/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx.rb +194 -126
- 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: 724af0ba534ae73630b061f8a6be69367e41a7e0ac7f85cf05e03baf22407e65
|
4
|
+
data.tar.gz: 1f6b993c0c335122a9a0f54bca18110d347dea23e5f18c92c1f224b567c3f26f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdcfb5171c94d8e277216806af12f499a2692b9a40aaa0e2ee3692e4d9379aae9936c7babe34cb6661824af779cab4ea856bacee8025a00fe5c89fb4ec217773
|
7
|
+
data.tar.gz: 1ff806d01f6faeda4616922505415022688e056f6cb7211cbb88809ca80deda6a3eaa46e639125484834a14a9c0857b470f7564b90d455894194a27ad78547e0
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
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-cx/latest)
|
15
15
|
for this library, google-cloud-dialogflow-cx, 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
|
@@ -34,42 +34,16 @@ In order to use this library, you first need to go through the following steps:
|
|
34
34
|
1. [Enable the API.](https://console.cloud.google.com/apis/library/dialogflow.googleapis.com)
|
35
35
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
36
36
|
|
37
|
-
## Enabling Logging
|
38
|
-
|
39
|
-
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
40
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
|
41
|
-
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
42
|
-
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
43
|
-
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
44
|
-
|
45
|
-
Configuring a Ruby stdlib logger:
|
46
|
-
|
47
|
-
```ruby
|
48
|
-
require "logger"
|
49
|
-
|
50
|
-
module MyLogger
|
51
|
-
LOGGER = Logger.new $stderr, level: Logger::WARN
|
52
|
-
def logger
|
53
|
-
LOGGER
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
58
|
-
module GRPC
|
59
|
-
extend MyLogger
|
60
|
-
end
|
61
|
-
```
|
62
|
-
|
63
37
|
## Supported Ruby Versions
|
64
38
|
|
65
|
-
This library is supported on Ruby 2.
|
39
|
+
This library is supported on Ruby 2.6+.
|
66
40
|
|
67
41
|
Google provides official support for Ruby versions that are actively supported
|
68
42
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
69
|
-
in security maintenance, and not end of life.
|
70
|
-
|
71
|
-
|
72
|
-
|
43
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
44
|
+
still work, but are unsupported and not recommended. See
|
45
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
46
|
+
support schedule.
|
73
47
|
|
74
48
|
## Which client should I use?
|
75
49
|
|
@@ -50,11 +50,13 @@ module Google
|
|
50
50
|
#
|
51
51
|
# By default, this returns an instance of
|
52
52
|
# [Google::Cloud::Dialogflow::CX::V3::Pages::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-cx-v3/latest/Google/Cloud/Dialogflow/CX/V3/Pages/Client.html)
|
53
|
-
# for version V3 of the API.
|
54
|
-
# However, you can specify
|
53
|
+
# for a gRPC client for version V3 of the API.
|
54
|
+
# However, you can specify a different API version by passing it in the
|
55
55
|
# `version` parameter. If the Pages service is
|
56
56
|
# supported by that API version, and the corresponding gem is available, the
|
57
57
|
# appropriate versioned client will be returned.
|
58
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
59
|
+
# the `transport` parameter.
|
58
60
|
#
|
59
61
|
# ## About Pages
|
60
62
|
#
|
@@ -62,17 +64,19 @@ module Google
|
|
62
64
|
#
|
63
65
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
64
66
|
# Defaults to `:v3`.
|
65
|
-
# @
|
67
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
68
|
+
# @return [::Object] A client object for the specified version.
|
66
69
|
#
|
67
|
-
def self.pages version: :v3, &block
|
70
|
+
def self.pages version: :v3, transport: :grpc, &block
|
68
71
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
69
72
|
|
70
73
|
package_name = Google::Cloud::Dialogflow::CX
|
71
74
|
.constants
|
72
75
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
73
76
|
.first
|
74
|
-
|
75
|
-
|
77
|
+
service_module = Google::Cloud::Dialogflow::CX.const_get(package_name).const_get(:Pages)
|
78
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
79
|
+
service_module.const_get(:Client).new(&block)
|
76
80
|
end
|
77
81
|
|
78
82
|
##
|
@@ -80,11 +84,13 @@ module Google
|
|
80
84
|
#
|
81
85
|
# By default, this returns an instance of
|
82
86
|
# [Google::Cloud::Dialogflow::CX::V3::Flows::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-cx-v3/latest/Google/Cloud/Dialogflow/CX/V3/Flows/Client.html)
|
83
|
-
# for version V3 of the API.
|
84
|
-
# However, you can specify
|
87
|
+
# for a gRPC client for version V3 of the API.
|
88
|
+
# However, you can specify a different API version by passing it in the
|
85
89
|
# `version` parameter. If the Flows service is
|
86
90
|
# supported by that API version, and the corresponding gem is available, the
|
87
91
|
# appropriate versioned client will be returned.
|
92
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
93
|
+
# the `transport` parameter.
|
88
94
|
#
|
89
95
|
# ## About Flows
|
90
96
|
#
|
@@ -92,47 +98,19 @@ module Google
|
|
92
98
|
#
|
93
99
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
94
100
|
# Defaults to `:v3`.
|
95
|
-
# @
|
101
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
102
|
+
# @return [::Object] A client object for the specified version.
|
96
103
|
#
|
97
|
-
def self.flows version: :v3, &block
|
104
|
+
def self.flows version: :v3, transport: :grpc, &block
|
98
105
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
99
106
|
|
100
107
|
package_name = Google::Cloud::Dialogflow::CX
|
101
108
|
.constants
|
102
109
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
103
110
|
.first
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
##
|
109
|
-
# Create a new client object for SecuritySettingsService.
|
110
|
-
#
|
111
|
-
# By default, this returns an instance of
|
112
|
-
# [Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-cx-v3/latest/Google/Cloud/Dialogflow/CX/V3/SecuritySettingsService/Client.html)
|
113
|
-
# for version V3 of the API.
|
114
|
-
# However, you can specify specify a different API version by passing it in the
|
115
|
-
# `version` parameter. If the SecuritySettingsService service is
|
116
|
-
# supported by that API version, and the corresponding gem is available, the
|
117
|
-
# appropriate versioned client will be returned.
|
118
|
-
#
|
119
|
-
# ## About SecuritySettingsService
|
120
|
-
#
|
121
|
-
# Service for managing security settings for Dialogflow.
|
122
|
-
#
|
123
|
-
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
124
|
-
# Defaults to `:v3`.
|
125
|
-
# @return [SecuritySettingsService::Client] A client object for the specified version.
|
126
|
-
#
|
127
|
-
def self.security_settings_service version: :v3, &block
|
128
|
-
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
129
|
-
|
130
|
-
package_name = Google::Cloud::Dialogflow::CX
|
131
|
-
.constants
|
132
|
-
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
133
|
-
.first
|
134
|
-
package_module = Google::Cloud::Dialogflow::CX.const_get package_name
|
135
|
-
package_module.const_get(:SecuritySettingsService).const_get(:Client).new(&block)
|
111
|
+
service_module = Google::Cloud::Dialogflow::CX.const_get(package_name).const_get(:Flows)
|
112
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
113
|
+
service_module.const_get(:Client).new(&block)
|
136
114
|
end
|
137
115
|
|
138
116
|
##
|
@@ -140,11 +118,13 @@ module Google
|
|
140
118
|
#
|
141
119
|
# By default, this returns an instance of
|
142
120
|
# [Google::Cloud::Dialogflow::CX::V3::Agents::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-cx-v3/latest/Google/Cloud/Dialogflow/CX/V3/Agents/Client.html)
|
143
|
-
# for version V3 of the API.
|
144
|
-
# However, you can specify
|
121
|
+
# for a gRPC client for version V3 of the API.
|
122
|
+
# However, you can specify a different API version by passing it in the
|
145
123
|
# `version` parameter. If the Agents service is
|
146
124
|
# supported by that API version, and the corresponding gem is available, the
|
147
125
|
# appropriate versioned client will be returned.
|
126
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
127
|
+
# the `transport` parameter.
|
148
128
|
#
|
149
129
|
# ## About Agents
|
150
130
|
#
|
@@ -152,17 +132,19 @@ module Google
|
|
152
132
|
#
|
153
133
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
154
134
|
# Defaults to `:v3`.
|
155
|
-
# @
|
135
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
136
|
+
# @return [::Object] A client object for the specified version.
|
156
137
|
#
|
157
|
-
def self.agents version: :v3, &block
|
138
|
+
def self.agents version: :v3, transport: :grpc, &block
|
158
139
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
159
140
|
|
160
141
|
package_name = Google::Cloud::Dialogflow::CX
|
161
142
|
.constants
|
162
143
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
163
144
|
.first
|
164
|
-
|
165
|
-
|
145
|
+
service_module = Google::Cloud::Dialogflow::CX.const_get(package_name).const_get(:Agents)
|
146
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
147
|
+
service_module.const_get(:Client).new(&block)
|
166
148
|
end
|
167
149
|
|
168
150
|
##
|
@@ -170,11 +152,13 @@ module Google
|
|
170
152
|
#
|
171
153
|
# By default, this returns an instance of
|
172
154
|
# [Google::Cloud::Dialogflow::CX::V3::Changelogs::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-cx-v3/latest/Google/Cloud/Dialogflow/CX/V3/Changelogs/Client.html)
|
173
|
-
# for version V3 of the API.
|
174
|
-
# However, you can specify
|
155
|
+
# for a gRPC client for version V3 of the API.
|
156
|
+
# However, you can specify a different API version by passing it in the
|
175
157
|
# `version` parameter. If the Changelogs service is
|
176
158
|
# supported by that API version, and the corresponding gem is available, the
|
177
159
|
# appropriate versioned client will be returned.
|
160
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
161
|
+
# the `transport` parameter.
|
178
162
|
#
|
179
163
|
# ## About Changelogs
|
180
164
|
#
|
@@ -182,17 +166,19 @@ module Google
|
|
182
166
|
#
|
183
167
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
184
168
|
# Defaults to `:v3`.
|
185
|
-
# @
|
169
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
170
|
+
# @return [::Object] A client object for the specified version.
|
186
171
|
#
|
187
|
-
def self.changelogs version: :v3, &block
|
172
|
+
def self.changelogs version: :v3, transport: :grpc, &block
|
188
173
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
189
174
|
|
190
175
|
package_name = Google::Cloud::Dialogflow::CX
|
191
176
|
.constants
|
192
177
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
193
178
|
.first
|
194
|
-
|
195
|
-
|
179
|
+
service_module = Google::Cloud::Dialogflow::CX.const_get(package_name).const_get(:Changelogs)
|
180
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
181
|
+
service_module.const_get(:Client).new(&block)
|
196
182
|
end
|
197
183
|
|
198
184
|
##
|
@@ -200,11 +186,13 @@ module Google
|
|
200
186
|
#
|
201
187
|
# By default, this returns an instance of
|
202
188
|
# [Google::Cloud::Dialogflow::CX::V3::Deployments::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-cx-v3/latest/Google/Cloud/Dialogflow/CX/V3/Deployments/Client.html)
|
203
|
-
# for version V3 of the API.
|
204
|
-
# However, you can specify
|
189
|
+
# for a gRPC client for version V3 of the API.
|
190
|
+
# However, you can specify a different API version by passing it in the
|
205
191
|
# `version` parameter. If the Deployments service is
|
206
192
|
# supported by that API version, and the corresponding gem is available, the
|
207
193
|
# appropriate versioned client will be returned.
|
194
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
195
|
+
# the `transport` parameter.
|
208
196
|
#
|
209
197
|
# ## About Deployments
|
210
198
|
#
|
@@ -212,17 +200,19 @@ module Google
|
|
212
200
|
#
|
213
201
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
214
202
|
# Defaults to `:v3`.
|
215
|
-
# @
|
203
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
204
|
+
# @return [::Object] A client object for the specified version.
|
216
205
|
#
|
217
|
-
def self.deployments version: :v3, &block
|
206
|
+
def self.deployments version: :v3, transport: :grpc, &block
|
218
207
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
219
208
|
|
220
209
|
package_name = Google::Cloud::Dialogflow::CX
|
221
210
|
.constants
|
222
211
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
223
212
|
.first
|
224
|
-
|
225
|
-
|
213
|
+
service_module = Google::Cloud::Dialogflow::CX.const_get(package_name).const_get(:Deployments)
|
214
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
215
|
+
service_module.const_get(:Client).new(&block)
|
226
216
|
end
|
227
217
|
|
228
218
|
##
|
@@ -230,11 +220,13 @@ module Google
|
|
230
220
|
#
|
231
221
|
# By default, this returns an instance of
|
232
222
|
# [Google::Cloud::Dialogflow::CX::V3::EntityTypes::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-cx-v3/latest/Google/Cloud/Dialogflow/CX/V3/EntityTypes/Client.html)
|
233
|
-
# for version V3 of the API.
|
234
|
-
# However, you can specify
|
223
|
+
# for a gRPC client for version V3 of the API.
|
224
|
+
# However, you can specify a different API version by passing it in the
|
235
225
|
# `version` parameter. If the EntityTypes service is
|
236
226
|
# supported by that API version, and the corresponding gem is available, the
|
237
227
|
# appropriate versioned client will be returned.
|
228
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
229
|
+
# the `transport` parameter.
|
238
230
|
#
|
239
231
|
# ## About EntityTypes
|
240
232
|
#
|
@@ -242,17 +234,19 @@ module Google
|
|
242
234
|
#
|
243
235
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
244
236
|
# Defaults to `:v3`.
|
245
|
-
# @
|
237
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
238
|
+
# @return [::Object] A client object for the specified version.
|
246
239
|
#
|
247
|
-
def self.entity_types version: :v3, &block
|
240
|
+
def self.entity_types version: :v3, transport: :grpc, &block
|
248
241
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
249
242
|
|
250
243
|
package_name = Google::Cloud::Dialogflow::CX
|
251
244
|
.constants
|
252
245
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
253
246
|
.first
|
254
|
-
|
255
|
-
|
247
|
+
service_module = Google::Cloud::Dialogflow::CX.const_get(package_name).const_get(:EntityTypes)
|
248
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
249
|
+
service_module.const_get(:Client).new(&block)
|
256
250
|
end
|
257
251
|
|
258
252
|
##
|
@@ -260,11 +254,13 @@ module Google
|
|
260
254
|
#
|
261
255
|
# By default, this returns an instance of
|
262
256
|
# [Google::Cloud::Dialogflow::CX::V3::Intents::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-cx-v3/latest/Google/Cloud/Dialogflow/CX/V3/Intents/Client.html)
|
263
|
-
# for version V3 of the API.
|
264
|
-
# However, you can specify
|
257
|
+
# for a gRPC client for version V3 of the API.
|
258
|
+
# However, you can specify a different API version by passing it in the
|
265
259
|
# `version` parameter. If the Intents service is
|
266
260
|
# supported by that API version, and the corresponding gem is available, the
|
267
261
|
# appropriate versioned client will be returned.
|
262
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
263
|
+
# the `transport` parameter.
|
268
264
|
#
|
269
265
|
# ## About Intents
|
270
266
|
#
|
@@ -272,17 +268,19 @@ module Google
|
|
272
268
|
#
|
273
269
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
274
270
|
# Defaults to `:v3`.
|
275
|
-
# @
|
271
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
272
|
+
# @return [::Object] A client object for the specified version.
|
276
273
|
#
|
277
|
-
def self.intents version: :v3, &block
|
274
|
+
def self.intents version: :v3, transport: :grpc, &block
|
278
275
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
279
276
|
|
280
277
|
package_name = Google::Cloud::Dialogflow::CX
|
281
278
|
.constants
|
282
279
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
283
280
|
.first
|
284
|
-
|
285
|
-
|
281
|
+
service_module = Google::Cloud::Dialogflow::CX.const_get(package_name).const_get(:Intents)
|
282
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
283
|
+
service_module.const_get(:Client).new(&block)
|
286
284
|
end
|
287
285
|
|
288
286
|
##
|
@@ -290,29 +288,34 @@ module Google
|
|
290
288
|
#
|
291
289
|
# By default, this returns an instance of
|
292
290
|
# [Google::Cloud::Dialogflow::CX::V3::SessionEntityTypes::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-cx-v3/latest/Google/Cloud/Dialogflow/CX/V3/SessionEntityTypes/Client.html)
|
293
|
-
# for version V3 of the API.
|
294
|
-
# However, you can specify
|
291
|
+
# for a gRPC client for version V3 of the API.
|
292
|
+
# However, you can specify a different API version by passing it in the
|
295
293
|
# `version` parameter. If the SessionEntityTypes service is
|
296
294
|
# supported by that API version, and the corresponding gem is available, the
|
297
295
|
# appropriate versioned client will be returned.
|
296
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
297
|
+
# the `transport` parameter.
|
298
298
|
#
|
299
299
|
# ## About SessionEntityTypes
|
300
300
|
#
|
301
|
-
# Service for managing
|
301
|
+
# Service for managing
|
302
|
+
# SessionEntityTypes.
|
302
303
|
#
|
303
304
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
304
305
|
# Defaults to `:v3`.
|
305
|
-
# @
|
306
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
307
|
+
# @return [::Object] A client object for the specified version.
|
306
308
|
#
|
307
|
-
def self.session_entity_types version: :v3, &block
|
309
|
+
def self.session_entity_types version: :v3, transport: :grpc, &block
|
308
310
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
309
311
|
|
310
312
|
package_name = Google::Cloud::Dialogflow::CX
|
311
313
|
.constants
|
312
314
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
313
315
|
.first
|
314
|
-
|
315
|
-
|
316
|
+
service_module = Google::Cloud::Dialogflow::CX.const_get(package_name).const_get(:SessionEntityTypes)
|
317
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
318
|
+
service_module.const_get(:Client).new(&block)
|
316
319
|
end
|
317
320
|
|
318
321
|
##
|
@@ -320,31 +323,36 @@ module Google
|
|
320
323
|
#
|
321
324
|
# By default, this returns an instance of
|
322
325
|
# [Google::Cloud::Dialogflow::CX::V3::Sessions::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-cx-v3/latest/Google/Cloud/Dialogflow/CX/V3/Sessions/Client.html)
|
323
|
-
# for version V3 of the API.
|
324
|
-
# However, you can specify
|
326
|
+
# for a gRPC client for version V3 of the API.
|
327
|
+
# However, you can specify a different API version by passing it in the
|
325
328
|
# `version` parameter. If the Sessions service is
|
326
329
|
# supported by that API version, and the corresponding gem is available, the
|
327
330
|
# appropriate versioned client will be returned.
|
331
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
332
|
+
# the `transport` parameter.
|
328
333
|
#
|
329
334
|
# ## About Sessions
|
330
335
|
#
|
331
336
|
# A session represents an interaction with a user. You retrieve user input
|
332
|
-
# and pass it to the
|
333
|
-
#
|
337
|
+
# and pass it to the
|
338
|
+
# DetectIntent method to
|
339
|
+
# determine user intent and respond.
|
334
340
|
#
|
335
341
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
336
342
|
# Defaults to `:v3`.
|
337
|
-
# @
|
343
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
344
|
+
# @return [::Object] A client object for the specified version.
|
338
345
|
#
|
339
|
-
def self.sessions version: :v3, &block
|
346
|
+
def self.sessions version: :v3, transport: :grpc, &block
|
340
347
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
341
348
|
|
342
349
|
package_name = Google::Cloud::Dialogflow::CX
|
343
350
|
.constants
|
344
351
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
345
352
|
.first
|
346
|
-
|
347
|
-
|
353
|
+
service_module = Google::Cloud::Dialogflow::CX.const_get(package_name).const_get(:Sessions)
|
354
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
355
|
+
service_module.const_get(:Client).new(&block)
|
348
356
|
end
|
349
357
|
|
350
358
|
##
|
@@ -352,29 +360,34 @@ module Google
|
|
352
360
|
#
|
353
361
|
# By default, this returns an instance of
|
354
362
|
# [Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-cx-v3/latest/Google/Cloud/Dialogflow/CX/V3/TransitionRouteGroups/Client.html)
|
355
|
-
# for version V3 of the API.
|
356
|
-
# However, you can specify
|
363
|
+
# for a gRPC client for version V3 of the API.
|
364
|
+
# However, you can specify a different API version by passing it in the
|
357
365
|
# `version` parameter. If the TransitionRouteGroups service is
|
358
366
|
# supported by that API version, and the corresponding gem is available, the
|
359
367
|
# appropriate versioned client will be returned.
|
368
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
369
|
+
# the `transport` parameter.
|
360
370
|
#
|
361
371
|
# ## About TransitionRouteGroups
|
362
372
|
#
|
363
|
-
# Service for managing
|
373
|
+
# Service for managing
|
374
|
+
# TransitionRouteGroups.
|
364
375
|
#
|
365
376
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
366
377
|
# Defaults to `:v3`.
|
367
|
-
# @
|
378
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
379
|
+
# @return [::Object] A client object for the specified version.
|
368
380
|
#
|
369
|
-
def self.transition_route_groups version: :v3, &block
|
381
|
+
def self.transition_route_groups version: :v3, transport: :grpc, &block
|
370
382
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
371
383
|
|
372
384
|
package_name = Google::Cloud::Dialogflow::CX
|
373
385
|
.constants
|
374
386
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
375
387
|
.first
|
376
|
-
|
377
|
-
|
388
|
+
service_module = Google::Cloud::Dialogflow::CX.const_get(package_name).const_get(:TransitionRouteGroups)
|
389
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
390
|
+
service_module.const_get(:Client).new(&block)
|
378
391
|
end
|
379
392
|
|
380
393
|
##
|
@@ -382,11 +395,13 @@ module Google
|
|
382
395
|
#
|
383
396
|
# By default, this returns an instance of
|
384
397
|
# [Google::Cloud::Dialogflow::CX::V3::TestCases::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-cx-v3/latest/Google/Cloud/Dialogflow/CX/V3/TestCases/Client.html)
|
385
|
-
# for version V3 of the API.
|
386
|
-
# However, you can specify
|
398
|
+
# for a gRPC client for version V3 of the API.
|
399
|
+
# However, you can specify a different API version by passing it in the
|
387
400
|
# `version` parameter. If the TestCases service is
|
388
401
|
# supported by that API version, and the corresponding gem is available, the
|
389
402
|
# appropriate versioned client will be returned.
|
403
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
404
|
+
# the `transport` parameter.
|
390
405
|
#
|
391
406
|
# ## About TestCases
|
392
407
|
#
|
@@ -395,17 +410,19 @@ module Google
|
|
395
410
|
#
|
396
411
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
397
412
|
# Defaults to `:v3`.
|
398
|
-
# @
|
413
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
414
|
+
# @return [::Object] A client object for the specified version.
|
399
415
|
#
|
400
|
-
def self.test_cases version: :v3, &block
|
416
|
+
def self.test_cases version: :v3, transport: :grpc, &block
|
401
417
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
402
418
|
|
403
419
|
package_name = Google::Cloud::Dialogflow::CX
|
404
420
|
.constants
|
405
421
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
406
422
|
.first
|
407
|
-
|
408
|
-
|
423
|
+
service_module = Google::Cloud::Dialogflow::CX.const_get(package_name).const_get(:TestCases)
|
424
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
425
|
+
service_module.const_get(:Client).new(&block)
|
409
426
|
end
|
410
427
|
|
411
428
|
##
|
@@ -413,11 +430,13 @@ module Google
|
|
413
430
|
#
|
414
431
|
# By default, this returns an instance of
|
415
432
|
# [Google::Cloud::Dialogflow::CX::V3::Webhooks::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-cx-v3/latest/Google/Cloud/Dialogflow/CX/V3/Webhooks/Client.html)
|
416
|
-
# for version V3 of the API.
|
417
|
-
# However, you can specify
|
433
|
+
# for a gRPC client for version V3 of the API.
|
434
|
+
# However, you can specify a different API version by passing it in the
|
418
435
|
# `version` parameter. If the Webhooks service is
|
419
436
|
# supported by that API version, and the corresponding gem is available, the
|
420
437
|
# appropriate versioned client will be returned.
|
438
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
439
|
+
# the `transport` parameter.
|
421
440
|
#
|
422
441
|
# ## About Webhooks
|
423
442
|
#
|
@@ -425,17 +444,19 @@ module Google
|
|
425
444
|
#
|
426
445
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
427
446
|
# Defaults to `:v3`.
|
428
|
-
# @
|
447
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
448
|
+
# @return [::Object] A client object for the specified version.
|
429
449
|
#
|
430
|
-
def self.webhooks version: :v3, &block
|
450
|
+
def self.webhooks version: :v3, transport: :grpc, &block
|
431
451
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
432
452
|
|
433
453
|
package_name = Google::Cloud::Dialogflow::CX
|
434
454
|
.constants
|
435
455
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
436
456
|
.first
|
437
|
-
|
438
|
-
|
457
|
+
service_module = Google::Cloud::Dialogflow::CX.const_get(package_name).const_get(:Webhooks)
|
458
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
459
|
+
service_module.const_get(:Client).new(&block)
|
439
460
|
end
|
440
461
|
|
441
462
|
##
|
@@ -443,29 +464,34 @@ module Google
|
|
443
464
|
#
|
444
465
|
# By default, this returns an instance of
|
445
466
|
# [Google::Cloud::Dialogflow::CX::V3::Environments::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-cx-v3/latest/Google/Cloud/Dialogflow/CX/V3/Environments/Client.html)
|
446
|
-
# for version V3 of the API.
|
447
|
-
# However, you can specify
|
467
|
+
# for a gRPC client for version V3 of the API.
|
468
|
+
# However, you can specify a different API version by passing it in the
|
448
469
|
# `version` parameter. If the Environments service is
|
449
470
|
# supported by that API version, and the corresponding gem is available, the
|
450
471
|
# appropriate versioned client will be returned.
|
472
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
473
|
+
# the `transport` parameter.
|
451
474
|
#
|
452
475
|
# ## About Environments
|
453
476
|
#
|
454
|
-
# Service for managing
|
477
|
+
# Service for managing
|
478
|
+
# Environments.
|
455
479
|
#
|
456
480
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
457
481
|
# Defaults to `:v3`.
|
458
|
-
# @
|
482
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
483
|
+
# @return [::Object] A client object for the specified version.
|
459
484
|
#
|
460
|
-
def self.environments version: :v3, &block
|
485
|
+
def self.environments version: :v3, transport: :grpc, &block
|
461
486
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
462
487
|
|
463
488
|
package_name = Google::Cloud::Dialogflow::CX
|
464
489
|
.constants
|
465
490
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
466
491
|
.first
|
467
|
-
|
468
|
-
|
492
|
+
service_module = Google::Cloud::Dialogflow::CX.const_get(package_name).const_get(:Environments)
|
493
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
494
|
+
service_module.const_get(:Client).new(&block)
|
469
495
|
end
|
470
496
|
|
471
497
|
##
|
@@ -473,11 +499,13 @@ module Google
|
|
473
499
|
#
|
474
500
|
# By default, this returns an instance of
|
475
501
|
# [Google::Cloud::Dialogflow::CX::V3::Experiments::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-cx-v3/latest/Google/Cloud/Dialogflow/CX/V3/Experiments/Client.html)
|
476
|
-
# for version V3 of the API.
|
477
|
-
# However, you can specify
|
502
|
+
# for a gRPC client for version V3 of the API.
|
503
|
+
# However, you can specify a different API version by passing it in the
|
478
504
|
# `version` parameter. If the Experiments service is
|
479
505
|
# supported by that API version, and the corresponding gem is available, the
|
480
506
|
# appropriate versioned client will be returned.
|
507
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
508
|
+
# the `transport` parameter.
|
481
509
|
#
|
482
510
|
# ## About Experiments
|
483
511
|
#
|
@@ -485,17 +513,53 @@ module Google
|
|
485
513
|
#
|
486
514
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
487
515
|
# Defaults to `:v3`.
|
488
|
-
# @
|
516
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
517
|
+
# @return [::Object] A client object for the specified version.
|
518
|
+
#
|
519
|
+
def self.experiments version: :v3, transport: :grpc, &block
|
520
|
+
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
521
|
+
|
522
|
+
package_name = Google::Cloud::Dialogflow::CX
|
523
|
+
.constants
|
524
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
525
|
+
.first
|
526
|
+
service_module = Google::Cloud::Dialogflow::CX.const_get(package_name).const_get(:Experiments)
|
527
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
528
|
+
service_module.const_get(:Client).new(&block)
|
529
|
+
end
|
530
|
+
|
531
|
+
##
|
532
|
+
# Create a new client object for SecuritySettingsService.
|
533
|
+
#
|
534
|
+
# By default, this returns an instance of
|
535
|
+
# [Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-cx-v3/latest/Google/Cloud/Dialogflow/CX/V3/SecuritySettingsService/Client.html)
|
536
|
+
# for a gRPC client for version V3 of the API.
|
537
|
+
# However, you can specify a different API version by passing it in the
|
538
|
+
# `version` parameter. If the SecuritySettingsService service is
|
539
|
+
# supported by that API version, and the corresponding gem is available, the
|
540
|
+
# appropriate versioned client will be returned.
|
541
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
542
|
+
# the `transport` parameter.
|
543
|
+
#
|
544
|
+
# ## About SecuritySettingsService
|
545
|
+
#
|
546
|
+
# Service for managing security settings for Dialogflow.
|
547
|
+
#
|
548
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
549
|
+
# Defaults to `:v3`.
|
550
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
551
|
+
# @return [::Object] A client object for the specified version.
|
489
552
|
#
|
490
|
-
def self.
|
553
|
+
def self.security_settings_service version: :v3, transport: :grpc, &block
|
491
554
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
492
555
|
|
493
556
|
package_name = Google::Cloud::Dialogflow::CX
|
494
557
|
.constants
|
495
558
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
496
559
|
.first
|
497
|
-
|
498
|
-
|
560
|
+
service_module = Google::Cloud::Dialogflow::CX.const_get(package_name).const_get(:SecuritySettingsService)
|
561
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
562
|
+
service_module.const_get(:Client).new(&block)
|
499
563
|
end
|
500
564
|
|
501
565
|
##
|
@@ -503,11 +567,13 @@ module Google
|
|
503
567
|
#
|
504
568
|
# By default, this returns an instance of
|
505
569
|
# [Google::Cloud::Dialogflow::CX::V3::Versions::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-cx-v3/latest/Google/Cloud/Dialogflow/CX/V3/Versions/Client.html)
|
506
|
-
# for version V3 of the API.
|
507
|
-
# However, you can specify
|
570
|
+
# for a gRPC client for version V3 of the API.
|
571
|
+
# However, you can specify a different API version by passing it in the
|
508
572
|
# `version` parameter. If the Versions service is
|
509
573
|
# supported by that API version, and the corresponding gem is available, the
|
510
574
|
# appropriate versioned client will be returned.
|
575
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
576
|
+
# the `transport` parameter.
|
511
577
|
#
|
512
578
|
# ## About Versions
|
513
579
|
#
|
@@ -515,17 +581,19 @@ module Google
|
|
515
581
|
#
|
516
582
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
517
583
|
# Defaults to `:v3`.
|
518
|
-
# @
|
584
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
585
|
+
# @return [::Object] A client object for the specified version.
|
519
586
|
#
|
520
|
-
def self.versions version: :v3, &block
|
587
|
+
def self.versions version: :v3, transport: :grpc, &block
|
521
588
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
522
589
|
|
523
590
|
package_name = Google::Cloud::Dialogflow::CX
|
524
591
|
.constants
|
525
592
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
526
593
|
.first
|
527
|
-
|
528
|
-
|
594
|
+
service_module = Google::Cloud::Dialogflow::CX.const_get(package_name).const_get(:Versions)
|
595
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
596
|
+
service_module.const_get(:Client).new(&block)
|
529
597
|
end
|
530
598
|
|
531
599
|
##
|
@@ -545,7 +613,7 @@ module Google
|
|
545
613
|
# * `timeout` (*type:* `Numeric`) -
|
546
614
|
# Default timeout in seconds.
|
547
615
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) -
|
548
|
-
# Additional
|
616
|
+
# Additional headers to be sent with the call.
|
549
617
|
# * `retry_policy` (*type:* `Hash`) -
|
550
618
|
# The retry policy. The value is a hash with the following keys:
|
551
619
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dialogflow-cx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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-03-09 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
|
@@ -186,14 +186,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
186
186
|
requirements:
|
187
187
|
- - ">="
|
188
188
|
- !ruby/object:Gem::Version
|
189
|
-
version: '2.
|
189
|
+
version: '2.6'
|
190
190
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
195
|
requirements: []
|
196
|
-
rubygems_version: 3.
|
196
|
+
rubygems_version: 3.4.2
|
197
197
|
signing_key:
|
198
198
|
specification_version: 4
|
199
199
|
summary: API Client library for the Dialogflow CX API
|