google-apis-dialogflow_v2beta1 0.10.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/lib/google/apis/dialogflow_v2beta1/classes.rb +590 -29
- data/lib/google/apis/dialogflow_v2beta1/gem_version.rb +3 -3
- data/lib/google/apis/dialogflow_v2beta1/representations.rb +238 -0
- data/lib/google/apis/dialogflow_v2beta1/service.rb +887 -91
- metadata +4 -4
@@ -820,6 +820,144 @@ module Google
|
|
820
820
|
execute_or_queue_command(command, &block)
|
821
821
|
end
|
822
822
|
|
823
|
+
# Creates an agent environment.
|
824
|
+
# @param [String] parent
|
825
|
+
# Required. The agent to create an environment for. Supported formats: - `
|
826
|
+
# projects//agent` - `projects//locations//agent`
|
827
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object
|
828
|
+
# @param [String] environment_id
|
829
|
+
# Required. The unique id of the new environment.
|
830
|
+
# @param [String] fields
|
831
|
+
# Selector specifying which fields to include in a partial response.
|
832
|
+
# @param [String] quota_user
|
833
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
834
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
835
|
+
# @param [Google::Apis::RequestOptions] options
|
836
|
+
# Request-specific options
|
837
|
+
#
|
838
|
+
# @yield [result, err] Result & error if block supplied
|
839
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
|
840
|
+
# @yieldparam err [StandardError] error object if request failed
|
841
|
+
#
|
842
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
|
843
|
+
#
|
844
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
845
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
846
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
847
|
+
def create_project_agent_environment(parent, google_cloud_dialogflow_v2beta1_environment_object = nil, environment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
848
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/environments', options)
|
849
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
850
|
+
command.request_object = google_cloud_dialogflow_v2beta1_environment_object
|
851
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
852
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
|
853
|
+
command.params['parent'] = parent unless parent.nil?
|
854
|
+
command.query['environmentId'] = environment_id unless environment_id.nil?
|
855
|
+
command.query['fields'] = fields unless fields.nil?
|
856
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
857
|
+
execute_or_queue_command(command, &block)
|
858
|
+
end
|
859
|
+
|
860
|
+
# Deletes the specified agent environment.
|
861
|
+
# @param [String] name
|
862
|
+
# Required. The name of the environment to delete. / Format: - `projects//agent/
|
863
|
+
# environments/` - `projects//locations//agent/environments/`
|
864
|
+
# @param [String] fields
|
865
|
+
# Selector specifying which fields to include in a partial response.
|
866
|
+
# @param [String] quota_user
|
867
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
868
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
869
|
+
# @param [Google::Apis::RequestOptions] options
|
870
|
+
# Request-specific options
|
871
|
+
#
|
872
|
+
# @yield [result, err] Result & error if block supplied
|
873
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
874
|
+
# @yieldparam err [StandardError] error object if request failed
|
875
|
+
#
|
876
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
877
|
+
#
|
878
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
879
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
880
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
881
|
+
def delete_project_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
|
882
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
883
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
884
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
885
|
+
command.params['name'] = name unless name.nil?
|
886
|
+
command.query['fields'] = fields unless fields.nil?
|
887
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
888
|
+
execute_or_queue_command(command, &block)
|
889
|
+
end
|
890
|
+
|
891
|
+
# Retrieves the specified agent environment.
|
892
|
+
# @param [String] name
|
893
|
+
# Required. The name of the environment. Supported formats: - `projects//agent/
|
894
|
+
# environments/` - `projects//locations//agent/environments/`
|
895
|
+
# @param [String] fields
|
896
|
+
# Selector specifying which fields to include in a partial response.
|
897
|
+
# @param [String] quota_user
|
898
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
899
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
900
|
+
# @param [Google::Apis::RequestOptions] options
|
901
|
+
# Request-specific options
|
902
|
+
#
|
903
|
+
# @yield [result, err] Result & error if block supplied
|
904
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
|
905
|
+
# @yieldparam err [StandardError] error object if request failed
|
906
|
+
#
|
907
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
|
908
|
+
#
|
909
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
910
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
911
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
912
|
+
def get_project_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
|
913
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
914
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
915
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
|
916
|
+
command.params['name'] = name unless name.nil?
|
917
|
+
command.query['fields'] = fields unless fields.nil?
|
918
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
919
|
+
execute_or_queue_command(command, &block)
|
920
|
+
end
|
921
|
+
|
922
|
+
# Gets the history of the specified environment.
|
923
|
+
# @param [String] parent
|
924
|
+
# Required. The name of the environment to retrieve history for. Supported
|
925
|
+
# formats: - `projects//agent/environments/` - `projects//locations//agent/
|
926
|
+
# environments/`
|
927
|
+
# @param [Fixnum] page_size
|
928
|
+
# Optional. The maximum number of items to return in a single page. By default
|
929
|
+
# 100 and at most 1000.
|
930
|
+
# @param [String] page_token
|
931
|
+
# Optional. The next_page_token value returned from a previous list request.
|
932
|
+
# @param [String] fields
|
933
|
+
# Selector specifying which fields to include in a partial response.
|
934
|
+
# @param [String] quota_user
|
935
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
936
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
937
|
+
# @param [Google::Apis::RequestOptions] options
|
938
|
+
# Request-specific options
|
939
|
+
#
|
940
|
+
# @yield [result, err] Result & error if block supplied
|
941
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory] parsed result object
|
942
|
+
# @yieldparam err [StandardError] error object if request failed
|
943
|
+
#
|
944
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory]
|
945
|
+
#
|
946
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
947
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
948
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
949
|
+
def get_project_agent_environment_history(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
950
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/history', options)
|
951
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory::Representation
|
952
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory
|
953
|
+
command.params['parent'] = parent unless parent.nil?
|
954
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
955
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
956
|
+
command.query['fields'] = fields unless fields.nil?
|
957
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
958
|
+
execute_or_queue_command(command, &block)
|
959
|
+
end
|
960
|
+
|
823
961
|
# Returns the list of all non-draft environments of the specified agent.
|
824
962
|
# @param [String] parent
|
825
963
|
# Required. The agent to list all environments from. Format: - `projects//agent`
|
@@ -858,9 +996,66 @@ module Google
|
|
858
996
|
execute_or_queue_command(command, &block)
|
859
997
|
end
|
860
998
|
|
999
|
+
# Updates the specified agent environment. This method allows you to deploy new
|
1000
|
+
# agent versions into the environment. When an environment is pointed to a new
|
1001
|
+
# agent version by setting `environment.agent_version`, the environment is
|
1002
|
+
# temporarily set to the `LOADING` state. During that time, the environment
|
1003
|
+
# keeps on serving the previous version of the agent. After the new agent
|
1004
|
+
# version is done loading, the environment is set back to the `RUNNING` state.
|
1005
|
+
# You can use "-" as Environment ID in environment name to update version in "
|
1006
|
+
# draft" environment. WARNING: this will negate all recent changes to draft and
|
1007
|
+
# can't be undone. You may want to save the draft to a version before calling
|
1008
|
+
# this function.
|
1009
|
+
# @param [String] name
|
1010
|
+
# Output only. The unique identifier of this agent environment. Supported
|
1011
|
+
# formats: - `projects//agent/environments/` - `projects//locations//agent/
|
1012
|
+
# environments/`
|
1013
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object
|
1014
|
+
# @param [Boolean] allow_load_to_draft_and_discard_changes
|
1015
|
+
# Optional. This field is used to prevent accidental overwrite of the draft
|
1016
|
+
# environment, which is an operation that cannot be undone. To confirm that the
|
1017
|
+
# caller desires this overwrite, this field must be explicitly set to true when
|
1018
|
+
# updating the draft environment (environment ID = `-`).
|
1019
|
+
# @param [String] update_mask
|
1020
|
+
# Required. The mask to control which fields get updated.
|
1021
|
+
# @param [String] fields
|
1022
|
+
# Selector specifying which fields to include in a partial response.
|
1023
|
+
# @param [String] quota_user
|
1024
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1025
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1026
|
+
# @param [Google::Apis::RequestOptions] options
|
1027
|
+
# Request-specific options
|
1028
|
+
#
|
1029
|
+
# @yield [result, err] Result & error if block supplied
|
1030
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
|
1031
|
+
# @yieldparam err [StandardError] error object if request failed
|
1032
|
+
#
|
1033
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
|
1034
|
+
#
|
1035
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1036
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1037
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1038
|
+
def patch_project_agent_environment(name, google_cloud_dialogflow_v2beta1_environment_object = nil, allow_load_to_draft_and_discard_changes: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1039
|
+
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
1040
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
1041
|
+
command.request_object = google_cloud_dialogflow_v2beta1_environment_object
|
1042
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
1043
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
|
1044
|
+
command.params['name'] = name unless name.nil?
|
1045
|
+
command.query['allowLoadToDraftAndDiscardChanges'] = allow_load_to_draft_and_discard_changes unless allow_load_to_draft_and_discard_changes.nil?
|
1046
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1047
|
+
command.query['fields'] = fields unless fields.nil?
|
1048
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1049
|
+
execute_or_queue_command(command, &block)
|
1050
|
+
end
|
1051
|
+
|
861
1052
|
# Returns the list of all intents in the specified agent.
|
862
1053
|
# @param [String] parent
|
863
|
-
# Required. The agent to list all intents from. Format: `projects//agent
|
1054
|
+
# Required. The agent to list all intents from. Format: `projects//agent` or `
|
1055
|
+
# projects//locations//agent`. Alternatively, you can specify the environment to
|
1056
|
+
# list intents for. Format: `projects//agent/environments/` or `projects//
|
1057
|
+
# locations//agent/environments/`. Note: training phrases of the intents will
|
1058
|
+
# not be returned for non-draft environment.
|
864
1059
|
# @param [String] intent_view
|
865
1060
|
# Optional. The resource view to apply to the returned intent.
|
866
1061
|
# @param [String] language_code
|
@@ -1581,7 +1776,11 @@ module Google
|
|
1581
1776
|
|
1582
1777
|
# Returns the list of all intents in the specified agent.
|
1583
1778
|
# @param [String] parent
|
1584
|
-
# Required. The agent to list all intents from. Format: `projects//agent
|
1779
|
+
# Required. The agent to list all intents from. Format: `projects//agent` or `
|
1780
|
+
# projects//locations//agent`. Alternatively, you can specify the environment to
|
1781
|
+
# list intents for. Format: `projects//agent/environments/` or `projects//
|
1782
|
+
# locations//agent/environments/`. Note: training phrases of the intents will
|
1783
|
+
# not be returned for non-draft environment.
|
1585
1784
|
# @param [String] intent_view
|
1586
1785
|
# Optional. The resource view to apply to the returned intent.
|
1587
1786
|
# @param [String] language_code
|
@@ -2600,10 +2799,12 @@ module Google
|
|
2600
2799
|
execute_or_queue_command(command, &block)
|
2601
2800
|
end
|
2602
2801
|
|
2603
|
-
#
|
2604
|
-
#
|
2605
|
-
#
|
2606
|
-
#
|
2802
|
+
# Creates an agent version. The new version points to the agent instance in the "
|
2803
|
+
# default" environment.
|
2804
|
+
# @param [String] parent
|
2805
|
+
# Required. The agent to create a version for. Supported formats: - `projects//
|
2806
|
+
# agent` - `projects//locations//agent`
|
2807
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] google_cloud_dialogflow_v2beta1_version_object
|
2607
2808
|
# @param [String] fields
|
2608
2809
|
# Selector specifying which fields to include in a partial response.
|
2609
2810
|
# @param [String] quota_user
|
@@ -2613,36 +2814,30 @@ module Google
|
|
2613
2814
|
# Request-specific options
|
2614
2815
|
#
|
2615
2816
|
# @yield [result, err] Result & error if block supplied
|
2616
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::
|
2817
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
|
2617
2818
|
# @yieldparam err [StandardError] error object if request failed
|
2618
2819
|
#
|
2619
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2820
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
|
2620
2821
|
#
|
2621
2822
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2622
2823
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2623
2824
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2624
|
-
def
|
2625
|
-
command = make_simple_command(:
|
2626
|
-
command.
|
2627
|
-
command.
|
2628
|
-
command.
|
2825
|
+
def create_project_agent_version(parent, google_cloud_dialogflow_v2beta1_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2826
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/versions', options)
|
2827
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
2828
|
+
command.request_object = google_cloud_dialogflow_v2beta1_version_object
|
2829
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
2830
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
|
2831
|
+
command.params['parent'] = parent unless parent.nil?
|
2629
2832
|
command.query['fields'] = fields unless fields.nil?
|
2630
2833
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2631
2834
|
execute_or_queue_command(command, &block)
|
2632
2835
|
end
|
2633
2836
|
|
2634
|
-
#
|
2635
|
-
#
|
2636
|
-
#
|
2637
|
-
#
|
2638
|
-
# order. Format: `projects//locations/`.
|
2639
|
-
# @param [Fixnum] page_size
|
2640
|
-
# Optional. The maximum number of records to return in a single page. The server
|
2641
|
-
# may return fewer records than this. If unspecified, we use 10. The maximum is
|
2642
|
-
# 100.
|
2643
|
-
# @param [String] page_token
|
2644
|
-
# Optional. The ListAnswerRecordsResponse.next_page_token value returned from a
|
2645
|
-
# previous list request used to continue listing on the next page.
|
2837
|
+
# Delete the specified agent version.
|
2838
|
+
# @param [String] name
|
2839
|
+
# Required. The name of the version to delete. Supported formats: - `projects//
|
2840
|
+
# agent/versions/` - `projects//locations//agent/versions/`
|
2646
2841
|
# @param [String] fields
|
2647
2842
|
# Selector specifying which fields to include in a partial response.
|
2648
2843
|
# @param [String] quota_user
|
@@ -2652,33 +2847,28 @@ module Google
|
|
2652
2847
|
# Request-specific options
|
2653
2848
|
#
|
2654
2849
|
# @yield [result, err] Result & error if block supplied
|
2655
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::
|
2850
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
2656
2851
|
# @yieldparam err [StandardError] error object if request failed
|
2657
2852
|
#
|
2658
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2853
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
2659
2854
|
#
|
2660
2855
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2661
2856
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2662
2857
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2663
|
-
def
|
2664
|
-
command = make_simple_command(:
|
2665
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::
|
2666
|
-
command.response_class = Google::Apis::DialogflowV2beta1::
|
2667
|
-
command.params['
|
2668
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
2669
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
2858
|
+
def delete_project_agent_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
2859
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
2860
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
2861
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
2862
|
+
command.params['name'] = name unless name.nil?
|
2670
2863
|
command.query['fields'] = fields unless fields.nil?
|
2671
2864
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2672
2865
|
execute_or_queue_command(command, &block)
|
2673
2866
|
end
|
2674
2867
|
|
2675
|
-
#
|
2868
|
+
# Retrieves the specified agent version.
|
2676
2869
|
# @param [String] name
|
2677
|
-
# The
|
2678
|
-
#
|
2679
|
-
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord] google_cloud_dialogflow_v2beta1_answer_record_object
|
2680
|
-
# @param [String] update_mask
|
2681
|
-
# Required. The mask to control which fields get updated.
|
2870
|
+
# Required. The name of the version. Supported formats: - `projects//agent/
|
2871
|
+
# versions/` - `projects//locations//agent/versions/`
|
2682
2872
|
# @param [String] fields
|
2683
2873
|
# Selector specifying which fields to include in a partial response.
|
2684
2874
|
# @param [String] quota_user
|
@@ -2688,34 +2878,33 @@ module Google
|
|
2688
2878
|
# Request-specific options
|
2689
2879
|
#
|
2690
2880
|
# @yield [result, err] Result & error if block supplied
|
2691
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::
|
2881
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
|
2692
2882
|
# @yieldparam err [StandardError] error object if request failed
|
2693
2883
|
#
|
2694
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2884
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
|
2695
2885
|
#
|
2696
2886
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2697
2887
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2698
2888
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2699
|
-
def
|
2700
|
-
command = make_simple_command(:
|
2701
|
-
command.
|
2702
|
-
command.
|
2703
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord::Representation
|
2704
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord
|
2889
|
+
def get_project_agent_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
2890
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
2891
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
2892
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
|
2705
2893
|
command.params['name'] = name unless name.nil?
|
2706
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2707
2894
|
command.query['fields'] = fields unless fields.nil?
|
2708
2895
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2709
2896
|
execute_or_queue_command(command, &block)
|
2710
2897
|
end
|
2711
2898
|
|
2712
|
-
#
|
2713
|
-
# CreateTime and ConversationProfile.UpdateTime aren't populated in the response.
|
2714
|
-
# You can retrieve them via GetConversationProfile API.
|
2899
|
+
# Returns the list of all versions of the specified agent.
|
2715
2900
|
# @param [String] parent
|
2716
|
-
# Required. The
|
2717
|
-
# locations
|
2718
|
-
# @param [
|
2901
|
+
# Required. The agent to list all versions from. Supported formats: - `projects//
|
2902
|
+
# agent` - `projects//locations//agent`
|
2903
|
+
# @param [Fixnum] page_size
|
2904
|
+
# Optional. The maximum number of items to return in a single page. By default
|
2905
|
+
# 100 and at most 1000.
|
2906
|
+
# @param [String] page_token
|
2907
|
+
# Optional. The next_page_token value returned from a previous list request.
|
2719
2908
|
# @param [String] fields
|
2720
2909
|
# Selector specifying which fields to include in a partial response.
|
2721
2910
|
# @param [String] quota_user
|
@@ -2725,30 +2914,35 @@ module Google
|
|
2725
2914
|
# Request-specific options
|
2726
2915
|
#
|
2727
2916
|
# @yield [result, err] Result & error if block supplied
|
2728
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::
|
2917
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse] parsed result object
|
2729
2918
|
# @yieldparam err [StandardError] error object if request failed
|
2730
2919
|
#
|
2731
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2920
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse]
|
2732
2921
|
#
|
2733
2922
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2734
2923
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2735
2924
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2736
|
-
def
|
2737
|
-
command = make_simple_command(:
|
2738
|
-
command.
|
2739
|
-
command.
|
2740
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile::Representation
|
2741
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile
|
2925
|
+
def list_project_agent_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2926
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/versions', options)
|
2927
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse::Representation
|
2928
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse
|
2742
2929
|
command.params['parent'] = parent unless parent.nil?
|
2930
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2931
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2743
2932
|
command.query['fields'] = fields unless fields.nil?
|
2744
2933
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2745
2934
|
execute_or_queue_command(command, &block)
|
2746
2935
|
end
|
2747
2936
|
|
2748
|
-
#
|
2937
|
+
# Updates the specified agent version. Note that this method does not allow you
|
2938
|
+
# to update the state of the agent the given version points to. It allows you to
|
2939
|
+
# update only mutable properties of the version resource.
|
2749
2940
|
# @param [String] name
|
2750
|
-
#
|
2751
|
-
# locations//
|
2941
|
+
# Output only. The unique identifier of this agent version. Supported formats: -
|
2942
|
+
# `projects//agent/versions/` - `projects//locations//agent/versions/`
|
2943
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] google_cloud_dialogflow_v2beta1_version_object
|
2944
|
+
# @param [String] update_mask
|
2945
|
+
# Required. The mask to control which fields get updated.
|
2752
2946
|
# @param [String] fields
|
2753
2947
|
# Selector specifying which fields to include in a partial response.
|
2754
2948
|
# @param [String] quota_user
|
@@ -2758,28 +2952,31 @@ module Google
|
|
2758
2952
|
# Request-specific options
|
2759
2953
|
#
|
2760
2954
|
# @yield [result, err] Result & error if block supplied
|
2761
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::
|
2955
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
|
2762
2956
|
# @yieldparam err [StandardError] error object if request failed
|
2763
2957
|
#
|
2764
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2958
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
|
2765
2959
|
#
|
2766
2960
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2767
2961
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2768
2962
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2769
|
-
def
|
2770
|
-
command = make_simple_command(:
|
2771
|
-
command.
|
2772
|
-
command.
|
2963
|
+
def patch_project_agent_version(name, google_cloud_dialogflow_v2beta1_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2964
|
+
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
2965
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
2966
|
+
command.request_object = google_cloud_dialogflow_v2beta1_version_object
|
2967
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
2968
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
|
2773
2969
|
command.params['name'] = name unless name.nil?
|
2970
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2774
2971
|
command.query['fields'] = fields unless fields.nil?
|
2775
2972
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2776
2973
|
execute_or_queue_command(command, &block)
|
2777
2974
|
end
|
2778
2975
|
|
2779
|
-
# Retrieves
|
2976
|
+
# Deprecated. Retrieves a specific answer record.
|
2780
2977
|
# @param [String] name
|
2781
|
-
# Required. The
|
2782
|
-
# locations//
|
2978
|
+
# Required. The name of the answer record to retrieve. Format: `projects//
|
2979
|
+
# locations//answerRecords/`.
|
2783
2980
|
# @param [String] fields
|
2784
2981
|
# Selector specifying which fields to include in a partial response.
|
2785
2982
|
# @param [String] quota_user
|
@@ -2789,33 +2986,36 @@ module Google
|
|
2789
2986
|
# Request-specific options
|
2790
2987
|
#
|
2791
2988
|
# @yield [result, err] Result & error if block supplied
|
2792
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::
|
2989
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord] parsed result object
|
2793
2990
|
# @yieldparam err [StandardError] error object if request failed
|
2794
2991
|
#
|
2795
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2992
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord]
|
2796
2993
|
#
|
2797
2994
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2798
2995
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2799
2996
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2800
|
-
def
|
2997
|
+
def get_project_answer_record(name, fields: nil, quota_user: nil, options: nil, &block)
|
2801
2998
|
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
2802
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::
|
2803
|
-
command.response_class = Google::Apis::DialogflowV2beta1::
|
2999
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord::Representation
|
3000
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord
|
2804
3001
|
command.params['name'] = name unless name.nil?
|
2805
3002
|
command.query['fields'] = fields unless fields.nil?
|
2806
3003
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2807
3004
|
execute_or_queue_command(command, &block)
|
2808
3005
|
end
|
2809
3006
|
|
2810
|
-
# Returns the list of all
|
3007
|
+
# Returns the list of all answer records in the specified project in reverse
|
3008
|
+
# chronological order.
|
2811
3009
|
# @param [String] parent
|
2812
|
-
# Required. The project to list all
|
2813
|
-
# projects//locations/`.
|
3010
|
+
# Required. The project to list all answer records for in reverse chronological
|
3011
|
+
# order. Format: `projects//locations/`.
|
2814
3012
|
# @param [Fixnum] page_size
|
2815
|
-
# The maximum number of
|
2816
|
-
#
|
3013
|
+
# Optional. The maximum number of records to return in a single page. The server
|
3014
|
+
# may return fewer records than this. If unspecified, we use 10. The maximum is
|
3015
|
+
# 100.
|
2817
3016
|
# @param [String] page_token
|
2818
|
-
# The next_page_token value returned from a
|
3017
|
+
# Optional. The ListAnswerRecordsResponse.next_page_token value returned from a
|
3018
|
+
# previous list request used to continue listing on the next page.
|
2819
3019
|
# @param [String] fields
|
2820
3020
|
# Selector specifying which fields to include in a partial response.
|
2821
3021
|
# @param [String] quota_user
|
@@ -2825,10 +3025,183 @@ module Google
|
|
2825
3025
|
# Request-specific options
|
2826
3026
|
#
|
2827
3027
|
# @yield [result, err] Result & error if block supplied
|
2828
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::
|
3028
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse] parsed result object
|
2829
3029
|
# @yieldparam err [StandardError] error object if request failed
|
2830
3030
|
#
|
2831
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
3031
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse]
|
3032
|
+
#
|
3033
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3034
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3035
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3036
|
+
def list_project_answer_records(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3037
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/answerRecords', options)
|
3038
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse::Representation
|
3039
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse
|
3040
|
+
command.params['parent'] = parent unless parent.nil?
|
3041
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
3042
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3043
|
+
command.query['fields'] = fields unless fields.nil?
|
3044
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3045
|
+
execute_or_queue_command(command, &block)
|
3046
|
+
end
|
3047
|
+
|
3048
|
+
# Updates the specified answer record.
|
3049
|
+
# @param [String] name
|
3050
|
+
# The unique identifier of this answer record. Required for AnswerRecords.
|
3051
|
+
# UpdateAnswerRecord method. Format: `projects//locations//answerRecords/`.
|
3052
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord] google_cloud_dialogflow_v2beta1_answer_record_object
|
3053
|
+
# @param [String] update_mask
|
3054
|
+
# Required. The mask to control which fields get updated.
|
3055
|
+
# @param [String] fields
|
3056
|
+
# Selector specifying which fields to include in a partial response.
|
3057
|
+
# @param [String] quota_user
|
3058
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3059
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3060
|
+
# @param [Google::Apis::RequestOptions] options
|
3061
|
+
# Request-specific options
|
3062
|
+
#
|
3063
|
+
# @yield [result, err] Result & error if block supplied
|
3064
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord] parsed result object
|
3065
|
+
# @yieldparam err [StandardError] error object if request failed
|
3066
|
+
#
|
3067
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord]
|
3068
|
+
#
|
3069
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3070
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3071
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3072
|
+
def patch_project_answer_record(name, google_cloud_dialogflow_v2beta1_answer_record_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3073
|
+
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
3074
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord::Representation
|
3075
|
+
command.request_object = google_cloud_dialogflow_v2beta1_answer_record_object
|
3076
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord::Representation
|
3077
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord
|
3078
|
+
command.params['name'] = name unless name.nil?
|
3079
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3080
|
+
command.query['fields'] = fields unless fields.nil?
|
3081
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3082
|
+
execute_or_queue_command(command, &block)
|
3083
|
+
end
|
3084
|
+
|
3085
|
+
# Creates a conversation profile in the specified project. ConversationProfile.
|
3086
|
+
# CreateTime and ConversationProfile.UpdateTime aren't populated in the response.
|
3087
|
+
# You can retrieve them via GetConversationProfile API.
|
3088
|
+
# @param [String] parent
|
3089
|
+
# Required. The project to create a conversation profile for. Format: `projects//
|
3090
|
+
# locations/`.
|
3091
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile] google_cloud_dialogflow_v2beta1_conversation_profile_object
|
3092
|
+
# @param [String] fields
|
3093
|
+
# Selector specifying which fields to include in a partial response.
|
3094
|
+
# @param [String] quota_user
|
3095
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3096
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3097
|
+
# @param [Google::Apis::RequestOptions] options
|
3098
|
+
# Request-specific options
|
3099
|
+
#
|
3100
|
+
# @yield [result, err] Result & error if block supplied
|
3101
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile] parsed result object
|
3102
|
+
# @yieldparam err [StandardError] error object if request failed
|
3103
|
+
#
|
3104
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile]
|
3105
|
+
#
|
3106
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3107
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3108
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3109
|
+
def create_project_conversation_profile(parent, google_cloud_dialogflow_v2beta1_conversation_profile_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3110
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/conversationProfiles', options)
|
3111
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile::Representation
|
3112
|
+
command.request_object = google_cloud_dialogflow_v2beta1_conversation_profile_object
|
3113
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile::Representation
|
3114
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile
|
3115
|
+
command.params['parent'] = parent unless parent.nil?
|
3116
|
+
command.query['fields'] = fields unless fields.nil?
|
3117
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3118
|
+
execute_or_queue_command(command, &block)
|
3119
|
+
end
|
3120
|
+
|
3121
|
+
# Deletes the specified conversation profile.
|
3122
|
+
# @param [String] name
|
3123
|
+
# Required. The name of the conversation profile to delete. Format: `projects//
|
3124
|
+
# locations//conversationProfiles/`.
|
3125
|
+
# @param [String] fields
|
3126
|
+
# Selector specifying which fields to include in a partial response.
|
3127
|
+
# @param [String] quota_user
|
3128
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3129
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3130
|
+
# @param [Google::Apis::RequestOptions] options
|
3131
|
+
# Request-specific options
|
3132
|
+
#
|
3133
|
+
# @yield [result, err] Result & error if block supplied
|
3134
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
3135
|
+
# @yieldparam err [StandardError] error object if request failed
|
3136
|
+
#
|
3137
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
3138
|
+
#
|
3139
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3140
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3141
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3142
|
+
def delete_project_conversation_profile(name, fields: nil, quota_user: nil, options: nil, &block)
|
3143
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
3144
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
3145
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
3146
|
+
command.params['name'] = name unless name.nil?
|
3147
|
+
command.query['fields'] = fields unless fields.nil?
|
3148
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3149
|
+
execute_or_queue_command(command, &block)
|
3150
|
+
end
|
3151
|
+
|
3152
|
+
# Retrieves the specified conversation profile.
|
3153
|
+
# @param [String] name
|
3154
|
+
# Required. The resource name of the conversation profile. Format: `projects//
|
3155
|
+
# locations//conversationProfiles/`.
|
3156
|
+
# @param [String] fields
|
3157
|
+
# Selector specifying which fields to include in a partial response.
|
3158
|
+
# @param [String] quota_user
|
3159
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3160
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3161
|
+
# @param [Google::Apis::RequestOptions] options
|
3162
|
+
# Request-specific options
|
3163
|
+
#
|
3164
|
+
# @yield [result, err] Result & error if block supplied
|
3165
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile] parsed result object
|
3166
|
+
# @yieldparam err [StandardError] error object if request failed
|
3167
|
+
#
|
3168
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile]
|
3169
|
+
#
|
3170
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3171
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3172
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3173
|
+
def get_project_conversation_profile(name, fields: nil, quota_user: nil, options: nil, &block)
|
3174
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
3175
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile::Representation
|
3176
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile
|
3177
|
+
command.params['name'] = name unless name.nil?
|
3178
|
+
command.query['fields'] = fields unless fields.nil?
|
3179
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3180
|
+
execute_or_queue_command(command, &block)
|
3181
|
+
end
|
3182
|
+
|
3183
|
+
# Returns the list of all conversation profiles in the specified project.
|
3184
|
+
# @param [String] parent
|
3185
|
+
# Required. The project to list all conversation profiles from. Format: `
|
3186
|
+
# projects//locations/`.
|
3187
|
+
# @param [Fixnum] page_size
|
3188
|
+
# The maximum number of items to return in a single page. By default 100 and at
|
3189
|
+
# most 1000.
|
3190
|
+
# @param [String] page_token
|
3191
|
+
# The next_page_token value returned from a previous list request.
|
3192
|
+
# @param [String] fields
|
3193
|
+
# Selector specifying which fields to include in a partial response.
|
3194
|
+
# @param [String] quota_user
|
3195
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3196
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3197
|
+
# @param [Google::Apis::RequestOptions] options
|
3198
|
+
# Request-specific options
|
3199
|
+
#
|
3200
|
+
# @yield [result, err] Result & error if block supplied
|
3201
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListConversationProfilesResponse] parsed result object
|
3202
|
+
# @yieldparam err [StandardError] error object if request failed
|
3203
|
+
#
|
3204
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListConversationProfilesResponse]
|
2832
3205
|
#
|
2833
3206
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2834
3207
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
@@ -3814,7 +4187,9 @@ module Google
|
|
3814
4187
|
execute_or_queue_command(command, &block)
|
3815
4188
|
end
|
3816
4189
|
|
3817
|
-
# Create documents by importing data from external sources.
|
4190
|
+
# Create documents by importing data from external sources. Dialogflow supports
|
4191
|
+
# up to 350 documents in each request. If you try to import more, Dialogflow
|
4192
|
+
# will return an error.
|
3818
4193
|
# @param [String] parent
|
3819
4194
|
# Required. The knowledge base to import documents into. Format: `projects//
|
3820
4195
|
# locations//knowledgeBases/`.
|
@@ -4752,6 +5127,144 @@ module Google
|
|
4752
5127
|
execute_or_queue_command(command, &block)
|
4753
5128
|
end
|
4754
5129
|
|
5130
|
+
# Creates an agent environment.
|
5131
|
+
# @param [String] parent
|
5132
|
+
# Required. The agent to create an environment for. Supported formats: - `
|
5133
|
+
# projects//agent` - `projects//locations//agent`
|
5134
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object
|
5135
|
+
# @param [String] environment_id
|
5136
|
+
# Required. The unique id of the new environment.
|
5137
|
+
# @param [String] fields
|
5138
|
+
# Selector specifying which fields to include in a partial response.
|
5139
|
+
# @param [String] quota_user
|
5140
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5141
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5142
|
+
# @param [Google::Apis::RequestOptions] options
|
5143
|
+
# Request-specific options
|
5144
|
+
#
|
5145
|
+
# @yield [result, err] Result & error if block supplied
|
5146
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
|
5147
|
+
# @yieldparam err [StandardError] error object if request failed
|
5148
|
+
#
|
5149
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
|
5150
|
+
#
|
5151
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5152
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5153
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5154
|
+
def create_project_location_agent_environment(parent, google_cloud_dialogflow_v2beta1_environment_object = nil, environment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5155
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/environments', options)
|
5156
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
5157
|
+
command.request_object = google_cloud_dialogflow_v2beta1_environment_object
|
5158
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
5159
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
|
5160
|
+
command.params['parent'] = parent unless parent.nil?
|
5161
|
+
command.query['environmentId'] = environment_id unless environment_id.nil?
|
5162
|
+
command.query['fields'] = fields unless fields.nil?
|
5163
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5164
|
+
execute_or_queue_command(command, &block)
|
5165
|
+
end
|
5166
|
+
|
5167
|
+
# Deletes the specified agent environment.
|
5168
|
+
# @param [String] name
|
5169
|
+
# Required. The name of the environment to delete. / Format: - `projects//agent/
|
5170
|
+
# environments/` - `projects//locations//agent/environments/`
|
5171
|
+
# @param [String] fields
|
5172
|
+
# Selector specifying which fields to include in a partial response.
|
5173
|
+
# @param [String] quota_user
|
5174
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5175
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5176
|
+
# @param [Google::Apis::RequestOptions] options
|
5177
|
+
# Request-specific options
|
5178
|
+
#
|
5179
|
+
# @yield [result, err] Result & error if block supplied
|
5180
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
5181
|
+
# @yieldparam err [StandardError] error object if request failed
|
5182
|
+
#
|
5183
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
5184
|
+
#
|
5185
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5186
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5187
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5188
|
+
def delete_project_location_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
|
5189
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
5190
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
5191
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
5192
|
+
command.params['name'] = name unless name.nil?
|
5193
|
+
command.query['fields'] = fields unless fields.nil?
|
5194
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5195
|
+
execute_or_queue_command(command, &block)
|
5196
|
+
end
|
5197
|
+
|
5198
|
+
# Retrieves the specified agent environment.
|
5199
|
+
# @param [String] name
|
5200
|
+
# Required. The name of the environment. Supported formats: - `projects//agent/
|
5201
|
+
# environments/` - `projects//locations//agent/environments/`
|
5202
|
+
# @param [String] fields
|
5203
|
+
# Selector specifying which fields to include in a partial response.
|
5204
|
+
# @param [String] quota_user
|
5205
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5206
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5207
|
+
# @param [Google::Apis::RequestOptions] options
|
5208
|
+
# Request-specific options
|
5209
|
+
#
|
5210
|
+
# @yield [result, err] Result & error if block supplied
|
5211
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
|
5212
|
+
# @yieldparam err [StandardError] error object if request failed
|
5213
|
+
#
|
5214
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
|
5215
|
+
#
|
5216
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5217
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5218
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5219
|
+
def get_project_location_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
|
5220
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
5221
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
5222
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
|
5223
|
+
command.params['name'] = name unless name.nil?
|
5224
|
+
command.query['fields'] = fields unless fields.nil?
|
5225
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5226
|
+
execute_or_queue_command(command, &block)
|
5227
|
+
end
|
5228
|
+
|
5229
|
+
# Gets the history of the specified environment.
|
5230
|
+
# @param [String] parent
|
5231
|
+
# Required. The name of the environment to retrieve history for. Supported
|
5232
|
+
# formats: - `projects//agent/environments/` - `projects//locations//agent/
|
5233
|
+
# environments/`
|
5234
|
+
# @param [Fixnum] page_size
|
5235
|
+
# Optional. The maximum number of items to return in a single page. By default
|
5236
|
+
# 100 and at most 1000.
|
5237
|
+
# @param [String] page_token
|
5238
|
+
# Optional. The next_page_token value returned from a previous list request.
|
5239
|
+
# @param [String] fields
|
5240
|
+
# Selector specifying which fields to include in a partial response.
|
5241
|
+
# @param [String] quota_user
|
5242
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5243
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5244
|
+
# @param [Google::Apis::RequestOptions] options
|
5245
|
+
# Request-specific options
|
5246
|
+
#
|
5247
|
+
# @yield [result, err] Result & error if block supplied
|
5248
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory] parsed result object
|
5249
|
+
# @yieldparam err [StandardError] error object if request failed
|
5250
|
+
#
|
5251
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory]
|
5252
|
+
#
|
5253
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5254
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5255
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5256
|
+
def get_project_location_agent_environment_history(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5257
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/history', options)
|
5258
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory::Representation
|
5259
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory
|
5260
|
+
command.params['parent'] = parent unless parent.nil?
|
5261
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
5262
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
5263
|
+
command.query['fields'] = fields unless fields.nil?
|
5264
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5265
|
+
execute_or_queue_command(command, &block)
|
5266
|
+
end
|
5267
|
+
|
4755
5268
|
# Returns the list of all non-draft environments of the specified agent.
|
4756
5269
|
# @param [String] parent
|
4757
5270
|
# Required. The agent to list all environments from. Format: - `projects//agent`
|
@@ -4790,6 +5303,109 @@ module Google
|
|
4790
5303
|
execute_or_queue_command(command, &block)
|
4791
5304
|
end
|
4792
5305
|
|
5306
|
+
# Updates the specified agent environment. This method allows you to deploy new
|
5307
|
+
# agent versions into the environment. When an environment is pointed to a new
|
5308
|
+
# agent version by setting `environment.agent_version`, the environment is
|
5309
|
+
# temporarily set to the `LOADING` state. During that time, the environment
|
5310
|
+
# keeps on serving the previous version of the agent. After the new agent
|
5311
|
+
# version is done loading, the environment is set back to the `RUNNING` state.
|
5312
|
+
# You can use "-" as Environment ID in environment name to update version in "
|
5313
|
+
# draft" environment. WARNING: this will negate all recent changes to draft and
|
5314
|
+
# can't be undone. You may want to save the draft to a version before calling
|
5315
|
+
# this function.
|
5316
|
+
# @param [String] name
|
5317
|
+
# Output only. The unique identifier of this agent environment. Supported
|
5318
|
+
# formats: - `projects//agent/environments/` - `projects//locations//agent/
|
5319
|
+
# environments/`
|
5320
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object
|
5321
|
+
# @param [Boolean] allow_load_to_draft_and_discard_changes
|
5322
|
+
# Optional. This field is used to prevent accidental overwrite of the draft
|
5323
|
+
# environment, which is an operation that cannot be undone. To confirm that the
|
5324
|
+
# caller desires this overwrite, this field must be explicitly set to true when
|
5325
|
+
# updating the draft environment (environment ID = `-`).
|
5326
|
+
# @param [String] update_mask
|
5327
|
+
# Required. The mask to control which fields get updated.
|
5328
|
+
# @param [String] fields
|
5329
|
+
# Selector specifying which fields to include in a partial response.
|
5330
|
+
# @param [String] quota_user
|
5331
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5332
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5333
|
+
# @param [Google::Apis::RequestOptions] options
|
5334
|
+
# Request-specific options
|
5335
|
+
#
|
5336
|
+
# @yield [result, err] Result & error if block supplied
|
5337
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
|
5338
|
+
# @yieldparam err [StandardError] error object if request failed
|
5339
|
+
#
|
5340
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
|
5341
|
+
#
|
5342
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5343
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5344
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5345
|
+
def patch_project_location_agent_environment(name, google_cloud_dialogflow_v2beta1_environment_object = nil, allow_load_to_draft_and_discard_changes: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5346
|
+
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
5347
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
5348
|
+
command.request_object = google_cloud_dialogflow_v2beta1_environment_object
|
5349
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
5350
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
|
5351
|
+
command.params['name'] = name unless name.nil?
|
5352
|
+
command.query['allowLoadToDraftAndDiscardChanges'] = allow_load_to_draft_and_discard_changes unless allow_load_to_draft_and_discard_changes.nil?
|
5353
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
5354
|
+
command.query['fields'] = fields unless fields.nil?
|
5355
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5356
|
+
execute_or_queue_command(command, &block)
|
5357
|
+
end
|
5358
|
+
|
5359
|
+
# Returns the list of all intents in the specified agent.
|
5360
|
+
# @param [String] parent
|
5361
|
+
# Required. The agent to list all intents from. Format: `projects//agent` or `
|
5362
|
+
# projects//locations//agent`. Alternatively, you can specify the environment to
|
5363
|
+
# list intents for. Format: `projects//agent/environments/` or `projects//
|
5364
|
+
# locations//agent/environments/`. Note: training phrases of the intents will
|
5365
|
+
# not be returned for non-draft environment.
|
5366
|
+
# @param [String] intent_view
|
5367
|
+
# Optional. The resource view to apply to the returned intent.
|
5368
|
+
# @param [String] language_code
|
5369
|
+
# Optional. The language used to access language-specific data. If not specified,
|
5370
|
+
# the agent's default language is used. For more information, see [Multilingual
|
5371
|
+
# intent and entity data](https://cloud.google.com/dialogflow/docs/agents-
|
5372
|
+
# multilingual#intent-entity).
|
5373
|
+
# @param [Fixnum] page_size
|
5374
|
+
# Optional. The maximum number of items to return in a single page. By default
|
5375
|
+
# 100 and at most 1000.
|
5376
|
+
# @param [String] page_token
|
5377
|
+
# Optional. The next_page_token value returned from a previous list request.
|
5378
|
+
# @param [String] fields
|
5379
|
+
# Selector specifying which fields to include in a partial response.
|
5380
|
+
# @param [String] quota_user
|
5381
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5382
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5383
|
+
# @param [Google::Apis::RequestOptions] options
|
5384
|
+
# Request-specific options
|
5385
|
+
#
|
5386
|
+
# @yield [result, err] Result & error if block supplied
|
5387
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListIntentsResponse] parsed result object
|
5388
|
+
# @yieldparam err [StandardError] error object if request failed
|
5389
|
+
#
|
5390
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListIntentsResponse]
|
5391
|
+
#
|
5392
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5393
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5394
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5395
|
+
def list_project_location_agent_environment_intents(parent, intent_view: nil, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5396
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/intents', options)
|
5397
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListIntentsResponse::Representation
|
5398
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListIntentsResponse
|
5399
|
+
command.params['parent'] = parent unless parent.nil?
|
5400
|
+
command.query['intentView'] = intent_view unless intent_view.nil?
|
5401
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
5402
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
5403
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
5404
|
+
command.query['fields'] = fields unless fields.nil?
|
5405
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5406
|
+
execute_or_queue_command(command, &block)
|
5407
|
+
end
|
5408
|
+
|
4793
5409
|
# Deletes all active contexts in the specified session.
|
4794
5410
|
# @param [String] parent
|
4795
5411
|
# Required. The name of the session to delete all contexts from. Supported
|
@@ -5467,7 +6083,11 @@ module Google
|
|
5467
6083
|
|
5468
6084
|
# Returns the list of all intents in the specified agent.
|
5469
6085
|
# @param [String] parent
|
5470
|
-
# Required. The agent to list all intents from. Format: `projects//agent
|
6086
|
+
# Required. The agent to list all intents from. Format: `projects//agent` or `
|
6087
|
+
# projects//locations//agent`. Alternatively, you can specify the environment to
|
6088
|
+
# list intents for. Format: `projects//agent/environments/` or `projects//
|
6089
|
+
# locations//agent/environments/`. Note: training phrases of the intents will
|
6090
|
+
# not be returned for non-draft environment.
|
5471
6091
|
# @param [String] intent_view
|
5472
6092
|
# Optional. The resource view to apply to the returned intent.
|
5473
6093
|
# @param [String] language_code
|
@@ -6050,6 +6670,180 @@ module Google
|
|
6050
6670
|
execute_or_queue_command(command, &block)
|
6051
6671
|
end
|
6052
6672
|
|
6673
|
+
# Creates an agent version. The new version points to the agent instance in the "
|
6674
|
+
# default" environment.
|
6675
|
+
# @param [String] parent
|
6676
|
+
# Required. The agent to create a version for. Supported formats: - `projects//
|
6677
|
+
# agent` - `projects//locations//agent`
|
6678
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] google_cloud_dialogflow_v2beta1_version_object
|
6679
|
+
# @param [String] fields
|
6680
|
+
# Selector specifying which fields to include in a partial response.
|
6681
|
+
# @param [String] quota_user
|
6682
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6683
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6684
|
+
# @param [Google::Apis::RequestOptions] options
|
6685
|
+
# Request-specific options
|
6686
|
+
#
|
6687
|
+
# @yield [result, err] Result & error if block supplied
|
6688
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
|
6689
|
+
# @yieldparam err [StandardError] error object if request failed
|
6690
|
+
#
|
6691
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
|
6692
|
+
#
|
6693
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6694
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6695
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6696
|
+
def create_project_location_agent_version(parent, google_cloud_dialogflow_v2beta1_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
6697
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/versions', options)
|
6698
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
6699
|
+
command.request_object = google_cloud_dialogflow_v2beta1_version_object
|
6700
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
6701
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
|
6702
|
+
command.params['parent'] = parent unless parent.nil?
|
6703
|
+
command.query['fields'] = fields unless fields.nil?
|
6704
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6705
|
+
execute_or_queue_command(command, &block)
|
6706
|
+
end
|
6707
|
+
|
6708
|
+
# Delete the specified agent version.
|
6709
|
+
# @param [String] name
|
6710
|
+
# Required. The name of the version to delete. Supported formats: - `projects//
|
6711
|
+
# agent/versions/` - `projects//locations//agent/versions/`
|
6712
|
+
# @param [String] fields
|
6713
|
+
# Selector specifying which fields to include in a partial response.
|
6714
|
+
# @param [String] quota_user
|
6715
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6716
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6717
|
+
# @param [Google::Apis::RequestOptions] options
|
6718
|
+
# Request-specific options
|
6719
|
+
#
|
6720
|
+
# @yield [result, err] Result & error if block supplied
|
6721
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
6722
|
+
# @yieldparam err [StandardError] error object if request failed
|
6723
|
+
#
|
6724
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
6725
|
+
#
|
6726
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6727
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6728
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6729
|
+
def delete_project_location_agent_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
6730
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
6731
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
6732
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
6733
|
+
command.params['name'] = name unless name.nil?
|
6734
|
+
command.query['fields'] = fields unless fields.nil?
|
6735
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6736
|
+
execute_or_queue_command(command, &block)
|
6737
|
+
end
|
6738
|
+
|
6739
|
+
# Retrieves the specified agent version.
|
6740
|
+
# @param [String] name
|
6741
|
+
# Required. The name of the version. Supported formats: - `projects//agent/
|
6742
|
+
# versions/` - `projects//locations//agent/versions/`
|
6743
|
+
# @param [String] fields
|
6744
|
+
# Selector specifying which fields to include in a partial response.
|
6745
|
+
# @param [String] quota_user
|
6746
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6747
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6748
|
+
# @param [Google::Apis::RequestOptions] options
|
6749
|
+
# Request-specific options
|
6750
|
+
#
|
6751
|
+
# @yield [result, err] Result & error if block supplied
|
6752
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
|
6753
|
+
# @yieldparam err [StandardError] error object if request failed
|
6754
|
+
#
|
6755
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
|
6756
|
+
#
|
6757
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6758
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6759
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6760
|
+
def get_project_location_agent_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
6761
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
6762
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
6763
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
|
6764
|
+
command.params['name'] = name unless name.nil?
|
6765
|
+
command.query['fields'] = fields unless fields.nil?
|
6766
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6767
|
+
execute_or_queue_command(command, &block)
|
6768
|
+
end
|
6769
|
+
|
6770
|
+
# Returns the list of all versions of the specified agent.
|
6771
|
+
# @param [String] parent
|
6772
|
+
# Required. The agent to list all versions from. Supported formats: - `projects//
|
6773
|
+
# agent` - `projects//locations//agent`
|
6774
|
+
# @param [Fixnum] page_size
|
6775
|
+
# Optional. The maximum number of items to return in a single page. By default
|
6776
|
+
# 100 and at most 1000.
|
6777
|
+
# @param [String] page_token
|
6778
|
+
# Optional. The next_page_token value returned from a previous list request.
|
6779
|
+
# @param [String] fields
|
6780
|
+
# Selector specifying which fields to include in a partial response.
|
6781
|
+
# @param [String] quota_user
|
6782
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6783
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6784
|
+
# @param [Google::Apis::RequestOptions] options
|
6785
|
+
# Request-specific options
|
6786
|
+
#
|
6787
|
+
# @yield [result, err] Result & error if block supplied
|
6788
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse] parsed result object
|
6789
|
+
# @yieldparam err [StandardError] error object if request failed
|
6790
|
+
#
|
6791
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse]
|
6792
|
+
#
|
6793
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6794
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6795
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6796
|
+
def list_project_location_agent_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6797
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/versions', options)
|
6798
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse::Representation
|
6799
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse
|
6800
|
+
command.params['parent'] = parent unless parent.nil?
|
6801
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
6802
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
6803
|
+
command.query['fields'] = fields unless fields.nil?
|
6804
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6805
|
+
execute_or_queue_command(command, &block)
|
6806
|
+
end
|
6807
|
+
|
6808
|
+
# Updates the specified agent version. Note that this method does not allow you
|
6809
|
+
# to update the state of the agent the given version points to. It allows you to
|
6810
|
+
# update only mutable properties of the version resource.
|
6811
|
+
# @param [String] name
|
6812
|
+
# Output only. The unique identifier of this agent version. Supported formats: -
|
6813
|
+
# `projects//agent/versions/` - `projects//locations//agent/versions/`
|
6814
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] google_cloud_dialogflow_v2beta1_version_object
|
6815
|
+
# @param [String] update_mask
|
6816
|
+
# Required. The mask to control which fields get updated.
|
6817
|
+
# @param [String] fields
|
6818
|
+
# Selector specifying which fields to include in a partial response.
|
6819
|
+
# @param [String] quota_user
|
6820
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6821
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6822
|
+
# @param [Google::Apis::RequestOptions] options
|
6823
|
+
# Request-specific options
|
6824
|
+
#
|
6825
|
+
# @yield [result, err] Result & error if block supplied
|
6826
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
|
6827
|
+
# @yieldparam err [StandardError] error object if request failed
|
6828
|
+
#
|
6829
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
|
6830
|
+
#
|
6831
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6832
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6833
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6834
|
+
def patch_project_location_agent_version(name, google_cloud_dialogflow_v2beta1_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6835
|
+
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
6836
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
6837
|
+
command.request_object = google_cloud_dialogflow_v2beta1_version_object
|
6838
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
6839
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
|
6840
|
+
command.params['name'] = name unless name.nil?
|
6841
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
6842
|
+
command.query['fields'] = fields unless fields.nil?
|
6843
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6844
|
+
execute_or_queue_command(command, &block)
|
6845
|
+
end
|
6846
|
+
|
6053
6847
|
# Deprecated. Retrieves a specific answer record.
|
6054
6848
|
# @param [String] name
|
6055
6849
|
# Required. The name of the answer record to retrieve. Format: `projects//
|
@@ -7170,7 +7964,9 @@ module Google
|
|
7170
7964
|
execute_or_queue_command(command, &block)
|
7171
7965
|
end
|
7172
7966
|
|
7173
|
-
# Create documents by importing data from external sources.
|
7967
|
+
# Create documents by importing data from external sources. Dialogflow supports
|
7968
|
+
# up to 350 documents in each request. If you try to import more, Dialogflow
|
7969
|
+
# will return an error.
|
7174
7970
|
# @param [String] parent
|
7175
7971
|
# Required. The knowledge base to import documents into. Format: `projects//
|
7176
7972
|
# locations//knowledgeBases/`.
|