4343 AsyncGoogleCalendarResourceWithStreamingResponse ,
4444)
4545from ...types .integration_list_response import IntegrationListResponse
46- from ...types .integration_revoke_response import IntegrationRevokeResponse
4746from ...types .integration_connect_response import IntegrationConnectResponse
4847
4948__all__ = ["IntegrationsResource" , "AsyncIntegrationsResource" ]
@@ -140,40 +139,6 @@ def connect(
140139 cast_to = IntegrationConnectResponse ,
141140 )
142141
143- def revoke (
144- self ,
145- integration_id : str ,
146- * ,
147- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
148- # The extra values given here take precedence over values defined on the client or passed to this method.
149- extra_headers : Headers | None = None ,
150- extra_query : Query | None = None ,
151- extra_body : Body | None = None ,
152- timeout : float | httpx .Timeout | None | NotGiven = not_given ,
153- ) -> IntegrationRevokeResponse :
154- """
155- Revokes Hyperspell's access the given provider and deletes all stored
156- credentials and indexed data.
157-
158- Args:
159- extra_headers: Send extra headers
160-
161- extra_query: Add additional query parameters to the request
162-
163- extra_body: Add additional JSON properties to the request
164-
165- timeout: Override the client-level default timeout for this request, in seconds
166- """
167- if not integration_id :
168- raise ValueError (f"Expected a non-empty value for `integration_id` but received { integration_id !r} " )
169- return self ._get (
170- f"/integrations/{ integration_id } /revoke" ,
171- options = make_request_options (
172- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
173- ),
174- cast_to = IntegrationRevokeResponse ,
175- )
176-
177142
178143class AsyncIntegrationsResource (AsyncAPIResource ):
179144 @cached_property
@@ -266,40 +231,6 @@ async def connect(
266231 cast_to = IntegrationConnectResponse ,
267232 )
268233
269- async def revoke (
270- self ,
271- integration_id : str ,
272- * ,
273- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
274- # The extra values given here take precedence over values defined on the client or passed to this method.
275- extra_headers : Headers | None = None ,
276- extra_query : Query | None = None ,
277- extra_body : Body | None = None ,
278- timeout : float | httpx .Timeout | None | NotGiven = not_given ,
279- ) -> IntegrationRevokeResponse :
280- """
281- Revokes Hyperspell's access the given provider and deletes all stored
282- credentials and indexed data.
283-
284- Args:
285- extra_headers: Send extra headers
286-
287- extra_query: Add additional query parameters to the request
288-
289- extra_body: Add additional JSON properties to the request
290-
291- timeout: Override the client-level default timeout for this request, in seconds
292- """
293- if not integration_id :
294- raise ValueError (f"Expected a non-empty value for `integration_id` but received { integration_id !r} " )
295- return await self ._get (
296- f"/integrations/{ integration_id } /revoke" ,
297- options = make_request_options (
298- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
299- ),
300- cast_to = IntegrationRevokeResponse ,
301- )
302-
303234
304235class IntegrationsResourceWithRawResponse :
305236 def __init__ (self , integrations : IntegrationsResource ) -> None :
@@ -311,9 +242,6 @@ def __init__(self, integrations: IntegrationsResource) -> None:
311242 self .connect = to_raw_response_wrapper (
312243 integrations .connect ,
313244 )
314- self .revoke = to_raw_response_wrapper (
315- integrations .revoke ,
316- )
317245
318246 @cached_property
319247 def google_calendar (self ) -> GoogleCalendarResourceWithRawResponse :
@@ -338,9 +266,6 @@ def __init__(self, integrations: AsyncIntegrationsResource) -> None:
338266 self .connect = async_to_raw_response_wrapper (
339267 integrations .connect ,
340268 )
341- self .revoke = async_to_raw_response_wrapper (
342- integrations .revoke ,
343- )
344269
345270 @cached_property
346271 def google_calendar (self ) -> AsyncGoogleCalendarResourceWithRawResponse :
@@ -365,9 +290,6 @@ def __init__(self, integrations: IntegrationsResource) -> None:
365290 self .connect = to_streamed_response_wrapper (
366291 integrations .connect ,
367292 )
368- self .revoke = to_streamed_response_wrapper (
369- integrations .revoke ,
370- )
371293
372294 @cached_property
373295 def google_calendar (self ) -> GoogleCalendarResourceWithStreamingResponse :
@@ -392,9 +314,6 @@ def __init__(self, integrations: AsyncIntegrationsResource) -> None:
392314 self .connect = async_to_streamed_response_wrapper (
393315 integrations .connect ,
394316 )
395- self .revoke = async_to_streamed_response_wrapper (
396- integrations .revoke ,
397- )
398317
399318 @cached_property
400319 def google_calendar (self ) -> AsyncGoogleCalendarResourceWithStreamingResponse :
0 commit comments