stackit-intake 0.2.0__tar.gz → 0.3.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.2.0 → stackit_intake-0.3.0}/PKG-INFO +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/pyproject.toml +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/__init__.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/api/default_api.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/api_client.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/configuration.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/exceptions.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/__init__.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/catalog_auth.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/catalog_auth_patch.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/catalog_auth_type.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/client_config.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/create_intake_payload.py +10 -2
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/create_intake_runner_payload.py +10 -2
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/create_intake_user_payload.py +13 -3
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/dremio_auth.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/dremio_auth_patch.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/intake_catalog.py +2 -2
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/intake_catalog_patch.py +2 -2
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/intake_response.py +15 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/intake_runner_response.py +15 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/intake_user_response.py +15 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/list_intake_runners_response.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/list_intake_users_response.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/list_intakes_response.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/partitioning_type.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/update_intake_payload.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/update_intake_runner_payload.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/update_intake_user_payload.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/user_type.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/rest.py +1 -1
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/LICENSE.md +0 -0
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/NOTICE.txt +0 -0
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/README.md +0 -0
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/api/__init__.py +0 -0
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/api_response.py +0 -0
- {stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/py.typed +0 -0
{stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/create_intake_payload.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.4
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -15,9 +15,10 @@ from __future__ import annotations
|
|
|
15
15
|
|
|
16
16
|
import json
|
|
17
17
|
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
18
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
20
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
21
22
|
from typing_extensions import Annotated, Self
|
|
22
23
|
|
|
23
24
|
from stackit.intake.models.intake_catalog import IntakeCatalog
|
|
@@ -44,6 +45,13 @@ class CreateIntakePayload(BaseModel):
|
|
|
44
45
|
)
|
|
45
46
|
__properties: ClassVar[List[str]] = ["catalog", "description", "displayName", "intakeRunnerId", "labels"]
|
|
46
47
|
|
|
48
|
+
@field_validator("display_name")
|
|
49
|
+
def display_name_validate_regular_expression(cls, value):
|
|
50
|
+
"""Validates the regular expression"""
|
|
51
|
+
if not re.match(r"^[\p{L}\p{N} -]{1,32}$", value):
|
|
52
|
+
raise ValueError(r"must validate the regular expression /^[\p{L}\p{N} -]{1,32}$/")
|
|
53
|
+
return value
|
|
54
|
+
|
|
47
55
|
model_config = ConfigDict(
|
|
48
56
|
populate_by_name=True,
|
|
49
57
|
validate_assignment=True,
|
|
@@ -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.4
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -15,9 +15,10 @@ from __future__ import annotations
|
|
|
15
15
|
|
|
16
16
|
import json
|
|
17
17
|
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
18
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
20
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
|
|
21
22
|
from typing_extensions import Annotated, Self
|
|
22
23
|
|
|
23
24
|
|
|
@@ -50,6 +51,13 @@ class CreateIntakeRunnerPayload(BaseModel):
|
|
|
50
51
|
"maxMessagesPerHour",
|
|
51
52
|
]
|
|
52
53
|
|
|
54
|
+
@field_validator("display_name")
|
|
55
|
+
def display_name_validate_regular_expression(cls, value):
|
|
56
|
+
"""Validates the regular expression"""
|
|
57
|
+
if not re.match(r"^[\p{L}\p{N} -]{1,32}$", value):
|
|
58
|
+
raise ValueError(r"must validate the regular expression /^[\p{L}\p{N} -]{1,32}$/")
|
|
59
|
+
return value
|
|
60
|
+
|
|
53
61
|
model_config = ConfigDict(
|
|
54
62
|
populate_by_name=True,
|
|
55
63
|
validate_assignment=True,
|
|
@@ -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.4
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -15,9 +15,10 @@ from __future__ import annotations
|
|
|
15
15
|
|
|
16
16
|
import json
|
|
17
17
|
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
18
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
20
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
21
22
|
from typing_extensions import Annotated, Self
|
|
22
23
|
|
|
23
24
|
from stackit.intake.models.user_type import UserType
|
|
@@ -38,10 +39,19 @@ class CreateIntakeUserPayload(BaseModel):
|
|
|
38
39
|
labels: Optional[Dict[str, StrictStr]] = Field(
|
|
39
40
|
default=None, description="Labels are key-value pairs associated with the resource."
|
|
40
41
|
)
|
|
41
|
-
password: Annotated[str, Field(strict=True, max_length=128)] = Field(
|
|
42
|
+
password: Annotated[str, Field(min_length=12, strict=True, max_length=128)] = Field(
|
|
43
|
+
description="A password chosen by the user. The password must consist of at least of each of these categories: * lower case letter * upper case letter * number * other character "
|
|
44
|
+
)
|
|
42
45
|
type: Optional[UserType] = UserType.INTAKE
|
|
43
46
|
__properties: ClassVar[List[str]] = ["description", "displayName", "labels", "password", "type"]
|
|
44
47
|
|
|
48
|
+
@field_validator("display_name")
|
|
49
|
+
def display_name_validate_regular_expression(cls, value):
|
|
50
|
+
"""Validates the regular expression"""
|
|
51
|
+
if not re.match(r"^[\p{L}\p{N} -]{1,32}$", value):
|
|
52
|
+
raise ValueError(r"must validate the regular expression /^[\p{L}\p{N} -]{1,32}$/")
|
|
53
|
+
return value
|
|
54
|
+
|
|
45
55
|
model_config = ConfigDict(
|
|
46
56
|
populate_by_name=True,
|
|
47
57
|
validate_assignment=True,
|
|
@@ -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.4
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -40,7 +40,7 @@ class IntakeCatalog(BaseModel):
|
|
|
40
40
|
alias="partitionBy",
|
|
41
41
|
)
|
|
42
42
|
partitioning: Optional[PartitioningType] = PartitioningType.NONE
|
|
43
|
-
table_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=
|
|
43
|
+
table_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=1024)]] = Field(
|
|
44
44
|
default=None,
|
|
45
45
|
description="The table name is a short name chosen by the user to identify the table in Iceberg.",
|
|
46
46
|
alias="tableName",
|
{stackit_intake-0.2.0 → stackit_intake-0.3.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.4
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -33,7 +33,7 @@ class IntakeCatalogPatch(BaseModel):
|
|
|
33
33
|
default="intake",
|
|
34
34
|
description="The namespace to which data shall be written. It will be automatically created, if it does not exist.",
|
|
35
35
|
)
|
|
36
|
-
table_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=
|
|
36
|
+
table_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=1024)]] = Field(
|
|
37
37
|
default=None,
|
|
38
38
|
description="The table name is a short name chosen by the user to identify the table in Iceberg.",
|
|
39
39
|
alias="tableName",
|
|
@@ -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.4
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -15,6 +15,7 @@ from __future__ import annotations
|
|
|
15
15
|
|
|
16
16
|
import json
|
|
17
17
|
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
18
19
|
from datetime import datetime
|
|
19
20
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
21
|
|
|
@@ -75,6 +76,19 @@ class IntakeResponse(BaseModel):
|
|
|
75
76
|
"uri",
|
|
76
77
|
]
|
|
77
78
|
|
|
79
|
+
@field_validator("create_time", mode="before")
|
|
80
|
+
def create_time_change_year_zero_to_one(cls, value):
|
|
81
|
+
"""Workaround which prevents year 0 issue"""
|
|
82
|
+
if isinstance(value, str):
|
|
83
|
+
# Check for year "0000" at the beginning of the string
|
|
84
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
85
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
86
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
87
|
+
):
|
|
88
|
+
# Workaround: Replace "0000" with "0001"
|
|
89
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
90
|
+
return value
|
|
91
|
+
|
|
78
92
|
@field_validator("state")
|
|
79
93
|
def state_validate_enum(cls, value):
|
|
80
94
|
"""Validates the enum"""
|
{stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/intake_runner_response.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.4
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -15,6 +15,7 @@ from __future__ import annotations
|
|
|
15
15
|
|
|
16
16
|
import json
|
|
17
17
|
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
18
19
|
from datetime import datetime
|
|
19
20
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
21
|
|
|
@@ -59,6 +60,19 @@ class IntakeRunnerResponse(BaseModel):
|
|
|
59
60
|
"uri",
|
|
60
61
|
]
|
|
61
62
|
|
|
63
|
+
@field_validator("create_time", mode="before")
|
|
64
|
+
def create_time_change_year_zero_to_one(cls, value):
|
|
65
|
+
"""Workaround which prevents year 0 issue"""
|
|
66
|
+
if isinstance(value, str):
|
|
67
|
+
# Check for year "0000" at the beginning of the string
|
|
68
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
69
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
70
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
71
|
+
):
|
|
72
|
+
# Workaround: Replace "0000" with "0001"
|
|
73
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
74
|
+
return value
|
|
75
|
+
|
|
62
76
|
@field_validator("state")
|
|
63
77
|
def state_validate_enum(cls, value):
|
|
64
78
|
"""Validates the enum"""
|
{stackit_intake-0.2.0 → stackit_intake-0.3.0}/src/stackit/intake/models/intake_user_response.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.4
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -15,6 +15,7 @@ from __future__ import annotations
|
|
|
15
15
|
|
|
16
16
|
import json
|
|
17
17
|
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
18
19
|
from datetime import datetime
|
|
19
20
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
21
|
|
|
@@ -58,6 +59,19 @@ class IntakeUserResponse(BaseModel):
|
|
|
58
59
|
"user",
|
|
59
60
|
]
|
|
60
61
|
|
|
62
|
+
@field_validator("create_time", mode="before")
|
|
63
|
+
def create_time_change_year_zero_to_one(cls, value):
|
|
64
|
+
"""Workaround which prevents year 0 issue"""
|
|
65
|
+
if isinstance(value, str):
|
|
66
|
+
# Check for year "0000" at the beginning of the string
|
|
67
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
68
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
69
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
70
|
+
):
|
|
71
|
+
# Workaround: Replace "0000" with "0001"
|
|
72
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
73
|
+
return value
|
|
74
|
+
|
|
61
75
|
@field_validator("state")
|
|
62
76
|
def state_validate_enum(cls, value):
|
|
63
77
|
"""Validates the enum"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|