google-cloud-dialogflow-cx 0.2.0 → 0.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1cc25239827c25c48f9e9c845885e743d9b524ec1055f11f55b807250791cf56
4
- data.tar.gz: a07d5d4e2b0b56dbb9c451f72ea0bde088cf0e91d7a4167f39768bbc5c848fed
3
+ metadata.gz: af29bdf37b4e3c94bd4e5f2e1991f19a92743205e043d8b48cc1c062f2c4fb6d
4
+ data.tar.gz: ce57b9e2861d9a186c1aac901c2a94de71c949da1509c2c2210126d5b59d2b4e
5
5
  SHA512:
6
- metadata.gz: a745266205e101479f16187bde7561c8df54b53c6320c704ca2a4c9de5e9a9240f76ebbd6fc47129e6274cbdb1f0f710e767400e137cd47c4f636fdcceb025d7
7
- data.tar.gz: a218a42750e8eea9fa7c963b31d978aaba167c215fb8b03685ff270013f2c1ac22c16cfa2e6ea2c4dac89352506f30a1cde1aa5d0919ebf4c1e0793014f12870
6
+ metadata.gz: 5c176b734552f7cd3c28120a890be2b879038c998ef600971d9c0c50b7d6fcd458aa903b7c6135e12b024c2acb19c93b9ec2a1a81780e18e72b98fb96944e2d6
7
+ data.tar.gz: 81b87dffdc627ce21d7504660aea682a8364091dabce8bf9b7e95f3c6b4ec2c113cef518d627805fb1fbc182c5cf0974e4a59ae19e3bef5afefa70750ed708d8
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Dialogflow CX API
2
+ --title="Dialogflow CX API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
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 Developers Console][dev-console].
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 slide-out navigation tray and select **API Manager**. From
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
- You should see a screen like one of the following.
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, and click "Generate
164
- new JSON key":
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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dialogflow
23
23
  module CX
24
- VERSION = "0.2.0"
24
+ VERSION = "0.2.1"
25
25
  end
26
26
  end
27
27
  end
@@ -409,25 +409,25 @@ module Google
409
409
  end
410
410
 
411
411
  ##
412
- # Create a new client object for Environments.
412
+ # Create a new client object for Webhooks.
413
413
  #
414
414
  # By default, this returns an instance of
415
- # [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)
415
+ # [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
416
  # for version V3 of the API.
417
417
  # However, you can specify specify a different API version by passing it in the
418
- # `version` parameter. If the Environments service is
418
+ # `version` parameter. If the Webhooks service is
419
419
  # supported by that API version, and the corresponding gem is available, the
420
420
  # appropriate versioned client will be returned.
421
421
  #
422
- # ## About Environments
422
+ # ## About Webhooks
423
423
  #
424
- # Service for managing Environments.
424
+ # Service for managing Webhooks.
425
425
  #
426
426
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
427
427
  # Defaults to `:v3`.
428
- # @return [Environments::Client] A client object for the specified version.
428
+ # @return [Webhooks::Client] A client object for the specified version.
429
429
  #
430
- def self.environments version: :v3, &block
430
+ def self.webhooks version: :v3, &block
431
431
  require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
432
432
 
433
433
  package_name = Google::Cloud::Dialogflow::CX
@@ -435,29 +435,29 @@ module Google
435
435
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
436
436
  .first
437
437
  package_module = Google::Cloud::Dialogflow::CX.const_get package_name
438
- package_module.const_get(:Environments).const_get(:Client).new(&block)
438
+ package_module.const_get(:Webhooks).const_get(:Client).new(&block)
439
439
  end
440
440
 
441
441
  ##
442
- # Create a new client object for Experiments.
442
+ # Create a new client object for Environments.
443
443
  #
444
444
  # By default, this returns an instance of
445
- # [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)
445
+ # [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
446
  # for version V3 of the API.
447
447
  # However, you can specify specify a different API version by passing it in the
448
- # `version` parameter. If the Experiments service is
448
+ # `version` parameter. If the Environments service is
449
449
  # supported by that API version, and the corresponding gem is available, the
450
450
  # appropriate versioned client will be returned.
451
451
  #
452
- # ## About Experiments
452
+ # ## About Environments
453
453
  #
454
- # Service for managing Experiments.
454
+ # Service for managing Environments.
455
455
  #
456
456
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
457
457
  # Defaults to `:v3`.
458
- # @return [Experiments::Client] A client object for the specified version.
458
+ # @return [Environments::Client] A client object for the specified version.
459
459
  #
460
- def self.experiments version: :v3, &block
460
+ def self.environments version: :v3, &block
461
461
  require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
462
462
 
463
463
  package_name = Google::Cloud::Dialogflow::CX
@@ -465,29 +465,29 @@ module Google
465
465
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
466
466
  .first
467
467
  package_module = Google::Cloud::Dialogflow::CX.const_get package_name
468
- package_module.const_get(:Experiments).const_get(:Client).new(&block)
468
+ package_module.const_get(:Environments).const_get(:Client).new(&block)
469
469
  end
470
470
 
471
471
  ##
472
- # Create a new client object for Webhooks.
472
+ # Create a new client object for Experiments.
473
473
  #
474
474
  # By default, this returns an instance of
475
- # [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)
475
+ # [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
476
  # for version V3 of the API.
477
477
  # However, you can specify specify a different API version by passing it in the
478
- # `version` parameter. If the Webhooks service is
478
+ # `version` parameter. If the Experiments service is
479
479
  # supported by that API version, and the corresponding gem is available, the
480
480
  # appropriate versioned client will be returned.
481
481
  #
482
- # ## About Webhooks
482
+ # ## About Experiments
483
483
  #
484
- # Service for managing Webhooks.
484
+ # Service for managing Experiments.
485
485
  #
486
486
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
487
487
  # Defaults to `:v3`.
488
- # @return [Webhooks::Client] A client object for the specified version.
488
+ # @return [Experiments::Client] A client object for the specified version.
489
489
  #
490
- def self.webhooks version: :v3, &block
490
+ def self.experiments version: :v3, &block
491
491
  require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
492
492
 
493
493
  package_name = Google::Cloud::Dialogflow::CX
@@ -495,7 +495,7 @@ module Google
495
495
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
496
496
  .first
497
497
  package_module = Google::Cloud::Dialogflow::CX.const_get package_name
498
- package_module.const_get(:Webhooks).const_get(:Client).new(&block)
498
+ package_module.const_get(:Experiments).const_get(:Client).new(&block)
499
499
  end
500
500
 
501
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.2.0
4
+ version: 0.2.1
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-10-21 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -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.2.17
196
+ rubygems_version: 3.3.4
197
197
  signing_key:
198
198
  specification_version: 4
199
199
  summary: API Client library for the Dialogflow CX API