leylinedb 0.1.0__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.
- leylinedb/AGENTS.md +11 -0
- leylinedb/__init__.py +614 -0
- leylinedb/auth.py +19 -0
- leylinedb/client.py +1112 -0
- leylinedb/crucible-model.json +1 -0
- leylinedb/crucible.json +15 -0
- leylinedb/models.py +7308 -0
- leylinedb/policy.py +222 -0
- leylinedb/py.typed +0 -0
- leylinedb/roles.py +198 -0
- leylinedb/runtime.py +1138 -0
- leylinedb/stream.py +622 -0
- leylinedb/telemetry.py +180 -0
- leylinedb/timestamp.py +325 -0
- leylinedb-0.1.0.dist-info/METADATA +59 -0
- leylinedb-0.1.0.dist-info/RECORD +19 -0
- leylinedb-0.1.0.dist-info/WHEEL +5 -0
- leylinedb-0.1.0.dist-info/licenses/LICENSE +178 -0
- leylinedb-0.1.0.dist-info/top_level.txt +1 -0
leylinedb/AGENTS.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Leyline SDK
|
|
2
|
+
|
|
3
|
+
Read the package README for installation and runnable examples. Use the
|
|
4
|
+
[API and SDK reference](https://leylinedb.com/docs/) for method inputs,
|
|
5
|
+
outputs, permissions, and errors.
|
|
6
|
+
|
|
7
|
+
The SDK uses `https://api.leylinedb.com` by default where the client supports
|
|
8
|
+
a default endpoint. Authenticate with a Leyline credential and keep the
|
|
9
|
+
credential outside source code. For paginated operations, keep the original
|
|
10
|
+
filters and follow the next-page token until it is absent. When resuming a
|
|
11
|
+
write, reuse the original inputs and client token.
|
leylinedb/__init__.py
ADDED
|
@@ -0,0 +1,614 @@
|
|
|
1
|
+
from .client import LeylineClient as LeylineClient, AsyncLeylineClient as AsyncLeylineClient
|
|
2
|
+
from .models import (
|
|
3
|
+
AccessDeniedException as AccessDeniedException,
|
|
4
|
+
ActiveImportSummaryList as ActiveImportSummaryList,
|
|
5
|
+
Actor as Actor,
|
|
6
|
+
AdditionalBackupRegions as AdditionalBackupRegions,
|
|
7
|
+
ApiKeyCredentialPolicy as ApiKeyCredentialPolicy,
|
|
8
|
+
ApiKeyCredentialPolicyInput as ApiKeyCredentialPolicyInput,
|
|
9
|
+
ApiKeyHint as ApiKeyHint,
|
|
10
|
+
ApiKeyId as ApiKeyId,
|
|
11
|
+
ApiKeyMaxLifetimeSeconds as ApiKeyMaxLifetimeSeconds,
|
|
12
|
+
ApiKeyName as ApiKeyName,
|
|
13
|
+
ApiKeySecret as ApiKeySecret,
|
|
14
|
+
AuditAction as AuditAction,
|
|
15
|
+
AuditActionList as AuditActionList,
|
|
16
|
+
AuditActor as AuditActor,
|
|
17
|
+
AuditActorId as AuditActorId,
|
|
18
|
+
AuditActorKind as AuditActorKind,
|
|
19
|
+
AuditActorType as AuditActorType,
|
|
20
|
+
AuditBucketSizeSeconds as AuditBucketSizeSeconds,
|
|
21
|
+
AuditConfigurationData as AuditConfigurationData,
|
|
22
|
+
AuditCredentialKind as AuditCredentialKind,
|
|
23
|
+
AuditEventCategory as AuditEventCategory,
|
|
24
|
+
AuditEventData as AuditEventData,
|
|
25
|
+
AuditEventId as AuditEventId,
|
|
26
|
+
AuditEventList as AuditEventList,
|
|
27
|
+
AuditOutcome as AuditOutcome,
|
|
28
|
+
AuditOutcomeList as AuditOutcomeList,
|
|
29
|
+
AuditPermission as AuditPermission,
|
|
30
|
+
AuditRequest as AuditRequest,
|
|
31
|
+
AuditResource as AuditResource,
|
|
32
|
+
AuditResourceId as AuditResourceId,
|
|
33
|
+
AuditResourceType as AuditResourceType,
|
|
34
|
+
AuditSearchData as AuditSearchData,
|
|
35
|
+
AuditSearchExclusion as AuditSearchExclusion,
|
|
36
|
+
AuditSearchExclusionList as AuditSearchExclusionList,
|
|
37
|
+
AuditSearchFailureReason as AuditSearchFailureReason,
|
|
38
|
+
AuditSearchId as AuditSearchId,
|
|
39
|
+
AuditSearchStatus as AuditSearchStatus,
|
|
40
|
+
AuditText as AuditText,
|
|
41
|
+
AuditTimelineBucket as AuditTimelineBucket,
|
|
42
|
+
AuditTimelineBucketList as AuditTimelineBucketList,
|
|
43
|
+
AuthorizationAction as AuthorizationAction,
|
|
44
|
+
AuthorizationActionList as AuthorizationActionList,
|
|
45
|
+
AwsErrorCode as AwsErrorCode,
|
|
46
|
+
AwsRegion as AwsRegion,
|
|
47
|
+
BackupRestoreSource as BackupRestoreSource,
|
|
48
|
+
BackupRetentionSeconds as BackupRetentionSeconds,
|
|
49
|
+
BackupScheduleName as BackupScheduleName,
|
|
50
|
+
BackupScheduleRetentionInputSeconds as BackupScheduleRetentionInputSeconds,
|
|
51
|
+
BalanceData as BalanceData,
|
|
52
|
+
BalanceMicroUsd as BalanceMicroUsd,
|
|
53
|
+
BatchGetGraphFailure as BatchGetGraphFailure,
|
|
54
|
+
BatchGetGraphFailureCode as BatchGetGraphFailureCode,
|
|
55
|
+
BatchGetGraphFailures as BatchGetGraphFailures,
|
|
56
|
+
BatchGetGraphInput as BatchGetGraphInput,
|
|
57
|
+
BatchGetGraphOutput as BatchGetGraphOutput,
|
|
58
|
+
BatchGraphIds as BatchGraphIds,
|
|
59
|
+
BusiestGraph as BusiestGraph,
|
|
60
|
+
BusiestGraphList as BusiestGraphList,
|
|
61
|
+
BusiestGraphMaxResults as BusiestGraphMaxResults,
|
|
62
|
+
BusiestGraphSortKey as BusiestGraphSortKey,
|
|
63
|
+
ByteCount as ByteCount,
|
|
64
|
+
CancelExportInput as CancelExportInput,
|
|
65
|
+
CancelExportOutput as CancelExportOutput,
|
|
66
|
+
CancelImportInput as CancelImportInput,
|
|
67
|
+
CancelImportOutput as CancelImportOutput,
|
|
68
|
+
CancelQueryJobInput as CancelQueryJobInput,
|
|
69
|
+
CancelQueryJobOutput as CancelQueryJobOutput,
|
|
70
|
+
Carried as Carried,
|
|
71
|
+
ClientToken as ClientToken,
|
|
72
|
+
ColdOpen as ColdOpen,
|
|
73
|
+
ColumnList as ColumnList,
|
|
74
|
+
CompleteImportFileUploadInput as CompleteImportFileUploadInput,
|
|
75
|
+
CompleteImportFileUploadOutput as CompleteImportFileUploadOutput,
|
|
76
|
+
ConflictException as ConflictException,
|
|
77
|
+
ConflictExceptionReason as ConflictExceptionReason,
|
|
78
|
+
Count as Count,
|
|
79
|
+
CountAccuracy as CountAccuracy,
|
|
80
|
+
CreateExportInput as CreateExportInput,
|
|
81
|
+
CreateExportOutput as CreateExportOutput,
|
|
82
|
+
CreateGraphBackupInput as CreateGraphBackupInput,
|
|
83
|
+
CreateGraphBackupOutput as CreateGraphBackupOutput,
|
|
84
|
+
CreateGraphBackupScheduleInput as CreateGraphBackupScheduleInput,
|
|
85
|
+
CreateGraphBackupScheduleOutput as CreateGraphBackupScheduleOutput,
|
|
86
|
+
CreateGraphGroupInput as CreateGraphGroupInput,
|
|
87
|
+
CreateGraphGroupOutput as CreateGraphGroupOutput,
|
|
88
|
+
CreateGraphInput as CreateGraphInput,
|
|
89
|
+
CreateGraphOutput as CreateGraphOutput,
|
|
90
|
+
CreateGraphRestoreJobInput as CreateGraphRestoreJobInput,
|
|
91
|
+
CreateGraphRestoreJobOutput as CreateGraphRestoreJobOutput,
|
|
92
|
+
CreateImportInput as CreateImportInput,
|
|
93
|
+
CreateImportOutput as CreateImportOutput,
|
|
94
|
+
CreateIndexInput as CreateIndexInput,
|
|
95
|
+
CreateIndexOutput as CreateIndexOutput,
|
|
96
|
+
CreateInvitationInput as CreateInvitationInput,
|
|
97
|
+
CreateInvitationOutput as CreateInvitationOutput,
|
|
98
|
+
CreateOrganizationInput as CreateOrganizationInput,
|
|
99
|
+
CreateOrganizationOutput as CreateOrganizationOutput,
|
|
100
|
+
CreateQueryJobInput as CreateQueryJobInput,
|
|
101
|
+
CreateQueryJobOutput as CreateQueryJobOutput,
|
|
102
|
+
CreateServiceAccountApiKeyInput as CreateServiceAccountApiKeyInput,
|
|
103
|
+
CreateServiceAccountApiKeyOutput as CreateServiceAccountApiKeyOutput,
|
|
104
|
+
CreateServiceAccountInput as CreateServiceAccountInput,
|
|
105
|
+
CreateServiceAccountOutput as CreateServiceAccountOutput,
|
|
106
|
+
CsvCharacter as CsvCharacter,
|
|
107
|
+
CsvOptions as CsvOptions,
|
|
108
|
+
CustomerS3ExportDestination as CustomerS3ExportDestination,
|
|
109
|
+
Date as Date,
|
|
110
|
+
DateTime as DateTime,
|
|
111
|
+
DeleteGraphBackupInput as DeleteGraphBackupInput,
|
|
112
|
+
DeleteGraphBackupScheduleInput as DeleteGraphBackupScheduleInput,
|
|
113
|
+
DeleteGraphGroupInput as DeleteGraphGroupInput,
|
|
114
|
+
DeleteGraphGroupOutput as DeleteGraphGroupOutput,
|
|
115
|
+
DeleteGraphHistoryInput as DeleteGraphHistoryInput,
|
|
116
|
+
DeleteGraphInput as DeleteGraphInput,
|
|
117
|
+
DeleteIndexInput as DeleteIndexInput,
|
|
118
|
+
DeleteIndexOutput as DeleteIndexOutput,
|
|
119
|
+
DeleteInvitationInput as DeleteInvitationInput,
|
|
120
|
+
DeleteMemberInput as DeleteMemberInput,
|
|
121
|
+
DeleteOrganizationInput as DeleteOrganizationInput,
|
|
122
|
+
DeletePrincipalPolicyInput as DeletePrincipalPolicyInput,
|
|
123
|
+
DeleteRoleBindingInput as DeleteRoleBindingInput,
|
|
124
|
+
DeleteServiceAccountApiKeyExpirationInput as DeleteServiceAccountApiKeyExpirationInput,
|
|
125
|
+
DeleteServiceAccountApiKeyInput as DeleteServiceAccountApiKeyInput,
|
|
126
|
+
DeleteServiceAccountInput as DeleteServiceAccountInput,
|
|
127
|
+
DeleteSpendCapInput as DeleteSpendCapInput,
|
|
128
|
+
DisplayName as DisplayName,
|
|
129
|
+
EmailAddress as EmailAddress,
|
|
130
|
+
EmailStatus as EmailStatus,
|
|
131
|
+
Enabled as Enabled,
|
|
132
|
+
ErrorCode as ErrorCode,
|
|
133
|
+
ErrorMessage as ErrorMessage,
|
|
134
|
+
EstimateQueryInput as EstimateQueryInput,
|
|
135
|
+
EstimateQueryOutput as EstimateQueryOutput,
|
|
136
|
+
ExecuteQueryInput as ExecuteQueryInput,
|
|
137
|
+
ExecuteQueryOutput as ExecuteQueryOutput,
|
|
138
|
+
ExportCounts as ExportCounts,
|
|
139
|
+
ExportDestination as ExportDestination,
|
|
140
|
+
ExportFailureReason as ExportFailureReason,
|
|
141
|
+
ExportFormat as ExportFormat,
|
|
142
|
+
ExportId as ExportId,
|
|
143
|
+
ExportJobData as ExportJobData,
|
|
144
|
+
ExportResult as ExportResult,
|
|
145
|
+
ExportStatus as ExportStatus,
|
|
146
|
+
ExportStatuses as ExportStatuses,
|
|
147
|
+
ExportSummary as ExportSummary,
|
|
148
|
+
ExportSummaryList as ExportSummaryList,
|
|
149
|
+
FilterFlag as FilterFlag,
|
|
150
|
+
GetAuditConfigurationInput as GetAuditConfigurationInput,
|
|
151
|
+
GetAuditConfigurationOutput as GetAuditConfigurationOutput,
|
|
152
|
+
GetAuditSearchInput as GetAuditSearchInput,
|
|
153
|
+
GetAuditSearchOutput as GetAuditSearchOutput,
|
|
154
|
+
GetBalanceInput as GetBalanceInput,
|
|
155
|
+
GetBalanceOutput as GetBalanceOutput,
|
|
156
|
+
GetExportConnectorInput as GetExportConnectorInput,
|
|
157
|
+
GetExportConnectorOutput as GetExportConnectorOutput,
|
|
158
|
+
GetExportInput as GetExportInput,
|
|
159
|
+
GetExportOutput as GetExportOutput,
|
|
160
|
+
GetGraphBackupInput as GetGraphBackupInput,
|
|
161
|
+
GetGraphBackupOutput as GetGraphBackupOutput,
|
|
162
|
+
GetGraphBackupScheduleInput as GetGraphBackupScheduleInput,
|
|
163
|
+
GetGraphBackupScheduleOutput as GetGraphBackupScheduleOutput,
|
|
164
|
+
GetGraphGroupInput as GetGraphGroupInput,
|
|
165
|
+
GetGraphGroupOutput as GetGraphGroupOutput,
|
|
166
|
+
GetGraphHistoryInput as GetGraphHistoryInput,
|
|
167
|
+
GetGraphHistoryOutput as GetGraphHistoryOutput,
|
|
168
|
+
GetGraphHistoryPolicyInput as GetGraphHistoryPolicyInput,
|
|
169
|
+
GetGraphHistoryPolicyOutput as GetGraphHistoryPolicyOutput,
|
|
170
|
+
GetGraphInput as GetGraphInput,
|
|
171
|
+
GetGraphMetricsInput as GetGraphMetricsInput,
|
|
172
|
+
GetGraphMetricsOutput as GetGraphMetricsOutput,
|
|
173
|
+
GetGraphOutput as GetGraphOutput,
|
|
174
|
+
GetGraphRestoreJobInput as GetGraphRestoreJobInput,
|
|
175
|
+
GetGraphRestoreJobOutput as GetGraphRestoreJobOutput,
|
|
176
|
+
GetImportConnectorInput as GetImportConnectorInput,
|
|
177
|
+
GetImportConnectorOutput as GetImportConnectorOutput,
|
|
178
|
+
GetImportInput as GetImportInput,
|
|
179
|
+
GetImportOutput as GetImportOutput,
|
|
180
|
+
GetIndexInput as GetIndexInput,
|
|
181
|
+
GetIndexOutput as GetIndexOutput,
|
|
182
|
+
GetMemberInput as GetMemberInput,
|
|
183
|
+
GetMemberOutput as GetMemberOutput,
|
|
184
|
+
GetOrganizationInput as GetOrganizationInput,
|
|
185
|
+
GetOrganizationMetricsInput as GetOrganizationMetricsInput,
|
|
186
|
+
GetOrganizationMetricsOutput as GetOrganizationMetricsOutput,
|
|
187
|
+
GetOrganizationOutput as GetOrganizationOutput,
|
|
188
|
+
GetPrincipalPolicyInput as GetPrincipalPolicyInput,
|
|
189
|
+
GetPrincipalPolicyOutput as GetPrincipalPolicyOutput,
|
|
190
|
+
GetQueryJobInput as GetQueryJobInput,
|
|
191
|
+
GetQueryJobOutput as GetQueryJobOutput,
|
|
192
|
+
GetServiceAccountApiKeyInput as GetServiceAccountApiKeyInput,
|
|
193
|
+
GetServiceAccountApiKeyOutput as GetServiceAccountApiKeyOutput,
|
|
194
|
+
GetServiceAccountInput as GetServiceAccountInput,
|
|
195
|
+
GetServiceAccountOutput as GetServiceAccountOutput,
|
|
196
|
+
GetSpendCapInput as GetSpendCapInput,
|
|
197
|
+
GetSpendCapOutput as GetSpendCapOutput,
|
|
198
|
+
GetUsageInput as GetUsageInput,
|
|
199
|
+
GetUsageOutput as GetUsageOutput,
|
|
200
|
+
GetWriteInput as GetWriteInput,
|
|
201
|
+
GetWriteOutput as GetWriteOutput,
|
|
202
|
+
GraphBackupData as GraphBackupData,
|
|
203
|
+
GraphBackupDisableReason as GraphBackupDisableReason,
|
|
204
|
+
GraphBackupExpirationChange as GraphBackupExpirationChange,
|
|
205
|
+
GraphBackupFrequency as GraphBackupFrequency,
|
|
206
|
+
GraphBackupId as GraphBackupId,
|
|
207
|
+
GraphBackupOrigin as GraphBackupOrigin,
|
|
208
|
+
GraphBackupPhase as GraphBackupPhase,
|
|
209
|
+
GraphBackupProgress as GraphBackupProgress,
|
|
210
|
+
GraphBackupRegionalCopies as GraphBackupRegionalCopies,
|
|
211
|
+
GraphBackupRegionalCopy as GraphBackupRegionalCopy,
|
|
212
|
+
GraphBackupRegionalCopyStatus as GraphBackupRegionalCopyStatus,
|
|
213
|
+
GraphBackupScheduleActivation as GraphBackupScheduleActivation,
|
|
214
|
+
GraphBackupScheduleData as GraphBackupScheduleData,
|
|
215
|
+
GraphBackupScheduleId as GraphBackupScheduleId,
|
|
216
|
+
GraphBackupScheduleOrigin as GraphBackupScheduleOrigin,
|
|
217
|
+
GraphBackupScheduleStatus as GraphBackupScheduleStatus,
|
|
218
|
+
GraphBackupScheduleStatuses as GraphBackupScheduleStatuses,
|
|
219
|
+
GraphBackupScheduleSummary as GraphBackupScheduleSummary,
|
|
220
|
+
GraphBackupScheduleSummaryList as GraphBackupScheduleSummaryList,
|
|
221
|
+
GraphBackupStatus as GraphBackupStatus,
|
|
222
|
+
GraphBackupStatuses as GraphBackupStatuses,
|
|
223
|
+
GraphBackupSummary as GraphBackupSummary,
|
|
224
|
+
GraphBackupSummaryList as GraphBackupSummaryList,
|
|
225
|
+
GraphData as GraphData,
|
|
226
|
+
GraphDescription as GraphDescription,
|
|
227
|
+
GraphGeneration as GraphGeneration,
|
|
228
|
+
GraphGroupData as GraphGroupData,
|
|
229
|
+
GraphGroupId as GraphGroupId,
|
|
230
|
+
GraphGroupList as GraphGroupList,
|
|
231
|
+
GraphHistoryData as GraphHistoryData,
|
|
232
|
+
GraphHistoryId as GraphHistoryId,
|
|
233
|
+
GraphHistoryPolicyData as GraphHistoryPolicyData,
|
|
234
|
+
GraphHistoryStatus as GraphHistoryStatus,
|
|
235
|
+
GraphHistoryStatuses as GraphHistoryStatuses,
|
|
236
|
+
GraphHistorySummary as GraphHistorySummary,
|
|
237
|
+
GraphHistorySummaryList as GraphHistorySummaryList,
|
|
238
|
+
GraphHomeRegion as GraphHomeRegion,
|
|
239
|
+
GraphId as GraphId,
|
|
240
|
+
GraphImportSummary as GraphImportSummary,
|
|
241
|
+
GraphList as GraphList,
|
|
242
|
+
GraphName as GraphName,
|
|
243
|
+
GraphReadView as GraphReadView,
|
|
244
|
+
GraphRestoreJobData as GraphRestoreJobData,
|
|
245
|
+
GraphRestoreJobId as GraphRestoreJobId,
|
|
246
|
+
GraphRestoreJobStatus as GraphRestoreJobStatus,
|
|
247
|
+
GraphRestoreJobStatuses as GraphRestoreJobStatuses,
|
|
248
|
+
GraphRestoreJobSummary as GraphRestoreJobSummary,
|
|
249
|
+
GraphRestoreJobSummaryList as GraphRestoreJobSummaryList,
|
|
250
|
+
GraphRestorePhase as GraphRestorePhase,
|
|
251
|
+
GraphRestoreProgress as GraphRestoreProgress,
|
|
252
|
+
GraphRestoreResult as GraphRestoreResult,
|
|
253
|
+
GraphRestoreSource as GraphRestoreSource,
|
|
254
|
+
GraphSchemaPreview as GraphSchemaPreview,
|
|
255
|
+
GraphSearchCoverage as GraphSearchCoverage,
|
|
256
|
+
GraphSearchLabel as GraphSearchLabel,
|
|
257
|
+
GraphSearchLabels as GraphSearchLabels,
|
|
258
|
+
GraphSearchMetadata as GraphSearchMetadata,
|
|
259
|
+
GraphSearchStatus as GraphSearchStatus,
|
|
260
|
+
GraphStatus as GraphStatus,
|
|
261
|
+
GraphSummary as GraphSummary,
|
|
262
|
+
GraphSummaryList as GraphSummaryList,
|
|
263
|
+
HistoricalReadView as HistoricalReadView,
|
|
264
|
+
HistoryIntervalData as HistoryIntervalData,
|
|
265
|
+
HistoryIntervalId as HistoryIntervalId,
|
|
266
|
+
HistoryIntervalList as HistoryIntervalList,
|
|
267
|
+
HistoryPolicy as HistoryPolicy,
|
|
268
|
+
HistoryPolicyApplicationStatus as HistoryPolicyApplicationStatus,
|
|
269
|
+
HistoryPolicyFailureReason as HistoryPolicyFailureReason,
|
|
270
|
+
HistoryRestoreSource as HistoryRestoreSource,
|
|
271
|
+
HistoryRetention as HistoryRetention,
|
|
272
|
+
HistoryRetentionSeconds as HistoryRetentionSeconds,
|
|
273
|
+
HttpStatusCode as HttpStatusCode,
|
|
274
|
+
IamPolicyJson as IamPolicyJson,
|
|
275
|
+
IamRoleArn as IamRoleArn,
|
|
276
|
+
ImportAttention as ImportAttention,
|
|
277
|
+
ImportCounts as ImportCounts,
|
|
278
|
+
ImportDiscovery as ImportDiscovery,
|
|
279
|
+
ImportFailureReason as ImportFailureReason,
|
|
280
|
+
ImportFileList as ImportFileList,
|
|
281
|
+
ImportFileName as ImportFileName,
|
|
282
|
+
ImportFileSize as ImportFileSize,
|
|
283
|
+
ImportFileSpec as ImportFileSpec,
|
|
284
|
+
ImportFileState as ImportFileState,
|
|
285
|
+
ImportFileStateList as ImportFileStateList,
|
|
286
|
+
ImportFileStatus as ImportFileStatus,
|
|
287
|
+
ImportFormat as ImportFormat,
|
|
288
|
+
ImportHeaderLine as ImportHeaderLine,
|
|
289
|
+
ImportId as ImportId,
|
|
290
|
+
ImportJobData as ImportJobData,
|
|
291
|
+
ImportMapping as ImportMapping,
|
|
292
|
+
ImportMappingGlob as ImportMappingGlob,
|
|
293
|
+
ImportMappingList as ImportMappingList,
|
|
294
|
+
ImportPart as ImportPart,
|
|
295
|
+
ImportPartList as ImportPartList,
|
|
296
|
+
ImportPhase as ImportPhase,
|
|
297
|
+
ImportSampleKeys as ImportSampleKeys,
|
|
298
|
+
ImportSource as ImportSource,
|
|
299
|
+
ImportSourceFailureReason as ImportSourceFailureReason,
|
|
300
|
+
ImportSourceState as ImportSourceState,
|
|
301
|
+
ImportStatus as ImportStatus,
|
|
302
|
+
ImportSummary as ImportSummary,
|
|
303
|
+
ImportSummaryStatus as ImportSummaryStatus,
|
|
304
|
+
ImportUpload as ImportUpload,
|
|
305
|
+
IndexBuildPhase as IndexBuildPhase,
|
|
306
|
+
IndexData as IndexData,
|
|
307
|
+
IndexFailureReason as IndexFailureReason,
|
|
308
|
+
IndexId as IndexId,
|
|
309
|
+
IndexList as IndexList,
|
|
310
|
+
IndexOrder as IndexOrder,
|
|
311
|
+
IndexSortDirection as IndexSortDirection,
|
|
312
|
+
IndexSortKey as IndexSortKey,
|
|
313
|
+
IndexStatus as IndexStatus,
|
|
314
|
+
IndexType as IndexType,
|
|
315
|
+
IndexUsage as IndexUsage,
|
|
316
|
+
IndexUsageList as IndexUsageList,
|
|
317
|
+
InternalServerException as InternalServerException,
|
|
318
|
+
InvitationAssignment as InvitationAssignment,
|
|
319
|
+
InvitationAssignmentList as InvitationAssignmentList,
|
|
320
|
+
InvitationData as InvitationData,
|
|
321
|
+
InvitationDeliveryStatus as InvitationDeliveryStatus,
|
|
322
|
+
InvitationEmail as InvitationEmail,
|
|
323
|
+
InvitationId as InvitationId,
|
|
324
|
+
InvitationList as InvitationList,
|
|
325
|
+
InvitationStatus as InvitationStatus,
|
|
326
|
+
JobKind as JobKind,
|
|
327
|
+
JobOutcome as JobOutcome,
|
|
328
|
+
JobUsageOutcome as JobUsageOutcome,
|
|
329
|
+
JobsFinished as JobsFinished,
|
|
330
|
+
JobsFinishedList as JobsFinishedList,
|
|
331
|
+
LabelName as LabelName,
|
|
332
|
+
LimitRefusalList as LimitRefusalList,
|
|
333
|
+
LimitRefusals as LimitRefusals,
|
|
334
|
+
ListBusiestGraphsInput as ListBusiestGraphsInput,
|
|
335
|
+
ListBusiestGraphsOutput as ListBusiestGraphsOutput,
|
|
336
|
+
ListExportsInput as ListExportsInput,
|
|
337
|
+
ListExportsOutput as ListExportsOutput,
|
|
338
|
+
ListGraphBackupSchedulesInput as ListGraphBackupSchedulesInput,
|
|
339
|
+
ListGraphBackupSchedulesOutput as ListGraphBackupSchedulesOutput,
|
|
340
|
+
ListGraphBackupsInput as ListGraphBackupsInput,
|
|
341
|
+
ListGraphBackupsOutput as ListGraphBackupsOutput,
|
|
342
|
+
ListGraphGroupsInput as ListGraphGroupsInput,
|
|
343
|
+
ListGraphGroupsOutput as ListGraphGroupsOutput,
|
|
344
|
+
ListGraphHistoriesInput as ListGraphHistoriesInput,
|
|
345
|
+
ListGraphHistoriesOutput as ListGraphHistoriesOutput,
|
|
346
|
+
ListGraphHistoryIntervalsInput as ListGraphHistoryIntervalsInput,
|
|
347
|
+
ListGraphHistoryIntervalsOutput as ListGraphHistoryIntervalsOutput,
|
|
348
|
+
ListGraphRestoreJobsInput as ListGraphRestoreJobsInput,
|
|
349
|
+
ListGraphRestoreJobsOutput as ListGraphRestoreJobsOutput,
|
|
350
|
+
ListGraphsInput as ListGraphsInput,
|
|
351
|
+
ListGraphsOutput as ListGraphsOutput,
|
|
352
|
+
ListIndexesInput as ListIndexesInput,
|
|
353
|
+
ListIndexesOutput as ListIndexesOutput,
|
|
354
|
+
ListInvitationsInput as ListInvitationsInput,
|
|
355
|
+
ListInvitationsOutput as ListInvitationsOutput,
|
|
356
|
+
ListMembersInput as ListMembersInput,
|
|
357
|
+
ListMembersOutput as ListMembersOutput,
|
|
358
|
+
ListOrganizationsInput as ListOrganizationsInput,
|
|
359
|
+
ListOrganizationsOutput as ListOrganizationsOutput,
|
|
360
|
+
ListQueryJobResultsInput as ListQueryJobResultsInput,
|
|
361
|
+
ListQueryJobResultsOutput as ListQueryJobResultsOutput,
|
|
362
|
+
ListQueryJobsInput as ListQueryJobsInput,
|
|
363
|
+
ListQueryJobsOutput as ListQueryJobsOutput,
|
|
364
|
+
ListQuotasInput as ListQuotasInput,
|
|
365
|
+
ListQuotasOutput as ListQuotasOutput,
|
|
366
|
+
ListRatesInput as ListRatesInput,
|
|
367
|
+
ListRatesOutput as ListRatesOutput,
|
|
368
|
+
ListRegionsInput as ListRegionsInput,
|
|
369
|
+
ListRegionsOutput as ListRegionsOutput,
|
|
370
|
+
ListRoleBindingsInput as ListRoleBindingsInput,
|
|
371
|
+
ListRoleBindingsOutput as ListRoleBindingsOutput,
|
|
372
|
+
ListRolesInput as ListRolesInput,
|
|
373
|
+
ListRolesOutput as ListRolesOutput,
|
|
374
|
+
ListServiceAccountApiKeysInput as ListServiceAccountApiKeysInput,
|
|
375
|
+
ListServiceAccountApiKeysOutput as ListServiceAccountApiKeysOutput,
|
|
376
|
+
ListServiceAccountsInput as ListServiceAccountsInput,
|
|
377
|
+
ListServiceAccountsOutput as ListServiceAccountsOutput,
|
|
378
|
+
ListTotal as ListTotal,
|
|
379
|
+
ListUsageDaysInput as ListUsageDaysInput,
|
|
380
|
+
ListUsageDaysOutput as ListUsageDaysOutput,
|
|
381
|
+
ListUsageLineItemsInput as ListUsageLineItemsInput,
|
|
382
|
+
ListUsageLineItemsOutput as ListUsageLineItemsOutput,
|
|
383
|
+
MaxResults as MaxResults,
|
|
384
|
+
MemberData as MemberData,
|
|
385
|
+
MemberList as MemberList,
|
|
386
|
+
MemberStatus as MemberStatus,
|
|
387
|
+
MetadataCurrent as MetadataCurrent,
|
|
388
|
+
MeterId as MeterId,
|
|
389
|
+
MeterMilliUnits as MeterMilliUnits,
|
|
390
|
+
MeterTotal as MeterTotal,
|
|
391
|
+
MeterTotalList as MeterTotalList,
|
|
392
|
+
MeterUnit as MeterUnit,
|
|
393
|
+
MetricLatency as MetricLatency,
|
|
394
|
+
MetricMaxResults as MetricMaxResults,
|
|
395
|
+
MetricPeriod as MetricPeriod,
|
|
396
|
+
MetricPeriodList as MetricPeriodList,
|
|
397
|
+
MetricPeriodSeconds as MetricPeriodSeconds,
|
|
398
|
+
MetricTotals as MetricTotals,
|
|
399
|
+
MicroUsd as MicroUsd,
|
|
400
|
+
Microseconds as Microseconds,
|
|
401
|
+
Milliseconds as Milliseconds,
|
|
402
|
+
Month as Month,
|
|
403
|
+
NameList as NameList,
|
|
404
|
+
NeedsAttention as NeedsAttention,
|
|
405
|
+
NextToken as NextToken,
|
|
406
|
+
NodeKey as NodeKey,
|
|
407
|
+
NodeLabelData as NodeLabelData,
|
|
408
|
+
NodeLabelList as NodeLabelList,
|
|
409
|
+
NodeLabelSet as NodeLabelSet,
|
|
410
|
+
NodeLabels as NodeLabels,
|
|
411
|
+
NodeValue as NodeValue,
|
|
412
|
+
OrganizationData as OrganizationData,
|
|
413
|
+
OrganizationId as OrganizationId,
|
|
414
|
+
OrganizationList as OrganizationList,
|
|
415
|
+
OrganizationName as OrganizationName,
|
|
416
|
+
OrganizationStatus as OrganizationStatus,
|
|
417
|
+
PathNodes as PathNodes,
|
|
418
|
+
PathRelationships as PathRelationships,
|
|
419
|
+
PathValue as PathValue,
|
|
420
|
+
PrincipalId as PrincipalId,
|
|
421
|
+
PrincipalPolicyData as PrincipalPolicyData,
|
|
422
|
+
PrincipalType as PrincipalType,
|
|
423
|
+
PrincipalTypeList as PrincipalTypeList,
|
|
424
|
+
PropertyName as PropertyName,
|
|
425
|
+
PutAuditConfigurationInput as PutAuditConfigurationInput,
|
|
426
|
+
PutAuditConfigurationOutput as PutAuditConfigurationOutput,
|
|
427
|
+
PutGraphGroupMembershipInput as PutGraphGroupMembershipInput,
|
|
428
|
+
PutGraphGroupMembershipOutput as PutGraphGroupMembershipOutput,
|
|
429
|
+
PutGraphHistoryPolicyInput as PutGraphHistoryPolicyInput,
|
|
430
|
+
PutGraphHistoryPolicyOutput as PutGraphHistoryPolicyOutput,
|
|
431
|
+
PutMemberInput as PutMemberInput,
|
|
432
|
+
PutMemberOutput as PutMemberOutput,
|
|
433
|
+
PutPrincipalPolicyInput as PutPrincipalPolicyInput,
|
|
434
|
+
PutPrincipalPolicyOutput as PutPrincipalPolicyOutput,
|
|
435
|
+
PutRoleBindingInput as PutRoleBindingInput,
|
|
436
|
+
PutRoleBindingOutput as PutRoleBindingOutput,
|
|
437
|
+
PutServiceAccountApiKeyExpirationInput as PutServiceAccountApiKeyExpirationInput,
|
|
438
|
+
PutServiceAccountApiKeyExpirationOutput as PutServiceAccountApiKeyExpirationOutput,
|
|
439
|
+
PutSpendCapInput as PutSpendCapInput,
|
|
440
|
+
PutSpendCapOutput as PutSpendCapOutput,
|
|
441
|
+
QueryEstimateExecutionClass as QueryEstimateExecutionClass,
|
|
442
|
+
QueryExecutionMode as QueryExecutionMode,
|
|
443
|
+
QueryJobData as QueryJobData,
|
|
444
|
+
QueryJobFailureReason as QueryJobFailureReason,
|
|
445
|
+
QueryJobId as QueryJobId,
|
|
446
|
+
QueryJobList as QueryJobList,
|
|
447
|
+
QueryJobNodePropertyResult as QueryJobNodePropertyResult,
|
|
448
|
+
QueryJobResult as QueryJobResult,
|
|
449
|
+
QueryJobResultValueType as QueryJobResultValueType,
|
|
450
|
+
QueryJobRowsResult as QueryJobRowsResult,
|
|
451
|
+
QueryJobStatus as QueryJobStatus,
|
|
452
|
+
QueryJobStatuses as QueryJobStatuses,
|
|
453
|
+
QueryJobSummary as QueryJobSummary,
|
|
454
|
+
QueryPageSize as QueryPageSize,
|
|
455
|
+
QueryPaginationMode as QueryPaginationMode,
|
|
456
|
+
QueryParameters as QueryParameters,
|
|
457
|
+
QueryStatement as QueryStatement,
|
|
458
|
+
QueryStats as QueryStats,
|
|
459
|
+
QuotaAdjustable as QuotaAdjustable,
|
|
460
|
+
QuotaCode as QuotaCode,
|
|
461
|
+
QuotaSummary as QuotaSummary,
|
|
462
|
+
QuotaSummaryList as QuotaSummaryList,
|
|
463
|
+
QuotaUnit as QuotaUnit,
|
|
464
|
+
QuotaValue as QuotaValue,
|
|
465
|
+
RankingExact as RankingExact,
|
|
466
|
+
Rate as Rate,
|
|
467
|
+
RateList as RateList,
|
|
468
|
+
RateSource as RateSource,
|
|
469
|
+
RateTier as RateTier,
|
|
470
|
+
RateTierList as RateTierList,
|
|
471
|
+
ReadUnits as ReadUnits,
|
|
472
|
+
RecordedLabel as RecordedLabel,
|
|
473
|
+
RecoveryCount as RecoveryCount,
|
|
474
|
+
RecoveryFailureReason as RecoveryFailureReason,
|
|
475
|
+
Refreshing as Refreshing,
|
|
476
|
+
RegionCapability as RegionCapability,
|
|
477
|
+
RegionCapabilityList as RegionCapabilityList,
|
|
478
|
+
RegionDisplayName as RegionDisplayName,
|
|
479
|
+
RegionStatus as RegionStatus,
|
|
480
|
+
RegionSummary as RegionSummary,
|
|
481
|
+
RegionSummaryList as RegionSummaryList,
|
|
482
|
+
RejectedWrites as RejectedWrites,
|
|
483
|
+
RelationshipValue as RelationshipValue,
|
|
484
|
+
Replayed as Replayed,
|
|
485
|
+
RequestId as RequestId,
|
|
486
|
+
ResolvedGraphReadView as ResolvedGraphReadView,
|
|
487
|
+
ResourceId as ResourceId,
|
|
488
|
+
ResourceLocation as ResourceLocation,
|
|
489
|
+
ResourceNotFoundException as ResourceNotFoundException,
|
|
490
|
+
ResourceQuota as ResourceQuota,
|
|
491
|
+
ResourceType as ResourceType,
|
|
492
|
+
RestoreCarried as RestoreCarried,
|
|
493
|
+
ResultBoolean as ResultBoolean,
|
|
494
|
+
ResultColumnName as ResultColumnName,
|
|
495
|
+
ResultFloat as ResultFloat,
|
|
496
|
+
ResultInteger as ResultInteger,
|
|
497
|
+
ResultLabel as ResultLabel,
|
|
498
|
+
ResultProperties as ResultProperties,
|
|
499
|
+
ResultPropertyName as ResultPropertyName,
|
|
500
|
+
ResultRelationshipLabel as ResultRelationshipLabel,
|
|
501
|
+
ResultRow as ResultRow,
|
|
502
|
+
ResultString as ResultString,
|
|
503
|
+
ResultValue as ResultValue,
|
|
504
|
+
ResultValues as ResultValues,
|
|
505
|
+
RetryAfterSeconds as RetryAfterSeconds,
|
|
506
|
+
RevertGraphInput as RevertGraphInput,
|
|
507
|
+
RevertGraphOutput as RevertGraphOutput,
|
|
508
|
+
Revision as Revision,
|
|
509
|
+
Role as Role,
|
|
510
|
+
RoleAssigner as RoleAssigner,
|
|
511
|
+
RoleBindingData as RoleBindingData,
|
|
512
|
+
RoleBindingList as RoleBindingList,
|
|
513
|
+
RoleDescription as RoleDescription,
|
|
514
|
+
RoleList as RoleList,
|
|
515
|
+
RoleScopeId as RoleScopeId,
|
|
516
|
+
RoleScopeType as RoleScopeType,
|
|
517
|
+
RoleScopeTypeList as RoleScopeTypeList,
|
|
518
|
+
RoleSummary as RoleSummary,
|
|
519
|
+
RoleSummaryList as RoleSummaryList,
|
|
520
|
+
RowList as RowList,
|
|
521
|
+
S3BucketName as S3BucketName,
|
|
522
|
+
S3ImportSource as S3ImportSource,
|
|
523
|
+
S3ImportSourceState as S3ImportSourceState,
|
|
524
|
+
S3KeyPrefix as S3KeyPrefix,
|
|
525
|
+
S3ObjectKey as S3ObjectKey,
|
|
526
|
+
SampleDataset as SampleDataset,
|
|
527
|
+
SchemaCompleteness as SchemaCompleteness,
|
|
528
|
+
SchemaName as SchemaName,
|
|
529
|
+
SchemaPreviewCoverage as SchemaPreviewCoverage,
|
|
530
|
+
SchemaPreviewEdge as SchemaPreviewEdge,
|
|
531
|
+
SchemaPreviewEdgeList as SchemaPreviewEdgeList,
|
|
532
|
+
SchemaPreviewFreshness as SchemaPreviewFreshness,
|
|
533
|
+
SchemaPreviewNode as SchemaPreviewNode,
|
|
534
|
+
SchemaPreviewNodeId as SchemaPreviewNodeId,
|
|
535
|
+
SchemaPreviewNodeList as SchemaPreviewNodeList,
|
|
536
|
+
SchemaPreviewStatus as SchemaPreviewStatus,
|
|
537
|
+
SchemaVocabulary as SchemaVocabulary,
|
|
538
|
+
SearchText as SearchText,
|
|
539
|
+
ServiceAccountApiKeyData as ServiceAccountApiKeyData,
|
|
540
|
+
ServiceAccountApiKeyList as ServiceAccountApiKeyList,
|
|
541
|
+
ServiceAccountCredentialPolicy as ServiceAccountCredentialPolicy,
|
|
542
|
+
ServiceAccountCredentialPolicyInput as ServiceAccountCredentialPolicyInput,
|
|
543
|
+
ServiceAccountData as ServiceAccountData,
|
|
544
|
+
ServiceAccountDescription as ServiceAccountDescription,
|
|
545
|
+
ServiceAccountId as ServiceAccountId,
|
|
546
|
+
ServiceAccountList as ServiceAccountList,
|
|
547
|
+
ServiceAccountName as ServiceAccountName,
|
|
548
|
+
ServiceAccountStatus as ServiceAccountStatus,
|
|
549
|
+
ServiceQuotaExceededException as ServiceQuotaExceededException,
|
|
550
|
+
ServiceUnavailableException as ServiceUnavailableException,
|
|
551
|
+
ServiceUnavailableReason as ServiceUnavailableReason,
|
|
552
|
+
SkipFirstLine as SkipFirstLine,
|
|
553
|
+
SourceAccessible as SourceAccessible,
|
|
554
|
+
SpendCapData as SpendCapData,
|
|
555
|
+
SpendCapMicroUsd as SpendCapMicroUsd,
|
|
556
|
+
SpendCapReached as SpendCapReached,
|
|
557
|
+
StartAuditSearchInput as StartAuditSearchInput,
|
|
558
|
+
StartAuditSearchOutput as StartAuditSearchOutput,
|
|
559
|
+
StartExportInput as StartExportInput,
|
|
560
|
+
StartExportOutput as StartExportOutput,
|
|
561
|
+
StartImportFileUploadInput as StartImportFileUploadInput,
|
|
562
|
+
StartImportFileUploadOutput as StartImportFileUploadOutput,
|
|
563
|
+
StartImportInput as StartImportInput,
|
|
564
|
+
StartImportOutput as StartImportOutput,
|
|
565
|
+
StoppedStatements as StoppedStatements,
|
|
566
|
+
TestImportSourceInput as TestImportSourceInput,
|
|
567
|
+
TestImportSourceOutput as TestImportSourceOutput,
|
|
568
|
+
ThrottlingException as ThrottlingException,
|
|
569
|
+
TierCeilingMilliUnits as TierCeilingMilliUnits,
|
|
570
|
+
TierPool as TierPool,
|
|
571
|
+
Truncated as Truncated,
|
|
572
|
+
UpdateGraphBackupInput as UpdateGraphBackupInput,
|
|
573
|
+
UpdateGraphBackupOutput as UpdateGraphBackupOutput,
|
|
574
|
+
UpdateGraphBackupScheduleInput as UpdateGraphBackupScheduleInput,
|
|
575
|
+
UpdateGraphBackupScheduleOutput as UpdateGraphBackupScheduleOutput,
|
|
576
|
+
UpdateGraphGroupInput as UpdateGraphGroupInput,
|
|
577
|
+
UpdateGraphGroupOutput as UpdateGraphGroupOutput,
|
|
578
|
+
UpdateGraphInput as UpdateGraphInput,
|
|
579
|
+
UpdateGraphOutput as UpdateGraphOutput,
|
|
580
|
+
UpdateOrganizationInput as UpdateOrganizationInput,
|
|
581
|
+
UpdateOrganizationOutput as UpdateOrganizationOutput,
|
|
582
|
+
UpdateServiceAccountInput as UpdateServiceAccountInput,
|
|
583
|
+
UpdateServiceAccountOutput as UpdateServiceAccountOutput,
|
|
584
|
+
UploadImportSource as UploadImportSource,
|
|
585
|
+
UploadImportSourceState as UploadImportSourceState,
|
|
586
|
+
UploadPartNumber as UploadPartNumber,
|
|
587
|
+
UploadUrl as UploadUrl,
|
|
588
|
+
UploadedPartNumberList as UploadedPartNumberList,
|
|
589
|
+
UsageDay as UsageDay,
|
|
590
|
+
UsageDayList as UsageDayList,
|
|
591
|
+
UsageDayMeter as UsageDayMeter,
|
|
592
|
+
UsageDayMeterList as UsageDayMeterList,
|
|
593
|
+
UsageEstimate as UsageEstimate,
|
|
594
|
+
UsageLineItem as UsageLineItem,
|
|
595
|
+
UsageLineItemList as UsageLineItemList,
|
|
596
|
+
UsageLineMeter as UsageLineMeter,
|
|
597
|
+
UsageLineMeterList as UsageLineMeterList,
|
|
598
|
+
UsageStatus as UsageStatus,
|
|
599
|
+
UserId as UserId,
|
|
600
|
+
UserProfile as UserProfile,
|
|
601
|
+
ValidationException as ValidationException,
|
|
602
|
+
ValidationExceptionField as ValidationExceptionField,
|
|
603
|
+
ValidationExceptionFieldList as ValidationExceptionFieldList,
|
|
604
|
+
ValidationExceptionReason as ValidationExceptionReason,
|
|
605
|
+
ValidationFieldName as ValidationFieldName,
|
|
606
|
+
WriteData as WriteData,
|
|
607
|
+
WriteId as WriteId,
|
|
608
|
+
WriteRejectionReason as WriteRejectionReason,
|
|
609
|
+
WriteStatus as WriteStatus,
|
|
610
|
+
WriteUnits as WriteUnits,
|
|
611
|
+
)
|
|
612
|
+
from .runtime import UNSET as UNSET, ServiceError as ServiceError, LeylineException as LeylineException, NetworkError as NetworkError, ResponseMetadata as ResponseMetadata
|
|
613
|
+
from .timestamp import Timestamp as Timestamp
|
|
614
|
+
from .telemetry import TelemetryHook as TelemetryHook, OpenTelemetryHook as OpenTelemetryHook, OperationStarted as OperationStarted, AttemptStarted as AttemptStarted, AttemptFinished as AttemptFinished, OperationFinished as OperationFinished
|
leylinedb/auth.py
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""Bearer authentication for generated clients."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def preset_auth(request: httpx.Request) -> bool:
|
|
8
|
+
"""Whether the request already carries a bearer credential, which then wins over the configured token."""
|
|
9
|
+
value = request.headers.get("authorization", "")
|
|
10
|
+
present = value.lower().startswith("bearer ") and len(value) > len("bearer ")
|
|
11
|
+
if present:
|
|
12
|
+
request.extensions["crucible.credentials"] = True
|
|
13
|
+
return present
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def apply_auth(request: httpx.Request, token: object) -> None:
|
|
17
|
+
"""Send the token as a bearer credential."""
|
|
18
|
+
request.headers["authorization"] = f"Bearer {token}"
|
|
19
|
+
request.extensions["crucible.credentials"] = True
|