basaltic-sdk-python 0.1.1__py3-none-any.whl

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 (47) hide show
  1. basaltic/__init__.py +26 -0
  2. basaltic/_client.py +136 -0
  3. basaltic/_common.py +284 -0
  4. basaltic/_transport.py +196 -0
  5. basaltic/_version.py +3 -0
  6. basaltic/auth.py +231 -0
  7. basaltic/client.py +144 -0
  8. basaltic/config.py +151 -0
  9. basaltic/errors.py +73 -0
  10. basaltic/models/__init__.py +17 -0
  11. basaltic/models/audit.py +85 -0
  12. basaltic/models/billing.py +284 -0
  13. basaltic/models/catalog.py +35 -0
  14. basaltic/models/certificate.py +127 -0
  15. basaltic/models/compute.py +905 -0
  16. basaltic/models/dns.py +256 -0
  17. basaltic/models/iam.py +736 -0
  18. basaltic/models/kms.py +157 -0
  19. basaltic/models/loadbalancer.py +574 -0
  20. basaltic/models/network.py +985 -0
  21. basaltic/models/quota.py +30 -0
  22. basaltic/models/secrets.py +136 -0
  23. basaltic/models/storage.py +789 -0
  24. basaltic/models/telemetry.py +393 -0
  25. basaltic/models/workspace.py +734 -0
  26. basaltic/py.typed +0 -0
  27. basaltic/response.py +152 -0
  28. basaltic/services/__init__.py +1 -0
  29. basaltic/services/audit.py +211 -0
  30. basaltic/services/billing.py +777 -0
  31. basaltic/services/catalog.py +172 -0
  32. basaltic/services/certificate.py +395 -0
  33. basaltic/services/compute.py +2395 -0
  34. basaltic/services/dns.py +1079 -0
  35. basaltic/services/iam.py +3405 -0
  36. basaltic/services/kms.py +742 -0
  37. basaltic/services/loadbalancer.py +1727 -0
  38. basaltic/services/network.py +4691 -0
  39. basaltic/services/quota.py +75 -0
  40. basaltic/services/secrets.py +550 -0
  41. basaltic/services/storage.py +3059 -0
  42. basaltic/services/telemetry.py +1316 -0
  43. basaltic/services/workspace.py +3899 -0
  44. basaltic_sdk_python-0.1.1.dist-info/METADATA +211 -0
  45. basaltic_sdk_python-0.1.1.dist-info/RECORD +47 -0
  46. basaltic_sdk_python-0.1.1.dist-info/WHEEL +4 -0
  47. basaltic_sdk_python-0.1.1.dist-info/licenses/LICENSE +202 -0
basaltic/models/kms.py ADDED
@@ -0,0 +1,157 @@
1
+ """Generated API models. Dictionary keys retain their wire names."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Literal, NotRequired, Required, TypeAlias, TypedDict
6
+
7
+ KeyResponse = TypedDict("KeyResponse", {"key": "NotRequired[Key]"}, total=False)
8
+ Key = TypedDict(
9
+ "Key",
10
+ {
11
+ "id": "Required[str]",
12
+ "crn": "Required[str]",
13
+ "name": "Required[str]",
14
+ "description": "NotRequired[str]",
15
+ "tags": "Required[Tags]",
16
+ "key_spec": "Required[KeySpec]",
17
+ "key_usage": "Required[KeyUsage]",
18
+ "state": "Required[KeyState]",
19
+ "system": "NotRequired[bool]",
20
+ "deleted_at": "NotRequired[str | None]",
21
+ "recovery_window_days": "NotRequired[int | None]",
22
+ "scheduled_purge_at": "NotRequired[str | None]",
23
+ "created_at": "Required[str]",
24
+ "updated_at": "Required[str]",
25
+ },
26
+ total=False,
27
+ )
28
+ Tags: TypeAlias = "dict[str, str]"
29
+ KeySpec: TypeAlias = "Literal['aes-256', 'rsa-2048', 'rsa-4096', 'ecdsa-p256']"
30
+ KeyUsage: TypeAlias = "Literal['encrypt_decrypt', 'sign_verify']"
31
+ KeyState: TypeAlias = "Literal['enabled', 'disabled', 'pending_deletion']"
32
+ CancelKeyDeletionResponse: TypeAlias = "KeyResponse"
33
+ CreateKeyRequestInput = TypedDict(
34
+ "CreateKeyRequestInput",
35
+ {
36
+ "name": "Required[str]",
37
+ "description": "NotRequired[str]",
38
+ "tags": "NotRequired[TagsInput]",
39
+ "key_spec": "Required[KeySpecInput]",
40
+ "key_usage": "NotRequired[KeyUsageInput]",
41
+ },
42
+ total=False,
43
+ )
44
+ TagsInput: TypeAlias = "dict[str, str]"
45
+ KeySpecInput: TypeAlias = "Literal['aes-256', 'rsa-2048', 'rsa-4096', 'ecdsa-p256']"
46
+ KeyUsageInput: TypeAlias = "Literal['encrypt_decrypt', 'sign_verify']"
47
+ CreateKeyBody: TypeAlias = "CreateKeyRequestInput"
48
+ CreateKeyResponse: TypeAlias = "KeyResponse"
49
+ DecryptRequestInput = TypedDict(
50
+ "DecryptRequestInput", {"ciphertext": "Required[str]", "aad": "NotRequired[str]"}, total=False
51
+ )
52
+ DecryptBody: TypeAlias = "DecryptRequestInput"
53
+ DecryptResponse2 = TypedDict("DecryptResponse2", {"plaintext": "NotRequired[str]"}, total=False)
54
+ DecryptResponse: TypeAlias = "DecryptResponse2"
55
+ DisableKeyResponse: TypeAlias = "KeyResponse"
56
+ EnableKeyResponse: TypeAlias = "KeyResponse"
57
+ EncryptRequestInput = TypedDict(
58
+ "EncryptRequestInput", {"plaintext": "Required[str]", "aad": "NotRequired[str]"}, total=False
59
+ )
60
+ EncryptBody: TypeAlias = "EncryptRequestInput"
61
+ EncryptResponse2 = TypedDict(
62
+ "EncryptResponse2",
63
+ {"ciphertext": "NotRequired[str]", "key_crn": "NotRequired[str]"},
64
+ total=False,
65
+ )
66
+ EncryptResponse: TypeAlias = "EncryptResponse2"
67
+ GenerateDataKeyRequestInput = TypedDict(
68
+ "GenerateDataKeyRequestInput",
69
+ {"number_of_bytes": "NotRequired[Literal[16, 32, 64]]"},
70
+ total=False,
71
+ )
72
+ GenerateDataKeyBody: TypeAlias = "GenerateDataKeyRequestInput"
73
+ GenerateDataKeyResponse2 = TypedDict(
74
+ "GenerateDataKeyResponse2",
75
+ {"plaintext": "NotRequired[str]", "ciphertext": "NotRequired[str]"},
76
+ total=False,
77
+ )
78
+ GenerateDataKeyResponse: TypeAlias = "GenerateDataKeyResponse2"
79
+ GetKeyResponse: TypeAlias = "KeyResponse"
80
+ GetKeyResource: TypeAlias = "Key"
81
+ GetKeyScope = TypedDict(
82
+ "GetKeyScope", {"limit": "NotRequired[int]", "state": "NotRequired[KeyStateInput]"}, total=False
83
+ )
84
+ KeyStateInput: TypeAlias = "Literal['enabled', 'disabled', 'pending_deletion']"
85
+ ListKeysParameters = TypedDict(
86
+ "ListKeysParameters",
87
+ {
88
+ "limit": "NotRequired[int]",
89
+ "marker": "NotRequired[str]",
90
+ "state": "NotRequired[KeyStateInput]",
91
+ "name": "NotRequired[str]",
92
+ "crn": "NotRequired[str]",
93
+ },
94
+ total=False,
95
+ )
96
+ ListKeysQuery: TypeAlias = "ListKeysParameters"
97
+ KeyListResponse = TypedDict(
98
+ "KeyListResponse",
99
+ {"keys": "NotRequired[list[Key]]", "meta": "NotRequired[PaginationMeta]"},
100
+ total=False,
101
+ )
102
+ PaginationMeta = TypedDict(
103
+ "PaginationMeta",
104
+ {
105
+ "total": "NotRequired[int]",
106
+ "limit": "NotRequired[int]",
107
+ "marker": "NotRequired[str]",
108
+ "has_more": "NotRequired[bool]",
109
+ },
110
+ total=False,
111
+ )
112
+ ListKeysResponse: TypeAlias = "KeyListResponse"
113
+ ListKeysItem: TypeAlias = "Key"
114
+ ScheduleKeyDeletionRequestInput = TypedDict(
115
+ "ScheduleKeyDeletionRequestInput", {"recovery_window_days": "NotRequired[int]"}, total=False
116
+ )
117
+ ScheduleKeyDeletionBody: TypeAlias = "ScheduleKeyDeletionRequestInput"
118
+ ScheduleKeyDeletionResponse: TypeAlias = "KeyResponse"
119
+ SignRequestInput = TypedDict(
120
+ "SignRequestInput",
121
+ {"message": "Required[str]", "signing_algorithm": "NotRequired[SigningAlgorithmInput]"},
122
+ total=False,
123
+ )
124
+ SigningAlgorithmInput: TypeAlias = (
125
+ "Literal['RSASSA_PSS_SHA_256', 'RSASSA_PKCS1_V1_5_SHA_256', 'ECDSA_SHA_256']"
126
+ )
127
+ SignBody: TypeAlias = "SignRequestInput"
128
+ SignResponse2 = TypedDict(
129
+ "SignResponse2",
130
+ {"signature": "NotRequired[str]", "signing_algorithm": "NotRequired[SigningAlgorithm]"},
131
+ total=False,
132
+ )
133
+ SigningAlgorithm: TypeAlias = (
134
+ "Literal['RSASSA_PSS_SHA_256', 'RSASSA_PKCS1_V1_5_SHA_256', 'ECDSA_SHA_256']"
135
+ )
136
+ SignResponse: TypeAlias = "SignResponse2"
137
+ UpdateKeyRequestInput = TypedDict(
138
+ "UpdateKeyRequestInput",
139
+ {"description": "NotRequired[str]", "tags": "NotRequired[TagsInput]"},
140
+ total=False,
141
+ )
142
+ UpdateKeyBody: TypeAlias = "UpdateKeyRequestInput"
143
+ UpdateKeyResponse: TypeAlias = "KeyResponse"
144
+ VerifyRequestInput = TypedDict(
145
+ "VerifyRequestInput",
146
+ {
147
+ "message": "Required[str]",
148
+ "signature": "Required[str]",
149
+ "signing_algorithm": "NotRequired[SigningAlgorithmInput]",
150
+ },
151
+ total=False,
152
+ )
153
+ VerifyBody: TypeAlias = "VerifyRequestInput"
154
+ VerifyResponse2 = TypedDict(
155
+ "VerifyResponse2", {"signature_valid": "NotRequired[bool]"}, total=False
156
+ )
157
+ VerifyResponse: TypeAlias = "VerifyResponse2"