google-apis-dialogflow_v3 0.20.0 → 0.24.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.
@@ -367,6 +367,123 @@ module Google
367
367
  end
368
368
  end
369
369
 
370
+ # Changelogs represents a change made to a given agent.
371
+ class GoogleCloudDialogflowCxV3Changelog
372
+ include Google::Apis::Core::Hashable
373
+
374
+ # The action of the change.
375
+ # Corresponds to the JSON property `action`
376
+ # @return [String]
377
+ attr_accessor :action
378
+
379
+ # The timestamp of the change.
380
+ # Corresponds to the JSON property `createTime`
381
+ # @return [String]
382
+ attr_accessor :create_time
383
+
384
+ # The affected resource display name of the change.
385
+ # Corresponds to the JSON property `displayName`
386
+ # @return [String]
387
+ attr_accessor :display_name
388
+
389
+ # The unique identifier of the changelog. Format: `projects//locations//agents//
390
+ # changelogs/`.
391
+ # Corresponds to the JSON property `name`
392
+ # @return [String]
393
+ attr_accessor :name
394
+
395
+ # The affected resource name of the change.
396
+ # Corresponds to the JSON property `resource`
397
+ # @return [String]
398
+ attr_accessor :resource
399
+
400
+ # The affected resource type.
401
+ # Corresponds to the JSON property `type`
402
+ # @return [String]
403
+ attr_accessor :type
404
+
405
+ # Email address of the authenticated user.
406
+ # Corresponds to the JSON property `userEmail`
407
+ # @return [String]
408
+ attr_accessor :user_email
409
+
410
+ def initialize(**args)
411
+ update!(**args)
412
+ end
413
+
414
+ # Update properties of this object
415
+ def update!(**args)
416
+ @action = args[:action] if args.key?(:action)
417
+ @create_time = args[:create_time] if args.key?(:create_time)
418
+ @display_name = args[:display_name] if args.key?(:display_name)
419
+ @name = args[:name] if args.key?(:name)
420
+ @resource = args[:resource] if args.key?(:resource)
421
+ @type = args[:type] if args.key?(:type)
422
+ @user_email = args[:user_email] if args.key?(:user_email)
423
+ end
424
+ end
425
+
426
+ # The request message for Versions.CompareVersions.
427
+ class GoogleCloudDialogflowCxV3CompareVersionsRequest
428
+ include Google::Apis::Core::Hashable
429
+
430
+ # The language to compare the flow versions for. If not specified, the agent's
431
+ # default language is used. [Many languages](https://cloud.google.com/dialogflow/
432
+ # docs/reference/language) are supported. Note: languages must be enabled in the
433
+ # agent before they can be used.
434
+ # Corresponds to the JSON property `languageCode`
435
+ # @return [String]
436
+ attr_accessor :language_code
437
+
438
+ # Required. Name of the target flow version to compare with the base version.
439
+ # Use version ID `0` to indicate the draft version of the specified flow. Format:
440
+ # `projects//locations//agents//flows//versions/`.
441
+ # Corresponds to the JSON property `targetVersion`
442
+ # @return [String]
443
+ attr_accessor :target_version
444
+
445
+ def initialize(**args)
446
+ update!(**args)
447
+ end
448
+
449
+ # Update properties of this object
450
+ def update!(**args)
451
+ @language_code = args[:language_code] if args.key?(:language_code)
452
+ @target_version = args[:target_version] if args.key?(:target_version)
453
+ end
454
+ end
455
+
456
+ # The response message for Versions.CompareVersions.
457
+ class GoogleCloudDialogflowCxV3CompareVersionsResponse
458
+ include Google::Apis::Core::Hashable
459
+
460
+ # JSON representation of the base version content.
461
+ # Corresponds to the JSON property `baseVersionContentJson`
462
+ # @return [String]
463
+ attr_accessor :base_version_content_json
464
+
465
+ # The timestamp when the two version compares.
466
+ # Corresponds to the JSON property `compareTime`
467
+ # @return [String]
468
+ attr_accessor :compare_time
469
+
470
+ # JSON representation of the target version content.
471
+ # Corresponds to the JSON property `targetVersionContentJson`
472
+ # @return [String]
473
+ attr_accessor :target_version_content_json
474
+
475
+ def initialize(**args)
476
+ update!(**args)
477
+ end
478
+
479
+ # Update properties of this object
480
+ def update!(**args)
481
+ @base_version_content_json = args[:base_version_content_json] if args.key?(:base_version_content_json)
482
+ @compare_time = args[:compare_time] if args.key?(:compare_time)
483
+ @target_version_content_json = args[:target_version_content_json] if args.key?(:target_version_content_json)
484
+ end
485
+ end
486
+
370
487
  # Represents a result from running a test case in an agent environment.
371
488
  class GoogleCloudDialogflowCxV3ContinuousTestResult
372
489
  include Google::Apis::Core::Hashable
@@ -496,7 +613,8 @@ module Google
496
613
  # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page]
497
614
  attr_accessor :current_page
498
615
 
499
- # Required. Input only. The diagnostic info output for the turn.
616
+ # Required. Input only. The diagnostic info output for the turn. Required to
617
+ # calculate the testing coverage.
500
618
  # Corresponds to the JSON property `diagnosticInfo`
501
619
  # @return [Hash<String,Object>]
502
620
  attr_accessor :diagnostic_info
@@ -609,6 +727,158 @@ module Google
609
727
  end
610
728
  end
611
729
 
730
+ # Metadata returned for the Environments.DeployFlow long running operation.
731
+ class GoogleCloudDialogflowCxV3DeployFlowMetadata
732
+ include Google::Apis::Core::Hashable
733
+
734
+ # Errors of running deployment tests.
735
+ # Corresponds to the JSON property `testErrors`
736
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestError>]
737
+ attr_accessor :test_errors
738
+
739
+ def initialize(**args)
740
+ update!(**args)
741
+ end
742
+
743
+ # Update properties of this object
744
+ def update!(**args)
745
+ @test_errors = args[:test_errors] if args.key?(:test_errors)
746
+ end
747
+ end
748
+
749
+ # The request message for Environments.DeployFlow.
750
+ class GoogleCloudDialogflowCxV3DeployFlowRequest
751
+ include Google::Apis::Core::Hashable
752
+
753
+ # Required. The flow version to deploy. Format: `projects//locations//agents//
754
+ # flows//versions/`.
755
+ # Corresponds to the JSON property `flowVersion`
756
+ # @return [String]
757
+ attr_accessor :flow_version
758
+
759
+ def initialize(**args)
760
+ update!(**args)
761
+ end
762
+
763
+ # Update properties of this object
764
+ def update!(**args)
765
+ @flow_version = args[:flow_version] if args.key?(:flow_version)
766
+ end
767
+ end
768
+
769
+ # The response message for Environments.DeployFlow.
770
+ class GoogleCloudDialogflowCxV3DeployFlowResponse
771
+ include Google::Apis::Core::Hashable
772
+
773
+ # The name of the flow version Deployment. Format: `projects//locations//agents//
774
+ # environments//deployments/`.
775
+ # Corresponds to the JSON property `deployment`
776
+ # @return [String]
777
+ attr_accessor :deployment
778
+
779
+ # Represents an environment for an agent. You can create multiple versions of
780
+ # your agent and publish them to separate environments. When you edit an agent,
781
+ # you are editing the draft agent. At any point, you can save the draft agent as
782
+ # an agent version, which is an immutable snapshot of your agent. When you save
783
+ # the draft agent, it is published to the default environment. When you create
784
+ # agent versions, you can publish them to custom environments. You can create a
785
+ # variety of custom environments for testing, development, production, etc.
786
+ # Corresponds to the JSON property `environment`
787
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment]
788
+ attr_accessor :environment
789
+
790
+ def initialize(**args)
791
+ update!(**args)
792
+ end
793
+
794
+ # Update properties of this object
795
+ def update!(**args)
796
+ @deployment = args[:deployment] if args.key?(:deployment)
797
+ @environment = args[:environment] if args.key?(:environment)
798
+ end
799
+ end
800
+
801
+ # Represents an deployment in an environment. A deployment happens when a flow
802
+ # version configured to be active in the environment. You can configure running
803
+ # pre-deployment steps, e.g. running validation test cases, experiment auto-
804
+ # rollout, etc.
805
+ class GoogleCloudDialogflowCxV3Deployment
806
+ include Google::Apis::Core::Hashable
807
+
808
+ # End time of this deployment.
809
+ # Corresponds to the JSON property `endTime`
810
+ # @return [String]
811
+ attr_accessor :end_time
812
+
813
+ # The name of the flow version for this deployment. Format: projects//locations//
814
+ # agents//flows//versions/.
815
+ # Corresponds to the JSON property `flowVersion`
816
+ # @return [String]
817
+ attr_accessor :flow_version
818
+
819
+ # The name of the deployment. Format: projects//locations//agents//environments//
820
+ # deployments/.
821
+ # Corresponds to the JSON property `name`
822
+ # @return [String]
823
+ attr_accessor :name
824
+
825
+ # Result of the deployment.
826
+ # Corresponds to the JSON property `result`
827
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DeploymentResult]
828
+ attr_accessor :result
829
+
830
+ # Start time of this deployment.
831
+ # Corresponds to the JSON property `startTime`
832
+ # @return [String]
833
+ attr_accessor :start_time
834
+
835
+ # The current state of the deployment.
836
+ # Corresponds to the JSON property `state`
837
+ # @return [String]
838
+ attr_accessor :state
839
+
840
+ def initialize(**args)
841
+ update!(**args)
842
+ end
843
+
844
+ # Update properties of this object
845
+ def update!(**args)
846
+ @end_time = args[:end_time] if args.key?(:end_time)
847
+ @flow_version = args[:flow_version] if args.key?(:flow_version)
848
+ @name = args[:name] if args.key?(:name)
849
+ @result = args[:result] if args.key?(:result)
850
+ @start_time = args[:start_time] if args.key?(:start_time)
851
+ @state = args[:state] if args.key?(:state)
852
+ end
853
+ end
854
+
855
+ # Result of the deployment.
856
+ class GoogleCloudDialogflowCxV3DeploymentResult
857
+ include Google::Apis::Core::Hashable
858
+
859
+ # Results of test cases running before the deployment. Format: `projects//
860
+ # locations//agents//testCases//results/`.
861
+ # Corresponds to the JSON property `deploymentTestResults`
862
+ # @return [Array<String>]
863
+ attr_accessor :deployment_test_results
864
+
865
+ # The name of the experiment triggered by this deployment. Format: projects//
866
+ # locations//agents//environments//experiments/.
867
+ # Corresponds to the JSON property `experiment`
868
+ # @return [String]
869
+ attr_accessor :experiment
870
+
871
+ def initialize(**args)
872
+ update!(**args)
873
+ end
874
+
875
+ # Update properties of this object
876
+ def update!(**args)
877
+ @deployment_test_results = args[:deployment_test_results] if args.key?(:deployment_test_results)
878
+ @experiment = args[:experiment] if args.key?(:experiment)
879
+ end
880
+ end
881
+
612
882
  # The request to detect user's intent.
613
883
  class GoogleCloudDialogflowCxV3DetectIntentRequest
614
884
  include Google::Apis::Core::Hashable
@@ -895,6 +1165,11 @@ module Google
895
1165
  # @return [String]
896
1166
  attr_accessor :name
897
1167
 
1168
+ # The configuration for continuous tests.
1169
+ # Corresponds to the JSON property `testCasesConfig`
1170
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig]
1171
+ attr_accessor :test_cases_config
1172
+
898
1173
  # Output only. Update time of this environment.
899
1174
  # Corresponds to the JSON property `updateTime`
900
1175
  # @return [String]
@@ -916,11 +1191,48 @@ module Google
916
1191
  @description = args[:description] if args.key?(:description)
917
1192
  @display_name = args[:display_name] if args.key?(:display_name)
918
1193
  @name = args[:name] if args.key?(:name)
1194
+ @test_cases_config = args[:test_cases_config] if args.key?(:test_cases_config)
919
1195
  @update_time = args[:update_time] if args.key?(:update_time)
920
1196
  @version_configs = args[:version_configs] if args.key?(:version_configs)
921
1197
  end
922
1198
  end
923
1199
 
1200
+ # The configuration for continuous tests.
1201
+ class GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig
1202
+ include Google::Apis::Core::Hashable
1203
+
1204
+ # Whether to run test cases in TestCasesConfig.test_cases periodically. Default
1205
+ # false. If set to ture, run once a day.
1206
+ # Corresponds to the JSON property `enableContinuousRun`
1207
+ # @return [Boolean]
1208
+ attr_accessor :enable_continuous_run
1209
+ alias_method :enable_continuous_run?, :enable_continuous_run
1210
+
1211
+ # Whether to run test cases in TestCasesConfig.test_cases before deploying a
1212
+ # flow version to the environment. Default false.
1213
+ # Corresponds to the JSON property `enablePredeploymentRun`
1214
+ # @return [Boolean]
1215
+ attr_accessor :enable_predeployment_run
1216
+ alias_method :enable_predeployment_run?, :enable_predeployment_run
1217
+
1218
+ # A list of test case names to run. They should be under the same agent. Format
1219
+ # of each test case name: `projects//locations/ /agents//testCases/`
1220
+ # Corresponds to the JSON property `testCases`
1221
+ # @return [Array<String>]
1222
+ attr_accessor :test_cases
1223
+
1224
+ def initialize(**args)
1225
+ update!(**args)
1226
+ end
1227
+
1228
+ # Update properties of this object
1229
+ def update!(**args)
1230
+ @enable_continuous_run = args[:enable_continuous_run] if args.key?(:enable_continuous_run)
1231
+ @enable_predeployment_run = args[:enable_predeployment_run] if args.key?(:enable_predeployment_run)
1232
+ @test_cases = args[:test_cases] if args.key?(:test_cases)
1233
+ end
1234
+ end
1235
+
924
1236
  # Configuration for the version.
925
1237
  class GoogleCloudDialogflowCxV3EnvironmentVersionConfig
926
1238
  include Google::Apis::Core::Hashable
@@ -1410,6 +1722,7 @@ module Google
1410
1722
  end
1411
1723
 
1412
1724
  # Metadata returned for the TestCases.ExportTestCases long running operation.
1725
+ # This message currently has no fields.
1413
1726
  class GoogleCloudDialogflowCxV3ExportTestCasesMetadata
1414
1727
  include Google::Apis::Core::Hashable
1415
1728
 
@@ -2544,6 +2857,34 @@ module Google
2544
2857
  end
2545
2858
  end
2546
2859
 
2860
+ # The response message for Changelogs.ListChangelogs.
2861
+ class GoogleCloudDialogflowCxV3ListChangelogsResponse
2862
+ include Google::Apis::Core::Hashable
2863
+
2864
+ # The list of changelogs. There will be a maximum number of items returned based
2865
+ # on the page_size field in the request. The changelogs will be ordered by
2866
+ # timestamp.
2867
+ # Corresponds to the JSON property `changelogs`
2868
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Changelog>]
2869
+ attr_accessor :changelogs
2870
+
2871
+ # Token to retrieve the next page of results, or empty if there are no more
2872
+ # results in the list.
2873
+ # Corresponds to the JSON property `nextPageToken`
2874
+ # @return [String]
2875
+ attr_accessor :next_page_token
2876
+
2877
+ def initialize(**args)
2878
+ update!(**args)
2879
+ end
2880
+
2881
+ # Update properties of this object
2882
+ def update!(**args)
2883
+ @changelogs = args[:changelogs] if args.key?(:changelogs)
2884
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2885
+ end
2886
+ end
2887
+
2547
2888
  # The response message for Environments.ListTestCaseResults.
2548
2889
  class GoogleCloudDialogflowCxV3ListContinuousTestResultsResponse
2549
2890
  include Google::Apis::Core::Hashable
@@ -2570,6 +2911,34 @@ module Google
2570
2911
  end
2571
2912
  end
2572
2913
 
2914
+ # The response message for Deployments.ListDeployments.
2915
+ class GoogleCloudDialogflowCxV3ListDeploymentsResponse
2916
+ include Google::Apis::Core::Hashable
2917
+
2918
+ # The list of deployments. There will be a maximum number of items returned
2919
+ # based on the page_size field in the request. The list may in some cases be
2920
+ # empty or contain fewer entries than page_size even if this isn't the last page.
2921
+ # Corresponds to the JSON property `deployments`
2922
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Deployment>]
2923
+ attr_accessor :deployments
2924
+
2925
+ # Token to retrieve the next page of results, or empty if there are no more
2926
+ # results in the list.
2927
+ # Corresponds to the JSON property `nextPageToken`
2928
+ # @return [String]
2929
+ attr_accessor :next_page_token
2930
+
2931
+ def initialize(**args)
2932
+ update!(**args)
2933
+ end
2934
+
2935
+ # Update properties of this object
2936
+ def update!(**args)
2937
+ @deployments = args[:deployments] if args.key?(:deployments)
2938
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2939
+ end
2940
+ end
2941
+
2573
2942
  # The response message for EntityTypes.ListEntityTypes.
2574
2943
  class GoogleCloudDialogflowCxV3ListEntityTypesResponse
2575
2944
  include Google::Apis::Core::Hashable
@@ -3595,6 +3964,11 @@ module Google
3595
3964
  # @return [Hash<String,Object>]
3596
3965
  attr_accessor :diagnostic_info
3597
3966
 
3967
+ # Represents the input for dtmf event.
3968
+ # Corresponds to the JSON property `dtmf`
3969
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DtmfInput]
3970
+ attr_accessor :dtmf
3971
+
3598
3972
  # An intent represents a user's intent to interact with a conversational agent.
3599
3973
  # You can provide information for the Dialogflow API to use to match user input
3600
3974
  # to an intent by adding training phrases (i.e., examples of user input) to your
@@ -3695,6 +4069,7 @@ module Google
3695
4069
  def update!(**args)
3696
4070
  @current_page = args[:current_page] if args.key?(:current_page)
3697
4071
  @diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
4072
+ @dtmf = args[:dtmf] if args.key?(:dtmf)
3698
4073
  @intent = args[:intent] if args.key?(:intent)
3699
4074
  @intent_detection_confidence = args[:intent_detection_confidence] if args.key?(:intent_detection_confidence)
3700
4075
  @language_code = args[:language_code] if args.key?(:language_code)
@@ -3824,6 +4199,12 @@ module Google
3824
4199
  # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessagePlayAudio]
3825
4200
  attr_accessor :play_audio
3826
4201
 
4202
+ # Represents the signal that telles the client to transfer the phone call
4203
+ # connected to the agent to a third-party endpoint.
4204
+ # Corresponds to the JSON property `telephonyTransferCall`
4205
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall]
4206
+ attr_accessor :telephony_transfer_call
4207
+
3827
4208
  # The text response message.
3828
4209
  # Corresponds to the JSON property `text`
3829
4210
  # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageText]
@@ -3842,6 +4223,7 @@ module Google
3842
4223
  @output_audio_text = args[:output_audio_text] if args.key?(:output_audio_text)
3843
4224
  @payload = args[:payload] if args.key?(:payload)
3844
4225
  @play_audio = args[:play_audio] if args.key?(:play_audio)
4226
+ @telephony_transfer_call = args[:telephony_transfer_call] if args.key?(:telephony_transfer_call)
3845
4227
  @text = args[:text] if args.key?(:text)
3846
4228
  end
3847
4229
  end
@@ -4034,6 +4416,27 @@ module Google
4034
4416
  end
4035
4417
  end
4036
4418
 
4419
+ # Represents the signal that telles the client to transfer the phone call
4420
+ # connected to the agent to a third-party endpoint.
4421
+ class GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall
4422
+ include Google::Apis::Core::Hashable
4423
+
4424
+ # Transfer the call to a phone number in [E.164 format](https://en.wikipedia.org/
4425
+ # wiki/E.164).
4426
+ # Corresponds to the JSON property `phoneNumber`
4427
+ # @return [String]
4428
+ attr_accessor :phone_number
4429
+
4430
+ def initialize(**args)
4431
+ update!(**args)
4432
+ end
4433
+
4434
+ # Update properties of this object
4435
+ def update!(**args)
4436
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
4437
+ end
4438
+ end
4439
+
4037
4440
  # The text response message.
4038
4441
  class GoogleCloudDialogflowCxV3ResponseMessageText
4039
4442
  include Google::Apis::Core::Hashable
@@ -4249,7 +4652,8 @@ module Google
4249
4652
  end
4250
4653
  end
4251
4654
 
4252
- # Metadata returned for the TestCases.RunTestCase long running operation.
4655
+ # Metadata returned for the TestCases.RunTestCase long running operation. This
4656
+ # message currently has no fields.
4253
4657
  class GoogleCloudDialogflowCxV3RunTestCaseMetadata
4254
4658
  include Google::Apis::Core::Hashable
4255
4659
 
@@ -4307,6 +4711,20 @@ module Google
4307
4711
  class GoogleCloudDialogflowCxV3SecuritySettings
4308
4712
  include Google::Apis::Core::Hashable
4309
4713
 
4714
+ # [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
4715
+ # template to define de-identification configuration for the content. The `DLP
4716
+ # De-identify Templates Reader` role is needed on the Dialogflow service
4717
+ # identity service account (has the form `service-PROJECT_NUMBER@gcp-sa-
4718
+ # dialogflow.iam.gserviceaccount.com`) for your agent's project. If empty,
4719
+ # Dialogflow replaces sensitive info with `[redacted]` text. The template name
4720
+ # will have one of the following formats: `projects//locations//
4721
+ # deidentifyTemplates/` OR `organizations//locations//deidentifyTemplates/` Note:
4722
+ # `deidentify_template` must be located in the same region as the `
4723
+ # SecuritySettings`.
4724
+ # Corresponds to the JSON property `deidentifyTemplate`
4725
+ # @return [String]
4726
+ attr_accessor :deidentify_template
4727
+
4310
4728
  # Required. The human-readable name of the security settings, unique within the
4311
4729
  # location.
4312
4730
  # Corresponds to the JSON property `displayName`
@@ -4320,15 +4738,20 @@ module Google
4320
4738
  attr_accessor :insights_export_settings
4321
4739
 
4322
4740
  # [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
4323
- # template to define inspect base settings. If empty, we use the default DLP
4324
- # inspect config. The template name will have one of the following formats: `
4325
- # projects//inspectTemplates/` OR `projects//locations//inspectTemplates/` OR `
4326
- # organizations//inspectTemplates/`
4741
+ # template to define inspect base settings. The `DLP Inspect Templates Reader`
4742
+ # role is needed on the Dialogflow service identity service account (has the
4743
+ # form `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`) for
4744
+ # your agent's project. If empty, we use the default DLP inspect config. The
4745
+ # template name will have one of the following formats: `projects//locations//
4746
+ # inspectTemplates/` OR `organizations//locations//inspectTemplates/` Note: `
4747
+ # inspect_template` must be located in the same region as the `SecuritySettings`.
4327
4748
  # Corresponds to the JSON property `inspectTemplate`
4328
4749
  # @return [String]
4329
4750
  attr_accessor :inspect_template
4330
4751
 
4331
- # Required. Resource name of the settings. Format: `projects//locations//
4752
+ # Resource name of the settings. Required for the SecuritySettingsService.
4753
+ # UpdateSecuritySettings method. SecuritySettingsService.CreateSecuritySettings
4754
+ # populates the name automatically. Format: `projects//locations//
4332
4755
  # securitySettings/`.
4333
4756
  # Corresponds to the JSON property `name`
4334
4757
  # @return [String]
@@ -4352,10 +4775,11 @@ module Google
4352
4775
 
4353
4776
  # Retains data in interaction logging for the specified number of days. This
4354
4777
  # does not apply to Cloud logging, which is owned by the user - not Dialogflow.
4355
- # User must Set a value lower than Dialogflow's default 30d TTL. Setting a value
4356
- # higher than that has no effect. A missing value or setting to 0 also means we
4357
- # use Dialogflow's default TTL. Note: Interaction logging is a limited access
4358
- # feature. Talk to your Google representative to check availability for you.
4778
+ # User must set a value lower than Dialogflow's default 365d TTL. Setting a
4779
+ # value higher than that has no effect. A missing value or setting to 0 also
4780
+ # means we use Dialogflow's default TTL. Note: Interaction logging is a limited
4781
+ # access feature. Talk to your Google representative to check availability for
4782
+ # you.
4359
4783
  # Corresponds to the JSON property `retentionWindowDays`
4360
4784
  # @return [Fixnum]
4361
4785
  attr_accessor :retention_window_days
@@ -4366,6 +4790,7 @@ module Google
4366
4790
 
4367
4791
  # Update properties of this object
4368
4792
  def update!(**args)
4793
+ @deidentify_template = args[:deidentify_template] if args.key?(:deidentify_template)
4369
4794
  @display_name = args[:display_name] if args.key?(:display_name)
4370
4795
  @insights_export_settings = args[:insights_export_settings] if args.key?(:insights_export_settings)
4371
4796
  @inspect_template = args[:inspect_template] if args.key?(:inspect_template)
@@ -5528,6 +5953,18 @@ module Google
5528
5953
  class GoogleCloudDialogflowCxV3WebhookGenericWebService
5529
5954
  include Google::Apis::Core::Hashable
5530
5955
 
5956
+ # Optional. Specifies a list of allowed custom CA certificates (in DER format)
5957
+ # for HTTPS verification. This overrides the default SSL trust store. If this is
5958
+ # empty or unspecified, Dialogflow will use Google's default trust store to
5959
+ # verify certificates. N.B. Make sure the HTTPS server certificates are signed
5960
+ # with "subject alt name". For instance a certificate can be self-signed using
5961
+ # the following command, openssl x509 -req -days 200 -in example.com.csr \ -
5962
+ # signkey example.com.key \ -out example.com.crt \ -extfile <(printf "\
5963
+ # nsubjectAltName='DNS:www.example.com'")
5964
+ # Corresponds to the JSON property `allowedCaCerts`
5965
+ # @return [Array<String>]
5966
+ attr_accessor :allowed_ca_certs
5967
+
5531
5968
  # The password for HTTP Basic authentication.
5532
5969
  # Corresponds to the JSON property `password`
5533
5970
  # @return [String]
@@ -5555,6 +5992,7 @@ module Google
5555
5992
 
5556
5993
  # Update properties of this object
5557
5994
  def update!(**args)
5995
+ @allowed_ca_certs = args[:allowed_ca_certs] if args.key?(:allowed_ca_certs)
5558
5996
  @password = args[:password] if args.key?(:password)
5559
5997
  @request_headers = args[:request_headers] if args.key?(:request_headers)
5560
5998
  @uri = args[:uri] if args.key?(:uri)
@@ -6077,7 +6515,8 @@ module Google
6077
6515
  # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1Page]
6078
6516
  attr_accessor :current_page
6079
6517
 
6080
- # Required. Input only. The diagnostic info output for the turn.
6518
+ # Required. Input only. The diagnostic info output for the turn. Required to
6519
+ # calculate the testing coverage.
6081
6520
  # Corresponds to the JSON property `diagnosticInfo`
6082
6521
  # @return [Hash<String,Object>]
6083
6522
  attr_accessor :diagnostic_info
@@ -6190,6 +6629,57 @@ module Google
6190
6629
  end
6191
6630
  end
6192
6631
 
6632
+ # Metadata returned for the Environments.DeployFlow long running operation.
6633
+ class GoogleCloudDialogflowCxV3beta1DeployFlowMetadata
6634
+ include Google::Apis::Core::Hashable
6635
+
6636
+ # Errors of running deployment tests.
6637
+ # Corresponds to the JSON property `testErrors`
6638
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1TestError>]
6639
+ attr_accessor :test_errors
6640
+
6641
+ def initialize(**args)
6642
+ update!(**args)
6643
+ end
6644
+
6645
+ # Update properties of this object
6646
+ def update!(**args)
6647
+ @test_errors = args[:test_errors] if args.key?(:test_errors)
6648
+ end
6649
+ end
6650
+
6651
+ # The response message for Environments.DeployFlow.
6652
+ class GoogleCloudDialogflowCxV3beta1DeployFlowResponse
6653
+ include Google::Apis::Core::Hashable
6654
+
6655
+ # The name of the flow version deployment. Format: `projects//locations//agents//
6656
+ # environments//deployments/`.
6657
+ # Corresponds to the JSON property `deployment`
6658
+ # @return [String]
6659
+ attr_accessor :deployment
6660
+
6661
+ # Represents an environment for an agent. You can create multiple versions of
6662
+ # your agent and publish them to separate environments. When you edit an agent,
6663
+ # you are editing the draft agent. At any point, you can save the draft agent as
6664
+ # an agent version, which is an immutable snapshot of your agent. When you save
6665
+ # the draft agent, it is published to the default environment. When you create
6666
+ # agent versions, you can publish them to custom environments. You can create a
6667
+ # variety of custom environments for testing, development, production, etc.
6668
+ # Corresponds to the JSON property `environment`
6669
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1Environment]
6670
+ attr_accessor :environment
6671
+
6672
+ def initialize(**args)
6673
+ update!(**args)
6674
+ end
6675
+
6676
+ # Update properties of this object
6677
+ def update!(**args)
6678
+ @deployment = args[:deployment] if args.key?(:deployment)
6679
+ @environment = args[:environment] if args.key?(:environment)
6680
+ end
6681
+ end
6682
+
6193
6683
  # Represents the input for dtmf event.
6194
6684
  class GoogleCloudDialogflowCxV3beta1DtmfInput
6195
6685
  include Google::Apis::Core::Hashable
@@ -6215,6 +6705,121 @@ module Google
6215
6705
  end
6216
6706
  end
6217
6707
 
6708
+ # Represents an environment for an agent. You can create multiple versions of
6709
+ # your agent and publish them to separate environments. When you edit an agent,
6710
+ # you are editing the draft agent. At any point, you can save the draft agent as
6711
+ # an agent version, which is an immutable snapshot of your agent. When you save
6712
+ # the draft agent, it is published to the default environment. When you create
6713
+ # agent versions, you can publish them to custom environments. You can create a
6714
+ # variety of custom environments for testing, development, production, etc.
6715
+ class GoogleCloudDialogflowCxV3beta1Environment
6716
+ include Google::Apis::Core::Hashable
6717
+
6718
+ # The human-readable description of the environment. The maximum length is 500
6719
+ # characters. If exceeded, the request is rejected.
6720
+ # Corresponds to the JSON property `description`
6721
+ # @return [String]
6722
+ attr_accessor :description
6723
+
6724
+ # Required. The human-readable name of the environment (unique in an agent).
6725
+ # Limit of 64 characters.
6726
+ # Corresponds to the JSON property `displayName`
6727
+ # @return [String]
6728
+ attr_accessor :display_name
6729
+
6730
+ # The name of the environment. Format: `projects//locations//agents//
6731
+ # environments/`.
6732
+ # Corresponds to the JSON property `name`
6733
+ # @return [String]
6734
+ attr_accessor :name
6735
+
6736
+ # The configuration for continuous tests.
6737
+ # Corresponds to the JSON property `testCasesConfig`
6738
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig]
6739
+ attr_accessor :test_cases_config
6740
+
6741
+ # Output only. Update time of this environment.
6742
+ # Corresponds to the JSON property `updateTime`
6743
+ # @return [String]
6744
+ attr_accessor :update_time
6745
+
6746
+ # Required. A list of configurations for flow versions. You should include
6747
+ # version configs for all flows that are reachable from `Start Flow` in the
6748
+ # agent. Otherwise, an error will be returned.
6749
+ # Corresponds to the JSON property `versionConfigs`
6750
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig>]
6751
+ attr_accessor :version_configs
6752
+
6753
+ def initialize(**args)
6754
+ update!(**args)
6755
+ end
6756
+
6757
+ # Update properties of this object
6758
+ def update!(**args)
6759
+ @description = args[:description] if args.key?(:description)
6760
+ @display_name = args[:display_name] if args.key?(:display_name)
6761
+ @name = args[:name] if args.key?(:name)
6762
+ @test_cases_config = args[:test_cases_config] if args.key?(:test_cases_config)
6763
+ @update_time = args[:update_time] if args.key?(:update_time)
6764
+ @version_configs = args[:version_configs] if args.key?(:version_configs)
6765
+ end
6766
+ end
6767
+
6768
+ # The configuration for continuous tests.
6769
+ class GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig
6770
+ include Google::Apis::Core::Hashable
6771
+
6772
+ # Whether to run test cases in TestCasesConfig.test_cases periodically. Default
6773
+ # false. If set to true, run once a day.
6774
+ # Corresponds to the JSON property `enableContinuousRun`
6775
+ # @return [Boolean]
6776
+ attr_accessor :enable_continuous_run
6777
+ alias_method :enable_continuous_run?, :enable_continuous_run
6778
+
6779
+ # Whether to run test cases in TestCasesConfig.test_cases before deploying a
6780
+ # flow version to the environment. Default false.
6781
+ # Corresponds to the JSON property `enablePredeploymentRun`
6782
+ # @return [Boolean]
6783
+ attr_accessor :enable_predeployment_run
6784
+ alias_method :enable_predeployment_run?, :enable_predeployment_run
6785
+
6786
+ # A list of test case names to run. They should be under the same agent. Format
6787
+ # of each test case name: `projects//locations/ /agents//testCases/`
6788
+ # Corresponds to the JSON property `testCases`
6789
+ # @return [Array<String>]
6790
+ attr_accessor :test_cases
6791
+
6792
+ def initialize(**args)
6793
+ update!(**args)
6794
+ end
6795
+
6796
+ # Update properties of this object
6797
+ def update!(**args)
6798
+ @enable_continuous_run = args[:enable_continuous_run] if args.key?(:enable_continuous_run)
6799
+ @enable_predeployment_run = args[:enable_predeployment_run] if args.key?(:enable_predeployment_run)
6800
+ @test_cases = args[:test_cases] if args.key?(:test_cases)
6801
+ end
6802
+ end
6803
+
6804
+ # Configuration for the version.
6805
+ class GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig
6806
+ include Google::Apis::Core::Hashable
6807
+
6808
+ # Required. Format: projects//locations//agents//flows//versions/.
6809
+ # Corresponds to the JSON property `version`
6810
+ # @return [String]
6811
+ attr_accessor :version
6812
+
6813
+ def initialize(**args)
6814
+ update!(**args)
6815
+ end
6816
+
6817
+ # Update properties of this object
6818
+ def update!(**args)
6819
+ @version = args[:version] if args.key?(:version)
6820
+ end
6821
+ end
6822
+
6218
6823
  # An event handler specifies an event that can be handled during a session. When
6219
6824
  # the specified event happens, the following actions are taken in order: * If
6220
6825
  # there is a `trigger_fulfillment` associated with the event, it will be called.
@@ -6345,6 +6950,7 @@ module Google
6345
6950
  end
6346
6951
 
6347
6952
  # Metadata returned for the TestCases.ExportTestCases long running operation.
6953
+ # This message currently has no fields.
6348
6954
  class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
6349
6955
  include Google::Apis::Core::Hashable
6350
6956
 
@@ -7448,6 +8054,12 @@ module Google
7448
8054
  # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio]
7449
8055
  attr_accessor :play_audio
7450
8056
 
8057
+ # Represents the signal that telles the client to transfer the phone call
8058
+ # connected to the agent to a third-party endpoint.
8059
+ # Corresponds to the JSON property `telephonyTransferCall`
8060
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall]
8061
+ attr_accessor :telephony_transfer_call
8062
+
7451
8063
  # The text response message.
7452
8064
  # Corresponds to the JSON property `text`
7453
8065
  # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ResponseMessageText]
@@ -7466,6 +8078,7 @@ module Google
7466
8078
  @output_audio_text = args[:output_audio_text] if args.key?(:output_audio_text)
7467
8079
  @payload = args[:payload] if args.key?(:payload)
7468
8080
  @play_audio = args[:play_audio] if args.key?(:play_audio)
8081
+ @telephony_transfer_call = args[:telephony_transfer_call] if args.key?(:telephony_transfer_call)
7469
8082
  @text = args[:text] if args.key?(:text)
7470
8083
  end
7471
8084
  end
@@ -7658,6 +8271,27 @@ module Google
7658
8271
  end
7659
8272
  end
7660
8273
 
8274
+ # Represents the signal that telles the client to transfer the phone call
8275
+ # connected to the agent to a third-party endpoint.
8276
+ class GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall
8277
+ include Google::Apis::Core::Hashable
8278
+
8279
+ # Transfer the call to a phone number in [E.164 format](https://en.wikipedia.org/
8280
+ # wiki/E.164).
8281
+ # Corresponds to the JSON property `phoneNumber`
8282
+ # @return [String]
8283
+ attr_accessor :phone_number
8284
+
8285
+ def initialize(**args)
8286
+ update!(**args)
8287
+ end
8288
+
8289
+ # Update properties of this object
8290
+ def update!(**args)
8291
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
8292
+ end
8293
+ end
8294
+
7661
8295
  # The text response message.
7662
8296
  class GoogleCloudDialogflowCxV3beta1ResponseMessageText
7663
8297
  include Google::Apis::Core::Hashable
@@ -7724,7 +8358,8 @@ module Google
7724
8358
  end
7725
8359
  end
7726
8360
 
7727
- # Metadata returned for the TestCases.RunTestCase long running operation.
8361
+ # Metadata returned for the TestCases.RunTestCase long running operation. This
8362
+ # message currently has no fields.
7728
8363
  class GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata
7729
8364
  include Google::Apis::Core::Hashable
7730
8365
 
@@ -8945,8 +9580,9 @@ module Google
8945
9580
  # @return [Array<String>]
8946
9581
  attr_accessor :events
8947
9582
 
8948
- # Read-only. Information about all followup intents that have this intent as a
8949
- # direct or indirect parent. We populate this field only in the output.
9583
+ # Output only. Read-only. Information about all followup intents that have this
9584
+ # intent as a direct or indirect parent. We populate this field only in the
9585
+ # output.
8950
9586
  # Corresponds to the JSON property `followupIntentInfo`
8951
9587
  # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentFollowupIntentInfo>]
8952
9588
  attr_accessor :followup_intent_info
@@ -9031,9 +9667,10 @@ module Google
9031
9667
  attr_accessor :reset_contexts
9032
9668
  alias_method :reset_contexts?, :reset_contexts
9033
9669
 
9034
- # Read-only. The unique identifier of the root intent in the chain of followup
9035
- # intents. It identifies the correct followup intents chain for this intent. We
9036
- # populate this field only in the output. Format: `projects//agent/intents/`.
9670
+ # Output only. Read-only. The unique identifier of the root intent in the chain
9671
+ # of followup intents. It identifies the correct followup intents chain for this
9672
+ # intent. We populate this field only in the output. Format: `projects//agent/
9673
+ # intents/`.
9037
9674
  # Corresponds to the JSON property `rootFollowupIntentName`
9038
9675
  # @return [String]
9039
9676
  attr_accessor :root_followup_intent_name
@@ -13985,6 +14622,78 @@ module Google
13985
14622
  end
13986
14623
  end
13987
14624
 
14625
+ # The response message for Locations.ListLocations.
14626
+ class GoogleCloudLocationListLocationsResponse
14627
+ include Google::Apis::Core::Hashable
14628
+
14629
+ # A list of locations that matches the specified filter in the request.
14630
+ # Corresponds to the JSON property `locations`
14631
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudLocationLocation>]
14632
+ attr_accessor :locations
14633
+
14634
+ # The standard List next-page token.
14635
+ # Corresponds to the JSON property `nextPageToken`
14636
+ # @return [String]
14637
+ attr_accessor :next_page_token
14638
+
14639
+ def initialize(**args)
14640
+ update!(**args)
14641
+ end
14642
+
14643
+ # Update properties of this object
14644
+ def update!(**args)
14645
+ @locations = args[:locations] if args.key?(:locations)
14646
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
14647
+ end
14648
+ end
14649
+
14650
+ # A resource that represents Google Cloud Platform location.
14651
+ class GoogleCloudLocationLocation
14652
+ include Google::Apis::Core::Hashable
14653
+
14654
+ # The friendly name for this location, typically a nearby city name. For example,
14655
+ # "Tokyo".
14656
+ # Corresponds to the JSON property `displayName`
14657
+ # @return [String]
14658
+ attr_accessor :display_name
14659
+
14660
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
14661
+ # region": "us-east1"`
14662
+ # Corresponds to the JSON property `labels`
14663
+ # @return [Hash<String,String>]
14664
+ attr_accessor :labels
14665
+
14666
+ # The canonical id for this location. For example: `"us-east1"`.
14667
+ # Corresponds to the JSON property `locationId`
14668
+ # @return [String]
14669
+ attr_accessor :location_id
14670
+
14671
+ # Service-specific metadata. For example the available capacity at the given
14672
+ # location.
14673
+ # Corresponds to the JSON property `metadata`
14674
+ # @return [Hash<String,Object>]
14675
+ attr_accessor :metadata
14676
+
14677
+ # Resource name for the location, which may vary between implementations. For
14678
+ # example: `"projects/example-project/locations/us-east1"`
14679
+ # Corresponds to the JSON property `name`
14680
+ # @return [String]
14681
+ attr_accessor :name
14682
+
14683
+ def initialize(**args)
14684
+ update!(**args)
14685
+ end
14686
+
14687
+ # Update properties of this object
14688
+ def update!(**args)
14689
+ @display_name = args[:display_name] if args.key?(:display_name)
14690
+ @labels = args[:labels] if args.key?(:labels)
14691
+ @location_id = args[:location_id] if args.key?(:location_id)
14692
+ @metadata = args[:metadata] if args.key?(:metadata)
14693
+ @name = args[:name] if args.key?(:name)
14694
+ end
14695
+ end
14696
+
13988
14697
  # The response message for Operations.ListOperations.
13989
14698
  class GoogleLongrunningListOperationsResponse
13990
14699
  include Google::Apis::Core::Hashable