Skip to content

Generator: Update SDK /services/serverbackup #782

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 1 commit into from
Mar 18, 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
4 changes: 2 additions & 2 deletions services/serverbackup/src/stackit/serverbackup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down Expand Up @@ -49,10 +49,10 @@
from stackit.serverbackup.models.create_backup_schedule_payload import (
CreateBackupSchedulePayload,
)
from stackit.serverbackup.models.enable_service_payload import EnableServicePayload
from stackit.serverbackup.models.enable_service_resource_payload import (
EnableServiceResourcePayload,
)
from stackit.serverbackup.models.error_response import ErrorResponse
from stackit.serverbackup.models.get_backup_policies_response import (
GetBackupPoliciesResponse,
)
Expand Down
1,025 changes: 418 additions & 607 deletions services/serverbackup/src/stackit/serverbackup/api/default_api.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down Expand Up @@ -33,7 +33,7 @@ def __init__(
)
"""Constructor
"""
self._base_path = "https://server-backup.api.eu01.stackit.cloud"
self._base_path = "https://server-backup.api.stackit.cloud"
"""Default Base url
"""
self.server_index = 0 if server_index is None else server_index
Expand All @@ -57,13 +57,12 @@ def get_host_settings(self):
"""
return [
{
"url": "https://server-backup.api.{region}stackit.cloud",
"url": "https://server-backup.api.stackit.cloud",
"description": "No description provided",
"variables": {
"region": {
"description": "No description provided",
"default_value": "eu01.",
"enum_values": ["eu01."],
"default_value": "global",
}
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand All @@ -30,10 +30,10 @@
from stackit.serverbackup.models.create_backup_schedule_payload import (
CreateBackupSchedulePayload,
)
from stackit.serverbackup.models.enable_service_payload import EnableServicePayload
from stackit.serverbackup.models.enable_service_resource_payload import (
EnableServiceResourcePayload,
)
from stackit.serverbackup.models.error_response import ErrorResponse
from stackit.serverbackup.models.get_backup_policies_response import (
GetBackupPoliciesResponse,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand All @@ -22,13 +22,16 @@
from typing_extensions import Self


class EnableServicePayload(BaseModel):
class ErrorResponse(BaseModel):
"""
EnableServicePayload
ErrorResponse
"""

backup_policy_id: Optional[StrictStr] = Field(default=None, alias="backupPolicyId")
__properties: ClassVar[List[str]] = ["backupPolicyId"]
message: StrictStr = Field(description="Details about the error")
status: StrictStr = Field(
description="The string representation of the http status code (i.e. Not Found, Bad Request, etc)"
)
__properties: ClassVar[List[str]] = ["message", "status"]

model_config = ConfigDict(
populate_by_name=True,
Expand All @@ -47,7 +50,7 @@ def to_json(self) -> str:

@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
"""Create an instance of EnableServicePayload from a JSON string"""
"""Create an instance of ErrorResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))

def to_dict(self) -> Dict[str, Any]:
Expand All @@ -71,12 +74,12 @@ def to_dict(self) -> Dict[str, Any]:

@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"""Create an instance of EnableServicePayload from a dict"""
"""Create an instance of ErrorResponse from a dict"""
if obj is None:
return None

if not isinstance(obj, dict):
return cls.model_validate(obj)

_obj = cls.model_validate({"backupPolicyId": obj.get("backupPolicyId")})
_obj = cls.model_validate({"message": obj.get("message"), "status": obj.get("status")})
return _obj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
2 changes: 1 addition & 1 deletion services/serverbackup/src/stackit/serverbackup/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API endpoints for Server Backup Operations on STACKIT Servers.

The version of the OpenAPI document: 1.0
The version of the OpenAPI document: 2.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Loading