Skip to content

Commit

Permalink
[7.10] Regenerate clients with private APIs and URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson committed Nov 5, 2020
1 parent f715889 commit da6408e
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 55 deletions.
70 changes: 35 additions & 35 deletions elastic_enterprise_search/client/_app_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.

from .._utils import DEFAULT, SKIP_IN_PATH, make_params, make_path # noqa: F401
from .base import BaseClient
from ._base import BaseClient


class AppSearch(BaseClient):
Expand All @@ -40,7 +40,7 @@ def get_api_logs(
"""
The API Log displays API request and response data at the Engine level
`<https://www.elastic.co/guide/en/app-search/current/api-logs.html>`_
`<https://www.elastic.co/guide/en/app-search/7.10/api-logs.html>`_
:arg engine_name: Name of the engine
:arg from_date: Filter date from
Expand Down Expand Up @@ -115,7 +115,7 @@ def get_count_analytics(
"""
Returns the number of clicks and total number of queries over a period
`<https://www.elastic.co/guide/en/app-search/current/counts.html>`_
`<https://www.elastic.co/guide/en/app-search/7.10/counts.html>`_
:arg engine_name: Name of the engine
:arg filters: Analytics filters
Expand Down Expand Up @@ -170,7 +170,7 @@ def create_curation(
"""
Create a new curation
`<https://www.elastic.co/guide/en/app-search/current/curations.html#curations-create>`_
`<https://www.elastic.co/guide/en/app-search/7.10/curations.html#curations-create>`_
:arg engine_name: Name of the engine
:arg queries: List of affected search queries
Expand Down Expand Up @@ -228,7 +228,7 @@ def delete_curation(
"""
Delete a curation by ID
`<https://www.elastic.co/guide/en/app-search/current/curations.html#curations-destroy>`_
`<https://www.elastic.co/guide/en/app-search/7.10/curations.html#curations-destroy>`_
:arg engine_name: Name of the engine
:arg curation_id: Curation ID
Expand Down Expand Up @@ -277,7 +277,7 @@ def get_curation(
"""
Retrieve a curation by ID
`<https://www.elastic.co/guide/en/app-search/current/curations.html#curations-read>`_
`<https://www.elastic.co/guide/en/app-search/7.10/curations.html#curations-read>`_
:arg engine_name: Name of the engine
:arg curation_id: Curation ID
Expand Down Expand Up @@ -329,7 +329,7 @@ def put_curation(
"""
Update an existing curation
`<https://www.elastic.co/guide/en/app-search/current/curations.html#curations-update>`_
`<https://www.elastic.co/guide/en/app-search/7.10/curations.html#curations-update>`_
:arg engine_name: Name of the engine
:arg curation_id: Curation ID
Expand Down Expand Up @@ -391,7 +391,7 @@ def list_curations(
"""
Retrieve available curations for the engine
`<https://www.elastic.co/guide/en/app-search/current/curations.html#curations-read>`_
`<https://www.elastic.co/guide/en/app-search/7.10/curations.html#curations-read>`_
:arg engine_name: Name of the engine
:arg current_page: The page to fetch. Defaults to 1
Expand Down Expand Up @@ -442,7 +442,7 @@ def delete_documents(
"""
Delete documents by ID
`<https://www.elastic.co/guide/en/app-search/current/documents.html#documents-delete>`_
`<https://www.elastic.co/guide/en/app-search/7.10/documents.html#documents-delete>`_
:arg engine_name: Name of the engine
:arg body: List of document IDs
Expand Down Expand Up @@ -486,7 +486,7 @@ def get_documents(
"""
Retrieves one or more documents by ID
`<https://www.elastic.co/guide/en/app-search/current/documents.html#documents-get>`_
`<https://www.elastic.co/guide/en/app-search/7.10/documents.html#documents-get>`_
:arg engine_name: Name of the engine
:arg body: List of document IDs
Expand Down Expand Up @@ -530,7 +530,7 @@ def index_documents(
"""
Create or update documents
`<https://www.elastic.co/guide/en/app-search/current/documents.html#documents-create>`_
`<https://www.elastic.co/guide/en/app-search/7.10/documents.html#documents-create>`_
:arg engine_name: Name of the engine
:arg body: List of document to index
Expand Down Expand Up @@ -575,7 +575,7 @@ def list_documents(
"""
List all available documents with optional pagination support
`<https://www.elastic.co/guide/en/app-search/current/documents.html#documents-list>`_
`<https://www.elastic.co/guide/en/app-search/7.10/documents.html#documents-list>`_
:arg engine_name: Name of the engine
:arg current_page: The page to fetch. Defaults to 1
Expand Down Expand Up @@ -627,7 +627,7 @@ def put_documents(
"""
Partial update of documents
`<https://www.elastic.co/guide/en/app-search/current/documents.html#documents-partial>`_
`<https://www.elastic.co/guide/en/app-search/7.10/documents.html#documents-partial>`_
:arg engine_name: Name of the engine
:arg body: List of documents to update
Expand Down Expand Up @@ -673,7 +673,7 @@ def create_engine(
"""
Creates a new engine
`<https://www.elastic.co/guide/en/app-search/current/engines.html#engines-create>`_
`<https://www.elastic.co/guide/en/app-search/7.10/engines.html#engines-create>`_
:arg engine_name: Engine name
:arg language: Engine language (null for universal)
Expand Down Expand Up @@ -724,7 +724,7 @@ def delete_engine(
"""
Delete an engine by name
`<https://www.elastic.co/guide/en/app-search/current/engines.html#engines-delete>`_
`<https://www.elastic.co/guide/en/app-search/7.10/engines.html#engines-delete>`_
:arg engine_name: Name of the engine
:arg params: Additional query params to send with the request
Expand Down Expand Up @@ -764,7 +764,7 @@ def get_engine(
"""
Retrieves an engine by name
`<https://www.elastic.co/guide/en/app-search/current/engines.html#engines-get>`_
`<https://www.elastic.co/guide/en/app-search/7.10/engines.html#engines-get>`_
:arg engine_name: Name of the engine
:arg params: Additional query params to send with the request
Expand Down Expand Up @@ -805,7 +805,7 @@ def list_engines(
"""
Retrieves all engines with optional pagination support
`<https://www.elastic.co/guide/en/app-search/current/engines.html#engines-list>`_
`<https://www.elastic.co/guide/en/app-search/7.10/engines.html#engines-list>`_
:arg current_page: The page to fetch. Defaults to 1
:arg page_size: The number of results per page
Expand Down Expand Up @@ -854,7 +854,7 @@ def log_clickthrough(
"""
Send data about clicked results
`<https://www.elastic.co/guide/en/app-search/current/clickthrough.html>`_
`<https://www.elastic.co/guide/en/app-search/7.10/clickthrough.html>`_
:arg engine_name: Name of the engine
:arg query_text: Search query text
Expand Down Expand Up @@ -917,7 +917,7 @@ def add_meta_engine_source(
"""
Add a source engine to an existing meta engine
`<https://www.elastic.co/guide/en/app-search/current/meta-engines.html#meta-engines-add-source-engines>`_
`<https://www.elastic.co/guide/en/app-search/7.10/meta-engines.html#meta-engines-add-source-engines>`_
:arg engine_name: Name of the engine
:arg body: List of engine IDs
Expand Down Expand Up @@ -961,7 +961,7 @@ def delete_meta_engine_source(
"""
Delete a source engine from a meta engine
`<https://www.elastic.co/guide/en/app-search/current/meta-engines.html#meta-engines-remove-source-engines>`_
`<https://www.elastic.co/guide/en/app-search/7.10/meta-engines.html#meta-engines-remove-source-engines>`_
:arg engine_name: Name of the engine
:arg body: List of engine IDs
Expand Down Expand Up @@ -1005,7 +1005,7 @@ def multi_search(
"""
Run several search in the same request
`<https://www.elastic.co/guide/en/app-search/current/search.html#search-multi>`_
`<https://www.elastic.co/guide/en/app-search/7.10/search.html#search-multi>`_
:arg engine_name: Name of the engine
:arg queries: Search queries
Expand Down Expand Up @@ -1061,7 +1061,7 @@ def query_suggestion(
"""
Provide relevant query suggestions for incomplete queries
`<https://www.elastic.co/guide/en/app-search/current/query-suggestion.html>`_
`<https://www.elastic.co/guide/en/app-search/7.10/query-suggestion.html>`_
:arg engine_name: Name of the engine
:arg query: A partial query for which to receive suggestions
Expand Down Expand Up @@ -1120,7 +1120,7 @@ def get_schema(
"""
Retrieve current schema for then engine
`<https://www.elastic.co/guide/en/app-search/current/schema.html#schema-read>`_
`<https://www.elastic.co/guide/en/app-search/7.10/schema.html#schema-read>`_
:arg engine_name: Name of the engine
:arg params: Additional query params to send with the request
Expand Down Expand Up @@ -1162,7 +1162,7 @@ def put_schema(
"""
Update schema for the current engine
`<https://www.elastic.co/guide/en/app-search/current/schema.html#schema-patch>`_
`<https://www.elastic.co/guide/en/app-search/7.10/schema.html#schema-patch>`_
:arg engine_name: Name of the engine
:arg body: Schema description
Expand Down Expand Up @@ -1206,7 +1206,7 @@ def search(
"""
Allows you to search over, facet and filter your data
`<https://www.elastic.co/guide/en/app-search/current/search.html#search-single>`_
`<https://www.elastic.co/guide/en/app-search/7.10/search.html#search-single>`_
:arg engine_name: Name of the engine
:arg body: Search request parameters
Expand Down Expand Up @@ -1249,7 +1249,7 @@ def get_search_settings(
"""
Retrive current search settings for the engine
`<https://www.elastic.co/guide/en/app-search/current/search-settings.html#search-settings-show>`_
`<https://www.elastic.co/guide/en/app-search/7.10/search-settings.html#search-settings-show>`_
:arg engine_name: Name of the engine
:arg params: Additional query params to send with the request
Expand Down Expand Up @@ -1291,7 +1291,7 @@ def put_search_settings(
"""
Update search settings for the engine
`<https://www.elastic.co/guide/en/app-search/current/search-settings.html#search-settings-update>`_
`<https://www.elastic.co/guide/en/app-search/7.10/search-settings.html#search-settings-update>`_
:arg engine_name: Name of the engine
:arg body: Search settings
Expand Down Expand Up @@ -1334,7 +1334,7 @@ def reset_search_settings(
"""
Reset search settings for the engine
`<https://www.elastic.co/guide/en/app-search/current/search-settings.html#search-settings-reset>`_
`<https://www.elastic.co/guide/en/app-search/7.10/search-settings.html#search-settings-reset>`_
:arg engine_name: Name of the engine
:arg params: Additional query params to send with the request
Expand Down Expand Up @@ -1377,7 +1377,7 @@ def create_synonym_set(
"""
Create a new synonym set
`<https://www.elastic.co/guide/en/app-search/current/synonyms.html#synonyms-create>`_
`<https://www.elastic.co/guide/en/app-search/7.10/synonyms.html#synonyms-create>`_
:arg engine_name: Name of the engine
:arg synonyms: List of synonyms words
Expand Down Expand Up @@ -1431,7 +1431,7 @@ def delete_synonym_set(
"""
Delete a synonym set by ID
`<https://www.elastic.co/guide/en/app-search/current/synonyms.html#synonyms-delete>`_
`<https://www.elastic.co/guide/en/app-search/7.10/synonyms.html#synonyms-delete>`_
:arg engine_name: Name of the engine
:arg synonym_set_id: Synonym set ID
Expand Down Expand Up @@ -1480,7 +1480,7 @@ def get_synonym_set(
"""
Retrieve a synonym set by ID
`<https://www.elastic.co/guide/en/app-search/current/synonyms.html#synonyms-list-one>`_
`<https://www.elastic.co/guide/en/app-search/7.10/synonyms.html#synonyms-list-one>`_
:arg engine_name: Name of the engine
:arg synonym_set_id: Synonym set ID
Expand Down Expand Up @@ -1530,7 +1530,7 @@ def put_synonym_set(
"""
Update a synonym set by ID
`<https://www.elastic.co/guide/en/app-search/current/synonyms.html#synonyms-update>`_
`<https://www.elastic.co/guide/en/app-search/7.10/synonyms.html#synonyms-update>`_
:arg engine_name: Name of the engine
:arg synonym_set_id: Synonym set ID
Expand Down Expand Up @@ -1588,7 +1588,7 @@ def list_synonym_sets(
"""
Retrieve available synonym sets for the engine
`<https://www.elastic.co/guide/en/app-search/current/synonyms.html#synonyms-get>`_
`<https://www.elastic.co/guide/en/app-search/7.10/synonyms.html#synonyms-get>`_
:arg engine_name: Name of the engine
:arg current_page: The page to fetch. Defaults to 1
Expand Down Expand Up @@ -1642,7 +1642,7 @@ def get_top_clicks_analytics(
"""
Returns the number of clicks received by a document in descending order
`<https://www.elastic.co/guide/en/app-search/current/clicks.html>`_
`<https://www.elastic.co/guide/en/app-search/7.10/clicks.html>`_
:arg engine_name: Name of the engine
:arg query: Filter clicks over a search query
Expand Down Expand Up @@ -1700,7 +1700,7 @@ def get_top_queries_analytics(
"""
Returns queries analytics by usage count
`<https://www.elastic.co/guide/en/app-search/current/queries.html#queries-top-queries>`_
`<https://www.elastic.co/guide/en/app-search/7.10/queries.html#queries-top-queries>`_
:arg engine_name: Name of the engine
:arg current_page: The page to fetch. Defaults to 1
Expand Down
12 changes: 6 additions & 6 deletions elastic_enterprise_search/client/_enterprise_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.

from .._utils import DEFAULT, SKIP_IN_PATH, make_params, make_path # noqa: F401
from .base import BaseClient
from ._base import BaseClient


class EnterpriseSearch(BaseClient):
Expand All @@ -32,7 +32,7 @@ def get_health(
Get information on the health of a deployment and basic statistics around
resource usage
`<https://www.elastic.co/guide/en/enterprise-search/current/monitoring-apis.html#health-api-example>`_
`<https://www.elastic.co/guide/en/enterprise-search/7.10/monitoring-apis.html#health-api-example>`_
:arg params: Additional query params to send with the request
:arg headers: Additional headers to send with the request
Expand Down Expand Up @@ -69,7 +69,7 @@ def get_read_only(
"""
Get the read-only flag's state
`<https://www.elastic.co/guide/en/enterprise-search/current/read-only-api.html#getting-read-only-state>`_
`<https://www.elastic.co/guide/en/enterprise-search/7.10/read-only-api.html#getting-read-only-state>`_
:arg params: Additional query params to send with the request
:arg headers: Additional headers to send with the request
Expand Down Expand Up @@ -107,7 +107,7 @@ def put_read_only(
"""
Update the read-only flag's state
`<https://www.elastic.co/guide/en/enterprise-search/current/read-only-api.html#setting-read-only-state>`_
`<https://www.elastic.co/guide/en/enterprise-search/7.10/read-only-api.html#setting-read-only-state>`_
:arg body: HTTP request body
:arg params: Additional query params to send with the request
Expand Down Expand Up @@ -148,7 +148,7 @@ def get_stats(
Get information about the resource usage of the application, the state of
different internal queues, etc.
`<https://www.elastic.co/guide/en/enterprise-search/current/monitoring-apis.html#stats-api-example>`_
`<https://www.elastic.co/guide/en/enterprise-search/7.10/monitoring-apis.html#stats-api-example>`_
:arg include: Comma-separated list of stats to return
:arg params: Additional query params to send with the request
Expand Down Expand Up @@ -192,7 +192,7 @@ def get_version(
"""
Get version information for this server
`<https://www.elastic.co/guide/en/enterprise-search/current/management-apis.html>`_
`<https://www.elastic.co/guide/en/enterprise-search/7.10/management-apis.html>`_
:arg params: Additional query params to send with the request
:arg headers: Additional headers to send with the request
Expand Down
Loading

0 comments on commit da6408e

Please sign in to comment.