Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@
- new model classes `RunnerLabel` and `ListRunnerLabels`
- [v0.5.1](services/git/CHANGELOG.md#v051)
- **Bugfix:** Prevent year 0 timestamp issue
- `intake`: [v0.2.1](services/intake/CHANGELOG.md#v021)
- **Bugfix:** Prevent year 0 timestamp issue
- `intake`:
- [v0.3.0](services/intake/CHANGELOG.md#v030)
- Validate `display_name` attribute regular expression using a field validator in model classes `CreateIntakePayload`, `CreateIntakeRunnerPayload` and `CreateIntakeUserPayload`
- Set minimum length (`12`) for `password` attribute in model class `CreateIntakeUserPayload`
- Set maximum length from `32` to `1024` for `table_name` attribute in `IntakeCatalog` and `IntakeCatalogPatch` model classes
- [v0.2.1](services/intake/CHANGELOG.md#v021)
- **Bugfix:** Prevent year 0 timestamp issue
- `kms`: [v0.4.1](services/kms/CHANGELOG.md#v041)
- **Bugfix:** Prevent year 0 timestamp issue
- `modelserving`: [v0.2.2](services/modelserving/CHANGELOG.md#v022)
Expand Down
5 changes: 5 additions & 0 deletions services/intake/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v0.3.0
- Validate `display_name` attribute regular expression using a field validator in model classes `CreateIntakePayload`, `CreateIntakeRunnerPayload` and `CreateIntakeUserPayload`
- Set minimum length (`12`) for `password` attribute in model class `CreateIntakeUserPayload`
- Set maximum length from `32` to `1024` for `table_name` attribute in `IntakeCatalog` and `IntakeCatalogPatch` model classes

## v0.2.1
- **Bugfix:** Prevent year 0 timestamp issue

Expand Down
2 changes: 1 addition & 1 deletion services/intake/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "stackit-intake"

[tool.poetry]
name = "stackit-intake"
version = "v0.2.1"
version = "v0.3.0"
authors = [
"STACKIT Developer Tools <developer-tools@stackit.cloud>",
]
Expand Down
2 changes: 1 addition & 1 deletion services/intake/src/stackit/intake/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion services/intake/src/stackit/intake/api/default_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion services/intake/src/stackit/intake/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion services/intake/src/stackit/intake/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion services/intake/src/stackit/intake/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion services/intake/src/stackit/intake/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand All @@ -15,9 +15,10 @@

import json
import pprint
import re # noqa: F401
from typing import Any, ClassVar, Dict, List, Optional, Set

from pydantic import BaseModel, ConfigDict, Field, StrictStr
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing_extensions import Annotated, Self

from stackit.intake.models.intake_catalog import IntakeCatalog
Expand All @@ -44,6 +45,13 @@ class CreateIntakePayload(BaseModel):
)
__properties: ClassVar[List[str]] = ["catalog", "description", "displayName", "intakeRunnerId", "labels"]

@field_validator("display_name")
def display_name_validate_regular_expression(cls, value):
"""Validates the regular expression"""
if not re.match(r"^[\p{L}\p{N} -]{1,32}$", value):
raise ValueError(r"must validate the regular expression /^[\p{L}\p{N} -]{1,32}$/")
return value

model_config = ConfigDict(
populate_by_name=True,
validate_assignment=True,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand All @@ -15,9 +15,10 @@

import json
import pprint
import re # noqa: F401
from typing import Any, ClassVar, Dict, List, Optional, Set

from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
from typing_extensions import Annotated, Self


Expand Down Expand Up @@ -50,6 +51,13 @@ class CreateIntakeRunnerPayload(BaseModel):
"maxMessagesPerHour",
]

@field_validator("display_name")
def display_name_validate_regular_expression(cls, value):
"""Validates the regular expression"""
if not re.match(r"^[\p{L}\p{N} -]{1,32}$", value):
raise ValueError(r"must validate the regular expression /^[\p{L}\p{N} -]{1,32}$/")
return value

model_config = ConfigDict(
populate_by_name=True,
validate_assignment=True,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand All @@ -15,9 +15,10 @@

import json
import pprint
import re # noqa: F401
from typing import Any, ClassVar, Dict, List, Optional, Set

from pydantic import BaseModel, ConfigDict, Field, StrictStr
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing_extensions import Annotated, Self

from stackit.intake.models.user_type import UserType
Expand All @@ -38,10 +39,19 @@ class CreateIntakeUserPayload(BaseModel):
labels: Optional[Dict[str, StrictStr]] = Field(
default=None, description="Labels are key-value pairs associated with the resource."
)
password: Annotated[str, Field(strict=True, max_length=128)] = Field(description="A password chosen by the user.")
password: Annotated[str, Field(min_length=12, strict=True, max_length=128)] = Field(
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 "
)
type: Optional[UserType] = UserType.INTAKE
__properties: ClassVar[List[str]] = ["description", "displayName", "labels", "password", "type"]

@field_validator("display_name")
def display_name_validate_regular_expression(cls, value):
"""Validates the regular expression"""
if not re.match(r"^[\p{L}\p{N} -]{1,32}$", value):
raise ValueError(r"must validate the regular expression /^[\p{L}\p{N} -]{1,32}$/")
return value

model_config = ConfigDict(
populate_by_name=True,
validate_assignment=True,
Expand Down
2 changes: 1 addition & 1 deletion services/intake/src/stackit/intake/models/dremio_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
4 changes: 2 additions & 2 deletions services/intake/src/stackit/intake/models/intake_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down Expand Up @@ -40,7 +40,7 @@ class IntakeCatalog(BaseModel):
alias="partitionBy",
)
partitioning: Optional[PartitioningType] = PartitioningType.NONE
table_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=32)]] = Field(
table_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=1024)]] = Field(
default=None,
description="The table name is a short name chosen by the user to identify the table in Iceberg.",
alias="tableName",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down Expand Up @@ -33,7 +33,7 @@ class IntakeCatalogPatch(BaseModel):
default="intake",
description="The namespace to which data shall be written. It will be automatically created, if it does not exist.",
)
table_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=32)]] = Field(
table_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=1024)]] = Field(
default=None,
description="The table name is a short name chosen by the user to identify the table in Iceberg.",
alias="tableName",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion services/intake/src/stackit/intake/models/user_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion services/intake/src/stackit/intake/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This API provides endpoints for managing Intakes.

The version of the OpenAPI document: 1beta.3.2
The version of the OpenAPI document: 1beta.3.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down