google-cloud-dialogflow-cx 0.1.0 → 0.3.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/README.md +6 -6
- data/lib/google/cloud/dialogflow/cx/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx.rb +84 -24
- 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: 7ea79280af95ce080e3dd766ca0b12e9d0bd83c9849aa49ff6ffe1db879fed7c
|
4
|
+
data.tar.gz: ab498c472d4cdf3dc67e0306ee0df7b8818b90df9dac4c1dc10988b784b677a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa08c0a5801cf5fb5d7522adb858ccebc137e089cb72b4be4877bb1f0e6282e2847bdc79ac96fec72692a6ddbbf7742bb91048cabaf4d955854175c426e1b4c2
|
7
|
+
data.tar.gz: c1808db5a18dc6a8760b8e08a480a524529b5b3f00cbcd5f4da091c3662ab5a9786c3dac11e2328f84e0afb8fb5a46e959c9f4a17901aaaabb4c106d94fd3f61
|
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/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
|
@@ -62,14 +62,14 @@ end
|
|
62
62
|
|
63
63
|
## Supported Ruby Versions
|
64
64
|
|
65
|
-
This library is supported on Ruby 2.
|
65
|
+
This library is supported on Ruby 2.6+.
|
66
66
|
|
67
67
|
Google provides official support for Ruby versions that are actively supported
|
68
68
|
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
|
-
|
69
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
70
|
+
still work, but are unsupported and not recommended. See
|
71
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
72
|
+
support schedule.
|
73
73
|
|
74
74
|
## Which client should I use?
|
75
75
|
|
@@ -106,25 +106,25 @@ module Google
|
|
106
106
|
end
|
107
107
|
|
108
108
|
##
|
109
|
-
# Create a new client object for
|
109
|
+
# Create a new client object for Agents.
|
110
110
|
#
|
111
111
|
# By default, this returns an instance of
|
112
|
-
# [Google::Cloud::Dialogflow::CX::V3::
|
112
|
+
# [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
113
|
# for version V3 of the API.
|
114
114
|
# However, you can specify specify a different API version by passing it in the
|
115
|
-
# `version` parameter. If the
|
115
|
+
# `version` parameter. If the Agents service is
|
116
116
|
# supported by that API version, and the corresponding gem is available, the
|
117
117
|
# appropriate versioned client will be returned.
|
118
118
|
#
|
119
|
-
# ## About
|
119
|
+
# ## About Agents
|
120
120
|
#
|
121
|
-
# Service for managing
|
121
|
+
# Service for managing Agents.
|
122
122
|
#
|
123
123
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
124
124
|
# Defaults to `:v3`.
|
125
|
-
# @return [
|
125
|
+
# @return [Agents::Client] A client object for the specified version.
|
126
126
|
#
|
127
|
-
def self.
|
127
|
+
def self.agents version: :v3, &block
|
128
128
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
129
129
|
|
130
130
|
package_name = Google::Cloud::Dialogflow::CX
|
@@ -132,29 +132,29 @@ module Google
|
|
132
132
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
133
133
|
.first
|
134
134
|
package_module = Google::Cloud::Dialogflow::CX.const_get package_name
|
135
|
-
package_module.const_get(:
|
135
|
+
package_module.const_get(:Agents).const_get(:Client).new(&block)
|
136
136
|
end
|
137
137
|
|
138
138
|
##
|
139
|
-
# Create a new client object for
|
139
|
+
# Create a new client object for Changelogs.
|
140
140
|
#
|
141
141
|
# By default, this returns an instance of
|
142
|
-
# [Google::Cloud::Dialogflow::CX::V3::
|
142
|
+
# [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
143
|
# for version V3 of the API.
|
144
144
|
# However, you can specify specify a different API version by passing it in the
|
145
|
-
# `version` parameter. If the
|
145
|
+
# `version` parameter. If the Changelogs service is
|
146
146
|
# supported by that API version, and the corresponding gem is available, the
|
147
147
|
# appropriate versioned client will be returned.
|
148
148
|
#
|
149
|
-
# ## About
|
149
|
+
# ## About Changelogs
|
150
150
|
#
|
151
|
-
# Service for managing
|
151
|
+
# Service for managing Changelogs.
|
152
152
|
#
|
153
153
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
154
154
|
# Defaults to `:v3`.
|
155
|
-
# @return [
|
155
|
+
# @return [Changelogs::Client] A client object for the specified version.
|
156
156
|
#
|
157
|
-
def self.
|
157
|
+
def self.changelogs version: :v3, &block
|
158
158
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
159
159
|
|
160
160
|
package_name = Google::Cloud::Dialogflow::CX
|
@@ -162,7 +162,37 @@ module Google
|
|
162
162
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
163
163
|
.first
|
164
164
|
package_module = Google::Cloud::Dialogflow::CX.const_get package_name
|
165
|
-
package_module.const_get(:
|
165
|
+
package_module.const_get(:Changelogs).const_get(:Client).new(&block)
|
166
|
+
end
|
167
|
+
|
168
|
+
##
|
169
|
+
# Create a new client object for Deployments.
|
170
|
+
#
|
171
|
+
# By default, this returns an instance of
|
172
|
+
# [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 specify a different API version by passing it in the
|
175
|
+
# `version` parameter. If the Deployments service is
|
176
|
+
# supported by that API version, and the corresponding gem is available, the
|
177
|
+
# appropriate versioned client will be returned.
|
178
|
+
#
|
179
|
+
# ## About Deployments
|
180
|
+
#
|
181
|
+
# Service for managing Deployments.
|
182
|
+
#
|
183
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
184
|
+
# Defaults to `:v3`.
|
185
|
+
# @return [Deployments::Client] A client object for the specified version.
|
186
|
+
#
|
187
|
+
def self.deployments version: :v3, &block
|
188
|
+
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
189
|
+
|
190
|
+
package_name = Google::Cloud::Dialogflow::CX
|
191
|
+
.constants
|
192
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
193
|
+
.first
|
194
|
+
package_module = Google::Cloud::Dialogflow::CX.const_get package_name
|
195
|
+
package_module.const_get(:Deployments).const_get(:Client).new(&block)
|
166
196
|
end
|
167
197
|
|
168
198
|
##
|
@@ -348,6 +378,36 @@ module Google
|
|
348
378
|
package_module.const_get(:TestCases).const_get(:Client).new(&block)
|
349
379
|
end
|
350
380
|
|
381
|
+
##
|
382
|
+
# Create a new client object for Webhooks.
|
383
|
+
#
|
384
|
+
# By default, this returns an instance of
|
385
|
+
# [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 specify a different API version by passing it in the
|
388
|
+
# `version` parameter. If the Webhooks service is
|
389
|
+
# supported by that API version, and the corresponding gem is available, the
|
390
|
+
# appropriate versioned client will be returned.
|
391
|
+
#
|
392
|
+
# ## About Webhooks
|
393
|
+
#
|
394
|
+
# Service for managing Webhooks.
|
395
|
+
#
|
396
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
397
|
+
# Defaults to `:v3`.
|
398
|
+
# @return [Webhooks::Client] A client object for the specified version.
|
399
|
+
#
|
400
|
+
def self.webhooks version: :v3, &block
|
401
|
+
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
402
|
+
|
403
|
+
package_name = Google::Cloud::Dialogflow::CX
|
404
|
+
.constants
|
405
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
406
|
+
.first
|
407
|
+
package_module = Google::Cloud::Dialogflow::CX.const_get package_name
|
408
|
+
package_module.const_get(:Webhooks).const_get(:Client).new(&block)
|
409
|
+
end
|
410
|
+
|
351
411
|
##
|
352
412
|
# Create a new client object for Environments.
|
353
413
|
#
|
@@ -409,25 +469,25 @@ module Google
|
|
409
469
|
end
|
410
470
|
|
411
471
|
##
|
412
|
-
# Create a new client object for
|
472
|
+
# Create a new client object for SecuritySettingsService.
|
413
473
|
#
|
414
474
|
# By default, this returns an instance of
|
415
|
-
# [Google::Cloud::Dialogflow::CX::V3::
|
475
|
+
# [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)
|
416
476
|
# for version V3 of the API.
|
417
477
|
# However, you can specify specify a different API version by passing it in the
|
418
|
-
# `version` parameter. If the
|
478
|
+
# `version` parameter. If the SecuritySettingsService service is
|
419
479
|
# supported by that API version, and the corresponding gem is available, the
|
420
480
|
# appropriate versioned client will be returned.
|
421
481
|
#
|
422
|
-
# ## About
|
482
|
+
# ## About SecuritySettingsService
|
423
483
|
#
|
424
|
-
# Service for managing
|
484
|
+
# Service for managing security settings for Dialogflow.
|
425
485
|
#
|
426
486
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
427
487
|
# Defaults to `:v3`.
|
428
|
-
# @return [
|
488
|
+
# @return [SecuritySettingsService::Client] A client object for the specified version.
|
429
489
|
#
|
430
|
-
def self.
|
490
|
+
def self.security_settings_service version: :v3, &block
|
431
491
|
require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
|
432
492
|
|
433
493
|
package_name = Google::Cloud::Dialogflow::CX
|
@@ -435,7 +495,7 @@ module Google
|
|
435
495
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
436
496
|
.first
|
437
497
|
package_module = Google::Cloud::Dialogflow::CX.const_get package_name
|
438
|
-
package_module.const_get(:
|
498
|
+
package_module.const_get(:SecuritySettingsService).const_get(:Client).new(&block)
|
439
499
|
end
|
440
500
|
|
441
501
|
##
|
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.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:
|
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.3'
|
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.3'
|
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.3.14
|
197
197
|
signing_key:
|
198
198
|
specification_version: 4
|
199
199
|
summary: API Client library for the Dialogflow CX API
|