forked from apache/iceberg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrest-catalog-open-api.py
765 lines (567 loc) · 23.2 KB
/
rest-catalog-open-api.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
from __future__ import annotations
from typing import Any, Dict, List, Literal, Optional, Union
from pydantic import BaseModel, Extra, Field
class ErrorModel(BaseModel):
"""
JSON error payload returned in a response with further details on the error
"""
message: str = Field(..., description='Human-readable error message')
type: str = Field(
...,
description='Internal type definition of the error',
example='NoSuchNamespaceException',
)
code: int = Field(
..., description='HTTP response code', example=404, ge=400, le=600
)
stack: Optional[List[str]] = None
class CatalogConfig(BaseModel):
"""
Server-provided configuration for the catalog.
"""
overrides: Dict[str, str] = Field(
...,
description='Properties that should be used to override client configuration; applied after defaults and client configuration.',
)
defaults: Dict[str, str] = Field(
...,
description='Properties that should be used as default configuration; applied before client configuration.',
)
class UpdateNamespacePropertiesRequest(BaseModel):
removals: Optional[List[str]] = Field(
None, example=['department', 'access_group'], unique_items=True
)
updates: Optional[Dict[str, str]] = Field(
None, example={'owner': 'Hank Bendickson'}
)
class Namespace(BaseModel):
"""
Reference to one or more levels of a namespace
"""
__root__: List[str] = Field(
...,
description='Reference to one or more levels of a namespace',
example=['accounting', 'tax'],
)
class TableIdentifier(BaseModel):
namespace: Namespace
name: str
class PrimitiveType(BaseModel):
__root__: str = Field(..., example=['long', 'string', 'fixed[16]', 'decimal(10,2)'])
class ExpressionType(BaseModel):
__root__: str = Field(
...,
example=[
'eq',
'and',
'or',
'not',
'in',
'not-in',
'lt',
'lt-eq',
'gt',
'gt-eq',
'not-eq',
'starts-with',
'not-starts-with',
'is-null',
'not-null',
'is-nan',
'not-nan',
],
)
class Reference(BaseModel):
__root__: str = Field(..., example=['column-name'])
class Transform(BaseModel):
__root__: str = Field(
...,
example=[
'identity',
'year',
'month',
'day',
'hour',
'bucket[256]',
'truncate[16]',
],
)
class PartitionField(BaseModel):
field_id: Optional[int] = Field(None, alias='field-id')
source_id: int = Field(..., alias='source-id')
name: str
transform: Transform
class PartitionSpec(BaseModel):
spec_id: Optional[int] = Field(None, alias='spec-id')
fields: List[PartitionField]
class SortDirection(BaseModel):
__root__: Literal['asc', 'desc']
class NullOrder(BaseModel):
__root__: Literal['nulls-first', 'nulls-last']
class SortField(BaseModel):
source_id: int = Field(..., alias='source-id')
transform: Transform
direction: SortDirection
null_order: NullOrder = Field(..., alias='null-order')
class SortOrder(BaseModel):
order_id: int = Field(..., alias='order-id')
fields: List[SortField]
class Summary(BaseModel):
operation: Literal['append', 'replace', 'overwrite', 'delete']
additionalProperties: Optional[str] = None
class Snapshot(BaseModel):
snapshot_id: int = Field(..., alias='snapshot-id')
parent_snapshot_id: Optional[int] = Field(None, alias='parent-snapshot-id')
sequence_number: Optional[int] = Field(None, alias='sequence-number')
timestamp_ms: int = Field(..., alias='timestamp-ms')
manifest_list: str = Field(
...,
alias='manifest-list',
description="Location of the snapshot's manifest list file",
)
summary: Summary
schema_id: Optional[int] = Field(None, alias='schema-id')
class SnapshotReference(BaseModel):
type: Literal['tag', 'branch']
snapshot_id: int = Field(..., alias='snapshot-id')
max_ref_age_ms: Optional[int] = Field(None, alias='max-ref-age-ms')
max_snapshot_age_ms: Optional[int] = Field(None, alias='max-snapshot-age-ms')
min_snapshots_to_keep: Optional[int] = Field(None, alias='min-snapshots-to-keep')
class SnapshotReferences(BaseModel):
__root__: Optional[Dict[str, SnapshotReference]] = None
class SnapshotLogItem(BaseModel):
snapshot_id: int = Field(..., alias='snapshot-id')
timestamp_ms: int = Field(..., alias='timestamp-ms')
class SnapshotLog(BaseModel):
__root__: List[SnapshotLogItem]
class MetadataLogItem(BaseModel):
metadata_file: str = Field(..., alias='metadata-file')
timestamp_ms: int = Field(..., alias='timestamp-ms')
class MetadataLog(BaseModel):
__root__: List[MetadataLogItem]
class BaseUpdate(BaseModel):
action: Literal[
'assign-uuid',
'upgrade-format-version',
'add-schema',
'set-current-schema',
'add-spec',
'set-default-spec',
'add-sort-order',
'set-default-sort-order',
'add-snapshot',
'set-snapshot-ref',
'remove-snapshots',
'remove-snapshot-ref',
'set-location',
'set-properties',
'remove-properties',
]
class AssignUUIDUpdate(BaseUpdate):
"""
Assigning a UUID to a table/view should only be done when creating the table/view. It is not safe to re-assign the UUID if a table/view already has a UUID assigned
"""
uuid: str
class UpgradeFormatVersionUpdate(BaseUpdate):
format_version: int = Field(..., alias='format-version')
class SetCurrentSchemaUpdate(BaseUpdate):
schema_id: int = Field(
...,
alias='schema-id',
description='Schema ID to set as current, or -1 to set last added schema',
)
class AddPartitionSpecUpdate(BaseUpdate):
spec: PartitionSpec
class SetDefaultSpecUpdate(BaseUpdate):
spec_id: int = Field(
...,
alias='spec-id',
description='Partition spec ID to set as the default, or -1 to set last added spec',
)
class AddSortOrderUpdate(BaseUpdate):
sort_order: SortOrder = Field(..., alias='sort-order')
class SetDefaultSortOrderUpdate(BaseUpdate):
sort_order_id: int = Field(
...,
alias='sort-order-id',
description='Sort order ID to set as the default, or -1 to set last added sort order',
)
class AddSnapshotUpdate(BaseUpdate):
snapshot: Snapshot
class SetSnapshotRefUpdate(BaseUpdate, SnapshotReference):
ref_name: str = Field(..., alias='ref-name')
class RemoveSnapshotsUpdate(BaseUpdate):
snapshot_ids: List[int] = Field(..., alias='snapshot-ids')
class RemoveSnapshotRefUpdate(BaseUpdate):
ref_name: str = Field(..., alias='ref-name')
class SetLocationUpdate(BaseUpdate):
location: str
class SetPropertiesUpdate(BaseUpdate):
updates: Dict[str, str]
class RemovePropertiesUpdate(BaseUpdate):
removals: List[str]
class TableRequirement(BaseModel):
"""
Assertions from the client that must be valid for the commit to succeed. Assertions are identified by `type` -
- `assert-create` - the table must not already exist; used for create transactions
- `assert-table-uuid` - the table UUID must match the requirement's `uuid`
- `assert-ref-snapshot-id` - the table branch or tag identified by the requirement's `ref` must reference the requirement's `snapshot-id`; if `snapshot-id` is `null` or missing, the ref must not already exist
- `assert-last-assigned-field-id` - the table's last assigned column id must match the requirement's `last-assigned-field-id`
- `assert-current-schema-id` - the table's current schema id must match the requirement's `current-schema-id`
- `assert-last-assigned-partition-id` - the table's last assigned partition id must match the requirement's `last-assigned-partition-id`
- `assert-default-spec-id` - the table's default spec id must match the requirement's `default-spec-id`
- `assert-default-sort-order-id` - the table's default sort order id must match the requirement's `default-sort-order-id`
"""
type: Literal[
'assert-create',
'assert-table-uuid',
'assert-ref-snapshot-id',
'assert-last-assigned-field-id',
'assert-current-schema-id',
'assert-last-assigned-partition-id',
'assert-default-spec-id',
'assert-default-sort-order-id',
]
ref: Optional[str] = None
uuid: Optional[str] = None
snapshot_id: Optional[int] = Field(None, alias='snapshot-id')
last_assigned_field_id: Optional[int] = Field(None, alias='last-assigned-field-id')
current_schema_id: Optional[int] = Field(None, alias='current-schema-id')
last_assigned_partition_id: Optional[int] = Field(
None, alias='last-assigned-partition-id'
)
default_spec_id: Optional[int] = Field(None, alias='default-spec-id')
default_sort_order_id: Optional[int] = Field(None, alias='default-sort-order-id')
class RegisterTableRequest(BaseModel):
name: str
metadata_location: str = Field(..., alias='metadata-location')
class TokenType(BaseModel):
__root__: Literal[
'urn:ietf:params:oauth:token-type:access_token',
'urn:ietf:params:oauth:token-type:refresh_token',
'urn:ietf:params:oauth:token-type:id_token',
'urn:ietf:params:oauth:token-type:saml1',
'urn:ietf:params:oauth:token-type:saml2',
'urn:ietf:params:oauth:token-type:jwt',
] = Field(
...,
description='Token type identifier, from RFC 8693 Section 3\n\nSee https://datatracker.ietf.org/doc/html/rfc8693#section-3',
)
class OAuthClientCredentialsRequest(BaseModel):
"""
OAuth2 client credentials request
See https://datatracker.ietf.org/doc/html/rfc6749#section-4.4
"""
grant_type: Literal['client_credentials']
scope: Optional[str] = None
client_id: str = Field(
...,
description='Client ID\n\nThis can be sent in the request body, but OAuth2 recommends sending it in a Basic Authorization header.',
)
client_secret: str = Field(
...,
description='Client secret\n\nThis can be sent in the request body, but OAuth2 recommends sending it in a Basic Authorization header.',
)
class OAuthTokenExchangeRequest(BaseModel):
"""
OAuth2 token exchange request
See https://datatracker.ietf.org/doc/html/rfc8693
"""
grant_type: Literal['urn:ietf:params:oauth:grant-type:token-exchange']
scope: Optional[str] = None
requested_token_type: Optional[TokenType] = None
subject_token: str = Field(
..., description='Subject token for token exchange request'
)
subject_token_type: TokenType
actor_token: Optional[str] = Field(
None, description='Actor token for token exchange request'
)
actor_token_type: Optional[TokenType] = None
class OAuthTokenRequest(BaseModel):
__root__: Union[OAuthClientCredentialsRequest, OAuthTokenExchangeRequest]
class CounterResult(BaseModel):
unit: str
value: int
class TimerResult(BaseModel):
time_unit: str = Field(..., alias='time-unit')
count: int
total_duration: int = Field(..., alias='total-duration')
class MetricResult(BaseModel):
__root__: Union[CounterResult, TimerResult]
class Metrics(BaseModel):
__root__: Optional[Dict[str, MetricResult]] = None
class CommitReport(BaseModel):
table_name: str = Field(..., alias='table-name')
snapshot_id: int = Field(..., alias='snapshot-id')
sequence_number: int = Field(..., alias='sequence-number')
operation: str
metrics: Metrics
metadata: Optional[Dict[str, str]] = None
class OAuthError(BaseModel):
error: Literal[
'invalid_request',
'invalid_client',
'invalid_grant',
'unauthorized_client',
'unsupported_grant_type',
'invalid_scope',
]
error_description: Optional[str] = None
error_uri: Optional[str] = None
class OAuthTokenResponse(BaseModel):
access_token: str = Field(
..., description='The access token, for client credentials or token exchange'
)
token_type: Literal['bearer', 'mac', 'N_A'] = Field(
...,
description='Access token type for client credentials or token exchange\n\nSee https://datatracker.ietf.org/doc/html/rfc6749#section-7.1',
)
expires_in: Optional[int] = Field(
None,
description='Lifetime of the access token in seconds for client credentials or token exchange',
)
issued_token_type: Optional[TokenType] = None
refresh_token: Optional[str] = Field(
None, description='Refresh token for client credentials or token exchange'
)
scope: Optional[str] = Field(
None, description='Authorization scope for client credentials or token exchange'
)
class IcebergErrorResponse(BaseModel):
"""
JSON wrapper for all error responses (non-2xx)
"""
class Config:
extra = Extra.forbid
error: ErrorModel
class CreateNamespaceResponse(BaseModel):
namespace: Namespace
properties: Optional[Dict[str, str]] = Field(
{},
description='Properties stored on the namespace, if supported by the server.',
example={'owner': 'Ralph', 'created_at': '1452120468'},
)
class GetNamespaceResponse(BaseModel):
namespace: Namespace
properties: Optional[Dict[str, str]] = Field(
{},
description='Properties stored on the namespace, if supported by the server. If the server does not support namespace properties, it should return null for this field. If namespace properties are supported, but none are set, it should return an empty object.',
example={'owner': 'Ralph', 'transient_lastDdlTime': '1452120468'},
)
class ListTablesResponse(BaseModel):
identifiers: Optional[List[TableIdentifier]] = Field(None, unique_items=True)
class ListNamespacesResponse(BaseModel):
namespaces: Optional[List[Namespace]] = Field(None, unique_items=True)
class UpdateNamespacePropertiesResponse(BaseModel):
updated: List[str] = Field(
...,
description='List of property keys that were added or updated',
unique_items=True,
)
removed: List[str] = Field(..., description='List of properties that were removed')
missing: Optional[List[str]] = Field(
None,
description="List of properties requested for removal that were not found in the namespace's properties. Represents a partial success response. Server's do not need to implement this.",
)
class CreateNamespaceRequest(BaseModel):
namespace: Namespace
properties: Optional[Dict[str, str]] = Field(
{},
description='Configured string to string map of properties for the namespace',
example={'owner': 'Hank Bendickson'},
)
class RenameTableRequest(BaseModel):
source: TableIdentifier
destination: TableIdentifier
class TransformTerm(BaseModel):
type: Literal['transform']
transform: Transform
term: Reference
class ReportMetricsRequest1(CommitReport):
report_type: str = Field(..., alias='report-type')
class Term(BaseModel):
__root__: Union[Reference, TransformTerm]
class UnaryExpression(BaseModel):
type: ExpressionType
term: Term
value: Dict[str, Any]
class LiteralExpression(BaseModel):
type: ExpressionType
term: Term
value: Dict[str, Any]
class SetExpression(BaseModel):
type: ExpressionType
term: Term
values: List[Dict[str, Any]]
class StructField(BaseModel):
id: int
name: str
type: Type
required: bool
doc: Optional[str] = None
class StructType(BaseModel):
type: Literal['struct']
fields: List[StructField]
class ListType(BaseModel):
type: Literal['list']
element_id: int = Field(..., alias='element-id')
element: Type
element_required: bool = Field(..., alias='element-required')
class MapType(BaseModel):
type: Literal['map']
key_id: int = Field(..., alias='key-id')
key: Type
value_id: int = Field(..., alias='value-id')
value: Type
value_required: bool = Field(..., alias='value-required')
class Type(BaseModel):
__root__: Union[PrimitiveType, StructType, ListType, MapType]
class Expression(BaseModel):
__root__: Union[
AndOrExpression,
NotExpression,
SetExpression,
LiteralExpression,
UnaryExpression,
]
class AndOrExpression(BaseModel):
type: ExpressionType
left: Expression
right: Expression
class NotExpression(BaseModel):
type: ExpressionType
child: Expression
class TableMetadata(BaseModel):
format_version: int = Field(..., alias='format-version', ge=1, le=2)
table_uuid: str = Field(..., alias='table-uuid')
location: Optional[str] = None
last_updated_ms: Optional[int] = Field(None, alias='last-updated-ms')
properties: Optional[Dict[str, str]] = None
schemas: Optional[List[Schema]] = None
current_schema_id: Optional[int] = Field(None, alias='current-schema-id')
last_column_id: Optional[int] = Field(None, alias='last-column-id')
partition_specs: Optional[List[PartitionSpec]] = Field(
None, alias='partition-specs'
)
default_spec_id: Optional[int] = Field(None, alias='default-spec-id')
last_partition_id: Optional[int] = Field(None, alias='last-partition-id')
sort_orders: Optional[List[SortOrder]] = Field(None, alias='sort-orders')
default_sort_order_id: Optional[int] = Field(None, alias='default-sort-order-id')
snapshots: Optional[List[Snapshot]] = None
refs: Optional[SnapshotReferences] = None
current_snapshot_id: Optional[int] = Field(None, alias='current-snapshot-id')
last_sequence_number: Optional[int] = Field(None, alias='last-sequence-number')
snapshot_log: Optional[SnapshotLog] = Field(None, alias='snapshot-log')
metadata_log: Optional[MetadataLog] = Field(None, alias='metadata-log')
class AddSchemaUpdate(BaseUpdate):
schema_: Schema = Field(..., alias='schema')
last_column_id: Optional[int] = Field(
None,
alias='last-column-id',
description='The highest assigned column ID for the table. This is used to ensure columns are always assigned an unused ID when evolving schemas. When omitted, it will be computed on the server side.',
)
class TableUpdate(BaseModel):
__root__: Union[
AssignUUIDUpdate,
UpgradeFormatVersionUpdate,
AddSchemaUpdate,
SetCurrentSchemaUpdate,
AddPartitionSpecUpdate,
SetDefaultSpecUpdate,
AddSortOrderUpdate,
SetDefaultSortOrderUpdate,
AddSnapshotUpdate,
SetSnapshotRefUpdate,
RemoveSnapshotsUpdate,
RemoveSnapshotRefUpdate,
SetLocationUpdate,
SetPropertiesUpdate,
RemovePropertiesUpdate,
]
class LoadTableResult(BaseModel):
"""
Result used when a table is successfully loaded.
The table metadata JSON is returned in the `metadata` field. The corresponding file location of table metadata should be returned in the `metadata-location` field, unless the metadata is not yet committed. For example, a create transaction may return metadata that is staged but not committed.
Clients can check whether metadata has changed by comparing metadata locations after the table has been created.
The `config` map returns table-specific configuration for the table's resources, including its HTTP client and FileIO. For example, config may contain a specific FileIO implementation class for the table depending on its underlying storage.
The following configurations should be respected by clients:
## General Configurations
- `token`: Authorization bearer token to use for table requests if OAuth2 security is enabled
## AWS Configurations
The following configurations should be respected when working with tables stored in AWS S3
- `client.region`: region to configure client for making requests to AWS
- `s3.access-key-id`: id for for credentials that provide access to the data in S3
- `s3.secret-access-key`: secret for credentials that provide access to data in S3
- `s3.session-token`: if present, this value should be used for as the session token
- `s3.remote-signing-enabled`: if `true` remote signing should be performed as described in the `s3-signer-open-api.yaml` specification
"""
metadata_location: Optional[str] = Field(
None,
alias='metadata-location',
description='May be null if the table is staged as part of a transaction',
)
metadata: TableMetadata
config: Optional[Dict[str, str]] = None
class CommitTableRequest(BaseModel):
identifier: Optional[TableIdentifier] = Field(
None,
description='Table identifier to update; must be present for CommitTransactionRequest',
)
requirements: List[TableRequirement]
updates: List[TableUpdate]
class CommitTransactionRequest(BaseModel):
table_changes: List[CommitTableRequest] = Field(..., alias='table-changes')
class CreateTableRequest(BaseModel):
name: str
location: Optional[str] = None
schema_: Schema = Field(..., alias='schema')
partition_spec: Optional[PartitionSpec] = Field(None, alias='partition-spec')
write_order: Optional[SortOrder] = Field(None, alias='write-order')
stage_create: Optional[bool] = Field(None, alias='stage-create')
properties: Optional[Dict[str, str]] = None
class ReportMetricsRequest2(BaseModel):
__root__: Union[ReportMetricsRequest, ReportMetricsRequest1]
class ScanReport(BaseModel):
table_name: str = Field(..., alias='table-name')
snapshot_id: int = Field(..., alias='snapshot-id')
filter: Expression
schema_id: int = Field(..., alias='schema-id')
projected_field_ids: List[int] = Field(..., alias='projected-field-ids')
projected_field_names: List[str] = Field(..., alias='projected-field-names')
metrics: Metrics
metadata: Optional[Dict[str, str]] = None
class CommitTableResponse(BaseModel):
metadata_location: str = Field(..., alias='metadata-location')
metadata: TableMetadata
class Schema(StructType):
schema_id: Optional[int] = Field(None, alias='schema-id')
identifier_field_ids: Optional[List[int]] = Field(
None, alias='identifier-field-ids'
)
class ReportMetricsRequest(ScanReport):
report_type: str = Field(..., alias='report-type')
StructField.update_forward_refs()
ListType.update_forward_refs()
MapType.update_forward_refs()
Expression.update_forward_refs()
TableMetadata.update_forward_refs()
AddSchemaUpdate.update_forward_refs()
CreateTableRequest.update_forward_refs()
ReportMetricsRequest2.update_forward_refs()