google-cloud-dialogflow-cx 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +0 -26
- data/lib/google/cloud/dialogflow/cx/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx.rb +170 -102
- metadata +5 -5
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
@@ -34,32 +34,6 @@ 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
39
|
This library is supported on Ruby 2.6+.
|
@@ -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,17 +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
|
-
|
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)
|
106
114
|
end
|
107
115
|
|
108
116
|
##
|
@@ -110,11 +118,13 @@ module Google
|
|
110
118
|
#
|
111
119
|
# By default, this returns an instance of
|
112
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)
|
113
|
-
# for version V3 of the API.
|
114
|
-
# 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
|
115
123
|
# `version` parameter. If the Agents service is
|
116
124
|
# supported by that API version, and the corresponding gem is available, the
|
117
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.
|
118
128
|
#
|
119
129
|
# ## About Agents
|
120
130
|
#
|
@@ -122,17 +132,19 @@ module Google
|
|
122
132
|
#
|
123
133
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
124
134
|
# Defaults to `:v3`.
|
125
|
-
# @
|
135
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
136
|
+
# @return [::Object] A client object for the specified version.
|
126
137
|
#
|
127
|
-
def self.agents version: :v3, &block
|
138
|
+
def self.agents version: :v3, transport: :grpc, &block
|
128
139
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
129
140
|
|
130
141
|
package_name = Google::Cloud::Dialogflow::CX
|
131
142
|
.constants
|
132
143
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
133
144
|
.first
|
134
|
-
|
135
|
-
|
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)
|
136
148
|
end
|
137
149
|
|
138
150
|
##
|
@@ -140,11 +152,13 @@ module Google
|
|
140
152
|
#
|
141
153
|
# By default, this returns an instance of
|
142
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)
|
143
|
-
# for version V3 of the API.
|
144
|
-
# 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
|
145
157
|
# `version` parameter. If the Changelogs service is
|
146
158
|
# supported by that API version, and the corresponding gem is available, the
|
147
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.
|
148
162
|
#
|
149
163
|
# ## About Changelogs
|
150
164
|
#
|
@@ -152,17 +166,19 @@ module Google
|
|
152
166
|
#
|
153
167
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
154
168
|
# Defaults to `:v3`.
|
155
|
-
# @
|
169
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
170
|
+
# @return [::Object] A client object for the specified version.
|
156
171
|
#
|
157
|
-
def self.changelogs version: :v3, &block
|
172
|
+
def self.changelogs version: :v3, transport: :grpc, &block
|
158
173
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
159
174
|
|
160
175
|
package_name = Google::Cloud::Dialogflow::CX
|
161
176
|
.constants
|
162
177
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
163
178
|
.first
|
164
|
-
|
165
|
-
|
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)
|
166
182
|
end
|
167
183
|
|
168
184
|
##
|
@@ -170,11 +186,13 @@ module Google
|
|
170
186
|
#
|
171
187
|
# By default, this returns an instance of
|
172
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)
|
173
|
-
# for version V3 of the API.
|
174
|
-
# 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
|
175
191
|
# `version` parameter. If the Deployments service is
|
176
192
|
# supported by that API version, and the corresponding gem is available, the
|
177
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.
|
178
196
|
#
|
179
197
|
# ## About Deployments
|
180
198
|
#
|
@@ -182,17 +200,19 @@ module Google
|
|
182
200
|
#
|
183
201
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
184
202
|
# Defaults to `:v3`.
|
185
|
-
# @
|
203
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
204
|
+
# @return [::Object] A client object for the specified version.
|
186
205
|
#
|
187
|
-
def self.deployments version: :v3, &block
|
206
|
+
def self.deployments version: :v3, transport: :grpc, &block
|
188
207
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
189
208
|
|
190
209
|
package_name = Google::Cloud::Dialogflow::CX
|
191
210
|
.constants
|
192
211
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
193
212
|
.first
|
194
|
-
|
195
|
-
|
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)
|
196
216
|
end
|
197
217
|
|
198
218
|
##
|
@@ -200,11 +220,13 @@ module Google
|
|
200
220
|
#
|
201
221
|
# By default, this returns an instance of
|
202
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)
|
203
|
-
# for version V3 of the API.
|
204
|
-
# 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
|
205
225
|
# `version` parameter. If the EntityTypes service is
|
206
226
|
# supported by that API version, and the corresponding gem is available, the
|
207
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.
|
208
230
|
#
|
209
231
|
# ## About EntityTypes
|
210
232
|
#
|
@@ -212,17 +234,19 @@ module Google
|
|
212
234
|
#
|
213
235
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
214
236
|
# Defaults to `:v3`.
|
215
|
-
# @
|
237
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
238
|
+
# @return [::Object] A client object for the specified version.
|
216
239
|
#
|
217
|
-
def self.entity_types version: :v3, &block
|
240
|
+
def self.entity_types version: :v3, transport: :grpc, &block
|
218
241
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
219
242
|
|
220
243
|
package_name = Google::Cloud::Dialogflow::CX
|
221
244
|
.constants
|
222
245
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
223
246
|
.first
|
224
|
-
|
225
|
-
|
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)
|
226
250
|
end
|
227
251
|
|
228
252
|
##
|
@@ -230,11 +254,13 @@ module Google
|
|
230
254
|
#
|
231
255
|
# By default, this returns an instance of
|
232
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)
|
233
|
-
# for version V3 of the API.
|
234
|
-
# 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
|
235
259
|
# `version` parameter. If the Intents service is
|
236
260
|
# supported by that API version, and the corresponding gem is available, the
|
237
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.
|
238
264
|
#
|
239
265
|
# ## About Intents
|
240
266
|
#
|
@@ -242,17 +268,19 @@ module Google
|
|
242
268
|
#
|
243
269
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
244
270
|
# Defaults to `:v3`.
|
245
|
-
# @
|
271
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
272
|
+
# @return [::Object] A client object for the specified version.
|
246
273
|
#
|
247
|
-
def self.intents version: :v3, &block
|
274
|
+
def self.intents version: :v3, transport: :grpc, &block
|
248
275
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
249
276
|
|
250
277
|
package_name = Google::Cloud::Dialogflow::CX
|
251
278
|
.constants
|
252
279
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
253
280
|
.first
|
254
|
-
|
255
|
-
|
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)
|
256
284
|
end
|
257
285
|
|
258
286
|
##
|
@@ -260,29 +288,34 @@ module Google
|
|
260
288
|
#
|
261
289
|
# By default, this returns an instance of
|
262
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)
|
263
|
-
# for version V3 of the API.
|
264
|
-
# 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
|
265
293
|
# `version` parameter. If the SessionEntityTypes service is
|
266
294
|
# supported by that API version, and the corresponding gem is available, the
|
267
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.
|
268
298
|
#
|
269
299
|
# ## About SessionEntityTypes
|
270
300
|
#
|
271
|
-
# Service for managing
|
301
|
+
# Service for managing
|
302
|
+
# SessionEntityTypes.
|
272
303
|
#
|
273
304
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
274
305
|
# Defaults to `:v3`.
|
275
|
-
# @
|
306
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
307
|
+
# @return [::Object] A client object for the specified version.
|
276
308
|
#
|
277
|
-
def self.session_entity_types version: :v3, &block
|
309
|
+
def self.session_entity_types version: :v3, transport: :grpc, &block
|
278
310
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
279
311
|
|
280
312
|
package_name = Google::Cloud::Dialogflow::CX
|
281
313
|
.constants
|
282
314
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
283
315
|
.first
|
284
|
-
|
285
|
-
|
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)
|
286
319
|
end
|
287
320
|
|
288
321
|
##
|
@@ -290,31 +323,36 @@ module Google
|
|
290
323
|
#
|
291
324
|
# By default, this returns an instance of
|
292
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)
|
293
|
-
# for version V3 of the API.
|
294
|
-
# 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
|
295
328
|
# `version` parameter. If the Sessions service is
|
296
329
|
# supported by that API version, and the corresponding gem is available, the
|
297
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.
|
298
333
|
#
|
299
334
|
# ## About Sessions
|
300
335
|
#
|
301
336
|
# A session represents an interaction with a user. You retrieve user input
|
302
|
-
# and pass it to the
|
303
|
-
#
|
337
|
+
# and pass it to the
|
338
|
+
# DetectIntent method to
|
339
|
+
# determine user intent and respond.
|
304
340
|
#
|
305
341
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
306
342
|
# Defaults to `:v3`.
|
307
|
-
# @
|
343
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
344
|
+
# @return [::Object] A client object for the specified version.
|
308
345
|
#
|
309
|
-
def self.sessions version: :v3, &block
|
346
|
+
def self.sessions version: :v3, transport: :grpc, &block
|
310
347
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
311
348
|
|
312
349
|
package_name = Google::Cloud::Dialogflow::CX
|
313
350
|
.constants
|
314
351
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
315
352
|
.first
|
316
|
-
|
317
|
-
|
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)
|
318
356
|
end
|
319
357
|
|
320
358
|
##
|
@@ -322,29 +360,34 @@ module Google
|
|
322
360
|
#
|
323
361
|
# By default, this returns an instance of
|
324
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)
|
325
|
-
# for version V3 of the API.
|
326
|
-
# 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
|
327
365
|
# `version` parameter. If the TransitionRouteGroups service is
|
328
366
|
# supported by that API version, and the corresponding gem is available, the
|
329
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.
|
330
370
|
#
|
331
371
|
# ## About TransitionRouteGroups
|
332
372
|
#
|
333
|
-
# Service for managing
|
373
|
+
# Service for managing
|
374
|
+
# TransitionRouteGroups.
|
334
375
|
#
|
335
376
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
336
377
|
# Defaults to `:v3`.
|
337
|
-
# @
|
378
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
379
|
+
# @return [::Object] A client object for the specified version.
|
338
380
|
#
|
339
|
-
def self.transition_route_groups version: :v3, &block
|
381
|
+
def self.transition_route_groups version: :v3, transport: :grpc, &block
|
340
382
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
341
383
|
|
342
384
|
package_name = Google::Cloud::Dialogflow::CX
|
343
385
|
.constants
|
344
386
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
345
387
|
.first
|
346
|
-
|
347
|
-
|
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)
|
348
391
|
end
|
349
392
|
|
350
393
|
##
|
@@ -352,11 +395,13 @@ module Google
|
|
352
395
|
#
|
353
396
|
# By default, this returns an instance of
|
354
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)
|
355
|
-
# for version V3 of the API.
|
356
|
-
# 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
|
357
400
|
# `version` parameter. If the TestCases service is
|
358
401
|
# supported by that API version, and the corresponding gem is available, the
|
359
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.
|
360
405
|
#
|
361
406
|
# ## About TestCases
|
362
407
|
#
|
@@ -365,17 +410,19 @@ module Google
|
|
365
410
|
#
|
366
411
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
367
412
|
# Defaults to `:v3`.
|
368
|
-
# @
|
413
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
414
|
+
# @return [::Object] A client object for the specified version.
|
369
415
|
#
|
370
|
-
def self.test_cases version: :v3, &block
|
416
|
+
def self.test_cases version: :v3, transport: :grpc, &block
|
371
417
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
372
418
|
|
373
419
|
package_name = Google::Cloud::Dialogflow::CX
|
374
420
|
.constants
|
375
421
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
376
422
|
.first
|
377
|
-
|
378
|
-
|
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)
|
379
426
|
end
|
380
427
|
|
381
428
|
##
|
@@ -383,11 +430,13 @@ module Google
|
|
383
430
|
#
|
384
431
|
# By default, this returns an instance of
|
385
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)
|
386
|
-
# for version V3 of the API.
|
387
|
-
# 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
|
388
435
|
# `version` parameter. If the Webhooks service is
|
389
436
|
# supported by that API version, and the corresponding gem is available, the
|
390
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.
|
391
440
|
#
|
392
441
|
# ## About Webhooks
|
393
442
|
#
|
@@ -395,17 +444,19 @@ module Google
|
|
395
444
|
#
|
396
445
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
397
446
|
# Defaults to `:v3`.
|
398
|
-
# @
|
447
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
448
|
+
# @return [::Object] A client object for the specified version.
|
399
449
|
#
|
400
|
-
def self.webhooks version: :v3, &block
|
450
|
+
def self.webhooks version: :v3, transport: :grpc, &block
|
401
451
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
402
452
|
|
403
453
|
package_name = Google::Cloud::Dialogflow::CX
|
404
454
|
.constants
|
405
455
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
406
456
|
.first
|
407
|
-
|
408
|
-
|
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)
|
409
460
|
end
|
410
461
|
|
411
462
|
##
|
@@ -413,29 +464,34 @@ module Google
|
|
413
464
|
#
|
414
465
|
# By default, this returns an instance of
|
415
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)
|
416
|
-
# for version V3 of the API.
|
417
|
-
# 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
|
418
469
|
# `version` parameter. If the Environments service is
|
419
470
|
# supported by that API version, and the corresponding gem is available, the
|
420
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.
|
421
474
|
#
|
422
475
|
# ## About Environments
|
423
476
|
#
|
424
|
-
# Service for managing
|
477
|
+
# Service for managing
|
478
|
+
# Environments.
|
425
479
|
#
|
426
480
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
427
481
|
# Defaults to `:v3`.
|
428
|
-
# @
|
482
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
483
|
+
# @return [::Object] A client object for the specified version.
|
429
484
|
#
|
430
|
-
def self.environments version: :v3, &block
|
485
|
+
def self.environments version: :v3, transport: :grpc, &block
|
431
486
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
432
487
|
|
433
488
|
package_name = Google::Cloud::Dialogflow::CX
|
434
489
|
.constants
|
435
490
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
436
491
|
.first
|
437
|
-
|
438
|
-
|
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)
|
439
495
|
end
|
440
496
|
|
441
497
|
##
|
@@ -443,11 +499,13 @@ module Google
|
|
443
499
|
#
|
444
500
|
# By default, this returns an instance of
|
445
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)
|
446
|
-
# for version V3 of the API.
|
447
|
-
# 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
|
448
504
|
# `version` parameter. If the Experiments service is
|
449
505
|
# supported by that API version, and the corresponding gem is available, the
|
450
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.
|
451
509
|
#
|
452
510
|
# ## About Experiments
|
453
511
|
#
|
@@ -455,17 +513,19 @@ module Google
|
|
455
513
|
#
|
456
514
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
457
515
|
# Defaults to `:v3`.
|
458
|
-
# @
|
516
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
517
|
+
# @return [::Object] A client object for the specified version.
|
459
518
|
#
|
460
|
-
def self.experiments version: :v3, &block
|
519
|
+
def self.experiments version: :v3, transport: :grpc, &block
|
461
520
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
462
521
|
|
463
522
|
package_name = Google::Cloud::Dialogflow::CX
|
464
523
|
.constants
|
465
524
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
466
525
|
.first
|
467
|
-
|
468
|
-
|
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)
|
469
529
|
end
|
470
530
|
|
471
531
|
##
|
@@ -473,11 +533,13 @@ module Google
|
|
473
533
|
#
|
474
534
|
# By default, this returns an instance of
|
475
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)
|
476
|
-
# for version V3 of the API.
|
477
|
-
# However, you can specify
|
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
|
478
538
|
# `version` parameter. If the SecuritySettingsService service is
|
479
539
|
# supported by that API version, and the corresponding gem is available, the
|
480
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.
|
481
543
|
#
|
482
544
|
# ## About SecuritySettingsService
|
483
545
|
#
|
@@ -485,17 +547,19 @@ module Google
|
|
485
547
|
#
|
486
548
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
487
549
|
# Defaults to `:v3`.
|
488
|
-
# @
|
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.security_settings_service version: :v3, &block
|
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
|
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
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
|