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
@@ -0,0 +1,30 @@
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
+ ListQuotasParameters = TypedDict(
8
+ "ListQuotasParameters", {"region": "NotRequired[str]"}, total=False
9
+ )
10
+ ListQuotasQuery: TypeAlias = "ListQuotasParameters"
11
+ QuotaListResponse = TypedDict(
12
+ "QuotaListResponse", {"quotas": "Required[list[QuotaItem]]"}, total=False
13
+ )
14
+ QuotaItem = TypedDict(
15
+ "QuotaItem",
16
+ {
17
+ "service": "Required[str]",
18
+ "resource_type": "Required[str]",
19
+ "scope": "Required[Literal['regional', 'global', 'per_resource']]",
20
+ "limit": "Required[int]",
21
+ "in_use": "Required[int]",
22
+ "reserved": "Required[int]",
23
+ "available": "Required[int]",
24
+ "is_default": "Required[bool]",
25
+ "description": "Required[str]",
26
+ },
27
+ total=False,
28
+ )
29
+ ListQuotasResponse: TypeAlias = "QuotaListResponse"
30
+ ListQuotasItem: TypeAlias = "QuotaItem"
@@ -0,0 +1,136 @@
1
+ """Generated API models. Dictionary keys retain their wire names."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import NotRequired, Required, TypeAlias, TypedDict
6
+
7
+ CreateSecretRequestInput = TypedDict(
8
+ "CreateSecretRequestInput",
9
+ {
10
+ "name": "Required[str]",
11
+ "description": "NotRequired[str]",
12
+ "tags": "NotRequired[TagsInput]",
13
+ "value": "Required[str]",
14
+ "recovery_window_days": "NotRequired[int]",
15
+ "kms_key": "NotRequired[str]",
16
+ },
17
+ total=False,
18
+ )
19
+ TagsInput: TypeAlias = "dict[str, str]"
20
+ CreateSecretBody: TypeAlias = "CreateSecretRequestInput"
21
+ SecretResponse = TypedDict("SecretResponse", {"secret": "Required[Secret]"}, total=False)
22
+ Secret = TypedDict(
23
+ "Secret",
24
+ {
25
+ "id": "Required[str]",
26
+ "name": "Required[str]",
27
+ "description": "NotRequired[str]",
28
+ "tags": "NotRequired[Tags]",
29
+ "crn": "Required[str]",
30
+ "kms_key_unavailable": "NotRequired[bool]",
31
+ "kms_key_crn": "NotRequired[str | None]",
32
+ "managed": "Required[bool]",
33
+ "deleted_at": "NotRequired[str | None]",
34
+ "scheduled_purge_at": "NotRequired[str | None]",
35
+ "recovery_window_days": "Required[int]",
36
+ "current_version": "NotRequired[int]",
37
+ "created_at": "Required[str]",
38
+ "updated_at": "Required[str]",
39
+ },
40
+ total=False,
41
+ )
42
+ Tags: TypeAlias = "dict[str, str]"
43
+ CreateSecretResponse: TypeAlias = "SecretResponse"
44
+ DeleteSecretRequestInput = TypedDict(
45
+ "DeleteSecretRequestInput", {"recovery_window_days": "NotRequired[int]"}, total=False
46
+ )
47
+ DeleteSecretBody: TypeAlias = "DeleteSecretRequestInput"
48
+ DeleteSecretResponse: TypeAlias = "SecretResponse"
49
+ DescribeSecretResponse: TypeAlias = "SecretResponse"
50
+ GetSecretValueParameters = TypedDict(
51
+ "GetSecretValueParameters", {"version": "NotRequired[int]"}, total=False
52
+ )
53
+ GetSecretValueQuery: TypeAlias = "GetSecretValueParameters"
54
+ SecretValueResponse = TypedDict(
55
+ "SecretValueResponse", {"secret": "Required[SecretValue]"}, total=False
56
+ )
57
+ SecretValue = TypedDict(
58
+ "SecretValue",
59
+ {
60
+ "secret_id": "Required[str]",
61
+ "name": "Required[str]",
62
+ "version": "Required[int]",
63
+ "value": "Required[str]",
64
+ "created_at": "Required[str]",
65
+ },
66
+ total=False,
67
+ )
68
+ GetSecretValueResponse: TypeAlias = "SecretValueResponse"
69
+ ListSecretsParameters = TypedDict(
70
+ "ListSecretsParameters",
71
+ {
72
+ "name": "NotRequired[str]",
73
+ "crn": "NotRequired[str]",
74
+ "include_deleted": "NotRequired[bool]",
75
+ "marker": "NotRequired[str]",
76
+ "limit": "NotRequired[int]",
77
+ },
78
+ total=False,
79
+ )
80
+ ListSecretsQuery: TypeAlias = "ListSecretsParameters"
81
+ SecretListResponse = TypedDict(
82
+ "SecretListResponse",
83
+ {"secrets": "Required[list[Secret]]", "meta": "NotRequired[PaginationMeta]"},
84
+ total=False,
85
+ )
86
+ PaginationMeta = TypedDict(
87
+ "PaginationMeta",
88
+ {
89
+ "total": "NotRequired[int]",
90
+ "limit": "NotRequired[int]",
91
+ "marker": "NotRequired[str]",
92
+ "has_more": "NotRequired[bool]",
93
+ },
94
+ total=False,
95
+ )
96
+ ListSecretsResponse: TypeAlias = "SecretListResponse"
97
+ ListSecretsItem: TypeAlias = "Secret"
98
+ ListVersionsParameters = TypedDict(
99
+ "ListVersionsParameters",
100
+ {"crn": "NotRequired[str]", "marker": "NotRequired[str]", "limit": "NotRequired[int]"},
101
+ total=False,
102
+ )
103
+ ListVersionsQuery: TypeAlias = "ListVersionsParameters"
104
+ VersionListResponse = TypedDict(
105
+ "VersionListResponse",
106
+ {"versions": "Required[list[SecretVersion]]", "meta": "NotRequired[PaginationMeta]"},
107
+ total=False,
108
+ )
109
+ SecretVersion = TypedDict(
110
+ "SecretVersion",
111
+ {
112
+ "crn": "Required[str]",
113
+ "id": "Required[str]",
114
+ "version": "Required[int]",
115
+ "is_current": "Required[bool]",
116
+ "created_by": "NotRequired[str]",
117
+ "created_at": "Required[str]",
118
+ },
119
+ total=False,
120
+ )
121
+ ListVersionsResponse: TypeAlias = "VersionListResponse"
122
+ ListVersionsItem: TypeAlias = "SecretVersion"
123
+ PutSecretValueRequestInput = TypedDict(
124
+ "PutSecretValueRequestInput", {"value": "Required[str]"}, total=False
125
+ )
126
+ PutSecretValueBody: TypeAlias = "PutSecretValueRequestInput"
127
+ VersionResponse = TypedDict("VersionResponse", {"version": "Required[SecretVersion]"}, total=False)
128
+ PutSecretValueResponse: TypeAlias = "VersionResponse"
129
+ RestoreSecretResponse: TypeAlias = "SecretResponse"
130
+ UpdateSecretRequestInput = TypedDict(
131
+ "UpdateSecretRequestInput",
132
+ {"description": "NotRequired[str]", "tags": "NotRequired[TagsInput]"},
133
+ total=False,
134
+ )
135
+ UpdateSecretBody: TypeAlias = "UpdateSecretRequestInput"
136
+ UpdateSecretResponse: TypeAlias = "SecretResponse"