chainstream-sdk 0.1.0__py3-none-any.whl
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.
- chainstream/__init__.py +46 -0
- chainstream/client.py +104 -0
- chainstream/openapi_client/__init__.py +156 -0
- chainstream/openapi_client/api/__init__.py +20 -0
- chainstream/openapi_client/api/blockchain_api.py +549 -0
- chainstream/openapi_client/api/defi_sol_moonshot_api.py +590 -0
- chainstream/openapi_client/api/defi_sol_pumpfun_api.py +314 -0
- chainstream/openapi_client/api/dex_api.py +1576 -0
- chainstream/openapi_client/api/dex_pool_api.py +645 -0
- chainstream/openapi_client/api/endpoint_api.py +1934 -0
- chainstream/openapi_client/api/ipfs_api.py +283 -0
- chainstream/openapi_client/api/jobs_api.py +562 -0
- chainstream/openapi_client/api/kyt_api.py +3743 -0
- chainstream/openapi_client/api/ranking_api.py +2067 -0
- chainstream/openapi_client/api/red_packet_api.py +2444 -0
- chainstream/openapi_client/api/token_api.py +9211 -0
- chainstream/openapi_client/api/trade_api.py +1352 -0
- chainstream/openapi_client/api/transaction_api.py +882 -0
- chainstream/openapi_client/api/wallet_api.py +1608 -0
- chainstream/openapi_client/api/watchlist_api.py +316 -0
- chainstream/openapi_client/api_client.py +801 -0
- chainstream/openapi_client/api_response.py +21 -0
- chainstream/openapi_client/configuration.py +572 -0
- chainstream/openapi_client/exceptions.py +217 -0
- chainstream/openapi_client/models/__init__.py +122 -0
- chainstream/openapi_client/models/address_exposure.py +94 -0
- chainstream/openapi_client/models/address_risk_response_dto.py +112 -0
- chainstream/openapi_client/models/alert_detail.py +100 -0
- chainstream/openapi_client/models/alterya_identification.py +106 -0
- chainstream/openapi_client/models/balance_change_type.py +38 -0
- chainstream/openapi_client/models/balance_token_type.py +38 -0
- chainstream/openapi_client/models/balance_update_dto.py +130 -0
- chainstream/openapi_client/models/balance_update_page.py +104 -0
- chainstream/openapi_client/models/blockchain_dto.py +94 -0
- chainstream/openapi_client/models/blockchain_latest_block_dto.py +90 -0
- chainstream/openapi_client/models/boolean_result_dto.py +88 -0
- chainstream/openapi_client/models/calculate_pnl_input.py +88 -0
- chainstream/openapi_client/models/candle.py +101 -0
- chainstream/openapi_client/models/chain.py +39 -0
- chainstream/openapi_client/models/chain_symbol.py +39 -0
- chainstream/openapi_client/models/chainalysis_address_identification.py +92 -0
- chainstream/openapi_client/models/claim_red_packet_input.py +103 -0
- chainstream/openapi_client/models/create_endpoint_input.py +102 -0
- chainstream/openapi_client/models/create_red_packet_input.py +112 -0
- chainstream/openapi_client/models/create_red_packet_reply.py +90 -0
- chainstream/openapi_client/models/create_token_input.py +110 -0
- chainstream/openapi_client/models/create_token_reply.py +90 -0
- chainstream/openapi_client/models/dev_token_dto.py +106 -0
- chainstream/openapi_client/models/dex_dto.py +94 -0
- chainstream/openapi_client/models/dex_page.py +106 -0
- chainstream/openapi_client/models/dex_pool_dto.py +161 -0
- chainstream/openapi_client/models/dex_pool_snapshot_dto.py +111 -0
- chainstream/openapi_client/models/dex_pool_snapshot_page.py +104 -0
- chainstream/openapi_client/models/dex_pool_token_liquidity.py +100 -0
- chainstream/openapi_client/models/dex_pool_token_snapshot_dto.py +100 -0
- chainstream/openapi_client/models/dex_quote_response.py +98 -0
- chainstream/openapi_client/models/direct_exposure_detail.py +90 -0
- chainstream/openapi_client/models/endpoint_list_response.py +102 -0
- chainstream/openapi_client/models/endpoint_operation_response.py +88 -0
- chainstream/openapi_client/models/endpoint_response.py +108 -0
- chainstream/openapi_client/models/endpoint_secret_response.py +88 -0
- chainstream/openapi_client/models/estimate_gas_limit_input.py +94 -0
- chainstream/openapi_client/models/estimate_gas_limit_response.py +90 -0
- chainstream/openapi_client/models/filter_condition.py +102 -0
- chainstream/openapi_client/models/gas_price_response.py +90 -0
- chainstream/openapi_client/models/job_dto.py +90 -0
- chainstream/openapi_client/models/job_streaming_dto.py +90 -0
- chainstream/openapi_client/models/kyt_register_transfer_request.py +108 -0
- chainstream/openapi_client/models/kyt_register_withdrawal_request.py +111 -0
- chainstream/openapi_client/models/link.py +97 -0
- chainstream/openapi_client/models/moonshot_create_token_input.py +145 -0
- chainstream/openapi_client/models/moonshot_create_token_reply.py +90 -0
- chainstream/openapi_client/models/moonshot_submit_create_token200_response.py +90 -0
- chainstream/openapi_client/models/moonshot_submit_create_token_input.py +90 -0
- chainstream/openapi_client/models/network_identification_org.py +88 -0
- chainstream/openapi_client/models/on_chain_activity.py +88 -0
- chainstream/openapi_client/models/pump_create_token_input.py +155 -0
- chainstream/openapi_client/models/pump_create_token_reply.py +90 -0
- chainstream/openapi_client/models/red_packet_claim_dto.py +103 -0
- chainstream/openapi_client/models/red_packet_claims_page.py +104 -0
- chainstream/openapi_client/models/red_packet_dto.py +121 -0
- chainstream/openapi_client/models/red_packet_reply.py +88 -0
- chainstream/openapi_client/models/red_packet_send_tx_input.py +88 -0
- chainstream/openapi_client/models/red_packet_send_tx_response.py +88 -0
- chainstream/openapi_client/models/red_packets_page.py +104 -0
- chainstream/openapi_client/models/register_address_request.py +88 -0
- chainstream/openapi_client/models/register_address_response_dto.py +88 -0
- chainstream/openapi_client/models/resolution.py +46 -0
- chainstream/openapi_client/models/send_tx_input.py +102 -0
- chainstream/openapi_client/models/send_tx_response.py +92 -0
- chainstream/openapi_client/models/swap_input.py +119 -0
- chainstream/openapi_client/models/swap_reply.py +90 -0
- chainstream/openapi_client/models/swap_route_input.py +127 -0
- chainstream/openapi_client/models/swap_route_response.py +98 -0
- chainstream/openapi_client/models/token.py +158 -0
- chainstream/openapi_client/models/token_creation_dto.py +107 -0
- chainstream/openapi_client/models/token_creation_page.py +106 -0
- chainstream/openapi_client/models/token_creators_dto.py +92 -0
- chainstream/openapi_client/models/token_extra_dto.py +128 -0
- chainstream/openapi_client/models/token_holder.py +94 -0
- chainstream/openapi_client/models/token_holder_page.py +106 -0
- chainstream/openapi_client/models/token_liquidity_snapshot_dto.py +106 -0
- chainstream/openapi_client/models/token_liquidity_snapshot_page.py +104 -0
- chainstream/openapi_client/models/token_list_page.py +106 -0
- chainstream/openapi_client/models/token_market_data.py +174 -0
- chainstream/openapi_client/models/token_metadata.py +132 -0
- chainstream/openapi_client/models/token_page.py +108 -0
- chainstream/openapi_client/models/token_price_dto.py +94 -0
- chainstream/openapi_client/models/token_price_page.py +106 -0
- chainstream/openapi_client/models/token_social_medias_dto.py +112 -0
- chainstream/openapi_client/models/token_stat.py +340 -0
- chainstream/openapi_client/models/token_trader.py +113 -0
- chainstream/openapi_client/models/token_trader_tag.py +45 -0
- chainstream/openapi_client/models/top_traders_dto.py +110 -0
- chainstream/openapi_client/models/top_traders_page.py +106 -0
- chainstream/openapi_client/models/trade_detail_dto.py +136 -0
- chainstream/openapi_client/models/trade_event.py +113 -0
- chainstream/openapi_client/models/trade_page.py +106 -0
- chainstream/openapi_client/models/trade_type.py +38 -0
- chainstream/openapi_client/models/transfer_alerts_response_dto.py +96 -0
- chainstream/openapi_client/models/transfer_base_response_dto.py +112 -0
- chainstream/openapi_client/models/transfer_direct_exposure_response_dto.py +92 -0
- chainstream/openapi_client/models/transfer_network_identifications_response_dto.py +98 -0
- chainstream/openapi_client/models/update_endpoint_input.py +104 -0
- chainstream/openapi_client/models/wallet_balance_detail_dto.py +136 -0
- chainstream/openapi_client/models/wallet_balances_dto.py +100 -0
- chainstream/openapi_client/models/wallet_pnl_dto.py +132 -0
- chainstream/openapi_client/models/withdrawal_address_identifications_response_dto.py +98 -0
- chainstream/openapi_client/models/withdrawal_base_response_dto.py +106 -0
- chainstream/openapi_client/models/withdrawal_fraud_assessment_response_dto.py +96 -0
- chainstream/openapi_client/rest.py +213 -0
- chainstream/openapi_client/test/__init__.py +0 -0
- chainstream/openapi_client/test/test_address_exposure.py +59 -0
- chainstream/openapi_client/test/test_address_risk_response_dto.py +81 -0
- chainstream/openapi_client/test/test_alert_detail.py +65 -0
- chainstream/openapi_client/test/test_alterya_identification.py +69 -0
- chainstream/openapi_client/test/test_balance_change_type.py +34 -0
- chainstream/openapi_client/test/test_balance_token_type.py +34 -0
- chainstream/openapi_client/test/test_balance_update_dto.py +93 -0
- chainstream/openapi_client/test/test_balance_update_page.py +105 -0
- chainstream/openapi_client/test/test_blockchain_api.py +46 -0
- chainstream/openapi_client/test/test_blockchain_dto.py +59 -0
- chainstream/openapi_client/test/test_blockchain_latest_block_dto.py +55 -0
- chainstream/openapi_client/test/test_boolean_result_dto.py +53 -0
- chainstream/openapi_client/test/test_calculate_pnl_input.py +52 -0
- chainstream/openapi_client/test/test_candle.py +65 -0
- chainstream/openapi_client/test/test_chain.py +34 -0
- chainstream/openapi_client/test/test_chain_symbol.py +34 -0
- chainstream/openapi_client/test/test_chainalysis_address_identification.py +57 -0
- chainstream/openapi_client/test/test_claim_red_packet_input.py +58 -0
- chainstream/openapi_client/test/test_create_endpoint_input.py +63 -0
- chainstream/openapi_client/test/test_create_red_packet_input.py +64 -0
- chainstream/openapi_client/test/test_create_red_packet_reply.py +55 -0
- chainstream/openapi_client/test/test_create_token_input.py +63 -0
- chainstream/openapi_client/test/test_create_token_reply.py +55 -0
- chainstream/openapi_client/test/test_defi_sol_moonshot_api.py +46 -0
- chainstream/openapi_client/test/test_defi_sol_pumpfun_api.py +39 -0
- chainstream/openapi_client/test/test_dev_token_dto.py +441 -0
- chainstream/openapi_client/test/test_dex_api.py +67 -0
- chainstream/openapi_client/test/test_dex_dto.py +56 -0
- chainstream/openapi_client/test/test_dex_page.py +70 -0
- chainstream/openapi_client/test/test_dex_pool_api.py +46 -0
- chainstream/openapi_client/test/test_dex_pool_dto.py +88 -0
- chainstream/openapi_client/test/test_dex_pool_snapshot_dto.py +96 -0
- chainstream/openapi_client/test/test_dex_pool_snapshot_page.py +81 -0
- chainstream/openapi_client/test/test_dex_pool_token_liquidity.py +65 -0
- chainstream/openapi_client/test/test_dex_pool_token_snapshot_dto.py +65 -0
- chainstream/openapi_client/test/test_dex_quote_response.py +57 -0
- chainstream/openapi_client/test/test_direct_exposure_detail.py +55 -0
- chainstream/openapi_client/test/test_endpoint_api.py +81 -0
- chainstream/openapi_client/test/test_endpoint_list_response.py +72 -0
- chainstream/openapi_client/test/test_endpoint_operation_response.py +52 -0
- chainstream/openapi_client/test/test_endpoint_response.py +66 -0
- chainstream/openapi_client/test/test_endpoint_secret_response.py +52 -0
- chainstream/openapi_client/test/test_estimate_gas_limit_input.py +58 -0
- chainstream/openapi_client/test/test_estimate_gas_limit_response.py +55 -0
- chainstream/openapi_client/test/test_filter_condition.py +54 -0
- chainstream/openapi_client/test/test_gas_price_response.py +55 -0
- chainstream/openapi_client/test/test_ipfs_api.py +39 -0
- chainstream/openapi_client/test/test_job_dto.py +55 -0
- chainstream/openapi_client/test/test_job_streaming_dto.py +55 -0
- chainstream/openapi_client/test/test_jobs_api.py +46 -0
- chainstream/openapi_client/test/test_kyt_api.py +130 -0
- chainstream/openapi_client/test/test_kyt_register_transfer_request.py +59 -0
- chainstream/openapi_client/test/test_kyt_register_withdrawal_request.py +65 -0
- chainstream/openapi_client/test/test_link.py +55 -0
- chainstream/openapi_client/test/test_moonshot_create_token_input.py +79 -0
- chainstream/openapi_client/test/test_moonshot_create_token_reply.py +55 -0
- chainstream/openapi_client/test/test_moonshot_submit_create_token200_response.py +53 -0
- chainstream/openapi_client/test/test_moonshot_submit_create_token_input.py +54 -0
- chainstream/openapi_client/test/test_network_identification_org.py +53 -0
- chainstream/openapi_client/test/test_on_chain_activity.py +53 -0
- chainstream/openapi_client/test/test_pump_create_token_input.py +71 -0
- chainstream/openapi_client/test/test_pump_create_token_reply.py +54 -0
- chainstream/openapi_client/test/test_ranking_api.py +67 -0
- chainstream/openapi_client/test/test_red_packet_api.py +88 -0
- chainstream/openapi_client/test/test_red_packet_claim_dto.py +67 -0
- chainstream/openapi_client/test/test_red_packet_claims_page.py +81 -0
- chainstream/openapi_client/test/test_red_packet_dto.py +85 -0
- chainstream/openapi_client/test/test_red_packet_reply.py +53 -0
- chainstream/openapi_client/test/test_red_packet_send_tx_input.py +53 -0
- chainstream/openapi_client/test/test_red_packet_send_tx_response.py +53 -0
- chainstream/openapi_client/test/test_red_packets_page.py +99 -0
- chainstream/openapi_client/test/test_register_address_request.py +53 -0
- chainstream/openapi_client/test/test_register_address_response_dto.py +53 -0
- chainstream/openapi_client/test/test_resolution.py +34 -0
- chainstream/openapi_client/test/test_send_tx_input.py +55 -0
- chainstream/openapi_client/test/test_send_tx_response.py +57 -0
- chainstream/openapi_client/test/test_swap_input.py +65 -0
- chainstream/openapi_client/test/test_swap_reply.py +55 -0
- chainstream/openapi_client/test/test_swap_route_input.py +69 -0
- chainstream/openapi_client/test/test_swap_route_response.py +85 -0
- chainstream/openapi_client/test/test_token.py +352 -0
- chainstream/openapi_client/test/test_token_api.py +193 -0
- chainstream/openapi_client/test/test_token_creation_dto.py +64 -0
- chainstream/openapi_client/test/test_token_creation_page.py +76 -0
- chainstream/openapi_client/test/test_token_creators_dto.py +54 -0
- chainstream/openapi_client/test/test_token_extra_dto.py +72 -0
- chainstream/openapi_client/test/test_token_holder.py +59 -0
- chainstream/openapi_client/test/test_token_holder_page.py +70 -0
- chainstream/openapi_client/test/test_token_liquidity_snapshot_dto.py +71 -0
- chainstream/openapi_client/test/test_token_liquidity_snapshot_page.py +83 -0
- chainstream/openapi_client/test/test_token_list_page.py +154 -0
- chainstream/openapi_client/test/test_token_market_data.py +101 -0
- chainstream/openapi_client/test/test_token_metadata.py +110 -0
- chainstream/openapi_client/test/test_token_page.py +155 -0
- chainstream/openapi_client/test/test_token_price_dto.py +59 -0
- chainstream/openapi_client/test/test_token_price_page.py +70 -0
- chainstream/openapi_client/test/test_token_social_medias_dto.py +64 -0
- chainstream/openapi_client/test/test_token_stat.py +257 -0
- chainstream/openapi_client/test/test_token_trader.py +65 -0
- chainstream/openapi_client/test/test_token_trader_tag.py +34 -0
- chainstream/openapi_client/test/test_top_traders_dto.py +75 -0
- chainstream/openapi_client/test/test_top_traders_page.py +86 -0
- chainstream/openapi_client/test/test_trade_api.py +53 -0
- chainstream/openapi_client/test/test_trade_detail_dto.py +101 -0
- chainstream/openapi_client/test/test_trade_event.py +77 -0
- chainstream/openapi_client/test/test_trade_page.py +112 -0
- chainstream/openapi_client/test/test_trade_type.py +34 -0
- chainstream/openapi_client/test/test_transaction_api.py +53 -0
- chainstream/openapi_client/test/test_transfer_alerts_response_dto.py +71 -0
- chainstream/openapi_client/test/test_transfer_base_response_dto.py +77 -0
- chainstream/openapi_client/test/test_transfer_direct_exposure_response_dto.py +57 -0
- chainstream/openapi_client/test/test_transfer_network_identifications_response_dto.py +61 -0
- chainstream/openapi_client/test/test_update_endpoint_input.py +64 -0
- chainstream/openapi_client/test/test_wallet_api.py +67 -0
- chainstream/openapi_client/test/test_wallet_balance_detail_dto.py +101 -0
- chainstream/openapi_client/test/test_wallet_balances_dto.py +111 -0
- chainstream/openapi_client/test/test_wallet_pnl_dto.py +97 -0
- chainstream/openapi_client/test/test_watchlist_api.py +39 -0
- chainstream/openapi_client/test/test_withdrawal_address_identifications_response_dto.py +65 -0
- chainstream/openapi_client/test/test_withdrawal_base_response_dto.py +71 -0
- chainstream/openapi_client/test/test_withdrawal_fraud_assessment_response_dto.py +73 -0
- chainstream/stream/__init__.py +74 -0
- chainstream/stream/client.py +761 -0
- chainstream/stream/fields.py +284 -0
- chainstream/stream/models.py +415 -0
- chainstream_sdk-0.1.0.dist-info/METADATA +80 -0
- chainstream_sdk-0.1.0.dist-info/RECORD +261 -0
- chainstream_sdk-0.1.0.dist-info/WHEEL +4 -0
- chainstream_sdk-0.1.0.dist-info/entry_points.txt +2 -0
|
@@ -0,0 +1,1934 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Dex Aggregator API
|
|
5
|
+
|
|
6
|
+
Dex Aggregator API ⚡️
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: ai@sx.ai
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from pydantic import Field, StrictStr, field_validator
|
|
21
|
+
from typing import Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from chainstream.openapi_client.models.create_endpoint_input import CreateEndpointInput
|
|
24
|
+
from chainstream.openapi_client.models.endpoint_list_response import EndpointListResponse
|
|
25
|
+
from chainstream.openapi_client.models.endpoint_operation_response import EndpointOperationResponse
|
|
26
|
+
from chainstream.openapi_client.models.endpoint_response import EndpointResponse
|
|
27
|
+
from chainstream.openapi_client.models.endpoint_secret_response import EndpointSecretResponse
|
|
28
|
+
from chainstream.openapi_client.models.update_endpoint_input import UpdateEndpointInput
|
|
29
|
+
|
|
30
|
+
from chainstream.openapi_client.api_client import ApiClient, RequestSerialized
|
|
31
|
+
from chainstream.openapi_client.api_response import ApiResponse
|
|
32
|
+
from chainstream.openapi_client.rest import RESTResponseType
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class EndpointApi:
|
|
36
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
37
|
+
Ref: https://openapi-generator.tech
|
|
38
|
+
|
|
39
|
+
Do not edit the class manually.
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
def __init__(self, api_client=None) -> None:
|
|
43
|
+
if api_client is None:
|
|
44
|
+
api_client = ApiClient.get_default()
|
|
45
|
+
self.api_client = api_client
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@validate_call
|
|
49
|
+
async def create_endpoint(
|
|
50
|
+
self,
|
|
51
|
+
create_endpoint_input: CreateEndpointInput,
|
|
52
|
+
_request_timeout: Union[
|
|
53
|
+
None,
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
55
|
+
Tuple[
|
|
56
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
57
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
58
|
+
]
|
|
59
|
+
] = None,
|
|
60
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
61
|
+
_content_type: Optional[StrictStr] = None,
|
|
62
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
63
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
64
|
+
) -> EndpointResponse:
|
|
65
|
+
"""CONTROLLER.ENDPOINT.CREATE.SUMMARY
|
|
66
|
+
|
|
67
|
+
CONTROLLER.ENDPOINT.CREATE.DESCRIPTION
|
|
68
|
+
|
|
69
|
+
:param create_endpoint_input: (required)
|
|
70
|
+
:type create_endpoint_input: CreateEndpointInput
|
|
71
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
72
|
+
number provided, it will be total request
|
|
73
|
+
timeout. It can also be a pair (tuple) of
|
|
74
|
+
(connection, read) timeouts.
|
|
75
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
76
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
77
|
+
request; this effectively ignores the
|
|
78
|
+
authentication in the spec for a single request.
|
|
79
|
+
:type _request_auth: dict, optional
|
|
80
|
+
:param _content_type: force content-type for the request.
|
|
81
|
+
:type _content_type: str, Optional
|
|
82
|
+
:param _headers: set to override the headers for a single
|
|
83
|
+
request; this effectively ignores the headers
|
|
84
|
+
in the spec for a single request.
|
|
85
|
+
:type _headers: dict, optional
|
|
86
|
+
:param _host_index: set to override the host_index for a single
|
|
87
|
+
request; this effectively ignores the host_index
|
|
88
|
+
in the spec for a single request.
|
|
89
|
+
:type _host_index: int, optional
|
|
90
|
+
:return: Returns the result object.
|
|
91
|
+
""" # noqa: E501
|
|
92
|
+
|
|
93
|
+
_param = self._create_endpoint_serialize(
|
|
94
|
+
create_endpoint_input=create_endpoint_input,
|
|
95
|
+
_request_auth=_request_auth,
|
|
96
|
+
_content_type=_content_type,
|
|
97
|
+
_headers=_headers,
|
|
98
|
+
_host_index=_host_index
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
102
|
+
'200': "EndpointResponse",
|
|
103
|
+
}
|
|
104
|
+
response_data = await self.api_client.call_api(
|
|
105
|
+
*_param,
|
|
106
|
+
_request_timeout=_request_timeout
|
|
107
|
+
)
|
|
108
|
+
await response_data.read()
|
|
109
|
+
return self.api_client.response_deserialize(
|
|
110
|
+
response_data=response_data,
|
|
111
|
+
response_types_map=_response_types_map,
|
|
112
|
+
).data
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
@validate_call
|
|
116
|
+
async def create_endpoint_with_http_info(
|
|
117
|
+
self,
|
|
118
|
+
create_endpoint_input: CreateEndpointInput,
|
|
119
|
+
_request_timeout: Union[
|
|
120
|
+
None,
|
|
121
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
122
|
+
Tuple[
|
|
123
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
124
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
125
|
+
]
|
|
126
|
+
] = None,
|
|
127
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
128
|
+
_content_type: Optional[StrictStr] = None,
|
|
129
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
130
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
131
|
+
) -> ApiResponse[EndpointResponse]:
|
|
132
|
+
"""CONTROLLER.ENDPOINT.CREATE.SUMMARY
|
|
133
|
+
|
|
134
|
+
CONTROLLER.ENDPOINT.CREATE.DESCRIPTION
|
|
135
|
+
|
|
136
|
+
:param create_endpoint_input: (required)
|
|
137
|
+
:type create_endpoint_input: CreateEndpointInput
|
|
138
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
139
|
+
number provided, it will be total request
|
|
140
|
+
timeout. It can also be a pair (tuple) of
|
|
141
|
+
(connection, read) timeouts.
|
|
142
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
143
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
144
|
+
request; this effectively ignores the
|
|
145
|
+
authentication in the spec for a single request.
|
|
146
|
+
:type _request_auth: dict, optional
|
|
147
|
+
:param _content_type: force content-type for the request.
|
|
148
|
+
:type _content_type: str, Optional
|
|
149
|
+
:param _headers: set to override the headers for a single
|
|
150
|
+
request; this effectively ignores the headers
|
|
151
|
+
in the spec for a single request.
|
|
152
|
+
:type _headers: dict, optional
|
|
153
|
+
:param _host_index: set to override the host_index for a single
|
|
154
|
+
request; this effectively ignores the host_index
|
|
155
|
+
in the spec for a single request.
|
|
156
|
+
:type _host_index: int, optional
|
|
157
|
+
:return: Returns the result object.
|
|
158
|
+
""" # noqa: E501
|
|
159
|
+
|
|
160
|
+
_param = self._create_endpoint_serialize(
|
|
161
|
+
create_endpoint_input=create_endpoint_input,
|
|
162
|
+
_request_auth=_request_auth,
|
|
163
|
+
_content_type=_content_type,
|
|
164
|
+
_headers=_headers,
|
|
165
|
+
_host_index=_host_index
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
169
|
+
'200': "EndpointResponse",
|
|
170
|
+
}
|
|
171
|
+
response_data = await self.api_client.call_api(
|
|
172
|
+
*_param,
|
|
173
|
+
_request_timeout=_request_timeout
|
|
174
|
+
)
|
|
175
|
+
await response_data.read()
|
|
176
|
+
return self.api_client.response_deserialize(
|
|
177
|
+
response_data=response_data,
|
|
178
|
+
response_types_map=_response_types_map,
|
|
179
|
+
)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
@validate_call
|
|
183
|
+
async def create_endpoint_without_preload_content(
|
|
184
|
+
self,
|
|
185
|
+
create_endpoint_input: CreateEndpointInput,
|
|
186
|
+
_request_timeout: Union[
|
|
187
|
+
None,
|
|
188
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
189
|
+
Tuple[
|
|
190
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
191
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
192
|
+
]
|
|
193
|
+
] = None,
|
|
194
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
195
|
+
_content_type: Optional[StrictStr] = None,
|
|
196
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
197
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
198
|
+
) -> RESTResponseType:
|
|
199
|
+
"""CONTROLLER.ENDPOINT.CREATE.SUMMARY
|
|
200
|
+
|
|
201
|
+
CONTROLLER.ENDPOINT.CREATE.DESCRIPTION
|
|
202
|
+
|
|
203
|
+
:param create_endpoint_input: (required)
|
|
204
|
+
:type create_endpoint_input: CreateEndpointInput
|
|
205
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
206
|
+
number provided, it will be total request
|
|
207
|
+
timeout. It can also be a pair (tuple) of
|
|
208
|
+
(connection, read) timeouts.
|
|
209
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
210
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
211
|
+
request; this effectively ignores the
|
|
212
|
+
authentication in the spec for a single request.
|
|
213
|
+
:type _request_auth: dict, optional
|
|
214
|
+
:param _content_type: force content-type for the request.
|
|
215
|
+
:type _content_type: str, Optional
|
|
216
|
+
:param _headers: set to override the headers for a single
|
|
217
|
+
request; this effectively ignores the headers
|
|
218
|
+
in the spec for a single request.
|
|
219
|
+
:type _headers: dict, optional
|
|
220
|
+
:param _host_index: set to override the host_index for a single
|
|
221
|
+
request; this effectively ignores the host_index
|
|
222
|
+
in the spec for a single request.
|
|
223
|
+
:type _host_index: int, optional
|
|
224
|
+
:return: Returns the result object.
|
|
225
|
+
""" # noqa: E501
|
|
226
|
+
|
|
227
|
+
_param = self._create_endpoint_serialize(
|
|
228
|
+
create_endpoint_input=create_endpoint_input,
|
|
229
|
+
_request_auth=_request_auth,
|
|
230
|
+
_content_type=_content_type,
|
|
231
|
+
_headers=_headers,
|
|
232
|
+
_host_index=_host_index
|
|
233
|
+
)
|
|
234
|
+
|
|
235
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
236
|
+
'200': "EndpointResponse",
|
|
237
|
+
}
|
|
238
|
+
response_data = await self.api_client.call_api(
|
|
239
|
+
*_param,
|
|
240
|
+
_request_timeout=_request_timeout
|
|
241
|
+
)
|
|
242
|
+
return response_data.response
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
def _create_endpoint_serialize(
|
|
246
|
+
self,
|
|
247
|
+
create_endpoint_input,
|
|
248
|
+
_request_auth,
|
|
249
|
+
_content_type,
|
|
250
|
+
_headers,
|
|
251
|
+
_host_index,
|
|
252
|
+
) -> RequestSerialized:
|
|
253
|
+
|
|
254
|
+
_host = None
|
|
255
|
+
|
|
256
|
+
_collection_formats: Dict[str, str] = {
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
_path_params: Dict[str, str] = {}
|
|
260
|
+
_query_params: List[Tuple[str, str]] = []
|
|
261
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
262
|
+
_form_params: List[Tuple[str, str]] = []
|
|
263
|
+
_files: Dict[
|
|
264
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
265
|
+
] = {}
|
|
266
|
+
_body_params: Optional[bytes] = None
|
|
267
|
+
|
|
268
|
+
# process the path parameters
|
|
269
|
+
# process the query parameters
|
|
270
|
+
# process the header parameters
|
|
271
|
+
# process the form parameters
|
|
272
|
+
# process the body parameter
|
|
273
|
+
if create_endpoint_input is not None:
|
|
274
|
+
_body_params = create_endpoint_input
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
# set the HTTP header `Accept`
|
|
278
|
+
if 'Accept' not in _header_params:
|
|
279
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
280
|
+
[
|
|
281
|
+
'application/json'
|
|
282
|
+
]
|
|
283
|
+
)
|
|
284
|
+
|
|
285
|
+
# set the HTTP header `Content-Type`
|
|
286
|
+
if _content_type:
|
|
287
|
+
_header_params['Content-Type'] = _content_type
|
|
288
|
+
else:
|
|
289
|
+
_default_content_type = (
|
|
290
|
+
self.api_client.select_header_content_type(
|
|
291
|
+
[
|
|
292
|
+
'application/json'
|
|
293
|
+
]
|
|
294
|
+
)
|
|
295
|
+
)
|
|
296
|
+
if _default_content_type is not None:
|
|
297
|
+
_header_params['Content-Type'] = _default_content_type
|
|
298
|
+
|
|
299
|
+
# authentication setting
|
|
300
|
+
_auth_settings: List[str] = [
|
|
301
|
+
'bearer'
|
|
302
|
+
]
|
|
303
|
+
|
|
304
|
+
return self.api_client.param_serialize(
|
|
305
|
+
method='POST',
|
|
306
|
+
resource_path='/v1/webhook/endpoint',
|
|
307
|
+
path_params=_path_params,
|
|
308
|
+
query_params=_query_params,
|
|
309
|
+
header_params=_header_params,
|
|
310
|
+
body=_body_params,
|
|
311
|
+
post_params=_form_params,
|
|
312
|
+
files=_files,
|
|
313
|
+
auth_settings=_auth_settings,
|
|
314
|
+
collection_formats=_collection_formats,
|
|
315
|
+
_host=_host,
|
|
316
|
+
_request_auth=_request_auth
|
|
317
|
+
)
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
@validate_call
|
|
323
|
+
async def delete_endpoint(
|
|
324
|
+
self,
|
|
325
|
+
id: StrictStr,
|
|
326
|
+
_request_timeout: Union[
|
|
327
|
+
None,
|
|
328
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
329
|
+
Tuple[
|
|
330
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
331
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
332
|
+
]
|
|
333
|
+
] = None,
|
|
334
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
335
|
+
_content_type: Optional[StrictStr] = None,
|
|
336
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
337
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
338
|
+
) -> EndpointOperationResponse:
|
|
339
|
+
"""CONTROLLER.ENDPOINT.DELETE.SUMMARY
|
|
340
|
+
|
|
341
|
+
CONTROLLER.ENDPOINT.DELETE.DESCRIPTION
|
|
342
|
+
|
|
343
|
+
:param id: (required)
|
|
344
|
+
:type id: str
|
|
345
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
346
|
+
number provided, it will be total request
|
|
347
|
+
timeout. It can also be a pair (tuple) of
|
|
348
|
+
(connection, read) timeouts.
|
|
349
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
350
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
351
|
+
request; this effectively ignores the
|
|
352
|
+
authentication in the spec for a single request.
|
|
353
|
+
:type _request_auth: dict, optional
|
|
354
|
+
:param _content_type: force content-type for the request.
|
|
355
|
+
:type _content_type: str, Optional
|
|
356
|
+
:param _headers: set to override the headers for a single
|
|
357
|
+
request; this effectively ignores the headers
|
|
358
|
+
in the spec for a single request.
|
|
359
|
+
:type _headers: dict, optional
|
|
360
|
+
:param _host_index: set to override the host_index for a single
|
|
361
|
+
request; this effectively ignores the host_index
|
|
362
|
+
in the spec for a single request.
|
|
363
|
+
:type _host_index: int, optional
|
|
364
|
+
:return: Returns the result object.
|
|
365
|
+
""" # noqa: E501
|
|
366
|
+
|
|
367
|
+
_param = self._delete_endpoint_serialize(
|
|
368
|
+
id=id,
|
|
369
|
+
_request_auth=_request_auth,
|
|
370
|
+
_content_type=_content_type,
|
|
371
|
+
_headers=_headers,
|
|
372
|
+
_host_index=_host_index
|
|
373
|
+
)
|
|
374
|
+
|
|
375
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
376
|
+
'200': "EndpointOperationResponse",
|
|
377
|
+
}
|
|
378
|
+
response_data = await self.api_client.call_api(
|
|
379
|
+
*_param,
|
|
380
|
+
_request_timeout=_request_timeout
|
|
381
|
+
)
|
|
382
|
+
await response_data.read()
|
|
383
|
+
return self.api_client.response_deserialize(
|
|
384
|
+
response_data=response_data,
|
|
385
|
+
response_types_map=_response_types_map,
|
|
386
|
+
).data
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
@validate_call
|
|
390
|
+
async def delete_endpoint_with_http_info(
|
|
391
|
+
self,
|
|
392
|
+
id: StrictStr,
|
|
393
|
+
_request_timeout: Union[
|
|
394
|
+
None,
|
|
395
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
396
|
+
Tuple[
|
|
397
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
398
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
399
|
+
]
|
|
400
|
+
] = None,
|
|
401
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
402
|
+
_content_type: Optional[StrictStr] = None,
|
|
403
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
404
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
405
|
+
) -> ApiResponse[EndpointOperationResponse]:
|
|
406
|
+
"""CONTROLLER.ENDPOINT.DELETE.SUMMARY
|
|
407
|
+
|
|
408
|
+
CONTROLLER.ENDPOINT.DELETE.DESCRIPTION
|
|
409
|
+
|
|
410
|
+
:param id: (required)
|
|
411
|
+
:type id: str
|
|
412
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
413
|
+
number provided, it will be total request
|
|
414
|
+
timeout. It can also be a pair (tuple) of
|
|
415
|
+
(connection, read) timeouts.
|
|
416
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
417
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
418
|
+
request; this effectively ignores the
|
|
419
|
+
authentication in the spec for a single request.
|
|
420
|
+
:type _request_auth: dict, optional
|
|
421
|
+
:param _content_type: force content-type for the request.
|
|
422
|
+
:type _content_type: str, Optional
|
|
423
|
+
:param _headers: set to override the headers for a single
|
|
424
|
+
request; this effectively ignores the headers
|
|
425
|
+
in the spec for a single request.
|
|
426
|
+
:type _headers: dict, optional
|
|
427
|
+
:param _host_index: set to override the host_index for a single
|
|
428
|
+
request; this effectively ignores the host_index
|
|
429
|
+
in the spec for a single request.
|
|
430
|
+
:type _host_index: int, optional
|
|
431
|
+
:return: Returns the result object.
|
|
432
|
+
""" # noqa: E501
|
|
433
|
+
|
|
434
|
+
_param = self._delete_endpoint_serialize(
|
|
435
|
+
id=id,
|
|
436
|
+
_request_auth=_request_auth,
|
|
437
|
+
_content_type=_content_type,
|
|
438
|
+
_headers=_headers,
|
|
439
|
+
_host_index=_host_index
|
|
440
|
+
)
|
|
441
|
+
|
|
442
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
443
|
+
'200': "EndpointOperationResponse",
|
|
444
|
+
}
|
|
445
|
+
response_data = await self.api_client.call_api(
|
|
446
|
+
*_param,
|
|
447
|
+
_request_timeout=_request_timeout
|
|
448
|
+
)
|
|
449
|
+
await response_data.read()
|
|
450
|
+
return self.api_client.response_deserialize(
|
|
451
|
+
response_data=response_data,
|
|
452
|
+
response_types_map=_response_types_map,
|
|
453
|
+
)
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
@validate_call
|
|
457
|
+
async def delete_endpoint_without_preload_content(
|
|
458
|
+
self,
|
|
459
|
+
id: StrictStr,
|
|
460
|
+
_request_timeout: Union[
|
|
461
|
+
None,
|
|
462
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
463
|
+
Tuple[
|
|
464
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
465
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
466
|
+
]
|
|
467
|
+
] = None,
|
|
468
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
469
|
+
_content_type: Optional[StrictStr] = None,
|
|
470
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
471
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
472
|
+
) -> RESTResponseType:
|
|
473
|
+
"""CONTROLLER.ENDPOINT.DELETE.SUMMARY
|
|
474
|
+
|
|
475
|
+
CONTROLLER.ENDPOINT.DELETE.DESCRIPTION
|
|
476
|
+
|
|
477
|
+
:param id: (required)
|
|
478
|
+
:type id: str
|
|
479
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
480
|
+
number provided, it will be total request
|
|
481
|
+
timeout. It can also be a pair (tuple) of
|
|
482
|
+
(connection, read) timeouts.
|
|
483
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
484
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
485
|
+
request; this effectively ignores the
|
|
486
|
+
authentication in the spec for a single request.
|
|
487
|
+
:type _request_auth: dict, optional
|
|
488
|
+
:param _content_type: force content-type for the request.
|
|
489
|
+
:type _content_type: str, Optional
|
|
490
|
+
:param _headers: set to override the headers for a single
|
|
491
|
+
request; this effectively ignores the headers
|
|
492
|
+
in the spec for a single request.
|
|
493
|
+
:type _headers: dict, optional
|
|
494
|
+
:param _host_index: set to override the host_index for a single
|
|
495
|
+
request; this effectively ignores the host_index
|
|
496
|
+
in the spec for a single request.
|
|
497
|
+
:type _host_index: int, optional
|
|
498
|
+
:return: Returns the result object.
|
|
499
|
+
""" # noqa: E501
|
|
500
|
+
|
|
501
|
+
_param = self._delete_endpoint_serialize(
|
|
502
|
+
id=id,
|
|
503
|
+
_request_auth=_request_auth,
|
|
504
|
+
_content_type=_content_type,
|
|
505
|
+
_headers=_headers,
|
|
506
|
+
_host_index=_host_index
|
|
507
|
+
)
|
|
508
|
+
|
|
509
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
510
|
+
'200': "EndpointOperationResponse",
|
|
511
|
+
}
|
|
512
|
+
response_data = await self.api_client.call_api(
|
|
513
|
+
*_param,
|
|
514
|
+
_request_timeout=_request_timeout
|
|
515
|
+
)
|
|
516
|
+
return response_data.response
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
def _delete_endpoint_serialize(
|
|
520
|
+
self,
|
|
521
|
+
id,
|
|
522
|
+
_request_auth,
|
|
523
|
+
_content_type,
|
|
524
|
+
_headers,
|
|
525
|
+
_host_index,
|
|
526
|
+
) -> RequestSerialized:
|
|
527
|
+
|
|
528
|
+
_host = None
|
|
529
|
+
|
|
530
|
+
_collection_formats: Dict[str, str] = {
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
_path_params: Dict[str, str] = {}
|
|
534
|
+
_query_params: List[Tuple[str, str]] = []
|
|
535
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
536
|
+
_form_params: List[Tuple[str, str]] = []
|
|
537
|
+
_files: Dict[
|
|
538
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
539
|
+
] = {}
|
|
540
|
+
_body_params: Optional[bytes] = None
|
|
541
|
+
|
|
542
|
+
# process the path parameters
|
|
543
|
+
if id is not None:
|
|
544
|
+
_path_params['id'] = id
|
|
545
|
+
# process the query parameters
|
|
546
|
+
# process the header parameters
|
|
547
|
+
# process the form parameters
|
|
548
|
+
# process the body parameter
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
# set the HTTP header `Accept`
|
|
552
|
+
if 'Accept' not in _header_params:
|
|
553
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
554
|
+
[
|
|
555
|
+
'application/json'
|
|
556
|
+
]
|
|
557
|
+
)
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
# authentication setting
|
|
561
|
+
_auth_settings: List[str] = [
|
|
562
|
+
'bearer'
|
|
563
|
+
]
|
|
564
|
+
|
|
565
|
+
return self.api_client.param_serialize(
|
|
566
|
+
method='DELETE',
|
|
567
|
+
resource_path='/v1/webhook/endpoint/{id}',
|
|
568
|
+
path_params=_path_params,
|
|
569
|
+
query_params=_query_params,
|
|
570
|
+
header_params=_header_params,
|
|
571
|
+
body=_body_params,
|
|
572
|
+
post_params=_form_params,
|
|
573
|
+
files=_files,
|
|
574
|
+
auth_settings=_auth_settings,
|
|
575
|
+
collection_formats=_collection_formats,
|
|
576
|
+
_host=_host,
|
|
577
|
+
_request_auth=_request_auth
|
|
578
|
+
)
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
@validate_call
|
|
584
|
+
async def get_endpoint(
|
|
585
|
+
self,
|
|
586
|
+
id: StrictStr,
|
|
587
|
+
_request_timeout: Union[
|
|
588
|
+
None,
|
|
589
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
590
|
+
Tuple[
|
|
591
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
592
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
593
|
+
]
|
|
594
|
+
] = None,
|
|
595
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
596
|
+
_content_type: Optional[StrictStr] = None,
|
|
597
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
598
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
599
|
+
) -> EndpointResponse:
|
|
600
|
+
"""CONTROLLER.ENDPOINT.GET.SUMMARY
|
|
601
|
+
|
|
602
|
+
CONTROLLER.ENDPOINT.GET.DESCRIPTION
|
|
603
|
+
|
|
604
|
+
:param id: (required)
|
|
605
|
+
:type id: str
|
|
606
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
607
|
+
number provided, it will be total request
|
|
608
|
+
timeout. It can also be a pair (tuple) of
|
|
609
|
+
(connection, read) timeouts.
|
|
610
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
611
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
612
|
+
request; this effectively ignores the
|
|
613
|
+
authentication in the spec for a single request.
|
|
614
|
+
:type _request_auth: dict, optional
|
|
615
|
+
:param _content_type: force content-type for the request.
|
|
616
|
+
:type _content_type: str, Optional
|
|
617
|
+
:param _headers: set to override the headers for a single
|
|
618
|
+
request; this effectively ignores the headers
|
|
619
|
+
in the spec for a single request.
|
|
620
|
+
:type _headers: dict, optional
|
|
621
|
+
:param _host_index: set to override the host_index for a single
|
|
622
|
+
request; this effectively ignores the host_index
|
|
623
|
+
in the spec for a single request.
|
|
624
|
+
:type _host_index: int, optional
|
|
625
|
+
:return: Returns the result object.
|
|
626
|
+
""" # noqa: E501
|
|
627
|
+
|
|
628
|
+
_param = self._get_endpoint_serialize(
|
|
629
|
+
id=id,
|
|
630
|
+
_request_auth=_request_auth,
|
|
631
|
+
_content_type=_content_type,
|
|
632
|
+
_headers=_headers,
|
|
633
|
+
_host_index=_host_index
|
|
634
|
+
)
|
|
635
|
+
|
|
636
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
637
|
+
'200': "EndpointResponse",
|
|
638
|
+
}
|
|
639
|
+
response_data = await self.api_client.call_api(
|
|
640
|
+
*_param,
|
|
641
|
+
_request_timeout=_request_timeout
|
|
642
|
+
)
|
|
643
|
+
await response_data.read()
|
|
644
|
+
return self.api_client.response_deserialize(
|
|
645
|
+
response_data=response_data,
|
|
646
|
+
response_types_map=_response_types_map,
|
|
647
|
+
).data
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
@validate_call
|
|
651
|
+
async def get_endpoint_with_http_info(
|
|
652
|
+
self,
|
|
653
|
+
id: StrictStr,
|
|
654
|
+
_request_timeout: Union[
|
|
655
|
+
None,
|
|
656
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
657
|
+
Tuple[
|
|
658
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
659
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
660
|
+
]
|
|
661
|
+
] = None,
|
|
662
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
663
|
+
_content_type: Optional[StrictStr] = None,
|
|
664
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
665
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
666
|
+
) -> ApiResponse[EndpointResponse]:
|
|
667
|
+
"""CONTROLLER.ENDPOINT.GET.SUMMARY
|
|
668
|
+
|
|
669
|
+
CONTROLLER.ENDPOINT.GET.DESCRIPTION
|
|
670
|
+
|
|
671
|
+
:param id: (required)
|
|
672
|
+
:type id: str
|
|
673
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
674
|
+
number provided, it will be total request
|
|
675
|
+
timeout. It can also be a pair (tuple) of
|
|
676
|
+
(connection, read) timeouts.
|
|
677
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
678
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
679
|
+
request; this effectively ignores the
|
|
680
|
+
authentication in the spec for a single request.
|
|
681
|
+
:type _request_auth: dict, optional
|
|
682
|
+
:param _content_type: force content-type for the request.
|
|
683
|
+
:type _content_type: str, Optional
|
|
684
|
+
:param _headers: set to override the headers for a single
|
|
685
|
+
request; this effectively ignores the headers
|
|
686
|
+
in the spec for a single request.
|
|
687
|
+
:type _headers: dict, optional
|
|
688
|
+
:param _host_index: set to override the host_index for a single
|
|
689
|
+
request; this effectively ignores the host_index
|
|
690
|
+
in the spec for a single request.
|
|
691
|
+
:type _host_index: int, optional
|
|
692
|
+
:return: Returns the result object.
|
|
693
|
+
""" # noqa: E501
|
|
694
|
+
|
|
695
|
+
_param = self._get_endpoint_serialize(
|
|
696
|
+
id=id,
|
|
697
|
+
_request_auth=_request_auth,
|
|
698
|
+
_content_type=_content_type,
|
|
699
|
+
_headers=_headers,
|
|
700
|
+
_host_index=_host_index
|
|
701
|
+
)
|
|
702
|
+
|
|
703
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
704
|
+
'200': "EndpointResponse",
|
|
705
|
+
}
|
|
706
|
+
response_data = await self.api_client.call_api(
|
|
707
|
+
*_param,
|
|
708
|
+
_request_timeout=_request_timeout
|
|
709
|
+
)
|
|
710
|
+
await response_data.read()
|
|
711
|
+
return self.api_client.response_deserialize(
|
|
712
|
+
response_data=response_data,
|
|
713
|
+
response_types_map=_response_types_map,
|
|
714
|
+
)
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
@validate_call
|
|
718
|
+
async def get_endpoint_without_preload_content(
|
|
719
|
+
self,
|
|
720
|
+
id: StrictStr,
|
|
721
|
+
_request_timeout: Union[
|
|
722
|
+
None,
|
|
723
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
724
|
+
Tuple[
|
|
725
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
726
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
727
|
+
]
|
|
728
|
+
] = None,
|
|
729
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
730
|
+
_content_type: Optional[StrictStr] = None,
|
|
731
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
732
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
733
|
+
) -> RESTResponseType:
|
|
734
|
+
"""CONTROLLER.ENDPOINT.GET.SUMMARY
|
|
735
|
+
|
|
736
|
+
CONTROLLER.ENDPOINT.GET.DESCRIPTION
|
|
737
|
+
|
|
738
|
+
:param id: (required)
|
|
739
|
+
:type id: str
|
|
740
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
741
|
+
number provided, it will be total request
|
|
742
|
+
timeout. It can also be a pair (tuple) of
|
|
743
|
+
(connection, read) timeouts.
|
|
744
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
745
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
746
|
+
request; this effectively ignores the
|
|
747
|
+
authentication in the spec for a single request.
|
|
748
|
+
:type _request_auth: dict, optional
|
|
749
|
+
:param _content_type: force content-type for the request.
|
|
750
|
+
:type _content_type: str, Optional
|
|
751
|
+
:param _headers: set to override the headers for a single
|
|
752
|
+
request; this effectively ignores the headers
|
|
753
|
+
in the spec for a single request.
|
|
754
|
+
:type _headers: dict, optional
|
|
755
|
+
:param _host_index: set to override the host_index for a single
|
|
756
|
+
request; this effectively ignores the host_index
|
|
757
|
+
in the spec for a single request.
|
|
758
|
+
:type _host_index: int, optional
|
|
759
|
+
:return: Returns the result object.
|
|
760
|
+
""" # noqa: E501
|
|
761
|
+
|
|
762
|
+
_param = self._get_endpoint_serialize(
|
|
763
|
+
id=id,
|
|
764
|
+
_request_auth=_request_auth,
|
|
765
|
+
_content_type=_content_type,
|
|
766
|
+
_headers=_headers,
|
|
767
|
+
_host_index=_host_index
|
|
768
|
+
)
|
|
769
|
+
|
|
770
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
771
|
+
'200': "EndpointResponse",
|
|
772
|
+
}
|
|
773
|
+
response_data = await self.api_client.call_api(
|
|
774
|
+
*_param,
|
|
775
|
+
_request_timeout=_request_timeout
|
|
776
|
+
)
|
|
777
|
+
return response_data.response
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
def _get_endpoint_serialize(
|
|
781
|
+
self,
|
|
782
|
+
id,
|
|
783
|
+
_request_auth,
|
|
784
|
+
_content_type,
|
|
785
|
+
_headers,
|
|
786
|
+
_host_index,
|
|
787
|
+
) -> RequestSerialized:
|
|
788
|
+
|
|
789
|
+
_host = None
|
|
790
|
+
|
|
791
|
+
_collection_formats: Dict[str, str] = {
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
_path_params: Dict[str, str] = {}
|
|
795
|
+
_query_params: List[Tuple[str, str]] = []
|
|
796
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
797
|
+
_form_params: List[Tuple[str, str]] = []
|
|
798
|
+
_files: Dict[
|
|
799
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
800
|
+
] = {}
|
|
801
|
+
_body_params: Optional[bytes] = None
|
|
802
|
+
|
|
803
|
+
# process the path parameters
|
|
804
|
+
if id is not None:
|
|
805
|
+
_path_params['id'] = id
|
|
806
|
+
# process the query parameters
|
|
807
|
+
# process the header parameters
|
|
808
|
+
# process the form parameters
|
|
809
|
+
# process the body parameter
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
# set the HTTP header `Accept`
|
|
813
|
+
if 'Accept' not in _header_params:
|
|
814
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
815
|
+
[
|
|
816
|
+
'application/json'
|
|
817
|
+
]
|
|
818
|
+
)
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
# authentication setting
|
|
822
|
+
_auth_settings: List[str] = [
|
|
823
|
+
'bearer'
|
|
824
|
+
]
|
|
825
|
+
|
|
826
|
+
return self.api_client.param_serialize(
|
|
827
|
+
method='GET',
|
|
828
|
+
resource_path='/v1/webhook/endpoint/{id}',
|
|
829
|
+
path_params=_path_params,
|
|
830
|
+
query_params=_query_params,
|
|
831
|
+
header_params=_header_params,
|
|
832
|
+
body=_body_params,
|
|
833
|
+
post_params=_form_params,
|
|
834
|
+
files=_files,
|
|
835
|
+
auth_settings=_auth_settings,
|
|
836
|
+
collection_formats=_collection_formats,
|
|
837
|
+
_host=_host,
|
|
838
|
+
_request_auth=_request_auth
|
|
839
|
+
)
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
@validate_call
|
|
845
|
+
async def get_endpoint_secret(
|
|
846
|
+
self,
|
|
847
|
+
id: StrictStr,
|
|
848
|
+
_request_timeout: Union[
|
|
849
|
+
None,
|
|
850
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
851
|
+
Tuple[
|
|
852
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
853
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
854
|
+
]
|
|
855
|
+
] = None,
|
|
856
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
857
|
+
_content_type: Optional[StrictStr] = None,
|
|
858
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
859
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
860
|
+
) -> EndpointSecretResponse:
|
|
861
|
+
"""CONTROLLER.ENDPOINT.GET.SECRET.SUMMARY
|
|
862
|
+
|
|
863
|
+
CONTROLLER.ENDPOINT.GET.SECRET.DESCRIPTION
|
|
864
|
+
|
|
865
|
+
:param id: (required)
|
|
866
|
+
:type id: str
|
|
867
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
868
|
+
number provided, it will be total request
|
|
869
|
+
timeout. It can also be a pair (tuple) of
|
|
870
|
+
(connection, read) timeouts.
|
|
871
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
872
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
873
|
+
request; this effectively ignores the
|
|
874
|
+
authentication in the spec for a single request.
|
|
875
|
+
:type _request_auth: dict, optional
|
|
876
|
+
:param _content_type: force content-type for the request.
|
|
877
|
+
:type _content_type: str, Optional
|
|
878
|
+
:param _headers: set to override the headers for a single
|
|
879
|
+
request; this effectively ignores the headers
|
|
880
|
+
in the spec for a single request.
|
|
881
|
+
:type _headers: dict, optional
|
|
882
|
+
:param _host_index: set to override the host_index for a single
|
|
883
|
+
request; this effectively ignores the host_index
|
|
884
|
+
in the spec for a single request.
|
|
885
|
+
:type _host_index: int, optional
|
|
886
|
+
:return: Returns the result object.
|
|
887
|
+
""" # noqa: E501
|
|
888
|
+
|
|
889
|
+
_param = self._get_endpoint_secret_serialize(
|
|
890
|
+
id=id,
|
|
891
|
+
_request_auth=_request_auth,
|
|
892
|
+
_content_type=_content_type,
|
|
893
|
+
_headers=_headers,
|
|
894
|
+
_host_index=_host_index
|
|
895
|
+
)
|
|
896
|
+
|
|
897
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
898
|
+
'200': "EndpointSecretResponse",
|
|
899
|
+
}
|
|
900
|
+
response_data = await self.api_client.call_api(
|
|
901
|
+
*_param,
|
|
902
|
+
_request_timeout=_request_timeout
|
|
903
|
+
)
|
|
904
|
+
await response_data.read()
|
|
905
|
+
return self.api_client.response_deserialize(
|
|
906
|
+
response_data=response_data,
|
|
907
|
+
response_types_map=_response_types_map,
|
|
908
|
+
).data
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
@validate_call
|
|
912
|
+
async def get_endpoint_secret_with_http_info(
|
|
913
|
+
self,
|
|
914
|
+
id: StrictStr,
|
|
915
|
+
_request_timeout: Union[
|
|
916
|
+
None,
|
|
917
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
918
|
+
Tuple[
|
|
919
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
920
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
921
|
+
]
|
|
922
|
+
] = None,
|
|
923
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
924
|
+
_content_type: Optional[StrictStr] = None,
|
|
925
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
926
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
927
|
+
) -> ApiResponse[EndpointSecretResponse]:
|
|
928
|
+
"""CONTROLLER.ENDPOINT.GET.SECRET.SUMMARY
|
|
929
|
+
|
|
930
|
+
CONTROLLER.ENDPOINT.GET.SECRET.DESCRIPTION
|
|
931
|
+
|
|
932
|
+
:param id: (required)
|
|
933
|
+
:type id: str
|
|
934
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
935
|
+
number provided, it will be total request
|
|
936
|
+
timeout. It can also be a pair (tuple) of
|
|
937
|
+
(connection, read) timeouts.
|
|
938
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
939
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
940
|
+
request; this effectively ignores the
|
|
941
|
+
authentication in the spec for a single request.
|
|
942
|
+
:type _request_auth: dict, optional
|
|
943
|
+
:param _content_type: force content-type for the request.
|
|
944
|
+
:type _content_type: str, Optional
|
|
945
|
+
:param _headers: set to override the headers for a single
|
|
946
|
+
request; this effectively ignores the headers
|
|
947
|
+
in the spec for a single request.
|
|
948
|
+
:type _headers: dict, optional
|
|
949
|
+
:param _host_index: set to override the host_index for a single
|
|
950
|
+
request; this effectively ignores the host_index
|
|
951
|
+
in the spec for a single request.
|
|
952
|
+
:type _host_index: int, optional
|
|
953
|
+
:return: Returns the result object.
|
|
954
|
+
""" # noqa: E501
|
|
955
|
+
|
|
956
|
+
_param = self._get_endpoint_secret_serialize(
|
|
957
|
+
id=id,
|
|
958
|
+
_request_auth=_request_auth,
|
|
959
|
+
_content_type=_content_type,
|
|
960
|
+
_headers=_headers,
|
|
961
|
+
_host_index=_host_index
|
|
962
|
+
)
|
|
963
|
+
|
|
964
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
965
|
+
'200': "EndpointSecretResponse",
|
|
966
|
+
}
|
|
967
|
+
response_data = await self.api_client.call_api(
|
|
968
|
+
*_param,
|
|
969
|
+
_request_timeout=_request_timeout
|
|
970
|
+
)
|
|
971
|
+
await response_data.read()
|
|
972
|
+
return self.api_client.response_deserialize(
|
|
973
|
+
response_data=response_data,
|
|
974
|
+
response_types_map=_response_types_map,
|
|
975
|
+
)
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
@validate_call
|
|
979
|
+
async def get_endpoint_secret_without_preload_content(
|
|
980
|
+
self,
|
|
981
|
+
id: StrictStr,
|
|
982
|
+
_request_timeout: Union[
|
|
983
|
+
None,
|
|
984
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
985
|
+
Tuple[
|
|
986
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
987
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
988
|
+
]
|
|
989
|
+
] = None,
|
|
990
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
991
|
+
_content_type: Optional[StrictStr] = None,
|
|
992
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
993
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
994
|
+
) -> RESTResponseType:
|
|
995
|
+
"""CONTROLLER.ENDPOINT.GET.SECRET.SUMMARY
|
|
996
|
+
|
|
997
|
+
CONTROLLER.ENDPOINT.GET.SECRET.DESCRIPTION
|
|
998
|
+
|
|
999
|
+
:param id: (required)
|
|
1000
|
+
:type id: str
|
|
1001
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1002
|
+
number provided, it will be total request
|
|
1003
|
+
timeout. It can also be a pair (tuple) of
|
|
1004
|
+
(connection, read) timeouts.
|
|
1005
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1006
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1007
|
+
request; this effectively ignores the
|
|
1008
|
+
authentication in the spec for a single request.
|
|
1009
|
+
:type _request_auth: dict, optional
|
|
1010
|
+
:param _content_type: force content-type for the request.
|
|
1011
|
+
:type _content_type: str, Optional
|
|
1012
|
+
:param _headers: set to override the headers for a single
|
|
1013
|
+
request; this effectively ignores the headers
|
|
1014
|
+
in the spec for a single request.
|
|
1015
|
+
:type _headers: dict, optional
|
|
1016
|
+
:param _host_index: set to override the host_index for a single
|
|
1017
|
+
request; this effectively ignores the host_index
|
|
1018
|
+
in the spec for a single request.
|
|
1019
|
+
:type _host_index: int, optional
|
|
1020
|
+
:return: Returns the result object.
|
|
1021
|
+
""" # noqa: E501
|
|
1022
|
+
|
|
1023
|
+
_param = self._get_endpoint_secret_serialize(
|
|
1024
|
+
id=id,
|
|
1025
|
+
_request_auth=_request_auth,
|
|
1026
|
+
_content_type=_content_type,
|
|
1027
|
+
_headers=_headers,
|
|
1028
|
+
_host_index=_host_index
|
|
1029
|
+
)
|
|
1030
|
+
|
|
1031
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1032
|
+
'200': "EndpointSecretResponse",
|
|
1033
|
+
}
|
|
1034
|
+
response_data = await self.api_client.call_api(
|
|
1035
|
+
*_param,
|
|
1036
|
+
_request_timeout=_request_timeout
|
|
1037
|
+
)
|
|
1038
|
+
return response_data.response
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
def _get_endpoint_secret_serialize(
|
|
1042
|
+
self,
|
|
1043
|
+
id,
|
|
1044
|
+
_request_auth,
|
|
1045
|
+
_content_type,
|
|
1046
|
+
_headers,
|
|
1047
|
+
_host_index,
|
|
1048
|
+
) -> RequestSerialized:
|
|
1049
|
+
|
|
1050
|
+
_host = None
|
|
1051
|
+
|
|
1052
|
+
_collection_formats: Dict[str, str] = {
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
_path_params: Dict[str, str] = {}
|
|
1056
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1057
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1058
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1059
|
+
_files: Dict[
|
|
1060
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1061
|
+
] = {}
|
|
1062
|
+
_body_params: Optional[bytes] = None
|
|
1063
|
+
|
|
1064
|
+
# process the path parameters
|
|
1065
|
+
if id is not None:
|
|
1066
|
+
_path_params['id'] = id
|
|
1067
|
+
# process the query parameters
|
|
1068
|
+
# process the header parameters
|
|
1069
|
+
# process the form parameters
|
|
1070
|
+
# process the body parameter
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
# set the HTTP header `Accept`
|
|
1074
|
+
if 'Accept' not in _header_params:
|
|
1075
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1076
|
+
[
|
|
1077
|
+
'application/json'
|
|
1078
|
+
]
|
|
1079
|
+
)
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
# authentication setting
|
|
1083
|
+
_auth_settings: List[str] = [
|
|
1084
|
+
'bearer'
|
|
1085
|
+
]
|
|
1086
|
+
|
|
1087
|
+
return self.api_client.param_serialize(
|
|
1088
|
+
method='GET',
|
|
1089
|
+
resource_path='/v1/webhook/endpoint/{id}/secret',
|
|
1090
|
+
path_params=_path_params,
|
|
1091
|
+
query_params=_query_params,
|
|
1092
|
+
header_params=_header_params,
|
|
1093
|
+
body=_body_params,
|
|
1094
|
+
post_params=_form_params,
|
|
1095
|
+
files=_files,
|
|
1096
|
+
auth_settings=_auth_settings,
|
|
1097
|
+
collection_formats=_collection_formats,
|
|
1098
|
+
_host=_host,
|
|
1099
|
+
_request_auth=_request_auth
|
|
1100
|
+
)
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
@validate_call
|
|
1106
|
+
async def list_endpoints(
|
|
1107
|
+
self,
|
|
1108
|
+
limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="DTO.ENDPOINT.LIMIT")] = None,
|
|
1109
|
+
iterator: Annotated[Optional[StrictStr], Field(description="DTO.ENDPOINT.ITERATOR")] = None,
|
|
1110
|
+
order: Annotated[Optional[StrictStr], Field(description="DTO.ENDPOINT.ORDER")] = None,
|
|
1111
|
+
_request_timeout: Union[
|
|
1112
|
+
None,
|
|
1113
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1114
|
+
Tuple[
|
|
1115
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1116
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1117
|
+
]
|
|
1118
|
+
] = None,
|
|
1119
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1120
|
+
_content_type: Optional[StrictStr] = None,
|
|
1121
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1122
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1123
|
+
) -> EndpointListResponse:
|
|
1124
|
+
"""CONTROLLER.ENDPOINT.LIST.SUMMARY
|
|
1125
|
+
|
|
1126
|
+
CONTROLLER.ENDPOINT.LIST.DESCRIPTION
|
|
1127
|
+
|
|
1128
|
+
:param limit: DTO.ENDPOINT.LIMIT
|
|
1129
|
+
:type limit: int
|
|
1130
|
+
:param iterator: DTO.ENDPOINT.ITERATOR
|
|
1131
|
+
:type iterator: str
|
|
1132
|
+
:param order: DTO.ENDPOINT.ORDER
|
|
1133
|
+
:type order: str
|
|
1134
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1135
|
+
number provided, it will be total request
|
|
1136
|
+
timeout. It can also be a pair (tuple) of
|
|
1137
|
+
(connection, read) timeouts.
|
|
1138
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1139
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1140
|
+
request; this effectively ignores the
|
|
1141
|
+
authentication in the spec for a single request.
|
|
1142
|
+
:type _request_auth: dict, optional
|
|
1143
|
+
:param _content_type: force content-type for the request.
|
|
1144
|
+
:type _content_type: str, Optional
|
|
1145
|
+
:param _headers: set to override the headers for a single
|
|
1146
|
+
request; this effectively ignores the headers
|
|
1147
|
+
in the spec for a single request.
|
|
1148
|
+
:type _headers: dict, optional
|
|
1149
|
+
:param _host_index: set to override the host_index for a single
|
|
1150
|
+
request; this effectively ignores the host_index
|
|
1151
|
+
in the spec for a single request.
|
|
1152
|
+
:type _host_index: int, optional
|
|
1153
|
+
:return: Returns the result object.
|
|
1154
|
+
""" # noqa: E501
|
|
1155
|
+
|
|
1156
|
+
_param = self._list_endpoints_serialize(
|
|
1157
|
+
limit=limit,
|
|
1158
|
+
iterator=iterator,
|
|
1159
|
+
order=order,
|
|
1160
|
+
_request_auth=_request_auth,
|
|
1161
|
+
_content_type=_content_type,
|
|
1162
|
+
_headers=_headers,
|
|
1163
|
+
_host_index=_host_index
|
|
1164
|
+
)
|
|
1165
|
+
|
|
1166
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1167
|
+
'200': "EndpointListResponse",
|
|
1168
|
+
}
|
|
1169
|
+
response_data = await self.api_client.call_api(
|
|
1170
|
+
*_param,
|
|
1171
|
+
_request_timeout=_request_timeout
|
|
1172
|
+
)
|
|
1173
|
+
await response_data.read()
|
|
1174
|
+
return self.api_client.response_deserialize(
|
|
1175
|
+
response_data=response_data,
|
|
1176
|
+
response_types_map=_response_types_map,
|
|
1177
|
+
).data
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
@validate_call
|
|
1181
|
+
async def list_endpoints_with_http_info(
|
|
1182
|
+
self,
|
|
1183
|
+
limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="DTO.ENDPOINT.LIMIT")] = None,
|
|
1184
|
+
iterator: Annotated[Optional[StrictStr], Field(description="DTO.ENDPOINT.ITERATOR")] = None,
|
|
1185
|
+
order: Annotated[Optional[StrictStr], Field(description="DTO.ENDPOINT.ORDER")] = None,
|
|
1186
|
+
_request_timeout: Union[
|
|
1187
|
+
None,
|
|
1188
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1189
|
+
Tuple[
|
|
1190
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1191
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1192
|
+
]
|
|
1193
|
+
] = None,
|
|
1194
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1195
|
+
_content_type: Optional[StrictStr] = None,
|
|
1196
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1197
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1198
|
+
) -> ApiResponse[EndpointListResponse]:
|
|
1199
|
+
"""CONTROLLER.ENDPOINT.LIST.SUMMARY
|
|
1200
|
+
|
|
1201
|
+
CONTROLLER.ENDPOINT.LIST.DESCRIPTION
|
|
1202
|
+
|
|
1203
|
+
:param limit: DTO.ENDPOINT.LIMIT
|
|
1204
|
+
:type limit: int
|
|
1205
|
+
:param iterator: DTO.ENDPOINT.ITERATOR
|
|
1206
|
+
:type iterator: str
|
|
1207
|
+
:param order: DTO.ENDPOINT.ORDER
|
|
1208
|
+
:type order: str
|
|
1209
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1210
|
+
number provided, it will be total request
|
|
1211
|
+
timeout. It can also be a pair (tuple) of
|
|
1212
|
+
(connection, read) timeouts.
|
|
1213
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1214
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1215
|
+
request; this effectively ignores the
|
|
1216
|
+
authentication in the spec for a single request.
|
|
1217
|
+
:type _request_auth: dict, optional
|
|
1218
|
+
:param _content_type: force content-type for the request.
|
|
1219
|
+
:type _content_type: str, Optional
|
|
1220
|
+
:param _headers: set to override the headers for a single
|
|
1221
|
+
request; this effectively ignores the headers
|
|
1222
|
+
in the spec for a single request.
|
|
1223
|
+
:type _headers: dict, optional
|
|
1224
|
+
:param _host_index: set to override the host_index for a single
|
|
1225
|
+
request; this effectively ignores the host_index
|
|
1226
|
+
in the spec for a single request.
|
|
1227
|
+
:type _host_index: int, optional
|
|
1228
|
+
:return: Returns the result object.
|
|
1229
|
+
""" # noqa: E501
|
|
1230
|
+
|
|
1231
|
+
_param = self._list_endpoints_serialize(
|
|
1232
|
+
limit=limit,
|
|
1233
|
+
iterator=iterator,
|
|
1234
|
+
order=order,
|
|
1235
|
+
_request_auth=_request_auth,
|
|
1236
|
+
_content_type=_content_type,
|
|
1237
|
+
_headers=_headers,
|
|
1238
|
+
_host_index=_host_index
|
|
1239
|
+
)
|
|
1240
|
+
|
|
1241
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1242
|
+
'200': "EndpointListResponse",
|
|
1243
|
+
}
|
|
1244
|
+
response_data = await self.api_client.call_api(
|
|
1245
|
+
*_param,
|
|
1246
|
+
_request_timeout=_request_timeout
|
|
1247
|
+
)
|
|
1248
|
+
await response_data.read()
|
|
1249
|
+
return self.api_client.response_deserialize(
|
|
1250
|
+
response_data=response_data,
|
|
1251
|
+
response_types_map=_response_types_map,
|
|
1252
|
+
)
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
@validate_call
|
|
1256
|
+
async def list_endpoints_without_preload_content(
|
|
1257
|
+
self,
|
|
1258
|
+
limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="DTO.ENDPOINT.LIMIT")] = None,
|
|
1259
|
+
iterator: Annotated[Optional[StrictStr], Field(description="DTO.ENDPOINT.ITERATOR")] = None,
|
|
1260
|
+
order: Annotated[Optional[StrictStr], Field(description="DTO.ENDPOINT.ORDER")] = None,
|
|
1261
|
+
_request_timeout: Union[
|
|
1262
|
+
None,
|
|
1263
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1264
|
+
Tuple[
|
|
1265
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1266
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1267
|
+
]
|
|
1268
|
+
] = None,
|
|
1269
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1270
|
+
_content_type: Optional[StrictStr] = None,
|
|
1271
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1272
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1273
|
+
) -> RESTResponseType:
|
|
1274
|
+
"""CONTROLLER.ENDPOINT.LIST.SUMMARY
|
|
1275
|
+
|
|
1276
|
+
CONTROLLER.ENDPOINT.LIST.DESCRIPTION
|
|
1277
|
+
|
|
1278
|
+
:param limit: DTO.ENDPOINT.LIMIT
|
|
1279
|
+
:type limit: int
|
|
1280
|
+
:param iterator: DTO.ENDPOINT.ITERATOR
|
|
1281
|
+
:type iterator: str
|
|
1282
|
+
:param order: DTO.ENDPOINT.ORDER
|
|
1283
|
+
:type order: str
|
|
1284
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1285
|
+
number provided, it will be total request
|
|
1286
|
+
timeout. It can also be a pair (tuple) of
|
|
1287
|
+
(connection, read) timeouts.
|
|
1288
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1289
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1290
|
+
request; this effectively ignores the
|
|
1291
|
+
authentication in the spec for a single request.
|
|
1292
|
+
:type _request_auth: dict, optional
|
|
1293
|
+
:param _content_type: force content-type for the request.
|
|
1294
|
+
:type _content_type: str, Optional
|
|
1295
|
+
:param _headers: set to override the headers for a single
|
|
1296
|
+
request; this effectively ignores the headers
|
|
1297
|
+
in the spec for a single request.
|
|
1298
|
+
:type _headers: dict, optional
|
|
1299
|
+
:param _host_index: set to override the host_index for a single
|
|
1300
|
+
request; this effectively ignores the host_index
|
|
1301
|
+
in the spec for a single request.
|
|
1302
|
+
:type _host_index: int, optional
|
|
1303
|
+
:return: Returns the result object.
|
|
1304
|
+
""" # noqa: E501
|
|
1305
|
+
|
|
1306
|
+
_param = self._list_endpoints_serialize(
|
|
1307
|
+
limit=limit,
|
|
1308
|
+
iterator=iterator,
|
|
1309
|
+
order=order,
|
|
1310
|
+
_request_auth=_request_auth,
|
|
1311
|
+
_content_type=_content_type,
|
|
1312
|
+
_headers=_headers,
|
|
1313
|
+
_host_index=_host_index
|
|
1314
|
+
)
|
|
1315
|
+
|
|
1316
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1317
|
+
'200': "EndpointListResponse",
|
|
1318
|
+
}
|
|
1319
|
+
response_data = await self.api_client.call_api(
|
|
1320
|
+
*_param,
|
|
1321
|
+
_request_timeout=_request_timeout
|
|
1322
|
+
)
|
|
1323
|
+
return response_data.response
|
|
1324
|
+
|
|
1325
|
+
|
|
1326
|
+
def _list_endpoints_serialize(
|
|
1327
|
+
self,
|
|
1328
|
+
limit,
|
|
1329
|
+
iterator,
|
|
1330
|
+
order,
|
|
1331
|
+
_request_auth,
|
|
1332
|
+
_content_type,
|
|
1333
|
+
_headers,
|
|
1334
|
+
_host_index,
|
|
1335
|
+
) -> RequestSerialized:
|
|
1336
|
+
|
|
1337
|
+
_host = None
|
|
1338
|
+
|
|
1339
|
+
_collection_formats: Dict[str, str] = {
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
_path_params: Dict[str, str] = {}
|
|
1343
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1344
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1345
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1346
|
+
_files: Dict[
|
|
1347
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1348
|
+
] = {}
|
|
1349
|
+
_body_params: Optional[bytes] = None
|
|
1350
|
+
|
|
1351
|
+
# process the path parameters
|
|
1352
|
+
# process the query parameters
|
|
1353
|
+
if limit is not None:
|
|
1354
|
+
|
|
1355
|
+
_query_params.append(('limit', limit))
|
|
1356
|
+
|
|
1357
|
+
if iterator is not None:
|
|
1358
|
+
|
|
1359
|
+
_query_params.append(('iterator', iterator))
|
|
1360
|
+
|
|
1361
|
+
if order is not None:
|
|
1362
|
+
|
|
1363
|
+
_query_params.append(('order', order))
|
|
1364
|
+
|
|
1365
|
+
# process the header parameters
|
|
1366
|
+
# process the form parameters
|
|
1367
|
+
# process the body parameter
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
# set the HTTP header `Accept`
|
|
1371
|
+
if 'Accept' not in _header_params:
|
|
1372
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1373
|
+
[
|
|
1374
|
+
'application/json'
|
|
1375
|
+
]
|
|
1376
|
+
)
|
|
1377
|
+
|
|
1378
|
+
|
|
1379
|
+
# authentication setting
|
|
1380
|
+
_auth_settings: List[str] = [
|
|
1381
|
+
'bearer'
|
|
1382
|
+
]
|
|
1383
|
+
|
|
1384
|
+
return self.api_client.param_serialize(
|
|
1385
|
+
method='GET',
|
|
1386
|
+
resource_path='/v1/webhook/endpoint',
|
|
1387
|
+
path_params=_path_params,
|
|
1388
|
+
query_params=_query_params,
|
|
1389
|
+
header_params=_header_params,
|
|
1390
|
+
body=_body_params,
|
|
1391
|
+
post_params=_form_params,
|
|
1392
|
+
files=_files,
|
|
1393
|
+
auth_settings=_auth_settings,
|
|
1394
|
+
collection_formats=_collection_formats,
|
|
1395
|
+
_host=_host,
|
|
1396
|
+
_request_auth=_request_auth
|
|
1397
|
+
)
|
|
1398
|
+
|
|
1399
|
+
|
|
1400
|
+
|
|
1401
|
+
|
|
1402
|
+
@validate_call
|
|
1403
|
+
async def rotate_endpoint_secret(
|
|
1404
|
+
self,
|
|
1405
|
+
id: StrictStr,
|
|
1406
|
+
_request_timeout: Union[
|
|
1407
|
+
None,
|
|
1408
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1409
|
+
Tuple[
|
|
1410
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1411
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1412
|
+
]
|
|
1413
|
+
] = None,
|
|
1414
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1415
|
+
_content_type: Optional[StrictStr] = None,
|
|
1416
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1417
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1418
|
+
) -> EndpointOperationResponse:
|
|
1419
|
+
"""CONTROLLER.ENDPOINT.ROTATE.SUMMARY
|
|
1420
|
+
|
|
1421
|
+
CONTROLLER.ENDPOINT.ROTATE.DESCRIPTION
|
|
1422
|
+
|
|
1423
|
+
:param id: (required)
|
|
1424
|
+
:type id: str
|
|
1425
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1426
|
+
number provided, it will be total request
|
|
1427
|
+
timeout. It can also be a pair (tuple) of
|
|
1428
|
+
(connection, read) timeouts.
|
|
1429
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1430
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1431
|
+
request; this effectively ignores the
|
|
1432
|
+
authentication in the spec for a single request.
|
|
1433
|
+
:type _request_auth: dict, optional
|
|
1434
|
+
:param _content_type: force content-type for the request.
|
|
1435
|
+
:type _content_type: str, Optional
|
|
1436
|
+
:param _headers: set to override the headers for a single
|
|
1437
|
+
request; this effectively ignores the headers
|
|
1438
|
+
in the spec for a single request.
|
|
1439
|
+
:type _headers: dict, optional
|
|
1440
|
+
:param _host_index: set to override the host_index for a single
|
|
1441
|
+
request; this effectively ignores the host_index
|
|
1442
|
+
in the spec for a single request.
|
|
1443
|
+
:type _host_index: int, optional
|
|
1444
|
+
:return: Returns the result object.
|
|
1445
|
+
""" # noqa: E501
|
|
1446
|
+
|
|
1447
|
+
_param = self._rotate_endpoint_secret_serialize(
|
|
1448
|
+
id=id,
|
|
1449
|
+
_request_auth=_request_auth,
|
|
1450
|
+
_content_type=_content_type,
|
|
1451
|
+
_headers=_headers,
|
|
1452
|
+
_host_index=_host_index
|
|
1453
|
+
)
|
|
1454
|
+
|
|
1455
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1456
|
+
'200': "EndpointOperationResponse",
|
|
1457
|
+
}
|
|
1458
|
+
response_data = await self.api_client.call_api(
|
|
1459
|
+
*_param,
|
|
1460
|
+
_request_timeout=_request_timeout
|
|
1461
|
+
)
|
|
1462
|
+
await response_data.read()
|
|
1463
|
+
return self.api_client.response_deserialize(
|
|
1464
|
+
response_data=response_data,
|
|
1465
|
+
response_types_map=_response_types_map,
|
|
1466
|
+
).data
|
|
1467
|
+
|
|
1468
|
+
|
|
1469
|
+
@validate_call
|
|
1470
|
+
async def rotate_endpoint_secret_with_http_info(
|
|
1471
|
+
self,
|
|
1472
|
+
id: StrictStr,
|
|
1473
|
+
_request_timeout: Union[
|
|
1474
|
+
None,
|
|
1475
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1476
|
+
Tuple[
|
|
1477
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1478
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1479
|
+
]
|
|
1480
|
+
] = None,
|
|
1481
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1482
|
+
_content_type: Optional[StrictStr] = None,
|
|
1483
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1484
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1485
|
+
) -> ApiResponse[EndpointOperationResponse]:
|
|
1486
|
+
"""CONTROLLER.ENDPOINT.ROTATE.SUMMARY
|
|
1487
|
+
|
|
1488
|
+
CONTROLLER.ENDPOINT.ROTATE.DESCRIPTION
|
|
1489
|
+
|
|
1490
|
+
:param id: (required)
|
|
1491
|
+
:type id: str
|
|
1492
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1493
|
+
number provided, it will be total request
|
|
1494
|
+
timeout. It can also be a pair (tuple) of
|
|
1495
|
+
(connection, read) timeouts.
|
|
1496
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1497
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1498
|
+
request; this effectively ignores the
|
|
1499
|
+
authentication in the spec for a single request.
|
|
1500
|
+
:type _request_auth: dict, optional
|
|
1501
|
+
:param _content_type: force content-type for the request.
|
|
1502
|
+
:type _content_type: str, Optional
|
|
1503
|
+
:param _headers: set to override the headers for a single
|
|
1504
|
+
request; this effectively ignores the headers
|
|
1505
|
+
in the spec for a single request.
|
|
1506
|
+
:type _headers: dict, optional
|
|
1507
|
+
:param _host_index: set to override the host_index for a single
|
|
1508
|
+
request; this effectively ignores the host_index
|
|
1509
|
+
in the spec for a single request.
|
|
1510
|
+
:type _host_index: int, optional
|
|
1511
|
+
:return: Returns the result object.
|
|
1512
|
+
""" # noqa: E501
|
|
1513
|
+
|
|
1514
|
+
_param = self._rotate_endpoint_secret_serialize(
|
|
1515
|
+
id=id,
|
|
1516
|
+
_request_auth=_request_auth,
|
|
1517
|
+
_content_type=_content_type,
|
|
1518
|
+
_headers=_headers,
|
|
1519
|
+
_host_index=_host_index
|
|
1520
|
+
)
|
|
1521
|
+
|
|
1522
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1523
|
+
'200': "EndpointOperationResponse",
|
|
1524
|
+
}
|
|
1525
|
+
response_data = await self.api_client.call_api(
|
|
1526
|
+
*_param,
|
|
1527
|
+
_request_timeout=_request_timeout
|
|
1528
|
+
)
|
|
1529
|
+
await response_data.read()
|
|
1530
|
+
return self.api_client.response_deserialize(
|
|
1531
|
+
response_data=response_data,
|
|
1532
|
+
response_types_map=_response_types_map,
|
|
1533
|
+
)
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
@validate_call
|
|
1537
|
+
async def rotate_endpoint_secret_without_preload_content(
|
|
1538
|
+
self,
|
|
1539
|
+
id: StrictStr,
|
|
1540
|
+
_request_timeout: Union[
|
|
1541
|
+
None,
|
|
1542
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1543
|
+
Tuple[
|
|
1544
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1545
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1546
|
+
]
|
|
1547
|
+
] = None,
|
|
1548
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1549
|
+
_content_type: Optional[StrictStr] = None,
|
|
1550
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1551
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1552
|
+
) -> RESTResponseType:
|
|
1553
|
+
"""CONTROLLER.ENDPOINT.ROTATE.SUMMARY
|
|
1554
|
+
|
|
1555
|
+
CONTROLLER.ENDPOINT.ROTATE.DESCRIPTION
|
|
1556
|
+
|
|
1557
|
+
:param id: (required)
|
|
1558
|
+
:type id: str
|
|
1559
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1560
|
+
number provided, it will be total request
|
|
1561
|
+
timeout. It can also be a pair (tuple) of
|
|
1562
|
+
(connection, read) timeouts.
|
|
1563
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1564
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1565
|
+
request; this effectively ignores the
|
|
1566
|
+
authentication in the spec for a single request.
|
|
1567
|
+
:type _request_auth: dict, optional
|
|
1568
|
+
:param _content_type: force content-type for the request.
|
|
1569
|
+
:type _content_type: str, Optional
|
|
1570
|
+
:param _headers: set to override the headers for a single
|
|
1571
|
+
request; this effectively ignores the headers
|
|
1572
|
+
in the spec for a single request.
|
|
1573
|
+
:type _headers: dict, optional
|
|
1574
|
+
:param _host_index: set to override the host_index for a single
|
|
1575
|
+
request; this effectively ignores the host_index
|
|
1576
|
+
in the spec for a single request.
|
|
1577
|
+
:type _host_index: int, optional
|
|
1578
|
+
:return: Returns the result object.
|
|
1579
|
+
""" # noqa: E501
|
|
1580
|
+
|
|
1581
|
+
_param = self._rotate_endpoint_secret_serialize(
|
|
1582
|
+
id=id,
|
|
1583
|
+
_request_auth=_request_auth,
|
|
1584
|
+
_content_type=_content_type,
|
|
1585
|
+
_headers=_headers,
|
|
1586
|
+
_host_index=_host_index
|
|
1587
|
+
)
|
|
1588
|
+
|
|
1589
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1590
|
+
'200': "EndpointOperationResponse",
|
|
1591
|
+
}
|
|
1592
|
+
response_data = await self.api_client.call_api(
|
|
1593
|
+
*_param,
|
|
1594
|
+
_request_timeout=_request_timeout
|
|
1595
|
+
)
|
|
1596
|
+
return response_data.response
|
|
1597
|
+
|
|
1598
|
+
|
|
1599
|
+
def _rotate_endpoint_secret_serialize(
|
|
1600
|
+
self,
|
|
1601
|
+
id,
|
|
1602
|
+
_request_auth,
|
|
1603
|
+
_content_type,
|
|
1604
|
+
_headers,
|
|
1605
|
+
_host_index,
|
|
1606
|
+
) -> RequestSerialized:
|
|
1607
|
+
|
|
1608
|
+
_host = None
|
|
1609
|
+
|
|
1610
|
+
_collection_formats: Dict[str, str] = {
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
_path_params: Dict[str, str] = {}
|
|
1614
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1615
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1616
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1617
|
+
_files: Dict[
|
|
1618
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1619
|
+
] = {}
|
|
1620
|
+
_body_params: Optional[bytes] = None
|
|
1621
|
+
|
|
1622
|
+
# process the path parameters
|
|
1623
|
+
if id is not None:
|
|
1624
|
+
_path_params['id'] = id
|
|
1625
|
+
# process the query parameters
|
|
1626
|
+
# process the header parameters
|
|
1627
|
+
# process the form parameters
|
|
1628
|
+
# process the body parameter
|
|
1629
|
+
|
|
1630
|
+
|
|
1631
|
+
# set the HTTP header `Accept`
|
|
1632
|
+
if 'Accept' not in _header_params:
|
|
1633
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1634
|
+
[
|
|
1635
|
+
'application/json'
|
|
1636
|
+
]
|
|
1637
|
+
)
|
|
1638
|
+
|
|
1639
|
+
|
|
1640
|
+
# authentication setting
|
|
1641
|
+
_auth_settings: List[str] = [
|
|
1642
|
+
'bearer'
|
|
1643
|
+
]
|
|
1644
|
+
|
|
1645
|
+
return self.api_client.param_serialize(
|
|
1646
|
+
method='POST',
|
|
1647
|
+
resource_path='/v1/webhook/endpoint/{id}/secret/rotate',
|
|
1648
|
+
path_params=_path_params,
|
|
1649
|
+
query_params=_query_params,
|
|
1650
|
+
header_params=_header_params,
|
|
1651
|
+
body=_body_params,
|
|
1652
|
+
post_params=_form_params,
|
|
1653
|
+
files=_files,
|
|
1654
|
+
auth_settings=_auth_settings,
|
|
1655
|
+
collection_formats=_collection_formats,
|
|
1656
|
+
_host=_host,
|
|
1657
|
+
_request_auth=_request_auth
|
|
1658
|
+
)
|
|
1659
|
+
|
|
1660
|
+
|
|
1661
|
+
|
|
1662
|
+
|
|
1663
|
+
@validate_call
|
|
1664
|
+
async def update_endpoint(
|
|
1665
|
+
self,
|
|
1666
|
+
update_endpoint_input: UpdateEndpointInput,
|
|
1667
|
+
_request_timeout: Union[
|
|
1668
|
+
None,
|
|
1669
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1670
|
+
Tuple[
|
|
1671
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1672
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1673
|
+
]
|
|
1674
|
+
] = None,
|
|
1675
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1676
|
+
_content_type: Optional[StrictStr] = None,
|
|
1677
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1678
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1679
|
+
) -> EndpointResponse:
|
|
1680
|
+
"""CONTROLLER.ENDPOINT.UPDATE.SUMMARY
|
|
1681
|
+
|
|
1682
|
+
CONTROLLER.ENDPOINT.UPDATE.DESCRIPTION
|
|
1683
|
+
|
|
1684
|
+
:param update_endpoint_input: (required)
|
|
1685
|
+
:type update_endpoint_input: UpdateEndpointInput
|
|
1686
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1687
|
+
number provided, it will be total request
|
|
1688
|
+
timeout. It can also be a pair (tuple) of
|
|
1689
|
+
(connection, read) timeouts.
|
|
1690
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1691
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1692
|
+
request; this effectively ignores the
|
|
1693
|
+
authentication in the spec for a single request.
|
|
1694
|
+
:type _request_auth: dict, optional
|
|
1695
|
+
:param _content_type: force content-type for the request.
|
|
1696
|
+
:type _content_type: str, Optional
|
|
1697
|
+
:param _headers: set to override the headers for a single
|
|
1698
|
+
request; this effectively ignores the headers
|
|
1699
|
+
in the spec for a single request.
|
|
1700
|
+
:type _headers: dict, optional
|
|
1701
|
+
:param _host_index: set to override the host_index for a single
|
|
1702
|
+
request; this effectively ignores the host_index
|
|
1703
|
+
in the spec for a single request.
|
|
1704
|
+
:type _host_index: int, optional
|
|
1705
|
+
:return: Returns the result object.
|
|
1706
|
+
""" # noqa: E501
|
|
1707
|
+
|
|
1708
|
+
_param = self._update_endpoint_serialize(
|
|
1709
|
+
update_endpoint_input=update_endpoint_input,
|
|
1710
|
+
_request_auth=_request_auth,
|
|
1711
|
+
_content_type=_content_type,
|
|
1712
|
+
_headers=_headers,
|
|
1713
|
+
_host_index=_host_index
|
|
1714
|
+
)
|
|
1715
|
+
|
|
1716
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1717
|
+
'200': "EndpointResponse",
|
|
1718
|
+
}
|
|
1719
|
+
response_data = await self.api_client.call_api(
|
|
1720
|
+
*_param,
|
|
1721
|
+
_request_timeout=_request_timeout
|
|
1722
|
+
)
|
|
1723
|
+
await response_data.read()
|
|
1724
|
+
return self.api_client.response_deserialize(
|
|
1725
|
+
response_data=response_data,
|
|
1726
|
+
response_types_map=_response_types_map,
|
|
1727
|
+
).data
|
|
1728
|
+
|
|
1729
|
+
|
|
1730
|
+
@validate_call
|
|
1731
|
+
async def update_endpoint_with_http_info(
|
|
1732
|
+
self,
|
|
1733
|
+
update_endpoint_input: UpdateEndpointInput,
|
|
1734
|
+
_request_timeout: Union[
|
|
1735
|
+
None,
|
|
1736
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1737
|
+
Tuple[
|
|
1738
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1739
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1740
|
+
]
|
|
1741
|
+
] = None,
|
|
1742
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1743
|
+
_content_type: Optional[StrictStr] = None,
|
|
1744
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1745
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1746
|
+
) -> ApiResponse[EndpointResponse]:
|
|
1747
|
+
"""CONTROLLER.ENDPOINT.UPDATE.SUMMARY
|
|
1748
|
+
|
|
1749
|
+
CONTROLLER.ENDPOINT.UPDATE.DESCRIPTION
|
|
1750
|
+
|
|
1751
|
+
:param update_endpoint_input: (required)
|
|
1752
|
+
:type update_endpoint_input: UpdateEndpointInput
|
|
1753
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1754
|
+
number provided, it will be total request
|
|
1755
|
+
timeout. It can also be a pair (tuple) of
|
|
1756
|
+
(connection, read) timeouts.
|
|
1757
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1758
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1759
|
+
request; this effectively ignores the
|
|
1760
|
+
authentication in the spec for a single request.
|
|
1761
|
+
:type _request_auth: dict, optional
|
|
1762
|
+
:param _content_type: force content-type for the request.
|
|
1763
|
+
:type _content_type: str, Optional
|
|
1764
|
+
:param _headers: set to override the headers for a single
|
|
1765
|
+
request; this effectively ignores the headers
|
|
1766
|
+
in the spec for a single request.
|
|
1767
|
+
:type _headers: dict, optional
|
|
1768
|
+
:param _host_index: set to override the host_index for a single
|
|
1769
|
+
request; this effectively ignores the host_index
|
|
1770
|
+
in the spec for a single request.
|
|
1771
|
+
:type _host_index: int, optional
|
|
1772
|
+
:return: Returns the result object.
|
|
1773
|
+
""" # noqa: E501
|
|
1774
|
+
|
|
1775
|
+
_param = self._update_endpoint_serialize(
|
|
1776
|
+
update_endpoint_input=update_endpoint_input,
|
|
1777
|
+
_request_auth=_request_auth,
|
|
1778
|
+
_content_type=_content_type,
|
|
1779
|
+
_headers=_headers,
|
|
1780
|
+
_host_index=_host_index
|
|
1781
|
+
)
|
|
1782
|
+
|
|
1783
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1784
|
+
'200': "EndpointResponse",
|
|
1785
|
+
}
|
|
1786
|
+
response_data = await self.api_client.call_api(
|
|
1787
|
+
*_param,
|
|
1788
|
+
_request_timeout=_request_timeout
|
|
1789
|
+
)
|
|
1790
|
+
await response_data.read()
|
|
1791
|
+
return self.api_client.response_deserialize(
|
|
1792
|
+
response_data=response_data,
|
|
1793
|
+
response_types_map=_response_types_map,
|
|
1794
|
+
)
|
|
1795
|
+
|
|
1796
|
+
|
|
1797
|
+
@validate_call
|
|
1798
|
+
async def update_endpoint_without_preload_content(
|
|
1799
|
+
self,
|
|
1800
|
+
update_endpoint_input: UpdateEndpointInput,
|
|
1801
|
+
_request_timeout: Union[
|
|
1802
|
+
None,
|
|
1803
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1804
|
+
Tuple[
|
|
1805
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1806
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1807
|
+
]
|
|
1808
|
+
] = None,
|
|
1809
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1810
|
+
_content_type: Optional[StrictStr] = None,
|
|
1811
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1812
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1813
|
+
) -> RESTResponseType:
|
|
1814
|
+
"""CONTROLLER.ENDPOINT.UPDATE.SUMMARY
|
|
1815
|
+
|
|
1816
|
+
CONTROLLER.ENDPOINT.UPDATE.DESCRIPTION
|
|
1817
|
+
|
|
1818
|
+
:param update_endpoint_input: (required)
|
|
1819
|
+
:type update_endpoint_input: UpdateEndpointInput
|
|
1820
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1821
|
+
number provided, it will be total request
|
|
1822
|
+
timeout. It can also be a pair (tuple) of
|
|
1823
|
+
(connection, read) timeouts.
|
|
1824
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1825
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1826
|
+
request; this effectively ignores the
|
|
1827
|
+
authentication in the spec for a single request.
|
|
1828
|
+
:type _request_auth: dict, optional
|
|
1829
|
+
:param _content_type: force content-type for the request.
|
|
1830
|
+
:type _content_type: str, Optional
|
|
1831
|
+
:param _headers: set to override the headers for a single
|
|
1832
|
+
request; this effectively ignores the headers
|
|
1833
|
+
in the spec for a single request.
|
|
1834
|
+
:type _headers: dict, optional
|
|
1835
|
+
:param _host_index: set to override the host_index for a single
|
|
1836
|
+
request; this effectively ignores the host_index
|
|
1837
|
+
in the spec for a single request.
|
|
1838
|
+
:type _host_index: int, optional
|
|
1839
|
+
:return: Returns the result object.
|
|
1840
|
+
""" # noqa: E501
|
|
1841
|
+
|
|
1842
|
+
_param = self._update_endpoint_serialize(
|
|
1843
|
+
update_endpoint_input=update_endpoint_input,
|
|
1844
|
+
_request_auth=_request_auth,
|
|
1845
|
+
_content_type=_content_type,
|
|
1846
|
+
_headers=_headers,
|
|
1847
|
+
_host_index=_host_index
|
|
1848
|
+
)
|
|
1849
|
+
|
|
1850
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1851
|
+
'200': "EndpointResponse",
|
|
1852
|
+
}
|
|
1853
|
+
response_data = await self.api_client.call_api(
|
|
1854
|
+
*_param,
|
|
1855
|
+
_request_timeout=_request_timeout
|
|
1856
|
+
)
|
|
1857
|
+
return response_data.response
|
|
1858
|
+
|
|
1859
|
+
|
|
1860
|
+
def _update_endpoint_serialize(
|
|
1861
|
+
self,
|
|
1862
|
+
update_endpoint_input,
|
|
1863
|
+
_request_auth,
|
|
1864
|
+
_content_type,
|
|
1865
|
+
_headers,
|
|
1866
|
+
_host_index,
|
|
1867
|
+
) -> RequestSerialized:
|
|
1868
|
+
|
|
1869
|
+
_host = None
|
|
1870
|
+
|
|
1871
|
+
_collection_formats: Dict[str, str] = {
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
_path_params: Dict[str, str] = {}
|
|
1875
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1876
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1877
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1878
|
+
_files: Dict[
|
|
1879
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1880
|
+
] = {}
|
|
1881
|
+
_body_params: Optional[bytes] = None
|
|
1882
|
+
|
|
1883
|
+
# process the path parameters
|
|
1884
|
+
# process the query parameters
|
|
1885
|
+
# process the header parameters
|
|
1886
|
+
# process the form parameters
|
|
1887
|
+
# process the body parameter
|
|
1888
|
+
if update_endpoint_input is not None:
|
|
1889
|
+
_body_params = update_endpoint_input
|
|
1890
|
+
|
|
1891
|
+
|
|
1892
|
+
# set the HTTP header `Accept`
|
|
1893
|
+
if 'Accept' not in _header_params:
|
|
1894
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1895
|
+
[
|
|
1896
|
+
'application/json'
|
|
1897
|
+
]
|
|
1898
|
+
)
|
|
1899
|
+
|
|
1900
|
+
# set the HTTP header `Content-Type`
|
|
1901
|
+
if _content_type:
|
|
1902
|
+
_header_params['Content-Type'] = _content_type
|
|
1903
|
+
else:
|
|
1904
|
+
_default_content_type = (
|
|
1905
|
+
self.api_client.select_header_content_type(
|
|
1906
|
+
[
|
|
1907
|
+
'application/json'
|
|
1908
|
+
]
|
|
1909
|
+
)
|
|
1910
|
+
)
|
|
1911
|
+
if _default_content_type is not None:
|
|
1912
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1913
|
+
|
|
1914
|
+
# authentication setting
|
|
1915
|
+
_auth_settings: List[str] = [
|
|
1916
|
+
'bearer'
|
|
1917
|
+
]
|
|
1918
|
+
|
|
1919
|
+
return self.api_client.param_serialize(
|
|
1920
|
+
method='PATCH',
|
|
1921
|
+
resource_path='/v1/webhook/endpoint',
|
|
1922
|
+
path_params=_path_params,
|
|
1923
|
+
query_params=_query_params,
|
|
1924
|
+
header_params=_header_params,
|
|
1925
|
+
body=_body_params,
|
|
1926
|
+
post_params=_form_params,
|
|
1927
|
+
files=_files,
|
|
1928
|
+
auth_settings=_auth_settings,
|
|
1929
|
+
collection_formats=_collection_formats,
|
|
1930
|
+
_host=_host,
|
|
1931
|
+
_request_auth=_request_auth
|
|
1932
|
+
)
|
|
1933
|
+
|
|
1934
|
+
|