-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi-v1.yaml
10050 lines (9703 loc) · 284 KB
/
openapi-v1.yaml
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
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
swagger: "2.0"
info:
description: TileDB Storage Platform REST API
title: TileDB Storage Platform API
version: 2.2.19
produces:
- application/json
consumes:
- application/json
schemes:
- http
- https
basePath: /v1
securityDefinitions:
BasicAuth:
type: basic
ApiKeyAuth:
type: apiKey
in: header
name: X-TILEDB-REST-API-KEY
OAuth2:
type: oauth2
flow: accessCode
authorizationUrl: https://oauth2.tiledb.com/oauth2/authorize
tokenUrl: https://oauth2.tiledb.com/oauth2/token
scopes:
read: Grants read access
write: Grants write access
admin: Grants read and write access to administrative information
security:
- BasicAuth: []
- ApiKeyAuth: []
# Commented out beacause this breaks the python autogenerated client
# It always sets the Bearer authorization header even when empty :/
# - OAuth2: [read, write, admin]
definitions:
ArrayType:
description: TileDB array type
type: string
enum:
# Dense array
- dense
# Sparse array
- sparse
Datatype:
description: TileDB data type
type: string
enum:
# 32-bit signed integer
- INT32
# 64-bit signed integer
- INT64
# 32-bit floating point value
- FLOAT32
# 64-bit floating point value
- FLOAT64
# Character
- CHAR
# 8-bit signed integer
- INT8
# 8-bit unsigned integer
- UINT8
# 16-bit signed integer
- INT16
# 16-bit unsigned integer
- UINT16
# 32-bit unsigned integer
- UINT32
# 64-bit unsigned integer
- UINT64
# ASCII string
- STRING_ASCII
# UTF-8 string
- STRING_UTF8
# UTF-16 string
- STRING_UTF16
# UTF-32 string
- STRING_UTF32
# UCS2 string
- STRING_UCS2
# UCS4 string
- STRING_UCS4
# This can be any datatype. Must store (type tag, value) pairs.
- ANY
ActivityEventType:
description: Type of activity logged
type: string
enum:
# read_schema operation
- read_schema
# max_buffer_sizes operation
- max_buffer_sizes
# non_empty_domain operation
- non_empty_domain
# query read operation
- query_read
# query write operation
- query_write
# query delete operation
- query_delete
# create operation
- create
# delete operation
- delete
# register operation
- register
# deregister operation
- deregister
# udf operations
- udf
# get array metadata operation
- array_metadata_get
# update array metadata operation
- array_metadata_update
# estimated_result_sizes
- estimated_result_sizes
# read_fragment_info
- read_fragment_info
UDFLanguage:
description: UDF Type
type: string
enum:
# python
- python
# r
- r
UDFType:
description: UDF Type
type: string
enum:
# multi_array
- multi_array
# single_array
- single_array
# generic
- generic
ResultFormat:
description: "Data format of a result"
type: string
enum:
- python_pickle
- r_serialization
- json
- arrow
- bytes
# Raw binary data, not interpreted by the loader.
- tiledb_json
# The format used to encode argument values for a task graph: JSON
# as deeply as possible, but any value that cannot be JSON-encoded
# is replaced with a TGArgValue.
- native # DEPRECATED. Use the language-specific values instead.
Layout:
description: Layout of array
type: string
enum:
# Row-major layout
- row-major
# Column-major layout
- col-major
# Global-order layout
- global-order
# Unordered layout
- unordered
Querytype:
description: Type of query
type: string
enum:
# READ
- READ
# Write
- WRITE
# Delete
- DELETE
Querystatus:
description: Status of query
type: string
enum:
# FAILED
- FAILED
# COMPLETED
- COMPLETED
# INPROGRESS
- INPROGRESS
# INCOMPLETE
- INCOMPLETE
# UNINITIALIZED
- UNINITIALIZED
FilterType:
description: TileDB filter types
type: string
enum:
# No-op filter
- FILTER_NONE
# Gzip compressor
- FILTER_GZIP
# Zstandard compressor
- FILTER_ZSTD
# LZ4 compressor
- FILTER_LZ4
# Run-length encoding compressor
- FILTER_RLE
# Bzip2 compressor
- FILTER_BZIP2
# Double-delta compressor
- FILTER_DOUBLE_DELTA
# Bit width reduction filter.
- FILTER_BIT_WIDTH_REDUCTION
# Bitshuffle filter.
- FILTER_BITSHUFFLE
# Byteshuffle filter.
- FILTER_BYTESHUFFLE
# Positive-delta encoding filter.
- FILTER_POSITIVE_DELTA
FilterOption:
description: TileDB filter option
type: string
enum:
# Compression level. Type: `int32_t`
- COMPRESSION_LEVEL
# Max window length for bit width reduction. Type: `uint32_t`
- BIT_WIDTH_MAX_WINDOW
# Max window length for positive-delta encoding. Type: `uint32_t`.
- POSITIVE_DELTA_MAX_WINDOW
OrganizationRoles:
description: role user has in organization
type: string
enum:
# Owner/creator of group
- owner
# Admin almost all rights but can't delete organization
- admin
# Read and write User
- read_write
# Read Only User
- read_only
ArrayActions:
description: actions a user can take on an array
type: string
enum:
# Read
- read
# Write
- write
# Edit metadata about array
- edit
# View logs for array
- read_array_logs
# Permission to get array info
- read_array_info
# Permission to fetch the array schema
- read_array_schema
UDFActions:
description: actions a user can take on a UDF
type: string
enum:
# Fetch UDF and run jobs
- fetch_udf
# Share UDF with others
- share_udf
NamespaceActions:
description: actions a user can take on an organization
type: string
enum:
# Fetch details about namespace and read arrays in namespace
- read
# Write to arrays inside namespace
- write
# Create arrays inside namespace
- create
# Delete/Deregister arrays in namespace
- delete
# Edit array metadata
- edit
# View logs for array
- read_array_logs
# View logs for job
- read_job_logs
# View change logs for namespace
- read_object_logs
# Run job
- run_job
# Delete an organization
- delete_organization
# Edit organization details
- edit_organization
# Edit billing details
- edit_billing
DomainArray:
description: Domain object for an array of each type
type: object
properties:
int8:
type: array
x-omitempty: true
items:
type: integer
format: int8
uint8:
type: array
x-omitempty: true
items:
type: integer
format: uint8
int16:
type: array
x-omitempty: true
items:
type: integer
format: int16
uint16:
type: array
x-omitempty: true
items:
type: integer
format: uint16
int32:
type: array
x-omitempty: true
items:
type: integer
format: int32
uint32:
type: array
x-omitempty: true
items:
type: integer
format: uint32
int64:
type: array
x-omitempty: true
items:
type: integer
format: int64
uint64:
type: array
x-omitempty: true
items:
type: integer
format: uint64
float32:
type: array
x-omitempty: true
items:
type: number
format: float
float64:
type: array
x-omitempty: true
items:
type: number
format: double
Array:
description: Represents an open array
type: object
required:
- timestamp
- queryType
- uri
properties:
timestamp:
description: timestamp (epoch milliseconds) array is opened at
type: number
format: uint64
example: 1540471791873
queryType:
description: Array opened for query type
$ref: "#/definitions/Querytype"
uri:
description: Array uri
type: string
Attribute:
description: Attribute of array
type: object
required:
- name
- type
- filterPipeline
- cellValNum
properties:
name:
description: Attribute name
type: string
example: attribute1
type:
$ref: "#/definitions/Datatype"
filterPipeline:
$ref: "#/definitions/FilterPipeline"
cellValNum:
description: Attribute number of values per cell
type: integer
example: 1
nullable:
description: Is attribute nullable
type: boolean
example: true
fillValue:
description: The default fill value
type: array
items:
type: integer
format: uint8
Dimension:
description: Dimension of array
type: object
required:
- type
- domain
- nullTileExtent
properties:
name:
description: Dimension name
type: string
example: "row"
type:
$ref: "#/definitions/Datatype"
domain:
description: extent of domain
$ref: "#/definitions/DomainArray"
nullTileExtent:
description: Is tile extent null
type: boolean
example: true
tileExtent:
description: Extent of tile
type: object
properties:
int8:
type: integer
format: int8
uint8:
type: integer
format: uint8
int16:
type: integer
format: int16
uint16:
type: integer
format: uint16
int32:
type: integer
format: int32
uint32:
type: integer
format: uint32
int64:
type: integer
format: int64
uint64:
type: integer
format: uint64
float32:
type: integer
format: float
float64:
type: integer
format: double
filterPipeline:
x-omit-empty: true
$ref: "#/definitions/FilterPipeline"
Domain:
description: Domain of array
type: object
required:
- type
- tileOrder
- cellOrder
- dimensions
properties:
type:
$ref: "#/definitions/Datatype"
description: Domain Type
tileOrder:
$ref: "#/definitions/Layout"
description: Tile Order
cellOrder:
$ref: "#/definitions/Layout"
description: Cell Order
dimensions:
type: array
description: Array of dimensions
items:
$ref: "#/definitions/Dimension"
Filter:
description: Filter
type: object
required:
- type
properties:
type:
description: Filter type
$ref: "#/definitions/FilterType"
data:
description: Filter data
type: object
properties:
int8:
type: integer
format: int8
uint8:
type: integer
format: uint8
int16:
type: integer
format: int16
uint16:
type: integer
format: uint16
int32:
type: integer
format: int32
uint32:
type: integer
format: uint32
int64:
type: integer
format: int64
uint64:
type: integer
format: uint64
float32:
type: integer
format: float
float64:
type: integer
format: double
FilterPipeline:
description: One or more filters to apply
type: object
properties:
filters:
type: array
x-omitempty: true
items:
$ref: "#/definitions/Filter"
ArraySchema:
description: ArraySchema during creation or retrieval
type: object
required:
- version
- arrayType
- tileOrder
- cellOrder
- capacity
- coordsFilterPipeline
- offsetFilterPipeline
- domain
- attributes
properties:
uri:
description: URI of schema
type: string
example: "s3://<bucket>/test_array"
version:
description: file format version
type: array
x-omitempty: true
items:
type: integer
example: [1, 3, 0]
arrayType:
$ref: "#/definitions/ArrayType"
description: Type of array
example: sparse
tileOrder:
description: Tile order setting of array
$ref: "#/definitions/Layout"
example: row-major
cellOrder:
description: Order of cells
$ref: "#/definitions/Layout"
example: row-major
capacity:
description: Capacity of array
type: integer
format: uint64
example: 100000
coordsFilterPipeline:
description: Filter pipeline used for coordinates (enum)
$ref: "#/definitions/FilterPipeline"
offsetFilterPipeline:
description: Filter pipeline use for variable offsets (enum)
$ref: "#/definitions/FilterPipeline"
domain:
description: Domain of array
$ref: "#/definitions/Domain"
attributes:
description: Attributes of array
type: array
x-omitempty: true
items:
$ref: "#/definitions/Attribute"
allowsDuplicates:
description: True if the array allows coordinate duplicates. Applicable only to sparse arrays.
type: boolean
x-go-type:
import:
package: "github.com/TileDB-Inc/TileDB-Go"
alias: "tiledb"
type: "ArraySchema"
AttributeBufferHeader:
description: Represents an attribute buffer header information
type: object
required:
- name
- fixedLenBufferSizeInBytes
- varLenBufferSizeInBytes
properties:
name:
description: Attribute name
type: string
example: "attribute1"
fixedLenBufferSizeInBytes:
description: Number of bytes in the fixed-length attribute data buffer (offsets for var-len attributes)
type: integer
format: uint64
varLenBufferSizeInBytes:
description: Number of bytes in the var-length attribute data buffer
type: integer
format: uint64
Writer:
type: object
properties:
checkCoordDups:
type: boolean
checkCoordOOB:
type: boolean
dedupCoords:
type: boolean
subarray:
$ref: "#/definitions/DomainArray"
SubarrayRanges:
description: A set of 1D ranges for a subarray
type: object
properties:
type:
$ref: "#/definitions/Datatype"
hasDefaultRange:
description: True if the range is the default range
type: boolean
buffer:
description: The bytes of the ranges
type: array
items:
type: integer
format: uint8
Subarray:
description: A Subarray
type: object
properties:
layout:
$ref: "#/definitions/Layout"
ranges:
description: List of 1D ranges, one per dimension
type: array
x-omitempty: true
items:
$ref: "#/definitions/SubarrayRanges"
SubarrayPartitioner:
description: The subarray partitioner
type: object
properties:
subarray:
$ref: "#/definitions/Subarray"
budget:
description: Result size budget (in bytes) for all attributes.
type: array
x-omitempty: true
items:
$ref: "#/definitions/AttributeBufferSize"
current:
description: The current partition info
type: object
properties:
subarray:
$ref: "#/definitions/Subarray"
start:
description: PartitionInfo start
type: integer
format: uint64
end:
description: PartitionInfo end
type: integer
format: uint64
splitMultiRange:
description: PartitionInfo splitMultiRange
type: boolean
state:
description: The state information for the remaining partitions to be produced
type: object
properties:
start:
description: State start
type: integer
format: uint64
end:
description: State end
type: integer
format: uint64
singleRange:
description: State singleRange
type: array
x-omitempty: true
items:
$ref: "#/definitions/Subarray"
multiRange:
description: State multiRange
type: array
x-omitempty: true
items:
$ref: "#/definitions/Subarray"
memoryBudget:
description: The memory budget for the fixed-sized attributes and the offsets of the var-sized attributes
type: integer
format: uint64
memoryBudgetVar:
description: The memory budget for the var-sized attributes
type: integer
format: uint64
ReadState:
description: state for reads
type: object
properties:
initialized:
description: True if the reader has been initialized.
type: boolean
overflowed:
description: True if the query produced results that could not fit in some buffer.
type: boolean
unsplittable:
description: True if the current subarray partition is unsplittable.
type: boolean
subarrayPartitioner:
$ref: "#/definitions/SubarrayPartitioner"
QueryReader:
description: Read struct (can't be called reader due to class name conflict)
type: object
properties:
layout:
$ref: "#/definitions/Layout"
subarray:
$ref: "#/definitions/Subarray"
readState:
description: To handle incomplete read queries.
$ref: "#/definitions/ReadState"
varOffsetsMode:
description: The offsets format (bytes or elements) to be used.
type: string
varOffsetsAddExtraElement:
description: True if an extra element will be added to the end of the offsets buffer.
type: boolean
varOffsetsBitsize:
description: The offsets bitsize (32 or 64) to be used.
type: integer
format: uint32
Query:
type: object
required:
- type
- attributeBufferHeaders
- layout
- status
- array
- totalFixedLengthBufferBytes
- totalVarLenBufferBytes
properties:
type:
$ref: "#/definitions/Querytype"
layout:
$ref: "#/definitions/Layout"
status:
$ref: "#/definitions/Querystatus"
attributeBufferHeaders:
description: List of attribute buffer headers
type: array
x-omitempty: true
items:
$ref: "#/definitions/AttributeBufferHeader"
writer:
description: writer contains data needed for continuation of global write order queries
$ref: "#/definitions/Writer"
reader:
description: reader contains data needed for continuation of reads
$ref: "#/definitions/QueryReader"
array:
description: Represents an open array
$ref: "#/definitions/Array"
totalFixedLengthBufferBytes:
description: Total number of bytes in fixed size attribute buffers.
type: integer
format: uint64
totalVarLenBufferBytes:
description: Total number of bytes in variable size attribute buffers.
type: integer
format: uint64
x-go-type:
import:
package: "github.com/TileDB-Inc/TileDB-Go"
alias: "tiledb"
type: "Query"
NonEmptyDomain:
type: object
description: object representing a non-empty domain
required:
- nonEmptyDomain
- isEmpty
properties:
nonEmptyDomain:
description: Non Empty Domain of array
$ref: "#/definitions/DomainArray"
isEmpty:
description: Is non-empty domain really empty?
type: boolean
example: False
AttributeBufferSize:
type: object
description: object representing buffer size of an attribute
required:
- attribute
- offsetBytes
- dataBytes
properties:
attribute:
description: name of attribute
type: string
offsetBytes:
description: buffer size (in bytes) of offset buffer
type: integer
format: uint64
dataBytes:
description: buffer size (in bytes) of data buffer
type: integer
format: uint64
MaxBufferSizes:
type: object
description: a list of max buffer sizes, one per attribute
properties:
maxBufferSizes:
type: array
x-omitempty: true
items:
$ref: "#/definitions/AttributeBufferSize"
ArrayMetadataEntry:
type: object
description: key/value pair representing an array metadata map entry
properties:
key:
type: string
type:
type: string
valueNum:
type: integer
format: uint32
value:
type: array
items:
type: integer
format: uint8
del:
type: boolean
ArrayMetadata:
type: object
description: user's TileDB array metadata
properties:
entries:
description: List of metadata entries
type: array
x-omitempty: true
items:
$ref: "#/definitions/ArrayMetadataEntry"
TileDBConfig:
description: TileDB config used for interaction with the embedded library
type: object
properties:
entries:
type: array
items:
type: object
properties:
key:
type: string
value:
type: string
ArrayActivityLog:
description: Actvity of an Array
type: object
properties:
event_at:
description: time event took place (RFC3339)
type: string
format: date-time
action:
description: Type of the event
$ref: "#/definitions/ActivityEventType"
username:
description: User who performed action
type: string
example: "user1"
bytes_sent:
description: Bytes sent to client
type: integer
format: uint64
example: 1073741824
bytes_received:
description: Bytes recieved from client
type: integer
format: uint64
example: 1073741824
array_task_id:
description: UUID of associated array task
type: string
example: "00000000-0000-0000-0000-000000000000"
id:
description: ID of the activity
type: string
example: "00000000-0000-0000-0000-000000000000"
query_ranges:
description: ranges for query
x-omitempty: true
type: string
example: '{"rows":[{"start": 1, "end": 1},{"start": 3, "end": 4}],"cols":[{"start": 1, "end": 4}]}'
query_stats:
description: stats for query
x-omitempty: true
type: string
example: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": 191, "...": "..."}}'
ArrayTaskType:
description: Synchronous Task Type
type: string
enum:
- SQL
- UDF
- QUERY
- GENERIC_UDF
- BATCH_UDF
- CLIENT_COMPUTATION
ArrayTaskStatus:
description: Status of array task
type: string
enum:
- QUEUED
- FAILED
- COMPLETED
- RUNNING
- RESOURCES_UNAVAILABLE
- UNKNOWN
- CANCELLED
- DENIED # Deprecated; used to mean RESOURCES_UNAVAILABLE.
ArrayTaskLog:
description: Array task stderr/stdout logs