google-apis-dialogflow_v3 0.107.0 → 0.108.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: a7ba7b02315f132de477f95e9fb9c068b09caece1c4fbbd89f96a311b5ef7a1c
4
- data.tar.gz: 0d3d09b6da4ec2072c48574c4b59e0ca645cb12398c282a7e1bce92dac877b60
3
+ metadata.gz: a2144d1432e44707b623b6501e4bfacfa18b77a086d16f632f3d0c26322ee1ba
4
+ data.tar.gz: 622185b9f1625ed3430f748cd0e2fedbe85d58653e9c1c1a8b6f5bb305bdb77e
5
5
  SHA512:
6
- metadata.gz: bcb1de9b218a7a558a6705296d98f46e4c6029b27aef47688a0aacc68399a75ad717a0a9142fe80f8f1caaddc01f5c853235e02953cb4c172560c344fca3d980
7
- data.tar.gz: 7cc9ceed6c46e2e5c70f00f78d063922c6f22e19fffe7905a1565895a691a24f3d53771b101cbba717e62b2997191412c321a553a552a34bfc14efe14b00fb30
6
+ metadata.gz: 26766c46432ed110253bf21dc0b3438bd896249e49cba5f5ebdd658979435b20c3c2e8143c521e4fd9470c3addeb099defc3b2844b04d61345d599baaefc8323
7
+ data.tar.gz: 1af0422f7aa36f44dad3e08f621fa76bc117e843d5083445391dc42ae9a5e3b2094f3fd35672ddea4a458fd4ad096d1d526b737cb39387ec5877d9a5f54c6f31
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-dialogflow_v3
2
2
 
3
+ ### v0.108.0 (2025-06-08)
4
+
5
+ * Regenerated from discovery document revision 20250602
6
+ * Regenerated using generator version 0.18.0
7
+
3
8
  ### v0.107.0 (2025-05-04)
4
9
 
5
10
  * Regenerated using generator version 0.17.0
@@ -2254,9 +2254,10 @@ module Google
2254
2254
  class GoogleCloudDialogflowCxV3EnvironmentVersionConfig
2255
2255
  include Google::Apis::Core::Hashable
2256
2256
 
2257
- # Required. Both flow and playbook versions are supported. Format for flow
2257
+ # Required. Flow, playbook and tool versions are supported. Format for flow
2258
2258
  # version: projects//locations//agents//flows//versions/. Format for playbook
2259
- # version: projects//locations//agents//playbooks//versions/.
2259
+ # version: projects//locations//agents//playbooks//versions/. Format for tool
2260
+ # version: projects//locations//agents//tools//versions/.
2260
2261
  # Corresponds to the JSON property `version`
2261
2262
  # @return [String]
2262
2263
  attr_accessor :version
@@ -4225,6 +4226,110 @@ module Google
4225
4226
  end
4226
4227
  end
4227
4228
 
4229
+ # Handler can be used to define custom logic to be executed based on the user-
4230
+ # specified triggers.
4231
+ class GoogleCloudDialogflowCxV3Handler
4232
+ include Google::Apis::Core::Hashable
4233
+
4234
+ # A handler that is triggered by the specified event.
4235
+ # Corresponds to the JSON property `eventHandler`
4236
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3HandlerEventHandler]
4237
+ attr_accessor :event_handler
4238
+
4239
+ # A handler that is triggered on the specific lifecycle_stage of the playbook
4240
+ # execution.
4241
+ # Corresponds to the JSON property `lifecycleHandler`
4242
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3HandlerLifecycleHandler]
4243
+ attr_accessor :lifecycle_handler
4244
+
4245
+ def initialize(**args)
4246
+ update!(**args)
4247
+ end
4248
+
4249
+ # Update properties of this object
4250
+ def update!(**args)
4251
+ @event_handler = args[:event_handler] if args.key?(:event_handler)
4252
+ @lifecycle_handler = args[:lifecycle_handler] if args.key?(:lifecycle_handler)
4253
+ end
4254
+ end
4255
+
4256
+ # A handler that is triggered by the specified event.
4257
+ class GoogleCloudDialogflowCxV3HandlerEventHandler
4258
+ include Google::Apis::Core::Hashable
4259
+
4260
+ # Optional. The condition that must be satisfied to trigger this handler.
4261
+ # Corresponds to the JSON property `condition`
4262
+ # @return [String]
4263
+ attr_accessor :condition
4264
+
4265
+ # Required. The name of the event that triggers this handler.
4266
+ # Corresponds to the JSON property `event`
4267
+ # @return [String]
4268
+ attr_accessor :event
4269
+
4270
+ # A fulfillment can do one or more of the following actions at the same time: *
4271
+ # Generate rich message responses. * Set parameter values. * Call the webhook.
4272
+ # Fulfillments can be called at various stages in the Page or Form lifecycle.
4273
+ # For example, when a DetectIntentRequest drives a session to enter a new page,
4274
+ # the page's entry fulfillment can add a static response to the QueryResult in
4275
+ # the returning DetectIntentResponse, call the webhook (for example, to load
4276
+ # user data from a database), or both.
4277
+ # Corresponds to the JSON property `fulfillment`
4278
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment]
4279
+ attr_accessor :fulfillment
4280
+
4281
+ def initialize(**args)
4282
+ update!(**args)
4283
+ end
4284
+
4285
+ # Update properties of this object
4286
+ def update!(**args)
4287
+ @condition = args[:condition] if args.key?(:condition)
4288
+ @event = args[:event] if args.key?(:event)
4289
+ @fulfillment = args[:fulfillment] if args.key?(:fulfillment)
4290
+ end
4291
+ end
4292
+
4293
+ # A handler that is triggered on the specific lifecycle_stage of the playbook
4294
+ # execution.
4295
+ class GoogleCloudDialogflowCxV3HandlerLifecycleHandler
4296
+ include Google::Apis::Core::Hashable
4297
+
4298
+ # Optional. The condition that must be satisfied to trigger this handler.
4299
+ # Corresponds to the JSON property `condition`
4300
+ # @return [String]
4301
+ attr_accessor :condition
4302
+
4303
+ # A fulfillment can do one or more of the following actions at the same time: *
4304
+ # Generate rich message responses. * Set parameter values. * Call the webhook.
4305
+ # Fulfillments can be called at various stages in the Page or Form lifecycle.
4306
+ # For example, when a DetectIntentRequest drives a session to enter a new page,
4307
+ # the page's entry fulfillment can add a static response to the QueryResult in
4308
+ # the returning DetectIntentResponse, call the webhook (for example, to load
4309
+ # user data from a database), or both.
4310
+ # Corresponds to the JSON property `fulfillment`
4311
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment]
4312
+ attr_accessor :fulfillment
4313
+
4314
+ # Required. The name of the lifecycle stage that triggers this handler.
4315
+ # Supported values: * `playbook-start` * `pre-action-selection` * `pre-action-
4316
+ # execution`
4317
+ # Corresponds to the JSON property `lifecycleStage`
4318
+ # @return [String]
4319
+ attr_accessor :lifecycle_stage
4320
+
4321
+ def initialize(**args)
4322
+ update!(**args)
4323
+ end
4324
+
4325
+ # Update properties of this object
4326
+ def update!(**args)
4327
+ @condition = args[:condition] if args.key?(:condition)
4328
+ @fulfillment = args[:fulfillment] if args.key?(:fulfillment)
4329
+ @lifecycle_stage = args[:lifecycle_stage] if args.key?(:lifecycle_stage)
4330
+ end
4331
+ end
4332
+
4228
4333
  # Metadata returned for the EntityTypes.ImportEntityTypes long running operation.
4229
4334
  class GoogleCloudDialogflowCxV3ImportEntityTypesMetadata
4230
4335
  include Google::Apis::Core::Hashable
@@ -5600,6 +5705,33 @@ module Google
5600
5705
  end
5601
5706
  end
5602
5707
 
5708
+ # The response message for Tools.ListToolVersions.
5709
+ class GoogleCloudDialogflowCxV3ListToolVersionsResponse
5710
+ include Google::Apis::Core::Hashable
5711
+
5712
+ # Token to retrieve the next page of results, or empty if there are no more
5713
+ # results in the list.
5714
+ # Corresponds to the JSON property `nextPageToken`
5715
+ # @return [String]
5716
+ attr_accessor :next_page_token
5717
+
5718
+ # The list of tool versions. There will be a maximum number of items returned
5719
+ # based on the page_size field in the request.
5720
+ # Corresponds to the JSON property `toolVersions`
5721
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolVersion>]
5722
+ attr_accessor :tool_versions
5723
+
5724
+ def initialize(**args)
5725
+ update!(**args)
5726
+ end
5727
+
5728
+ # Update properties of this object
5729
+ def update!(**args)
5730
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
5731
+ @tool_versions = args[:tool_versions] if args.key?(:tool_versions)
5732
+ end
5733
+ end
5734
+
5603
5735
  # The response message for Tools.ListTools.
5604
5736
  class GoogleCloudDialogflowCxV3ListToolsResponse
5605
5737
  include Google::Apis::Core::Hashable
@@ -6304,6 +6436,12 @@ module Google
6304
6436
  # @return [String]
6305
6437
  attr_accessor :goal
6306
6438
 
6439
+ # Optional. A list of registered handlers to execuate based on the specified
6440
+ # triggers.
6441
+ # Corresponds to the JSON property `handlers`
6442
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Handler>]
6443
+ attr_accessor :handlers
6444
+
6307
6445
  # Message of the Instruction of the playbook.
6308
6446
  # Corresponds to the JSON property `instruction`
6309
6447
  # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PlaybookInstruction]
@@ -6359,6 +6497,7 @@ module Google
6359
6497
  @create_time = args[:create_time] if args.key?(:create_time)
6360
6498
  @display_name = args[:display_name] if args.key?(:display_name)
6361
6499
  @goal = args[:goal] if args.key?(:goal)
6500
+ @handlers = args[:handlers] if args.key?(:handlers)
6362
6501
  @instruction = args[:instruction] if args.key?(:instruction)
6363
6502
  @llm_model_settings = args[:llm_model_settings] if args.key?(:llm_model_settings)
6364
6503
  @name = args[:name] if args.key?(:name)
@@ -7520,6 +7659,41 @@ module Google
7520
7659
  end
7521
7660
  end
7522
7661
 
7662
+ # The request message for Tools.RestoreToolVersion.
7663
+ class GoogleCloudDialogflowCxV3RestoreToolVersionRequest
7664
+ include Google::Apis::Core::Hashable
7665
+
7666
+ def initialize(**args)
7667
+ update!(**args)
7668
+ end
7669
+
7670
+ # Update properties of this object
7671
+ def update!(**args)
7672
+ end
7673
+ end
7674
+
7675
+ # The response message for Tools.RestoreToolVersion.
7676
+ class GoogleCloudDialogflowCxV3RestoreToolVersionResponse
7677
+ include Google::Apis::Core::Hashable
7678
+
7679
+ # A tool provides a list of actions which are available to the Playbook to
7680
+ # attain its goal. A Tool consists of a description of the tool's usage and a
7681
+ # specification of the tool which contains the schema and authentication
7682
+ # information.
7683
+ # Corresponds to the JSON property `tool`
7684
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool]
7685
+ attr_accessor :tool
7686
+
7687
+ def initialize(**args)
7688
+ update!(**args)
7689
+ end
7690
+
7691
+ # Update properties of this object
7692
+ def update!(**args)
7693
+ @tool = args[:tool] if args.key?(:tool)
7694
+ end
7695
+ end
7696
+
7523
7697
  # The configuration for auto rollout.
7524
7698
  class GoogleCloudDialogflowCxV3RolloutConfig
7525
7699
  include Google::Apis::Core::Hashable
@@ -9079,6 +9253,53 @@ module Google
9079
9253
  end
9080
9254
  end
9081
9255
 
9256
+ # Tool version is a snapshot of the tool at certain timestamp.
9257
+ class GoogleCloudDialogflowCxV3ToolVersion
9258
+ include Google::Apis::Core::Hashable
9259
+
9260
+ # Output only. Last time the tool version was created or modified.
9261
+ # Corresponds to the JSON property `createTime`
9262
+ # @return [String]
9263
+ attr_accessor :create_time
9264
+
9265
+ # Required. The display name of the tool version.
9266
+ # Corresponds to the JSON property `displayName`
9267
+ # @return [String]
9268
+ attr_accessor :display_name
9269
+
9270
+ # Identifier. The unique identifier of the tool version. Format: `projects//
9271
+ # locations//agents//tools//versions/`.
9272
+ # Corresponds to the JSON property `name`
9273
+ # @return [String]
9274
+ attr_accessor :name
9275
+
9276
+ # A tool provides a list of actions which are available to the Playbook to
9277
+ # attain its goal. A Tool consists of a description of the tool's usage and a
9278
+ # specification of the tool which contains the schema and authentication
9279
+ # information.
9280
+ # Corresponds to the JSON property `tool`
9281
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool]
9282
+ attr_accessor :tool
9283
+
9284
+ # Output only. Last time the tool version was created or modified.
9285
+ # Corresponds to the JSON property `updateTime`
9286
+ # @return [String]
9287
+ attr_accessor :update_time
9288
+
9289
+ def initialize(**args)
9290
+ update!(**args)
9291
+ end
9292
+
9293
+ # Update properties of this object
9294
+ def update!(**args)
9295
+ @create_time = args[:create_time] if args.key?(:create_time)
9296
+ @display_name = args[:display_name] if args.key?(:display_name)
9297
+ @name = args[:name] if args.key?(:name)
9298
+ @tool = args[:tool] if args.key?(:tool)
9299
+ @update_time = args[:update_time] if args.key?(:update_time)
9300
+ end
9301
+ end
9302
+
9082
9303
  # The request message for Flows.TrainFlow.
9083
9304
  class GoogleCloudDialogflowCxV3TrainFlowRequest
9084
9305
  include Google::Apis::Core::Hashable
@@ -11074,9 +11295,10 @@ module Google
11074
11295
  class GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig
11075
11296
  include Google::Apis::Core::Hashable
11076
11297
 
11077
- # Required. Both flow and playbook versions are supported. Format for flow
11298
+ # Required. Flow, playbook and tool versions are supported. Format for flow
11078
11299
  # version: projects//locations//agents//flows//versions/. Format for playbook
11079
- # version: projects//locations//agents//playbooks//versions/.
11300
+ # version: projects//locations//agents//playbooks//versions/. Format for tool
11301
+ # version: projects//locations//agents//tools//versions/.
11080
11302
  # Corresponds to the JSON property `version`
11081
11303
  # @return [String]
11082
11304
  attr_accessor :version
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DialogflowV3
18
18
  # Version of the google-apis-dialogflow_v3 gem
19
- GEM_VERSION = "0.107.0"
19
+ GEM_VERSION = "0.108.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.17.0"
22
+ GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250422"
25
+ REVISION = "20250602"
26
26
  end
27
27
  end
28
28
  end
@@ -676,6 +676,24 @@ module Google
676
676
  include Google::Apis::Core::JsonObjectSupport
677
677
  end
678
678
 
679
+ class GoogleCloudDialogflowCxV3Handler
680
+ class Representation < Google::Apis::Core::JsonRepresentation; end
681
+
682
+ include Google::Apis::Core::JsonObjectSupport
683
+ end
684
+
685
+ class GoogleCloudDialogflowCxV3HandlerEventHandler
686
+ class Representation < Google::Apis::Core::JsonRepresentation; end
687
+
688
+ include Google::Apis::Core::JsonObjectSupport
689
+ end
690
+
691
+ class GoogleCloudDialogflowCxV3HandlerLifecycleHandler
692
+ class Representation < Google::Apis::Core::JsonRepresentation; end
693
+
694
+ include Google::Apis::Core::JsonObjectSupport
695
+ end
696
+
679
697
  class GoogleCloudDialogflowCxV3ImportEntityTypesMetadata
680
698
  class Representation < Google::Apis::Core::JsonRepresentation; end
681
699
 
@@ -940,6 +958,12 @@ module Google
940
958
  include Google::Apis::Core::JsonObjectSupport
941
959
  end
942
960
 
961
+ class GoogleCloudDialogflowCxV3ListToolVersionsResponse
962
+ class Representation < Google::Apis::Core::JsonRepresentation; end
963
+
964
+ include Google::Apis::Core::JsonObjectSupport
965
+ end
966
+
943
967
  class GoogleCloudDialogflowCxV3ListToolsResponse
944
968
  class Representation < Google::Apis::Core::JsonRepresentation; end
945
969
 
@@ -1204,6 +1228,18 @@ module Google
1204
1228
  include Google::Apis::Core::JsonObjectSupport
1205
1229
  end
1206
1230
 
1231
+ class GoogleCloudDialogflowCxV3RestoreToolVersionRequest
1232
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1233
+
1234
+ include Google::Apis::Core::JsonObjectSupport
1235
+ end
1236
+
1237
+ class GoogleCloudDialogflowCxV3RestoreToolVersionResponse
1238
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1239
+
1240
+ include Google::Apis::Core::JsonObjectSupport
1241
+ end
1242
+
1207
1243
  class GoogleCloudDialogflowCxV3RolloutConfig
1208
1244
  class Representation < Google::Apis::Core::JsonRepresentation; end
1209
1245
 
@@ -1492,6 +1528,12 @@ module Google
1492
1528
  include Google::Apis::Core::JsonObjectSupport
1493
1529
  end
1494
1530
 
1531
+ class GoogleCloudDialogflowCxV3ToolVersion
1532
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1533
+
1534
+ include Google::Apis::Core::JsonObjectSupport
1535
+ end
1536
+
1495
1537
  class GoogleCloudDialogflowCxV3TrainFlowRequest
1496
1538
  class Representation < Google::Apis::Core::JsonRepresentation; end
1497
1539
 
@@ -4771,6 +4813,36 @@ module Google
4771
4813
  end
4772
4814
  end
4773
4815
 
4816
+ class GoogleCloudDialogflowCxV3Handler
4817
+ # @private
4818
+ class Representation < Google::Apis::Core::JsonRepresentation
4819
+ property :event_handler, as: 'eventHandler', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3HandlerEventHandler, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3HandlerEventHandler::Representation
4820
+
4821
+ property :lifecycle_handler, as: 'lifecycleHandler', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3HandlerLifecycleHandler, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3HandlerLifecycleHandler::Representation
4822
+
4823
+ end
4824
+ end
4825
+
4826
+ class GoogleCloudDialogflowCxV3HandlerEventHandler
4827
+ # @private
4828
+ class Representation < Google::Apis::Core::JsonRepresentation
4829
+ property :condition, as: 'condition'
4830
+ property :event, as: 'event'
4831
+ property :fulfillment, as: 'fulfillment', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment::Representation
4832
+
4833
+ end
4834
+ end
4835
+
4836
+ class GoogleCloudDialogflowCxV3HandlerLifecycleHandler
4837
+ # @private
4838
+ class Representation < Google::Apis::Core::JsonRepresentation
4839
+ property :condition, as: 'condition'
4840
+ property :fulfillment, as: 'fulfillment', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment::Representation
4841
+
4842
+ property :lifecycle_stage, as: 'lifecycleStage'
4843
+ end
4844
+ end
4845
+
4774
4846
  class GoogleCloudDialogflowCxV3ImportEntityTypesMetadata
4775
4847
  # @private
4776
4848
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5171,6 +5243,15 @@ module Google
5171
5243
  end
5172
5244
  end
5173
5245
 
5246
+ class GoogleCloudDialogflowCxV3ListToolVersionsResponse
5247
+ # @private
5248
+ class Representation < Google::Apis::Core::JsonRepresentation
5249
+ property :next_page_token, as: 'nextPageToken'
5250
+ collection :tool_versions, as: 'toolVersions', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolVersion, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolVersion::Representation
5251
+
5252
+ end
5253
+ end
5254
+
5174
5255
  class GoogleCloudDialogflowCxV3ListToolsResponse
5175
5256
  # @private
5176
5257
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5352,6 +5433,8 @@ module Google
5352
5433
  property :create_time, as: 'createTime'
5353
5434
  property :display_name, as: 'displayName'
5354
5435
  property :goal, as: 'goal'
5436
+ collection :handlers, as: 'handlers', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Handler, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Handler::Representation
5437
+
5355
5438
  property :instruction, as: 'instruction', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PlaybookInstruction, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PlaybookInstruction::Representation
5356
5439
 
5357
5440
  property :llm_model_settings, as: 'llmModelSettings', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LlmModelSettings, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LlmModelSettings::Representation
@@ -5656,6 +5739,20 @@ module Google
5656
5739
  end
5657
5740
  end
5658
5741
 
5742
+ class GoogleCloudDialogflowCxV3RestoreToolVersionRequest
5743
+ # @private
5744
+ class Representation < Google::Apis::Core::JsonRepresentation
5745
+ end
5746
+ end
5747
+
5748
+ class GoogleCloudDialogflowCxV3RestoreToolVersionResponse
5749
+ # @private
5750
+ class Representation < Google::Apis::Core::JsonRepresentation
5751
+ property :tool, as: 'tool', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool::Representation
5752
+
5753
+ end
5754
+ end
5755
+
5659
5756
  class GoogleCloudDialogflowCxV3RolloutConfig
5660
5757
  # @private
5661
5758
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6104,6 +6201,18 @@ module Google
6104
6201
  end
6105
6202
  end
6106
6203
 
6204
+ class GoogleCloudDialogflowCxV3ToolVersion
6205
+ # @private
6206
+ class Representation < Google::Apis::Core::JsonRepresentation
6207
+ property :create_time, as: 'createTime'
6208
+ property :display_name, as: 'displayName'
6209
+ property :name, as: 'name'
6210
+ property :tool, as: 'tool', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool::Representation
6211
+
6212
+ property :update_time, as: 'updateTime'
6213
+ end
6214
+ end
6215
+
6107
6216
  class GoogleCloudDialogflowCxV3TrainFlowRequest
6108
6217
  # @private
6109
6218
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5098,6 +5098,181 @@ module Google
5098
5098
  execute_or_queue_command(command, &block)
5099
5099
  end
5100
5100
 
5101
+ # Creates a version for the specified Tool.
5102
+ # @param [String] parent
5103
+ # Required. The tool to create a version for. Format: `projects//locations//
5104
+ # agents//tools/`.
5105
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolVersion] google_cloud_dialogflow_cx_v3_tool_version_object
5106
+ # @param [String] fields
5107
+ # Selector specifying which fields to include in a partial response.
5108
+ # @param [String] quota_user
5109
+ # Available to use for quota purposes for server-side applications. Can be any
5110
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5111
+ # @param [Google::Apis::RequestOptions] options
5112
+ # Request-specific options
5113
+ #
5114
+ # @yield [result, err] Result & error if block supplied
5115
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolVersion] parsed result object
5116
+ # @yieldparam err [StandardError] error object if request failed
5117
+ #
5118
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolVersion]
5119
+ #
5120
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5121
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5122
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5123
+ def create_project_location_agent_tool_version(parent, google_cloud_dialogflow_cx_v3_tool_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5124
+ command = make_simple_command(:post, 'v3/{+parent}/versions', options)
5125
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolVersion::Representation
5126
+ command.request_object = google_cloud_dialogflow_cx_v3_tool_version_object
5127
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolVersion::Representation
5128
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolVersion
5129
+ command.params['parent'] = parent unless parent.nil?
5130
+ command.query['fields'] = fields unless fields.nil?
5131
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5132
+ execute_or_queue_command(command, &block)
5133
+ end
5134
+
5135
+ # Deletes the specified version of the Tool.
5136
+ # @param [String] name
5137
+ # Required. The name of the tool version to delete. Format: `projects//locations/
5138
+ # /agents//tools//versions/`.
5139
+ # @param [Boolean] force
5140
+ # Optional. This field has no effect for Tools not being used. For Tools that
5141
+ # are used: * If `force` is set to false, an error will be returned with message
5142
+ # indicating the referenced resources. * If `force` is set to true, Dialogflow
5143
+ # will remove the tool, as well as any references to the tool.
5144
+ # @param [String] fields
5145
+ # Selector specifying which fields to include in a partial response.
5146
+ # @param [String] quota_user
5147
+ # Available to use for quota purposes for server-side applications. Can be any
5148
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5149
+ # @param [Google::Apis::RequestOptions] options
5150
+ # Request-specific options
5151
+ #
5152
+ # @yield [result, err] Result & error if block supplied
5153
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
5154
+ # @yieldparam err [StandardError] error object if request failed
5155
+ #
5156
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
5157
+ #
5158
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5159
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5160
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5161
+ def delete_project_location_agent_tool_version(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
5162
+ command = make_simple_command(:delete, 'v3/{+name}', options)
5163
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
5164
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
5165
+ command.params['name'] = name unless name.nil?
5166
+ command.query['force'] = force unless force.nil?
5167
+ command.query['fields'] = fields unless fields.nil?
5168
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5169
+ execute_or_queue_command(command, &block)
5170
+ end
5171
+
5172
+ # Retrieves the specified version of the Tool.
5173
+ # @param [String] name
5174
+ # Required. The name of the tool version. Format: `projects//locations//agents//
5175
+ # tools//versions/`.
5176
+ # @param [String] fields
5177
+ # Selector specifying which fields to include in a partial response.
5178
+ # @param [String] quota_user
5179
+ # Available to use for quota purposes for server-side applications. Can be any
5180
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5181
+ # @param [Google::Apis::RequestOptions] options
5182
+ # Request-specific options
5183
+ #
5184
+ # @yield [result, err] Result & error if block supplied
5185
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolVersion] parsed result object
5186
+ # @yieldparam err [StandardError] error object if request failed
5187
+ #
5188
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolVersion]
5189
+ #
5190
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5191
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5192
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5193
+ def get_project_location_agent_tool_version(name, fields: nil, quota_user: nil, options: nil, &block)
5194
+ command = make_simple_command(:get, 'v3/{+name}', options)
5195
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolVersion::Representation
5196
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolVersion
5197
+ command.params['name'] = name unless name.nil?
5198
+ command.query['fields'] = fields unless fields.nil?
5199
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5200
+ execute_or_queue_command(command, &block)
5201
+ end
5202
+
5203
+ # List versions of the specified Tool.
5204
+ # @param [String] parent
5205
+ # Required. The parent of the tool versions. Format: `projects//locations//
5206
+ # agents//tools/`.
5207
+ # @param [Fixnum] page_size
5208
+ # Optional. The maximum number of items to return in a single page. By default
5209
+ # 100 and at most 1000.
5210
+ # @param [String] page_token
5211
+ # Optional. The next_page_token value returned from a previous list request.
5212
+ # @param [String] fields
5213
+ # Selector specifying which fields to include in a partial response.
5214
+ # @param [String] quota_user
5215
+ # Available to use for quota purposes for server-side applications. Can be any
5216
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5217
+ # @param [Google::Apis::RequestOptions] options
5218
+ # Request-specific options
5219
+ #
5220
+ # @yield [result, err] Result & error if block supplied
5221
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListToolVersionsResponse] parsed result object
5222
+ # @yieldparam err [StandardError] error object if request failed
5223
+ #
5224
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListToolVersionsResponse]
5225
+ #
5226
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5227
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5228
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5229
+ def list_project_location_agent_tool_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
5230
+ command = make_simple_command(:get, 'v3/{+parent}/versions', options)
5231
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListToolVersionsResponse::Representation
5232
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListToolVersionsResponse
5233
+ command.params['parent'] = parent unless parent.nil?
5234
+ command.query['pageSize'] = page_size unless page_size.nil?
5235
+ command.query['pageToken'] = page_token unless page_token.nil?
5236
+ command.query['fields'] = fields unless fields.nil?
5237
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5238
+ execute_or_queue_command(command, &block)
5239
+ end
5240
+
5241
+ # Retrieves the specified version of the Tool and stores it as the current tool
5242
+ # draft, returning the tool with resources updated.
5243
+ # @param [String] name
5244
+ # Required. The name of the tool version. Format: `projects//locations//agents//
5245
+ # tools//versions/`.
5246
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RestoreToolVersionRequest] google_cloud_dialogflow_cx_v3_restore_tool_version_request_object
5247
+ # @param [String] fields
5248
+ # Selector specifying which fields to include in a partial response.
5249
+ # @param [String] quota_user
5250
+ # Available to use for quota purposes for server-side applications. Can be any
5251
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5252
+ # @param [Google::Apis::RequestOptions] options
5253
+ # Request-specific options
5254
+ #
5255
+ # @yield [result, err] Result & error if block supplied
5256
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RestoreToolVersionResponse] parsed result object
5257
+ # @yieldparam err [StandardError] error object if request failed
5258
+ #
5259
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RestoreToolVersionResponse]
5260
+ #
5261
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5262
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5263
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5264
+ def restore_project_location_agent_tool_version(name, google_cloud_dialogflow_cx_v3_restore_tool_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5265
+ command = make_simple_command(:post, 'v3/{+name}:restore', options)
5266
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RestoreToolVersionRequest::Representation
5267
+ command.request_object = google_cloud_dialogflow_cx_v3_restore_tool_version_request_object
5268
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RestoreToolVersionResponse::Representation
5269
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RestoreToolVersionResponse
5270
+ command.params['name'] = name unless name.nil?
5271
+ command.query['fields'] = fields unless fields.nil?
5272
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5273
+ execute_or_queue_command(command, &block)
5274
+ end
5275
+
5101
5276
  # Creates an TransitionRouteGroup in the specified flow. Note: You should always
5102
5277
  # train a flow prior to sending it queries. See the [training documentation](
5103
5278
  # https://cloud.google.com/dialogflow/cx/docs/concept/training).
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dialogflow_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.107.0
4
+ version: 0.108.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v3/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v3/v0.107.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v3/v0.108.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v3
62
62
  rdoc_options: []
63
63
  require_paths:
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.8
76
+ rubygems_version: 3.6.9
77
77
  specification_version: 4
78
78
  summary: Simple REST client for Dialogflow API V3
79
79
  test_files: []