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
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
- Switch to API version `v1` of STACKIT KMS service (previously `v1beta`)
- **Breaking Change:** Removal of deprecated `Backend` model
- **Breaking Change:** Mark `protection` attribute as required in `Key`, `CreateKeyPayload`, `CreateWrappingKeyPayload` and `WrappingKey` model
- `intake`: [v0.1.1](services/intake/CHANGELOG.md#v011)
- Mark attributes `max_message_size_ki_b` and `max_messages_per_hour` as optional (previously required) in `UpdateIntakeRunnerPayload` model
- `intake`:
- [v0.1.2](services/intake/CHANGELOG.md#v012)
- **Feature:** Add new field `partitioning` to `IntakeCatalog` model
- [v0.1.1](services/intake/CHANGELOG.md#v011)
- Mark attributes `max_message_size_ki_b` and `max_messages_per_hour` as optional (previously required) in `UpdateIntakeRunnerPayload` model
- `ske`: [v1.3.0](services/ske/CHANGELOG.md#v130)
- **Feature:** Add new field `kubernetes` to `Nodepool` model
- `serviceaccount`: [v0.4.1](services/serviceaccount/CHANGELOG.md#v041)
Expand Down
3 changes: 3 additions & 0 deletions services/intake/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v0.1.2
- **Feature:** Add new field `partitioning` to `IntakeCatalog` model

## v0.1.1
- Mark attributes `max_message_size_ki_b` and `max_messages_per_hour` as optional (previously required) in `UpdateIntakeRunnerPayload` model

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.1.1"
version = "v0.1.2"
authors = [
"STACKIT Developer Tools <[email protected]>",
]
Expand Down
4 changes: 3 additions & 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.2.3
The version of the OpenAPI document: 1beta.3.1
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down Expand Up @@ -45,6 +45,7 @@
"ListIntakeRunnersResponse",
"ListIntakeUsersResponse",
"ListIntakesResponse",
"PartitioningType",
"UpdateIntakePayload",
"UpdateIntakeRunnerPayload",
"UpdateIntakeUserPayload",
Expand Down Expand Up @@ -103,6 +104,7 @@
from stackit.intake.models.list_intakes_response import (
ListIntakesResponse as ListIntakesResponse,
)
from stackit.intake.models.partitioning_type import PartitioningType as PartitioningType
from stackit.intake.models.update_intake_payload import (
UpdateIntakePayload as UpdateIntakePayload,
)
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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
3 changes: 2 additions & 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.2.3
The version of the OpenAPI document: 1beta.3.1
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand All @@ -31,6 +31,7 @@
from stackit.intake.models.list_intake_runners_response import ListIntakeRunnersResponse
from stackit.intake.models.list_intake_users_response import ListIntakeUsersResponse
from stackit.intake.models.list_intakes_response import ListIntakesResponse
from stackit.intake.models.partitioning_type import PartitioningType
from stackit.intake.models.update_intake_payload import UpdateIntakePayload
from stackit.intake.models.update_intake_runner_payload import UpdateIntakeRunnerPayload
from stackit.intake.models.update_intake_user_payload import UpdateIntakeUserPayload
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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
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/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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
21 changes: 18 additions & 3 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.2.3
The version of the OpenAPI document: 1beta.3.1
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand All @@ -21,6 +21,7 @@
from typing_extensions import Annotated, Self

from stackit.intake.models.catalog_auth import CatalogAuth
from stackit.intake.models.partitioning_type import PartitioningType


class IntakeCatalog(BaseModel):
Expand All @@ -34,8 +35,11 @@ class IntakeCatalog(BaseModel):
description="The namespace to which data shall be written. It will be automatically created, if it does not exist.",
)
partition_by: Optional[List[Annotated[str, Field(strict=True, max_length=1024)]]] = Field(
default=None, alias="partitionBy"
default=None,
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 cannot be changed after creation. See the [Apache Iceberg spec](https://iceberg.apache.org/spec/#partitioning) for more details. ",
alias="partitionBy",
)
partitioning: Optional[PartitioningType] = PartitioningType.NONE
table_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=32)]] = Field(
default=None,
description="The table name is a short name chosen by the user to identify the table in Iceberg.",
Expand All @@ -47,7 +51,15 @@ class IntakeCatalog(BaseModel):
warehouse: Annotated[str, Field(strict=True, max_length=1024)] = Field(
description="The Iceberg warehouse to connect to, required when the catalog has no default warehouse configured."
)
__properties: ClassVar[List[str]] = ["auth", "namespace", "partitionBy", "tableName", "uri", "warehouse"]
__properties: ClassVar[List[str]] = [
"auth",
"namespace",
"partitionBy",
"partitioning",
"tableName",
"uri",
"warehouse",
]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -110,6 +122,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"auth": CatalogAuth.from_dict(obj["auth"]) if obj.get("auth") is not None else None,
"namespace": obj.get("namespace") if obj.get("namespace") is not None else "intake",
"partitionBy": obj.get("partitionBy"),
"partitioning": (
obj.get("partitioning") if obj.get("partitioning") is not None else PartitioningType.NONE
),
"tableName": obj.get("tableName"),
"uri": obj.get("uri"),
"warehouse": obj.get("warehouse"),
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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
37 changes: 37 additions & 0 deletions services/intake/src/stackit/intake/models/partitioning_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# coding: utf-8

"""
STACKIT Intake API

This API provides endpoints for managing Intakes.

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

Do not edit the class manually.
""" # noqa: E501

from __future__ import annotations

import json
from enum import Enum

from typing_extensions import Self


class PartitioningType(str, Enum):
"""
The target table's partitioning. * `none` disables partitioning, the default. * `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`.
"""

"""
allowed enum values
"""
NONE = "none"
INTAKE_MINUS_TIME = "intake-time"
MANUAL = "manual"

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of PartitioningType from a JSON string"""
return cls(json.loads(json_str))
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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
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.2.3
The version of the OpenAPI document: 1beta.3.1
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down