Skip to content

Commit 11b650b

Browse files
SDK regeneration
1 parent 876fc73 commit 11b650b

File tree

10 files changed

+440
-18
lines changed

10 files changed

+440
-18
lines changed

reference.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,91 @@
11
# Reference
2+
## Manage
3+
<details><summary><code>client.manage.<a href="src/deepgram/manage/client.py">v1projects_billing_fields_list</a>(...)</code></summary>
4+
<dl>
5+
<dd>
6+
7+
#### 📝 Description
8+
9+
<dl>
10+
<dd>
11+
12+
<dl>
13+
<dd>
14+
15+
Lists the accessors, deployment types, tags, and line items used for billing data in the specified time period. Use this endpoint if you want to filter your results from the Billing Breakdown endpoint and want to know what filters are available.
16+
</dd>
17+
</dl>
18+
</dd>
19+
</dl>
20+
21+
#### 🔌 Usage
22+
23+
<dl>
24+
<dd>
25+
26+
<dl>
27+
<dd>
28+
29+
```python
30+
from deepgram import DeepgramClient
31+
32+
client = DeepgramClient(
33+
api_key="YOUR_API_KEY",
34+
)
35+
client.manage.v1projects_billing_fields_list(
36+
project_id="123456-7890-1234-5678-901234",
37+
)
38+
39+
```
40+
</dd>
41+
</dl>
42+
</dd>
43+
</dl>
44+
45+
#### ⚙️ Parameters
46+
47+
<dl>
48+
<dd>
49+
50+
<dl>
51+
<dd>
52+
53+
**project_id:** `str` — The unique identifier of the project
54+
55+
</dd>
56+
</dl>
57+
58+
<dl>
59+
<dd>
60+
61+
**start:** `typing.Optional[str]` — Start date of the requested date range. Format accepted is YYYY-MM-DD
62+
63+
</dd>
64+
</dl>
65+
66+
<dl>
67+
<dd>
68+
69+
**end:** `typing.Optional[str]` — End date of the requested date range. Format accepted is YYYY-MM-DD
70+
71+
</dd>
72+
</dl>
73+
74+
<dl>
75+
<dd>
76+
77+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
78+
79+
</dd>
80+
</dl>
81+
</dd>
82+
</dl>
83+
84+
85+
</dd>
86+
</dl>
87+
</details>
88+
289
## Agent V1 Settings Think Models
390
<details><summary><code>client.agent.v1.settings.think.models.<a href="src/deepgram/agent/v1/settings/think/models/client.py">list</a>()</code></summary>
491
<dl>

src/deepgram/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
GetProjectV1Response,
5252
GrantV1Response,
5353
LeaveProjectV1Response,
54+
ListBillingFieldsV1Response,
55+
ListBillingFieldsV1ResponseDeploymentsItem,
5456
ListModelsV1Response,
5557
ListModelsV1ResponseSttModels,
5658
ListModelsV1ResponseTtsModels,
@@ -223,6 +225,7 @@
223225
GetProjectV1ResponseParams,
224226
GrantV1ResponseParams,
225227
LeaveProjectV1ResponseParams,
228+
ListBillingFieldsV1ResponseParams,
226229
ListModelsV1ResponseParams,
227230
ListModelsV1ResponseSttModelsParams,
228231
ListModelsV1ResponseTtsModelsMetadataParams,
@@ -399,6 +402,9 @@
399402
"GrantV1ResponseParams": ".requests",
400403
"LeaveProjectV1Response": ".types",
401404
"LeaveProjectV1ResponseParams": ".requests",
405+
"ListBillingFieldsV1Response": ".types",
406+
"ListBillingFieldsV1ResponseDeploymentsItem": ".types",
407+
"ListBillingFieldsV1ResponseParams": ".requests",
402408
"ListModelsV1Response": ".types",
403409
"ListModelsV1ResponseParams": ".requests",
404410
"ListModelsV1ResponseSttModels": ".types",
@@ -732,6 +738,9 @@ def __dir__():
732738
"GrantV1ResponseParams",
733739
"LeaveProjectV1Response",
734740
"LeaveProjectV1ResponseParams",
741+
"ListBillingFieldsV1Response",
742+
"ListBillingFieldsV1ResponseDeploymentsItem",
743+
"ListBillingFieldsV1ResponseParams",
735744
"ListModelsV1Response",
736745
"ListModelsV1ResponseParams",
737746
"ListModelsV1ResponseSttModels",

src/deepgram/base_client.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,22 @@ def __init__(
8585
else httpx.Client(timeout=_defaulted_timeout),
8686
timeout=_defaulted_timeout,
8787
)
88+
self._manage: typing.Optional[ManageClient] = None
8889
self._agent: typing.Optional[AgentClient] = None
8990
self._auth: typing.Optional[AuthClient] = None
9091
self._listen: typing.Optional[ListenClient] = None
91-
self._manage: typing.Optional[ManageClient] = None
9292
self._read: typing.Optional[ReadClient] = None
9393
self._self_hosted: typing.Optional[SelfHostedClient] = None
9494
self._speak: typing.Optional[SpeakClient] = None
9595

96+
@property
97+
def manage(self):
98+
if self._manage is None:
99+
from .manage.client import ManageClient # noqa: E402
100+
101+
self._manage = ManageClient(client_wrapper=self._client_wrapper)
102+
return self._manage
103+
96104
@property
97105
def agent(self):
98106
if self._agent is None:
@@ -117,14 +125,6 @@ def listen(self):
117125
self._listen = ListenClient(client_wrapper=self._client_wrapper)
118126
return self._listen
119127

120-
@property
121-
def manage(self):
122-
if self._manage is None:
123-
from .manage.client import ManageClient # noqa: E402
124-
125-
self._manage = ManageClient(client_wrapper=self._client_wrapper)
126-
return self._manage
127-
128128
@property
129129
def read(self):
130130
if self._read is None:
@@ -215,14 +215,22 @@ def __init__(
215215
else httpx.AsyncClient(timeout=_defaulted_timeout),
216216
timeout=_defaulted_timeout,
217217
)
218+
self._manage: typing.Optional[AsyncManageClient] = None
218219
self._agent: typing.Optional[AsyncAgentClient] = None
219220
self._auth: typing.Optional[AsyncAuthClient] = None
220221
self._listen: typing.Optional[AsyncListenClient] = None
221-
self._manage: typing.Optional[AsyncManageClient] = None
222222
self._read: typing.Optional[AsyncReadClient] = None
223223
self._self_hosted: typing.Optional[AsyncSelfHostedClient] = None
224224
self._speak: typing.Optional[AsyncSpeakClient] = None
225225

226+
@property
227+
def manage(self):
228+
if self._manage is None:
229+
from .manage.client import AsyncManageClient # noqa: E402
230+
231+
self._manage = AsyncManageClient(client_wrapper=self._client_wrapper)
232+
return self._manage
233+
226234
@property
227235
def agent(self):
228236
if self._agent is None:
@@ -247,14 +255,6 @@ def listen(self):
247255
self._listen = AsyncListenClient(client_wrapper=self._client_wrapper)
248256
return self._listen
249257

250-
@property
251-
def manage(self):
252-
if self._manage is None:
253-
from .manage.client import AsyncManageClient # noqa: E402
254-
255-
self._manage = AsyncManageClient(client_wrapper=self._client_wrapper)
256-
return self._manage
257-
258258
@property
259259
def read(self):
260260
if self._read is None:

src/deepgram/manage/client.py

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import typing
66

77
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
8+
from ..core.request_options import RequestOptions
9+
from ..types.list_billing_fields_v1response import ListBillingFieldsV1Response
810
from .raw_client import AsyncRawManageClient, RawManageClient
911

1012
if typing.TYPE_CHECKING:
@@ -28,6 +30,52 @@ def with_raw_response(self) -> RawManageClient:
2830
"""
2931
return self._raw_client
3032

33+
def v1projects_billing_fields_list(
34+
self,
35+
project_id: str,
36+
*,
37+
start: typing.Optional[str] = None,
38+
end: typing.Optional[str] = None,
39+
request_options: typing.Optional[RequestOptions] = None,
40+
) -> ListBillingFieldsV1Response:
41+
"""
42+
Lists the accessors, deployment types, tags, and line items used for billing data in the specified time period. Use this endpoint if you want to filter your results from the Billing Breakdown endpoint and want to know what filters are available.
43+
44+
Parameters
45+
----------
46+
project_id : str
47+
The unique identifier of the project
48+
49+
start : typing.Optional[str]
50+
Start date of the requested date range. Format accepted is YYYY-MM-DD
51+
52+
end : typing.Optional[str]
53+
End date of the requested date range. Format accepted is YYYY-MM-DD
54+
55+
request_options : typing.Optional[RequestOptions]
56+
Request-specific configuration.
57+
58+
Returns
59+
-------
60+
ListBillingFieldsV1Response
61+
A list of billing fields for a specific project
62+
63+
Examples
64+
--------
65+
from deepgram import DeepgramClient
66+
67+
client = DeepgramClient(
68+
api_key="YOUR_API_KEY",
69+
)
70+
client.manage.v1projects_billing_fields_list(
71+
project_id="123456-7890-1234-5678-901234",
72+
)
73+
"""
74+
_response = self._raw_client.v1projects_billing_fields_list(
75+
project_id, start=start, end=end, request_options=request_options
76+
)
77+
return _response.data
78+
3179
@property
3280
def v1(self):
3381
if self._v1 is None:
@@ -54,6 +102,60 @@ def with_raw_response(self) -> AsyncRawManageClient:
54102
"""
55103
return self._raw_client
56104

105+
async def v1projects_billing_fields_list(
106+
self,
107+
project_id: str,
108+
*,
109+
start: typing.Optional[str] = None,
110+
end: typing.Optional[str] = None,
111+
request_options: typing.Optional[RequestOptions] = None,
112+
) -> ListBillingFieldsV1Response:
113+
"""
114+
Lists the accessors, deployment types, tags, and line items used for billing data in the specified time period. Use this endpoint if you want to filter your results from the Billing Breakdown endpoint and want to know what filters are available.
115+
116+
Parameters
117+
----------
118+
project_id : str
119+
The unique identifier of the project
120+
121+
start : typing.Optional[str]
122+
Start date of the requested date range. Format accepted is YYYY-MM-DD
123+
124+
end : typing.Optional[str]
125+
End date of the requested date range. Format accepted is YYYY-MM-DD
126+
127+
request_options : typing.Optional[RequestOptions]
128+
Request-specific configuration.
129+
130+
Returns
131+
-------
132+
ListBillingFieldsV1Response
133+
A list of billing fields for a specific project
134+
135+
Examples
136+
--------
137+
import asyncio
138+
139+
from deepgram import AsyncDeepgramClient
140+
141+
client = AsyncDeepgramClient(
142+
api_key="YOUR_API_KEY",
143+
)
144+
145+
146+
async def main() -> None:
147+
await client.manage.v1projects_billing_fields_list(
148+
project_id="123456-7890-1234-5678-901234",
149+
)
150+
151+
152+
asyncio.run(main())
153+
"""
154+
_response = await self._raw_client.v1projects_billing_fields_list(
155+
project_id, start=start, end=end, request_options=request_options
156+
)
157+
return _response.data
158+
57159
@property
58160
def v1(self):
59161
if self._v1 is None:

0 commit comments

Comments
 (0)