Skip to content

Commit

Permalink
Update APIs to 7.15-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson committed Sep 28, 2021
1 parent 8fd8610 commit a7af5ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
8 changes: 4 additions & 4 deletions elastic_enterprise_search/client/_app_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -1482,7 +1482,7 @@ def create_crawler_process_crawl(
"""
Create a process crawl
`<https://www.elastic.co/guide/en/app-search/7.15/web-crawler-api-reference.html>`_
`<https://www.elastic.co/guide/en/app-search/7.15/web-crawler-api-reference.html#web-crawler-apis-post-crawler-process-crawls>`_
:arg engine_name: Name of the engine
:arg body: HTTP request body
Expand Down Expand Up @@ -1532,7 +1532,7 @@ def get_crawler_process_crawl_denied_urls(
"""
View denied urls for Process Crawl
`<https://www.elastic.co/guide/en/app-search/7.15/web-crawler-api-reference.html>`_
`<https://www.elastic.co/guide/en/app-search/7.15/web-crawler-api-reference.html#web-crawler-apis-get-crawler-process-crawls-id-denied-urls>`_
:arg engine_name: Name of the engine
:arg process_crawl_id: Process Crawl identifier
Expand Down Expand Up @@ -1587,7 +1587,7 @@ def get_crawler_process_crawl(
"""
Get process crawl details
`<https://www.elastic.co/guide/en/app-search/7.15/web-crawler-api-reference.html>`_
`<https://www.elastic.co/guide/en/app-search/7.15/web-crawler-api-reference.html#web-crawler-apis-get-crawler-process-crawls-id>`_
:arg engine_name: Name of the engine
:arg process_crawl_id: Process Crawl identifier
Expand Down Expand Up @@ -1640,7 +1640,7 @@ def list_crawler_process_crawls(
"""
List process crawls
`<https://www.elastic.co/guide/en/app-search/7.15/web-crawler-api-reference.html>`_
`<https://www.elastic.co/guide/en/app-search/7.15/web-crawler-api-reference.html#web-crawler-apis-get-crawler-process-crawls>`_
:arg engine_name: Name of the engine
:arg params: Additional query params to send with the request
Expand Down
16 changes: 0 additions & 16 deletions utils/generator/generate-api.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,20 +334,6 @@ def process_api(self, api):
param for param in api.spec["parameters"] if param["name"] != "queries"
]

# Rename 'app_search.get_denied_urls' -> 'app_search.get_crawler_process_crawl_denied_urls'
# and 'app_search.delete_active_crawl_request' -> 'app_search.delete_crawler_active_crawl_request'
# to fit in better with the rest of the Crawl APIs.
if (
self.namespace.startswith("_app_search")
and api.func_name == "get_denied_urls"
):
api.spec["operationId"] = "getCrawlerProcessCrawlDeniedUrls"
if (
self.namespace.startswith("_app_search")
and api.func_name == "delete_active_crawl_request"
):
api.spec["operationId"] = "deleteCrawlerActiveCrawlRequest"

return api

@classmethod
Expand Down Expand Up @@ -423,7 +409,6 @@ def main():
"create_crawler_entry_point",
"create_crawler_process_crawl",
"create_crawler_sitemap",
"delete_active_crawl_request",
"delete_crawler_active_crawl_request",
"delete_crawler_crawl_rule",
"delete_crawler_crawl_schedule",
Expand All @@ -443,7 +428,6 @@ def main():
"get_crawler_url_tracing_result",
"get_crawler_url_validation_result",
"get_crawler_user_agent",
"get_denied_urls",
"get_search_relevance_suggestions",
"list_crawler_crawl_requests",
"list_crawler_process_crawls",
Expand Down

0 comments on commit a7af5ed

Please sign in to comment.