basaltic-sdk-python 0.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. basaltic/__init__.py +26 -0
  2. basaltic/_client.py +136 -0
  3. basaltic/_common.py +284 -0
  4. basaltic/_transport.py +196 -0
  5. basaltic/_version.py +3 -0
  6. basaltic/auth.py +231 -0
  7. basaltic/client.py +144 -0
  8. basaltic/config.py +151 -0
  9. basaltic/errors.py +73 -0
  10. basaltic/models/__init__.py +17 -0
  11. basaltic/models/audit.py +85 -0
  12. basaltic/models/billing.py +284 -0
  13. basaltic/models/catalog.py +35 -0
  14. basaltic/models/certificate.py +127 -0
  15. basaltic/models/compute.py +905 -0
  16. basaltic/models/dns.py +256 -0
  17. basaltic/models/iam.py +736 -0
  18. basaltic/models/kms.py +157 -0
  19. basaltic/models/loadbalancer.py +574 -0
  20. basaltic/models/network.py +985 -0
  21. basaltic/models/quota.py +30 -0
  22. basaltic/models/secrets.py +136 -0
  23. basaltic/models/storage.py +789 -0
  24. basaltic/models/telemetry.py +393 -0
  25. basaltic/models/workspace.py +734 -0
  26. basaltic/py.typed +0 -0
  27. basaltic/response.py +152 -0
  28. basaltic/services/__init__.py +1 -0
  29. basaltic/services/audit.py +211 -0
  30. basaltic/services/billing.py +777 -0
  31. basaltic/services/catalog.py +172 -0
  32. basaltic/services/certificate.py +395 -0
  33. basaltic/services/compute.py +2395 -0
  34. basaltic/services/dns.py +1079 -0
  35. basaltic/services/iam.py +3405 -0
  36. basaltic/services/kms.py +742 -0
  37. basaltic/services/loadbalancer.py +1727 -0
  38. basaltic/services/network.py +4691 -0
  39. basaltic/services/quota.py +75 -0
  40. basaltic/services/secrets.py +550 -0
  41. basaltic/services/storage.py +3059 -0
  42. basaltic/services/telemetry.py +1316 -0
  43. basaltic/services/workspace.py +3899 -0
  44. basaltic_sdk_python-0.1.1.dist-info/METADATA +211 -0
  45. basaltic_sdk_python-0.1.1.dist-info/RECORD +47 -0
  46. basaltic_sdk_python-0.1.1.dist-info/WHEEL +4 -0
  47. basaltic_sdk_python-0.1.1.dist-info/licenses/LICENSE +202 -0
@@ -0,0 +1,393 @@
1
+ """Generated API models. Dictionary keys retain their wire names."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Literal, NotRequired, Required, TypeAlias, TypedDict
6
+
7
+ CreateLogGroupRequestInput = TypedDict(
8
+ "CreateLogGroupRequestInput",
9
+ {
10
+ "name": "Required[str]",
11
+ "description": "NotRequired[str]",
12
+ "retention_days": "NotRequired[int | None]",
13
+ "kms_key": "NotRequired[str]",
14
+ "tags": "NotRequired[dict[str, str]]",
15
+ },
16
+ total=False,
17
+ )
18
+ CreateLogGroupBody: TypeAlias = "CreateLogGroupRequestInput"
19
+ LogGroupResponse = TypedDict(
20
+ "LogGroupResponse", {"log_group": "NotRequired[LogGroup]"}, total=False
21
+ )
22
+ LogGroup = TypedDict(
23
+ "LogGroup",
24
+ {
25
+ "id": "NotRequired[str]",
26
+ "crn": "NotRequired[str]",
27
+ "account_id": "NotRequired[str]",
28
+ "name": "NotRequired[str]",
29
+ "description": "NotRequired[str]",
30
+ "retention_days": "NotRequired[int | None]",
31
+ "kms_key_unavailable": "NotRequired[bool]",
32
+ "kms_key_crn": "NotRequired[str]",
33
+ "tags": "NotRequired[dict[str, str]]",
34
+ "created_at": "NotRequired[str]",
35
+ "updated_at": "NotRequired[str]",
36
+ },
37
+ total=False,
38
+ )
39
+ CreateLogGroupResponse: TypeAlias = "LogGroupResponse"
40
+ LogResponse = TypedDict("LogResponse", {"log": "NotRequired[LogRecord]"}, total=False)
41
+ LogRecord = TypedDict(
42
+ "LogRecord",
43
+ {
44
+ "id": "NotRequired[str]",
45
+ "timestamp": "NotRequired[str]",
46
+ "organization_id": "NotRequired[str]",
47
+ "account_id": "NotRequired[str]",
48
+ "log_group_id": "NotRequired[str]",
49
+ "log_group": "NotRequired[str]",
50
+ "log_stream": "NotRequired[str]",
51
+ "severity": "NotRequired[Literal['TRACE', 'DEBUG', 'INFO', 'WARN', 'ERROR', 'FATAL']]",
52
+ "severity_number": "NotRequired[int]",
53
+ "body": "NotRequired[str]",
54
+ "attributes": "NotRequired[dict[str, str]]",
55
+ "resource": "NotRequired[dict[str, str]]",
56
+ "trace_id": "NotRequired[str]",
57
+ "span_id": "NotRequired[str]",
58
+ },
59
+ total=False,
60
+ )
61
+ GetLogResponse: TypeAlias = "LogResponse"
62
+ GetLogGroupResponse: TypeAlias = "LogGroupResponse"
63
+ GetLogGroupResource: TypeAlias = "LogGroup"
64
+ GetLogGroupScope = TypedDict("GetLogGroupScope", {"limit": "NotRequired[int]"}, total=False)
65
+ GetRetainedTelemetryPresenceResult = TypedDict(
66
+ "GetRetainedTelemetryPresenceResult", {"has_resources": "Required[bool]"}, total=False
67
+ )
68
+ GetRetainedTelemetryPresenceResponse: TypeAlias = "GetRetainedTelemetryPresenceResult"
69
+ TraceResponse = TypedDict(
70
+ "TraceResponse",
71
+ {"trace_id": "NotRequired[str]", "spans": "NotRequired[list[Span]]"},
72
+ total=False,
73
+ )
74
+ Span = TypedDict(
75
+ "Span",
76
+ {
77
+ "trace_id": "NotRequired[str]",
78
+ "span_id": "NotRequired[str]",
79
+ "parent_span_id": "NotRequired[str]",
80
+ "name": "NotRequired[str]",
81
+ "kind": "NotRequired[Literal['INTERNAL', 'SERVER', 'CLIENT', 'PRODUCER', 'CONSUMER']]",
82
+ "service_name": "NotRequired[str]",
83
+ "start_time": "NotRequired[str]",
84
+ "end_time": "NotRequired[str]",
85
+ "duration_ms": "NotRequired[float]",
86
+ "status_code": "NotRequired[Literal['UNSET', 'OK', 'ERROR']]",
87
+ "status_message": "NotRequired[str]",
88
+ "attributes": "NotRequired[dict[str, str]]",
89
+ "resource": "NotRequired[dict[str, str]]",
90
+ "events": "NotRequired[list[SpanEvent]]",
91
+ "links": "NotRequired[list[SpanLink]]",
92
+ },
93
+ total=False,
94
+ )
95
+ SpanEvent = TypedDict(
96
+ "SpanEvent",
97
+ {
98
+ "timestamp": "NotRequired[str]",
99
+ "name": "Required[str]",
100
+ "attributes": "NotRequired[dict[str, str]]",
101
+ },
102
+ total=False,
103
+ )
104
+ SpanLink = TypedDict(
105
+ "SpanLink", {"trace_id": "Required[str]", "span_id": "Required[str]"}, total=False
106
+ )
107
+ GetTraceResponse: TypeAlias = "TraceResponse"
108
+ TraceSettingsResponse = TypedDict(
109
+ "TraceSettingsResponse", {"trace_settings": "NotRequired[TraceSettings]"}, total=False
110
+ )
111
+ TraceSettings = TypedDict(
112
+ "TraceSettings",
113
+ {
114
+ "account_id": "NotRequired[str]",
115
+ "retention_days": "NotRequired[int | None]",
116
+ "kms_key_unavailable": "NotRequired[bool]",
117
+ "kms_key_crn": "NotRequired[str]",
118
+ "created_at": "NotRequired[str]",
119
+ "updated_at": "NotRequired[str]",
120
+ },
121
+ total=False,
122
+ )
123
+ GetTraceSettingsResponse: TypeAlias = "TraceSettingsResponse"
124
+ IngestRequestInput = TypedDict(
125
+ "IngestRequestInput", {"logs": "Required[list[IngestRecordInput]]"}, total=False
126
+ )
127
+ IngestRecordInput = TypedDict(
128
+ "IngestRecordInput",
129
+ {
130
+ "timestamp": "NotRequired[str]",
131
+ "log_group": "Required[str]",
132
+ "log_stream": "Required[str]",
133
+ "severity": "NotRequired[str]",
134
+ "body": "Required[str]",
135
+ "attributes": "NotRequired[dict[str, str]]",
136
+ "resource": "NotRequired[dict[str, str]]",
137
+ "trace_id": "NotRequired[str]",
138
+ "span_id": "NotRequired[str]",
139
+ },
140
+ total=False,
141
+ )
142
+ IngestLogsBody: TypeAlias = "IngestRequestInput"
143
+ IngestResult = TypedDict(
144
+ "IngestResult",
145
+ {
146
+ "accepted": "NotRequired[int]",
147
+ "rejected": "NotRequired[int]",
148
+ "errors": "NotRequired[list[str]]",
149
+ },
150
+ total=False,
151
+ )
152
+ IngestLogsResponse: TypeAlias = "IngestResult"
153
+ IngestSpansRequestInput = TypedDict(
154
+ "IngestSpansRequestInput", {"spans": "Required[list[SpanIngestRecordInput]]"}, total=False
155
+ )
156
+ SpanIngestRecordInput = TypedDict(
157
+ "SpanIngestRecordInput",
158
+ {
159
+ "trace_id": "Required[str]",
160
+ "span_id": "Required[str]",
161
+ "parent_span_id": "NotRequired[str]",
162
+ "name": "Required[str]",
163
+ "kind": "NotRequired[Literal['INTERNAL', 'SERVER', 'CLIENT', 'PRODUCER', 'CONSUMER']]",
164
+ "service_name": "NotRequired[str]",
165
+ "start_time": "Required[str]",
166
+ "end_time": "Required[str]",
167
+ "status_code": "NotRequired[Literal['UNSET', 'OK', 'ERROR']]",
168
+ "status_message": "NotRequired[str]",
169
+ "attributes": "NotRequired[dict[str, str]]",
170
+ "resource": "NotRequired[dict[str, str]]",
171
+ "events": "NotRequired[list[SpanEventInput]]",
172
+ "links": "NotRequired[list[SpanLinkInput]]",
173
+ },
174
+ total=False,
175
+ )
176
+ SpanEventInput = TypedDict(
177
+ "SpanEventInput",
178
+ {
179
+ "timestamp": "NotRequired[str]",
180
+ "name": "Required[str]",
181
+ "attributes": "NotRequired[dict[str, str]]",
182
+ },
183
+ total=False,
184
+ )
185
+ SpanLinkInput = TypedDict(
186
+ "SpanLinkInput", {"trace_id": "Required[str]", "span_id": "Required[str]"}, total=False
187
+ )
188
+ IngestSpansBody: TypeAlias = "IngestSpansRequestInput"
189
+ IngestSpansResponse: TypeAlias = "IngestResult"
190
+ ListLogGroupsParameters = TypedDict(
191
+ "ListLogGroupsParameters",
192
+ {
193
+ "name": "NotRequired[str]",
194
+ "crn": "NotRequired[str]",
195
+ "limit": "NotRequired[int]",
196
+ "marker": "NotRequired[str]",
197
+ },
198
+ total=False,
199
+ )
200
+ ListLogGroupsQuery: TypeAlias = "ListLogGroupsParameters"
201
+ LogGroupListResponse = TypedDict(
202
+ "LogGroupListResponse",
203
+ {"log_groups": "NotRequired[list[LogGroup]]", "meta": "NotRequired[PaginationMeta]"},
204
+ total=False,
205
+ )
206
+ PaginationMeta = TypedDict(
207
+ "PaginationMeta",
208
+ {
209
+ "total": "NotRequired[int]",
210
+ "limit": "NotRequired[int]",
211
+ "marker": "NotRequired[str]",
212
+ "has_more": "NotRequired[bool]",
213
+ },
214
+ total=False,
215
+ )
216
+ ListLogGroupsResponse: TypeAlias = "LogGroupListResponse"
217
+ ListLogGroupsItem: TypeAlias = "LogGroup"
218
+ ListMetricNamesParameters = TypedDict(
219
+ "ListMetricNamesParameters", {"start": "Required[str]", "end": "Required[str]"}, total=False
220
+ )
221
+ ListMetricNamesQuery: TypeAlias = "ListMetricNamesParameters"
222
+ ListMetricNamesResult = TypedDict(
223
+ "ListMetricNamesResult",
224
+ {"status": "NotRequired[str]", "data": "NotRequired[list[str]]"},
225
+ total=False,
226
+ )
227
+ ListMetricNamesResponse: TypeAlias = "ListMetricNamesResult"
228
+ ListMetricNamesItem: TypeAlias = "str"
229
+ ListMetricNamesPostRequest = TypedDict(
230
+ "ListMetricNamesPostRequest", {"start": "Required[str]", "end": "Required[str]"}, total=False
231
+ )
232
+ ListMetricNamesPostBody: TypeAlias = "ListMetricNamesPostRequest"
233
+ ListMetricNamesPostResult = TypedDict(
234
+ "ListMetricNamesPostResult",
235
+ {"status": "NotRequired[str]", "data": "NotRequired[list[str]]"},
236
+ total=False,
237
+ )
238
+ ListMetricNamesPostResponse: TypeAlias = "ListMetricNamesPostResult"
239
+ ListMetricSeriesParameters = TypedDict(
240
+ "ListMetricSeriesParameters",
241
+ {"metric": "Required[str]", "start": "Required[str]", "end": "Required[str]"},
242
+ total=False,
243
+ )
244
+ ListMetricSeriesQuery: TypeAlias = "ListMetricSeriesParameters"
245
+ ListMetricSeriesResponse: TypeAlias = "dict[str, object]"
246
+ ListMetricSeriesPostRequest = TypedDict(
247
+ "ListMetricSeriesPostRequest",
248
+ {"metric": "Required[str]", "start": "Required[str]", "end": "Required[str]"},
249
+ total=False,
250
+ )
251
+ ListMetricSeriesPostBody: TypeAlias = "ListMetricSeriesPostRequest"
252
+ ListMetricSeriesPostResponse: TypeAlias = "dict[str, object]"
253
+ UpdateTraceSettingsRequestInput = TypedDict(
254
+ "UpdateTraceSettingsRequestInput",
255
+ {
256
+ "retention_days": "NotRequired[int | None]",
257
+ "clear_retention": "NotRequired[bool]",
258
+ "kms_key": "NotRequired[str | None]",
259
+ },
260
+ total=False,
261
+ )
262
+ PutTraceSettingsBody: TypeAlias = "UpdateTraceSettingsRequestInput"
263
+ PutTraceSettingsResponse: TypeAlias = "TraceSettingsResponse"
264
+ QueryMetricsInstantParameters = TypedDict(
265
+ "QueryMetricsInstantParameters",
266
+ {
267
+ "metric": "Required[str]",
268
+ "agg": "Required[Literal['avg', 'sum', 'min', 'max', 'count', 'last', 'rate', 'increase']]",
269
+ "match[]": "NotRequired[list[str]]",
270
+ "by[]": "NotRequired[list[str]]",
271
+ "step": "NotRequired[str]",
272
+ "time": "NotRequired[str]",
273
+ },
274
+ total=False,
275
+ )
276
+ QueryMetricsInstantQuery: TypeAlias = "QueryMetricsInstantParameters"
277
+ QueryMetricsInstantResponse: TypeAlias = "dict[str, object]"
278
+ QueryMetricsInstantPostRequest = TypedDict(
279
+ "QueryMetricsInstantPostRequest",
280
+ {
281
+ "metric": "Required[str]",
282
+ "agg": "Required[Literal['avg', 'sum', 'min', 'max', 'count', 'last', 'rate', 'increase']]",
283
+ "match[]": "NotRequired[list[str]]",
284
+ "by[]": "NotRequired[list[str]]",
285
+ "step": "NotRequired[str]",
286
+ "time": "NotRequired[str]",
287
+ },
288
+ total=False,
289
+ )
290
+ QueryMetricsInstantPostBody: TypeAlias = "QueryMetricsInstantPostRequest"
291
+ QueryMetricsInstantPostResponse: TypeAlias = "dict[str, object]"
292
+ QueryMetricsRangeParameters = TypedDict(
293
+ "QueryMetricsRangeParameters",
294
+ {
295
+ "metric": "Required[str]",
296
+ "agg": "Required[Literal['avg', 'sum', 'min', 'max', 'count', 'last', 'rate', 'increase']]",
297
+ "match[]": "NotRequired[list[str]]",
298
+ "by[]": "NotRequired[list[str]]",
299
+ "start": "Required[str]",
300
+ "end": "Required[str]",
301
+ "step": "NotRequired[str]",
302
+ },
303
+ total=False,
304
+ )
305
+ QueryMetricsRangeQuery: TypeAlias = "QueryMetricsRangeParameters"
306
+ QueryMetricsRangeResponse: TypeAlias = "dict[str, object]"
307
+ QueryMetricsRangePostRequest = TypedDict(
308
+ "QueryMetricsRangePostRequest",
309
+ {
310
+ "metric": "Required[str]",
311
+ "agg": "Required[Literal['avg', 'sum', 'min', 'max', 'count', 'last', 'rate', 'increase']]",
312
+ "match[]": "NotRequired[list[str]]",
313
+ "by[]": "NotRequired[list[str]]",
314
+ "start": "Required[str]",
315
+ "end": "Required[str]",
316
+ "step": "NotRequired[str]",
317
+ },
318
+ total=False,
319
+ )
320
+ QueryMetricsRangePostBody: TypeAlias = "QueryMetricsRangePostRequest"
321
+ QueryMetricsRangePostResponse: TypeAlias = "dict[str, object]"
322
+ SearchLogsParameters = TypedDict(
323
+ "SearchLogsParameters",
324
+ {
325
+ "from": "Required[str]",
326
+ "to": "Required[str]",
327
+ "log_group": "NotRequired[str]",
328
+ "log_stream": "NotRequired[str]",
329
+ "min_severity": "NotRequired[Literal['TRACE', 'DEBUG', 'INFO', 'WARN', 'ERROR', 'FATAL']]",
330
+ "region": "NotRequired[str]",
331
+ "q": "NotRequired[str]",
332
+ "trace_id": "NotRequired[str]",
333
+ "limit": "NotRequired[int]",
334
+ "marker": "NotRequired[str]",
335
+ },
336
+ total=False,
337
+ )
338
+ SearchLogsQuery: TypeAlias = "SearchLogsParameters"
339
+ LogListResponse = TypedDict(
340
+ "LogListResponse",
341
+ {"logs": "NotRequired[list[LogRecord]]", "meta": "NotRequired[PaginationMeta]"},
342
+ total=False,
343
+ )
344
+ SearchLogsResponse: TypeAlias = "LogListResponse"
345
+ SearchTracesParameters = TypedDict(
346
+ "SearchTracesParameters",
347
+ {
348
+ "from": "Required[str]",
349
+ "to": "Required[str]",
350
+ "service": "NotRequired[str]",
351
+ "operation": "NotRequired[str]",
352
+ "status_code": "NotRequired[Literal['UNSET', 'OK', 'ERROR']]",
353
+ "min_duration_ms": "NotRequired[float]",
354
+ "limit": "NotRequired[int]",
355
+ "marker": "NotRequired[str]",
356
+ },
357
+ total=False,
358
+ )
359
+ SearchTracesQuery: TypeAlias = "SearchTracesParameters"
360
+ TraceListResponse = TypedDict(
361
+ "TraceListResponse",
362
+ {"traces": "NotRequired[list[TraceSummary]]", "meta": "NotRequired[PaginationMeta]"},
363
+ total=False,
364
+ )
365
+ TraceSummary = TypedDict(
366
+ "TraceSummary",
367
+ {
368
+ "trace_id": "NotRequired[str]",
369
+ "root_span_id": "NotRequired[str]",
370
+ "root_name": "NotRequired[str]",
371
+ "root_service": "NotRequired[str]",
372
+ "start_time": "NotRequired[str]",
373
+ "duration_ms": "NotRequired[float]",
374
+ "span_count": "NotRequired[int]",
375
+ "error_count": "NotRequired[int]",
376
+ "service_count": "NotRequired[int]",
377
+ },
378
+ total=False,
379
+ )
380
+ SearchTracesResponse: TypeAlias = "TraceListResponse"
381
+ UpdateLogGroupRequestInput = TypedDict(
382
+ "UpdateLogGroupRequestInput",
383
+ {
384
+ "description": "NotRequired[str | None]",
385
+ "retention_days": "NotRequired[int]",
386
+ "clear_retention": "NotRequired[bool]",
387
+ "kms_key": "NotRequired[str | None]",
388
+ "tags": "NotRequired[dict[str, str]]",
389
+ },
390
+ total=False,
391
+ )
392
+ UpdateLogGroupBody: TypeAlias = "UpdateLogGroupRequestInput"
393
+ UpdateLogGroupResponse: TypeAlias = "LogGroupResponse"