Skip to content

Commit f815cc8

Browse files
Generate certificates
1 parent 815ef3e commit f815cc8

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

services/certificates/oas_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
00b020b2998425397c9a0e51364fe8846fa66880
1+
bb7d75bb48b90501c99d51439b5727446efd143d

services/certificates/src/stackit/certificates/exceptions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None) ->
4545
full_msg = msg
4646
if path_to_item:
4747
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
48-
super(ApiTypeError, self).__init__(full_msg)
48+
super(ApiTypeError, self).__init__(full_msg, path_to_item, valid_classes, key_type)
4949

5050

5151
class ApiValueError(OpenApiException, ValueError):
@@ -63,7 +63,7 @@ def __init__(self, msg, path_to_item=None) -> None:
6363
full_msg = msg
6464
if path_to_item:
6565
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
66-
super(ApiValueError, self).__init__(full_msg)
66+
super(ApiValueError, self).__init__(full_msg, path_to_item)
6767

6868

6969
class ApiAttributeError(OpenApiException, AttributeError):
@@ -82,7 +82,7 @@ def __init__(self, msg, path_to_item=None) -> None:
8282
full_msg = msg
8383
if path_to_item:
8484
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
85-
super(ApiAttributeError, self).__init__(full_msg)
85+
super(ApiAttributeError, self).__init__(full_msg, path_to_item)
8686

8787

8888
class ApiKeyError(OpenApiException, KeyError):
@@ -99,7 +99,7 @@ def __init__(self, msg, path_to_item=None) -> None:
9999
full_msg = msg
100100
if path_to_item:
101101
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
102-
super(ApiKeyError, self).__init__(full_msg)
102+
super(ApiKeyError, self).__init__(full_msg, path_to_item)
103103

104104

105105
class ApiException(OpenApiException):

services/certificates/src/stackit/certificates/models/usage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Usage(BaseModel):
2929
Usage
3030
""" # noqa: E501
3131

32-
count: Optional[StrictInt] = Field(default=None, description="Number of Load Balancers using this certificate.")
32+
count: Optional[StrictInt] = Field(default=None, description="Number of listeners using this certificate.")
3333
items: Optional[List[UsageItem]] = Field(
3434
default=None, description="List of Load Balancers with their associated listeners that use this certificate."
3535
)

services/certificates/src/stackit/certificates/models/usage_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class UsageItem(BaseModel):
2929

3030
listener_names: Optional[List[StrictStr]] = Field(
3131
default=None,
32-
description="A list of listener names on this Load Balancer that are using the certificate.",
32+
description="The list of listener names in this Load Balancer, that are using the certificate.",
3333
alias="listenerNames",
3434
)
3535
load_balancer_name: Optional[StrictStr] = Field(

0 commit comments

Comments
 (0)