| 1988 | return await self.request(cast_to, opts) |
| 1989 | |
| 1990 | async def delete( |
| 1991 | self, |
| 1992 | path: str, |
| 1993 | *, |
| 1994 | cast_to: Type[ResponseT], |
| 1995 | body: Body | None = None, |
| 1996 | content: AsyncBinaryTypes | None = None, |
| 1997 | options: RequestOptions = {}, |
| 1998 | ) -> ResponseT: |
| 1999 | if body is not None and content is not None: |
| 2000 | raise TypeError(class="st">"Passing both `body` and `content` is not supported") |
| 2001 | if isinstance(body, bytes): |
| 2002 | warnings.warn( |
| 2003 | class="st">"Passing raw bytes as `body` is deprecated and will be removed in a future version. " |
| 2004 | class="st">"Please pass raw bytes via the `content` parameter instead.", |
| 2005 | DeprecationWarning, |
| 2006 | stacklevel=2, |
| 2007 | ) |
| 2008 | opts = FinalRequestOptions.construct(method=class="st">"delete", url=path, json_data=body, content=content, **options) |
| 2009 | return await self.request(cast_to, opts) |
| 2010 | |
| 2011 | def get_api_list( |
| 2012 | self, |