|
1 | 1 | from .api.openapi_generated import ( |
2 | 2 | TableauError, |
| 3 | + TableCalcType, |
| 4 | + RelativeTo, |
| 5 | + RankType, |
| 6 | + TableCalcComputedAggregation, |
| 7 | + ColumnClass, |
3 | 8 | DataType, |
| 9 | + FieldRole, |
| 10 | + FieldType, |
| 11 | + ImageRole, |
| 12 | + Formatting, |
4 | 13 | Connection, |
5 | 14 | Datasource, |
6 | 15 | FilterType, |
7 | 16 | DimensionFilterField, |
8 | 17 | CalculatedFilterField, |
9 | 18 | Function, |
| 19 | + Comparison, |
| 20 | + ConditionalFilterCondition, |
10 | 21 | QuantitativeFilterType, |
| 22 | + QueryOptions, |
| 23 | + Event, |
| 24 | + Data, |
| 25 | + SseMetadataEvent, |
| 26 | + Event1, |
| 27 | + SseDataEvent, |
| 28 | + Event2, |
| 29 | + SseErrorEvent, |
11 | 30 | QueryOutput, |
| 31 | + ReadMetadataRequest, |
12 | 32 | ReturnFormat, |
13 | 33 | SortDirection, |
14 | 34 | PeriodType, |
15 | 35 | DateRangeType, |
16 | 36 | Direction, |
| 37 | + Parameter, |
| 38 | + NullableAny, |
| 39 | + FieldAlias, |
| 40 | + AliasedDataValue, |
| 41 | + ParameterType, |
| 42 | + ParameterRecordBase, |
| 43 | + GetDatasourceModelRequest, |
| 44 | + LogicalTable, |
| 45 | + LogicalTableRelationshipEndpoint, |
| 46 | + ListSupportedFunctionRequest, |
| 47 | + FunctionType, |
| 48 | + SupportedFunctionOverload, |
| 49 | + SupportedFunction, |
| 50 | + Grouping, |
| 51 | + Operator, |
| 52 | + RelationshipExpressionItem, |
17 | 53 | FieldBase, |
18 | 54 | DimensionField, |
19 | 55 | MeasureField, |
20 | 56 | CalculatedField, |
21 | | - FieldMetadata, |
| 57 | + BinField, |
| 58 | + TableCalcFieldReference, |
| 59 | + TableCalcCustomSort, |
22 | 60 | MeasureFilterField, |
23 | | - MetadataOutput, |
24 | | - QueryOptions, |
25 | | - ReadMetadataRequest, |
26 | | - Field, |
27 | | - FilterField, |
| 61 | + ExtraData, |
28 | 62 | QueryDatasourceOptions, |
| 63 | + SseResultStream, |
| 64 | + AnyValueParameter, |
| 65 | + ListParameter, |
| 66 | + QuantitativeRangeParameter, |
| 67 | + QuantitativeDateParameter, |
| 68 | + GroupFormula, |
| 69 | + FieldRelationshipExpression, |
| 70 | + TableCalcSpecification, |
| 71 | + CustomTableCalcSpecification, |
| 72 | + NestedTableCalcSpecification, |
| 73 | + DifferenceTableCalcSpecification, |
| 74 | + PercentOfTotalTableCalcSpecification, |
| 75 | + RankTableCalcSpecification, |
| 76 | + PercentileTableCalcSpecification, |
| 77 | + RunningTotalTableCalcSpecification, |
| 78 | + MovingTableCalcSpecification, |
| 79 | + FieldMetadata, |
| 80 | + FilterField, |
| 81 | + MetadataOutput, |
| 82 | + LogicalTableRelationship, |
| 83 | + TableCalcField, |
29 | 84 | Filter, |
30 | 85 | MatchFilter, |
| 86 | + ConditionFilter, |
31 | 87 | QuantitativeFilterBase, |
32 | 88 | QuantitativeNumericalFilter, |
33 | 89 | QuantitativeDateFilter, |
34 | | - Query, |
35 | | - QueryRequest, |
36 | 90 | SetFilter, |
37 | 91 | RelativeDateFilter, |
38 | 92 | TopNFilter, |
| 93 | + DatasourceModelOutput, |
| 94 | + Field, |
| 95 | + Query, |
| 96 | + QueryRequest, |
| 97 | + TabFilter, |
| 98 | + ParameterRecord, |
39 | 99 | ) |
40 | 100 | from .api import ( |
41 | 101 | VizQLDataServiceClient, |
42 | 102 | read_metadata, |
43 | 103 | query_datasource, |
| 104 | + get_datasource_model, |
44 | 105 | ) |
45 | 106 |
|
46 | 107 | __all__ = [ |
47 | 108 | # API related |
48 | 109 | "VizQLDataServiceClient", |
49 | 110 | "read_metadata", |
50 | 111 | "query_datasource", |
| 112 | + "get_datasource_model", |
51 | 113 | # OpenAPI models |
52 | 114 | "TableauError", |
| 115 | + "TableCalcType", |
| 116 | + "RelativeTo", |
| 117 | + "RankType", |
| 118 | + "TableCalcComputedAggregation", |
| 119 | + "ColumnClass", |
53 | 120 | "DataType", |
| 121 | + "FieldRole", |
| 122 | + "FieldType", |
| 123 | + "ImageRole", |
| 124 | + "Formatting", |
54 | 125 | "Connection", |
55 | 126 | "Datasource", |
56 | 127 | "FilterType", |
57 | 128 | "DimensionFilterField", |
58 | 129 | "CalculatedFilterField", |
59 | 130 | "Function", |
| 131 | + "Comparison", |
| 132 | + "ConditionalFilterCondition", |
60 | 133 | "QuantitativeFilterType", |
| 134 | + "QueryOptions", |
| 135 | + "Event", |
| 136 | + "Data", |
| 137 | + "SseMetadataEvent", |
| 138 | + "Event1", |
| 139 | + "SseDataEvent", |
| 140 | + "Event2", |
| 141 | + "SseErrorEvent", |
61 | 142 | "QueryOutput", |
| 143 | + "ReadMetadataRequest", |
62 | 144 | "ReturnFormat", |
63 | 145 | "SortDirection", |
64 | 146 | "PeriodType", |
65 | 147 | "DateRangeType", |
66 | 148 | "Direction", |
| 149 | + "Parameter", |
| 150 | + "NullableAny", |
| 151 | + "FieldAlias", |
| 152 | + "AliasedDataValue", |
| 153 | + "ParameterType", |
| 154 | + "ParameterRecordBase", |
| 155 | + "GetDatasourceModelRequest", |
| 156 | + "LogicalTable", |
| 157 | + "LogicalTableRelationshipEndpoint", |
| 158 | + "ListSupportedFunctionRequest", |
| 159 | + "FunctionType", |
| 160 | + "SupportedFunctionOverload", |
| 161 | + "SupportedFunction", |
| 162 | + "Grouping", |
| 163 | + "Operator", |
| 164 | + "RelationshipExpressionItem", |
67 | 165 | "FieldBase", |
68 | 166 | "DimensionField", |
69 | 167 | "MeasureField", |
70 | 168 | "CalculatedField", |
71 | | - "FieldMetadata", |
| 169 | + "BinField", |
| 170 | + "TableCalcFieldReference", |
| 171 | + "TableCalcCustomSort", |
72 | 172 | "MeasureFilterField", |
73 | | - "MetadataOutput", |
74 | | - "QueryOptions", |
75 | | - "ReadMetadataRequest", |
76 | | - "Field", |
77 | | - "FilterField", |
| 173 | + "ExtraData", |
78 | 174 | "QueryDatasourceOptions", |
| 175 | + "SseResultStream", |
| 176 | + "AnyValueParameter", |
| 177 | + "ListParameter", |
| 178 | + "QuantitativeRangeParameter", |
| 179 | + "QuantitativeDateParameter", |
| 180 | + "GroupFormula", |
| 181 | + "FieldRelationshipExpression", |
| 182 | + "TableCalcSpecification", |
| 183 | + "CustomTableCalcSpecification", |
| 184 | + "NestedTableCalcSpecification", |
| 185 | + "DifferenceTableCalcSpecification", |
| 186 | + "PercentOfTotalTableCalcSpecification", |
| 187 | + "RankTableCalcSpecification", |
| 188 | + "PercentileTableCalcSpecification", |
| 189 | + "RunningTotalTableCalcSpecification", |
| 190 | + "MovingTableCalcSpecification", |
| 191 | + "FieldMetadata", |
| 192 | + "FilterField", |
| 193 | + "MetadataOutput", |
| 194 | + "LogicalTableRelationship", |
| 195 | + "TableCalcField", |
79 | 196 | "Filter", |
80 | 197 | "MatchFilter", |
| 198 | + "ConditionFilter", |
81 | 199 | "QuantitativeFilterBase", |
82 | 200 | "QuantitativeNumericalFilter", |
83 | 201 | "QuantitativeDateFilter", |
84 | | - "Query", |
85 | | - "QueryRequest", |
86 | 202 | "SetFilter", |
87 | 203 | "RelativeDateFilter", |
88 | 204 | "TopNFilter", |
| 205 | + "DatasourceModelOutput", |
| 206 | + "Field", |
| 207 | + "Query", |
| 208 | + "QueryRequest", |
| 209 | + "TabFilter", |
| 210 | + "ParameterRecord", |
89 | 211 | ] |
0 commit comments