google-apis-dialogflow_v2 0.24.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/dialogflow_v2/classes.rb +403 -24
- data/lib/google/apis/dialogflow_v2/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v2/representations.rb +153 -0
- data/lib/google/apis/dialogflow_v2/service.rb +225 -6
- metadata +4 -4
@@ -2033,6 +2033,19 @@ module Google
|
|
2033
2033
|
# @param [String] parent
|
2034
2034
|
# Required. The project to list of knowledge bases for. Format: `projects//
|
2035
2035
|
# locations/`.
|
2036
|
+
# @param [String] filter
|
2037
|
+
# The filter expression used to filter knowledge bases returned by the list
|
2038
|
+
# method. The expression has the following syntax: [AND ] ... The following
|
2039
|
+
# fields and operators are supported: * display_name with has(:) operator *
|
2040
|
+
# language_code with equals(=) operator Examples: * 'language_code=en-us'
|
2041
|
+
# matches knowledge bases with en-us language code. * 'display_name:articles'
|
2042
|
+
# matches knowledge bases whose display name contains "articles". * '
|
2043
|
+
# display_name:"Best Articles"' matches knowledge bases whose display name
|
2044
|
+
# contains "Best Articles". * 'language_code=en-gb AND display_name=articles'
|
2045
|
+
# matches all knowledge bases whose display name contains "articles" and whose
|
2046
|
+
# language code is "en-gb". Note: An empty filter string (i.e. "") is a no-op
|
2047
|
+
# and will result in no filtering. For more information about filtering, see [
|
2048
|
+
# API Filtering](https://aip.dev/160).
|
2036
2049
|
# @param [Fixnum] page_size
|
2037
2050
|
# The maximum number of items to return in a single page. By default 10 and at
|
2038
2051
|
# most 100.
|
@@ -2055,11 +2068,12 @@ module Google
|
|
2055
2068
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2056
2069
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2057
2070
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2058
|
-
def list_project_agent_knowledge_bases(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2071
|
+
def list_project_agent_knowledge_bases(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2059
2072
|
command = make_simple_command(:get, 'v2/{+parent}/knowledgeBases', options)
|
2060
2073
|
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListKnowledgeBasesResponse::Representation
|
2061
2074
|
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListKnowledgeBasesResponse
|
2062
2075
|
command.params['parent'] = parent unless parent.nil?
|
2076
|
+
command.query['filter'] = filter unless filter.nil?
|
2063
2077
|
command.query['pageSize'] = page_size unless page_size.nil?
|
2064
2078
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2065
2079
|
command.query['fields'] = fields unless fields.nil?
|
@@ -2213,6 +2227,16 @@ module Google
|
|
2213
2227
|
# @param [String] parent
|
2214
2228
|
# Required. The knowledge base to list all documents for. Format: `projects//
|
2215
2229
|
# locations//knowledgeBases/`.
|
2230
|
+
# @param [String] filter
|
2231
|
+
# The filter expression used to filter documents returned by the list method.
|
2232
|
+
# The expression has the following syntax: [AND ] ... The following fields and
|
2233
|
+
# operators are supported: * knowledge_types with has(:) operator * display_name
|
2234
|
+
# with has(:) operator * state with equals(=) operator Examples: * "
|
2235
|
+
# knowledge_types:FAQ" matches documents with FAQ knowledge type. * "
|
2236
|
+
# display_name:customer" matches documents whose display name contains "customer"
|
2237
|
+
# . * "state=ACTIVE" matches documents with ACTIVE state. * "knowledge_types:FAQ
|
2238
|
+
# AND state=ACTIVE" matches all active FAQ documents. For more information about
|
2239
|
+
# filtering, see [API Filtering](https://aip.dev/160).
|
2216
2240
|
# @param [Fixnum] page_size
|
2217
2241
|
# The maximum number of items to return in a single page. By default 10 and at
|
2218
2242
|
# most 100.
|
@@ -2235,11 +2259,12 @@ module Google
|
|
2235
2259
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2236
2260
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2237
2261
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2238
|
-
def list_project_agent_knowledge_basis_documents(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2262
|
+
def list_project_agent_knowledge_basis_documents(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2239
2263
|
command = make_simple_command(:get, 'v2/{+parent}/documents', options)
|
2240
2264
|
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListDocumentsResponse::Representation
|
2241
2265
|
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListDocumentsResponse
|
2242
2266
|
command.params['parent'] = parent unless parent.nil?
|
2267
|
+
command.query['filter'] = filter unless filter.nil?
|
2243
2268
|
command.query['pageSize'] = page_size unless page_size.nil?
|
2244
2269
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2245
2270
|
command.query['fields'] = fields unless fields.nil?
|
@@ -3693,6 +3718,40 @@ module Google
|
|
3693
3718
|
execute_or_queue_command(command, &block)
|
3694
3719
|
end
|
3695
3720
|
|
3721
|
+
# Gets smart replies for a participant based on specific historical messages.
|
3722
|
+
# @param [String] parent
|
3723
|
+
# Required. The name of the participant to fetch suggestion for. Format: `
|
3724
|
+
# projects//locations//conversations//participants/`.
|
3725
|
+
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestSmartRepliesRequest] google_cloud_dialogflow_v2_suggest_smart_replies_request_object
|
3726
|
+
# @param [String] fields
|
3727
|
+
# Selector specifying which fields to include in a partial response.
|
3728
|
+
# @param [String] quota_user
|
3729
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3730
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3731
|
+
# @param [Google::Apis::RequestOptions] options
|
3732
|
+
# Request-specific options
|
3733
|
+
#
|
3734
|
+
# @yield [result, err] Result & error if block supplied
|
3735
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestSmartRepliesResponse] parsed result object
|
3736
|
+
# @yieldparam err [StandardError] error object if request failed
|
3737
|
+
#
|
3738
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestSmartRepliesResponse]
|
3739
|
+
#
|
3740
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3741
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3742
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3743
|
+
def suggest_project_conversation_participant_suggestion_smart_replies(parent, google_cloud_dialogflow_v2_suggest_smart_replies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3744
|
+
command = make_simple_command(:post, 'v2/{+parent}/suggestions:suggestSmartReplies', options)
|
3745
|
+
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestSmartRepliesRequest::Representation
|
3746
|
+
command.request_object = google_cloud_dialogflow_v2_suggest_smart_replies_request_object
|
3747
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestSmartRepliesResponse::Representation
|
3748
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestSmartRepliesResponse
|
3749
|
+
command.params['parent'] = parent unless parent.nil?
|
3750
|
+
command.query['fields'] = fields unless fields.nil?
|
3751
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3752
|
+
execute_or_queue_command(command, &block)
|
3753
|
+
end
|
3754
|
+
|
3696
3755
|
# Creates a knowledge base.
|
3697
3756
|
# @param [String] parent
|
3698
3757
|
# Required. The project to create a knowledge base for. Format: `projects//
|
@@ -3797,6 +3856,19 @@ module Google
|
|
3797
3856
|
# @param [String] parent
|
3798
3857
|
# Required. The project to list of knowledge bases for. Format: `projects//
|
3799
3858
|
# locations/`.
|
3859
|
+
# @param [String] filter
|
3860
|
+
# The filter expression used to filter knowledge bases returned by the list
|
3861
|
+
# method. The expression has the following syntax: [AND ] ... The following
|
3862
|
+
# fields and operators are supported: * display_name with has(:) operator *
|
3863
|
+
# language_code with equals(=) operator Examples: * 'language_code=en-us'
|
3864
|
+
# matches knowledge bases with en-us language code. * 'display_name:articles'
|
3865
|
+
# matches knowledge bases whose display name contains "articles". * '
|
3866
|
+
# display_name:"Best Articles"' matches knowledge bases whose display name
|
3867
|
+
# contains "Best Articles". * 'language_code=en-gb AND display_name=articles'
|
3868
|
+
# matches all knowledge bases whose display name contains "articles" and whose
|
3869
|
+
# language code is "en-gb". Note: An empty filter string (i.e. "") is a no-op
|
3870
|
+
# and will result in no filtering. For more information about filtering, see [
|
3871
|
+
# API Filtering](https://aip.dev/160).
|
3800
3872
|
# @param [Fixnum] page_size
|
3801
3873
|
# The maximum number of items to return in a single page. By default 10 and at
|
3802
3874
|
# most 100.
|
@@ -3819,11 +3891,12 @@ module Google
|
|
3819
3891
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3820
3892
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3821
3893
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3822
|
-
def list_project_knowledge_bases(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3894
|
+
def list_project_knowledge_bases(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3823
3895
|
command = make_simple_command(:get, 'v2/{+parent}/knowledgeBases', options)
|
3824
3896
|
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListKnowledgeBasesResponse::Representation
|
3825
3897
|
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListKnowledgeBasesResponse
|
3826
3898
|
command.params['parent'] = parent unless parent.nil?
|
3899
|
+
command.query['filter'] = filter unless filter.nil?
|
3827
3900
|
command.query['pageSize'] = page_size unless page_size.nil?
|
3828
3901
|
command.query['pageToken'] = page_token unless page_token.nil?
|
3829
3902
|
command.query['fields'] = fields unless fields.nil?
|
@@ -3942,6 +4015,44 @@ module Google
|
|
3942
4015
|
execute_or_queue_command(command, &block)
|
3943
4016
|
end
|
3944
4017
|
|
4018
|
+
# Exports a smart messaging candidate document into the specified destination.
|
4019
|
+
# This method is a [long-running operation](https://cloud.google.com/dialogflow/
|
4020
|
+
# cx/docs/how/long-running-operation). The returned `Operation` type has the
|
4021
|
+
# following method-specific fields: - `metadata`: KnowledgeOperationMetadata - `
|
4022
|
+
# response`: Document
|
4023
|
+
# @param [String] name
|
4024
|
+
# Required. The name of the document to export. Format: `projects//locations//
|
4025
|
+
# knowledgeBases//documents/`.
|
4026
|
+
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ExportDocumentRequest] google_cloud_dialogflow_v2_export_document_request_object
|
4027
|
+
# @param [String] fields
|
4028
|
+
# Selector specifying which fields to include in a partial response.
|
4029
|
+
# @param [String] quota_user
|
4030
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4031
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4032
|
+
# @param [Google::Apis::RequestOptions] options
|
4033
|
+
# Request-specific options
|
4034
|
+
#
|
4035
|
+
# @yield [result, err] Result & error if block supplied
|
4036
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleLongrunningOperation] parsed result object
|
4037
|
+
# @yieldparam err [StandardError] error object if request failed
|
4038
|
+
#
|
4039
|
+
# @return [Google::Apis::DialogflowV2::GoogleLongrunningOperation]
|
4040
|
+
#
|
4041
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4042
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4043
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4044
|
+
def export_project_knowledge_basis_document(name, google_cloud_dialogflow_v2_export_document_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4045
|
+
command = make_simple_command(:post, 'v2/{+name}:export', options)
|
4046
|
+
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ExportDocumentRequest::Representation
|
4047
|
+
command.request_object = google_cloud_dialogflow_v2_export_document_request_object
|
4048
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningOperation::Representation
|
4049
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleLongrunningOperation
|
4050
|
+
command.params['name'] = name unless name.nil?
|
4051
|
+
command.query['fields'] = fields unless fields.nil?
|
4052
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4053
|
+
execute_or_queue_command(command, &block)
|
4054
|
+
end
|
4055
|
+
|
3945
4056
|
# Retrieves the specified document.
|
3946
4057
|
# @param [String] name
|
3947
4058
|
# Required. The name of the document to retrieve. Format `projects//locations//
|
@@ -3977,6 +4088,16 @@ module Google
|
|
3977
4088
|
# @param [String] parent
|
3978
4089
|
# Required. The knowledge base to list all documents for. Format: `projects//
|
3979
4090
|
# locations//knowledgeBases/`.
|
4091
|
+
# @param [String] filter
|
4092
|
+
# The filter expression used to filter documents returned by the list method.
|
4093
|
+
# The expression has the following syntax: [AND ] ... The following fields and
|
4094
|
+
# operators are supported: * knowledge_types with has(:) operator * display_name
|
4095
|
+
# with has(:) operator * state with equals(=) operator Examples: * "
|
4096
|
+
# knowledge_types:FAQ" matches documents with FAQ knowledge type. * "
|
4097
|
+
# display_name:customer" matches documents whose display name contains "customer"
|
4098
|
+
# . * "state=ACTIVE" matches documents with ACTIVE state. * "knowledge_types:FAQ
|
4099
|
+
# AND state=ACTIVE" matches all active FAQ documents. For more information about
|
4100
|
+
# filtering, see [API Filtering](https://aip.dev/160).
|
3980
4101
|
# @param [Fixnum] page_size
|
3981
4102
|
# The maximum number of items to return in a single page. By default 10 and at
|
3982
4103
|
# most 100.
|
@@ -3999,11 +4120,12 @@ module Google
|
|
3999
4120
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4000
4121
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4001
4122
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4002
|
-
def list_project_knowledge_basis_documents(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4123
|
+
def list_project_knowledge_basis_documents(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4003
4124
|
command = make_simple_command(:get, 'v2/{+parent}/documents', options)
|
4004
4125
|
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListDocumentsResponse::Representation
|
4005
4126
|
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListDocumentsResponse
|
4006
4127
|
command.params['parent'] = parent unless parent.nil?
|
4128
|
+
command.query['filter'] = filter unless filter.nil?
|
4007
4129
|
command.query['pageSize'] = page_size unless page_size.nil?
|
4008
4130
|
command.query['pageToken'] = page_token unless page_token.nil?
|
4009
4131
|
command.query['fields'] = fields unless fields.nil?
|
@@ -7409,6 +7531,40 @@ module Google
|
|
7409
7531
|
execute_or_queue_command(command, &block)
|
7410
7532
|
end
|
7411
7533
|
|
7534
|
+
# Gets smart replies for a participant based on specific historical messages.
|
7535
|
+
# @param [String] parent
|
7536
|
+
# Required. The name of the participant to fetch suggestion for. Format: `
|
7537
|
+
# projects//locations//conversations//participants/`.
|
7538
|
+
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestSmartRepliesRequest] google_cloud_dialogflow_v2_suggest_smart_replies_request_object
|
7539
|
+
# @param [String] fields
|
7540
|
+
# Selector specifying which fields to include in a partial response.
|
7541
|
+
# @param [String] quota_user
|
7542
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
7543
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
7544
|
+
# @param [Google::Apis::RequestOptions] options
|
7545
|
+
# Request-specific options
|
7546
|
+
#
|
7547
|
+
# @yield [result, err] Result & error if block supplied
|
7548
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestSmartRepliesResponse] parsed result object
|
7549
|
+
# @yieldparam err [StandardError] error object if request failed
|
7550
|
+
#
|
7551
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestSmartRepliesResponse]
|
7552
|
+
#
|
7553
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7554
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7555
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7556
|
+
def suggest_project_location_conversation_participant_suggestion_smart_replies(parent, google_cloud_dialogflow_v2_suggest_smart_replies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
7557
|
+
command = make_simple_command(:post, 'v2/{+parent}/suggestions:suggestSmartReplies', options)
|
7558
|
+
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestSmartRepliesRequest::Representation
|
7559
|
+
command.request_object = google_cloud_dialogflow_v2_suggest_smart_replies_request_object
|
7560
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestSmartRepliesResponse::Representation
|
7561
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestSmartRepliesResponse
|
7562
|
+
command.params['parent'] = parent unless parent.nil?
|
7563
|
+
command.query['fields'] = fields unless fields.nil?
|
7564
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
7565
|
+
execute_or_queue_command(command, &block)
|
7566
|
+
end
|
7567
|
+
|
7412
7568
|
# Creates a knowledge base.
|
7413
7569
|
# @param [String] parent
|
7414
7570
|
# Required. The project to create a knowledge base for. Format: `projects//
|
@@ -7513,6 +7669,19 @@ module Google
|
|
7513
7669
|
# @param [String] parent
|
7514
7670
|
# Required. The project to list of knowledge bases for. Format: `projects//
|
7515
7671
|
# locations/`.
|
7672
|
+
# @param [String] filter
|
7673
|
+
# The filter expression used to filter knowledge bases returned by the list
|
7674
|
+
# method. The expression has the following syntax: [AND ] ... The following
|
7675
|
+
# fields and operators are supported: * display_name with has(:) operator *
|
7676
|
+
# language_code with equals(=) operator Examples: * 'language_code=en-us'
|
7677
|
+
# matches knowledge bases with en-us language code. * 'display_name:articles'
|
7678
|
+
# matches knowledge bases whose display name contains "articles". * '
|
7679
|
+
# display_name:"Best Articles"' matches knowledge bases whose display name
|
7680
|
+
# contains "Best Articles". * 'language_code=en-gb AND display_name=articles'
|
7681
|
+
# matches all knowledge bases whose display name contains "articles" and whose
|
7682
|
+
# language code is "en-gb". Note: An empty filter string (i.e. "") is a no-op
|
7683
|
+
# and will result in no filtering. For more information about filtering, see [
|
7684
|
+
# API Filtering](https://aip.dev/160).
|
7516
7685
|
# @param [Fixnum] page_size
|
7517
7686
|
# The maximum number of items to return in a single page. By default 10 and at
|
7518
7687
|
# most 100.
|
@@ -7535,11 +7704,12 @@ module Google
|
|
7535
7704
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7536
7705
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7537
7706
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7538
|
-
def list_project_location_knowledge_bases(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
7707
|
+
def list_project_location_knowledge_bases(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
7539
7708
|
command = make_simple_command(:get, 'v2/{+parent}/knowledgeBases', options)
|
7540
7709
|
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListKnowledgeBasesResponse::Representation
|
7541
7710
|
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListKnowledgeBasesResponse
|
7542
7711
|
command.params['parent'] = parent unless parent.nil?
|
7712
|
+
command.query['filter'] = filter unless filter.nil?
|
7543
7713
|
command.query['pageSize'] = page_size unless page_size.nil?
|
7544
7714
|
command.query['pageToken'] = page_token unless page_token.nil?
|
7545
7715
|
command.query['fields'] = fields unless fields.nil?
|
@@ -7658,6 +7828,44 @@ module Google
|
|
7658
7828
|
execute_or_queue_command(command, &block)
|
7659
7829
|
end
|
7660
7830
|
|
7831
|
+
# Exports a smart messaging candidate document into the specified destination.
|
7832
|
+
# This method is a [long-running operation](https://cloud.google.com/dialogflow/
|
7833
|
+
# cx/docs/how/long-running-operation). The returned `Operation` type has the
|
7834
|
+
# following method-specific fields: - `metadata`: KnowledgeOperationMetadata - `
|
7835
|
+
# response`: Document
|
7836
|
+
# @param [String] name
|
7837
|
+
# Required. The name of the document to export. Format: `projects//locations//
|
7838
|
+
# knowledgeBases//documents/`.
|
7839
|
+
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ExportDocumentRequest] google_cloud_dialogflow_v2_export_document_request_object
|
7840
|
+
# @param [String] fields
|
7841
|
+
# Selector specifying which fields to include in a partial response.
|
7842
|
+
# @param [String] quota_user
|
7843
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
7844
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
7845
|
+
# @param [Google::Apis::RequestOptions] options
|
7846
|
+
# Request-specific options
|
7847
|
+
#
|
7848
|
+
# @yield [result, err] Result & error if block supplied
|
7849
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleLongrunningOperation] parsed result object
|
7850
|
+
# @yieldparam err [StandardError] error object if request failed
|
7851
|
+
#
|
7852
|
+
# @return [Google::Apis::DialogflowV2::GoogleLongrunningOperation]
|
7853
|
+
#
|
7854
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7855
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7856
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7857
|
+
def export_project_location_knowledge_basis_document(name, google_cloud_dialogflow_v2_export_document_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
7858
|
+
command = make_simple_command(:post, 'v2/{+name}:export', options)
|
7859
|
+
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ExportDocumentRequest::Representation
|
7860
|
+
command.request_object = google_cloud_dialogflow_v2_export_document_request_object
|
7861
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningOperation::Representation
|
7862
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleLongrunningOperation
|
7863
|
+
command.params['name'] = name unless name.nil?
|
7864
|
+
command.query['fields'] = fields unless fields.nil?
|
7865
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
7866
|
+
execute_or_queue_command(command, &block)
|
7867
|
+
end
|
7868
|
+
|
7661
7869
|
# Retrieves the specified document.
|
7662
7870
|
# @param [String] name
|
7663
7871
|
# Required. The name of the document to retrieve. Format `projects//locations//
|
@@ -7693,6 +7901,16 @@ module Google
|
|
7693
7901
|
# @param [String] parent
|
7694
7902
|
# Required. The knowledge base to list all documents for. Format: `projects//
|
7695
7903
|
# locations//knowledgeBases/`.
|
7904
|
+
# @param [String] filter
|
7905
|
+
# The filter expression used to filter documents returned by the list method.
|
7906
|
+
# The expression has the following syntax: [AND ] ... The following fields and
|
7907
|
+
# operators are supported: * knowledge_types with has(:) operator * display_name
|
7908
|
+
# with has(:) operator * state with equals(=) operator Examples: * "
|
7909
|
+
# knowledge_types:FAQ" matches documents with FAQ knowledge type. * "
|
7910
|
+
# display_name:customer" matches documents whose display name contains "customer"
|
7911
|
+
# . * "state=ACTIVE" matches documents with ACTIVE state. * "knowledge_types:FAQ
|
7912
|
+
# AND state=ACTIVE" matches all active FAQ documents. For more information about
|
7913
|
+
# filtering, see [API Filtering](https://aip.dev/160).
|
7696
7914
|
# @param [Fixnum] page_size
|
7697
7915
|
# The maximum number of items to return in a single page. By default 10 and at
|
7698
7916
|
# most 100.
|
@@ -7715,11 +7933,12 @@ module Google
|
|
7715
7933
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7716
7934
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7717
7935
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7718
|
-
def list_project_location_knowledge_basis_documents(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
7936
|
+
def list_project_location_knowledge_basis_documents(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
7719
7937
|
command = make_simple_command(:get, 'v2/{+parent}/documents', options)
|
7720
7938
|
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListDocumentsResponse::Representation
|
7721
7939
|
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListDocumentsResponse
|
7722
7940
|
command.params['parent'] = parent unless parent.nil?
|
7941
|
+
command.query['filter'] = filter unless filter.nil?
|
7723
7942
|
command.query['pageSize'] = page_size unless page_size.nil?
|
7724
7943
|
command.query['pageToken'] = page_token unless page_token.nil?
|
7725
7944
|
command.query['fields'] = fields unless fields.nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-dialogflow_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.28.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.28.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.4
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Dialogflow API V2
|