google-cloud-dialogflow-cx 1.3.2 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c0eb89a39bbc9999c3f309d8715cdd60ad3a5ce93862aa5b1ffbabf4d786138
4
- data.tar.gz: ffc50f7ca6429dc986443ba6a221dd4a4f8d16c18ad8b31cc08c4c82e0abb4ad
3
+ metadata.gz: 7cc4ac659541f0524f270611d053d72a401ff14a360fc6b023bbd41a65870554
4
+ data.tar.gz: 1d1286e521a2501d51e66502190df51b0045df781520ecee9482382bf9adc5c4
5
5
  SHA512:
6
- metadata.gz: d6da31760be635d74a07cd11e094bcd94f51cc7b6ef579cbcab17c3203840c7dd00890e5d8d7f1bf4d254bf1b48153edf7b5fe3a0a3866174db1d16be436ceb3
7
- data.tar.gz: cf6a1706da6a05c8dbf0e47fd95fe3abb80966a8d28658126b07261f60950b2c92fee498143f32b9bfb896e196b9e9d56fa023781b2eaa39c21392b279a9ebe2
6
+ metadata.gz: a53a49b3f3fc4faa3ca21bb917205ea1cca6f909d8dd1966f31b815a6ec83f1a5ce946f3c061743cf2e9646449b4dbf41e42bf9f53848b5e5c383f4153488e88
7
+ data.tar.gz: 77b2ce530e34a36f1fcd33360fb82d87afa20e5becc2cd30e139210ddb654904b1e52a698857402b3616dd842eae0535ae794121d01123f5532dcb21a7a4f4d9
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dialogflow
23
23
  module CX
24
- VERSION = "1.3.2"
24
+ VERSION = "1.4.0"
25
25
  end
26
26
  end
27
27
  end
@@ -963,6 +963,76 @@ module Google
963
963
  false
964
964
  end
965
965
 
966
+ ##
967
+ # Create a new client object for Examples.
968
+ #
969
+ # By default, this returns an instance of
970
+ # [Google::Cloud::Dialogflow::CX::V3::Examples::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Examples-Client)
971
+ # for a gRPC client for version V3 of the API.
972
+ # However, you can specify a different API version by passing it in the
973
+ # `version` parameter. If the Examples service is
974
+ # supported by that API version, and the corresponding gem is available, the
975
+ # appropriate versioned client will be returned.
976
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
977
+ # the `transport` parameter.
978
+ #
979
+ # Raises an exception if the currently installed versioned client gem for the
980
+ # given API version does not support the given transport of the Examples service.
981
+ # You can determine whether the method will succeed by calling
982
+ # {Google::Cloud::Dialogflow::CX.examples_available?}.
983
+ #
984
+ # ## About Examples
985
+ #
986
+ # Service for managing Examples.
987
+ #
988
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
989
+ # Defaults to `:v3`.
990
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
991
+ # @return [::Object] A client object for the specified version.
992
+ #
993
+ def self.examples version: :v3, transport: :grpc, &block
994
+ require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
995
+
996
+ package_name = Google::Cloud::Dialogflow::CX
997
+ .constants
998
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
999
+ .first
1000
+ service_module = Google::Cloud::Dialogflow::CX.const_get(package_name).const_get(:Examples)
1001
+ service_module = service_module.const_get(:Rest) if transport == :rest
1002
+ service_module.const_get(:Client).new(&block)
1003
+ end
1004
+
1005
+ ##
1006
+ # Determines whether the Examples service is supported by the current client.
1007
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow::CX.examples}.
1008
+ # If false, that method will raise an exception. This could happen if the given
1009
+ # API version does not exist or does not support the Examples service,
1010
+ # or if the versioned client gem needs an update to support the Examples service.
1011
+ #
1012
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1013
+ # Defaults to `:v3`.
1014
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1015
+ # @return [boolean] Whether the service is available.
1016
+ #
1017
+ def self.examples_available? version: :v3, transport: :grpc
1018
+ require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
1019
+ package_name = Google::Cloud::Dialogflow::CX
1020
+ .constants
1021
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1022
+ .first
1023
+ return false unless package_name
1024
+ service_module = Google::Cloud::Dialogflow::CX.const_get package_name
1025
+ return false unless service_module.const_defined? :Examples
1026
+ service_module = service_module.const_get :Examples
1027
+ if transport == :rest
1028
+ return false unless service_module.const_defined? :Rest
1029
+ service_module = service_module.const_get :Rest
1030
+ end
1031
+ service_module.const_defined? :Client
1032
+ rescue ::LoadError
1033
+ false
1034
+ end
1035
+
966
1036
  ##
967
1037
  # Create a new client object for Experiments.
968
1038
  #
@@ -1103,6 +1173,76 @@ module Google
1103
1173
  false
1104
1174
  end
1105
1175
 
1176
+ ##
1177
+ # Create a new client object for Playbooks.
1178
+ #
1179
+ # By default, this returns an instance of
1180
+ # [Google::Cloud::Dialogflow::CX::V3::Playbooks::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Playbooks-Client)
1181
+ # for a gRPC client for version V3 of the API.
1182
+ # However, you can specify a different API version by passing it in the
1183
+ # `version` parameter. If the Playbooks service is
1184
+ # supported by that API version, and the corresponding gem is available, the
1185
+ # appropriate versioned client will be returned.
1186
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
1187
+ # the `transport` parameter.
1188
+ #
1189
+ # Raises an exception if the currently installed versioned client gem for the
1190
+ # given API version does not support the given transport of the Playbooks service.
1191
+ # You can determine whether the method will succeed by calling
1192
+ # {Google::Cloud::Dialogflow::CX.playbooks_available?}.
1193
+ #
1194
+ # ## About Playbooks
1195
+ #
1196
+ # Service for managing Playbooks.
1197
+ #
1198
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1199
+ # Defaults to `:v3`.
1200
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1201
+ # @return [::Object] A client object for the specified version.
1202
+ #
1203
+ def self.playbooks version: :v3, transport: :grpc, &block
1204
+ require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
1205
+
1206
+ package_name = Google::Cloud::Dialogflow::CX
1207
+ .constants
1208
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1209
+ .first
1210
+ service_module = Google::Cloud::Dialogflow::CX.const_get(package_name).const_get(:Playbooks)
1211
+ service_module = service_module.const_get(:Rest) if transport == :rest
1212
+ service_module.const_get(:Client).new(&block)
1213
+ end
1214
+
1215
+ ##
1216
+ # Determines whether the Playbooks service is supported by the current client.
1217
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow::CX.playbooks}.
1218
+ # If false, that method will raise an exception. This could happen if the given
1219
+ # API version does not exist or does not support the Playbooks service,
1220
+ # or if the versioned client gem needs an update to support the Playbooks service.
1221
+ #
1222
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1223
+ # Defaults to `:v3`.
1224
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1225
+ # @return [boolean] Whether the service is available.
1226
+ #
1227
+ def self.playbooks_available? version: :v3, transport: :grpc
1228
+ require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
1229
+ package_name = Google::Cloud::Dialogflow::CX
1230
+ .constants
1231
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1232
+ .first
1233
+ return false unless package_name
1234
+ service_module = Google::Cloud::Dialogflow::CX.const_get package_name
1235
+ return false unless service_module.const_defined? :Playbooks
1236
+ service_module = service_module.const_get :Playbooks
1237
+ if transport == :rest
1238
+ return false unless service_module.const_defined? :Rest
1239
+ service_module = service_module.const_get :Rest
1240
+ end
1241
+ service_module.const_defined? :Client
1242
+ rescue ::LoadError
1243
+ false
1244
+ end
1245
+
1106
1246
  ##
1107
1247
  # Create a new client object for SecuritySettingsService.
1108
1248
  #
@@ -1173,6 +1313,76 @@ module Google
1173
1313
  false
1174
1314
  end
1175
1315
 
1316
+ ##
1317
+ # Create a new client object for Tools.
1318
+ #
1319
+ # By default, this returns an instance of
1320
+ # [Google::Cloud::Dialogflow::CX::V3::Tools::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Tools-Client)
1321
+ # for a gRPC client for version V3 of the API.
1322
+ # However, you can specify a different API version by passing it in the
1323
+ # `version` parameter. If the Tools service is
1324
+ # supported by that API version, and the corresponding gem is available, the
1325
+ # appropriate versioned client will be returned.
1326
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
1327
+ # the `transport` parameter.
1328
+ #
1329
+ # Raises an exception if the currently installed versioned client gem for the
1330
+ # given API version does not support the given transport of the Tools service.
1331
+ # You can determine whether the method will succeed by calling
1332
+ # {Google::Cloud::Dialogflow::CX.tools_available?}.
1333
+ #
1334
+ # ## About Tools
1335
+ #
1336
+ # Service for managing Tools.
1337
+ #
1338
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1339
+ # Defaults to `:v3`.
1340
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1341
+ # @return [::Object] A client object for the specified version.
1342
+ #
1343
+ def self.tools version: :v3, transport: :grpc, &block
1344
+ require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
1345
+
1346
+ package_name = Google::Cloud::Dialogflow::CX
1347
+ .constants
1348
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1349
+ .first
1350
+ service_module = Google::Cloud::Dialogflow::CX.const_get(package_name).const_get(:Tools)
1351
+ service_module = service_module.const_get(:Rest) if transport == :rest
1352
+ service_module.const_get(:Client).new(&block)
1353
+ end
1354
+
1355
+ ##
1356
+ # Determines whether the Tools service is supported by the current client.
1357
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow::CX.tools}.
1358
+ # If false, that method will raise an exception. This could happen if the given
1359
+ # API version does not exist or does not support the Tools service,
1360
+ # or if the versioned client gem needs an update to support the Tools service.
1361
+ #
1362
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1363
+ # Defaults to `:v3`.
1364
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1365
+ # @return [boolean] Whether the service is available.
1366
+ #
1367
+ def self.tools_available? version: :v3, transport: :grpc
1368
+ require "google/cloud/dialogflow/cx/#{version.to_s.downcase}"
1369
+ package_name = Google::Cloud::Dialogflow::CX
1370
+ .constants
1371
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1372
+ .first
1373
+ return false unless package_name
1374
+ service_module = Google::Cloud::Dialogflow::CX.const_get package_name
1375
+ return false unless service_module.const_defined? :Tools
1376
+ service_module = service_module.const_get :Tools
1377
+ if transport == :rest
1378
+ return false unless service_module.const_defined? :Rest
1379
+ service_module = service_module.const_get :Rest
1380
+ end
1381
+ service_module.const_defined? :Client
1382
+ rescue ::LoadError
1383
+ false
1384
+ end
1385
+
1176
1386
  ##
1177
1387
  # Create a new client object for Versions.
1178
1388
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dialogflow-cx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -72,7 +72,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '3.0'
75
+ version: '3.2'
76
76
  required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - ">="