Skip to content

Commit c69cbd1

Browse files
Generate logme
1 parent e4f8b98 commit c69cbd1

37 files changed

Lines changed: 819 additions & 282 deletions

services/logme/oas_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0e64886dd0847341800d7191ed193b75413be998
1+
5e44a8a3aa0447f4f0511f53cc4eead9b6e6384e

services/logme/src/stackit/logme/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
The STACKIT LogMe API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.
99
10-
The version of the OpenAPI document: 1.1.0
10+
The version of the OpenAPI document: 2.1.0
1111
Generated by OpenAPI Generator (https://openapi-generator.tech)
1212
1313
Do not edit the class manually.
@@ -30,6 +30,7 @@
3030
"ApiException",
3131
"Backup",
3232
"CreateBackupResponseItem",
33+
"CreateCredentialsPayload",
3334
"CreateInstancePayload",
3435
"CreateInstanceResponse",
3536
"Credentials",
@@ -77,6 +78,9 @@
7778
from stackit.logme.models.create_backup_response_item import (
7879
CreateBackupResponseItem as CreateBackupResponseItem,
7980
)
81+
from stackit.logme.models.create_credentials_payload import (
82+
CreateCredentialsPayload as CreateCredentialsPayload,
83+
)
8084
from stackit.logme.models.create_instance_payload import (
8185
CreateInstancePayload as CreateInstancePayload,
8286
)

services/logme/src/stackit/logme/api/default_api.py

Lines changed: 659 additions & 236 deletions
Large diffs are not rendered by default.

services/logme/src/stackit/logme/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The STACKIT LogMe API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.
77
8-
The version of the OpenAPI document: 1.1.0
8+
The version of the OpenAPI document: 2.1.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

services/logme/src/stackit/logme/configuration.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The STACKIT LogMe API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.
77
8-
The version of the OpenAPI document: 1.1.0
8+
The version of the OpenAPI document: 2.1.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.
@@ -53,7 +53,7 @@ def __init__(
5353
)
5454
"""Constructor
5555
"""
56-
self._base_path = "https://logme.api.eu01.stackit.cloud"
56+
self._base_path = "https://logme.api.stackit.cloud"
5757
"""Default Base url
5858
"""
5959
self.server_index = 0 if server_index is None else server_index
@@ -77,13 +77,12 @@ def get_host_settings(self) -> List[HostSetting]:
7777
"""
7878
return [
7979
{
80-
"url": "https://logme.api.{region}stackit.cloud",
80+
"url": "https://logme.api.stackit.cloud",
8181
"description": "No description provided",
8282
"variables": {
8383
"region": {
8484
"description": "No description provided",
85-
"default_value": "eu01.",
86-
"enum_values": ["eu01."],
85+
"default_value": "global",
8786
}
8887
},
8988
}

services/logme/src/stackit/logme/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The STACKIT LogMe API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.
77
8-
The version of the OpenAPI document: 1.1.0
8+
The version of the OpenAPI document: 2.1.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

services/logme/src/stackit/logme/models/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
The STACKIT LogMe API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.
88
9-
The version of the OpenAPI document: 1.1.0
9+
The version of the OpenAPI document: 2.1.0
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
1212
Do not edit the class manually.
@@ -15,6 +15,7 @@
1515
# import models into model package
1616
from stackit.logme.models.backup import Backup
1717
from stackit.logme.models.create_backup_response_item import CreateBackupResponseItem
18+
from stackit.logme.models.create_credentials_payload import CreateCredentialsPayload
1819
from stackit.logme.models.create_instance_payload import CreateInstancePayload
1920
from stackit.logme.models.create_instance_response import CreateInstanceResponse
2021
from stackit.logme.models.credentials import Credentials

services/logme/src/stackit/logme/models/backup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The STACKIT LogMe API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.
77
8-
The version of the OpenAPI document: 1.1.0
8+
The version of the OpenAPI document: 2.1.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

services/logme/src/stackit/logme/models/create_backup_response_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The STACKIT LogMe API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.
77
8-
The version of the OpenAPI document: 1.1.0
8+
The version of the OpenAPI document: 2.1.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# coding: utf-8
2+
3+
"""
4+
STACKIT LogMe API
5+
6+
The STACKIT LogMe API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.
7+
8+
The version of the OpenAPI document: 2.1.0
9+
Generated by OpenAPI Generator (https://openapi-generator.tech)
10+
11+
Do not edit the class manually.
12+
""" # noqa: E501
13+
14+
from __future__ import annotations
15+
16+
import json
17+
import pprint
18+
from typing import Any, ClassVar, Dict, List, Optional, Set
19+
20+
from pydantic import BaseModel, ConfigDict
21+
from pydantic_core import to_jsonable_python
22+
from typing_extensions import Self
23+
24+
25+
class CreateCredentialsPayload(BaseModel):
26+
"""
27+
CreateCredentialsPayload
28+
""" # noqa: E501
29+
30+
parameters: Optional[Dict[str, Any]] = None
31+
__properties: ClassVar[List[str]] = ["parameters"]
32+
33+
model_config = ConfigDict(
34+
validate_by_name=True,
35+
validate_by_alias=True,
36+
validate_assignment=True,
37+
protected_namespaces=(),
38+
)
39+
40+
def to_str(self) -> str:
41+
"""Returns the string representation of the model using alias"""
42+
return pprint.pformat(self.model_dump(by_alias=True))
43+
44+
def to_json(self) -> str:
45+
"""Returns the JSON representation of the model using alias"""
46+
return json.dumps(to_jsonable_python(self.to_dict()))
47+
48+
@classmethod
49+
def from_json(cls, json_str: str) -> Optional[Self]:
50+
"""Create an instance of CreateCredentialsPayload from a JSON string"""
51+
return cls.from_dict(json.loads(json_str))
52+
53+
def to_dict(self) -> Dict[str, Any]:
54+
"""Return the dictionary representation of the model using alias.
55+
56+
This has the following differences from calling pydantic's
57+
`self.model_dump(by_alias=True)`:
58+
59+
* `None` is only added to the output dict for nullable fields that
60+
were set at model initialization. Other fields with value `None`
61+
are ignored.
62+
"""
63+
excluded_fields: Set[str] = set([])
64+
65+
_dict = self.model_dump(
66+
by_alias=True,
67+
exclude=excluded_fields,
68+
exclude_none=True,
69+
)
70+
return _dict
71+
72+
@classmethod
73+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
74+
"""Create an instance of CreateCredentialsPayload from a dict"""
75+
if obj is None:
76+
return None
77+
78+
if not isinstance(obj, dict):
79+
return cls.model_validate(obj)
80+
81+
_obj = cls.model_validate({"parameters": obj.get("parameters")})
82+
return _obj

0 commit comments

Comments
 (0)