Skip to content

Commit 19af12c

Browse files
Generate serviceaccount
1 parent 0ee70c3 commit 19af12c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

services/serviceaccount/src/stackit/serviceaccount/models/create_service_account_key_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ class CreateServiceAccountKeyResponse(BaseModel):
6666
@field_validator("key_algorithm")
6767
def key_algorithm_validate_enum(cls, value):
6868
"""Validates the enum"""
69-
if value not in set(["RSA_2048"]):
70-
raise ValueError("must be one of enum values ('RSA_2048')")
69+
if value not in set(["RSA_2048", "RSA_4096"]):
70+
raise ValueError("must be one of enum values ('RSA_2048', 'RSA_4096')")
7171
return value
7272

7373
@field_validator("key_origin")

services/serviceaccount/src/stackit/serviceaccount/models/get_service_account_key_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ class GetServiceAccountKeyResponse(BaseModel):
6666
@field_validator("key_algorithm")
6767
def key_algorithm_validate_enum(cls, value):
6868
"""Validates the enum"""
69-
if value not in set(["RSA_2048"]):
70-
raise ValueError("must be one of enum values ('RSA_2048')")
69+
if value not in set(["RSA_2048", "RSA_4096"]):
70+
raise ValueError("must be one of enum values ('RSA_2048', 'RSA_4096')")
7171
return value
7272

7373
@field_validator("key_origin")

services/serviceaccount/src/stackit/serviceaccount/models/partial_update_service_account_key_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ class PartialUpdateServiceAccountKeyResponse(BaseModel):
5656
@field_validator("key_algorithm")
5757
def key_algorithm_validate_enum(cls, value):
5858
"""Validates the enum"""
59-
if value not in set(["RSA_2048"]):
60-
raise ValueError("must be one of enum values ('RSA_2048')")
59+
if value not in set(["RSA_2048", "RSA_4096"]):
60+
raise ValueError("must be one of enum values ('RSA_2048', 'RSA_4096')")
6161
return value
6262

6363
@field_validator("key_origin")

services/serviceaccount/src/stackit/serviceaccount/models/service_account_key_list_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ class ServiceAccountKeyListResponse(BaseModel):
5656
@field_validator("key_algorithm")
5757
def key_algorithm_validate_enum(cls, value):
5858
"""Validates the enum"""
59-
if value not in set(["RSA_2048"]):
60-
raise ValueError("must be one of enum values ('RSA_2048')")
59+
if value not in set(["RSA_2048", "RSA_4096"]):
60+
raise ValueError("must be one of enum values ('RSA_2048', 'RSA_4096')")
6161
return value
6262

6363
@field_validator("key_origin")

0 commit comments

Comments
 (0)