2
2
3
3
from __future__ import annotations
4
4
5
- from typing import Type , cast
5
+ from typing import Type , Optional , cast
6
6
7
7
import httpx
8
8
@@ -55,7 +55,7 @@ def update(
55
55
extra_query : Query | None = None ,
56
56
extra_body : Body | None = None ,
57
57
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
58
- ) -> ConfigurationUpdateResponse :
58
+ ) -> Optional [ ConfigurationUpdateResponse ] :
59
59
"""
60
60
Updates the current Zero Trust account configuration.
61
61
@@ -82,7 +82,7 @@ def update(
82
82
timeout = timeout ,
83
83
post_parser = ResultWrapper ._unwrapper ,
84
84
),
85
- cast_to = cast (Type [ConfigurationUpdateResponse ], ResultWrapper [ConfigurationUpdateResponse ]),
85
+ cast_to = cast (Type [Optional [ ConfigurationUpdateResponse ] ], ResultWrapper [ConfigurationUpdateResponse ]),
86
86
)
87
87
88
88
def edit (
@@ -96,7 +96,7 @@ def edit(
96
96
extra_query : Query | None = None ,
97
97
extra_body : Body | None = None ,
98
98
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
99
- ) -> ConfigurationEditResponse :
99
+ ) -> Optional [ ConfigurationEditResponse ] :
100
100
"""Patches the current Zero Trust account configuration.
101
101
102
102
This endpoint can update a
@@ -128,7 +128,7 @@ def edit(
128
128
timeout = timeout ,
129
129
post_parser = ResultWrapper ._unwrapper ,
130
130
),
131
- cast_to = cast (Type [ConfigurationEditResponse ], ResultWrapper [ConfigurationEditResponse ]),
131
+ cast_to = cast (Type [Optional [ ConfigurationEditResponse ] ], ResultWrapper [ConfigurationEditResponse ]),
132
132
)
133
133
134
134
def get (
@@ -141,7 +141,7 @@ def get(
141
141
extra_query : Query | None = None ,
142
142
extra_body : Body | None = None ,
143
143
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
144
- ) -> ConfigurationGetResponse :
144
+ ) -> Optional [ ConfigurationGetResponse ] :
145
145
"""
146
146
Fetches the current Zero Trust account configuration.
147
147
@@ -165,7 +165,7 @@ def get(
165
165
timeout = timeout ,
166
166
post_parser = ResultWrapper ._unwrapper ,
167
167
),
168
- cast_to = cast (Type [ConfigurationGetResponse ], ResultWrapper [ConfigurationGetResponse ]),
168
+ cast_to = cast (Type [Optional [ ConfigurationGetResponse ] ], ResultWrapper [ConfigurationGetResponse ]),
169
169
)
170
170
171
171
@@ -189,7 +189,7 @@ async def update(
189
189
extra_query : Query | None = None ,
190
190
extra_body : Body | None = None ,
191
191
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
192
- ) -> ConfigurationUpdateResponse :
192
+ ) -> Optional [ ConfigurationUpdateResponse ] :
193
193
"""
194
194
Updates the current Zero Trust account configuration.
195
195
@@ -218,7 +218,7 @@ async def update(
218
218
timeout = timeout ,
219
219
post_parser = ResultWrapper ._unwrapper ,
220
220
),
221
- cast_to = cast (Type [ConfigurationUpdateResponse ], ResultWrapper [ConfigurationUpdateResponse ]),
221
+ cast_to = cast (Type [Optional [ ConfigurationUpdateResponse ] ], ResultWrapper [ConfigurationUpdateResponse ]),
222
222
)
223
223
224
224
async def edit (
@@ -232,7 +232,7 @@ async def edit(
232
232
extra_query : Query | None = None ,
233
233
extra_body : Body | None = None ,
234
234
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
235
- ) -> ConfigurationEditResponse :
235
+ ) -> Optional [ ConfigurationEditResponse ] :
236
236
"""Patches the current Zero Trust account configuration.
237
237
238
238
This endpoint can update a
@@ -264,7 +264,7 @@ async def edit(
264
264
timeout = timeout ,
265
265
post_parser = ResultWrapper ._unwrapper ,
266
266
),
267
- cast_to = cast (Type [ConfigurationEditResponse ], ResultWrapper [ConfigurationEditResponse ]),
267
+ cast_to = cast (Type [Optional [ ConfigurationEditResponse ] ], ResultWrapper [ConfigurationEditResponse ]),
268
268
)
269
269
270
270
async def get (
@@ -277,7 +277,7 @@ async def get(
277
277
extra_query : Query | None = None ,
278
278
extra_body : Body | None = None ,
279
279
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
280
- ) -> ConfigurationGetResponse :
280
+ ) -> Optional [ ConfigurationGetResponse ] :
281
281
"""
282
282
Fetches the current Zero Trust account configuration.
283
283
@@ -301,7 +301,7 @@ async def get(
301
301
timeout = timeout ,
302
302
post_parser = ResultWrapper ._unwrapper ,
303
303
),
304
- cast_to = cast (Type [ConfigurationGetResponse ], ResultWrapper [ConfigurationGetResponse ]),
304
+ cast_to = cast (Type [Optional [ ConfigurationGetResponse ] ], ResultWrapper [ConfigurationGetResponse ]),
305
305
)
306
306
307
307
0 commit comments