3
3
from __future__ import annotations
4
4
5
5
from typing import Type , Optional , cast
6
- from typing_extensions import Literal
7
6
8
7
import httpx
9
8
21
20
async_to_streamed_response_wrapper ,
22
21
)
23
22
from ..._wrappers import ResultWrapper
24
- from ...types .acm import total_tls_create_params
23
+ from ...types .acm import TotalTLSCertificateAuthority , total_tls_create_params
25
24
from ..._base_client import (
26
25
make_request_options ,
27
26
)
28
27
from ...types .acm .total_tls_get_response import TotalTLSGetResponse
29
28
from ...types .acm .total_tls_create_response import TotalTLSCreateResponse
29
+ from ...types .acm .total_tls_certificate_authority import TotalTLSCertificateAuthority
30
30
31
31
__all__ = ["TotalTLSResource" , "AsyncTotalTLSResource" ]
32
32
@@ -45,7 +45,7 @@ def create(
45
45
* ,
46
46
zone_id : str ,
47
47
enabled : bool ,
48
- certificate_authority : Literal [ "google" , "lets_encrypt" ] | NotGiven = NOT_GIVEN ,
48
+ certificate_authority : TotalTLSCertificateAuthority | NotGiven = NOT_GIVEN ,
49
49
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
50
50
# The extra values given here take precedence over values defined on the client or passed to this method.
51
51
extra_headers : Headers | None = None ,
@@ -147,7 +147,7 @@ async def create(
147
147
* ,
148
148
zone_id : str ,
149
149
enabled : bool ,
150
- certificate_authority : Literal [ "google" , "lets_encrypt" ] | NotGiven = NOT_GIVEN ,
150
+ certificate_authority : TotalTLSCertificateAuthority | NotGiven = NOT_GIVEN ,
151
151
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
152
152
# The extra values given here take precedence over values defined on the client or passed to this method.
153
153
extra_headers : Headers | None = None ,
0 commit comments