Skip to content

Generator: Update SDK /services/git #1041

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 5, 2025
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
- `kms`: [v0.0.2](services/kms/CHANGELOG.md#v002-2025-05-05)
- **Minor change:** Use stderr by default.
- **Minor change:** Service update.
- `git`: [v0.1.1](services/git/CHANGELOG.md#v011-2025-05-05)
- **Bugfix**: Spelling corrections in documentation

## Release (2025-04-30)
- `stackitmarketplace`: [v0.4.0](services/stackitmarketplace/CHANGELOG.md#v040-2025-04-16)
Expand Down
3 changes: 3 additions & 0 deletions services/git/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v0.1.1 (2025-05-05)
- **Bugfix**: Spelling corrections in documentation

## v0.1.0 (2025-04-23)

- **New**: STACKIT Git module can be used to manage STACKIT Git
48 changes: 24 additions & 24 deletions services/git/src/stackit/git/api/default_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def create_instance(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> Instance:
"""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.
"""Creates a new STACKIT Git instance within the project.

Creates a new STACKIT Git instance within the project.
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.

:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
:type project_id: str
Expand Down Expand Up @@ -140,9 +140,9 @@ def create_instance_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[Instance]:
"""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.
"""Creates a new STACKIT Git instance within the project.

Creates a new STACKIT Git instance within the project.
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.

:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
:type project_id: str
Expand Down Expand Up @@ -217,9 +217,9 @@ def create_instance_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
"""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.
"""Creates a new STACKIT Git instance within the project.

Creates a new STACKIT Git instance within the project.
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.

:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
:type project_id: str
Expand Down Expand Up @@ -349,9 +349,9 @@ def delete_instance(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> None:
"""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.
"""Deletes the given STACKIT Git instance.

Deletes the given STACKIT Git instance.
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.

:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
:type project_id: str
Expand Down Expand Up @@ -425,9 +425,9 @@ def delete_instance_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[None]:
"""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.
"""Deletes the given STACKIT Git instance.

Deletes the given STACKIT Git instance.
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.

:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
:type project_id: str
Expand Down Expand Up @@ -501,9 +501,9 @@ def delete_instance_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
"""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.
"""Deletes the given STACKIT Git instance.

Deletes the given STACKIT Git instance.
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.

:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
:type project_id: str
Expand Down Expand Up @@ -626,9 +626,9 @@ def get_instance(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> Instance:
"""Provides detailed information about the state of an instance within the specified project including information about how to access the instance for further use.
"""Returns the details for the given STACKIT Git instance.

Returns the details for the given STACKIT Git instance.
Provides detailed information about the state of an instance within the specified project including information about how to access the instance for further use.

:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
:type project_id: str
Expand Down Expand Up @@ -701,9 +701,9 @@ def get_instance_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[Instance]:
"""Provides detailed information about the state of an instance within the specified project including information about how to access the instance for further use.
"""Returns the details for the given STACKIT Git instance.

Returns the details for the given STACKIT Git instance.
Provides detailed information about the state of an instance within the specified project including information about how to access the instance for further use.

:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
:type project_id: str
Expand Down Expand Up @@ -776,9 +776,9 @@ def get_instance_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
"""Provides detailed information about the state of an instance within the specified project including information about how to access the instance for further use.
"""Returns the details for the given STACKIT Git instance.

Returns the details for the given STACKIT Git instance.
Provides detailed information about the state of an instance within the specified project including information about how to access the instance for further use.

:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
:type project_id: str
Expand Down Expand Up @@ -899,9 +899,9 @@ def list_instances(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ListInstances:
"""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.
"""Returns a list of all STACKIT Git instances within the project.

Returns a list of all STACKIT Git instances within the project.
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.

:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
:type project_id: str
Expand Down Expand Up @@ -969,9 +969,9 @@ def list_instances_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[ListInstances]:
"""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.
"""Returns a list of all STACKIT Git instances within the project.

Returns a list of all STACKIT Git instances within the project.
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.

:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
:type project_id: str
Expand Down Expand Up @@ -1039,9 +1039,9 @@ def list_instances_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
"""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.
"""Returns a list of all STACKIT Git instances within the project.

Returns a list of all STACKIT Git instances within the project.
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.

:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
:type project_id: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class CreateInstancePayload(BaseModel):
@field_validator("name")
def name_validate_regular_expression(cls, value):
"""Validates the regular expression"""
if not re.match(r"^[a-zA-Z0-9-_]+$", value):
raise ValueError(r"must validate the regular expression /^[a-zA-Z0-9-_]+$/")
if not re.match(r"^[a-z]([a-z0-9\-]){0,30}[a-z0-9]+$", value):
raise ValueError(r"must validate the regular expression /^[a-z]([a-z0-9\-]){0,30}[a-z0-9]+$/")
return value

model_config = ConfigDict(
Expand Down
12 changes: 6 additions & 6 deletions services/git/src/stackit/git/models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ class Instance(BaseModel):
Describes a STACKIT Git instance.
"""

created: datetime = Field(description="The date and time the creation of the STACKIT GIT instance was triggered.")
created: datetime = Field(description="The date and time the creation of the STACKIT Git instance was triggered.")
id: Annotated[str, Field(strict=True, max_length=36)] = Field(
description="A auto generated unique id which identifies the STACKIT GIT instances."
description="A auto generated unique id which identifies the STACKIT Git instances."
)
name: Annotated[str, Field(strict=True, max_length=32)] = Field(
description="A user chosen name to distinguish multiple STACKIT GIT instances."
description="A user chosen name to distinguish multiple STACKIT Git instances."
)
state: Annotated[str, Field(strict=True, max_length=32)] = Field(
description="The current state of the STACKIT GIT instance."
description="The current state of the STACKIT Git instance."
)
url: Annotated[str, Field(strict=True, max_length=2048)] = Field(
description="The URL for reaching the STACKIT GIT instance."
description="The URL for reaching the STACKIT Git instance."
)
version: Annotated[str, Field(strict=True, max_length=20)] = Field(
description="The current version of STACKIT GIT deployed to the instance."
description="The current version of STACKIT Git deployed to the instance."
)
__properties: ClassVar[List[str]] = ["created", "id", "name", "state", "url", "version"]

Expand Down
Loading