@flyteorg/flyteidl 0.24.18 → 0.24.21

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.
@@ -0,0 +1,1237 @@
1
+ ######################
2
+ Protocol Documentation
3
+ ######################
4
+
5
+
6
+
7
+
8
+ .. _ref_flyteidl/datacatalog/datacatalog.proto:
9
+
10
+ flyteidl/datacatalog/datacatalog.proto
11
+ ==================================================================
12
+
13
+
14
+
15
+
16
+
17
+ .. _ref_datacatalog.AddTagRequest:
18
+
19
+ AddTagRequest
20
+ ------------------------------------------------------------------
21
+
22
+ Request message for tagging an Artifact.
23
+
24
+
25
+
26
+ .. csv-table:: AddTagRequest type fields
27
+ :header: "Field", "Type", "Label", "Description"
28
+ :widths: auto
29
+
30
+ "tag", ":ref:`ref_datacatalog.Tag`", "", ""
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+ .. _ref_datacatalog.AddTagResponse:
39
+
40
+ AddTagResponse
41
+ ------------------------------------------------------------------
42
+
43
+ Response message for tagging an Artifact.
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+ .. _ref_datacatalog.Artifact:
53
+
54
+ Artifact
55
+ ------------------------------------------------------------------
56
+
57
+ Artifact message. It is composed of several string fields.
58
+
59
+
60
+
61
+ .. csv-table:: Artifact type fields
62
+ :header: "Field", "Type", "Label", "Description"
63
+ :widths: auto
64
+
65
+ "id", ":ref:`ref_string`", "", "The unique ID of the artifact"
66
+ "dataset", ":ref:`ref_datacatalog.DatasetID`", "", "The Dataset that the artifact belongs to"
67
+ "data", ":ref:`ref_datacatalog.ArtifactData`", "repeated", "A list of data that is associated with the artifact"
68
+ "metadata", ":ref:`ref_datacatalog.Metadata`", "", "Free-form metadata associated with the artifact"
69
+ "partitions", ":ref:`ref_datacatalog.Partition`", "repeated", ""
70
+ "tags", ":ref:`ref_datacatalog.Tag`", "repeated", ""
71
+ "created_at", ":ref:`ref_google.protobuf.Timestamp`", "", "creation timestamp of artifact, autogenerated by service"
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+ .. _ref_datacatalog.ArtifactData:
80
+
81
+ ArtifactData
82
+ ------------------------------------------------------------------
83
+
84
+ ArtifactData that belongs to an artifact
85
+
86
+
87
+
88
+ .. csv-table:: ArtifactData type fields
89
+ :header: "Field", "Type", "Label", "Description"
90
+ :widths: auto
91
+
92
+ "name", ":ref:`ref_string`", "", ""
93
+ "value", ":ref:`ref_flyteidl.core.Literal`", "", ""
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+ .. _ref_datacatalog.ArtifactPropertyFilter:
102
+
103
+ ArtifactPropertyFilter
104
+ ------------------------------------------------------------------
105
+
106
+ Artifact properties we can filter by
107
+
108
+
109
+
110
+ .. csv-table:: ArtifactPropertyFilter type fields
111
+ :header: "Field", "Type", "Label", "Description"
112
+ :widths: auto
113
+
114
+ "artifact_id", ":ref:`ref_string`", "", ""
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+ .. _ref_datacatalog.CreateArtifactRequest:
123
+
124
+ CreateArtifactRequest
125
+ ------------------------------------------------------------------
126
+
127
+ Request message for creating an Artifact and its associated artifact Data.
128
+
129
+
130
+
131
+ .. csv-table:: CreateArtifactRequest type fields
132
+ :header: "Field", "Type", "Label", "Description"
133
+ :widths: auto
134
+
135
+ "artifact", ":ref:`ref_datacatalog.Artifact`", "", ""
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+ .. _ref_datacatalog.CreateArtifactResponse:
144
+
145
+ CreateArtifactResponse
146
+ ------------------------------------------------------------------
147
+
148
+ Response message for creating an Artifact.
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+ .. _ref_datacatalog.CreateDatasetRequest:
158
+
159
+ CreateDatasetRequest
160
+ ------------------------------------------------------------------
161
+
162
+ Request message for creating a Dataset.
163
+
164
+
165
+
166
+ .. csv-table:: CreateDatasetRequest type fields
167
+ :header: "Field", "Type", "Label", "Description"
168
+ :widths: auto
169
+
170
+ "dataset", ":ref:`ref_datacatalog.Dataset`", "", ""
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+ .. _ref_datacatalog.CreateDatasetResponse:
179
+
180
+ CreateDatasetResponse
181
+ ------------------------------------------------------------------
182
+
183
+ Response message for creating a Dataset
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+ .. _ref_datacatalog.Dataset:
193
+
194
+ Dataset
195
+ ------------------------------------------------------------------
196
+
197
+ Dataset message. It is uniquely identified by DatasetID.
198
+
199
+
200
+
201
+ .. csv-table:: Dataset type fields
202
+ :header: "Field", "Type", "Label", "Description"
203
+ :widths: auto
204
+
205
+ "id", ":ref:`ref_datacatalog.DatasetID`", "", ""
206
+ "metadata", ":ref:`ref_datacatalog.Metadata`", "", ""
207
+ "partitionKeys", ":ref:`ref_string`", "repeated", ""
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+ .. _ref_datacatalog.DatasetID:
216
+
217
+ DatasetID
218
+ ------------------------------------------------------------------
219
+
220
+ DatasetID message that is composed of several string fields.
221
+
222
+
223
+
224
+ .. csv-table:: DatasetID type fields
225
+ :header: "Field", "Type", "Label", "Description"
226
+ :widths: auto
227
+
228
+ "project", ":ref:`ref_string`", "", "The name of the project"
229
+ "name", ":ref:`ref_string`", "", "The name of the dataset"
230
+ "domain", ":ref:`ref_string`", "", "The domain (eg. environment)"
231
+ "version", ":ref:`ref_string`", "", "Version of the data schema"
232
+ "UUID", ":ref:`ref_string`", "", "UUID for the dataset (if set the above fields are optional)"
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+ .. _ref_datacatalog.DatasetPropertyFilter:
241
+
242
+ DatasetPropertyFilter
243
+ ------------------------------------------------------------------
244
+
245
+ Dataset properties we can filter by
246
+
247
+
248
+
249
+ .. csv-table:: DatasetPropertyFilter type fields
250
+ :header: "Field", "Type", "Label", "Description"
251
+ :widths: auto
252
+
253
+ "project", ":ref:`ref_string`", "", ""
254
+ "name", ":ref:`ref_string`", "", ""
255
+ "domain", ":ref:`ref_string`", "", ""
256
+ "version", ":ref:`ref_string`", "", ""
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+ .. _ref_datacatalog.FilterExpression:
265
+
266
+ FilterExpression
267
+ ------------------------------------------------------------------
268
+
269
+ Filter expression that is composed of a combination of single filters
270
+
271
+
272
+
273
+ .. csv-table:: FilterExpression type fields
274
+ :header: "Field", "Type", "Label", "Description"
275
+ :widths: auto
276
+
277
+ "filters", ":ref:`ref_datacatalog.SinglePropertyFilter`", "repeated", ""
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+ .. _ref_datacatalog.GetArtifactRequest:
286
+
287
+ GetArtifactRequest
288
+ ------------------------------------------------------------------
289
+
290
+ Request message for retrieving an Artifact. Retrieve an artifact based on a query handle that
291
+ can be one of artifact_id or tag. The result returned will include the artifact data and metadata
292
+ associated with the artifact.
293
+
294
+
295
+
296
+ .. csv-table:: GetArtifactRequest type fields
297
+ :header: "Field", "Type", "Label", "Description"
298
+ :widths: auto
299
+
300
+ "dataset", ":ref:`ref_datacatalog.DatasetID`", "", ""
301
+ "artifact_id", ":ref:`ref_string`", "", ""
302
+ "tag_name", ":ref:`ref_string`", "", ""
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+ .. _ref_datacatalog.GetArtifactResponse:
311
+
312
+ GetArtifactResponse
313
+ ------------------------------------------------------------------
314
+
315
+ Response message for retrieving an Artifact. The result returned will include the artifact data
316
+ and metadata associated with the artifact.
317
+
318
+
319
+
320
+ .. csv-table:: GetArtifactResponse type fields
321
+ :header: "Field", "Type", "Label", "Description"
322
+ :widths: auto
323
+
324
+ "artifact", ":ref:`ref_datacatalog.Artifact`", "", ""
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+ .. _ref_datacatalog.GetDatasetRequest:
333
+
334
+ GetDatasetRequest
335
+ ------------------------------------------------------------------
336
+
337
+ Request message for retrieving a Dataset. The Dataset is retrieved by it's unique identifier
338
+ which is a combination of several fields.
339
+
340
+
341
+
342
+ .. csv-table:: GetDatasetRequest type fields
343
+ :header: "Field", "Type", "Label", "Description"
344
+ :widths: auto
345
+
346
+ "dataset", ":ref:`ref_datacatalog.DatasetID`", "", ""
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+ .. _ref_datacatalog.GetDatasetResponse:
355
+
356
+ GetDatasetResponse
357
+ ------------------------------------------------------------------
358
+
359
+ Response message for retrieving a Dataset. The response will include the metadata for the
360
+ Dataset.
361
+
362
+
363
+
364
+ .. csv-table:: GetDatasetResponse type fields
365
+ :header: "Field", "Type", "Label", "Description"
366
+ :widths: auto
367
+
368
+ "dataset", ":ref:`ref_datacatalog.Dataset`", "", ""
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+ .. _ref_datacatalog.GetOrExtendReservationRequest:
377
+
378
+ GetOrExtendReservationRequest
379
+ ------------------------------------------------------------------
380
+
381
+ Try to acquire or extend an artifact reservation. If an active reservation exists, retreive that instance.
382
+
383
+
384
+
385
+ .. csv-table:: GetOrExtendReservationRequest type fields
386
+ :header: "Field", "Type", "Label", "Description"
387
+ :widths: auto
388
+
389
+ "reservation_id", ":ref:`ref_datacatalog.ReservationID`", "", ""
390
+ "owner_id", ":ref:`ref_string`", "", ""
391
+ "heartbeat_interval", ":ref:`ref_google.protobuf.Duration`", "", "Requested reservation extension heartbeat interval"
392
+
393
+
394
+
395
+
396
+
397
+
398
+
399
+ .. _ref_datacatalog.GetOrExtendReservationResponse:
400
+
401
+ GetOrExtendReservationResponse
402
+ ------------------------------------------------------------------
403
+
404
+ Response including either a newly minted reservation or the existing reservation
405
+
406
+
407
+
408
+ .. csv-table:: GetOrExtendReservationResponse type fields
409
+ :header: "Field", "Type", "Label", "Description"
410
+ :widths: auto
411
+
412
+ "reservation", ":ref:`ref_datacatalog.Reservation`", "", ""
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+ .. _ref_datacatalog.KeyValuePair:
421
+
422
+ KeyValuePair
423
+ ------------------------------------------------------------------
424
+
425
+
426
+
427
+
428
+
429
+ .. csv-table:: KeyValuePair type fields
430
+ :header: "Field", "Type", "Label", "Description"
431
+ :widths: auto
432
+
433
+ "key", ":ref:`ref_string`", "", ""
434
+ "value", ":ref:`ref_string`", "", ""
435
+
436
+
437
+
438
+
439
+
440
+
441
+
442
+ .. _ref_datacatalog.ListArtifactsRequest:
443
+
444
+ ListArtifactsRequest
445
+ ------------------------------------------------------------------
446
+
447
+ List the artifacts that belong to the Dataset, optionally filtered using filtered expression.
448
+
449
+
450
+
451
+ .. csv-table:: ListArtifactsRequest type fields
452
+ :header: "Field", "Type", "Label", "Description"
453
+ :widths: auto
454
+
455
+ "dataset", ":ref:`ref_datacatalog.DatasetID`", "", "Use a datasetID for which you want to retrieve the artifacts"
456
+ "filter", ":ref:`ref_datacatalog.FilterExpression`", "", "Apply the filter expression to this query"
457
+ "pagination", ":ref:`ref_datacatalog.PaginationOptions`", "", "Pagination options to get a page of artifacts"
458
+
459
+
460
+
461
+
462
+
463
+
464
+
465
+ .. _ref_datacatalog.ListArtifactsResponse:
466
+
467
+ ListArtifactsResponse
468
+ ------------------------------------------------------------------
469
+
470
+ Response to list artifacts
471
+
472
+
473
+
474
+ .. csv-table:: ListArtifactsResponse type fields
475
+ :header: "Field", "Type", "Label", "Description"
476
+ :widths: auto
477
+
478
+ "artifacts", ":ref:`ref_datacatalog.Artifact`", "repeated", "The list of artifacts"
479
+ "next_token", ":ref:`ref_string`", "", "Token to use to request the next page, pass this into the next requests PaginationOptions"
480
+
481
+
482
+
483
+
484
+
485
+
486
+
487
+ .. _ref_datacatalog.ListDatasetsRequest:
488
+
489
+ ListDatasetsRequest
490
+ ------------------------------------------------------------------
491
+
492
+ List the datasets for the given query
493
+
494
+
495
+
496
+ .. csv-table:: ListDatasetsRequest type fields
497
+ :header: "Field", "Type", "Label", "Description"
498
+ :widths: auto
499
+
500
+ "filter", ":ref:`ref_datacatalog.FilterExpression`", "", "Apply the filter expression to this query"
501
+ "pagination", ":ref:`ref_datacatalog.PaginationOptions`", "", "Pagination options to get a page of datasets"
502
+
503
+
504
+
505
+
506
+
507
+
508
+
509
+ .. _ref_datacatalog.ListDatasetsResponse:
510
+
511
+ ListDatasetsResponse
512
+ ------------------------------------------------------------------
513
+
514
+ List the datasets response with token for next pagination
515
+
516
+
517
+
518
+ .. csv-table:: ListDatasetsResponse type fields
519
+ :header: "Field", "Type", "Label", "Description"
520
+ :widths: auto
521
+
522
+ "datasets", ":ref:`ref_datacatalog.Dataset`", "repeated", "The list of datasets"
523
+ "next_token", ":ref:`ref_string`", "", "Token to use to request the next page, pass this into the next requests PaginationOptions"
524
+
525
+
526
+
527
+
528
+
529
+
530
+
531
+ .. _ref_datacatalog.Metadata:
532
+
533
+ Metadata
534
+ ------------------------------------------------------------------
535
+
536
+ Metadata representation for artifacts and datasets
537
+
538
+
539
+
540
+ .. csv-table:: Metadata type fields
541
+ :header: "Field", "Type", "Label", "Description"
542
+ :widths: auto
543
+
544
+ "key_map", ":ref:`ref_datacatalog.Metadata.KeyMapEntry`", "repeated", "key map is a dictionary of key/val strings that represent metadata"
545
+
546
+
547
+
548
+
549
+
550
+
551
+
552
+ .. _ref_datacatalog.Metadata.KeyMapEntry:
553
+
554
+ Metadata.KeyMapEntry
555
+ ------------------------------------------------------------------
556
+
557
+
558
+
559
+
560
+
561
+ .. csv-table:: Metadata.KeyMapEntry type fields
562
+ :header: "Field", "Type", "Label", "Description"
563
+ :widths: auto
564
+
565
+ "key", ":ref:`ref_string`", "", ""
566
+ "value", ":ref:`ref_string`", "", ""
567
+
568
+
569
+
570
+
571
+
572
+
573
+
574
+ .. _ref_datacatalog.PaginationOptions:
575
+
576
+ PaginationOptions
577
+ ------------------------------------------------------------------
578
+
579
+ Pagination options for making list requests
580
+
581
+
582
+
583
+ .. csv-table:: PaginationOptions type fields
584
+ :header: "Field", "Type", "Label", "Description"
585
+ :widths: auto
586
+
587
+ "limit", ":ref:`ref_uint32`", "", "the max number of results to return"
588
+ "token", ":ref:`ref_string`", "", "the token to pass to fetch the next page"
589
+ "sortKey", ":ref:`ref_datacatalog.PaginationOptions.SortKey`", "", "the property that we want to sort the results by"
590
+ "sortOrder", ":ref:`ref_datacatalog.PaginationOptions.SortOrder`", "", "the sort order of the results"
591
+
592
+
593
+
594
+
595
+
596
+
597
+
598
+ .. _ref_datacatalog.Partition:
599
+
600
+ Partition
601
+ ------------------------------------------------------------------
602
+
603
+ An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair
604
+
605
+
606
+
607
+ .. csv-table:: Partition type fields
608
+ :header: "Field", "Type", "Label", "Description"
609
+ :widths: auto
610
+
611
+ "key", ":ref:`ref_string`", "", ""
612
+ "value", ":ref:`ref_string`", "", ""
613
+
614
+
615
+
616
+
617
+
618
+
619
+
620
+ .. _ref_datacatalog.PartitionPropertyFilter:
621
+
622
+ PartitionPropertyFilter
623
+ ------------------------------------------------------------------
624
+
625
+ Partition properties we can filter by
626
+
627
+
628
+
629
+ .. csv-table:: PartitionPropertyFilter type fields
630
+ :header: "Field", "Type", "Label", "Description"
631
+ :widths: auto
632
+
633
+ "key_val", ":ref:`ref_datacatalog.KeyValuePair`", "", ""
634
+
635
+
636
+
637
+
638
+
639
+
640
+
641
+ .. _ref_datacatalog.ReleaseReservationRequest:
642
+
643
+ ReleaseReservationRequest
644
+ ------------------------------------------------------------------
645
+
646
+ Request to release reservation
647
+
648
+
649
+
650
+ .. csv-table:: ReleaseReservationRequest type fields
651
+ :header: "Field", "Type", "Label", "Description"
652
+ :widths: auto
653
+
654
+ "reservation_id", ":ref:`ref_datacatalog.ReservationID`", "", ""
655
+ "owner_id", ":ref:`ref_string`", "", ""
656
+
657
+
658
+
659
+
660
+
661
+
662
+
663
+ .. _ref_datacatalog.ReleaseReservationResponse:
664
+
665
+ ReleaseReservationResponse
666
+ ------------------------------------------------------------------
667
+
668
+ Response to release reservation
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+
677
+ .. _ref_datacatalog.Reservation:
678
+
679
+ Reservation
680
+ ------------------------------------------------------------------
681
+
682
+ A reservation including owner, heartbeat interval, expiration timestamp, and various metadata.
683
+
684
+
685
+
686
+ .. csv-table:: Reservation type fields
687
+ :header: "Field", "Type", "Label", "Description"
688
+ :widths: auto
689
+
690
+ "reservation_id", ":ref:`ref_datacatalog.ReservationID`", "", ""
691
+ "owner_id", ":ref:`ref_string`", "", ""
692
+ "heartbeat_interval", ":ref:`ref_google.protobuf.Duration`", "", "Recommended heartbeat interval to extend reservation"
693
+ "expires_at", ":ref:`ref_google.protobuf.Timestamp`", "", "Expiration timestamp of this reservation"
694
+ "metadata", ":ref:`ref_datacatalog.Metadata`", "", ""
695
+
696
+
697
+
698
+
699
+
700
+
701
+
702
+ .. _ref_datacatalog.ReservationID:
703
+
704
+ ReservationID
705
+ ------------------------------------------------------------------
706
+
707
+ ReservationID message that is composed of several string fields.
708
+
709
+
710
+
711
+ .. csv-table:: ReservationID type fields
712
+ :header: "Field", "Type", "Label", "Description"
713
+ :widths: auto
714
+
715
+ "dataset_id", ":ref:`ref_datacatalog.DatasetID`", "", ""
716
+ "tag_name", ":ref:`ref_string`", "", ""
717
+
718
+
719
+
720
+
721
+
722
+
723
+
724
+ .. _ref_datacatalog.SinglePropertyFilter:
725
+
726
+ SinglePropertyFilter
727
+ ------------------------------------------------------------------
728
+
729
+ A single property to filter on.
730
+
731
+
732
+
733
+ .. csv-table:: SinglePropertyFilter type fields
734
+ :header: "Field", "Type", "Label", "Description"
735
+ :widths: auto
736
+
737
+ "tag_filter", ":ref:`ref_datacatalog.TagPropertyFilter`", "", ""
738
+ "partition_filter", ":ref:`ref_datacatalog.PartitionPropertyFilter`", "", ""
739
+ "artifact_filter", ":ref:`ref_datacatalog.ArtifactPropertyFilter`", "", ""
740
+ "dataset_filter", ":ref:`ref_datacatalog.DatasetPropertyFilter`", "", ""
741
+ "operator", ":ref:`ref_datacatalog.SinglePropertyFilter.ComparisonOperator`", "", "field 10 in case we add more entities to query"
742
+
743
+
744
+
745
+
746
+
747
+
748
+
749
+ .. _ref_datacatalog.Tag:
750
+
751
+ Tag
752
+ ------------------------------------------------------------------
753
+
754
+ Tag message that is unique to a Dataset. It is associated to a single artifact and
755
+ can be retrieved by name later.
756
+
757
+
758
+
759
+ .. csv-table:: Tag type fields
760
+ :header: "Field", "Type", "Label", "Description"
761
+ :widths: auto
762
+
763
+ "name", ":ref:`ref_string`", "", "Name of tag"
764
+ "artifact_id", ":ref:`ref_string`", "", "The tagged artifact"
765
+ "dataset", ":ref:`ref_datacatalog.DatasetID`", "", "The Dataset that this tag belongs to"
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+ .. _ref_datacatalog.TagPropertyFilter:
774
+
775
+ TagPropertyFilter
776
+ ------------------------------------------------------------------
777
+
778
+ Tag properties we can filter by
779
+
780
+
781
+
782
+ .. csv-table:: TagPropertyFilter type fields
783
+ :header: "Field", "Type", "Label", "Description"
784
+ :widths: auto
785
+
786
+ "tag_name", ":ref:`ref_string`", "", ""
787
+
788
+
789
+
790
+
791
+
792
+ <!-- end messages -->
793
+
794
+
795
+
796
+ .. _ref_datacatalog.PaginationOptions.SortKey:
797
+
798
+ PaginationOptions.SortKey
799
+ ------------------------------------------------------------------
800
+
801
+
802
+
803
+ .. csv-table:: Enum PaginationOptions.SortKey values
804
+ :header: "Name", "Number", "Description"
805
+ :widths: auto
806
+
807
+ "CREATION_TIME", "0", ""
808
+
809
+
810
+
811
+ .. _ref_datacatalog.PaginationOptions.SortOrder:
812
+
813
+ PaginationOptions.SortOrder
814
+ ------------------------------------------------------------------
815
+
816
+
817
+
818
+ .. csv-table:: Enum PaginationOptions.SortOrder values
819
+ :header: "Name", "Number", "Description"
820
+ :widths: auto
821
+
822
+ "DESCENDING", "0", ""
823
+ "ASCENDING", "1", ""
824
+
825
+
826
+
827
+ .. _ref_datacatalog.SinglePropertyFilter.ComparisonOperator:
828
+
829
+ SinglePropertyFilter.ComparisonOperator
830
+ ------------------------------------------------------------------
831
+
832
+ as use-cases come up we can add more operators, ex: gte, like, not eq etc.
833
+
834
+ .. csv-table:: Enum SinglePropertyFilter.ComparisonOperator values
835
+ :header: "Name", "Number", "Description"
836
+ :widths: auto
837
+
838
+ "EQUALS", "0", ""
839
+
840
+ <!-- end enums -->
841
+
842
+ <!-- end HasExtensions -->
843
+
844
+
845
+
846
+ .. _ref_datacatalog.DataCatalog:
847
+
848
+ DataCatalog
849
+ ------------------------------------------------------------------
850
+
851
+ Data Catalog service definition
852
+ Data Catalog is a service for indexing parameterized, strongly-typed data artifacts across revisions.
853
+ Artifacts are associated with a Dataset, and can be tagged for retrieval.
854
+
855
+ .. csv-table:: DataCatalog service methods
856
+ :header: "Method Name", "Request Type", "Response Type", "Description"
857
+ :widths: auto
858
+
859
+ "CreateDataset", ":ref:`ref_datacatalog.CreateDatasetRequest`", ":ref:`ref_datacatalog.CreateDatasetResponse`", "Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. Each dataset can have one or more artifacts"
860
+ "GetDataset", ":ref:`ref_datacatalog.GetDatasetRequest`", ":ref:`ref_datacatalog.GetDatasetResponse`", "Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata."
861
+ "CreateArtifact", ":ref:`ref_datacatalog.CreateArtifactRequest`", ":ref:`ref_datacatalog.CreateArtifactResponse`", "Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary files or data values"
862
+ "GetArtifact", ":ref:`ref_datacatalog.GetArtifactRequest`", ":ref:`ref_datacatalog.GetArtifactResponse`", "Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data."
863
+ "AddTag", ":ref:`ref_datacatalog.AddTagRequest`", ":ref:`ref_datacatalog.AddTagResponse`", "Associate a tag with an artifact. Tags are unique within a Dataset."
864
+ "ListArtifacts", ":ref:`ref_datacatalog.ListArtifactsRequest`", ":ref:`ref_datacatalog.ListArtifactsResponse`", "Return a paginated list of artifacts"
865
+ "ListDatasets", ":ref:`ref_datacatalog.ListDatasetsRequest`", ":ref:`ref_datacatalog.ListDatasetsResponse`", "Return a paginated list of datasets"
866
+ "GetOrExtendReservation", ":ref:`ref_datacatalog.GetOrExtendReservationRequest`", ":ref:`ref_datacatalog.GetOrExtendReservationResponse`", "Attempts to get or extend a reservation for the corresponding artifact. If one already exists (ie. another entity owns the reservation) then that reservation is retrieved. Once you acquire a reservation, you need to periodically extend the reservation with an identical call. If the reservation is not extended before the defined expiration, it may be acquired by another task. Note: We may have multiple concurrent tasks with the same signature and the same input that try to populate the same artifact at the same time. Thus with reservation, only one task can run at a time, until the reservation expires. Note: If task A does not extend the reservation in time and the reservation expires, another task B may take over the reservation, resulting in two tasks A and B running in parallel. So a third task C may get the Artifact from A or B, whichever writes last."
867
+ "ReleaseReservation", ":ref:`ref_datacatalog.ReleaseReservationRequest`", ":ref:`ref_datacatalog.ReleaseReservationResponse`", "Release the reservation when the task holding the spot fails so that the other tasks can grab the spot."
868
+ <!-- end services -->
869
+
870
+
871
+
872
+
873
+ .. _ref_google/protobuf/timestamp.proto:
874
+
875
+ google/protobuf/timestamp.proto
876
+ ==================================================================
877
+
878
+
879
+
880
+
881
+
882
+ .. _ref_google.protobuf.Timestamp:
883
+
884
+ Timestamp
885
+ ------------------------------------------------------------------
886
+
887
+ A Timestamp represents a point in time independent of any time zone or local
888
+ calendar, encoded as a count of seconds and fractions of seconds at
889
+ nanosecond resolution. The count is relative to an epoch at UTC midnight on
890
+ January 1, 1970, in the proleptic Gregorian calendar which extends the
891
+ Gregorian calendar backwards to year one.
892
+
893
+ All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
894
+ second table is needed for interpretation, using a [24-hour linear
895
+ smear](https://developers.google.com/time/smear).
896
+
897
+ The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
898
+ restricting to that range, we ensure that we can convert to and from [RFC
899
+ 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
900
+
901
+ # Examples
902
+
903
+ Example 1: Compute Timestamp from POSIX `time()`.
904
+
905
+ Timestamp timestamp;
906
+ timestamp.set_seconds(time(NULL));
907
+ timestamp.set_nanos(0);
908
+
909
+ Example 2: Compute Timestamp from POSIX `gettimeofday()`.
910
+
911
+ struct timeval tv;
912
+ gettimeofday(&tv, NULL);
913
+
914
+ Timestamp timestamp;
915
+ timestamp.set_seconds(tv.tv_sec);
916
+ timestamp.set_nanos(tv.tv_usec * 1000);
917
+
918
+ Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
919
+
920
+ FILETIME ft;
921
+ GetSystemTimeAsFileTime(&ft);
922
+ UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
923
+
924
+ // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
925
+ // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
926
+ Timestamp timestamp;
927
+ timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
928
+ timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
929
+
930
+ Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
931
+
932
+ long millis = System.currentTimeMillis();
933
+
934
+ Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
935
+ .setNanos((int) ((millis % 1000) * 1000000)).build();
936
+
937
+
938
+ Example 5: Compute Timestamp from Java `Instant.now()`.
939
+
940
+ Instant now = Instant.now();
941
+
942
+ Timestamp timestamp =
943
+ Timestamp.newBuilder().setSeconds(now.getEpochSecond())
944
+ .setNanos(now.getNano()).build();
945
+
946
+
947
+ Example 6: Compute Timestamp from current time in Python.
948
+
949
+ timestamp = Timestamp()
950
+ timestamp.GetCurrentTime()
951
+
952
+ # JSON Mapping
953
+
954
+ In JSON format, the Timestamp type is encoded as a string in the
955
+ [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
956
+ format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
957
+ where {year} is always expressed using four digits while {month}, {day},
958
+ {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
959
+ seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
960
+ are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
961
+ is required. A proto3 JSON serializer should always use UTC (as indicated by
962
+ "Z") when printing the Timestamp type and a proto3 JSON parser should be
963
+ able to accept both UTC and other timezones (as indicated by an offset).
964
+
965
+ For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
966
+ 01:30 UTC on January 15, 2017.
967
+
968
+ In JavaScript, one can convert a Date object to this format using the
969
+ standard
970
+ [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
971
+ method. In Python, a standard `datetime.datetime` object can be converted
972
+ to this format using
973
+ [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
974
+ the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
975
+ the Joda Time's [`ISODateTimeFormat.dateTime()`](
976
+ http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
977
+ ) to obtain a formatter capable of generating timestamps in this format.
978
+
979
+
980
+
981
+ .. csv-table:: Timestamp type fields
982
+ :header: "Field", "Type", "Label", "Description"
983
+ :widths: auto
984
+
985
+ "seconds", ":ref:`ref_int64`", "", "Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive."
986
+ "nanos", ":ref:`ref_int32`", "", "Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive."
987
+
988
+
989
+
990
+
991
+
992
+ <!-- end messages -->
993
+
994
+ <!-- end enums -->
995
+
996
+ <!-- end HasExtensions -->
997
+
998
+ <!-- end services -->
999
+
1000
+
1001
+
1002
+
1003
+ .. _ref_google/protobuf/duration.proto:
1004
+
1005
+ google/protobuf/duration.proto
1006
+ ==================================================================
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+ .. _ref_google.protobuf.Duration:
1013
+
1014
+ Duration
1015
+ ------------------------------------------------------------------
1016
+
1017
+ A Duration represents a signed, fixed-length span of time represented
1018
+ as a count of seconds and fractions of seconds at nanosecond
1019
+ resolution. It is independent of any calendar and concepts like "day"
1020
+ or "month". It is related to Timestamp in that the difference between
1021
+ two Timestamp values is a Duration and it can be added or subtracted
1022
+ from a Timestamp. Range is approximately +-10,000 years.
1023
+
1024
+ # Examples
1025
+
1026
+ Example 1: Compute Duration from two Timestamps in pseudo code.
1027
+
1028
+ Timestamp start = ...;
1029
+ Timestamp end = ...;
1030
+ Duration duration = ...;
1031
+
1032
+ duration.seconds = end.seconds - start.seconds;
1033
+ duration.nanos = end.nanos - start.nanos;
1034
+
1035
+ if (duration.seconds < 0 && duration.nanos > 0) {
1036
+ duration.seconds += 1;
1037
+ duration.nanos -= 1000000000;
1038
+ } else if (duration.seconds > 0 && duration.nanos < 0) {
1039
+ duration.seconds -= 1;
1040
+ duration.nanos += 1000000000;
1041
+ }
1042
+
1043
+ Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
1044
+
1045
+ Timestamp start = ...;
1046
+ Duration duration = ...;
1047
+ Timestamp end = ...;
1048
+
1049
+ end.seconds = start.seconds + duration.seconds;
1050
+ end.nanos = start.nanos + duration.nanos;
1051
+
1052
+ if (end.nanos < 0) {
1053
+ end.seconds -= 1;
1054
+ end.nanos += 1000000000;
1055
+ } else if (end.nanos >= 1000000000) {
1056
+ end.seconds += 1;
1057
+ end.nanos -= 1000000000;
1058
+ }
1059
+
1060
+ Example 3: Compute Duration from datetime.timedelta in Python.
1061
+
1062
+ td = datetime.timedelta(days=3, minutes=10)
1063
+ duration = Duration()
1064
+ duration.FromTimedelta(td)
1065
+
1066
+ # JSON Mapping
1067
+
1068
+ In JSON format, the Duration type is encoded as a string rather than an
1069
+ object, where the string ends in the suffix "s" (indicating seconds) and
1070
+ is preceded by the number of seconds, with nanoseconds expressed as
1071
+ fractional seconds. For example, 3 seconds with 0 nanoseconds should be
1072
+ encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
1073
+ be expressed in JSON format as "3.000000001s", and 3 seconds and 1
1074
+ microsecond should be expressed in JSON format as "3.000001s".
1075
+
1076
+
1077
+
1078
+ .. csv-table:: Duration type fields
1079
+ :header: "Field", "Type", "Label", "Description"
1080
+ :widths: auto
1081
+
1082
+ "seconds", ":ref:`ref_int64`", "", "Signed seconds of the span of time. Must be from -315,576,000,000 to +315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years"
1083
+ "nanos", ":ref:`ref_int32`", "", "Signed fractions of a second at nanosecond resolution of the span of time. Durations less than one second are represented with a 0 `seconds` field and a positive or negative `nanos` field. For durations of one second or more, a non-zero value for the `nanos` field must be of the same sign as the `seconds` field. Must be from -999,999,999 to +999,999,999 inclusive."
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+ <!-- end messages -->
1090
+
1091
+ <!-- end enums -->
1092
+
1093
+ <!-- end HasExtensions -->
1094
+
1095
+ <!-- end services -->
1096
+
1097
+
1098
+
1099
+
1100
+ .. _ref_google/protobuf/struct.proto:
1101
+
1102
+ google/protobuf/struct.proto
1103
+ ==================================================================
1104
+
1105
+
1106
+
1107
+
1108
+
1109
+ .. _ref_google.protobuf.ListValue:
1110
+
1111
+ ListValue
1112
+ ------------------------------------------------------------------
1113
+
1114
+ `ListValue` is a wrapper around a repeated field of values.
1115
+
1116
+ The JSON representation for `ListValue` is JSON array.
1117
+
1118
+
1119
+
1120
+ .. csv-table:: ListValue type fields
1121
+ :header: "Field", "Type", "Label", "Description"
1122
+ :widths: auto
1123
+
1124
+ "values", ":ref:`ref_google.protobuf.Value`", "repeated", "Repeated field of dynamically typed values."
1125
+
1126
+
1127
+
1128
+
1129
+
1130
+
1131
+
1132
+ .. _ref_google.protobuf.Struct:
1133
+
1134
+ Struct
1135
+ ------------------------------------------------------------------
1136
+
1137
+ `Struct` represents a structured data value, consisting of fields
1138
+ which map to dynamically typed values. In some languages, `Struct`
1139
+ might be supported by a native representation. For example, in
1140
+ scripting languages like JS a struct is represented as an
1141
+ object. The details of that representation are described together
1142
+ with the proto support for the language.
1143
+
1144
+ The JSON representation for `Struct` is JSON object.
1145
+
1146
+
1147
+
1148
+ .. csv-table:: Struct type fields
1149
+ :header: "Field", "Type", "Label", "Description"
1150
+ :widths: auto
1151
+
1152
+ "fields", ":ref:`ref_google.protobuf.Struct.FieldsEntry`", "repeated", "Unordered map of dynamically typed values."
1153
+
1154
+
1155
+
1156
+
1157
+
1158
+
1159
+
1160
+ .. _ref_google.protobuf.Struct.FieldsEntry:
1161
+
1162
+ Struct.FieldsEntry
1163
+ ------------------------------------------------------------------
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+ .. csv-table:: Struct.FieldsEntry type fields
1170
+ :header: "Field", "Type", "Label", "Description"
1171
+ :widths: auto
1172
+
1173
+ "key", ":ref:`ref_string`", "", ""
1174
+ "value", ":ref:`ref_google.protobuf.Value`", "", ""
1175
+
1176
+
1177
+
1178
+
1179
+
1180
+
1181
+
1182
+ .. _ref_google.protobuf.Value:
1183
+
1184
+ Value
1185
+ ------------------------------------------------------------------
1186
+
1187
+ `Value` represents a dynamically typed value which can be either
1188
+ null, a number, a string, a boolean, a recursive struct value, or a
1189
+ list of values. A producer of value is expected to set one of these
1190
+ variants. Absence of any variant indicates an error.
1191
+
1192
+ The JSON representation for `Value` is JSON value.
1193
+
1194
+
1195
+
1196
+ .. csv-table:: Value type fields
1197
+ :header: "Field", "Type", "Label", "Description"
1198
+ :widths: auto
1199
+
1200
+ "null_value", ":ref:`ref_google.protobuf.NullValue`", "", "Represents a null value."
1201
+ "number_value", ":ref:`ref_double`", "", "Represents a double value."
1202
+ "string_value", ":ref:`ref_string`", "", "Represents a string value."
1203
+ "bool_value", ":ref:`ref_bool`", "", "Represents a boolean value."
1204
+ "struct_value", ":ref:`ref_google.protobuf.Struct`", "", "Represents a structured value."
1205
+ "list_value", ":ref:`ref_google.protobuf.ListValue`", "", "Represents a repeated `Value`."
1206
+
1207
+
1208
+
1209
+
1210
+
1211
+ <!-- end messages -->
1212
+
1213
+
1214
+
1215
+ .. _ref_google.protobuf.NullValue:
1216
+
1217
+ NullValue
1218
+ ------------------------------------------------------------------
1219
+
1220
+ `NullValue` is a singleton enumeration to represent the null value for the
1221
+ `Value` type union.
1222
+
1223
+ The JSON representation for `NullValue` is JSON `null`.
1224
+
1225
+ .. csv-table:: Enum NullValue values
1226
+ :header: "Name", "Number", "Description"
1227
+ :widths: auto
1228
+
1229
+ "NULL_VALUE", "0", "Null value."
1230
+
1231
+ <!-- end enums -->
1232
+
1233
+ <!-- end HasExtensions -->
1234
+
1235
+ <!-- end services -->
1236
+
1237
+