google-apis-dialogflow_v3beta1 0.18.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -221,7 +221,8 @@ module Google
221
221
  # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3Page]
222
222
  attr_accessor :current_page
223
223
 
224
- # Required. Input only. The diagnostic info output for the turn.
224
+ # Required. Input only. The diagnostic info output for the turn. Required to
225
+ # calculate the testing coverage.
225
226
  # Corresponds to the JSON property `diagnosticInfo`
226
227
  # @return [Hash<String,Object>]
227
228
  attr_accessor :diagnostic_info
@@ -334,6 +335,57 @@ module Google
334
335
  end
335
336
  end
336
337
 
338
+ # Metadata returned for the Environments.DeployFlow long running operation.
339
+ class GoogleCloudDialogflowCxV3DeployFlowMetadata
340
+ include Google::Apis::Core::Hashable
341
+
342
+ # Errors of running deployment tests.
343
+ # Corresponds to the JSON property `testErrors`
344
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3TestError>]
345
+ attr_accessor :test_errors
346
+
347
+ def initialize(**args)
348
+ update!(**args)
349
+ end
350
+
351
+ # Update properties of this object
352
+ def update!(**args)
353
+ @test_errors = args[:test_errors] if args.key?(:test_errors)
354
+ end
355
+ end
356
+
357
+ # The response message for Environments.DeployFlow.
358
+ class GoogleCloudDialogflowCxV3DeployFlowResponse
359
+ include Google::Apis::Core::Hashable
360
+
361
+ # The name of the flow version Deployment. Format: `projects//locations//agents//
362
+ # environments//deployments/`.
363
+ # Corresponds to the JSON property `deployment`
364
+ # @return [String]
365
+ attr_accessor :deployment
366
+
367
+ # Represents an environment for an agent. You can create multiple versions of
368
+ # your agent and publish them to separate environments. When you edit an agent,
369
+ # you are editing the draft agent. At any point, you can save the draft agent as
370
+ # an agent version, which is an immutable snapshot of your agent. When you save
371
+ # the draft agent, it is published to the default environment. When you create
372
+ # agent versions, you can publish them to custom environments. You can create a
373
+ # variety of custom environments for testing, development, production, etc.
374
+ # Corresponds to the JSON property `environment`
375
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3Environment]
376
+ attr_accessor :environment
377
+
378
+ def initialize(**args)
379
+ update!(**args)
380
+ end
381
+
382
+ # Update properties of this object
383
+ def update!(**args)
384
+ @deployment = args[:deployment] if args.key?(:deployment)
385
+ @environment = args[:environment] if args.key?(:environment)
386
+ end
387
+ end
388
+
337
389
  # Represents the input for dtmf event.
338
390
  class GoogleCloudDialogflowCxV3DtmfInput
339
391
  include Google::Apis::Core::Hashable
@@ -359,6 +411,121 @@ module Google
359
411
  end
360
412
  end
361
413
 
414
+ # Represents an environment for an agent. You can create multiple versions of
415
+ # your agent and publish them to separate environments. When you edit an agent,
416
+ # you are editing the draft agent. At any point, you can save the draft agent as
417
+ # an agent version, which is an immutable snapshot of your agent. When you save
418
+ # the draft agent, it is published to the default environment. When you create
419
+ # agent versions, you can publish them to custom environments. You can create a
420
+ # variety of custom environments for testing, development, production, etc.
421
+ class GoogleCloudDialogflowCxV3Environment
422
+ include Google::Apis::Core::Hashable
423
+
424
+ # The human-readable description of the environment. The maximum length is 500
425
+ # characters. If exceeded, the request is rejected.
426
+ # Corresponds to the JSON property `description`
427
+ # @return [String]
428
+ attr_accessor :description
429
+
430
+ # Required. The human-readable name of the environment (unique in an agent).
431
+ # Limit of 64 characters.
432
+ # Corresponds to the JSON property `displayName`
433
+ # @return [String]
434
+ attr_accessor :display_name
435
+
436
+ # The name of the environment. Format: `projects//locations//agents//
437
+ # environments/`.
438
+ # Corresponds to the JSON property `name`
439
+ # @return [String]
440
+ attr_accessor :name
441
+
442
+ # The configuration for continuous tests.
443
+ # Corresponds to the JSON property `testCasesConfig`
444
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig]
445
+ attr_accessor :test_cases_config
446
+
447
+ # Output only. Update time of this environment.
448
+ # Corresponds to the JSON property `updateTime`
449
+ # @return [String]
450
+ attr_accessor :update_time
451
+
452
+ # Required. A list of configurations for flow versions. You should include
453
+ # version configs for all flows that are reachable from `Start Flow` in the
454
+ # agent. Otherwise, an error will be returned.
455
+ # Corresponds to the JSON property `versionConfigs`
456
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3EnvironmentVersionConfig>]
457
+ attr_accessor :version_configs
458
+
459
+ def initialize(**args)
460
+ update!(**args)
461
+ end
462
+
463
+ # Update properties of this object
464
+ def update!(**args)
465
+ @description = args[:description] if args.key?(:description)
466
+ @display_name = args[:display_name] if args.key?(:display_name)
467
+ @name = args[:name] if args.key?(:name)
468
+ @test_cases_config = args[:test_cases_config] if args.key?(:test_cases_config)
469
+ @update_time = args[:update_time] if args.key?(:update_time)
470
+ @version_configs = args[:version_configs] if args.key?(:version_configs)
471
+ end
472
+ end
473
+
474
+ # The configuration for continuous tests.
475
+ class GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig
476
+ include Google::Apis::Core::Hashable
477
+
478
+ # Whether to run test cases in TestCasesConfig.test_cases periodically. Default
479
+ # false. If set to ture, run once a day.
480
+ # Corresponds to the JSON property `enableContinuousRun`
481
+ # @return [Boolean]
482
+ attr_accessor :enable_continuous_run
483
+ alias_method :enable_continuous_run?, :enable_continuous_run
484
+
485
+ # Whether to run test cases in TestCasesConfig.test_cases before deploying a
486
+ # flow version to the environment. Default false.
487
+ # Corresponds to the JSON property `enablePredeploymentRun`
488
+ # @return [Boolean]
489
+ attr_accessor :enable_predeployment_run
490
+ alias_method :enable_predeployment_run?, :enable_predeployment_run
491
+
492
+ # A list of test case names to run. They should be under the same agent. Format
493
+ # of each test case name: `projects//locations/ /agents//testCases/`
494
+ # Corresponds to the JSON property `testCases`
495
+ # @return [Array<String>]
496
+ attr_accessor :test_cases
497
+
498
+ def initialize(**args)
499
+ update!(**args)
500
+ end
501
+
502
+ # Update properties of this object
503
+ def update!(**args)
504
+ @enable_continuous_run = args[:enable_continuous_run] if args.key?(:enable_continuous_run)
505
+ @enable_predeployment_run = args[:enable_predeployment_run] if args.key?(:enable_predeployment_run)
506
+ @test_cases = args[:test_cases] if args.key?(:test_cases)
507
+ end
508
+ end
509
+
510
+ # Configuration for the version.
511
+ class GoogleCloudDialogflowCxV3EnvironmentVersionConfig
512
+ include Google::Apis::Core::Hashable
513
+
514
+ # Required. Format: projects//locations//agents//flows//versions/.
515
+ # Corresponds to the JSON property `version`
516
+ # @return [String]
517
+ attr_accessor :version
518
+
519
+ def initialize(**args)
520
+ update!(**args)
521
+ end
522
+
523
+ # Update properties of this object
524
+ def update!(**args)
525
+ @version = args[:version] if args.key?(:version)
526
+ end
527
+ end
528
+
362
529
  # An event handler specifies an event that can be handled during a session. When
363
530
  # the specified event happens, the following actions are taken in order: * If
364
531
  # there is a `trigger_fulfillment` associated with the event, it will be called.
@@ -489,6 +656,7 @@ module Google
489
656
  end
490
657
 
491
658
  # Metadata returned for the TestCases.ExportTestCases long running operation.
659
+ # This message currently has no fields.
492
660
  class GoogleCloudDialogflowCxV3ExportTestCasesMetadata
493
661
  include Google::Apis::Core::Hashable
494
662
 
@@ -1868,7 +2036,8 @@ module Google
1868
2036
  end
1869
2037
  end
1870
2038
 
1871
- # Metadata returned for the TestCases.RunTestCase long running operation.
2039
+ # Metadata returned for the TestCases.RunTestCase long running operation. This
2040
+ # message currently has no fields.
1872
2041
  class GoogleCloudDialogflowCxV3RunTestCaseMetadata
1873
2042
  include Google::Apis::Core::Hashable
1874
2043
 
@@ -2560,6 +2729,54 @@ module Google
2560
2729
  end
2561
2730
  end
2562
2731
 
2732
+ # Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
2733
+ # Settings exposed at lower level overrides the settings exposed at higher level.
2734
+ # Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
2735
+ class GoogleCloudDialogflowCxV3beta1AdvancedSettings
2736
+ include Google::Apis::Core::Hashable
2737
+
2738
+ # Define behaviors on logging.
2739
+ # Corresponds to the JSON property `loggingSettings`
2740
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings]
2741
+ attr_accessor :logging_settings
2742
+
2743
+ def initialize(**args)
2744
+ update!(**args)
2745
+ end
2746
+
2747
+ # Update properties of this object
2748
+ def update!(**args)
2749
+ @logging_settings = args[:logging_settings] if args.key?(:logging_settings)
2750
+ end
2751
+ end
2752
+
2753
+ # Define behaviors on logging.
2754
+ class GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings
2755
+ include Google::Apis::Core::Hashable
2756
+
2757
+ # If true, DF Interaction logging is currently enabled.
2758
+ # Corresponds to the JSON property `enableInteractionLogging`
2759
+ # @return [Boolean]
2760
+ attr_accessor :enable_interaction_logging
2761
+ alias_method :enable_interaction_logging?, :enable_interaction_logging
2762
+
2763
+ # If true, StackDriver logging is currently enabled.
2764
+ # Corresponds to the JSON property `enableStackdriverLogging`
2765
+ # @return [Boolean]
2766
+ attr_accessor :enable_stackdriver_logging
2767
+ alias_method :enable_stackdriver_logging?, :enable_stackdriver_logging
2768
+
2769
+ def initialize(**args)
2770
+ update!(**args)
2771
+ end
2772
+
2773
+ # Update properties of this object
2774
+ def update!(**args)
2775
+ @enable_interaction_logging = args[:enable_interaction_logging] if args.key?(:enable_interaction_logging)
2776
+ @enable_stackdriver_logging = args[:enable_stackdriver_logging] if args.key?(:enable_stackdriver_logging)
2777
+ end
2778
+ end
2779
+
2563
2780
  # Agents are best described as Natural Language Understanding (NLU) modules that
2564
2781
  # transform user requests into actionable data. You can include agents in your
2565
2782
  # app, product, or service to determine user intent and respond to the user in a
@@ -2568,6 +2785,13 @@ module Google
2568
2785
  class GoogleCloudDialogflowCxV3beta1Agent
2569
2786
  include Google::Apis::Core::Hashable
2570
2787
 
2788
+ # Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
2789
+ # Settings exposed at lower level overrides the settings exposed at higher level.
2790
+ # Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
2791
+ # Corresponds to the JSON property `advancedSettings`
2792
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AdvancedSettings]
2793
+ attr_accessor :advanced_settings
2794
+
2571
2795
  # The URI of the agent's avatar. Avatars are used throughout the Dialogflow
2572
2796
  # console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/
2573
2797
  # docs/integrations/web-demo) integration.
@@ -2600,7 +2824,8 @@ module Google
2600
2824
  attr_accessor :enable_spell_correction
2601
2825
  alias_method :enable_spell_correction?, :enable_spell_correction
2602
2826
 
2603
- # Indicates if stackdriver logging is enabled for the agent.
2827
+ # Indicates if stackdriver logging is enabled for the agent. Please use agent.
2828
+ # advanced_settings instead.
2604
2829
  # Corresponds to the JSON property `enableStackdriverLogging`
2605
2830
  # @return [Boolean]
2606
2831
  attr_accessor :enable_stackdriver_logging
@@ -2649,6 +2874,7 @@ module Google
2649
2874
 
2650
2875
  # Update properties of this object
2651
2876
  def update!(**args)
2877
+ @advanced_settings = args[:advanced_settings] if args.key?(:advanced_settings)
2652
2878
  @avatar_uri = args[:avatar_uri] if args.key?(:avatar_uri)
2653
2879
  @default_language_code = args[:default_language_code] if args.key?(:default_language_code)
2654
2880
  @description = args[:description] if args.key?(:description)
@@ -2977,7 +3203,8 @@ module Google
2977
3203
  # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page]
2978
3204
  attr_accessor :current_page
2979
3205
 
2980
- # Required. Input only. The diagnostic info output for the turn.
3206
+ # Required. Input only. The diagnostic info output for the turn. Required to
3207
+ # calculate the testing coverage.
2981
3208
  # Corresponds to the JSON property `diagnosticInfo`
2982
3209
  # @return [Hash<String,Object>]
2983
3210
  attr_accessor :diagnostic_info
@@ -3090,6 +3317,158 @@ module Google
3090
3317
  end
3091
3318
  end
3092
3319
 
3320
+ # Metadata returned for the Environments.DeployFlow long running operation.
3321
+ class GoogleCloudDialogflowCxV3beta1DeployFlowMetadata
3322
+ include Google::Apis::Core::Hashable
3323
+
3324
+ # Errors of running deployment tests.
3325
+ # Corresponds to the JSON property `testErrors`
3326
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TestError>]
3327
+ attr_accessor :test_errors
3328
+
3329
+ def initialize(**args)
3330
+ update!(**args)
3331
+ end
3332
+
3333
+ # Update properties of this object
3334
+ def update!(**args)
3335
+ @test_errors = args[:test_errors] if args.key?(:test_errors)
3336
+ end
3337
+ end
3338
+
3339
+ # The request message for Environments.DeployFlow.
3340
+ class GoogleCloudDialogflowCxV3beta1DeployFlowRequest
3341
+ include Google::Apis::Core::Hashable
3342
+
3343
+ # Required. The flow version to deploy. Format: `projects//locations//agents//
3344
+ # flows//versions/`.
3345
+ # Corresponds to the JSON property `flowVersion`
3346
+ # @return [String]
3347
+ attr_accessor :flow_version
3348
+
3349
+ def initialize(**args)
3350
+ update!(**args)
3351
+ end
3352
+
3353
+ # Update properties of this object
3354
+ def update!(**args)
3355
+ @flow_version = args[:flow_version] if args.key?(:flow_version)
3356
+ end
3357
+ end
3358
+
3359
+ # The response message for Environments.DeployFlow.
3360
+ class GoogleCloudDialogflowCxV3beta1DeployFlowResponse
3361
+ include Google::Apis::Core::Hashable
3362
+
3363
+ # The name of the flow version deployment. Format: `projects//locations//agents//
3364
+ # environments//deployments/`.
3365
+ # Corresponds to the JSON property `deployment`
3366
+ # @return [String]
3367
+ attr_accessor :deployment
3368
+
3369
+ # Represents an environment for an agent. You can create multiple versions of
3370
+ # your agent and publish them to separate environments. When you edit an agent,
3371
+ # you are editing the draft agent. At any point, you can save the draft agent as
3372
+ # an agent version, which is an immutable snapshot of your agent. When you save
3373
+ # the draft agent, it is published to the default environment. When you create
3374
+ # agent versions, you can publish them to custom environments. You can create a
3375
+ # variety of custom environments for testing, development, production, etc.
3376
+ # Corresponds to the JSON property `environment`
3377
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Environment]
3378
+ attr_accessor :environment
3379
+
3380
+ def initialize(**args)
3381
+ update!(**args)
3382
+ end
3383
+
3384
+ # Update properties of this object
3385
+ def update!(**args)
3386
+ @deployment = args[:deployment] if args.key?(:deployment)
3387
+ @environment = args[:environment] if args.key?(:environment)
3388
+ end
3389
+ end
3390
+
3391
+ # Represents an deployment in an environment. A deployment happens when a flow
3392
+ # version configured to be active in the environment. You can configure running
3393
+ # pre-deployment steps, e.g. running validation test cases, experiment auto-
3394
+ # rollout, etc.
3395
+ class GoogleCloudDialogflowCxV3beta1Deployment
3396
+ include Google::Apis::Core::Hashable
3397
+
3398
+ # End time of this deployment.
3399
+ # Corresponds to the JSON property `endTime`
3400
+ # @return [String]
3401
+ attr_accessor :end_time
3402
+
3403
+ # The name of the flow version for this deployment. Format: projects//locations//
3404
+ # agents//flows//versions/.
3405
+ # Corresponds to the JSON property `flowVersion`
3406
+ # @return [String]
3407
+ attr_accessor :flow_version
3408
+
3409
+ # The name of the deployment. Format: projects//locations//agents//environments//
3410
+ # deployments/.
3411
+ # Corresponds to the JSON property `name`
3412
+ # @return [String]
3413
+ attr_accessor :name
3414
+
3415
+ # Result of the deployment.
3416
+ # Corresponds to the JSON property `result`
3417
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DeploymentResult]
3418
+ attr_accessor :result
3419
+
3420
+ # Start time of this deployment.
3421
+ # Corresponds to the JSON property `startTime`
3422
+ # @return [String]
3423
+ attr_accessor :start_time
3424
+
3425
+ # The current state of the deployment.
3426
+ # Corresponds to the JSON property `state`
3427
+ # @return [String]
3428
+ attr_accessor :state
3429
+
3430
+ def initialize(**args)
3431
+ update!(**args)
3432
+ end
3433
+
3434
+ # Update properties of this object
3435
+ def update!(**args)
3436
+ @end_time = args[:end_time] if args.key?(:end_time)
3437
+ @flow_version = args[:flow_version] if args.key?(:flow_version)
3438
+ @name = args[:name] if args.key?(:name)
3439
+ @result = args[:result] if args.key?(:result)
3440
+ @start_time = args[:start_time] if args.key?(:start_time)
3441
+ @state = args[:state] if args.key?(:state)
3442
+ end
3443
+ end
3444
+
3445
+ # Result of the deployment.
3446
+ class GoogleCloudDialogflowCxV3beta1DeploymentResult
3447
+ include Google::Apis::Core::Hashable
3448
+
3449
+ # Results of test cases running before the deployment. Format: `projects//
3450
+ # locations//agents//testCases//results/`.
3451
+ # Corresponds to the JSON property `deploymentTestResults`
3452
+ # @return [Array<String>]
3453
+ attr_accessor :deployment_test_results
3454
+
3455
+ # The name of the experiment triggered by this deployment. Format: projects//
3456
+ # locations//agents//environments//experiments/.
3457
+ # Corresponds to the JSON property `experiment`
3458
+ # @return [String]
3459
+ attr_accessor :experiment
3460
+
3461
+ def initialize(**args)
3462
+ update!(**args)
3463
+ end
3464
+
3465
+ # Update properties of this object
3466
+ def update!(**args)
3467
+ @deployment_test_results = args[:deployment_test_results] if args.key?(:deployment_test_results)
3468
+ @experiment = args[:experiment] if args.key?(:experiment)
3469
+ end
3470
+ end
3471
+
3093
3472
  # The request to detect user's intent.
3094
3473
  class GoogleCloudDialogflowCxV3beta1DetectIntentRequest
3095
3474
  include Google::Apis::Core::Hashable
@@ -3376,6 +3755,11 @@ module Google
3376
3755
  # @return [String]
3377
3756
  attr_accessor :name
3378
3757
 
3758
+ # The configuration for continuous tests.
3759
+ # Corresponds to the JSON property `testCasesConfig`
3760
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig]
3761
+ attr_accessor :test_cases_config
3762
+
3379
3763
  # Output only. Update time of this environment.
3380
3764
  # Corresponds to the JSON property `updateTime`
3381
3765
  # @return [String]
@@ -3397,11 +3781,48 @@ module Google
3397
3781
  @description = args[:description] if args.key?(:description)
3398
3782
  @display_name = args[:display_name] if args.key?(:display_name)
3399
3783
  @name = args[:name] if args.key?(:name)
3784
+ @test_cases_config = args[:test_cases_config] if args.key?(:test_cases_config)
3400
3785
  @update_time = args[:update_time] if args.key?(:update_time)
3401
3786
  @version_configs = args[:version_configs] if args.key?(:version_configs)
3402
3787
  end
3403
3788
  end
3404
3789
 
3790
+ # The configuration for continuous tests.
3791
+ class GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig
3792
+ include Google::Apis::Core::Hashable
3793
+
3794
+ # Whether to run test cases in TestCasesConfig.test_cases periodically. Default
3795
+ # false. If set to ture, run once a day.
3796
+ # Corresponds to the JSON property `enableContinuousRun`
3797
+ # @return [Boolean]
3798
+ attr_accessor :enable_continuous_run
3799
+ alias_method :enable_continuous_run?, :enable_continuous_run
3800
+
3801
+ # Whether to run test cases in TestCasesConfig.test_cases before deploying a
3802
+ # flow version to the environment. Default false.
3803
+ # Corresponds to the JSON property `enablePredeploymentRun`
3804
+ # @return [Boolean]
3805
+ attr_accessor :enable_predeployment_run
3806
+ alias_method :enable_predeployment_run?, :enable_predeployment_run
3807
+
3808
+ # A list of test case names to run. They should be under the same agent. Format
3809
+ # of each test case name: `projects//locations/ /agents//testCases/`
3810
+ # Corresponds to the JSON property `testCases`
3811
+ # @return [Array<String>]
3812
+ attr_accessor :test_cases
3813
+
3814
+ def initialize(**args)
3815
+ update!(**args)
3816
+ end
3817
+
3818
+ # Update properties of this object
3819
+ def update!(**args)
3820
+ @enable_continuous_run = args[:enable_continuous_run] if args.key?(:enable_continuous_run)
3821
+ @enable_predeployment_run = args[:enable_predeployment_run] if args.key?(:enable_predeployment_run)
3822
+ @test_cases = args[:test_cases] if args.key?(:test_cases)
3823
+ end
3824
+ end
3825
+
3405
3826
  # Configuration for the version.
3406
3827
  class GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig
3407
3828
  include Google::Apis::Core::Hashable
@@ -3526,11 +3947,9 @@ module Google
3526
3947
  # @return [String]
3527
3948
  attr_accessor :end_time
3528
3949
 
3529
- # LINT.IfChange(default_experiment_length) Maximum number of days to run the
3530
- # experiment. If auto-rollout is not enabled, default value and maximum will be
3531
- # 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.
3532
- # LINT.ThenChange(//depot/google3/cloud/ml/api/conversation/analytics/compute.cc:
3533
- # default_experiment_length)
3950
+ # Maximum number of days to run the experiment. If auto-rollout is not enabled,
3951
+ # default value and maximum will be 30 days. If auto-rollout is enabled, default
3952
+ # value and maximum will be 6 days.
3534
3953
  # Corresponds to the JSON property `experimentLength`
3535
3954
  # @return [String]
3536
3955
  attr_accessor :experiment_length
@@ -3552,6 +3971,22 @@ module Google
3552
3971
  # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExperimentResult]
3553
3972
  attr_accessor :result
3554
3973
 
3974
+ # The configuration for auto rollout.
3975
+ # Corresponds to the JSON property `rolloutConfig`
3976
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1RolloutConfig]
3977
+ attr_accessor :rollout_config
3978
+
3979
+ # The reason why rollout has failed. Should only be set when state is
3980
+ # ROLLOUT_FAILED.
3981
+ # Corresponds to the JSON property `rolloutFailureReason`
3982
+ # @return [String]
3983
+ attr_accessor :rollout_failure_reason
3984
+
3985
+ # State of the auto-rollout process.
3986
+ # Corresponds to the JSON property `rolloutState`
3987
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1RolloutState]
3988
+ attr_accessor :rollout_state
3989
+
3555
3990
  # Start time of this experiment.
3556
3991
  # Corresponds to the JSON property `startTime`
3557
3992
  # @return [String]
@@ -3584,6 +4019,9 @@ module Google
3584
4019
  @last_update_time = args[:last_update_time] if args.key?(:last_update_time)
3585
4020
  @name = args[:name] if args.key?(:name)
3586
4021
  @result = args[:result] if args.key?(:result)
4022
+ @rollout_config = args[:rollout_config] if args.key?(:rollout_config)
4023
+ @rollout_failure_reason = args[:rollout_failure_reason] if args.key?(:rollout_failure_reason)
4024
+ @rollout_state = args[:rollout_state] if args.key?(:rollout_state)
3587
4025
  @start_time = args[:start_time] if args.key?(:start_time)
3588
4026
  @state = args[:state] if args.key?(:state)
3589
4027
  @variants_history = args[:variants_history] if args.key?(:variants_history)
@@ -3874,6 +4312,7 @@ module Google
3874
4312
  end
3875
4313
 
3876
4314
  # Metadata returned for the TestCases.ExportTestCases long running operation.
4315
+ # This message currently has no fields.
3877
4316
  class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
3878
4317
  include Google::Apis::Core::Hashable
3879
4318
 
@@ -5034,6 +5473,34 @@ module Google
5034
5473
  end
5035
5474
  end
5036
5475
 
5476
+ # The response message for Deployments.ListDeployments.
5477
+ class GoogleCloudDialogflowCxV3beta1ListDeploymentsResponse
5478
+ include Google::Apis::Core::Hashable
5479
+
5480
+ # The list of deployments. There will be a maximum number of items returned
5481
+ # based on the page_size field in the request. The list may in some cases be
5482
+ # empty or contain fewer entries than page_size even if this isn't the last page.
5483
+ # Corresponds to the JSON property `deployments`
5484
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Deployment>]
5485
+ attr_accessor :deployments
5486
+
5487
+ # Token to retrieve the next page of results, or empty if there are no more
5488
+ # results in the list.
5489
+ # Corresponds to the JSON property `nextPageToken`
5490
+ # @return [String]
5491
+ attr_accessor :next_page_token
5492
+
5493
+ def initialize(**args)
5494
+ update!(**args)
5495
+ end
5496
+
5497
+ # Update properties of this object
5498
+ def update!(**args)
5499
+ @deployments = args[:deployments] if args.key?(:deployments)
5500
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
5501
+ end
5502
+ end
5503
+
5037
5504
  # The response message for EntityTypes.ListEntityTypes.
5038
5505
  class GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse
5039
5506
  include Google::Apis::Core::Hashable
@@ -5946,6 +6413,15 @@ module Google
5946
6413
  attr_accessor :disable_webhook
5947
6414
  alias_method :disable_webhook?, :disable_webhook
5948
6415
 
6416
+ # A list of flow versions to override for the request. Format: `projects//
6417
+ # locations//agents//flows//versions/`. If version 1 of flow X is included in
6418
+ # this list, the traffic of flow X will go through version 1 regardless of the
6419
+ # version configuration in the environment. Each flow can have at most one
6420
+ # version specified in this list.
6421
+ # Corresponds to the JSON property `flowVersions`
6422
+ # @return [Array<String>]
6423
+ attr_accessor :flow_versions
6424
+
5949
6425
  # An object that represents a latitude/longitude pair. This is expressed as a
5950
6426
  # pair of doubles to represent degrees latitude and degrees longitude. Unless
5951
6427
  # specified otherwise, this object must conform to the WGS84 standard. Values
@@ -6013,6 +6489,7 @@ module Google
6013
6489
  @analyze_query_text_sentiment = args[:analyze_query_text_sentiment] if args.key?(:analyze_query_text_sentiment)
6014
6490
  @current_page = args[:current_page] if args.key?(:current_page)
6015
6491
  @disable_webhook = args[:disable_webhook] if args.key?(:disable_webhook)
6492
+ @flow_versions = args[:flow_versions] if args.key?(:flow_versions)
6016
6493
  @geo_location = args[:geo_location] if args.key?(:geo_location)
6017
6494
  @parameters = args[:parameters] if args.key?(:parameters)
6018
6495
  @payload = args[:payload] if args.key?(:payload)
@@ -6548,6 +7025,109 @@ module Google
6548
7025
  end
6549
7026
  end
6550
7027
 
7028
+ # The configuration for auto rollout.
7029
+ class GoogleCloudDialogflowCxV3beta1RolloutConfig
7030
+ include Google::Apis::Core::Hashable
7031
+
7032
+ # The conditions that are used to evaluate the failure of a rollout step. If not
7033
+ # specified, no rollout steps will fail. E.g. "containment_rate < 10% OR
7034
+ # average_turn_count < 3". See the [conditions reference](https://cloud.google.
7035
+ # com/dialogflow/cx/docs/reference/condition).
7036
+ # Corresponds to the JSON property `failureCondition`
7037
+ # @return [String]
7038
+ attr_accessor :failure_condition
7039
+
7040
+ # The conditions that are used to evaluate the success of a rollout step. If not
7041
+ # specified, all rollout steps will proceed to the next one unless failure
7042
+ # conditions are met. E.g. "containment_rate > 60% AND callback_rate < 20%". See
7043
+ # the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/
7044
+ # reference/condition).
7045
+ # Corresponds to the JSON property `rolloutCondition`
7046
+ # @return [String]
7047
+ attr_accessor :rollout_condition
7048
+
7049
+ # Steps to roll out a flow version. Steps should be sorted by percentage in
7050
+ # ascending order.
7051
+ # Corresponds to the JSON property `rolloutSteps`
7052
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep>]
7053
+ attr_accessor :rollout_steps
7054
+
7055
+ def initialize(**args)
7056
+ update!(**args)
7057
+ end
7058
+
7059
+ # Update properties of this object
7060
+ def update!(**args)
7061
+ @failure_condition = args[:failure_condition] if args.key?(:failure_condition)
7062
+ @rollout_condition = args[:rollout_condition] if args.key?(:rollout_condition)
7063
+ @rollout_steps = args[:rollout_steps] if args.key?(:rollout_steps)
7064
+ end
7065
+ end
7066
+
7067
+ # A single rollout step with specified traffic allocation.
7068
+ class GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep
7069
+ include Google::Apis::Core::Hashable
7070
+
7071
+ # The name of the rollout step;
7072
+ # Corresponds to the JSON property `displayName`
7073
+ # @return [String]
7074
+ attr_accessor :display_name
7075
+
7076
+ # The minimum time that this step should last. Should be longer than 1 hour. If
7077
+ # not set, the default minimum duration for each step will be 1 hour.
7078
+ # Corresponds to the JSON property `minDuration`
7079
+ # @return [String]
7080
+ attr_accessor :min_duration
7081
+
7082
+ # The percentage of traffic allocated to the flow version of this rollout step. (
7083
+ # 0%, 100%].
7084
+ # Corresponds to the JSON property `trafficPercent`
7085
+ # @return [Fixnum]
7086
+ attr_accessor :traffic_percent
7087
+
7088
+ def initialize(**args)
7089
+ update!(**args)
7090
+ end
7091
+
7092
+ # Update properties of this object
7093
+ def update!(**args)
7094
+ @display_name = args[:display_name] if args.key?(:display_name)
7095
+ @min_duration = args[:min_duration] if args.key?(:min_duration)
7096
+ @traffic_percent = args[:traffic_percent] if args.key?(:traffic_percent)
7097
+ end
7098
+ end
7099
+
7100
+ # State of the auto-rollout process.
7101
+ class GoogleCloudDialogflowCxV3beta1RolloutState
7102
+ include Google::Apis::Core::Hashable
7103
+
7104
+ # Start time of the current step.
7105
+ # Corresponds to the JSON property `startTime`
7106
+ # @return [String]
7107
+ attr_accessor :start_time
7108
+
7109
+ # Display name of the current auto rollout step.
7110
+ # Corresponds to the JSON property `step`
7111
+ # @return [String]
7112
+ attr_accessor :step
7113
+
7114
+ # Index of the current step in the auto rollout steps list.
7115
+ # Corresponds to the JSON property `stepIndex`
7116
+ # @return [Fixnum]
7117
+ attr_accessor :step_index
7118
+
7119
+ def initialize(**args)
7120
+ update!(**args)
7121
+ end
7122
+
7123
+ # Update properties of this object
7124
+ def update!(**args)
7125
+ @start_time = args[:start_time] if args.key?(:start_time)
7126
+ @step = args[:step] if args.key?(:step)
7127
+ @step_index = args[:step_index] if args.key?(:step_index)
7128
+ end
7129
+ end
7130
+
6551
7131
  # Metadata returned for the Environments.RunContinuousTest long running
6552
7132
  # operation.
6553
7133
  class GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata
@@ -6600,7 +7180,8 @@ module Google
6600
7180
  end
6601
7181
  end
6602
7182
 
6603
- # Metadata returned for the TestCases.RunTestCase long running operation.
7183
+ # Metadata returned for the TestCases.RunTestCase long running operation. This
7184
+ # message currently has no fields.
6604
7185
  class GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata
6605
7186
  include Google::Apis::Core::Hashable
6606
7187
 
@@ -6658,22 +7239,42 @@ module Google
6658
7239
  class GoogleCloudDialogflowCxV3beta1SecuritySettings
6659
7240
  include Google::Apis::Core::Hashable
6660
7241
 
7242
+ # [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
7243
+ # template to define de-identification configuration for the content. If empty,
7244
+ # Dialogflow replaces sensitive info with `[redacted]` text. The template name
7245
+ # will have one of the following formats: `projects//locations//
7246
+ # deidentifyTemplates/` OR `organizations//locations//deidentifyTemplates/` Note:
7247
+ # `deidentify_template` must be located in the same region as the `
7248
+ # SecuritySettings`.
7249
+ # Corresponds to the JSON property `deidentifyTemplate`
7250
+ # @return [String]
7251
+ attr_accessor :deidentify_template
7252
+
6661
7253
  # Required. The human-readable name of the security settings, unique within the
6662
7254
  # location.
6663
7255
  # Corresponds to the JSON property `displayName`
6664
7256
  # @return [String]
6665
7257
  attr_accessor :display_name
6666
7258
 
7259
+ # Settings for exporting conversations to [Insights](https://cloud.google.com/
7260
+ # dialogflow/priv/docs/insights).
7261
+ # Corresponds to the JSON property `insightsExportSettings`
7262
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SecuritySettingsInsightsExportSettings]
7263
+ attr_accessor :insights_export_settings
7264
+
6667
7265
  # [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
6668
7266
  # template to define inspect base settings. If empty, we use the default DLP
6669
7267
  # inspect config. The template name will have one of the following formats: `
6670
- # projects//inspectTemplates/` OR `projects//locations//inspectTemplates/` OR `
6671
- # organizations//inspectTemplates/`
7268
+ # projects//locations//inspectTemplates/` OR `organizations//locations//
7269
+ # inspectTemplates/` Note: `inspect_template` must be located in the same region
7270
+ # as the `SecuritySettings`.
6672
7271
  # Corresponds to the JSON property `inspectTemplate`
6673
7272
  # @return [String]
6674
7273
  attr_accessor :inspect_template
6675
7274
 
6676
- # Required. Resource name of the settings. Format: `projects//locations//
7275
+ # Resource name of the settings. Required for the SecuritySettingsService.
7276
+ # UpdateSecuritySettings method. SecuritySettingsService.CreateSecuritySettings
7277
+ # populates the name automatically. Format: `projects//locations//
6677
7278
  # securitySettings/`.
6678
7279
  # Corresponds to the JSON property `name`
6679
7280
  # @return [String]
@@ -6711,7 +7312,9 @@ module Google
6711
7312
 
6712
7313
  # Update properties of this object
6713
7314
  def update!(**args)
7315
+ @deidentify_template = args[:deidentify_template] if args.key?(:deidentify_template)
6714
7316
  @display_name = args[:display_name] if args.key?(:display_name)
7317
+ @insights_export_settings = args[:insights_export_settings] if args.key?(:insights_export_settings)
6715
7318
  @inspect_template = args[:inspect_template] if args.key?(:inspect_template)
6716
7319
  @name = args[:name] if args.key?(:name)
6717
7320
  @purge_data_types = args[:purge_data_types] if args.key?(:purge_data_types)
@@ -6721,6 +7324,28 @@ module Google
6721
7324
  end
6722
7325
  end
6723
7326
 
7327
+ # Settings for exporting conversations to [Insights](https://cloud.google.com/
7328
+ # dialogflow/priv/docs/insights).
7329
+ class GoogleCloudDialogflowCxV3beta1SecuritySettingsInsightsExportSettings
7330
+ include Google::Apis::Core::Hashable
7331
+
7332
+ # If enabled, we will automatically exports conversations to Insights and
7333
+ # Insights runs its analyzers.
7334
+ # Corresponds to the JSON property `enableInsightsExport`
7335
+ # @return [Boolean]
7336
+ attr_accessor :enable_insights_export
7337
+ alias_method :enable_insights_export?, :enable_insights_export
7338
+
7339
+ def initialize(**args)
7340
+ update!(**args)
7341
+ end
7342
+
7343
+ # Update properties of this object
7344
+ def update!(**args)
7345
+ @enable_insights_export = args[:enable_insights_export] if args.key?(:enable_insights_export)
7346
+ end
7347
+ end
7348
+
6724
7349
  # The result of sentiment analysis. Sentiment analysis inspects user input and
6725
7350
  # identifies the prevailing subjective opinion, especially to determine a user's
6726
7351
  # attitude as positive, negative, or neutral.
@@ -8729,8 +9354,9 @@ module Google
8729
9354
  # @return [Array<String>]
8730
9355
  attr_accessor :events
8731
9356
 
8732
- # Read-only. Information about all followup intents that have this intent as a
8733
- # direct or indirect parent. We populate this field only in the output.
9357
+ # Output only. Read-only. Information about all followup intents that have this
9358
+ # intent as a direct or indirect parent. We populate this field only in the
9359
+ # output.
8734
9360
  # Corresponds to the JSON property `followupIntentInfo`
8735
9361
  # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2IntentFollowupIntentInfo>]
8736
9362
  attr_accessor :followup_intent_info
@@ -8815,9 +9441,10 @@ module Google
8815
9441
  attr_accessor :reset_contexts
8816
9442
  alias_method :reset_contexts?, :reset_contexts
8817
9443
 
8818
- # Read-only. The unique identifier of the root intent in the chain of followup
8819
- # intents. It identifies the correct followup intents chain for this intent. We
8820
- # populate this field only in the output. Format: `projects//agent/intents/`.
9444
+ # Output only. Read-only. The unique identifier of the root intent in the chain
9445
+ # of followup intents. It identifies the correct followup intents chain for this
9446
+ # intent. We populate this field only in the output. Format: `projects//agent/
9447
+ # intents/`.
8821
9448
  # Corresponds to the JSON property `rootFollowupIntentName`
8822
9449
  # @return [String]
8823
9450
  attr_accessor :root_followup_intent_name
@@ -13769,6 +14396,78 @@ module Google
13769
14396
  end
13770
14397
  end
13771
14398
 
14399
+ # The response message for Locations.ListLocations.
14400
+ class GoogleCloudLocationListLocationsResponse
14401
+ include Google::Apis::Core::Hashable
14402
+
14403
+ # A list of locations that matches the specified filter in the request.
14404
+ # Corresponds to the JSON property `locations`
14405
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudLocationLocation>]
14406
+ attr_accessor :locations
14407
+
14408
+ # The standard List next-page token.
14409
+ # Corresponds to the JSON property `nextPageToken`
14410
+ # @return [String]
14411
+ attr_accessor :next_page_token
14412
+
14413
+ def initialize(**args)
14414
+ update!(**args)
14415
+ end
14416
+
14417
+ # Update properties of this object
14418
+ def update!(**args)
14419
+ @locations = args[:locations] if args.key?(:locations)
14420
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
14421
+ end
14422
+ end
14423
+
14424
+ # A resource that represents Google Cloud Platform location.
14425
+ class GoogleCloudLocationLocation
14426
+ include Google::Apis::Core::Hashable
14427
+
14428
+ # The friendly name for this location, typically a nearby city name. For example,
14429
+ # "Tokyo".
14430
+ # Corresponds to the JSON property `displayName`
14431
+ # @return [String]
14432
+ attr_accessor :display_name
14433
+
14434
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
14435
+ # region": "us-east1"`
14436
+ # Corresponds to the JSON property `labels`
14437
+ # @return [Hash<String,String>]
14438
+ attr_accessor :labels
14439
+
14440
+ # The canonical id for this location. For example: `"us-east1"`.
14441
+ # Corresponds to the JSON property `locationId`
14442
+ # @return [String]
14443
+ attr_accessor :location_id
14444
+
14445
+ # Service-specific metadata. For example the available capacity at the given
14446
+ # location.
14447
+ # Corresponds to the JSON property `metadata`
14448
+ # @return [Hash<String,Object>]
14449
+ attr_accessor :metadata
14450
+
14451
+ # Resource name for the location, which may vary between implementations. For
14452
+ # example: `"projects/example-project/locations/us-east1"`
14453
+ # Corresponds to the JSON property `name`
14454
+ # @return [String]
14455
+ attr_accessor :name
14456
+
14457
+ def initialize(**args)
14458
+ update!(**args)
14459
+ end
14460
+
14461
+ # Update properties of this object
14462
+ def update!(**args)
14463
+ @display_name = args[:display_name] if args.key?(:display_name)
14464
+ @labels = args[:labels] if args.key?(:labels)
14465
+ @location_id = args[:location_id] if args.key?(:location_id)
14466
+ @metadata = args[:metadata] if args.key?(:metadata)
14467
+ @name = args[:name] if args.key?(:name)
14468
+ end
14469
+ end
14470
+
13772
14471
  # The response message for Operations.ListOperations.
13773
14472
  class GoogleLongrunningListOperationsResponse
13774
14473
  include Google::Apis::Core::Hashable