google-cloud-dialogflow 1.2.0 → 1.3.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/MIGRATING.md +1 -1
- data/lib/google/cloud/dialogflow.rb +60 -0
- data/lib/google/cloud/dialogflow/version.rb +1 -1
- 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: 52e48b0ee78c9bbf6e482267696e240b0acf24083f68da2f286ce627b468bd96
|
4
|
+
data.tar.gz: 2d9f547058339df85b66561738561d08ac40221067a17b98eb0f00a4a6ff49a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec42693762751785fdbc41598b3dda558ec783bb70da2ad15fe104cdc98bf19938654394a2080e5267915d2670fb2476d95bf8d88e5b1b4669a02dff62d30322
|
7
|
+
data.tar.gz: a47fb63ffc9291507f4d7ed1b608e43125f162cfa8e872358256c35b352d6c049b65f574609c2c6076b09cd4692461e4ba2b1d65ee9a48ce0a6c8bf9c35b3a68
|
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
|
+
{file:https://github.com/grpc/grpc/blob/master/doc/statuscodes.md gRPC error codes}
|
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
|
@@ -377,6 +377,36 @@ module Google
|
|
377
377
|
package_module.const_get(:Documents).const_get(:Client).new(&block)
|
378
378
|
end
|
379
379
|
|
380
|
+
##
|
381
|
+
# Create a new client object for Fulfillments.
|
382
|
+
#
|
383
|
+
# By default, this returns an instance of
|
384
|
+
# [Google::Cloud::Dialogflow::V2::Fulfillments::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/Fulfillments/Client.html)
|
385
|
+
# for version V2 of the API.
|
386
|
+
# However, you can specify specify a different API version by passing it in the
|
387
|
+
# `version` parameter. If the Fulfillments service is
|
388
|
+
# supported by that API version, and the corresponding gem is available, the
|
389
|
+
# appropriate versioned client will be returned.
|
390
|
+
#
|
391
|
+
# ## About Fulfillments
|
392
|
+
#
|
393
|
+
# Service for managing Fulfillments.
|
394
|
+
#
|
395
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
396
|
+
# Defaults to `:v2`.
|
397
|
+
# @return [Fulfillments::Client] A client object for the specified version.
|
398
|
+
#
|
399
|
+
def self.fulfillments version: :v2, &block
|
400
|
+
require "google/cloud/dialogflow/#{version.to_s.downcase}"
|
401
|
+
|
402
|
+
package_name = Google::Cloud::Dialogflow
|
403
|
+
.constants
|
404
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
405
|
+
.first
|
406
|
+
package_module = Google::Cloud::Dialogflow.const_get package_name
|
407
|
+
package_module.const_get(:Fulfillments).const_get(:Client).new(&block)
|
408
|
+
end
|
409
|
+
|
380
410
|
##
|
381
411
|
# Create a new client object for Environments.
|
382
412
|
#
|
@@ -437,6 +467,36 @@ module Google
|
|
437
467
|
package_module.const_get(:KnowledgeBases).const_get(:Client).new(&block)
|
438
468
|
end
|
439
469
|
|
470
|
+
##
|
471
|
+
# Create a new client object for Versions.
|
472
|
+
#
|
473
|
+
# By default, this returns an instance of
|
474
|
+
# [Google::Cloud::Dialogflow::V2::Versions::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/Versions/Client.html)
|
475
|
+
# for version V2 of the API.
|
476
|
+
# However, you can specify specify a different API version by passing it in the
|
477
|
+
# `version` parameter. If the Versions service is
|
478
|
+
# supported by that API version, and the corresponding gem is available, the
|
479
|
+
# appropriate versioned client will be returned.
|
480
|
+
#
|
481
|
+
# ## About Versions
|
482
|
+
#
|
483
|
+
# Service for managing Versions.
|
484
|
+
#
|
485
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
486
|
+
# Defaults to `:v2`.
|
487
|
+
# @return [Versions::Client] A client object for the specified version.
|
488
|
+
#
|
489
|
+
def self.versions version: :v2, &block
|
490
|
+
require "google/cloud/dialogflow/#{version.to_s.downcase}"
|
491
|
+
|
492
|
+
package_name = Google::Cloud::Dialogflow
|
493
|
+
.constants
|
494
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
495
|
+
.first
|
496
|
+
package_module = Google::Cloud::Dialogflow.const_get package_name
|
497
|
+
package_module.const_get(:Versions).const_get(:Client).new(&block)
|
498
|
+
end
|
499
|
+
|
440
500
|
##
|
441
501
|
# Configure the google-cloud-dialogflow library.
|
442
502
|
#
|
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.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.8'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
40
|
+
version: '0.8'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: google-style
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
187
|
- !ruby/object:Gem::Version
|
188
188
|
version: '0'
|
189
189
|
requirements: []
|
190
|
-
rubygems_version: 3.2.
|
190
|
+
rubygems_version: 3.2.17
|
191
191
|
signing_key:
|
192
192
|
specification_version: 4
|
193
193
|
summary: API Client library for the Dialogflow API
|