Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit057ac6e

Browse files
Generate git
1 parente4796df commit057ac6e

File tree

3 files changed

+32
-32
lines changed

3 files changed

+32
-32
lines changed

‎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 anew STACKIT Git instanceby posting the instance creation request to this endpoint, which will schedule the creation of a new STACKIT Git instancewithinthat project.
66+
"""Creates anew STACKIT Git instance withinthe project.
6767
68-
Creates anew STACKIT Git instancewithinthe project.
68+
Users with write-access to a project may create anew STACKIT Git instanceby postingthe 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 anew STACKIT Git instanceby posting the instance creation request to this endpoint, which will schedule the creation of a new STACKIT Git instancewithinthat project.
143+
"""Creates anew STACKIT Git instance withinthe project.
144144
145-
Creates anew STACKIT Git instancewithinthe project.
145+
Users with write-access to a project may create anew STACKIT Git instanceby postingthe 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 anew STACKIT Git instanceby posting the instance creation request to this endpoint, which will schedule the creation of a new STACKIT Git instancewithinthat project.
220+
"""Creates anew STACKIT Git instance withinthe project.
221221
222-
Creates anew STACKIT Git instancewithinthe project.
222+
Users with write-access to a project may create anew STACKIT Git instanceby postingthe 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 schedulethedeletion of aSTACKIT Git instance, which will soon eliminate all repositories & user metadata associated with that instance. This is a destructive operation.
352+
"""DeletesthegivenSTACKIT Git instance.
353353
354-
DeletesthegivenSTACKIT Git instance.
354+
Allows a user with write-access to a project to schedulethedeletion of aSTACKIT 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 schedulethedeletion of aSTACKIT Git instance, which will soon eliminate all repositories & user metadata associated with that instance. This is a destructive operation.
428+
"""DeletesthegivenSTACKIT Git instance.
429429
430-
DeletesthegivenSTACKIT Git instance.
430+
Allows a user with write-access to a project to schedulethedeletion of aSTACKIT 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 schedulethedeletion of aSTACKIT Git instance, which will soon eliminate all repositories & user metadata associated with that instance. This is a destructive operation.
504+
"""DeletesthegivenSTACKIT Git instance.
505505
506-
DeletesthegivenSTACKIT Git instance.
506+
Allows a user with write-access to a project to schedulethedeletion of aSTACKIT 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 aboutthestate of an instance withinthespecified project including information about how to access theinstance for further use.
629+
"""Returnsthedetails forthegiven STACKIT Gitinstance.
630630
631-
Returnsthedetails forthegiven STACKIT Gitinstance.
631+
Provides detailed information aboutthestate of an instance withinthespecified project including information about how to access theinstance 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 aboutthestate of an instance withinthespecified project including information about how to access theinstance for further use.
704+
"""Returnsthedetails forthegiven STACKIT Gitinstance.
705705
706-
Returnsthedetails forthegiven STACKIT Gitinstance.
706+
Provides detailed information aboutthestate of an instance withinthespecified project including information about how to access theinstance 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 aboutthestate of an instance withinthespecified project including information about how to access theinstance for further use.
779+
"""Returnsthedetails forthegiven STACKIT Gitinstance.
780780
781-
Returnsthedetails forthegiven STACKIT Gitinstance.
781+
Provides detailed information aboutthestate of an instance withinthespecified project including information about how to access theinstance 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 moreinstances. This endpoint allows a user with read-access to a project to list all instances that existwithin the specified project.
902+
"""Returns a list of all STACKIT Gitinstanceswithin the project.
903903
904-
Returns a list of all STACKIT Gitinstanceswithin the project.
904+
STACKIT Git instances exist within a project, and a project may have zero or moreinstances. This endpoint allows a user with read-access to a project to list all instances that existwithin 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 moreinstances. This endpoint allows a user with read-access to a project to list all instances that existwithin the specified project.
972+
"""Returns a list of all STACKIT Gitinstanceswithin the project.
973973
974-
Returns a list of all STACKIT Gitinstanceswithin the project.
974+
STACKIT Git instances exist within a project, and a project may have zero or moreinstances. This endpoint allows a user with read-access to a project to list all instances that existwithin 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 moreinstances. This endpoint allows a user with read-access to a project to list all instances that existwithin the specified project.
1042+
"""Returns a list of all STACKIT Gitinstanceswithin the project.
10431043
1044-
Returns a list of all STACKIT Gitinstanceswithin the project.
1044+
STACKIT Git instances exist within a project, and a project may have zero or moreinstances. This endpoint allows a user with read-access to a project to list all instances that existwithin 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
defname_validate_regular_expression(cls,value):
3838
"""Validates the regular expression"""
39-
ifnotre.match(r"^[a-zA-Z0-9-_]+$",value):
40-
raiseValueError(r"must validate the regular expression /^[a-zA-Z0-9-_]+$/")
39+
ifnotre.match(r"^[a-z]([a-z0-9\-]){0,30}[a-z0-9]+$",value):
40+
raiseValueError(r"must validate the regular expression /^[a-z]([a-z0-9\-]){0,30}[a-z0-9]+$/")
4141
returnvalue
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 STACKITGIT instance was triggered.")
31+
created:datetime=Field(description="The date and time the creation of the STACKITGit instance was triggered.")
3232
id:Annotated[str,Field(strict=True,max_length=36)]=Field(
33-
description="A auto generated unique id which identifies the STACKITGIT instances."
33+
description="A auto generated unique id which identifies the STACKITGit instances."
3434
)
3535
name:Annotated[str,Field(strict=True,max_length=32)]=Field(
36-
description="A user chosen name to distinguish multiple STACKITGIT instances."
36+
description="A user chosen name to distinguish multiple STACKITGit instances."
3737
)
3838
state:Annotated[str,Field(strict=True,max_length=32)]=Field(
39-
description="The current state of the STACKITGIT instance."
39+
description="The current state of the STACKITGit instance."
4040
)
4141
url:Annotated[str,Field(strict=True,max_length=2048)]=Field(
42-
description="The URL for reaching the STACKITGIT instance."
42+
description="The URL for reaching the STACKITGit instance."
4343
)
4444
version:Annotated[str,Field(strict=True,max_length=20)]=Field(
45-
description="The current version of STACKITGIT deployed to the instance."
45+
description="The current version of STACKITGit deployed to the instance."
4646
)
4747
__properties:ClassVar[List[str]]= ["created","id","name","state","url","version"]
4848

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp