stackit-intake 0.3.0__tar.gz → 0.4.0__tar.gz
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.
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/PKG-INFO +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/pyproject.toml +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/__init__.py +5 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/api/default_api.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/api_client.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/configuration.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/exceptions.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/__init__.py +2 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/catalog_auth.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/catalog_auth_patch.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/catalog_auth_type.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/client_config.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/create_intake_payload.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/create_intake_runner_payload.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/create_intake_user_payload.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/dremio_auth.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/dremio_auth_patch.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/intake_catalog.py +2 -2
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/intake_catalog_patch.py +24 -2
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/intake_response.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/intake_runner_response.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/intake_user_response.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/list_intake_runners_response.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/list_intake_users_response.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/list_intakes_response.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/partitioning_type.py +1 -1
- stackit_intake-0.4.0/src/stackit/intake/models/partitioning_update_type.py +37 -0
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/update_intake_payload.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/update_intake_runner_payload.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/update_intake_user_payload.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/user_type.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/rest.py +1 -1
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/LICENSE.md +0 -0
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/NOTICE.txt +0 -0
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/README.md +0 -0
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/api/__init__.py +0 -0
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/api_response.py +0 -0
- {stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/py.typed +0 -0
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
This API provides endpoints for managing Intakes.
|
|
9
9
|
|
|
10
|
-
The version of the OpenAPI document: 1beta.3.
|
|
10
|
+
The version of the OpenAPI document: 1beta.3.5
|
|
11
11
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
12
|
|
|
13
13
|
Do not edit the class manually.
|
|
@@ -46,6 +46,7 @@ __all__ = [
|
|
|
46
46
|
"ListIntakeUsersResponse",
|
|
47
47
|
"ListIntakesResponse",
|
|
48
48
|
"PartitioningType",
|
|
49
|
+
"PartitioningUpdateType",
|
|
49
50
|
"UpdateIntakePayload",
|
|
50
51
|
"UpdateIntakeRunnerPayload",
|
|
51
52
|
"UpdateIntakeUserPayload",
|
|
@@ -105,6 +106,9 @@ from stackit.intake.models.list_intakes_response import (
|
|
|
105
106
|
ListIntakesResponse as ListIntakesResponse,
|
|
106
107
|
)
|
|
107
108
|
from stackit.intake.models.partitioning_type import PartitioningType as PartitioningType
|
|
109
|
+
from stackit.intake.models.partitioning_update_type import (
|
|
110
|
+
PartitioningUpdateType as PartitioningUpdateType,
|
|
111
|
+
)
|
|
108
112
|
from stackit.intake.models.update_intake_payload import (
|
|
109
113
|
UpdateIntakePayload as UpdateIntakePayload,
|
|
110
114
|
)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
This API provides endpoints for managing Intakes.
|
|
8
8
|
|
|
9
|
-
The version of the OpenAPI document: 1beta.3.
|
|
9
|
+
The version of the OpenAPI document: 1beta.3.5
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
12
12
|
Do not edit the class manually.
|
|
@@ -32,6 +32,7 @@ from stackit.intake.models.list_intake_runners_response import ListIntakeRunners
|
|
|
32
32
|
from stackit.intake.models.list_intake_users_response import ListIntakeUsersResponse
|
|
33
33
|
from stackit.intake.models.list_intakes_response import ListIntakesResponse
|
|
34
34
|
from stackit.intake.models.partitioning_type import PartitioningType
|
|
35
|
+
from stackit.intake.models.partitioning_update_type import PartitioningUpdateType
|
|
35
36
|
from stackit.intake.models.update_intake_payload import UpdateIntakePayload
|
|
36
37
|
from stackit.intake.models.update_intake_runner_payload import UpdateIntakeRunnerPayload
|
|
37
38
|
from stackit.intake.models.update_intake_user_payload import UpdateIntakeUserPayload
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
This API provides endpoints for managing Intakes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 1beta.3.
|
|
8
|
+
The version of the OpenAPI document: 1beta.3.5
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -36,7 +36,7 @@ class IntakeCatalog(BaseModel):
|
|
|
36
36
|
)
|
|
37
37
|
partition_by: Optional[List[Annotated[str, Field(strict=True, max_length=1024)]]] = Field(
|
|
38
38
|
default=None,
|
|
39
|
-
description="List of Iceberg partitioning expressions to use when creating the target table. This setting can only be used when `partitioning` is set to `manual`. Partitioning configuration of an Intake
|
|
39
|
+
description="List of Iceberg partitioning expressions to use when creating the target table. This setting can only be used when `partitioning` is set to `manual`. Partitioning configuration of an Intake can be changed after creation, but will only take effect once the table has been changed as well. In case of not updating the table to a new one, the old partitioning configuration will remain. See the [Apache Iceberg spec](https://iceberg.apache.org/spec/#partitioning) for more details. ",
|
|
40
40
|
alias="partitionBy",
|
|
41
41
|
)
|
|
42
42
|
partitioning: Optional[PartitioningType] = PartitioningType.NONE
|
{stackit_intake-0.3.0 → stackit_intake-0.4.0}/src/stackit/intake/models/intake_catalog_patch.py
RENAMED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
This API provides endpoints for managing Intakes.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 1beta.3.
|
|
8
|
+
The version of the OpenAPI document: 1beta.3.5
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field
|
|
|
21
21
|
from typing_extensions import Annotated, Self
|
|
22
22
|
|
|
23
23
|
from stackit.intake.models.catalog_auth_patch import CatalogAuthPatch
|
|
24
|
+
from stackit.intake.models.partitioning_update_type import PartitioningUpdateType
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
class IntakeCatalogPatch(BaseModel):
|
|
@@ -33,6 +34,12 @@ class IntakeCatalogPatch(BaseModel):
|
|
|
33
34
|
default="intake",
|
|
34
35
|
description="The namespace to which data shall be written. It will be automatically created, if it does not exist.",
|
|
35
36
|
)
|
|
37
|
+
partition_by: Optional[List[Annotated[str, Field(strict=True, max_length=1024)]]] = Field(
|
|
38
|
+
default=None,
|
|
39
|
+
description="List of Iceberg partitioning expressions to use when creating the target table. This setting can only be used when `partitioning` is set to `manual`. See the [Apache Iceberg spec](https://iceberg.apache.org/spec/#partitioning) for more details. ",
|
|
40
|
+
alias="partitionBy",
|
|
41
|
+
)
|
|
42
|
+
partitioning: Optional[PartitioningUpdateType] = None
|
|
36
43
|
table_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=1024)]] = Field(
|
|
37
44
|
default=None,
|
|
38
45
|
description="The table name is a short name chosen by the user to identify the table in Iceberg.",
|
|
@@ -45,7 +52,15 @@ class IntakeCatalogPatch(BaseModel):
|
|
|
45
52
|
default=None,
|
|
46
53
|
description="The Iceberg warehouse to connect to, required when the catalog has no default warehouse configured.",
|
|
47
54
|
)
|
|
48
|
-
__properties: ClassVar[List[str]] = [
|
|
55
|
+
__properties: ClassVar[List[str]] = [
|
|
56
|
+
"auth",
|
|
57
|
+
"namespace",
|
|
58
|
+
"partitionBy",
|
|
59
|
+
"partitioning",
|
|
60
|
+
"tableName",
|
|
61
|
+
"uri",
|
|
62
|
+
"warehouse",
|
|
63
|
+
]
|
|
49
64
|
|
|
50
65
|
model_config = ConfigDict(
|
|
51
66
|
populate_by_name=True,
|
|
@@ -87,6 +102,11 @@ class IntakeCatalogPatch(BaseModel):
|
|
|
87
102
|
# override the default output from pydantic by calling `to_dict()` of auth
|
|
88
103
|
if self.auth:
|
|
89
104
|
_dict["auth"] = self.auth.to_dict()
|
|
105
|
+
# set to None if partition_by (nullable) is None
|
|
106
|
+
# and model_fields_set contains the field
|
|
107
|
+
if self.partition_by is None and "partition_by" in self.model_fields_set:
|
|
108
|
+
_dict["partitionBy"] = None
|
|
109
|
+
|
|
90
110
|
return _dict
|
|
91
111
|
|
|
92
112
|
@classmethod
|
|
@@ -102,6 +122,8 @@ class IntakeCatalogPatch(BaseModel):
|
|
|
102
122
|
{
|
|
103
123
|
"auth": CatalogAuthPatch.from_dict(obj["auth"]) if obj.get("auth") is not None else None,
|
|
104
124
|
"namespace": obj.get("namespace") if obj.get("namespace") is not None else "intake",
|
|
125
|
+
"partitionBy": obj.get("partitionBy"),
|
|
126
|
+
"partitioning": obj.get("partitioning"),
|
|
105
127
|
"tableName": obj.get("tableName"),
|
|
106
128
|
"uri": obj.get("uri"),
|
|
107
129
|
"warehouse": obj.get("warehouse"),
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
STACKIT Intake API
|
|
5
|
+
|
|
6
|
+
This API provides endpoints for managing Intakes.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1beta.3.5
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
|
|
16
|
+
import json
|
|
17
|
+
from enum import Enum
|
|
18
|
+
|
|
19
|
+
from typing_extensions import Self
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class PartitioningUpdateType(str, Enum):
|
|
23
|
+
"""
|
|
24
|
+
The target table's partitioning. * `none` disables partitioning. * `intake-time` configures daily partitioning based on the automatically created ingestion time column `__intake_ts`. * `manual` allows arbitrary Iceberg partitioning expression to be set via `partitionBy`.
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
"""
|
|
28
|
+
allowed enum values
|
|
29
|
+
"""
|
|
30
|
+
NONE = "none"
|
|
31
|
+
INTAKE_MINUS_TIME = "intake-time"
|
|
32
|
+
MANUAL = "manual"
|
|
33
|
+
|
|
34
|
+
@classmethod
|
|
35
|
+
def from_json(cls, json_str: str) -> Self:
|
|
36
|
+
"""Create an instance of PartitioningUpdateType from a JSON string"""
|
|
37
|
+
return cls(json.loads(json_str))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|