stackit-kms 0.2.0__tar.gz → 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/PKG-INFO +1 -1
  2. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/pyproject.toml +2 -2
  3. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/__init__.py +5 -3
  4. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/api/default_api.py +56 -44
  5. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/api_client.py +1 -1
  6. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/configuration.py +1 -1
  7. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/exceptions.py +1 -1
  8. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/__init__.py +3 -2
  9. stackit_kms-0.4.0/src/stackit/kms/models/access_scope.py +36 -0
  10. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/algorithm.py +1 -1
  11. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/create_key_payload.py +16 -5
  12. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/create_key_ring_payload.py +1 -1
  13. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/create_wrapping_key_payload.py +15 -5
  14. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/decrypt_payload.py +1 -1
  15. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/decrypted_data.py +1 -1
  16. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/encrypt_payload.py +1 -1
  17. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/encrypted_data.py +1 -1
  18. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/http_error.py +1 -1
  19. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/import_key_payload.py +1 -1
  20. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/key.py +9 -5
  21. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/key_list.py +1 -1
  22. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/key_ring.py +1 -1
  23. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/key_ring_list.py +1 -1
  24. stackit_kms-0.2.0/src/stackit/kms/models/backend.py → stackit_kms-0.4.0/src/stackit/kms/models/protection.py +4 -4
  25. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/purpose.py +1 -1
  26. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/sign_payload.py +1 -1
  27. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/signed_data.py +1 -1
  28. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/verified_data.py +1 -1
  29. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/verify_payload.py +1 -1
  30. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/version.py +1 -1
  31. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/version_list.py +1 -1
  32. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/wrapping_algorithm.py +1 -1
  33. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/wrapping_key.py +9 -5
  34. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/wrapping_key_list.py +1 -1
  35. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/models/wrapping_purpose.py +1 -1
  36. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/rest.py +1 -1
  37. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/LICENSE.md +0 -0
  38. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/NOTICE.txt +0 -0
  39. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/README.md +0 -0
  40. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/api/__init__.py +0 -0
  41. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/api_response.py +0 -0
  42. {stackit_kms-0.2.0 → stackit_kms-0.4.0}/src/stackit/kms/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: stackit-kms
3
- Version: 0.2.0
3
+ Version: 0.4.0
4
4
  Summary: STACKIT Key Management Service API
5
5
  Author: STACKIT Developer Tools
6
6
  Author-email: developer-tools@stackit.cloud
@@ -3,7 +3,7 @@ name = "stackit-kms"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "stackit-kms"
6
- version = "v0.2.0"
6
+ version = "v0.4.0"
7
7
  authors = [
8
8
  "STACKIT Developer Tools <developer-tools@stackit.cloud>",
9
9
  ]
@@ -96,4 +96,4 @@ docstring-quotes = '"""'
96
96
  multiline-quotes = '"""'
97
97
  ban-relative-imports = true
98
98
  # Exclude generated code
99
- extend-exclude = [ "src/stackit/*/models/*", "src/stackit/*/api/*", "src/stackit/*/*.py" ]
99
+ extend-exclude = [ "src/stackit/*/models/*", "src/stackit/*/api/*", "src/stackit/*/*.py" ]
@@ -7,7 +7,7 @@
7
7
 
8
8
  This API provides endpoints for managing keys and key rings.
9
9
 
10
- The version of the OpenAPI document: 1beta.0.0
10
+ The version of the OpenAPI document: 1.0.0
11
11
  Generated by OpenAPI Generator (https://openapi-generator.tech)
12
12
 
13
13
  Do not edit the class manually.
@@ -28,8 +28,8 @@ __all__ = [
28
28
  "ApiKeyError",
29
29
  "ApiAttributeError",
30
30
  "ApiException",
31
+ "AccessScope",
31
32
  "Algorithm",
32
- "Backend",
33
33
  "CreateKeyPayload",
34
34
  "CreateKeyRingPayload",
35
35
  "CreateWrappingKeyPayload",
@@ -43,6 +43,7 @@ __all__ = [
43
43
  "KeyList",
44
44
  "KeyRing",
45
45
  "KeyRingList",
46
+ "Protection",
46
47
  "Purpose",
47
48
  "SignPayload",
48
49
  "SignedData",
@@ -71,8 +72,8 @@ from stackit.kms.exceptions import ApiValueError as ApiValueError
71
72
  from stackit.kms.exceptions import OpenApiException as OpenApiException
72
73
 
73
74
  # import models into sdk package
75
+ from stackit.kms.models.access_scope import AccessScope as AccessScope
74
76
  from stackit.kms.models.algorithm import Algorithm as Algorithm
75
- from stackit.kms.models.backend import Backend as Backend
76
77
  from stackit.kms.models.create_key_payload import CreateKeyPayload as CreateKeyPayload
77
78
  from stackit.kms.models.create_key_ring_payload import (
78
79
  CreateKeyRingPayload as CreateKeyRingPayload,
@@ -90,6 +91,7 @@ from stackit.kms.models.key import Key as Key
90
91
  from stackit.kms.models.key_list import KeyList as KeyList
91
92
  from stackit.kms.models.key_ring import KeyRing as KeyRing
92
93
  from stackit.kms.models.key_ring_list import KeyRingList as KeyRingList
94
+ from stackit.kms.models.protection import Protection as Protection
93
95
  from stackit.kms.models.purpose import Purpose as Purpose
94
96
  from stackit.kms.models.sign_payload import SignPayload as SignPayload
95
97
  from stackit.kms.models.signed_data import SignedData as SignedData
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -124,7 +124,7 @@ class DefaultApi:
124
124
  )
125
125
 
126
126
  _response_types_map: Dict[str, Optional[str]] = {
127
- "200": "Key",
127
+ "202": "Key",
128
128
  "400": "HttpError",
129
129
  "401": "HttpError",
130
130
  "404": "HttpError",
@@ -200,7 +200,7 @@ class DefaultApi:
200
200
  )
201
201
 
202
202
  _response_types_map: Dict[str, Optional[str]] = {
203
- "200": "Key",
203
+ "202": "Key",
204
204
  "400": "HttpError",
205
205
  "401": "HttpError",
206
206
  "404": "HttpError",
@@ -276,7 +276,7 @@ class DefaultApi:
276
276
  )
277
277
 
278
278
  _response_types_map: Dict[str, Optional[str]] = {
279
- "200": "Key",
279
+ "202": "Key",
280
280
  "400": "HttpError",
281
281
  "401": "HttpError",
282
282
  "404": "HttpError",
@@ -339,7 +339,7 @@ class DefaultApi:
339
339
 
340
340
  return self.api_client.param_serialize(
341
341
  method="POST",
342
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys",
342
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys",
343
343
  path_params=_path_params,
344
344
  query_params=_query_params,
345
345
  header_params=_header_params,
@@ -411,7 +411,7 @@ class DefaultApi:
411
411
  )
412
412
 
413
413
  _response_types_map: Dict[str, Optional[str]] = {
414
- "201": "KeyRing",
414
+ "202": "KeyRing",
415
415
  "400": "HttpError",
416
416
  "401": "HttpError",
417
417
  "500": "HttpError",
@@ -482,7 +482,7 @@ class DefaultApi:
482
482
  )
483
483
 
484
484
  _response_types_map: Dict[str, Optional[str]] = {
485
- "201": "KeyRing",
485
+ "202": "KeyRing",
486
486
  "400": "HttpError",
487
487
  "401": "HttpError",
488
488
  "500": "HttpError",
@@ -553,7 +553,7 @@ class DefaultApi:
553
553
  )
554
554
 
555
555
  _response_types_map: Dict[str, Optional[str]] = {
556
- "201": "KeyRing",
556
+ "202": "KeyRing",
557
557
  "400": "HttpError",
558
558
  "401": "HttpError",
559
559
  "500": "HttpError",
@@ -612,7 +612,7 @@ class DefaultApi:
612
612
 
613
613
  return self.api_client.param_serialize(
614
614
  method="POST",
615
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings",
615
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings",
616
616
  path_params=_path_params,
617
617
  query_params=_query_params,
618
618
  header_params=_header_params,
@@ -688,7 +688,7 @@ class DefaultApi:
688
688
  )
689
689
 
690
690
  _response_types_map: Dict[str, Optional[str]] = {
691
- "200": "WrappingKey",
691
+ "202": "WrappingKey",
692
692
  "400": "HttpError",
693
693
  "401": "HttpError",
694
694
  "404": "HttpError",
@@ -764,7 +764,7 @@ class DefaultApi:
764
764
  )
765
765
 
766
766
  _response_types_map: Dict[str, Optional[str]] = {
767
- "200": "WrappingKey",
767
+ "202": "WrappingKey",
768
768
  "400": "HttpError",
769
769
  "401": "HttpError",
770
770
  "404": "HttpError",
@@ -840,7 +840,7 @@ class DefaultApi:
840
840
  )
841
841
 
842
842
  _response_types_map: Dict[str, Optional[str]] = {
843
- "200": "WrappingKey",
843
+ "202": "WrappingKey",
844
844
  "400": "HttpError",
845
845
  "401": "HttpError",
846
846
  "404": "HttpError",
@@ -903,7 +903,7 @@ class DefaultApi:
903
903
 
904
904
  return self.api_client.param_serialize(
905
905
  method="POST",
906
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys",
906
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys",
907
907
  path_params=_path_params,
908
908
  query_params=_query_params,
909
909
  header_params=_header_params,
@@ -993,6 +993,7 @@ class DefaultApi:
993
993
  "404": "HttpError",
994
994
  "409": "HttpError",
995
995
  "500": "HttpError",
996
+ "503": "HttpError",
996
997
  }
997
998
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
998
999
  response_data.read()
@@ -1078,6 +1079,7 @@ class DefaultApi:
1078
1079
  "404": "HttpError",
1079
1080
  "409": "HttpError",
1080
1081
  "500": "HttpError",
1082
+ "503": "HttpError",
1081
1083
  }
1082
1084
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1083
1085
  response_data.read()
@@ -1163,6 +1165,7 @@ class DefaultApi:
1163
1165
  "404": "HttpError",
1164
1166
  "409": "HttpError",
1165
1167
  "500": "HttpError",
1168
+ "503": "HttpError",
1166
1169
  }
1167
1170
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1168
1171
  return response_data.response
@@ -1227,7 +1230,7 @@ class DefaultApi:
1227
1230
 
1228
1231
  return self.api_client.param_serialize(
1229
1232
  method="POST",
1230
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/decrypt",
1233
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/decrypt",
1231
1234
  path_params=_path_params,
1232
1235
  query_params=_query_params,
1233
1236
  header_params=_header_params,
@@ -1513,7 +1516,7 @@ class DefaultApi:
1513
1516
 
1514
1517
  return self.api_client.param_serialize(
1515
1518
  method="DELETE",
1516
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}",
1519
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}",
1517
1520
  path_params=_path_params,
1518
1521
  query_params=_query_params,
1519
1522
  header_params=_header_params,
@@ -1784,7 +1787,7 @@ class DefaultApi:
1784
1787
 
1785
1788
  return self.api_client.param_serialize(
1786
1789
  method="DELETE",
1787
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}",
1790
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}",
1788
1791
  path_params=_path_params,
1789
1792
  query_params=_query_params,
1790
1793
  header_params=_header_params,
@@ -2070,7 +2073,7 @@ class DefaultApi:
2070
2073
 
2071
2074
  return self.api_client.param_serialize(
2072
2075
  method="DELETE",
2073
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys/{wrappingKeyId}",
2076
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys/{wrappingKeyId}",
2074
2077
  path_params=_path_params,
2075
2078
  query_params=_query_params,
2076
2079
  header_params=_header_params,
@@ -2371,7 +2374,7 @@ class DefaultApi:
2371
2374
 
2372
2375
  return self.api_client.param_serialize(
2373
2376
  method="POST",
2374
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/destroy",
2377
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/destroy",
2375
2378
  path_params=_path_params,
2376
2379
  query_params=_query_params,
2377
2380
  header_params=_header_params,
@@ -2672,7 +2675,7 @@ class DefaultApi:
2672
2675
 
2673
2676
  return self.api_client.param_serialize(
2674
2677
  method="POST",
2675
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/disable",
2678
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/disable",
2676
2679
  path_params=_path_params,
2677
2680
  query_params=_query_params,
2678
2681
  header_params=_header_params,
@@ -2973,7 +2976,7 @@ class DefaultApi:
2973
2976
 
2974
2977
  return self.api_client.param_serialize(
2975
2978
  method="POST",
2976
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/enable",
2979
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/enable",
2977
2980
  path_params=_path_params,
2978
2981
  query_params=_query_params,
2979
2982
  header_params=_header_params,
@@ -3063,6 +3066,7 @@ class DefaultApi:
3063
3066
  "404": "HttpError",
3064
3067
  "409": "HttpError",
3065
3068
  "500": "HttpError",
3069
+ "503": "HttpError",
3066
3070
  }
3067
3071
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
3068
3072
  response_data.read()
@@ -3148,6 +3152,7 @@ class DefaultApi:
3148
3152
  "404": "HttpError",
3149
3153
  "409": "HttpError",
3150
3154
  "500": "HttpError",
3155
+ "503": "HttpError",
3151
3156
  }
3152
3157
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
3153
3158
  response_data.read()
@@ -3233,6 +3238,7 @@ class DefaultApi:
3233
3238
  "404": "HttpError",
3234
3239
  "409": "HttpError",
3235
3240
  "500": "HttpError",
3241
+ "503": "HttpError",
3236
3242
  }
3237
3243
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
3238
3244
  return response_data.response
@@ -3297,7 +3303,7 @@ class DefaultApi:
3297
3303
 
3298
3304
  return self.api_client.param_serialize(
3299
3305
  method="POST",
3300
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/encrypt",
3306
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/encrypt",
3301
3307
  path_params=_path_params,
3302
3308
  query_params=_query_params,
3303
3309
  header_params=_header_params,
@@ -3580,7 +3586,7 @@ class DefaultApi:
3580
3586
 
3581
3587
  return self.api_client.param_serialize(
3582
3588
  method="GET",
3583
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}",
3589
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}",
3584
3590
  path_params=_path_params,
3585
3591
  query_params=_query_params,
3586
3592
  header_params=_header_params,
@@ -3848,7 +3854,7 @@ class DefaultApi:
3848
3854
 
3849
3855
  return self.api_client.param_serialize(
3850
3856
  method="GET",
3851
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}",
3857
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}",
3852
3858
  path_params=_path_params,
3853
3859
  query_params=_query_params,
3854
3860
  header_params=_header_params,
@@ -4146,7 +4152,7 @@ class DefaultApi:
4146
4152
 
4147
4153
  return self.api_client.param_serialize(
4148
4154
  method="GET",
4149
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}",
4155
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}",
4150
4156
  path_params=_path_params,
4151
4157
  query_params=_query_params,
4152
4158
  header_params=_header_params,
@@ -4429,7 +4435,7 @@ class DefaultApi:
4429
4435
 
4430
4436
  return self.api_client.param_serialize(
4431
4437
  method="GET",
4432
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys/{wrappingKeyId}",
4438
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys/{wrappingKeyId}",
4433
4439
  path_params=_path_params,
4434
4440
  query_params=_query_params,
4435
4441
  header_params=_header_params,
@@ -4509,7 +4515,7 @@ class DefaultApi:
4509
4515
  )
4510
4516
 
4511
4517
  _response_types_map: Dict[str, Optional[str]] = {
4512
- "200": "Version",
4518
+ "202": "Version",
4513
4519
  "400": "HttpError",
4514
4520
  "401": "HttpError",
4515
4521
  "404": "HttpError",
@@ -4590,7 +4596,7 @@ class DefaultApi:
4590
4596
  )
4591
4597
 
4592
4598
  _response_types_map: Dict[str, Optional[str]] = {
4593
- "200": "Version",
4599
+ "202": "Version",
4594
4600
  "400": "HttpError",
4595
4601
  "401": "HttpError",
4596
4602
  "404": "HttpError",
@@ -4671,7 +4677,7 @@ class DefaultApi:
4671
4677
  )
4672
4678
 
4673
4679
  _response_types_map: Dict[str, Optional[str]] = {
4674
- "200": "Version",
4680
+ "202": "Version",
4675
4681
  "400": "HttpError",
4676
4682
  "401": "HttpError",
4677
4683
  "404": "HttpError",
@@ -4738,7 +4744,7 @@ class DefaultApi:
4738
4744
 
4739
4745
  return self.api_client.param_serialize(
4740
4746
  method="POST",
4741
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/import",
4747
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/import",
4742
4748
  path_params=_path_params,
4743
4749
  query_params=_query_params,
4744
4750
  header_params=_header_params,
@@ -4988,7 +4994,7 @@ class DefaultApi:
4988
4994
 
4989
4995
  return self.api_client.param_serialize(
4990
4996
  method="GET",
4991
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings",
4997
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings",
4992
4998
  path_params=_path_params,
4993
4999
  query_params=_query_params,
4994
5000
  header_params=_header_params,
@@ -5256,7 +5262,7 @@ class DefaultApi:
5256
5262
 
5257
5263
  return self.api_client.param_serialize(
5258
5264
  method="GET",
5259
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys",
5265
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys",
5260
5266
  path_params=_path_params,
5261
5267
  query_params=_query_params,
5262
5268
  header_params=_header_params,
@@ -5539,7 +5545,7 @@ class DefaultApi:
5539
5545
 
5540
5546
  return self.api_client.param_serialize(
5541
5547
  method="GET",
5542
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions",
5548
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions",
5543
5549
  path_params=_path_params,
5544
5550
  query_params=_query_params,
5545
5551
  header_params=_header_params,
@@ -5807,7 +5813,7 @@ class DefaultApi:
5807
5813
 
5808
5814
  return self.api_client.param_serialize(
5809
5815
  method="GET",
5810
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys",
5816
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys",
5811
5817
  path_params=_path_params,
5812
5818
  query_params=_query_params,
5813
5819
  header_params=_header_params,
@@ -5883,7 +5889,7 @@ class DefaultApi:
5883
5889
  )
5884
5890
 
5885
5891
  _response_types_map: Dict[str, Optional[str]] = {
5886
- "200": None,
5892
+ "204": None,
5887
5893
  "400": "HttpError",
5888
5894
  "401": "HttpError",
5889
5895
  "404": "HttpError",
@@ -5960,7 +5966,7 @@ class DefaultApi:
5960
5966
  )
5961
5967
 
5962
5968
  _response_types_map: Dict[str, Optional[str]] = {
5963
- "200": None,
5969
+ "204": None,
5964
5970
  "400": "HttpError",
5965
5971
  "401": "HttpError",
5966
5972
  "404": "HttpError",
@@ -6037,7 +6043,7 @@ class DefaultApi:
6037
6043
  )
6038
6044
 
6039
6045
  _response_types_map: Dict[str, Optional[str]] = {
6040
- "200": None,
6046
+ "204": None,
6041
6047
  "400": "HttpError",
6042
6048
  "401": "HttpError",
6043
6049
  "404": "HttpError",
@@ -6093,7 +6099,7 @@ class DefaultApi:
6093
6099
 
6094
6100
  return self.api_client.param_serialize(
6095
6101
  method="POST",
6096
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/restore",
6102
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/restore",
6097
6103
  path_params=_path_params,
6098
6104
  query_params=_query_params,
6099
6105
  header_params=_header_params,
@@ -6394,7 +6400,7 @@ class DefaultApi:
6394
6400
 
6395
6401
  return self.api_client.param_serialize(
6396
6402
  method="POST",
6397
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/restore",
6403
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/restore",
6398
6404
  path_params=_path_params,
6399
6405
  query_params=_query_params,
6400
6406
  header_params=_header_params,
@@ -6470,7 +6476,7 @@ class DefaultApi:
6470
6476
  )
6471
6477
 
6472
6478
  _response_types_map: Dict[str, Optional[str]] = {
6473
- "200": "Version",
6479
+ "202": "Version",
6474
6480
  "400": "HttpError",
6475
6481
  "401": "HttpError",
6476
6482
  "403": "HttpError",
@@ -6548,7 +6554,7 @@ class DefaultApi:
6548
6554
  )
6549
6555
 
6550
6556
  _response_types_map: Dict[str, Optional[str]] = {
6551
- "200": "Version",
6557
+ "202": "Version",
6552
6558
  "400": "HttpError",
6553
6559
  "401": "HttpError",
6554
6560
  "403": "HttpError",
@@ -6626,7 +6632,7 @@ class DefaultApi:
6626
6632
  )
6627
6633
 
6628
6634
  _response_types_map: Dict[str, Optional[str]] = {
6629
- "200": "Version",
6635
+ "202": "Version",
6630
6636
  "400": "HttpError",
6631
6637
  "401": "HttpError",
6632
6638
  "403": "HttpError",
@@ -6683,7 +6689,7 @@ class DefaultApi:
6683
6689
 
6684
6690
  return self.api_client.param_serialize(
6685
6691
  method="POST",
6686
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/rotate",
6692
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/rotate",
6687
6693
  path_params=_path_params,
6688
6694
  query_params=_query_params,
6689
6695
  header_params=_header_params,
@@ -6773,6 +6779,7 @@ class DefaultApi:
6773
6779
  "404": "HttpError",
6774
6780
  "409": "HttpError",
6775
6781
  "500": "HttpError",
6782
+ "503": "HttpError",
6776
6783
  }
6777
6784
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
6778
6785
  response_data.read()
@@ -6858,6 +6865,7 @@ class DefaultApi:
6858
6865
  "404": "HttpError",
6859
6866
  "409": "HttpError",
6860
6867
  "500": "HttpError",
6868
+ "503": "HttpError",
6861
6869
  }
6862
6870
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
6863
6871
  response_data.read()
@@ -6943,6 +6951,7 @@ class DefaultApi:
6943
6951
  "404": "HttpError",
6944
6952
  "409": "HttpError",
6945
6953
  "500": "HttpError",
6954
+ "503": "HttpError",
6946
6955
  }
6947
6956
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
6948
6957
  return response_data.response
@@ -7007,7 +7016,7 @@ class DefaultApi:
7007
7016
 
7008
7017
  return self.api_client.param_serialize(
7009
7018
  method="POST",
7010
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/sign",
7019
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/sign",
7011
7020
  path_params=_path_params,
7012
7021
  query_params=_query_params,
7013
7022
  header_params=_header_params,
@@ -7097,6 +7106,7 @@ class DefaultApi:
7097
7106
  "404": "HttpError",
7098
7107
  "409": "HttpError",
7099
7108
  "500": "HttpError",
7109
+ "503": "HttpError",
7100
7110
  }
7101
7111
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
7102
7112
  response_data.read()
@@ -7182,6 +7192,7 @@ class DefaultApi:
7182
7192
  "404": "HttpError",
7183
7193
  "409": "HttpError",
7184
7194
  "500": "HttpError",
7195
+ "503": "HttpError",
7185
7196
  }
7186
7197
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
7187
7198
  response_data.read()
@@ -7267,6 +7278,7 @@ class DefaultApi:
7267
7278
  "404": "HttpError",
7268
7279
  "409": "HttpError",
7269
7280
  "500": "HttpError",
7281
+ "503": "HttpError",
7270
7282
  }
7271
7283
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
7272
7284
  return response_data.response
@@ -7331,7 +7343,7 @@ class DefaultApi:
7331
7343
 
7332
7344
  return self.api_client.param_serialize(
7333
7345
  method="POST",
7334
- resource_path="/v1beta/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/verify",
7346
+ resource_path="/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/verify",
7335
7347
  path_params=_path_params,
7336
7348
  query_params=_query_params,
7337
7349
  header_params=_header_params,
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -6,7 +6,7 @@
6
6
 
7
7
  This API provides endpoints for managing keys and key rings.
8
8
 
9
- The version of the OpenAPI document: 1beta.0.0
9
+ The version of the OpenAPI document: 1.0.0
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
@@ -14,8 +14,8 @@
14
14
 
15
15
 
16
16
  # import models into model package
17
+ from stackit.kms.models.access_scope import AccessScope
17
18
  from stackit.kms.models.algorithm import Algorithm
18
- from stackit.kms.models.backend import Backend
19
19
  from stackit.kms.models.create_key_payload import CreateKeyPayload
20
20
  from stackit.kms.models.create_key_ring_payload import CreateKeyRingPayload
21
21
  from stackit.kms.models.create_wrapping_key_payload import CreateWrappingKeyPayload
@@ -29,6 +29,7 @@ from stackit.kms.models.key import Key
29
29
  from stackit.kms.models.key_list import KeyList
30
30
  from stackit.kms.models.key_ring import KeyRing
31
31
  from stackit.kms.models.key_ring_list import KeyRingList
32
+ from stackit.kms.models.protection import Protection
32
33
  from stackit.kms.models.purpose import Purpose
33
34
  from stackit.kms.models.sign_payload import SignPayload
34
35
  from stackit.kms.models.signed_data import SignedData
@@ -0,0 +1,36 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ STACKIT Key Management Service API
5
+
6
+ This API provides endpoints for managing keys and key rings.
7
+
8
+ The version of the OpenAPI document: 1.0.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
+ from enum import Enum
18
+
19
+ from typing_extensions import Self
20
+
21
+
22
+ class AccessScope(str, Enum):
23
+ """
24
+ The access scope of the key.
25
+ """
26
+
27
+ """
28
+ allowed enum values
29
+ """
30
+ PUBLIC = "PUBLIC"
31
+ SNA = "SNA"
32
+
33
+ @classmethod
34
+ def from_json(cls, json_str: str) -> Self:
35
+ """Create an instance of AccessScope from a JSON string"""
36
+ return cls(json.loads(json_str))
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -20,8 +20,9 @@ from typing import Any, ClassVar, Dict, List, Optional, Set
20
20
  from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
21
21
  from typing_extensions import Annotated, Self
22
22
 
23
+ from stackit.kms.models.access_scope import AccessScope
23
24
  from stackit.kms.models.algorithm import Algorithm
24
- from stackit.kms.models.backend import Backend
25
+ from stackit.kms.models.protection import Protection
25
26
  from stackit.kms.models.purpose import Purpose
26
27
 
27
28
 
@@ -30,8 +31,8 @@ class CreateKeyPayload(BaseModel):
30
31
  CreateKeyPayload
31
32
  """ # noqa: E501
32
33
 
34
+ access_scope: Optional[AccessScope] = AccessScope.PUBLIC
33
35
  algorithm: Algorithm
34
- backend: Backend
35
36
  description: Optional[StrictStr] = Field(
36
37
  default=None, description="A user chosen description to distinguish multiple keys."
37
38
  )
@@ -41,8 +42,17 @@ class CreateKeyPayload(BaseModel):
41
42
  import_only: Optional[StrictBool] = Field(
42
43
  default=False, description="States whether versions can be created or only imported.", alias="importOnly"
43
44
  )
45
+ protection: Protection
44
46
  purpose: Purpose
45
- __properties: ClassVar[List[str]] = ["algorithm", "backend", "description", "displayName", "importOnly", "purpose"]
47
+ __properties: ClassVar[List[str]] = [
48
+ "access_scope",
49
+ "algorithm",
50
+ "description",
51
+ "displayName",
52
+ "importOnly",
53
+ "protection",
54
+ "purpose",
55
+ ]
46
56
 
47
57
  model_config = ConfigDict(
48
58
  populate_by_name=True,
@@ -94,11 +104,12 @@ class CreateKeyPayload(BaseModel):
94
104
 
95
105
  _obj = cls.model_validate(
96
106
  {
107
+ "access_scope": obj.get("access_scope") if obj.get("access_scope") is not None else AccessScope.PUBLIC,
97
108
  "algorithm": obj.get("algorithm"),
98
- "backend": obj.get("backend"),
99
109
  "description": obj.get("description"),
100
110
  "displayName": obj.get("displayName"),
101
111
  "importOnly": obj.get("importOnly") if obj.get("importOnly") is not None else False,
112
+ "protection": obj.get("protection"),
102
113
  "purpose": obj.get("purpose"),
103
114
  }
104
115
  )
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -20,7 +20,8 @@ from typing import Any, ClassVar, Dict, List, Optional, Set
20
20
  from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
21
  from typing_extensions import Annotated, Self
22
22
 
23
- from stackit.kms.models.backend import Backend
23
+ from stackit.kms.models.access_scope import AccessScope
24
+ from stackit.kms.models.protection import Protection
24
25
  from stackit.kms.models.wrapping_algorithm import WrappingAlgorithm
25
26
  from stackit.kms.models.wrapping_purpose import WrappingPurpose
26
27
 
@@ -30,16 +31,24 @@ class CreateWrappingKeyPayload(BaseModel):
30
31
  CreateWrappingKeyPayload
31
32
  """ # noqa: E501
32
33
 
34
+ access_scope: Optional[AccessScope] = AccessScope.PUBLIC
33
35
  algorithm: WrappingAlgorithm
34
- backend: Backend
35
36
  description: Optional[StrictStr] = Field(
36
37
  default=None, description="A user chosen description to distinguish multiple wrapping keys."
37
38
  )
38
39
  display_name: Annotated[str, Field(strict=True, max_length=64)] = Field(
39
40
  description="The display name to distinguish multiple wrapping keys.", alias="displayName"
40
41
  )
42
+ protection: Protection
41
43
  purpose: WrappingPurpose
42
- __properties: ClassVar[List[str]] = ["algorithm", "backend", "description", "displayName", "purpose"]
44
+ __properties: ClassVar[List[str]] = [
45
+ "access_scope",
46
+ "algorithm",
47
+ "description",
48
+ "displayName",
49
+ "protection",
50
+ "purpose",
51
+ ]
43
52
 
44
53
  model_config = ConfigDict(
45
54
  populate_by_name=True,
@@ -91,10 +100,11 @@ class CreateWrappingKeyPayload(BaseModel):
91
100
 
92
101
  _obj = cls.model_validate(
93
102
  {
103
+ "access_scope": obj.get("access_scope") if obj.get("access_scope") is not None else AccessScope.PUBLIC,
94
104
  "algorithm": obj.get("algorithm"),
95
- "backend": obj.get("backend"),
96
105
  "description": obj.get("description"),
97
106
  "displayName": obj.get("displayName"),
107
+ "protection": obj.get("protection"),
98
108
  "purpose": obj.get("purpose"),
99
109
  }
100
110
  )
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -28,8 +28,9 @@ from pydantic import (
28
28
  )
29
29
  from typing_extensions import Annotated, Self
30
30
 
31
+ from stackit.kms.models.access_scope import AccessScope
31
32
  from stackit.kms.models.algorithm import Algorithm
32
- from stackit.kms.models.backend import Backend
33
+ from stackit.kms.models.protection import Protection
33
34
  from stackit.kms.models.purpose import Purpose
34
35
 
35
36
 
@@ -38,8 +39,8 @@ class Key(BaseModel):
38
39
  Key
39
40
  """ # noqa: E501
40
41
 
42
+ access_scope: AccessScope
41
43
  algorithm: Algorithm
42
- backend: Backend
43
44
  created_at: datetime = Field(
44
45
  description="The date and time the creation of the key was triggered.", alias="createdAt"
45
46
  )
@@ -61,11 +62,12 @@ class Key(BaseModel):
61
62
  key_ring_id: StrictStr = Field(
62
63
  description="The unique id of the key ring this key is assigned to.", alias="keyRingId"
63
64
  )
65
+ protection: Protection
64
66
  purpose: Purpose
65
67
  state: StrictStr = Field(description="The current state of the key.")
66
68
  __properties: ClassVar[List[str]] = [
69
+ "access_scope",
67
70
  "algorithm",
68
- "backend",
69
71
  "createdAt",
70
72
  "deletionDate",
71
73
  "description",
@@ -73,6 +75,7 @@ class Key(BaseModel):
73
75
  "id",
74
76
  "importOnly",
75
77
  "keyRingId",
78
+ "protection",
76
79
  "purpose",
77
80
  "state",
78
81
  ]
@@ -136,8 +139,8 @@ class Key(BaseModel):
136
139
 
137
140
  _obj = cls.model_validate(
138
141
  {
142
+ "access_scope": obj.get("access_scope") if obj.get("access_scope") is not None else AccessScope.PUBLIC,
139
143
  "algorithm": obj.get("algorithm"),
140
- "backend": obj.get("backend"),
141
144
  "createdAt": obj.get("createdAt"),
142
145
  "deletionDate": obj.get("deletionDate"),
143
146
  "description": obj.get("description"),
@@ -145,6 +148,7 @@ class Key(BaseModel):
145
148
  "id": obj.get("id"),
146
149
  "importOnly": obj.get("importOnly") if obj.get("importOnly") is not None else False,
147
150
  "keyRingId": obj.get("keyRingId"),
151
+ "protection": obj.get("protection"),
148
152
  "purpose": obj.get("purpose"),
149
153
  "state": obj.get("state"),
150
154
  }
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -19,9 +19,9 @@ from enum import Enum
19
19
  from typing_extensions import Self
20
20
 
21
21
 
22
- class Backend(str, Enum):
22
+ class Protection(str, Enum):
23
23
  """
24
- The backend that is responsible for maintaining this key.
24
+ The underlying system that is responsible for protecting the key material.
25
25
  """
26
26
 
27
27
  """
@@ -31,5 +31,5 @@ class Backend(str, Enum):
31
31
 
32
32
  @classmethod
33
33
  def from_json(cls, json_str: str) -> Self:
34
- """Create an instance of Backend from a JSON string"""
34
+ """Create an instance of Protection from a JSON string"""
35
35
  return cls(json.loads(json_str))
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -21,7 +21,8 @@ from typing import Any, ClassVar, Dict, List, Optional, Set
21
21
  from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
22
22
  from typing_extensions import Annotated, Self
23
23
 
24
- from stackit.kms.models.backend import Backend
24
+ from stackit.kms.models.access_scope import AccessScope
25
+ from stackit.kms.models.protection import Protection
25
26
  from stackit.kms.models.wrapping_algorithm import WrappingAlgorithm
26
27
  from stackit.kms.models.wrapping_purpose import WrappingPurpose
27
28
 
@@ -31,8 +32,8 @@ class WrappingKey(BaseModel):
31
32
  WrappingKey
32
33
  """ # noqa: E501
33
34
 
35
+ access_scope: AccessScope
34
36
  algorithm: WrappingAlgorithm
35
- backend: Backend
36
37
  created_at: datetime = Field(
37
38
  description="The date and time the creation of the wrapping key was triggered.", alias="createdAt"
38
39
  )
@@ -47,20 +48,22 @@ class WrappingKey(BaseModel):
47
48
  key_ring_id: StrictStr = Field(
48
49
  description="The unique id of the key ring this wrapping key is assigned to.", alias="keyRingId"
49
50
  )
51
+ protection: Protection
50
52
  public_key: Optional[StrictStr] = Field(
51
53
  default=None, description="The public key of the wrapping key.", alias="publicKey"
52
54
  )
53
55
  purpose: WrappingPurpose
54
56
  state: StrictStr = Field(description="The current state of the wrapping key.")
55
57
  __properties: ClassVar[List[str]] = [
58
+ "access_scope",
56
59
  "algorithm",
57
- "backend",
58
60
  "createdAt",
59
61
  "description",
60
62
  "displayName",
61
63
  "expiresAt",
62
64
  "id",
63
65
  "keyRingId",
66
+ "protection",
64
67
  "publicKey",
65
68
  "purpose",
66
69
  "state",
@@ -125,14 +128,15 @@ class WrappingKey(BaseModel):
125
128
 
126
129
  _obj = cls.model_validate(
127
130
  {
131
+ "access_scope": obj.get("access_scope") if obj.get("access_scope") is not None else AccessScope.PUBLIC,
128
132
  "algorithm": obj.get("algorithm"),
129
- "backend": obj.get("backend"),
130
133
  "createdAt": obj.get("createdAt"),
131
134
  "description": obj.get("description"),
132
135
  "displayName": obj.get("displayName"),
133
136
  "expiresAt": obj.get("expiresAt"),
134
137
  "id": obj.get("id"),
135
138
  "keyRingId": obj.get("keyRingId"),
139
+ "protection": obj.get("protection"),
136
140
  "publicKey": obj.get("publicKey"),
137
141
  "purpose": obj.get("purpose"),
138
142
  "state": obj.get("state"),
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  This API provides endpoints for managing keys and key rings.
7
7
 
8
- The version of the OpenAPI document: 1beta.0.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
File without changes
File without changes
File without changes