generated/google/apis/dialogflow_v2beta1/service.rb in google-api-client-0.46.0 vs generated/google/apis/dialogflow_v2beta1/service.rb in google-api-client-0.46.1
- old
+ new
@@ -1723,10 +1723,23 @@
# Returns the list of all knowledge bases of the specified agent. Note: The `
# projects.agent.knowledgeBases` resource is deprecated; only use `projects.
# knowledgeBases`.
# @param [String] parent
# Required. The project to list of knowledge bases for. Format: `projects/`.
+ # @param [String] filter
+ # The filter expression used to filter knowledge bases returned by the list
+ # method. The expression has the following syntax: [AND ] ... The following
+ # fields and operators are supported: * display_name with has(:) operator *
+ # language_code with equals(=) operator Examples: * 'language_code=en-us'
+ # matches knowledge bases with en-us language code. * 'display_name:articles'
+ # matches knowledge bases whose display name contains "articles". * '
+ # display_name:"Best Articles"' matches knowledge bases whose display name
+ # contains "Best Articles". * 'language_code=en-gb AND display_name=articles'
+ # matches all knowledge bases whose display name contains "articles" and whose
+ # language code is "en-gb". Note: An empty filter string (i.e. "") is a no-op
+ # and will result in no filtering. For more information about filtering, see [
+ # API Filtering](https://aip.dev/160).
# @param [Fixnum] page_size
# The maximum number of items to return in a single page. By default 10 and at
# most 100.
# @param [String] page_token
# The next_page_token value returned from a previous list request.
@@ -1745,15 +1758,16 @@
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_project_agent_knowledge_bases(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
+ def list_project_agent_knowledge_bases(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+parent}/knowledgeBases', options)
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse::Representation
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse
command.params['parent'] = parent unless parent.nil?
+ command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@@ -1904,10 +1918,20 @@
# agent.knowledgeBases.documents` resource is deprecated; only use `projects.
# knowledgeBases.documents`.
# @param [String] parent
# Required. The knowledge base to list all documents for. Format: `projects//
# knowledgeBases/`.
+ # @param [String] filter
+ # The filter expression used to filter documents returned by the list method.
+ # The expression has the following syntax: [AND ] ... The following fields and
+ # operators are supported: * knowledge_types with has(:) operator * display_name
+ # with has(:) operator * state with equals(=) operator Examples: * "
+ # knowledge_types:FAQ" matches documents with FAQ knowledge type. * "
+ # display_name:customer" matches documents whose display name contains "customer"
+ # . * "state=ACTIVE" matches documents with ACTIVE state. * "knowledge_types:FAQ
+ # AND state=ACTIVE" matches all active FAQ documents. For more information about
+ # filtering, see [API Filtering](https://aip.dev/160).
# @param [Fixnum] page_size
# The maximum number of items to return in a single page. By default 10 and at
# most 100.
# @param [String] page_token
# The next_page_token value returned from a previous list request.
@@ -1926,15 +1950,16 @@
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListDocumentsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_project_agent_knowledge_basis_documents(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
+ def list_project_agent_knowledge_basis_documents(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+parent}/documents', options)
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListDocumentsResponse::Representation
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListDocumentsResponse
command.params['parent'] = parent unless parent.nil?
+ command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@@ -2612,10 +2637,23 @@
# Returns the list of all knowledge bases of the specified agent. Note: The `
# projects.agent.knowledgeBases` resource is deprecated; only use `projects.
# knowledgeBases`.
# @param [String] parent
# Required. The project to list of knowledge bases for. Format: `projects/`.
+ # @param [String] filter
+ # The filter expression used to filter knowledge bases returned by the list
+ # method. The expression has the following syntax: [AND ] ... The following
+ # fields and operators are supported: * display_name with has(:) operator *
+ # language_code with equals(=) operator Examples: * 'language_code=en-us'
+ # matches knowledge bases with en-us language code. * 'display_name:articles'
+ # matches knowledge bases whose display name contains "articles". * '
+ # display_name:"Best Articles"' matches knowledge bases whose display name
+ # contains "Best Articles". * 'language_code=en-gb AND display_name=articles'
+ # matches all knowledge bases whose display name contains "articles" and whose
+ # language code is "en-gb". Note: An empty filter string (i.e. "") is a no-op
+ # and will result in no filtering. For more information about filtering, see [
+ # API Filtering](https://aip.dev/160).
# @param [Fixnum] page_size
# The maximum number of items to return in a single page. By default 10 and at
# most 100.
# @param [String] page_token
# The next_page_token value returned from a previous list request.
@@ -2634,15 +2672,16 @@
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_project_knowledge_bases(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
+ def list_project_knowledge_bases(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+parent}/knowledgeBases', options)
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse::Representation
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse
command.params['parent'] = parent unless parent.nil?
+ command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@@ -2793,10 +2832,20 @@
# agent.knowledgeBases.documents` resource is deprecated; only use `projects.
# knowledgeBases.documents`.
# @param [String] parent
# Required. The knowledge base to list all documents for. Format: `projects//
# knowledgeBases/`.
+ # @param [String] filter
+ # The filter expression used to filter documents returned by the list method.
+ # The expression has the following syntax: [AND ] ... The following fields and
+ # operators are supported: * knowledge_types with has(:) operator * display_name
+ # with has(:) operator * state with equals(=) operator Examples: * "
+ # knowledge_types:FAQ" matches documents with FAQ knowledge type. * "
+ # display_name:customer" matches documents whose display name contains "customer"
+ # . * "state=ACTIVE" matches documents with ACTIVE state. * "knowledge_types:FAQ
+ # AND state=ACTIVE" matches all active FAQ documents. For more information about
+ # filtering, see [API Filtering](https://aip.dev/160).
# @param [Fixnum] page_size
# The maximum number of items to return in a single page. By default 10 and at
# most 100.
# @param [String] page_token
# The next_page_token value returned from a previous list request.
@@ -2815,14 +2864,15 @@
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListDocumentsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_project_knowledge_basis_documents(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
+ def list_project_knowledge_basis_documents(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+parent}/documents', options)
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListDocumentsResponse::Representation
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListDocumentsResponse
command.params['parent'] = parent unless parent.nil?
+ command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)