Skip to content

Commit c9515bc

Browse files
Generator: Update SDK /services/git (#1041)
* Generate git * chore(sdk): add changelogs --------- Co-authored-by: Rüdiger Schmitz <[email protected]>
1 parent 958d179 commit c9515bc

File tree

5 files changed

+37
-32
lines changed

5 files changed

+37
-32
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
- `kms`: [v0.0.2](services/kms/CHANGELOG.md#v002-2025-05-05)
1515
- **Minor change:** Use stderr by default.
1616
- **Minor change:** Service update.
17+
- `git`: [v0.1.1](services/git/CHANGELOG.md#v011-2025-05-05)
18+
- **Bugfix**: Spelling corrections in documentation
1719

1820
## Release (2025-04-30)
1921
- `stackitmarketplace`: [v0.4.0](services/stackitmarketplace/CHANGELOG.md#v040-2025-04-16)

services/git/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v0.1.1 (2025-05-05)
2+
- **Bugfix**: Spelling corrections in documentation
3+
14
## v0.1.0 (2025-04-23)
25

36
- **New**: STACKIT Git module can be used to manage STACKIT Git

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

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def create_instance(
6363
_headers: Optional[Dict[StrictStr, Any]] = None,
6464
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6565
) -> Instance:
66-
"""Users with write-access to a project may create a new STACKIT Git instance by posting the instance creation request to this endpoint, which will schedule the creation of a new STACKIT Git instance within that project.
66+
"""Creates a new STACKIT Git instance within the project.
6767
68-
Creates a new STACKIT Git instance within the project.
68+
Users with write-access to a project may create a new STACKIT Git instance by posting the instance creation request to this endpoint, which will schedule the creation of a new STACKIT Git instance within that project.
6969
7070
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
7171
:type project_id: str
@@ -140,9 +140,9 @@ def create_instance_with_http_info(
140140
_headers: Optional[Dict[StrictStr, Any]] = None,
141141
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
142142
) -> ApiResponse[Instance]:
143-
"""Users with write-access to a project may create a new STACKIT Git instance by posting the instance creation request to this endpoint, which will schedule the creation of a new STACKIT Git instance within that project.
143+
"""Creates a new STACKIT Git instance within the project.
144144
145-
Creates a new STACKIT Git instance within the project.
145+
Users with write-access to a project may create a new STACKIT Git instance by posting the instance creation request to this endpoint, which will schedule the creation of a new STACKIT Git instance within that project.
146146
147147
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
148148
:type project_id: str
@@ -217,9 +217,9 @@ def create_instance_without_preload_content(
217217
_headers: Optional[Dict[StrictStr, Any]] = None,
218218
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
219219
) -> RESTResponseType:
220-
"""Users with write-access to a project may create a new STACKIT Git instance by posting the instance creation request to this endpoint, which will schedule the creation of a new STACKIT Git instance within that project.
220+
"""Creates a new STACKIT Git instance within the project.
221221
222-
Creates a new STACKIT Git instance within the project.
222+
Users with write-access to a project may create a new STACKIT Git instance by posting the instance creation request to this endpoint, which will schedule the creation of a new STACKIT Git instance within that project.
223223
224224
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
225225
:type project_id: str
@@ -349,9 +349,9 @@ def delete_instance(
349349
_headers: Optional[Dict[StrictStr, Any]] = None,
350350
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
351351
) -> None:
352-
"""Allows a user with write-access to a project to schedule the deletion of a STACKIT Git instance, which will soon eliminate all repositories & user metadata associated with that instance. This is a destructive operation.
352+
"""Deletes the given STACKIT Git instance.
353353
354-
Deletes the given STACKIT Git instance.
354+
Allows a user with write-access to a project to schedule the deletion of a STACKIT Git instance, which will soon eliminate all repositories & user metadata associated with that instance. This is a destructive operation.
355355
356356
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
357357
:type project_id: str
@@ -425,9 +425,9 @@ def delete_instance_with_http_info(
425425
_headers: Optional[Dict[StrictStr, Any]] = None,
426426
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
427427
) -> ApiResponse[None]:
428-
"""Allows a user with write-access to a project to schedule the deletion of a STACKIT Git instance, which will soon eliminate all repositories & user metadata associated with that instance. This is a destructive operation.
428+
"""Deletes the given STACKIT Git instance.
429429
430-
Deletes the given STACKIT Git instance.
430+
Allows a user with write-access to a project to schedule the deletion of a STACKIT Git instance, which will soon eliminate all repositories & user metadata associated with that instance. This is a destructive operation.
431431
432432
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
433433
:type project_id: str
@@ -501,9 +501,9 @@ def delete_instance_without_preload_content(
501501
_headers: Optional[Dict[StrictStr, Any]] = None,
502502
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
503503
) -> RESTResponseType:
504-
"""Allows a user with write-access to a project to schedule the deletion of a STACKIT Git instance, which will soon eliminate all repositories & user metadata associated with that instance. This is a destructive operation.
504+
"""Deletes the given STACKIT Git instance.
505505
506-
Deletes the given STACKIT Git instance.
506+
Allows a user with write-access to a project to schedule the deletion of a STACKIT Git instance, which will soon eliminate all repositories & user metadata associated with that instance. This is a destructive operation.
507507
508508
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
509509
:type project_id: str
@@ -626,9 +626,9 @@ def get_instance(
626626
_headers: Optional[Dict[StrictStr, Any]] = None,
627627
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
628628
) -> Instance:
629-
"""Provides detailed information about the state of an instance within the specified project including information about how to access the instance for further use.
629+
"""Returns the details for the given STACKIT Git instance.
630630
631-
Returns the details for the given STACKIT Git instance.
631+
Provides detailed information about the state of an instance within the specified project including information about how to access the instance for further use.
632632
633633
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
634634
:type project_id: str
@@ -701,9 +701,9 @@ def get_instance_with_http_info(
701701
_headers: Optional[Dict[StrictStr, Any]] = None,
702702
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
703703
) -> ApiResponse[Instance]:
704-
"""Provides detailed information about the state of an instance within the specified project including information about how to access the instance for further use.
704+
"""Returns the details for the given STACKIT Git instance.
705705
706-
Returns the details for the given STACKIT Git instance.
706+
Provides detailed information about the state of an instance within the specified project including information about how to access the instance for further use.
707707
708708
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
709709
:type project_id: str
@@ -776,9 +776,9 @@ def get_instance_without_preload_content(
776776
_headers: Optional[Dict[StrictStr, Any]] = None,
777777
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
778778
) -> RESTResponseType:
779-
"""Provides detailed information about the state of an instance within the specified project including information about how to access the instance for further use.
779+
"""Returns the details for the given STACKIT Git instance.
780780
781-
Returns the details for the given STACKIT Git instance.
781+
Provides detailed information about the state of an instance within the specified project including information about how to access the instance for further use.
782782
783783
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
784784
:type project_id: str
@@ -899,9 +899,9 @@ def list_instances(
899899
_headers: Optional[Dict[StrictStr, Any]] = None,
900900
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
901901
) -> ListInstances:
902-
"""STACKIT Git instances exist within a project, and a project may have zero or more instances. This endpoint allows a user with read-access to a project to list all instances that exist within the specified project.
902+
"""Returns a list of all STACKIT Git instances within the project.
903903
904-
Returns a list of all STACKIT Git instances within the project.
904+
STACKIT Git instances exist within a project, and a project may have zero or more instances. This endpoint allows a user with read-access to a project to list all instances that exist within the specified project.
905905
906906
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
907907
:type project_id: str
@@ -969,9 +969,9 @@ def list_instances_with_http_info(
969969
_headers: Optional[Dict[StrictStr, Any]] = None,
970970
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
971971
) -> ApiResponse[ListInstances]:
972-
"""STACKIT Git instances exist within a project, and a project may have zero or more instances. This endpoint allows a user with read-access to a project to list all instances that exist within the specified project.
972+
"""Returns a list of all STACKIT Git instances within the project.
973973
974-
Returns a list of all STACKIT Git instances within the project.
974+
STACKIT Git instances exist within a project, and a project may have zero or more instances. This endpoint allows a user with read-access to a project to list all instances that exist within the specified project.
975975
976976
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
977977
:type project_id: str
@@ -1039,9 +1039,9 @@ def list_instances_without_preload_content(
10391039
_headers: Optional[Dict[StrictStr, Any]] = None,
10401040
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
10411041
) -> RESTResponseType:
1042-
"""STACKIT Git instances exist within a project, and a project may have zero or more instances. This endpoint allows a user with read-access to a project to list all instances that exist within the specified project.
1042+
"""Returns a list of all STACKIT Git instances within the project.
10431043
1044-
Returns a list of all STACKIT Git instances within the project.
1044+
STACKIT Git instances exist within a project, and a project may have zero or more instances. This endpoint allows a user with read-access to a project to list all instances that exist within the specified project.
10451045
10461046
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
10471047
:type project_id: str

services/git/src/stackit/git/models/create_instance_payload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class CreateInstancePayload(BaseModel):
3636
@field_validator("name")
3737
def name_validate_regular_expression(cls, value):
3838
"""Validates the regular expression"""
39-
if not re.match(r"^[a-zA-Z0-9-_]+$", value):
40-
raise ValueError(r"must validate the regular expression /^[a-zA-Z0-9-_]+$/")
39+
if not re.match(r"^[a-z]([a-z0-9\-]){0,30}[a-z0-9]+$", value):
40+
raise ValueError(r"must validate the regular expression /^[a-z]([a-z0-9\-]){0,30}[a-z0-9]+$/")
4141
return value
4242

4343
model_config = ConfigDict(

services/git/src/stackit/git/models/instance.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@ class Instance(BaseModel):
2828
Describes a STACKIT Git instance.
2929
"""
3030

31-
created: datetime = Field(description="The date and time the creation of the STACKIT GIT instance was triggered.")
31+
created: datetime = Field(description="The date and time the creation of the STACKIT Git instance was triggered.")
3232
id: Annotated[str, Field(strict=True, max_length=36)] = Field(
33-
description="A auto generated unique id which identifies the STACKIT GIT instances."
33+
description="A auto generated unique id which identifies the STACKIT Git instances."
3434
)
3535
name: Annotated[str, Field(strict=True, max_length=32)] = Field(
36-
description="A user chosen name to distinguish multiple STACKIT GIT instances."
36+
description="A user chosen name to distinguish multiple STACKIT Git instances."
3737
)
3838
state: Annotated[str, Field(strict=True, max_length=32)] = Field(
39-
description="The current state of the STACKIT GIT instance."
39+
description="The current state of the STACKIT Git instance."
4040
)
4141
url: Annotated[str, Field(strict=True, max_length=2048)] = Field(
42-
description="The URL for reaching the STACKIT GIT instance."
42+
description="The URL for reaching the STACKIT Git instance."
4343
)
4444
version: Annotated[str, Field(strict=True, max_length=20)] = Field(
45-
description="The current version of STACKIT GIT deployed to the instance."
45+
description="The current version of STACKIT Git deployed to the instance."
4646
)
4747
__properties: ClassVar[List[str]] = ["created", "id", "name", "state", "url", "version"]
4848

0 commit comments

Comments
 (0)