Skip to content
Open
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: 1 addition & 1 deletion services/postgresflex/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1fdef398bea59d49731a7d9ac39394ba5b6bb72c
7c9ee6e47bfd11f1578a4636f428b3deaaca318e
48 changes: 30 additions & 18 deletions services/postgresflex/src/stackit/postgresflex/api/default_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,7 @@ def create_user(
"403": "Error",
"404": "Error",
"409": "Error",
"412": "Error",
"422": "ValidationError",
"423": "Error",
"500": "Error",
Expand Down Expand Up @@ -1178,6 +1179,7 @@ def create_user_with_http_info(
"403": "Error",
"404": "Error",
"409": "Error",
"412": "Error",
"422": "ValidationError",
"423": "Error",
"500": "Error",
Expand Down Expand Up @@ -1261,6 +1263,7 @@ def create_user_without_preload_content(
"403": "Error",
"404": "Error",
"409": "Error",
"412": "Error",
"422": "ValidationError",
"423": "Error",
"500": "Error",
Expand Down Expand Up @@ -1404,6 +1407,7 @@ def delete_database(
"401": "Error",
"403": "Error",
"404": "Error",
"409": "Error",
"423": "Error",
"500": "Error",
"503": "Error",
Expand Down Expand Up @@ -1483,6 +1487,7 @@ def delete_database_with_http_info(
"401": "Error",
"403": "Error",
"404": "Error",
"409": "Error",
"423": "Error",
"500": "Error",
"503": "Error",
Expand Down Expand Up @@ -1562,6 +1567,7 @@ def delete_database_without_preload_content(
"401": "Error",
"403": "Error",
"404": "Error",
"409": "Error",
"423": "Error",
"500": "Error",
"503": "Error",
Expand Down Expand Up @@ -1924,7 +1930,7 @@ def delete_user(
) -> None:
"""Delete User

Delete an user from a specific instance.
Delete a user from a specific instance.

:param project_id: The STACKIT project ID. (required)
:type project_id: str
Expand Down Expand Up @@ -2004,7 +2010,7 @@ def delete_user_with_http_info(
) -> ApiResponse[None]:
"""Delete User

Delete an user from a specific instance.
Delete a user from a specific instance.

:param project_id: The STACKIT project ID. (required)
:type project_id: str
Expand Down Expand Up @@ -2084,7 +2090,7 @@ def delete_user_without_preload_content(
) -> RESTResponseType:
"""Delete User

Delete an user from a specific instance.
Delete a user from a specific instance.

:param project_id: The STACKIT project ID. (required)
:type project_id: str
Expand Down Expand Up @@ -3367,7 +3373,7 @@ def list_backups(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ListBackupsResponse:
"""List backups
"""List Backups

List all backups which are available for a specific instance.

Expand Down Expand Up @@ -3458,7 +3464,7 @@ def list_backups_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[ListBackupsResponse]:
"""List backups
"""List Backups

List all backups which are available for a specific instance.

Expand Down Expand Up @@ -3549,7 +3555,7 @@ def list_backups_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
"""List backups
"""List Backups

List all backups which are available for a specific instance.

Expand Down Expand Up @@ -6482,7 +6488,7 @@ def partial_update_user(
) -> None:
"""Update User Partially

Update an user partially for an instance.
Update a user partially for an instance.

:param project_id: The STACKIT project ID. (required)
:type project_id: str
Expand Down Expand Up @@ -6534,6 +6540,7 @@ def partial_update_user(
"401": "Error",
"403": "Error",
"404": "Error",
"412": "Error",
"422": "ValidationError",
"423": "Error",
"500": "Error",
Expand Down Expand Up @@ -6571,7 +6578,7 @@ def partial_update_user_with_http_info(
) -> ApiResponse[None]:
"""Update User Partially

Update an user partially for an instance.
Update a user partially for an instance.

:param project_id: The STACKIT project ID. (required)
:type project_id: str
Expand Down Expand Up @@ -6623,6 +6630,7 @@ def partial_update_user_with_http_info(
"401": "Error",
"403": "Error",
"404": "Error",
"412": "Error",
"422": "ValidationError",
"423": "Error",
"500": "Error",
Expand Down Expand Up @@ -6660,7 +6668,7 @@ def partial_update_user_without_preload_content(
) -> RESTResponseType:
"""Update User Partially

Update an user partially for an instance.
Update a user partially for an instance.

:param project_id: The STACKIT project ID. (required)
:type project_id: str
Expand Down Expand Up @@ -6712,6 +6720,7 @@ def partial_update_user_without_preload_content(
"401": "Error",
"403": "Error",
"404": "Error",
"412": "Error",
"422": "ValidationError",
"423": "Error",
"500": "Error",
Expand Down Expand Up @@ -6809,7 +6818,7 @@ def reset_user_password(
) -> ResetUserPasswordResponse:
"""Reset User

Reset an user from an specific instance.
Reset a user from a specific instance.

:param project_id: The STACKIT project ID. (required)
:type project_id: str
Expand Down Expand Up @@ -6889,7 +6898,7 @@ def reset_user_password_with_http_info(
) -> ApiResponse[ResetUserPasswordResponse]:
"""Reset User

Reset an user from an specific instance.
Reset a user from a specific instance.

:param project_id: The STACKIT project ID. (required)
:type project_id: str
Expand Down Expand Up @@ -6969,7 +6978,7 @@ def reset_user_password_without_preload_content(
) -> RESTResponseType:
"""Reset User

Reset an user from an specific instance.
Reset a user from a specific instance.

:param project_id: The STACKIT project ID. (required)
:type project_id: str
Expand Down Expand Up @@ -7732,7 +7741,7 @@ def update_instance_protection(
instance_id: Annotated[StrictStr, Field(description="The ID of the instance.")],
update_instance_protection_payload: Annotated[
UpdateInstanceProtectionPayload,
Field(description="The request body with flag isDeletable. Parameter is required."),
Field(description="The request body containing the isDeletable flag. This parameter is required."),
],
_request_timeout: Union[
None,
Expand All @@ -7754,7 +7763,7 @@ def update_instance_protection(
:type region: str
:param instance_id: The ID of the instance. (required)
:type instance_id: str
:param update_instance_protection_payload: The request body with flag isDeletable. Parameter is required. (required)
:param update_instance_protection_payload: The request body containing the isDeletable flag. This parameter is required. (required)
:type update_instance_protection_payload: UpdateInstanceProtectionPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
Expand Down Expand Up @@ -7815,7 +7824,7 @@ def update_instance_protection_with_http_info(
instance_id: Annotated[StrictStr, Field(description="The ID of the instance.")],
update_instance_protection_payload: Annotated[
UpdateInstanceProtectionPayload,
Field(description="The request body with flag isDeletable. Parameter is required."),
Field(description="The request body containing the isDeletable flag. This parameter is required."),
],
_request_timeout: Union[
None,
Expand All @@ -7837,7 +7846,7 @@ def update_instance_protection_with_http_info(
:type region: str
:param instance_id: The ID of the instance. (required)
:type instance_id: str
:param update_instance_protection_payload: The request body with flag isDeletable. Parameter is required. (required)
:param update_instance_protection_payload: The request body containing the isDeletable flag. This parameter is required. (required)
:type update_instance_protection_payload: UpdateInstanceProtectionPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
Expand Down Expand Up @@ -7898,7 +7907,7 @@ def update_instance_protection_without_preload_content(
instance_id: Annotated[StrictStr, Field(description="The ID of the instance.")],
update_instance_protection_payload: Annotated[
UpdateInstanceProtectionPayload,
Field(description="The request body with flag isDeletable. Parameter is required."),
Field(description="The request body containing the isDeletable flag. This parameter is required."),
],
_request_timeout: Union[
None,
Expand All @@ -7920,7 +7929,7 @@ def update_instance_protection_without_preload_content(
:type region: str
:param instance_id: The ID of the instance. (required)
:type instance_id: str
:param update_instance_protection_payload: The request body with flag isDeletable. Parameter is required. (required)
:param update_instance_protection_payload: The request body containing the isDeletable flag. This parameter is required. (required)
:type update_instance_protection_payload: UpdateInstanceProtectionPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
Expand Down Expand Up @@ -8110,6 +8119,7 @@ def update_user(
"401": "Error",
"403": "Error",
"404": "Error",
"412": "Error",
"422": "ValidationError",
"423": "Error",
"500": "Error",
Expand Down Expand Up @@ -8196,6 +8206,7 @@ def update_user_with_http_info(
"401": "Error",
"403": "Error",
"404": "Error",
"412": "Error",
"422": "ValidationError",
"423": "Error",
"500": "Error",
Expand Down Expand Up @@ -8282,6 +8293,7 @@ def update_user_without_preload_content(
"401": "Error",
"403": "Error",
"404": "Error",
"412": "Error",
"422": "ValidationError",
"423": "Error",
"500": "Error",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class BackupData(BaseModel):
name: StrictStr = Field(description="The name of the backup.")
retained_until: StrictStr = Field(description="The time until the backup will be retained.", alias="retainedUntil")
size: StrictInt = Field(description="The size of the backup in bytes.")
type: StrictStr = Field(description="The type of the backup, which can be automated or manual triggered.")
type: StrictStr = Field(description="The type of the backup, which can be automated or manually triggered.")
__properties: ClassVar[List[str]] = ["completionTime", "id", "name", "retainedUntil", "size", "type"]

model_config = ConfigDict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class CreateDatabasePayload(BaseModel):
""" # noqa: E501

name: Annotated[str, Field(min_length=1, strict=True, max_length=63)] = Field(
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." '
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." '
)
owner: Optional[StrictStr] = Field(default=None, description="The owner of the database.")
__properties: ClassVar[List[str]] = ["name", "owner"]
Expand All @@ -41,8 +41,8 @@ def name_validate_regular_expression(cls, value):
if not isinstance(value, str):
value = str(value)

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

model_config = ConfigDict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class CreateInstancePayload(BaseModel):
description="The name of the instance."
)
network: InstanceNetworkCreate
retention_days: Optional[Annotated[int, Field(le=365, strict=True, ge=32)]] = Field(
retention_days: Optional[Annotated[int, Field(le=90, strict=True, ge=32)]] = Field(
description="How long backups are retained. The value can only be between 32 and 90 days.",
alias="retentionDays",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class DatabaseRoles(BaseModel):
""" # noqa: E501

name: Annotated[str, Field(min_length=1, strict=True, max_length=63)] = Field(
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." '
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." '
)
roles: List[StrictStr] = Field(description="The name and the roles for a database")
__properties: ClassVar[List[str]] = ["name", "roles"]
Expand All @@ -41,8 +41,8 @@ def name_validate_regular_expression(cls, value):
if not isinstance(value, str):
value = str(value)

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

model_config = ConfigDict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class GetDatabaseResponse(BaseModel):

id: StrictInt = Field(description="The id of the database.")
name: Annotated[str, Field(min_length=1, strict=True, max_length=63)] = Field(
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." '
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." '
)
owner: StrictStr = Field(description="The owner of the database.")
__properties: ClassVar[List[str]] = ["id", "name", "owner"]
Expand All @@ -42,8 +42,8 @@ def name_validate_regular_expression(cls, value):
if not isinstance(value, str):
value = str(value)

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

model_config = ConfigDict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class GetInstanceResponse(BaseModel):
description="The name of the instance."
)
network: InstanceNetwork
retention_days: Optional[Annotated[int, Field(le=365, strict=True, ge=32)]] = Field(
retention_days: Optional[Annotated[int, Field(le=90, strict=True, ge=32)]] = Field(
description="How long backups are retained. The value can only be between 32 and 90 days.",
alias="retentionDays",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class InstanceNetwork(BaseModel):
access_scope: Optional[InstanceNetworkAccessScope] = Field(
default=InstanceNetworkAccessScope.PUBLIC, alias="accessScope"
)
acl: List[StrictStr] = Field(description="List of IPV4 cidr.")
acl: List[StrictStr] = Field(description="List of IPv4 CIDR addresses.")
instance_address: Optional[StrictStr] = Field(default=None, alias="instanceAddress")
router_address: Optional[StrictStr] = Field(default=None, alias="routerAddress")
__properties: ClassVar[List[str]] = ["accessScope", "acl", "instanceAddress", "routerAddress"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class InstanceNetworkCreate(BaseModel):
access_scope: Optional[InstanceNetworkAccessScope] = Field(
default=InstanceNetworkAccessScope.PUBLIC, alias="accessScope"
)
acl: List[StrictStr] = Field(description="List of IPV4 cidr.")
acl: List[StrictStr] = Field(description="List of IPv4 CIDR addresses.")
__properties: ClassVar[List[str]] = ["accessScope", "acl"]

model_config = ConfigDict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class InstanceNetworkOpt(BaseModel):
The access configuration of the instance
""" # noqa: E501

acl: Optional[List[StrictStr]] = Field(default=None, description="List of IPV4 cidr.")
acl: Optional[List[StrictStr]] = Field(default=None, description="List of IPv4 CIDR addresses.")
__properties: ClassVar[List[str]] = ["acl"]

model_config = ConfigDict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class InstanceNetworkUpdate(BaseModel):
The access configuration of the instance
""" # noqa: E501

acl: List[StrictStr] = Field(description="List of IPV4 cidr.")
acl: List[StrictStr] = Field(description="List of IPv4 CIDR addresses.")
__properties: ClassVar[List[str]] = ["acl"]

model_config = ConfigDict(
Expand Down
Loading
Loading