Skip to content

Commit

Permalink
test(csharp): add retry strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
algolia-bot and morganleroi committed Jan 29, 2024
1 parent 3315f36 commit 1cd47e6
Show file tree
Hide file tree
Showing 9 changed files with 948 additions and 690 deletions.
70 changes: 36 additions & 34 deletions algoliasearch/abtesting/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,11 @@ async def add_ab_tests_with_http_info(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> ApiResponse[str]:
"""
Create an A/B test.
Creates an A/B test.
Required API Key ACLs:
- editSettings
:param add_ab_tests_request: (required)
:type add_ab_tests_request: AddABTestsRequest
:param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
Expand Down Expand Up @@ -144,10 +145,11 @@ async def add_ab_tests(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> ABTestResponse:
"""
Create an A/B test.
Creates an A/B test.
Required API Key ACLs:
- editSettings
:param add_ab_tests_request: (required)
:type add_ab_tests_request: AddABTestsRequest
:param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
Expand All @@ -174,10 +176,9 @@ async def custom_delete_with_http_info(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> ApiResponse[str]:
"""
Send requests to the Algolia REST API.
This method allow you to send requests to the Algolia REST API.
:param path: Path of the endpoint, anything after \"/1\" must be specified. (required)
:type path: str
:param parameters: Query parameters to apply to the current query.
Expand Down Expand Up @@ -222,10 +223,9 @@ async def custom_delete(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> object:
"""
Send requests to the Algolia REST API.
This method allow you to send requests to the Algolia REST API.
:param path: Path of the endpoint, anything after \"/1\" must be specified. (required)
:type path: str
:param parameters: Query parameters to apply to the current query.
Expand All @@ -252,10 +252,9 @@ async def custom_get_with_http_info(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> ApiResponse[str]:
"""
Send requests to the Algolia REST API.
This method allow you to send requests to the Algolia REST API.
:param path: Path of the endpoint, anything after \"/1\" must be specified. (required)
:type path: str
:param parameters: Query parameters to apply to the current query.
Expand Down Expand Up @@ -298,10 +297,9 @@ async def custom_get(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> object:
"""
Send requests to the Algolia REST API.
This method allow you to send requests to the Algolia REST API.
:param path: Path of the endpoint, anything after \"/1\" must be specified. (required)
:type path: str
:param parameters: Query parameters to apply to the current query.
Expand Down Expand Up @@ -332,10 +330,9 @@ async def custom_post_with_http_info(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> ApiResponse[str]:
"""
Send requests to the Algolia REST API.
This method allow you to send requests to the Algolia REST API.
:param path: Path of the endpoint, anything after \"/1\" must be specified. (required)
:type path: str
:param parameters: Query parameters to apply to the current query.
Expand Down Expand Up @@ -389,10 +386,9 @@ async def custom_post(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> object:
"""
Send requests to the Algolia REST API.
This method allow you to send requests to the Algolia REST API.
:param path: Path of the endpoint, anything after \"/1\" must be specified. (required)
:type path: str
:param parameters: Query parameters to apply to the current query.
Expand Down Expand Up @@ -427,10 +423,9 @@ async def custom_put_with_http_info(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> ApiResponse[str]:
"""
Send requests to the Algolia REST API.
This method allow you to send requests to the Algolia REST API.
:param path: Path of the endpoint, anything after \"/1\" must be specified. (required)
:type path: str
:param parameters: Query parameters to apply to the current query.
Expand Down Expand Up @@ -484,10 +479,9 @@ async def custom_put(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> object:
"""
Send requests to the Algolia REST API.
This method allow you to send requests to the Algolia REST API.
:param path: Path of the endpoint, anything after \"/1\" must be specified. (required)
:type path: str
:param parameters: Query parameters to apply to the current query.
Expand All @@ -509,10 +503,11 @@ async def delete_ab_test_with_http_info(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> ApiResponse[str]:
"""
Delete an A/B test.
Delete an A/B test. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).
Required API Key ACLs:
- editSettings
:param id: Unique A/B test ID. (required)
:type id: int
:param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
Expand All @@ -539,10 +534,11 @@ async def delete_ab_test(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> ABTestResponse:
"""
Delete an A/B test.
Delete an A/B test. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).
Required API Key ACLs:
- editSettings
:param id: Unique A/B test ID. (required)
:type id: int
:param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
Expand All @@ -558,10 +554,11 @@ async def get_ab_test_with_http_info(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> ApiResponse[str]:
"""
Get A/B test details.
Get specific details for an A/B test. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).
Required API Key ACLs:
- analytics
:param id: Unique A/B test ID. (required)
:type id: int
:param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
Expand All @@ -586,10 +583,11 @@ async def get_ab_test(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> ABTest:
"""
Get A/B test details.
Get specific details for an A/B test. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).
Required API Key ACLs:
- analytics
:param id: Unique A/B test ID. (required)
:type id: int
:param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
Expand Down Expand Up @@ -628,7 +626,8 @@ async def list_ab_tests_with_http_info(
"""
List all A/B tests.
List all A/B tests.
Required API Key ACLs:
- analytics
:param offset: Position of the starting record. Used for paging. 0 is the first record.
:type offset: int
Expand Down Expand Up @@ -692,7 +691,8 @@ async def list_ab_tests(
"""
List all A/B tests.
List all A/B tests.
Required API Key ACLs:
- analytics
:param offset: Position of the starting record. Used for paging. 0 is the first record.
:type offset: int
Expand All @@ -717,10 +717,11 @@ async def stop_ab_test_with_http_info(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> ApiResponse[str]:
"""
Stop an A/B test.
If stopped, the test is over and can't be restarted. There is now only one index, receiving 100% of all search requests. The data gathered for stopped A/B tests is retained. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).
Required API Key ACLs:
- editSettings
:param id: Unique A/B test ID. (required)
:type id: int
:param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
Expand All @@ -745,10 +746,11 @@ async def stop_ab_test(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> ABTestResponse:
"""
Stop an A/B test.
If stopped, the test is over and can't be restarted. There is now only one index, receiving 100% of all search requests. The data gathered for stopped A/B tests is retained. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).
Required API Key ACLs:
- editSettings
:param id: Unique A/B test ID. (required)
:type id: int
:param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
Expand Down
Loading

0 comments on commit 1cd47e6

Please sign in to comment.