Skip to content

Commit f389f05

Browse files
Generate postgresflex
1 parent 2b94af1 commit f389f05

20 files changed

Lines changed: 114 additions & 54 deletions

‎services/postgresflex/oas_commit‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1fdef398bea59d49731a7d9ac39394ba5b6bb72c
1+
7c9ee6e47bfd11f1578a4636f428b3deaaca318e

‎services/postgresflex/src/stackit/postgresflex/api/default_api.py‎

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,7 @@ def create_user(
10951095
"403": "Error",
10961096
"404": "Error",
10971097
"409": "Error",
1098+
"412": "Error",
10981099
"422": "ValidationError",
10991100
"423": "Error",
11001101
"500": "Error",
@@ -1178,6 +1179,7 @@ def create_user_with_http_info(
11781179
"403": "Error",
11791180
"404": "Error",
11801181
"409": "Error",
1182+
"412": "Error",
11811183
"422": "ValidationError",
11821184
"423": "Error",
11831185
"500": "Error",
@@ -1261,6 +1263,7 @@ def create_user_without_preload_content(
12611263
"403": "Error",
12621264
"404": "Error",
12631265
"409": "Error",
1266+
"412": "Error",
12641267
"422": "ValidationError",
12651268
"423": "Error",
12661269
"500": "Error",
@@ -1404,6 +1407,7 @@ def delete_database(
14041407
"401": "Error",
14051408
"403": "Error",
14061409
"404": "Error",
1410+
"409": "Error",
14071411
"423": "Error",
14081412
"500": "Error",
14091413
"503": "Error",
@@ -1483,6 +1487,7 @@ def delete_database_with_http_info(
14831487
"401": "Error",
14841488
"403": "Error",
14851489
"404": "Error",
1490+
"409": "Error",
14861491
"423": "Error",
14871492
"500": "Error",
14881493
"503": "Error",
@@ -1562,6 +1567,7 @@ def delete_database_without_preload_content(
15621567
"401": "Error",
15631568
"403": "Error",
15641569
"404": "Error",
1570+
"409": "Error",
15651571
"423": "Error",
15661572
"500": "Error",
15671573
"503": "Error",
@@ -1924,7 +1930,7 @@ def delete_user(
19241930
) -> None:
19251931
"""Delete User
19261932
1927-
Delete an user from a specific instance.
1933+
Delete a user from a specific instance.
19281934
19291935
:param project_id: The STACKIT project ID. (required)
19301936
:type project_id: str
@@ -2004,7 +2010,7 @@ def delete_user_with_http_info(
20042010
) -> ApiResponse[None]:
20052011
"""Delete User
20062012
2007-
Delete an user from a specific instance.
2013+
Delete a user from a specific instance.
20082014
20092015
:param project_id: The STACKIT project ID. (required)
20102016
:type project_id: str
@@ -2084,7 +2090,7 @@ def delete_user_without_preload_content(
20842090
) -> RESTResponseType:
20852091
"""Delete User
20862092
2087-
Delete an user from a specific instance.
2093+
Delete a user from a specific instance.
20882094
20892095
:param project_id: The STACKIT project ID. (required)
20902096
:type project_id: str
@@ -3367,7 +3373,7 @@ def list_backups(
33673373
_headers: Optional[Dict[StrictStr, Any]] = None,
33683374
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
33693375
) -> ListBackupsResponse:
3370-
"""List backups
3376+
"""List Backups
33713377
33723378
List all backups which are available for a specific instance.
33733379
@@ -3458,7 +3464,7 @@ def list_backups_with_http_info(
34583464
_headers: Optional[Dict[StrictStr, Any]] = None,
34593465
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
34603466
) -> ApiResponse[ListBackupsResponse]:
3461-
"""List backups
3467+
"""List Backups
34623468
34633469
List all backups which are available for a specific instance.
34643470
@@ -3549,7 +3555,7 @@ def list_backups_without_preload_content(
35493555
_headers: Optional[Dict[StrictStr, Any]] = None,
35503556
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
35513557
) -> RESTResponseType:
3552-
"""List backups
3558+
"""List Backups
35533559
35543560
List all backups which are available for a specific instance.
35553561
@@ -6482,7 +6488,7 @@ def partial_update_user(
64826488
) -> None:
64836489
"""Update User Partially
64846490
6485-
Update an user partially for an instance.
6491+
Update a user partially for an instance.
64866492
64876493
:param project_id: The STACKIT project ID. (required)
64886494
:type project_id: str
@@ -6534,6 +6540,7 @@ def partial_update_user(
65346540
"401": "Error",
65356541
"403": "Error",
65366542
"404": "Error",
6543+
"412": "Error",
65376544
"422": "ValidationError",
65386545
"423": "Error",
65396546
"500": "Error",
@@ -6571,7 +6578,7 @@ def partial_update_user_with_http_info(
65716578
) -> ApiResponse[None]:
65726579
"""Update User Partially
65736580
6574-
Update an user partially for an instance.
6581+
Update a user partially for an instance.
65756582
65766583
:param project_id: The STACKIT project ID. (required)
65776584
:type project_id: str
@@ -6623,6 +6630,7 @@ def partial_update_user_with_http_info(
66236630
"401": "Error",
66246631
"403": "Error",
66256632
"404": "Error",
6633+
"412": "Error",
66266634
"422": "ValidationError",
66276635
"423": "Error",
66286636
"500": "Error",
@@ -6660,7 +6668,7 @@ def partial_update_user_without_preload_content(
66606668
) -> RESTResponseType:
66616669
"""Update User Partially
66626670
6663-
Update an user partially for an instance.
6671+
Update a user partially for an instance.
66646672
66656673
:param project_id: The STACKIT project ID. (required)
66666674
:type project_id: str
@@ -6712,6 +6720,7 @@ def partial_update_user_without_preload_content(
67126720
"401": "Error",
67136721
"403": "Error",
67146722
"404": "Error",
6723+
"412": "Error",
67156724
"422": "ValidationError",
67166725
"423": "Error",
67176726
"500": "Error",
@@ -6809,7 +6818,7 @@ def reset_user_password(
68096818
) -> ResetUserPasswordResponse:
68106819
"""Reset User
68116820
6812-
Reset an user from an specific instance.
6821+
Reset a user from a specific instance.
68136822
68146823
:param project_id: The STACKIT project ID. (required)
68156824
:type project_id: str
@@ -6889,7 +6898,7 @@ def reset_user_password_with_http_info(
68896898
) -> ApiResponse[ResetUserPasswordResponse]:
68906899
"""Reset User
68916900
6892-
Reset an user from an specific instance.
6901+
Reset a user from a specific instance.
68936902
68946903
:param project_id: The STACKIT project ID. (required)
68956904
:type project_id: str
@@ -6969,7 +6978,7 @@ def reset_user_password_without_preload_content(
69696978
) -> RESTResponseType:
69706979
"""Reset User
69716980
6972-
Reset an user from an specific instance.
6981+
Reset a user from a specific instance.
69736982
69746983
:param project_id: The STACKIT project ID. (required)
69756984
:type project_id: str
@@ -7732,7 +7741,7 @@ def update_instance_protection(
77327741
instance_id: Annotated[StrictStr, Field(description="The ID of the instance.")],
77337742
update_instance_protection_payload: Annotated[
77347743
UpdateInstanceProtectionPayload,
7735-
Field(description="The request body with flag isDeletable. Parameter is required."),
7744+
Field(description="The request body containing the isDeletable flag. This parameter is required."),
77367745
],
77377746
_request_timeout: Union[
77387747
None,
@@ -7754,7 +7763,7 @@ def update_instance_protection(
77547763
:type region: str
77557764
:param instance_id: The ID of the instance. (required)
77567765
:type instance_id: str
7757-
:param update_instance_protection_payload: The request body with flag isDeletable. Parameter is required. (required)
7766+
:param update_instance_protection_payload: The request body containing the isDeletable flag. This parameter is required. (required)
77587767
:type update_instance_protection_payload: UpdateInstanceProtectionPayload
77597768
:param _request_timeout: timeout setting for this request. If one
77607769
number provided, it will be total request
@@ -7815,7 +7824,7 @@ def update_instance_protection_with_http_info(
78157824
instance_id: Annotated[StrictStr, Field(description="The ID of the instance.")],
78167825
update_instance_protection_payload: Annotated[
78177826
UpdateInstanceProtectionPayload,
7818-
Field(description="The request body with flag isDeletable. Parameter is required."),
7827+
Field(description="The request body containing the isDeletable flag. This parameter is required."),
78197828
],
78207829
_request_timeout: Union[
78217830
None,
@@ -7837,7 +7846,7 @@ def update_instance_protection_with_http_info(
78377846
:type region: str
78387847
:param instance_id: The ID of the instance. (required)
78397848
:type instance_id: str
7840-
:param update_instance_protection_payload: The request body with flag isDeletable. Parameter is required. (required)
7849+
:param update_instance_protection_payload: The request body containing the isDeletable flag. This parameter is required. (required)
78417850
:type update_instance_protection_payload: UpdateInstanceProtectionPayload
78427851
:param _request_timeout: timeout setting for this request. If one
78437852
number provided, it will be total request
@@ -7898,7 +7907,7 @@ def update_instance_protection_without_preload_content(
78987907
instance_id: Annotated[StrictStr, Field(description="The ID of the instance.")],
78997908
update_instance_protection_payload: Annotated[
79007909
UpdateInstanceProtectionPayload,
7901-
Field(description="The request body with flag isDeletable. Parameter is required."),
7910+
Field(description="The request body containing the isDeletable flag. This parameter is required."),
79027911
],
79037912
_request_timeout: Union[
79047913
None,
@@ -7920,7 +7929,7 @@ def update_instance_protection_without_preload_content(
79207929
:type region: str
79217930
:param instance_id: The ID of the instance. (required)
79227931
:type instance_id: str
7923-
:param update_instance_protection_payload: The request body with flag isDeletable. Parameter is required. (required)
7932+
:param update_instance_protection_payload: The request body containing the isDeletable flag. This parameter is required. (required)
79247933
:type update_instance_protection_payload: UpdateInstanceProtectionPayload
79257934
:param _request_timeout: timeout setting for this request. If one
79267935
number provided, it will be total request
@@ -8110,6 +8119,7 @@ def update_user(
81108119
"401": "Error",
81118120
"403": "Error",
81128121
"404": "Error",
8122+
"412": "Error",
81138123
"422": "ValidationError",
81148124
"423": "Error",
81158125
"500": "Error",
@@ -8196,6 +8206,7 @@ def update_user_with_http_info(
81968206
"401": "Error",
81978207
"403": "Error",
81988208
"404": "Error",
8209+
"412": "Error",
81998210
"422": "ValidationError",
82008211
"423": "Error",
82018212
"500": "Error",
@@ -8282,6 +8293,7 @@ def update_user_without_preload_content(
82828293
"401": "Error",
82838294
"403": "Error",
82848295
"404": "Error",
8296+
"412": "Error",
82858297
"422": "ValidationError",
82868298
"423": "Error",
82878299
"500": "Error",

‎services/postgresflex/src/stackit/postgresflex/models/backup_data.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class BackupData(BaseModel):
3535
name: StrictStr = Field(description="The name of the backup.")
3636
retained_until: StrictStr = Field(description="The time until the backup will be retained.", alias="retainedUntil")
3737
size: StrictInt = Field(description="The size of the backup in bytes.")
38-
type: StrictStr = Field(description="The type of the backup, which can be automated or manual triggered.")
38+
type: StrictStr = Field(description="The type of the backup, which can be automated or manually triggered.")
3939
__properties: ClassVar[List[str]] = ["completionTime", "id", "name", "retainedUntil", "size", "type"]
4040

4141
model_config = ConfigDict(

‎services/postgresflex/src/stackit/postgresflex/models/create_database_payload.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class CreateDatabasePayload(BaseModel):
3030
""" # noqa: E501
3131

3232
name: Annotated[str, Field(min_length=1, strict=True, max_length=63)] = Field(
33-
description='"The name of the database." "Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores." '
33+
description='"The name of the database." "Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen." '
3434
)
3535
owner: Optional[StrictStr] = Field(default=None, description="The owner of the database.")
3636
__properties: ClassVar[List[str]] = ["name", "owner"]
@@ -41,8 +41,8 @@ def name_validate_regular_expression(cls, value):
4141
if not isinstance(value, str):
4242
value = str(value)
4343

44-
if not re.match(r"^[a-z_][a-z0-9_]*$", value):
45-
raise ValueError(r"must validate the regular expression /^[a-z_][a-z0-9_]*$/")
44+
if not re.match(r"^[a-z_]([a-z0-9_\-]{0,61}[a-z0-9_])?$", value):
45+
raise ValueError(r"must validate the regular expression /^[a-z_]([a-z0-9_\-]{0,61}[a-z0-9_])?$/")
4646
return value
4747

4848
model_config = ConfigDict(

‎services/postgresflex/src/stackit/postgresflex/models/create_instance_payload.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class CreateInstancePayload(BaseModel):
4646
description="The name of the instance."
4747
)
4848
network: InstanceNetworkCreate
49-
retention_days: Optional[Annotated[int, Field(le=365, strict=True, ge=32)]] = Field(
49+
retention_days: Optional[Annotated[int, Field(le=90, strict=True, ge=32)]] = Field(
5050
description="How long backups are retained. The value can only be between 32 and 90 days.",
5151
alias="retentionDays",
5252
)

‎services/postgresflex/src/stackit/postgresflex/models/database_roles.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class DatabaseRoles(BaseModel):
3030
""" # noqa: E501
3131

3232
name: Annotated[str, Field(min_length=1, strict=True, max_length=63)] = Field(
33-
description='"The name of the database." "Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores." '
33+
description='"The name of the database." "Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen." '
3434
)
3535
roles: List[StrictStr] = Field(description="The name and the roles for a database")
3636
__properties: ClassVar[List[str]] = ["name", "roles"]
@@ -41,8 +41,8 @@ def name_validate_regular_expression(cls, value):
4141
if not isinstance(value, str):
4242
value = str(value)
4343

44-
if not re.match(r"^[a-z_][a-z0-9_]*$", value):
45-
raise ValueError(r"must validate the regular expression /^[a-z_][a-z0-9_]*$/")
44+
if not re.match(r"^[a-z_]([a-z0-9_\-]{0,61}[a-z0-9_])?$", value):
45+
raise ValueError(r"must validate the regular expression /^[a-z_]([a-z0-9_\-]{0,61}[a-z0-9_])?$/")
4646
return value
4747

4848
model_config = ConfigDict(

‎services/postgresflex/src/stackit/postgresflex/models/get_database_response.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class GetDatabaseResponse(BaseModel):
3131

3232
id: StrictInt = Field(description="The id of the database.")
3333
name: Annotated[str, Field(min_length=1, strict=True, max_length=63)] = Field(
34-
description='"The name of the database." "Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores." '
34+
description='"The name of the database." "Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen." '
3535
)
3636
owner: StrictStr = Field(description="The owner of the database.")
3737
__properties: ClassVar[List[str]] = ["id", "name", "owner"]
@@ -42,8 +42,8 @@ def name_validate_regular_expression(cls, value):
4242
if not isinstance(value, str):
4343
value = str(value)
4444

45-
if not re.match(r"^[a-z_][a-z0-9_]*$", value):
46-
raise ValueError(r"must validate the regular expression /^[a-z_][a-z0-9_]*$/")
45+
if not re.match(r"^[a-z_]([a-z0-9_\-]{0,61}[a-z0-9_])?$", value):
46+
raise ValueError(r"must validate the regular expression /^[a-z_]([a-z0-9_\-]{0,61}[a-z0-9_])?$/")
4747
return value
4848

4949
model_config = ConfigDict(

‎services/postgresflex/src/stackit/postgresflex/models/get_instance_response.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class GetInstanceResponse(BaseModel):
5858
description="The name of the instance."
5959
)
6060
network: InstanceNetwork
61-
retention_days: Optional[Annotated[int, Field(le=365, strict=True, ge=32)]] = Field(
61+
retention_days: Optional[Annotated[int, Field(le=90, strict=True, ge=32)]] = Field(
6262
description="How long backups are retained. The value can only be between 32 and 90 days.",
6363
alias="retentionDays",
6464
)

‎services/postgresflex/src/stackit/postgresflex/models/instance_network.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class InstanceNetwork(BaseModel):
3535
access_scope: Optional[InstanceNetworkAccessScope] = Field(
3636
default=InstanceNetworkAccessScope.PUBLIC, alias="accessScope"
3737
)
38-
acl: List[StrictStr] = Field(description="List of IPV4 cidr.")
38+
acl: List[StrictStr] = Field(description="List of IPv4 CIDR addresses.")
3939
instance_address: Optional[StrictStr] = Field(default=None, alias="instanceAddress")
4040
router_address: Optional[StrictStr] = Field(default=None, alias="routerAddress")
4141
__properties: ClassVar[List[str]] = ["accessScope", "acl", "instanceAddress", "routerAddress"]

‎services/postgresflex/src/stackit/postgresflex/models/instance_network_create.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class InstanceNetworkCreate(BaseModel):
3535
access_scope: Optional[InstanceNetworkAccessScope] = Field(
3636
default=InstanceNetworkAccessScope.PUBLIC, alias="accessScope"
3737
)
38-
acl: List[StrictStr] = Field(description="List of IPV4 cidr.")
38+
acl: List[StrictStr] = Field(description="List of IPv4 CIDR addresses.")
3939
__properties: ClassVar[List[str]] = ["accessScope", "acl"]
4040

4141
model_config = ConfigDict(

0 commit comments

Comments
 (0)