Skip to content
Closed
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/redis/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0e64886dd0847341800d7191ed193b75413be998
409f48dd7287ddea0ee1fdea89f994a906e150de
6 changes: 5 additions & 1 deletion services/redis/src/stackit/redis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand All @@ -30,6 +30,7 @@
"ApiException",
"Backup",
"CreateBackupResponseItem",
"CreateCredentialsPayload",
"CreateInstancePayload",
"CreateInstanceResponse",
"Credentials",
Expand Down Expand Up @@ -76,6 +77,9 @@
from stackit.redis.models.create_backup_response_item import (
CreateBackupResponseItem as CreateBackupResponseItem,
)
from stackit.redis.models.create_credentials_payload import (
CreateCredentialsPayload as CreateCredentialsPayload,
)
from stackit.redis.models.create_instance_payload import (
CreateInstancePayload as CreateInstancePayload,
)
Expand Down
895 changes: 659 additions & 236 deletions services/redis/src/stackit/redis/api/default_api.py

Large diffs are not rendered by default.

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

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
9 changes: 4 additions & 5 deletions services/redis/src/stackit/redis/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down Expand Up @@ -53,7 +53,7 @@ def __init__(
)
"""Constructor
"""
self._base_path = "https://redis.api.eu01.stackit.cloud"
self._base_path = "https://redis.api.stackit.cloud"
"""Default Base url
"""
self.server_index = 0 if server_index is None else server_index
Expand All @@ -77,13 +77,12 @@ def get_host_settings(self) -> List[HostSetting]:
"""
return [
{
"url": "https://redis.api.{region}stackit.cloud",
"url": "https://redis.api.stackit.cloud",
"description": "No description provided",
"variables": {
"region": {
"description": "No description provided",
"default_value": "eu01.",
"enum_values": ["eu01."],
"default_value": "global",
}
},
}
Expand Down
2 changes: 1 addition & 1 deletion services/redis/src/stackit/redis/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
3 changes: 2 additions & 1 deletion services/redis/src/stackit/redis/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand All @@ -15,6 +15,7 @@
# import models into model package
from stackit.redis.models.backup import Backup
from stackit.redis.models.create_backup_response_item import CreateBackupResponseItem
from stackit.redis.models.create_credentials_payload import CreateCredentialsPayload
from stackit.redis.models.create_instance_payload import CreateInstancePayload
from stackit.redis.models.create_instance_response import CreateInstanceResponse
from stackit.redis.models.credentials import Credentials
Expand Down
2 changes: 1 addition & 1 deletion services/redis/src/stackit/redis/models/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# coding: utf-8

"""
STACKIT Redis API

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501

from __future__ import annotations

import json
import pprint
from typing import Any, ClassVar, Dict, List, Optional, Set

from pydantic import BaseModel, ConfigDict
from pydantic_core import to_jsonable_python
from typing_extensions import Self


class CreateCredentialsPayload(BaseModel):
"""
CreateCredentialsPayload
""" # noqa: E501

parameters: Optional[Dict[str, Any]] = None
__properties: ClassVar[List[str]] = ["parameters"]

model_config = ConfigDict(
validate_by_name=True,
validate_by_alias=True,
validate_assignment=True,
protected_namespaces=(),
)

def to_str(self) -> str:
"""Returns the string representation of the model using alias"""
return pprint.pformat(self.model_dump(by_alias=True))

def to_json(self) -> str:
"""Returns the JSON representation of the model using alias"""
return json.dumps(to_jsonable_python(self.to_dict()))

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

def to_dict(self) -> Dict[str, Any]:
"""Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic's
`self.model_dump(by_alias=True)`:

* `None` is only added to the output dict for nullable fields that
were set at model initialization. Other fields with value `None`
are ignored.
"""
excluded_fields: Set[str] = set([])

_dict = self.model_dump(
by_alias=True,
exclude=excluded_fields,
exclude_none=True,
)
return _dict

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

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

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

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion services/redis/src/stackit/redis/models/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion services/redis/src/stackit/redis/models/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion services/redis/src/stackit/redis/models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
20 changes: 16 additions & 4 deletions services/redis/src/stackit/redis/models/instance_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down Expand Up @@ -78,9 +78,21 @@ class InstanceParameters(BaseModel):
default=None, description="This setting must follow the original Redis configuration for RDB."
)
syslog: Optional[List[StrictStr]] = None
tls_ciphers: Optional[List[StrictStr]] = Field(default=None, alias="tls-ciphers")
tls_ciphersuites: Optional[StrictStr] = Field(default=None, alias="tls-ciphersuites")
tls_protocols: Optional[StrictStr] = Field(default=None, alias="tls-protocols")
tls_ciphers: Optional[List[StrictStr]] = Field(
default=None,
description="This property is deprecated and will be removed in a future release.",
alias="tls-ciphers",
)
tls_ciphersuites: Optional[StrictStr] = Field(
default=None,
description="This property is deprecated and will be removed in a future release.",
alias="tls-ciphersuites",
)
tls_protocols: Optional[StrictStr] = Field(
default=None,
description="This property is deprecated and will be removed in a future release.",
alias="tls-protocols",
)
__properties: ClassVar[List[str]] = [
"down-after-milliseconds",
"enable_monitoring",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion services/redis/src/stackit/redis/models/model_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion services/redis/src/stackit/redis/models/offering.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.

The version of the OpenAPI document: 1.1.0
The version of the OpenAPI document: 2.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Loading
Loading