MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / WebhooksApi

Class WebhooksApi

sdks/python/src/e2a/v1/generated/api/webhooks_api.py:37–2224  ·  view source on GitHub ↗

NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually.

Source from the content-addressed store, hash-verified

35
36
37class WebhooksApi:
38 """NOTE: This class is auto generated by OpenAPI Generator
39 Ref: https://openapi-generator.tech
40
41 Do not edit the class manually.
42 """
43
44 def __init__(self, api_client=None) -> None:
45 if api_client is None:
46 api_client = ApiClient.get_default()
47 self.api_client = api_client
48
49
50 @validate_call
51 async def create_webhook(
52 self,
53 create_webhook_request: CreateWebhookRequest,
54 _request_timeout: Union[
55 None,
56 Annotated[StrictFloat, Field(gt=0)],
57 Tuple[
58 Annotated[StrictFloat, Field(gt=0)],
59 Annotated[StrictFloat, Field(gt=0)]
60 ]
61 ] = None,
62 _request_auth: Optional[Dict[StrictStr, Any]] = None,
63 _content_type: Optional[StrictStr] = None,
64 _headers: Optional[Dict[StrictStr, Any]] = None,
65 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
66 ) -> CreateWebhookResponse:
67 """Create a webhook
68
69
70 :param create_webhook_request: (required)
71 :type create_webhook_request: CreateWebhookRequest
72 :param _request_timeout: timeout setting for this request. If one
73 number provided, it will be total request
74 timeout. It can also be a pair (tuple) of
75 (connection, read) timeouts.
76 :type _request_timeout: int, tuple(int, int), optional
77 :param _request_auth: set to override the auth_settings for an a single
78 request; this effectively ignores the
79 authentication in the spec for a single request.
80 :type _request_auth: dict, optional
81 :param _content_type: force content-type for the request.
82 :type _content_type: str, Optional
83 :param _headers: set to override the headers for a single
84 request; this effectively ignores the headers
85 in the spec for a single request.
86 :type _headers: dict, optional
87 :param _host_index: set to override the host_index for a single
88 request; this effectively ignores the host_index
89 in the spec for a single request.
90 :type _host_index: int, optional
91 :return: Returns the result object.
92 """ # noqa: E501
93
94 _param = self._create_webhook_serialize(

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected