luminesce-sdk 2.2.38__py3-none-any.whl → 2.3.1__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.
- luminesce/api/binary_downloading_api.py +2 -4
- luminesce/api/certificate_management_api.py +2 -5
- luminesce/api/current_table_field_catalog_api.py +1 -3
- luminesce/api/health_checking_endpoint_api.py +1 -3
- luminesce/api/historically_executed_queries_api.py +2 -5
- luminesce/api/multi_query_execution_api.py +1 -4
- luminesce/api/sql_background_execution_api.py +2 -5
- luminesce/api/sql_design_api.py +34 -36
- luminesce/api/sql_execution_api.py +2 -4
- luminesce/api_client.py +1 -1
- luminesce/configuration.py +1 -1
- luminesce/exceptions.py +58 -25
- luminesce/extensions/api_client.py +1 -1
- luminesce/models/access_controlled_action.py +7 -3
- luminesce/models/access_controlled_resource.py +8 -4
- luminesce/models/access_controlled_resource_identifier_part_schema_attribute.py +7 -3
- luminesce/models/action_id.py +6 -2
- luminesce/models/aggregate_function.py +4 -2
- luminesce/models/aggregation.py +7 -3
- luminesce/models/auto_detect_type.py +4 -2
- luminesce/models/available_field.py +10 -6
- luminesce/models/available_parameter.py +7 -3
- luminesce/models/background_multi_query_progress_response.py +8 -4
- luminesce/models/background_multi_query_response.py +15 -11
- luminesce/models/background_query_cancel_response.py +9 -5
- luminesce/models/background_query_progress_response.py +10 -6
- luminesce/models/background_query_response.py +14 -10
- luminesce/models/background_query_state.py +4 -2
- luminesce/models/case_statement_design.py +7 -3
- luminesce/models/case_statement_item.py +7 -3
- luminesce/models/certificate_action.py +4 -2
- luminesce/models/certificate_file_type.py +4 -2
- luminesce/models/certificate_state.py +15 -11
- luminesce/models/certificate_status.py +4 -2
- luminesce/models/certificate_type.py +4 -2
- luminesce/models/column.py +10 -6
- luminesce/models/column_info.py +7 -3
- luminesce/models/column_state_type.py +8 -4
- luminesce/models/condition_attributes.py +4 -2
- luminesce/models/convert_to_view_data.py +8 -4
- luminesce/models/cursor_position.py +8 -4
- luminesce/models/dashboard_type.py +4 -2
- luminesce/models/data_type.py +4 -2
- luminesce/models/date_parameters.py +10 -6
- luminesce/models/design_join_type.py +4 -2
- luminesce/models/error_highlight_item.py +10 -6
- luminesce/models/error_highlight_request.py +8 -4
- luminesce/models/error_highlight_response.py +7 -3
- luminesce/models/expression_with_alias.py +6 -2
- luminesce/models/feedback_event_args.py +8 -4
- luminesce/models/feedback_level.py +4 -2
- luminesce/models/field_design.py +11 -7
- luminesce/models/field_type.py +4 -2
- luminesce/models/file_reader_builder_def.py +12 -8
- luminesce/models/file_reader_builder_response.py +8 -4
- luminesce/models/filter_model.py +9 -5
- luminesce/models/filter_term_design.py +7 -3
- luminesce/models/filter_type.py +4 -2
- luminesce/models/id_selector_definition.py +8 -4
- luminesce/models/inlined_property_design.py +7 -3
- luminesce/models/inlined_property_item.py +7 -3
- luminesce/models/intellisense_item.py +7 -3
- luminesce/models/intellisense_request.py +8 -4
- luminesce/models/intellisense_response.py +10 -6
- luminesce/models/intellisense_type.py +4 -2
- luminesce/models/joined_table_design.py +9 -5
- luminesce/models/link.py +6 -2
- luminesce/models/luminesce_binary_type.py +4 -2
- luminesce/models/lusid_grid_data.py +10 -6
- luminesce/models/lusid_problem_details.py +8 -4
- luminesce/models/mappable_field.py +6 -2
- luminesce/models/mapping_flags.py +4 -2
- luminesce/models/multi_query_definition_type.py +4 -2
- luminesce/models/on_clause_term_design.py +8 -4
- luminesce/models/options_csv.py +11 -7
- luminesce/models/options_excel.py +11 -7
- luminesce/models/options_parquet.py +6 -2
- luminesce/models/options_sq_lite.py +6 -2
- luminesce/models/options_xml.py +7 -3
- luminesce/models/order_by_direction.py +4 -2
- luminesce/models/order_by_term_design.py +8 -4
- luminesce/models/query_design.py +13 -9
- luminesce/models/query_designer_binary_operator.py +4 -2
- luminesce/models/query_designer_version.py +4 -2
- luminesce/models/resource_id.py +6 -2
- luminesce/models/resource_list_of_access_controlled_resource.py +8 -4
- luminesce/models/scalar_parameter.py +10 -6
- luminesce/models/source.py +6 -2
- luminesce/models/source_type.py +4 -2
- luminesce/models/table_meta.py +6 -2
- luminesce/models/table_view.py +10 -6
- luminesce/models/task_status.py +4 -2
- luminesce/models/type.py +4 -2
- luminesce/models/view_parameter.py +8 -4
- luminesce/models/writer_design.py +8 -4
- {luminesce_sdk-2.2.38.dist-info → luminesce_sdk-2.3.1.dist-info}/METADATA +1 -1
- luminesce_sdk-2.3.1.dist-info/RECORD +117 -0
- luminesce_sdk-2.2.38.dist-info/RECORD +0 -117
- {luminesce_sdk-2.2.38.dist-info → luminesce_sdk-2.3.1.dist-info}/WHEEL +0 -0
|
@@ -18,16 +18,18 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.cursor_position import CursorPosition
|
|
24
26
|
|
|
25
27
|
class IntellisenseRequest(BaseModel):
|
|
26
28
|
"""
|
|
27
29
|
Representation of a request for IntellisenseItems # noqa: E501
|
|
28
30
|
"""
|
|
29
|
-
lines:
|
|
30
|
-
position: CursorPosition
|
|
31
|
+
lines: List[StrictStr] = Field(description="The lines of text the user currently has in the editor")
|
|
32
|
+
position: CursorPosition
|
|
31
33
|
__properties = ["lines", "position"]
|
|
32
34
|
|
|
33
35
|
class Config:
|
|
@@ -81,3 +83,5 @@ class IntellisenseRequest(BaseModel):
|
|
|
81
83
|
"position": CursorPosition.from_dict(obj.get("position")) if obj.get("position") is not None else None
|
|
82
84
|
})
|
|
83
85
|
return _obj
|
|
86
|
+
|
|
87
|
+
IntellisenseRequest.update_forward_refs()
|
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.cursor_position import CursorPosition
|
|
24
26
|
from luminesce.models.intellisense_item import IntellisenseItem
|
|
25
27
|
|
|
@@ -27,11 +29,11 @@ class IntellisenseResponse(BaseModel):
|
|
|
27
29
|
"""
|
|
28
30
|
Available intellisense response information # noqa: E501
|
|
29
31
|
"""
|
|
30
|
-
auto_complete_list:
|
|
31
|
-
try_again_soon_for_more: StrictBool = Field(
|
|
32
|
+
auto_complete_list: List[IntellisenseItem] = Field(description="The available items at this point", alias="autoCompleteList")
|
|
33
|
+
try_again_soon_for_more: StrictBool = Field(description="Should the caller try again soon? (true means a cache is being built and this is a preliminary response!)", alias="tryAgainSoonForMore")
|
|
32
34
|
sql_with_marker: StrictStr = Field(...,alias="sqlWithMarker", description="The SQL this is for with characters indicating the location the pop-up is for")
|
|
33
|
-
start_replacement_position: CursorPosition = Field(
|
|
34
|
-
end_replacement_position: CursorPosition = Field(
|
|
35
|
+
start_replacement_position: CursorPosition = Field(alias="startReplacementPosition")
|
|
36
|
+
end_replacement_position: CursorPosition = Field(alias="endReplacementPosition")
|
|
35
37
|
__properties = ["autoCompleteList", "tryAgainSoonForMore", "sqlWithMarker", "startReplacementPosition", "endReplacementPosition"]
|
|
36
38
|
|
|
37
39
|
class Config:
|
|
@@ -98,3 +100,5 @@ class IntellisenseResponse(BaseModel):
|
|
|
98
100
|
"end_replacement_position": CursorPosition.from_dict(obj.get("endReplacementPosition")) if obj.get("endReplacementPosition") is not None else None
|
|
99
101
|
})
|
|
100
102
|
return _obj
|
|
103
|
+
|
|
104
|
+
IntellisenseResponse.update_forward_refs()
|
|
@@ -17,8 +17,10 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
from aenum import Enum, no_arg
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
23
|
+
from datetime import datetime
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
class IntellisenseType(str, Enum):
|
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.available_field import AvailableField
|
|
24
26
|
from luminesce.models.design_join_type import DesignJoinType
|
|
25
27
|
from luminesce.models.on_clause_term_design import OnClauseTermDesign
|
|
@@ -31,9 +33,9 @@ class JoinedTableDesign(BaseModel):
|
|
|
31
33
|
joined_table_name: StrictStr = Field(...,alias="joinedTableName", description="Name of the table on the right side of the join")
|
|
32
34
|
joined_table_alias: StrictStr = Field(...,alias="joinedTableAlias", description="Alias for the table on the right side of the join")
|
|
33
35
|
left_table_alias: StrictStr = Field(...,alias="leftTableAlias", description="Alias for the table on the left side of the join")
|
|
34
|
-
join_type: DesignJoinType = Field(
|
|
35
|
-
on_clause_terms:
|
|
36
|
-
right_table_available_fields: Optional[
|
|
36
|
+
join_type: DesignJoinType = Field(alias="joinType")
|
|
37
|
+
on_clause_terms: List[OnClauseTermDesign] = Field(description="Filter clauses to apply to this join in the on clause", alias="onClauseTerms")
|
|
38
|
+
right_table_available_fields: Optional[List[AvailableField]] = Field(default=None, description="Fields that are known to be available for design when parsing SQL, of the right hand table", alias="rightTableAvailableFields")
|
|
37
39
|
__properties = ["joinedTableName", "joinedTableAlias", "leftTableAlias", "joinType", "onClauseTerms", "rightTableAvailableFields"]
|
|
38
40
|
|
|
39
41
|
class Config:
|
|
@@ -107,3 +109,5 @@ class JoinedTableDesign(BaseModel):
|
|
|
107
109
|
"right_table_available_fields": [AvailableField.from_dict(_item) for _item in obj.get("rightTableAvailableFields")] if obj.get("rightTableAvailableFields") is not None else None
|
|
108
110
|
})
|
|
109
111
|
return _obj
|
|
112
|
+
|
|
113
|
+
JoinedTableDesign.update_forward_refs()
|
luminesce/models/link.py
CHANGED
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
|
|
24
26
|
class Link(BaseModel):
|
|
25
27
|
"""
|
|
@@ -86,3 +88,5 @@ class Link(BaseModel):
|
|
|
86
88
|
"method": obj.get("method")
|
|
87
89
|
})
|
|
88
90
|
return _obj
|
|
91
|
+
|
|
92
|
+
Link.update_forward_refs()
|
|
@@ -17,8 +17,10 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
from aenum import Enum, no_arg
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
23
|
+
from datetime import datetime
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
class LuminesceBinaryType(str, Enum):
|
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.dashboard_type import DashboardType
|
|
24
26
|
from luminesce.models.date_parameters import DateParameters
|
|
25
27
|
from luminesce.models.resource_id import ResourceId
|
|
@@ -29,10 +31,10 @@ class LusidGridData(BaseModel):
|
|
|
29
31
|
"""
|
|
30
32
|
Representation of the data we will get from the dashboard # noqa: E501
|
|
31
33
|
"""
|
|
32
|
-
lusid_grid_design: TableView = Field(
|
|
33
|
-
resource_id: ResourceId = Field(
|
|
34
|
-
dashboard_type: Optional[DashboardType] = Field(None, alias="dashboardType")
|
|
35
|
-
use_settle_date: Optional[StrictBool] = Field(None,
|
|
34
|
+
lusid_grid_design: TableView = Field(alias="lusidGridDesign")
|
|
35
|
+
resource_id: ResourceId = Field(alias="resourceId")
|
|
36
|
+
dashboard_type: Optional[DashboardType] = Field(default=None, alias="dashboardType")
|
|
37
|
+
use_settle_date: Optional[StrictBool] = Field(default=None, description="Whether to use the Settlement date or the Transaction date", alias="useSettleDate")
|
|
36
38
|
dates: Optional[DateParameters] = None
|
|
37
39
|
__properties = ["lusidGridDesign", "resourceId", "dashboardType", "useSettleDate", "dates"]
|
|
38
40
|
|
|
@@ -101,3 +103,5 @@ class LusidGridData(BaseModel):
|
|
|
101
103
|
"dates": DateParameters.from_dict(obj.get("dates")) if obj.get("dates") is not None else None
|
|
102
104
|
})
|
|
103
105
|
return _obj
|
|
106
|
+
|
|
107
|
+
LusidGridData.update_forward_refs()
|
|
@@ -18,16 +18,18 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
|
|
24
26
|
class LusidProblemDetails(BaseModel):
|
|
25
27
|
"""
|
|
26
28
|
LusidProblemDetails
|
|
27
29
|
"""
|
|
28
30
|
name: StrictStr = Field(...,alias="name")
|
|
29
|
-
error_details: Optional[
|
|
30
|
-
code: StrictInt
|
|
31
|
+
error_details: Optional[List[Dict[str, StrictStr]]] = Field(default=None, alias="errorDetails")
|
|
32
|
+
code: StrictInt
|
|
31
33
|
type: Optional[StrictStr] = Field(None,alias="type")
|
|
32
34
|
title: Optional[StrictStr] = Field(None,alias="title")
|
|
33
35
|
status: Optional[StrictInt] = None
|
|
@@ -119,3 +121,5 @@ class LusidProblemDetails(BaseModel):
|
|
|
119
121
|
"instance": obj.get("instance")
|
|
120
122
|
})
|
|
121
123
|
return _obj
|
|
124
|
+
|
|
125
|
+
LusidProblemDetails.update_forward_refs()
|
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.data_type import DataType
|
|
24
26
|
from luminesce.models.expression_with_alias import ExpressionWithAlias
|
|
25
27
|
|
|
@@ -124,3 +126,5 @@ class MappableField(BaseModel):
|
|
|
124
126
|
"mapping": ExpressionWithAlias.from_dict(obj.get("mapping")) if obj.get("mapping") is not None else None
|
|
125
127
|
})
|
|
126
128
|
return _obj
|
|
129
|
+
|
|
130
|
+
MappableField.update_forward_refs()
|
|
@@ -17,8 +17,10 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
from aenum import Enum, no_arg
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
23
|
+
from datetime import datetime
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
class MappingFlags(str, Enum):
|
|
@@ -17,8 +17,10 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
from aenum import Enum, no_arg
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
23
|
+
from datetime import datetime
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
class MultiQueryDefinitionType(str, Enum):
|
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.data_type import DataType
|
|
24
26
|
from luminesce.models.query_designer_binary_operator import QueryDesignerBinaryOperator
|
|
25
27
|
|
|
@@ -29,9 +31,9 @@ class OnClauseTermDesign(BaseModel):
|
|
|
29
31
|
"""
|
|
30
32
|
left_table_field: Optional[StrictStr] = Field(None,alias="leftTableField", description="Name of field in the left table to join to (complex expressions are not supported at this time)")
|
|
31
33
|
right_table_field: Optional[StrictStr] = Field(None,alias="rightTableField", description="Name of field in the left table to join to (complex expressions are not supported at this time)")
|
|
32
|
-
operator: QueryDesignerBinaryOperator
|
|
34
|
+
operator: QueryDesignerBinaryOperator
|
|
33
35
|
filter_value: Optional[StrictStr] = Field(None,alias="filterValue", description="The value to compare against (always as a string, but will be formatted to the correct type)")
|
|
34
|
-
filter_value_data_type: Optional[DataType] = Field(None, alias="filterValueDataType")
|
|
36
|
+
filter_value_data_type: Optional[DataType] = Field(default=None, alias="filterValueDataType")
|
|
35
37
|
__properties = ["leftTableField", "rightTableField", "operator", "filterValue", "filterValueDataType"]
|
|
36
38
|
|
|
37
39
|
class Config:
|
|
@@ -100,3 +102,5 @@ class OnClauseTermDesign(BaseModel):
|
|
|
100
102
|
"filter_value_data_type": obj.get("filterValueDataType")
|
|
101
103
|
})
|
|
102
104
|
return _obj
|
|
105
|
+
|
|
106
|
+
OnClauseTermDesign.update_forward_refs()
|
luminesce/models/options_csv.py
CHANGED
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
|
|
24
26
|
class OptionsCsv(BaseModel):
|
|
25
27
|
"""
|
|
@@ -28,15 +30,15 @@ class OptionsCsv(BaseModel):
|
|
|
28
30
|
column_names: Optional[StrictStr] = Field(None,alias="columnNames", description="Column Names either overrides the header row or steps in when there is no header row (comma delimited list)")
|
|
29
31
|
column_names_wanted: Optional[StrictStr] = Field(None,alias="columnNamesWanted", description="Column (by Name) that should be returned (comma delimited list)")
|
|
30
32
|
column_types: Optional[StrictStr] = Field(None,alias="columnTypes", description="Column types (comma delimited list of: '{types}', some columns may be left blank while others are specified)")
|
|
31
|
-
infer_type_row_count: Optional[StrictInt] = Field(None,
|
|
32
|
-
no_header: Optional[StrictBool] = Field(None,
|
|
33
|
+
infer_type_row_count: Optional[StrictInt] = Field(default=None, description="If non-zero and 'types' is not specified (or not specified for some columns) this will look through N rows to attempt to work out the column types for columns not pre-specified", alias="inferTypeRowCount")
|
|
34
|
+
no_header: Optional[StrictBool] = Field(default=None, description="Set this if there is no header row", alias="noHeader")
|
|
33
35
|
delimiter: Optional[StrictStr] = Field(None,alias="delimiter", description="The delimiter between values (\\t for tab)")
|
|
34
36
|
escape: Optional[StrictStr] = Field(None,alias="escape", description="Character used to escape the 'Quote' character when within a value")
|
|
35
37
|
quote: Optional[StrictStr] = Field(None,alias="quote", description="Character used around any field containing the 'delimiter' or a line break.")
|
|
36
38
|
values_to_make_null: Optional[StrictStr] = Field(None,alias="valuesToMakeNull", description="Regex of values to map to 'null' in the returned data.")
|
|
37
|
-
skip_pre_header: Optional[StrictInt] = Field(None,
|
|
38
|
-
skip_post_header: Optional[StrictInt] = Field(None,
|
|
39
|
-
skip_invalid_rows: Optional[StrictBool] = Field(None,
|
|
39
|
+
skip_pre_header: Optional[StrictInt] = Field(default=None, description="Number of rows to ignore before the header row", alias="skipPreHeader")
|
|
40
|
+
skip_post_header: Optional[StrictInt] = Field(default=None, description="Number of rows to ignore after the header row", alias="skipPostHeader")
|
|
41
|
+
skip_invalid_rows: Optional[StrictBool] = Field(default=None, description="Skip invalid data rows (totally invalid ones), This also allows for potentially wrong data if it can be handled somewhat e.g. embedded quotes misused (and still returns such rows). In either case a warning will show in the progress feedback.", alias="skipInvalidRows")
|
|
40
42
|
__properties = ["columnNames", "columnNamesWanted", "columnTypes", "inferTypeRowCount", "noHeader", "delimiter", "escape", "quote", "valuesToMakeNull", "skipPreHeader", "skipPostHeader", "skipInvalidRows"]
|
|
41
43
|
|
|
42
44
|
class Config:
|
|
@@ -132,3 +134,5 @@ class OptionsCsv(BaseModel):
|
|
|
132
134
|
"skip_invalid_rows": obj.get("skipInvalidRows")
|
|
133
135
|
})
|
|
134
136
|
return _obj
|
|
137
|
+
|
|
138
|
+
OptionsCsv.update_forward_refs()
|
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
|
|
24
26
|
class OptionsExcel(BaseModel):
|
|
25
27
|
"""
|
|
@@ -27,14 +29,14 @@ class OptionsExcel(BaseModel):
|
|
|
27
29
|
"""
|
|
28
30
|
column_names: Optional[StrictStr] = Field(None,alias="columnNames", description="Column Names either overrides the header row or steps in when there is no header row (comma delimited list)")
|
|
29
31
|
column_types: Optional[StrictStr] = Field(None,alias="columnTypes", description="Column types (comma delimited list of: '{types}', some columns may be left blank while others are specified)")
|
|
30
|
-
infer_type_row_count: Optional[StrictInt] = Field(None,
|
|
31
|
-
no_header: Optional[StrictBool] = Field(None,
|
|
32
|
-
calculate: Optional[StrictBool] = Field(None, description="Whether to attempt a calculation of the imported cell range prior to import")
|
|
32
|
+
infer_type_row_count: Optional[StrictInt] = Field(default=None, description="If non-zero and 'types' is not specified (or not specified for some columns) this will look through N rows to attempt to work out the column types for columns not pre-specified", alias="inferTypeRowCount")
|
|
33
|
+
no_header: Optional[StrictBool] = Field(default=None, description="Set this if there is no header row", alias="noHeader")
|
|
34
|
+
calculate: Optional[StrictBool] = Field(default=None, description="Whether to attempt a calculation of the imported cell range prior to import")
|
|
33
35
|
password: Optional[StrictStr] = Field(None,alias="password", description="If specified will be used as the password used for password protected workbooks")
|
|
34
36
|
worksheet: Optional[StrictStr] = Field(None,alias="worksheet", description="The worksheet containing the cell range to import (name or index, will default to first)")
|
|
35
37
|
range_or_table: Optional[StrictStr] = Field(None,alias="rangeOrTable", description="The cell range to import as either a specified range or a table name")
|
|
36
|
-
ignore_invalid_cells: Optional[StrictBool] = Field(None,
|
|
37
|
-
ignore_blank_rows: Optional[StrictBool] = Field(None,
|
|
38
|
+
ignore_invalid_cells: Optional[StrictBool] = Field(default=None, description="If specified cells which can not be successfully converted to the target type will be ignored", alias="ignoreInvalidCells")
|
|
39
|
+
ignore_blank_rows: Optional[StrictBool] = Field(default=None, description="If the entire rows has only blank cells it will be ignored will be ignored", alias="ignoreBlankRows")
|
|
38
40
|
__properties = ["columnNames", "columnTypes", "inferTypeRowCount", "noHeader", "calculate", "password", "worksheet", "rangeOrTable", "ignoreInvalidCells", "ignoreBlankRows"]
|
|
39
41
|
|
|
40
42
|
class Config:
|
|
@@ -118,3 +120,5 @@ class OptionsExcel(BaseModel):
|
|
|
118
120
|
"ignore_blank_rows": obj.get("ignoreBlankRows")
|
|
119
121
|
})
|
|
120
122
|
return _obj
|
|
123
|
+
|
|
124
|
+
OptionsExcel.update_forward_refs()
|
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
|
|
24
26
|
class OptionsParquet(BaseModel):
|
|
25
27
|
"""
|
|
@@ -80,3 +82,5 @@ class OptionsParquet(BaseModel):
|
|
|
80
82
|
"column_names_wanted": obj.get("columnNamesWanted")
|
|
81
83
|
})
|
|
82
84
|
return _obj
|
|
85
|
+
|
|
86
|
+
OptionsParquet.update_forward_refs()
|
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
|
|
24
26
|
class OptionsSqLite(BaseModel):
|
|
25
27
|
"""
|
|
@@ -80,3 +82,5 @@ class OptionsSqLite(BaseModel):
|
|
|
80
82
|
"table": obj.get("table")
|
|
81
83
|
})
|
|
82
84
|
return _obj
|
|
85
|
+
|
|
86
|
+
OptionsSqLite.update_forward_refs()
|
luminesce/models/options_xml.py
CHANGED
|
@@ -18,15 +18,17 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
|
|
24
26
|
class OptionsXml(BaseModel):
|
|
25
27
|
"""
|
|
26
28
|
Additional options applicable to the given SourceType # noqa: E501
|
|
27
29
|
"""
|
|
28
30
|
column_types: Optional[StrictStr] = Field(None,alias="columnTypes", description="Column types (comma delimited list of: '{types}', some columns may be left blank while others are specified)")
|
|
29
|
-
infer_type_row_count: Optional[StrictInt] = Field(None,
|
|
31
|
+
infer_type_row_count: Optional[StrictInt] = Field(default=None, description="If non-zero and 'types' is not specified (or not specified for some columns) this will look through N rows to attempt to work out the column types for columns not pre-specified", alias="inferTypeRowCount")
|
|
30
32
|
values_to_make_null: Optional[StrictStr] = Field(None,alias="valuesToMakeNull", description="Regex of values to map to 'null' in the returned data.")
|
|
31
33
|
column_names: Optional[StrictStr] = Field(None,alias="columnNames", description="Column Names either overrides the header row or steps in when there is no header row (comma delimited list)")
|
|
32
34
|
node_path: Optional[StrictStr] = Field(None,alias="nodePath", description="XPath query that selects the nodes to map to rows")
|
|
@@ -110,3 +112,5 @@ class OptionsXml(BaseModel):
|
|
|
110
112
|
"namespaces": obj.get("namespaces")
|
|
111
113
|
})
|
|
112
114
|
return _obj
|
|
115
|
+
|
|
116
|
+
OptionsXml.update_forward_refs()
|
|
@@ -17,8 +17,10 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
from aenum import Enum, no_arg
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
23
|
+
from datetime import datetime
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
class OrderByDirection(str, Enum):
|
|
@@ -18,15 +18,17 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.order_by_direction import OrderByDirection
|
|
24
26
|
|
|
25
27
|
class OrderByTermDesign(BaseModel):
|
|
26
28
|
"""
|
|
27
29
|
A single clause within an Order BY # noqa: E501
|
|
28
30
|
"""
|
|
29
|
-
|
|
31
|
+
var_field: StrictStr = Field(...,alias="field", description="Name of the field to order by")
|
|
30
32
|
direction: Optional[OrderByDirection] = None
|
|
31
33
|
table_alias: Optional[StrictStr] = Field(None,alias="tableAlias", description="Table Alias of the field to order by")
|
|
32
34
|
__properties = ["field", "direction", "tableAlias"]
|
|
@@ -80,8 +82,10 @@ class OrderByTermDesign(BaseModel):
|
|
|
80
82
|
return OrderByTermDesign.parse_obj(obj)
|
|
81
83
|
|
|
82
84
|
_obj = OrderByTermDesign.parse_obj({
|
|
83
|
-
"
|
|
85
|
+
"var_field": obj.get("field"),
|
|
84
86
|
"direction": obj.get("direction"),
|
|
85
87
|
"table_alias": obj.get("tableAlias")
|
|
86
88
|
})
|
|
87
89
|
return _obj
|
|
90
|
+
|
|
91
|
+
OrderByTermDesign.update_forward_refs()
|
luminesce/models/query_design.py
CHANGED
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.available_field import AvailableField
|
|
24
26
|
from luminesce.models.field_design import FieldDesign
|
|
25
27
|
from luminesce.models.joined_table_design import JoinedTableDesign
|
|
@@ -31,13 +33,13 @@ class QueryDesign(BaseModel):
|
|
|
31
33
|
"""
|
|
32
34
|
table_name: StrictStr = Field(...,alias="tableName", description="Name of the table being designed")
|
|
33
35
|
alias: Optional[StrictStr] = Field(None,alias="alias", description="Alias for the table in the generated SQL, if any")
|
|
34
|
-
fields:
|
|
35
|
-
joined_tables: Optional[
|
|
36
|
-
order_by: Optional[
|
|
37
|
-
limit: Optional[StrictInt] = Field(None, description="Row limit to apply, if any")
|
|
38
|
-
offset: Optional[StrictInt] = Field(None, description="Row offset to apply, if any")
|
|
39
|
-
warnings: Optional[
|
|
40
|
-
available_fields: Optional[
|
|
36
|
+
fields: List[FieldDesign] = Field(description="Fields to be selected, aggregated over and/or filtered on")
|
|
37
|
+
joined_tables: Optional[List[JoinedTableDesign]] = Field(default=None, description="Joined in table to the main TableName / Alias", alias="joinedTables")
|
|
38
|
+
order_by: Optional[List[OrderByTermDesign]] = Field(default=None, description="Order By clauses to apply", alias="orderBy")
|
|
39
|
+
limit: Optional[StrictInt] = Field(default=None, description="Row limit to apply, if any")
|
|
40
|
+
offset: Optional[StrictInt] = Field(default=None, description="Row offset to apply, if any")
|
|
41
|
+
warnings: Optional[List[StrictStr]] = Field(default=None, description="Any warnings to show the user when converting from SQL to this representation")
|
|
42
|
+
available_fields: Optional[List[AvailableField]] = Field(default=None, description="Fields that are known to be available for design when parsing SQL", alias="availableFields")
|
|
41
43
|
__properties = ["tableName", "alias", "fields", "joinedTables", "orderBy", "limit", "offset", "warnings", "availableFields"]
|
|
42
44
|
|
|
43
45
|
class Config:
|
|
@@ -158,3 +160,5 @@ class QueryDesign(BaseModel):
|
|
|
158
160
|
"available_fields": [AvailableField.from_dict(_item) for _item in obj.get("availableFields")] if obj.get("availableFields") is not None else None
|
|
159
161
|
})
|
|
160
162
|
return _obj
|
|
163
|
+
|
|
164
|
+
QueryDesign.update_forward_refs()
|
|
@@ -17,8 +17,10 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
from aenum import Enum, no_arg
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
23
|
+
from datetime import datetime
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
class QueryDesignerBinaryOperator(str, Enum):
|
|
@@ -17,8 +17,10 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
from aenum import Enum, no_arg
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
23
|
+
from datetime import datetime
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
class QueryDesignerVersion(str, Enum):
|
luminesce/models/resource_id.py
CHANGED
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
|
|
24
26
|
class ResourceId(BaseModel):
|
|
25
27
|
"""
|
|
@@ -82,3 +84,5 @@ class ResourceId(BaseModel):
|
|
|
82
84
|
"code": obj.get("code")
|
|
83
85
|
})
|
|
84
86
|
return _obj
|
|
87
|
+
|
|
88
|
+
ResourceId.update_forward_refs()
|
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.access_controlled_resource import AccessControlledResource
|
|
24
26
|
from luminesce.models.link import Link
|
|
25
27
|
|
|
@@ -27,9 +29,9 @@ class ResourceListOfAccessControlledResource(BaseModel):
|
|
|
27
29
|
"""
|
|
28
30
|
ResourceListOfAccessControlledResource
|
|
29
31
|
"""
|
|
30
|
-
values:
|
|
32
|
+
values: List[AccessControlledResource]
|
|
31
33
|
href: Optional[StrictStr] = Field(None,alias="href")
|
|
32
|
-
links: Optional[
|
|
34
|
+
links: Optional[List[Link]] = None
|
|
33
35
|
next_page: Optional[StrictStr] = Field(None,alias="nextPage")
|
|
34
36
|
previous_page: Optional[StrictStr] = Field(None,alias="previousPage")
|
|
35
37
|
__properties = ["values", "href", "links", "nextPage", "previousPage"]
|
|
@@ -119,3 +121,5 @@ class ResourceListOfAccessControlledResource(BaseModel):
|
|
|
119
121
|
"previous_page": obj.get("previousPage")
|
|
120
122
|
})
|
|
121
123
|
return _obj
|
|
124
|
+
|
|
125
|
+
ResourceListOfAccessControlledResource.update_forward_refs()
|