Skip to content

Commit ffe681d

Browse files
Generate intake
1 parent d38df9f commit ffe681d

File tree

8 files changed

+186
-272
lines changed

8 files changed

+186
-272
lines changed

services/intake/src/stackit/intake/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
Do not edit the class manually.
1414
""" # noqa: E501
1515

16-
1716
__version__ = "1.0.0"
1817

1918
# Define package exports

services/intake/src/stackit/intake/api/default_api.py

Lines changed: 175 additions & 264 deletions
Large diffs are not rendered by default.

services/intake/src/stackit/intake/models/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
Do not edit the class manually.
1313
""" # noqa: E501
1414

15-
1615
# import models into model package
1716
from stackit.intake.models.catalog_auth import CatalogAuth
1817
from stackit.intake.models.catalog_auth_patch import CatalogAuthPatch

services/intake/src/stackit/intake/models/create_intake_payload.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import pprint
1818
import re # noqa: F401
1919
from typing import Any, ClassVar, Dict, List, Optional, Set
20+
from uuid import UUID
2021

2122
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
2223
from typing_extensions import Annotated, Self
@@ -37,7 +38,7 @@ class CreateIntakePayload(BaseModel):
3738
display_name: Annotated[str, Field(min_length=1, strict=True, max_length=32)] = Field(
3839
description="The display name is a short name chosen by the user to identify the resource.", alias="displayName"
3940
)
40-
intake_runner_id: StrictStr = Field(
41+
intake_runner_id: UUID = Field(
4142
description="The unique id of the intake runner this intake should run on.", alias="intakeRunnerId"
4243
)
4344
labels: Optional[Dict[str, StrictStr]] = Field(

services/intake/src/stackit/intake/models/intake_response.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import re # noqa: F401
1919
from datetime import datetime
2020
from typing import Any, ClassVar, Dict, List, Optional, Set
21+
from uuid import UUID
2122

2223
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
2324
from typing_extensions import Annotated, Self
@@ -45,8 +46,8 @@ class IntakeResponse(BaseModel):
4546
failure_message: Optional[StrictStr] = Field(
4647
default=None, description="A human-readable description of the error, if the state is 'failed'."
4748
)
48-
id: StrictStr = Field(description="A auto generated unique id which identifies the resource.")
49-
intake_runner_id: StrictStr = Field(
49+
id: UUID = Field(description="A auto generated unique id which identifies the resource.")
50+
intake_runner_id: UUID = Field(
5051
description="The unique id of the intake runner this intake is running on.", alias="intakeRunnerId"
5152
)
5253
labels: Optional[Dict[str, StrictStr]] = Field(

services/intake/src/stackit/intake/models/intake_runner_response.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import re # noqa: F401
1919
from datetime import datetime
2020
from typing import Any, ClassVar, Dict, List, Optional, Set
21+
from uuid import UUID
2122

2223
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
2324
from typing_extensions import Annotated, Self
@@ -36,7 +37,7 @@ class IntakeRunnerResponse(BaseModel):
3637
display_name: Annotated[str, Field(min_length=1, strict=True, max_length=32)] = Field(
3738
description="The display name is a short name chosen by the user to identify the resource.", alias="displayName"
3839
)
39-
id: StrictStr = Field(description="A auto generated unique id which identifies the resource.")
40+
id: UUID = Field(description="A auto generated unique id which identifies the resource.")
4041
labels: Optional[Dict[str, StrictStr]] = Field(
4142
default=None, description="Labels are a set of key-value pairs assigned to resources."
4243
)

services/intake/src/stackit/intake/models/intake_user_response.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import re # noqa: F401
1919
from datetime import datetime
2020
from typing import Any, ClassVar, Dict, List, Optional, Set
21+
from uuid import UUID
2122

2223
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
2324
from typing_extensions import Annotated, Self
@@ -40,7 +41,7 @@ class IntakeUserResponse(BaseModel):
4041
display_name: Annotated[str, Field(min_length=1, strict=True, max_length=32)] = Field(
4142
description="The display name is a short name chosen by the user to identify the resource.", alias="displayName"
4243
)
43-
id: StrictStr = Field(description="A auto generated unique id which identifies the resource.")
44+
id: UUID = Field(description="A auto generated unique id which identifies the resource.")
4445
labels: Optional[Dict[str, StrictStr]] = Field(
4546
default=None, description="Labels are a set of key-value pairs assigned to resources."
4647
)

services/intake/src/stackit/intake/models/update_intake_payload.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import json
1717
import pprint
1818
from typing import Any, ClassVar, Dict, List, Optional, Set
19+
from uuid import UUID
1920

2021
from pydantic import BaseModel, ConfigDict, Field, StrictStr
2122
from typing_extensions import Annotated, Self
@@ -38,7 +39,7 @@ class UpdateIntakePayload(BaseModel):
3839
description="The display name is a short name chosen by the user to identify the resource.",
3940
alias="displayName",
4041
)
41-
intake_runner_id: StrictStr = Field(
42+
intake_runner_id: UUID = Field(
4243
description="The unique id of the intake runner this intake should run on.", alias="intakeRunnerId"
4344
)
4445
labels: Optional[Dict[str, StrictStr]] = Field(

0 commit comments

Comments
 (0)