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,734 @@
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
+ UserAddRequestInput = TypedDict(
8
+ "UserAddRequestInput",
9
+ {
10
+ "email": "Required[str]",
11
+ "tags": "NotRequired[TagsInput]",
12
+ "groups": "NotRequired[list[GroupReferenceInput]]",
13
+ },
14
+ total=False,
15
+ )
16
+ TagsInput: TypeAlias = "dict[str, str]"
17
+ GroupReferenceInput: TypeAlias = "str"
18
+ AddUserBody: TypeAlias = "UserAddRequestInput"
19
+ UserAddResponse = TypedDict(
20
+ "UserAddResponse",
21
+ {"invitation": "Required[Invitation]", "status": "Required[Literal['invited']]"},
22
+ total=False,
23
+ )
24
+ Invitation = TypedDict(
25
+ "Invitation",
26
+ {
27
+ "id": "NotRequired[str]",
28
+ "email": "NotRequired[str]",
29
+ "groups": "NotRequired[list[GroupSummary]]",
30
+ "invited_by": "NotRequired[InvitationInvitedBy]",
31
+ "status": "NotRequired[Literal['pending', 'accepted', 'expired', 'cancelled']]",
32
+ "expires_at": "NotRequired[str]",
33
+ "created_at": "NotRequired[str]",
34
+ "crn": "NotRequired[str]",
35
+ },
36
+ total=False,
37
+ )
38
+ GroupSummary = TypedDict(
39
+ "GroupSummary", {"id": "NotRequired[str]", "name": "NotRequired[str]"}, total=False
40
+ )
41
+ InvitationInvitedBy = TypedDict(
42
+ "InvitationInvitedBy",
43
+ {
44
+ "id": "NotRequired[str]",
45
+ "name": "NotRequired[str]",
46
+ "email": "NotRequired[str]",
47
+ "type": "NotRequired[Literal['user', 'service_account', 'assumed_role']]",
48
+ "crn": "NotRequired[str]",
49
+ "account_id": "NotRequired[str]",
50
+ },
51
+ total=False,
52
+ )
53
+ AddUserResponse: TypeAlias = "UserAddResponse"
54
+ UserGroupAddRequestInput = TypedDict(
55
+ "UserGroupAddRequestInput", {"group": "Required[GroupReferenceInput]"}, total=False
56
+ )
57
+ AddUserToGroupBody: TypeAlias = "UserGroupAddRequestInput"
58
+ AccountRoleAssignmentCreateRequestInput = TypedDict(
59
+ "AccountRoleAssignmentCreateRequestInput",
60
+ {
61
+ "principal_type": "Required[Literal['user', 'group']]",
62
+ "principal_id": "Required[str]",
63
+ "role_id": "Required[str]",
64
+ },
65
+ total=False,
66
+ )
67
+ AssignAccountRoleBody: TypeAlias = "AccountRoleAssignmentCreateRequestInput"
68
+ AccountRoleAssignmentResponse = TypedDict(
69
+ "AccountRoleAssignmentResponse",
70
+ {"role_assignment": "NotRequired[AccountRoleAssignment]"},
71
+ total=False,
72
+ )
73
+ AccountRoleAssignment = TypedDict(
74
+ "AccountRoleAssignment",
75
+ {
76
+ "crn": "NotRequired[str]",
77
+ "id": "NotRequired[str]",
78
+ "account_id": "NotRequired[str]",
79
+ "role_id": "NotRequired[str]",
80
+ "role_name": "NotRequired[str]",
81
+ "principal_type": "NotRequired[Literal['user', 'group']]",
82
+ "principal_id": "NotRequired[str]",
83
+ "created_at": "NotRequired[str]",
84
+ },
85
+ total=False,
86
+ )
87
+ AssignAccountRoleResponse: TypeAlias = "AccountRoleAssignmentResponse"
88
+ PolicyAttachRequestInput = TypedDict(
89
+ "PolicyAttachRequestInput", {"policy": "Required[PolicyReferenceInput]"}, total=False
90
+ )
91
+ PolicyReferenceInput: TypeAlias = "str"
92
+ AttachGroupPolicyBody: TypeAlias = "PolicyAttachRequestInput"
93
+ OrganizationPolicyAttachRequestInput = TypedDict(
94
+ "OrganizationPolicyAttachRequestInput", {"policy_id": "Required[str]"}, total=False
95
+ )
96
+ AttachRolePolicyBody: TypeAlias = "OrganizationPolicyAttachRequestInput"
97
+ AttachServiceAccountPolicyBody: TypeAlias = "OrganizationPolicyAttachRequestInput"
98
+ AttachUserPolicyBody: TypeAlias = "PolicyAttachRequestInput"
99
+ CreateAccountRequestInput = TypedDict(
100
+ "CreateAccountRequestInput",
101
+ {"name": "Required[str]", "handle": "Required[str]", "description": "NotRequired[str]"},
102
+ total=False,
103
+ )
104
+ CreateAccountBody: TypeAlias = "CreateAccountRequestInput"
105
+ AccountResponse = TypedDict("AccountResponse", {"account": "NotRequired[Account]"}, total=False)
106
+ Account = TypedDict(
107
+ "Account",
108
+ {
109
+ "id": "NotRequired[str]",
110
+ "organization_id": "NotRequired[str]",
111
+ "name": "NotRequired[str]",
112
+ "handle": "NotRequired[str]",
113
+ "description": "NotRequired[str]",
114
+ "status": "NotRequired[Literal['active', 'suspended', 'deleted']]",
115
+ "created_at": "NotRequired[str]",
116
+ "updated_at": "NotRequired[str]",
117
+ "crn": "NotRequired[str]",
118
+ "bootstrap_role_id": "NotRequired[str]",
119
+ "bootstrap_role_crn": "NotRequired[str]",
120
+ },
121
+ total=False,
122
+ )
123
+ CreateAccountResponse: TypeAlias = "AccountResponse"
124
+ GroupCreateRequestInput = TypedDict(
125
+ "GroupCreateRequestInput",
126
+ {"name": "Required[str]", "description": "NotRequired[str]"},
127
+ total=False,
128
+ )
129
+ CreateGroupBody: TypeAlias = "GroupCreateRequestInput"
130
+ CreateGroupResult = TypedDict("CreateGroupResult", {"group": "NotRequired[Group]"}, total=False)
131
+ Group = TypedDict(
132
+ "Group",
133
+ {
134
+ "id": "NotRequired[str]",
135
+ "crn": "NotRequired[str]",
136
+ "name": "NotRequired[str]",
137
+ "description": "NotRequired[str]",
138
+ "created_at": "NotRequired[str]",
139
+ "updated_at": "NotRequired[str]",
140
+ },
141
+ total=False,
142
+ )
143
+ CreateGroupResponse: TypeAlias = "CreateGroupResult"
144
+ PolicyCreateRequestInput = TypedDict(
145
+ "PolicyCreateRequestInput",
146
+ {
147
+ "name": "Required[str]",
148
+ "description": "NotRequired[str]",
149
+ "tags": "NotRequired[TagsInput]",
150
+ "document": "Required[PolicyDocumentInput]",
151
+ },
152
+ total=False,
153
+ )
154
+ PolicyDocumentInput = TypedDict(
155
+ "PolicyDocumentInput",
156
+ {
157
+ "version": "Required[Literal['2024-01-01']]",
158
+ "statements": "Required[list[PolicyStatementInput]]",
159
+ },
160
+ total=False,
161
+ )
162
+ PolicyStatementInput = TypedDict(
163
+ "PolicyStatementInput",
164
+ {
165
+ "sid": "NotRequired[str]",
166
+ "effect": "Required[Literal['allow', 'deny']]",
167
+ "actions": "NotRequired[list[str]]",
168
+ "not_actions": "NotRequired[list[str]]",
169
+ "resources": "NotRequired[list[str]]",
170
+ "not_resources": "NotRequired[list[str]]",
171
+ "conditions": "NotRequired[list[PolicyConditionInput]]",
172
+ },
173
+ total=False,
174
+ )
175
+ PolicyConditionInput = TypedDict(
176
+ "PolicyConditionInput",
177
+ {
178
+ "operator": "Required[Literal['equals', 'not_equals', 'starts_with', 'ends_with', 'contains', 'in', 'not_in', 'greater_than', 'less_than', 'greater_than_or_equals', 'less_than_or_equals', 'exists', 'not_exists', 'ip_address', 'not_ip_address']]",
179
+ "key": "Required[str]",
180
+ "values": "Required[list[str]]",
181
+ "set_operator": "NotRequired[Literal['for_all_values', 'for_any_value']]",
182
+ },
183
+ total=False,
184
+ )
185
+ CreatePolicyBody: TypeAlias = "PolicyCreateRequestInput"
186
+ CreatePolicyResult = TypedDict("CreatePolicyResult", {"policy": "NotRequired[Policy]"}, total=False)
187
+ Policy = TypedDict(
188
+ "Policy",
189
+ {
190
+ "id": "NotRequired[str]",
191
+ "crn": "NotRequired[str]",
192
+ "name": "NotRequired[str]",
193
+ "description": "NotRequired[str]",
194
+ "tags": "NotRequired[Tags]",
195
+ "is_system": "NotRequired[bool]",
196
+ "document": "NotRequired[PolicyDocument]",
197
+ "created_at": "NotRequired[str]",
198
+ "updated_at": "NotRequired[str]",
199
+ },
200
+ total=False,
201
+ )
202
+ Tags: TypeAlias = "dict[str, str]"
203
+ PolicyDocument = TypedDict(
204
+ "PolicyDocument",
205
+ {"version": "Required[Literal['2024-01-01']]", "statements": "Required[list[PolicyStatement]]"},
206
+ total=False,
207
+ )
208
+ PolicyStatement = TypedDict(
209
+ "PolicyStatement",
210
+ {
211
+ "sid": "NotRequired[str]",
212
+ "effect": "Required[Literal['allow', 'deny']]",
213
+ "actions": "NotRequired[list[str]]",
214
+ "not_actions": "NotRequired[list[str]]",
215
+ "resources": "NotRequired[list[str]]",
216
+ "not_resources": "NotRequired[list[str]]",
217
+ "conditions": "NotRequired[list[PolicyCondition]]",
218
+ },
219
+ total=False,
220
+ )
221
+ PolicyCondition = TypedDict(
222
+ "PolicyCondition",
223
+ {
224
+ "operator": "Required[Literal['equals', 'not_equals', 'starts_with', 'ends_with', 'contains', 'in', 'not_in', 'greater_than', 'less_than', 'greater_than_or_equals', 'less_than_or_equals', 'exists', 'not_exists', 'ip_address', 'not_ip_address']]",
225
+ "key": "Required[str]",
226
+ "values": "Required[list[str]]",
227
+ "set_operator": "NotRequired[Literal['for_all_values', 'for_any_value']]",
228
+ },
229
+ total=False,
230
+ )
231
+ CreatePolicyResponse: TypeAlias = "CreatePolicyResult"
232
+ GetAccountResponse: TypeAlias = "AccountResponse"
233
+ GetAccountResource: TypeAlias = "Account"
234
+ GetAccountScope = TypedDict("GetAccountScope", {"limit": "NotRequired[int]"}, total=False)
235
+ GetAccountResourcesResult = TypedDict(
236
+ "GetAccountResourcesResult", {"has_resources": "Required[bool]"}, total=False
237
+ )
238
+ GetAccountResourcesResponse: TypeAlias = "GetAccountResourcesResult"
239
+ GetGroupResult = TypedDict("GetGroupResult", {"group": "NotRequired[Group]"}, total=False)
240
+ GetGroupResponse: TypeAlias = "GetGroupResult"
241
+ GetGroupResource: TypeAlias = "Group"
242
+ GetGroupScope = TypedDict("GetGroupScope", {"limit": "NotRequired[int]"}, total=False)
243
+ InlinePolicyResponse = TypedDict(
244
+ "InlinePolicyResponse", {"inline_policy": "NotRequired[InlinePolicy]"}, total=False
245
+ )
246
+ InlinePolicy = TypedDict(
247
+ "InlinePolicy",
248
+ {
249
+ "crn": "Required[str]",
250
+ "id": "NotRequired[str]",
251
+ "principal_id": "NotRequired[str]",
252
+ "principal_type": "NotRequired[Literal['user', 'group']]",
253
+ "name": "NotRequired[str]",
254
+ "document": "NotRequired[PolicyDocument]",
255
+ "created_at": "NotRequired[str]",
256
+ "updated_at": "NotRequired[str]",
257
+ },
258
+ total=False,
259
+ )
260
+ GetGroupInlinePolicyResponse: TypeAlias = "InlinePolicyResponse"
261
+ GetGroupInlinePolicyResource: TypeAlias = "InlinePolicy"
262
+ GetGroupInlinePolicyScope = TypedDict("GetGroupInlinePolicyScope", {}, total=False)
263
+ GetInvitationResult = TypedDict(
264
+ "GetInvitationResult", {"invitation": "NotRequired[Invitation]"}, total=False
265
+ )
266
+ GetInvitationResponse: TypeAlias = "GetInvitationResult"
267
+ GetInvitationResource: TypeAlias = "Invitation"
268
+ GetInvitationScope = TypedDict("GetInvitationScope", {"limit": "NotRequired[int]"}, total=False)
269
+ OrganizationResponse = TypedDict(
270
+ "OrganizationResponse", {"organization": "NotRequired[Organization]"}, total=False
271
+ )
272
+ Organization = TypedDict(
273
+ "Organization",
274
+ {
275
+ "language": "NotRequired[Literal['en', 'pt-BR', 'es']]",
276
+ "time_zone": "NotRequired[str]",
277
+ "id": "NotRequired[str]",
278
+ "name": "NotRequired[str]",
279
+ "description": "NotRequired[str]",
280
+ "owner_id": "NotRequired[str]",
281
+ "status": "NotRequired[Literal['pending', 'active', 'suspended', 'terminated']]",
282
+ "suspension_reason": "NotRequired[Literal['billing', 'manual']]",
283
+ "created_at": "NotRequired[str]",
284
+ "updated_at": "NotRequired[str]",
285
+ "crn": "NotRequired[str]",
286
+ },
287
+ total=False,
288
+ )
289
+ GetOrganizationResponse: TypeAlias = "OrganizationResponse"
290
+ GetOrganizationResource: TypeAlias = "Organization"
291
+ GetOrganizationScope = TypedDict("GetOrganizationScope", {"limit": "NotRequired[int]"}, total=False)
292
+ GetPolicyResult = TypedDict("GetPolicyResult", {"policy": "NotRequired[Policy]"}, total=False)
293
+ GetPolicyResponse: TypeAlias = "GetPolicyResult"
294
+ GetPolicyResource: TypeAlias = "Policy"
295
+ GetPolicyScope = TypedDict("GetPolicyScope", {"limit": "NotRequired[int]"}, total=False)
296
+ GetUserResult = TypedDict("GetUserResult", {"user": "NotRequired[User]"}, total=False)
297
+ User = TypedDict(
298
+ "User",
299
+ {
300
+ "username": "NotRequired[str]",
301
+ "id": "NotRequired[str]",
302
+ "crn": "NotRequired[str]",
303
+ "email": "NotRequired[str]",
304
+ "name": "NotRequired[str]",
305
+ "linux_identity": "NotRequired[LinuxIdentity]",
306
+ "added_at": "NotRequired[str]",
307
+ "tags": "NotRequired[Tags]",
308
+ },
309
+ total=False,
310
+ )
311
+ LinuxIdentity = TypedDict(
312
+ "LinuxIdentity",
313
+ {
314
+ "home_directory": "Required[str]",
315
+ "username": "Required[str]",
316
+ "uid": "Required[int]",
317
+ "gid": "Required[int]",
318
+ },
319
+ total=False,
320
+ )
321
+ GetUserResponse: TypeAlias = "GetUserResult"
322
+ GetUserResource: TypeAlias = "User"
323
+ GetUserScope = TypedDict("GetUserScope", {"limit": "NotRequired[int]"}, total=False)
324
+ GetUserInlinePolicyResponse: TypeAlias = "InlinePolicyResponse"
325
+ GetUserInlinePolicyResource: TypeAlias = "InlinePolicy"
326
+ GetUserInlinePolicyScope = TypedDict("GetUserInlinePolicyScope", {}, total=False)
327
+ PermissionBoundaryResponse = TypedDict(
328
+ "PermissionBoundaryResponse",
329
+ {"permission_boundary": "NotRequired[PermissionBoundary]"},
330
+ total=False,
331
+ )
332
+ PermissionBoundary = TypedDict(
333
+ "PermissionBoundary",
334
+ {
335
+ "principal_id": "NotRequired[str]",
336
+ "principal_type": "NotRequired[Literal['user']]",
337
+ "policy_id": "NotRequired[str]",
338
+ "policy_name": "NotRequired[str]",
339
+ "created_at": "NotRequired[str]",
340
+ },
341
+ total=False,
342
+ )
343
+ GetUserPermissionBoundaryResponse: TypeAlias = "PermissionBoundaryResponse"
344
+ AccountRoleAssignmentListResponse = TypedDict(
345
+ "AccountRoleAssignmentListResponse",
346
+ {"role_assignments": "NotRequired[list[AccountRoleAssignment]]"},
347
+ total=False,
348
+ )
349
+ ListAccountRoleAssignmentsResponse: TypeAlias = "AccountRoleAssignmentListResponse"
350
+ ListAccountRoleAssignmentsItem: TypeAlias = "AccountRoleAssignment"
351
+ AccountRoleListResponse = TypedDict(
352
+ "AccountRoleListResponse", {"account_roles": "NotRequired[list[AccountRole]]"}, total=False
353
+ )
354
+ AccountRole = TypedDict(
355
+ "AccountRole",
356
+ {
357
+ "account_id": "NotRequired[str]",
358
+ "account_handle": "NotRequired[str]",
359
+ "account_name": "NotRequired[str]",
360
+ "role_id": "NotRequired[str]",
361
+ "role_name": "NotRequired[str]",
362
+ "role_crn": "NotRequired[str]",
363
+ },
364
+ total=False,
365
+ )
366
+ ListAccountRolesResponse: TypeAlias = "AccountRoleListResponse"
367
+ ListAccountRolesItem: TypeAlias = "AccountRole"
368
+ ListAccountsParameters = TypedDict(
369
+ "ListAccountsParameters",
370
+ {
371
+ "name": "NotRequired[str]",
372
+ "crn": "NotRequired[str]",
373
+ "limit": "NotRequired[int]",
374
+ "marker": "NotRequired[str]",
375
+ },
376
+ total=False,
377
+ )
378
+ ListAccountsQuery: TypeAlias = "ListAccountsParameters"
379
+ AccountListResponse = TypedDict(
380
+ "AccountListResponse",
381
+ {"accounts": "NotRequired[list[Account]]", "meta": "NotRequired[PaginationMeta]"},
382
+ total=False,
383
+ )
384
+ PaginationMeta = TypedDict(
385
+ "PaginationMeta",
386
+ {
387
+ "total": "NotRequired[int]",
388
+ "limit": "NotRequired[int]",
389
+ "marker": "NotRequired[str]",
390
+ "has_more": "NotRequired[bool]",
391
+ },
392
+ total=False,
393
+ )
394
+ ListAccountsResponse: TypeAlias = "AccountListResponse"
395
+ ListAccountsItem: TypeAlias = "Account"
396
+ ListGroupInlinePoliciesParameters = TypedDict(
397
+ "ListGroupInlinePoliciesParameters",
398
+ {"name": "NotRequired[str]", "crn": "NotRequired[str]"},
399
+ total=False,
400
+ )
401
+ ListGroupInlinePoliciesQuery: TypeAlias = "ListGroupInlinePoliciesParameters"
402
+ InlinePolicyListResponse = TypedDict(
403
+ "InlinePolicyListResponse", {"inline_policies": "NotRequired[list[InlinePolicy]]"}, total=False
404
+ )
405
+ ListGroupInlinePoliciesResponse: TypeAlias = "InlinePolicyListResponse"
406
+ ListGroupInlinePoliciesItem: TypeAlias = "InlinePolicy"
407
+ ListGroupPoliciesParameters = TypedDict(
408
+ "ListGroupPoliciesParameters",
409
+ {"name": "NotRequired[str]", "crn": "NotRequired[str]"},
410
+ total=False,
411
+ )
412
+ ListGroupPoliciesQuery: TypeAlias = "ListGroupPoliciesParameters"
413
+ PrincipalPoliciesListResponse = TypedDict(
414
+ "PrincipalPoliciesListResponse", {"policies": "NotRequired[list[Policy]]"}, total=False
415
+ )
416
+ ListGroupPoliciesResponse: TypeAlias = "PrincipalPoliciesListResponse"
417
+ ListGroupPoliciesItem: TypeAlias = "Policy"
418
+ ListGroupUsersParameters = TypedDict(
419
+ "ListGroupUsersParameters",
420
+ {
421
+ "name": "NotRequired[str]",
422
+ "crn": "NotRequired[str]",
423
+ "limit": "NotRequired[int]",
424
+ "marker": "NotRequired[str]",
425
+ },
426
+ total=False,
427
+ )
428
+ ListGroupUsersQuery: TypeAlias = "ListGroupUsersParameters"
429
+ GroupUsersListResponse = TypedDict(
430
+ "GroupUsersListResponse",
431
+ {"users": "NotRequired[list[GroupUser]]", "meta": "NotRequired[PaginationMeta]"},
432
+ total=False,
433
+ )
434
+ GroupUser = TypedDict(
435
+ "GroupUser",
436
+ {
437
+ "id": "NotRequired[str]",
438
+ "crn": "NotRequired[str]",
439
+ "email": "NotRequired[str]",
440
+ "name": "NotRequired[str]",
441
+ "added_at": "NotRequired[str]",
442
+ },
443
+ total=False,
444
+ )
445
+ ListGroupUsersResponse: TypeAlias = "GroupUsersListResponse"
446
+ ListGroupUsersItem: TypeAlias = "GroupUser"
447
+ ListGroupsParameters = TypedDict(
448
+ "ListGroupsParameters",
449
+ {
450
+ "name": "NotRequired[str]",
451
+ "crn": "NotRequired[str]",
452
+ "limit": "NotRequired[int]",
453
+ "marker": "NotRequired[str]",
454
+ },
455
+ total=False,
456
+ )
457
+ ListGroupsQuery: TypeAlias = "ListGroupsParameters"
458
+ GroupListResponse = TypedDict(
459
+ "GroupListResponse",
460
+ {"groups": "NotRequired[list[Group]]", "meta": "NotRequired[PaginationMeta]"},
461
+ total=False,
462
+ )
463
+ ListGroupsResponse: TypeAlias = "GroupListResponse"
464
+ ListGroupsItem: TypeAlias = "Group"
465
+ ListInvitationsParameters = TypedDict(
466
+ "ListInvitationsParameters",
467
+ {
468
+ "name": "NotRequired[str]",
469
+ "crn": "NotRequired[str]",
470
+ "limit": "NotRequired[int]",
471
+ "marker": "NotRequired[str]",
472
+ },
473
+ total=False,
474
+ )
475
+ ListInvitationsQuery: TypeAlias = "ListInvitationsParameters"
476
+ InvitationListResponse = TypedDict(
477
+ "InvitationListResponse",
478
+ {"invitations": "NotRequired[list[Invitation]]", "meta": "NotRequired[PaginationMeta]"},
479
+ total=False,
480
+ )
481
+ ListInvitationsResponse: TypeAlias = "InvitationListResponse"
482
+ ListInvitationsItem: TypeAlias = "Invitation"
483
+ ListOrganizationsParameters = TypedDict(
484
+ "ListOrganizationsParameters",
485
+ {
486
+ "name": "NotRequired[str]",
487
+ "crn": "NotRequired[str]",
488
+ "limit": "NotRequired[int]",
489
+ "marker": "NotRequired[str]",
490
+ },
491
+ total=False,
492
+ )
493
+ ListOrganizationsQuery: TypeAlias = "ListOrganizationsParameters"
494
+ OrganizationListResponse = TypedDict(
495
+ "OrganizationListResponse",
496
+ {
497
+ "organizations": "NotRequired[list[OrganizationWithMembership]]",
498
+ "meta": "NotRequired[PaginationMeta]",
499
+ },
500
+ total=False,
501
+ )
502
+ OrganizationWithMembership = TypedDict(
503
+ "OrganizationWithMembership",
504
+ {
505
+ "language": "NotRequired[Literal['en', 'pt-BR', 'es']]",
506
+ "time_zone": "NotRequired[str]",
507
+ "id": "NotRequired[str]",
508
+ "name": "NotRequired[str]",
509
+ "description": "NotRequired[str]",
510
+ "owner_id": "NotRequired[str]",
511
+ "status": "NotRequired[Literal['pending', 'active', 'suspended', 'terminated']]",
512
+ "suspension_reason": "NotRequired[Literal['billing', 'manual']]",
513
+ "created_at": "NotRequired[str]",
514
+ "updated_at": "NotRequired[str]",
515
+ "crn": "NotRequired[str]",
516
+ },
517
+ total=False,
518
+ )
519
+ ListOrganizationsResponse: TypeAlias = "OrganizationListResponse"
520
+ ListOrganizationsItem: TypeAlias = "OrganizationWithMembership"
521
+ ListPoliciesParameters = TypedDict(
522
+ "ListPoliciesParameters",
523
+ {
524
+ "name": "NotRequired[str]",
525
+ "crn": "NotRequired[str]",
526
+ "limit": "NotRequired[int]",
527
+ "marker": "NotRequired[str]",
528
+ },
529
+ total=False,
530
+ )
531
+ ListPoliciesQuery: TypeAlias = "ListPoliciesParameters"
532
+ PolicyListResponse = TypedDict(
533
+ "PolicyListResponse",
534
+ {"policies": "NotRequired[list[Policy]]", "meta": "NotRequired[PaginationMeta]"},
535
+ total=False,
536
+ )
537
+ ListPoliciesResponse: TypeAlias = "PolicyListResponse"
538
+ ListPoliciesItem: TypeAlias = "Policy"
539
+ ListPolicyGroupsParameters = TypedDict(
540
+ "ListPolicyGroupsParameters",
541
+ {
542
+ "name": "NotRequired[str]",
543
+ "crn": "NotRequired[str]",
544
+ "limit": "NotRequired[int]",
545
+ "marker": "NotRequired[str]",
546
+ },
547
+ total=False,
548
+ )
549
+ ListPolicyGroupsQuery: TypeAlias = "ListPolicyGroupsParameters"
550
+ PolicyGroupsListResponse = TypedDict(
551
+ "PolicyGroupsListResponse",
552
+ {"groups": "NotRequired[list[Group]]", "meta": "NotRequired[PaginationMeta]"},
553
+ total=False,
554
+ )
555
+ ListPolicyGroupsResponse: TypeAlias = "PolicyGroupsListResponse"
556
+ ListPolicyGroupsItem: TypeAlias = "Group"
557
+ ListPolicyRolesParameters = TypedDict(
558
+ "ListPolicyRolesParameters",
559
+ {
560
+ "name": "NotRequired[str]",
561
+ "crn": "NotRequired[str]",
562
+ "limit": "NotRequired[int]",
563
+ "marker": "NotRequired[str]",
564
+ },
565
+ total=False,
566
+ )
567
+ ListPolicyRolesQuery: TypeAlias = "ListPolicyRolesParameters"
568
+ PolicyRolesListResponse = TypedDict(
569
+ "PolicyRolesListResponse",
570
+ {
571
+ "roles": "NotRequired[list[AccountPrincipalReference]]",
572
+ "meta": "NotRequired[PaginationMeta]",
573
+ },
574
+ total=False,
575
+ )
576
+ AccountPrincipalReference = TypedDict(
577
+ "AccountPrincipalReference",
578
+ {
579
+ "id": "NotRequired[str]",
580
+ "name": "NotRequired[str]",
581
+ "account_id": "NotRequired[str]",
582
+ "account_handle": "NotRequired[str]",
583
+ },
584
+ total=False,
585
+ )
586
+ ListPolicyRolesResponse: TypeAlias = "PolicyRolesListResponse"
587
+ ListPolicyRolesItem: TypeAlias = "AccountPrincipalReference"
588
+ ListPolicyServiceAccountsParameters = TypedDict(
589
+ "ListPolicyServiceAccountsParameters",
590
+ {
591
+ "name": "NotRequired[str]",
592
+ "crn": "NotRequired[str]",
593
+ "limit": "NotRequired[int]",
594
+ "marker": "NotRequired[str]",
595
+ },
596
+ total=False,
597
+ )
598
+ ListPolicyServiceAccountsQuery: TypeAlias = "ListPolicyServiceAccountsParameters"
599
+ PolicyServiceAccountsListResponse = TypedDict(
600
+ "PolicyServiceAccountsListResponse",
601
+ {
602
+ "service_accounts": "NotRequired[list[AccountPrincipalReference]]",
603
+ "meta": "NotRequired[PaginationMeta]",
604
+ },
605
+ total=False,
606
+ )
607
+ ListPolicyServiceAccountsResponse: TypeAlias = "PolicyServiceAccountsListResponse"
608
+ ListPolicyServiceAccountsItem: TypeAlias = "AccountPrincipalReference"
609
+ ListPolicyUsersParameters = TypedDict(
610
+ "ListPolicyUsersParameters",
611
+ {
612
+ "name": "NotRequired[str]",
613
+ "crn": "NotRequired[str]",
614
+ "limit": "NotRequired[int]",
615
+ "marker": "NotRequired[str]",
616
+ },
617
+ total=False,
618
+ )
619
+ ListPolicyUsersQuery: TypeAlias = "ListPolicyUsersParameters"
620
+ PolicyUsersListResponse = TypedDict(
621
+ "PolicyUsersListResponse",
622
+ {"users": "NotRequired[list[User]]", "meta": "NotRequired[PaginationMeta]"},
623
+ total=False,
624
+ )
625
+ ListPolicyUsersResponse: TypeAlias = "PolicyUsersListResponse"
626
+ ListPolicyUsersItem: TypeAlias = "User"
627
+ ListRolePoliciesParameters = TypedDict(
628
+ "ListRolePoliciesParameters",
629
+ {"name": "NotRequired[str]", "crn": "NotRequired[str]"},
630
+ total=False,
631
+ )
632
+ ListRolePoliciesQuery: TypeAlias = "ListRolePoliciesParameters"
633
+ RolePoliciesListResponse = TypedDict(
634
+ "RolePoliciesListResponse", {"policies": "NotRequired[list[Policy]]"}, total=False
635
+ )
636
+ ListRolePoliciesResponse: TypeAlias = "RolePoliciesListResponse"
637
+ ListRolePoliciesItem: TypeAlias = "Policy"
638
+ ListServiceAccountPoliciesParameters = TypedDict(
639
+ "ListServiceAccountPoliciesParameters",
640
+ {"name": "NotRequired[str]", "crn": "NotRequired[str]"},
641
+ total=False,
642
+ )
643
+ ListServiceAccountPoliciesQuery: TypeAlias = "ListServiceAccountPoliciesParameters"
644
+ ListServiceAccountPoliciesResponse: TypeAlias = "PrincipalPoliciesListResponse"
645
+ ListServiceAccountPoliciesItem: TypeAlias = "Policy"
646
+ ListUserGroupsParameters = TypedDict(
647
+ "ListUserGroupsParameters", {"name": "NotRequired[str]", "crn": "NotRequired[str]"}, total=False
648
+ )
649
+ ListUserGroupsQuery: TypeAlias = "ListUserGroupsParameters"
650
+ ListUserGroupsResponse: TypeAlias = "GroupListResponse"
651
+ ListUserGroupsItem: TypeAlias = "Group"
652
+ ListUserInlinePoliciesParameters = TypedDict(
653
+ "ListUserInlinePoliciesParameters",
654
+ {"name": "NotRequired[str]", "crn": "NotRequired[str]"},
655
+ total=False,
656
+ )
657
+ ListUserInlinePoliciesQuery: TypeAlias = "ListUserInlinePoliciesParameters"
658
+ ListUserInlinePoliciesResponse: TypeAlias = "InlinePolicyListResponse"
659
+ ListUserInlinePoliciesItem: TypeAlias = "InlinePolicy"
660
+ ListUserPoliciesParameters = TypedDict(
661
+ "ListUserPoliciesParameters",
662
+ {"name": "NotRequired[str]", "crn": "NotRequired[str]"},
663
+ total=False,
664
+ )
665
+ ListUserPoliciesQuery: TypeAlias = "ListUserPoliciesParameters"
666
+ ListUserPoliciesResponse: TypeAlias = "PrincipalPoliciesListResponse"
667
+ ListUserPoliciesItem: TypeAlias = "Policy"
668
+ ListUsersParameters = TypedDict(
669
+ "ListUsersParameters",
670
+ {
671
+ "name": "NotRequired[str]",
672
+ "crn": "NotRequired[str]",
673
+ "limit": "NotRequired[int]",
674
+ "marker": "NotRequired[str]",
675
+ },
676
+ total=False,
677
+ )
678
+ ListUsersQuery: TypeAlias = "ListUsersParameters"
679
+ UserListResponse = TypedDict(
680
+ "UserListResponse",
681
+ {"users": "NotRequired[list[User]]", "meta": "NotRequired[PaginationMeta]"},
682
+ total=False,
683
+ )
684
+ ListUsersResponse: TypeAlias = "UserListResponse"
685
+ ListUsersItem: TypeAlias = "User"
686
+ PutInlinePolicyRequestInput = TypedDict(
687
+ "PutInlinePolicyRequestInput", {"document": "Required[PolicyDocumentInput]"}, total=False
688
+ )
689
+ PutGroupInlinePolicyBody: TypeAlias = "PutInlinePolicyRequestInput"
690
+ PutGroupInlinePolicyResponse: TypeAlias = "InlinePolicyResponse"
691
+ PutUserInlinePolicyBody: TypeAlias = "PutInlinePolicyRequestInput"
692
+ PutUserInlinePolicyResponse: TypeAlias = "InlinePolicyResponse"
693
+ SetBoundaryRequestInput = TypedDict(
694
+ "SetBoundaryRequestInput", {"policy": "Required[PolicyReferenceInput]"}, total=False
695
+ )
696
+ SetUserPermissionBoundaryBody: TypeAlias = "SetBoundaryRequestInput"
697
+ UpdateAccountRequestInput = TypedDict(
698
+ "UpdateAccountRequestInput",
699
+ {"name": "NotRequired[str]", "description": "NotRequired[str]"},
700
+ total=False,
701
+ )
702
+ UpdateAccountBody: TypeAlias = "UpdateAccountRequestInput"
703
+ UpdateAccountResponse: TypeAlias = "AccountResponse"
704
+ GroupUpdateRequestInput = TypedDict(
705
+ "GroupUpdateRequestInput", {"description": "NotRequired[str]"}, total=False
706
+ )
707
+ UpdateGroupBody: TypeAlias = "GroupUpdateRequestInput"
708
+ UpdateGroupResult = TypedDict("UpdateGroupResult", {"group": "NotRequired[Group]"}, total=False)
709
+ UpdateGroupResponse: TypeAlias = "UpdateGroupResult"
710
+ OrganizationUpdateRequestInput = TypedDict(
711
+ "OrganizationUpdateRequestInput",
712
+ {
713
+ "language": "NotRequired[Literal['en', 'pt-BR', 'es']]",
714
+ "time_zone": "NotRequired[str]",
715
+ "name": "NotRequired[str]",
716
+ "description": "NotRequired[str]",
717
+ "captcha_token": "Required[str]",
718
+ },
719
+ total=False,
720
+ )
721
+ UpdateOrganizationBody: TypeAlias = "OrganizationUpdateRequestInput"
722
+ UpdateOrganizationResponse: TypeAlias = "OrganizationResponse"
723
+ PolicyUpdateRequestInput = TypedDict(
724
+ "PolicyUpdateRequestInput",
725
+ {
726
+ "description": "NotRequired[str]",
727
+ "tags": "NotRequired[TagsInput]",
728
+ "document": "NotRequired[PolicyDocumentInput]",
729
+ },
730
+ total=False,
731
+ )
732
+ UpdatePolicyBody: TypeAlias = "PolicyUpdateRequestInput"
733
+ UpdatePolicyResult = TypedDict("UpdatePolicyResult", {"policy": "NotRequired[Policy]"}, total=False)
734
+ UpdatePolicyResponse: TypeAlias = "UpdatePolicyResult"