@ryan-pip/pulumi_astronomer 0.1.0 → 0.2.0
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.
- package/apiToken.d.ts +167 -0
- package/apiToken.js +86 -0
- package/apiToken.js.map +1 -0
- package/cluster.d.ts +8 -0
- package/cluster.js +2 -0
- package/cluster.js.map +1 -1
- package/getApiToken.d.ts +113 -0
- package/getApiToken.js +49 -0
- package/getApiToken.js.map +1 -0
- package/getApiTokens.d.ts +77 -0
- package/getApiTokens.js +66 -0
- package/getApiTokens.js.map +1 -0
- package/getCluster.d.ts +8 -2
- package/getCluster.js +4 -2
- package/getCluster.js.map +1 -1
- package/getClusterOptions.d.ts +4 -2
- package/getClusterOptions.js +4 -2
- package/getClusterOptions.js.map +1 -1
- package/getClusters.d.ts +2 -0
- package/getClusters.js +2 -0
- package/getClusters.js.map +1 -1
- package/getDeployment.d.ts +4 -2
- package/getDeployment.js +4 -2
- package/getDeployment.js.map +1 -1
- package/getDeploymentOptions.d.ts +4 -2
- package/getDeploymentOptions.js +4 -2
- package/getDeploymentOptions.js.map +1 -1
- package/getDeployments.d.ts +2 -0
- package/getDeployments.js +2 -0
- package/getDeployments.js.map +1 -1
- package/getOrganization.d.ts +4 -2
- package/getOrganization.js +4 -2
- package/getOrganization.js.map +1 -1
- package/getTeam.d.ts +12 -10
- package/getTeam.js +4 -2
- package/getTeam.js.map +1 -1
- package/getTeams.d.ts +4 -2
- package/getTeams.js +4 -2
- package/getTeams.js.map +1 -1
- package/getUser.d.ts +97 -0
- package/getUser.js +49 -0
- package/getUser.js.map +1 -0
- package/getUsers.d.ts +68 -0
- package/getUsers.js +59 -0
- package/getUsers.js.map +1 -0
- package/getWorkspace.d.ts +4 -2
- package/getWorkspace.js +4 -2
- package/getWorkspace.js.map +1 -1
- package/getWorkspaces.d.ts +4 -2
- package/getWorkspaces.js +4 -2
- package/getWorkspaces.js.map +1 -1
- package/index.d.ts +24 -0
- package/index.js +33 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/team.d.ts +161 -0
- package/team.js +77 -0
- package/team.js.map +1 -0
- package/types/input.d.ts +130 -0
- package/types/output.d.ts +396 -6
- package/userInvite.d.ts +117 -0
- package/userInvite.js +82 -0
- package/userInvite.js.map +1 -0
- package/userRoles.d.ts +89 -0
- package/userRoles.js +64 -0
- package/userRoles.js.map +1 -0
package/types/output.d.ts
CHANGED
|
@@ -1,9 +1,67 @@
|
|
|
1
1
|
import * as outputs from "../types/output";
|
|
2
|
+
export interface ApiTokenCreatedBy {
|
|
3
|
+
apiTokenName: string;
|
|
4
|
+
avatarUrl: string;
|
|
5
|
+
fullName: string;
|
|
6
|
+
id: string;
|
|
7
|
+
subjectType: string;
|
|
8
|
+
username: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ApiTokenRole {
|
|
11
|
+
/**
|
|
12
|
+
* The ID of the entity to assign the role to
|
|
13
|
+
*/
|
|
14
|
+
entityId: string;
|
|
15
|
+
/**
|
|
16
|
+
* The type of entity to assign the role to
|
|
17
|
+
*/
|
|
18
|
+
entityType: string;
|
|
19
|
+
/**
|
|
20
|
+
* The role to assign to the entity
|
|
21
|
+
*/
|
|
22
|
+
role: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ApiTokenUpdatedBy {
|
|
25
|
+
apiTokenName: string;
|
|
26
|
+
avatarUrl: string;
|
|
27
|
+
fullName: string;
|
|
28
|
+
id: string;
|
|
29
|
+
subjectType: string;
|
|
30
|
+
username: string;
|
|
31
|
+
}
|
|
32
|
+
export interface ClusterHealthStatus {
|
|
33
|
+
/**
|
|
34
|
+
* Cluster health status details
|
|
35
|
+
*/
|
|
36
|
+
details: outputs.ClusterHealthStatusDetail[];
|
|
37
|
+
/**
|
|
38
|
+
* Cluster health status value
|
|
39
|
+
*/
|
|
40
|
+
value: string;
|
|
41
|
+
}
|
|
42
|
+
export interface ClusterHealthStatusDetail {
|
|
43
|
+
/**
|
|
44
|
+
* Cluster health status detail code
|
|
45
|
+
*/
|
|
46
|
+
code: string;
|
|
47
|
+
/**
|
|
48
|
+
* Cluster health status detail description
|
|
49
|
+
*/
|
|
50
|
+
description: string;
|
|
51
|
+
/**
|
|
52
|
+
* Cluster health status detail severity
|
|
53
|
+
*/
|
|
54
|
+
severity: string;
|
|
55
|
+
}
|
|
2
56
|
export interface ClusterMetadata {
|
|
3
57
|
/**
|
|
4
58
|
* Cluster external IPs
|
|
5
59
|
*/
|
|
6
60
|
externalIps: string[];
|
|
61
|
+
/**
|
|
62
|
+
* Cluster kube DNS IP
|
|
63
|
+
*/
|
|
64
|
+
kubeDnsIp: string;
|
|
7
65
|
/**
|
|
8
66
|
* Cluster OIDC issuer URL
|
|
9
67
|
*/
|
|
@@ -173,11 +231,157 @@ export interface DeploymentWorkerQueue {
|
|
|
173
231
|
*/
|
|
174
232
|
workerConcurrency: number;
|
|
175
233
|
}
|
|
234
|
+
export interface GetApiTokenCreatedBy {
|
|
235
|
+
apiTokenName: string;
|
|
236
|
+
avatarUrl: string;
|
|
237
|
+
fullName: string;
|
|
238
|
+
id: string;
|
|
239
|
+
subjectType: string;
|
|
240
|
+
username: string;
|
|
241
|
+
}
|
|
242
|
+
export interface GetApiTokenRole {
|
|
243
|
+
/**
|
|
244
|
+
* The ID of the entity to assign the role to
|
|
245
|
+
*/
|
|
246
|
+
entityId: string;
|
|
247
|
+
/**
|
|
248
|
+
* The type of entity to assign the role to
|
|
249
|
+
*/
|
|
250
|
+
entityType: string;
|
|
251
|
+
/**
|
|
252
|
+
* The role to assign to the entity
|
|
253
|
+
*/
|
|
254
|
+
role: string;
|
|
255
|
+
}
|
|
256
|
+
export interface GetApiTokenUpdatedBy {
|
|
257
|
+
apiTokenName: string;
|
|
258
|
+
avatarUrl: string;
|
|
259
|
+
fullName: string;
|
|
260
|
+
id: string;
|
|
261
|
+
subjectType: string;
|
|
262
|
+
username: string;
|
|
263
|
+
}
|
|
264
|
+
export interface GetApiTokensApiToken {
|
|
265
|
+
/**
|
|
266
|
+
* API Token creation timestamp
|
|
267
|
+
*/
|
|
268
|
+
createdAt: string;
|
|
269
|
+
/**
|
|
270
|
+
* API Token creator
|
|
271
|
+
*/
|
|
272
|
+
createdBy: outputs.GetApiTokensApiTokenCreatedBy;
|
|
273
|
+
/**
|
|
274
|
+
* API Token description
|
|
275
|
+
*/
|
|
276
|
+
description: string;
|
|
277
|
+
/**
|
|
278
|
+
* time when the API token will expire in UTC
|
|
279
|
+
*/
|
|
280
|
+
endAt: string;
|
|
281
|
+
/**
|
|
282
|
+
* API Token expiry period in days
|
|
283
|
+
*/
|
|
284
|
+
expiryPeriodInDays: number;
|
|
285
|
+
/**
|
|
286
|
+
* API Token identifier
|
|
287
|
+
*/
|
|
288
|
+
id: string;
|
|
289
|
+
/**
|
|
290
|
+
* API Token last used timestamp
|
|
291
|
+
*/
|
|
292
|
+
lastUsedAt: string;
|
|
293
|
+
/**
|
|
294
|
+
* API Token name
|
|
295
|
+
*/
|
|
296
|
+
name: string;
|
|
297
|
+
/**
|
|
298
|
+
* The roles assigned to the API Token
|
|
299
|
+
*/
|
|
300
|
+
roles: outputs.GetApiTokensApiTokenRole[];
|
|
301
|
+
/**
|
|
302
|
+
* API Token short token
|
|
303
|
+
*/
|
|
304
|
+
shortToken: string;
|
|
305
|
+
/**
|
|
306
|
+
* time when the API token will become valid in UTC
|
|
307
|
+
*/
|
|
308
|
+
startAt: string;
|
|
309
|
+
/**
|
|
310
|
+
* API Token type
|
|
311
|
+
*/
|
|
312
|
+
type: string;
|
|
313
|
+
/**
|
|
314
|
+
* API Token last updated timestamp
|
|
315
|
+
*/
|
|
316
|
+
updatedAt: string;
|
|
317
|
+
/**
|
|
318
|
+
* API Token updater
|
|
319
|
+
*/
|
|
320
|
+
updatedBy: outputs.GetApiTokensApiTokenUpdatedBy;
|
|
321
|
+
}
|
|
322
|
+
export interface GetApiTokensApiTokenCreatedBy {
|
|
323
|
+
apiTokenName: string;
|
|
324
|
+
avatarUrl: string;
|
|
325
|
+
fullName: string;
|
|
326
|
+
id: string;
|
|
327
|
+
subjectType: string;
|
|
328
|
+
username: string;
|
|
329
|
+
}
|
|
330
|
+
export interface GetApiTokensApiTokenRole {
|
|
331
|
+
/**
|
|
332
|
+
* The ID of the entity to assign the role to
|
|
333
|
+
*/
|
|
334
|
+
entityId: string;
|
|
335
|
+
/**
|
|
336
|
+
* The type of entity to assign the role to
|
|
337
|
+
*/
|
|
338
|
+
entityType: string;
|
|
339
|
+
/**
|
|
340
|
+
* The role to assign to the entity
|
|
341
|
+
*/
|
|
342
|
+
role: string;
|
|
343
|
+
}
|
|
344
|
+
export interface GetApiTokensApiTokenUpdatedBy {
|
|
345
|
+
apiTokenName: string;
|
|
346
|
+
avatarUrl: string;
|
|
347
|
+
fullName: string;
|
|
348
|
+
id: string;
|
|
349
|
+
subjectType: string;
|
|
350
|
+
username: string;
|
|
351
|
+
}
|
|
352
|
+
export interface GetClusterHealthStatus {
|
|
353
|
+
/**
|
|
354
|
+
* Cluster health status details
|
|
355
|
+
*/
|
|
356
|
+
details: outputs.GetClusterHealthStatusDetail[];
|
|
357
|
+
/**
|
|
358
|
+
* Cluster health status value
|
|
359
|
+
*/
|
|
360
|
+
value: string;
|
|
361
|
+
}
|
|
362
|
+
export interface GetClusterHealthStatusDetail {
|
|
363
|
+
/**
|
|
364
|
+
* Cluster health status detail code
|
|
365
|
+
*/
|
|
366
|
+
code: string;
|
|
367
|
+
/**
|
|
368
|
+
* Cluster health status detail description
|
|
369
|
+
*/
|
|
370
|
+
description: string;
|
|
371
|
+
/**
|
|
372
|
+
* Cluster health status detail severity
|
|
373
|
+
*/
|
|
374
|
+
severity: string;
|
|
375
|
+
}
|
|
176
376
|
export interface GetClusterMetadata {
|
|
177
377
|
/**
|
|
178
378
|
* Cluster external IPs
|
|
179
379
|
*/
|
|
180
380
|
externalIps: string[];
|
|
381
|
+
/**
|
|
382
|
+
* Cluster kube DNS IP
|
|
383
|
+
*/
|
|
384
|
+
kubeDnsIp: string;
|
|
181
385
|
/**
|
|
182
386
|
* Cluster OIDC issuer URL
|
|
183
387
|
*/
|
|
@@ -390,6 +594,10 @@ export interface GetClustersCluster {
|
|
|
390
594
|
* Cluster database instance type
|
|
391
595
|
*/
|
|
392
596
|
dbInstanceType: string;
|
|
597
|
+
/**
|
|
598
|
+
* Cluster health status
|
|
599
|
+
*/
|
|
600
|
+
healthStatus: outputs.GetClustersClusterHealthStatus;
|
|
393
601
|
/**
|
|
394
602
|
* Cluster identifier
|
|
395
603
|
*/
|
|
@@ -459,11 +667,39 @@ export interface GetClustersCluster {
|
|
|
459
667
|
*/
|
|
460
668
|
workspaceIds: string[];
|
|
461
669
|
}
|
|
670
|
+
export interface GetClustersClusterHealthStatus {
|
|
671
|
+
/**
|
|
672
|
+
* Cluster health status details
|
|
673
|
+
*/
|
|
674
|
+
details: outputs.GetClustersClusterHealthStatusDetail[];
|
|
675
|
+
/**
|
|
676
|
+
* Cluster health status value
|
|
677
|
+
*/
|
|
678
|
+
value: string;
|
|
679
|
+
}
|
|
680
|
+
export interface GetClustersClusterHealthStatusDetail {
|
|
681
|
+
/**
|
|
682
|
+
* Cluster health status detail code
|
|
683
|
+
*/
|
|
684
|
+
code: string;
|
|
685
|
+
/**
|
|
686
|
+
* Cluster health status detail description
|
|
687
|
+
*/
|
|
688
|
+
description: string;
|
|
689
|
+
/**
|
|
690
|
+
* Cluster health status detail severity
|
|
691
|
+
*/
|
|
692
|
+
severity: string;
|
|
693
|
+
}
|
|
462
694
|
export interface GetClustersClusterMetadata {
|
|
463
695
|
/**
|
|
464
696
|
* Cluster external IPs
|
|
465
697
|
*/
|
|
466
698
|
externalIps: string[];
|
|
699
|
+
/**
|
|
700
|
+
* Cluster kube DNS IP
|
|
701
|
+
*/
|
|
702
|
+
kubeDnsIp: string;
|
|
467
703
|
/**
|
|
468
704
|
* Cluster OIDC issuer URL
|
|
469
705
|
*/
|
|
@@ -1229,7 +1465,7 @@ export interface GetTeamsTeam {
|
|
|
1229
1465
|
*/
|
|
1230
1466
|
createdBy: outputs.GetTeamsTeamCreatedBy;
|
|
1231
1467
|
/**
|
|
1232
|
-
* The roles assigned to the
|
|
1468
|
+
* The roles assigned to the Deployments
|
|
1233
1469
|
*/
|
|
1234
1470
|
deploymentRoles: outputs.GetTeamsTeamDeploymentRole[];
|
|
1235
1471
|
/**
|
|
@@ -1237,11 +1473,11 @@ export interface GetTeamsTeam {
|
|
|
1237
1473
|
*/
|
|
1238
1474
|
description: string;
|
|
1239
1475
|
/**
|
|
1240
|
-
* Team
|
|
1476
|
+
* Team ID
|
|
1241
1477
|
*/
|
|
1242
1478
|
id: string;
|
|
1243
1479
|
/**
|
|
1244
|
-
* Whether the
|
|
1480
|
+
* Whether the Team is managed by an identity provider
|
|
1245
1481
|
*/
|
|
1246
1482
|
isIdpManaged: boolean;
|
|
1247
1483
|
/**
|
|
@@ -1249,11 +1485,11 @@ export interface GetTeamsTeam {
|
|
|
1249
1485
|
*/
|
|
1250
1486
|
name: string;
|
|
1251
1487
|
/**
|
|
1252
|
-
* The role assigned to the
|
|
1488
|
+
* The role assigned to the Organization
|
|
1253
1489
|
*/
|
|
1254
1490
|
organizationRole: string;
|
|
1255
1491
|
/**
|
|
1256
|
-
* Number of roles assigned to the
|
|
1492
|
+
* Number of roles assigned to the Team
|
|
1257
1493
|
*/
|
|
1258
1494
|
rolesCount: number;
|
|
1259
1495
|
/**
|
|
@@ -1265,7 +1501,7 @@ export interface GetTeamsTeam {
|
|
|
1265
1501
|
*/
|
|
1266
1502
|
updatedBy: outputs.GetTeamsTeamUpdatedBy;
|
|
1267
1503
|
/**
|
|
1268
|
-
* The roles assigned to the
|
|
1504
|
+
* The roles assigned to the Workspaces
|
|
1269
1505
|
*/
|
|
1270
1506
|
workspaceRoles: outputs.GetTeamsTeamWorkspaceRole[];
|
|
1271
1507
|
}
|
|
@@ -1305,6 +1541,88 @@ export interface GetTeamsTeamWorkspaceRole {
|
|
|
1305
1541
|
*/
|
|
1306
1542
|
workspaceId: string;
|
|
1307
1543
|
}
|
|
1544
|
+
export interface GetUserDeploymentRole {
|
|
1545
|
+
/**
|
|
1546
|
+
* The ID of the deployment the role is assigned to
|
|
1547
|
+
*/
|
|
1548
|
+
deploymentId: string;
|
|
1549
|
+
/**
|
|
1550
|
+
* The role assigned to the deployment
|
|
1551
|
+
*/
|
|
1552
|
+
role: string;
|
|
1553
|
+
}
|
|
1554
|
+
export interface GetUserWorkspaceRole {
|
|
1555
|
+
/**
|
|
1556
|
+
* The role assigned to the workspace
|
|
1557
|
+
*/
|
|
1558
|
+
role: string;
|
|
1559
|
+
/**
|
|
1560
|
+
* The ID of the workspace the role is assigned to
|
|
1561
|
+
*/
|
|
1562
|
+
workspaceId: string;
|
|
1563
|
+
}
|
|
1564
|
+
export interface GetUsersUser {
|
|
1565
|
+
/**
|
|
1566
|
+
* User avatar URL
|
|
1567
|
+
*/
|
|
1568
|
+
avatarUrl: string;
|
|
1569
|
+
/**
|
|
1570
|
+
* User creation timestamp
|
|
1571
|
+
*/
|
|
1572
|
+
createdAt: string;
|
|
1573
|
+
/**
|
|
1574
|
+
* The roles assigned to the deployments
|
|
1575
|
+
*/
|
|
1576
|
+
deploymentRoles: outputs.GetUsersUserDeploymentRole[];
|
|
1577
|
+
/**
|
|
1578
|
+
* User full name
|
|
1579
|
+
*/
|
|
1580
|
+
fullName: string;
|
|
1581
|
+
/**
|
|
1582
|
+
* User identifier
|
|
1583
|
+
*/
|
|
1584
|
+
id: string;
|
|
1585
|
+
/**
|
|
1586
|
+
* The role assigned to the organization
|
|
1587
|
+
*/
|
|
1588
|
+
organizationRole: string;
|
|
1589
|
+
/**
|
|
1590
|
+
* User status
|
|
1591
|
+
*/
|
|
1592
|
+
status: string;
|
|
1593
|
+
/**
|
|
1594
|
+
* User last updated timestamp
|
|
1595
|
+
*/
|
|
1596
|
+
updatedAt: string;
|
|
1597
|
+
/**
|
|
1598
|
+
* User username
|
|
1599
|
+
*/
|
|
1600
|
+
username: string;
|
|
1601
|
+
/**
|
|
1602
|
+
* The roles assigned to the workspaces
|
|
1603
|
+
*/
|
|
1604
|
+
workspaceRoles: outputs.GetUsersUserWorkspaceRole[];
|
|
1605
|
+
}
|
|
1606
|
+
export interface GetUsersUserDeploymentRole {
|
|
1607
|
+
/**
|
|
1608
|
+
* The ID of the deployment the role is assigned to
|
|
1609
|
+
*/
|
|
1610
|
+
deploymentId: string;
|
|
1611
|
+
/**
|
|
1612
|
+
* The role assigned to the deployment
|
|
1613
|
+
*/
|
|
1614
|
+
role: string;
|
|
1615
|
+
}
|
|
1616
|
+
export interface GetUsersUserWorkspaceRole {
|
|
1617
|
+
/**
|
|
1618
|
+
* The role assigned to the workspace
|
|
1619
|
+
*/
|
|
1620
|
+
role: string;
|
|
1621
|
+
/**
|
|
1622
|
+
* The ID of the workspace the role is assigned to
|
|
1623
|
+
*/
|
|
1624
|
+
workspaceId: string;
|
|
1625
|
+
}
|
|
1308
1626
|
export interface GetWorkspaceCreatedBy {
|
|
1309
1627
|
apiTokenName: string;
|
|
1310
1628
|
avatarUrl: string;
|
|
@@ -1371,6 +1689,24 @@ export interface GetWorkspacesWorkspaceUpdatedBy {
|
|
|
1371
1689
|
subjectType: string;
|
|
1372
1690
|
username: string;
|
|
1373
1691
|
}
|
|
1692
|
+
export interface TeamCreatedBy {
|
|
1693
|
+
apiTokenName: string;
|
|
1694
|
+
avatarUrl: string;
|
|
1695
|
+
fullName: string;
|
|
1696
|
+
id: string;
|
|
1697
|
+
subjectType: string;
|
|
1698
|
+
username: string;
|
|
1699
|
+
}
|
|
1700
|
+
export interface TeamDeploymentRole {
|
|
1701
|
+
/**
|
|
1702
|
+
* The ID of the deployment to assign the role to
|
|
1703
|
+
*/
|
|
1704
|
+
deploymentId: string;
|
|
1705
|
+
/**
|
|
1706
|
+
* The role to assign to the deployment
|
|
1707
|
+
*/
|
|
1708
|
+
role: string;
|
|
1709
|
+
}
|
|
1374
1710
|
export interface TeamRolesDeploymentRole {
|
|
1375
1711
|
/**
|
|
1376
1712
|
* The ID of the deployment to assign the role to
|
|
@@ -1391,6 +1727,60 @@ export interface TeamRolesWorkspaceRole {
|
|
|
1391
1727
|
*/
|
|
1392
1728
|
workspaceId: string;
|
|
1393
1729
|
}
|
|
1730
|
+
export interface TeamUpdatedBy {
|
|
1731
|
+
apiTokenName: string;
|
|
1732
|
+
avatarUrl: string;
|
|
1733
|
+
fullName: string;
|
|
1734
|
+
id: string;
|
|
1735
|
+
subjectType: string;
|
|
1736
|
+
username: string;
|
|
1737
|
+
}
|
|
1738
|
+
export interface TeamWorkspaceRole {
|
|
1739
|
+
/**
|
|
1740
|
+
* The role to assign to the workspace
|
|
1741
|
+
*/
|
|
1742
|
+
role: string;
|
|
1743
|
+
/**
|
|
1744
|
+
* The ID of the workspace to assign the role to
|
|
1745
|
+
*/
|
|
1746
|
+
workspaceId: string;
|
|
1747
|
+
}
|
|
1748
|
+
export interface UserInviteInvitee {
|
|
1749
|
+
apiTokenName: string;
|
|
1750
|
+
avatarUrl: string;
|
|
1751
|
+
fullName: string;
|
|
1752
|
+
id: string;
|
|
1753
|
+
subjectType: string;
|
|
1754
|
+
username: string;
|
|
1755
|
+
}
|
|
1756
|
+
export interface UserInviteInviter {
|
|
1757
|
+
apiTokenName: string;
|
|
1758
|
+
avatarUrl: string;
|
|
1759
|
+
fullName: string;
|
|
1760
|
+
id: string;
|
|
1761
|
+
subjectType: string;
|
|
1762
|
+
username: string;
|
|
1763
|
+
}
|
|
1764
|
+
export interface UserRolesDeploymentRole {
|
|
1765
|
+
/**
|
|
1766
|
+
* The ID of the deployment to assign the role to
|
|
1767
|
+
*/
|
|
1768
|
+
deploymentId: string;
|
|
1769
|
+
/**
|
|
1770
|
+
* The role to assign to the deployment
|
|
1771
|
+
*/
|
|
1772
|
+
role: string;
|
|
1773
|
+
}
|
|
1774
|
+
export interface UserRolesWorkspaceRole {
|
|
1775
|
+
/**
|
|
1776
|
+
* The role to assign to the workspace
|
|
1777
|
+
*/
|
|
1778
|
+
role: string;
|
|
1779
|
+
/**
|
|
1780
|
+
* The ID of the workspace to assign the role to
|
|
1781
|
+
*/
|
|
1782
|
+
workspaceId: string;
|
|
1783
|
+
}
|
|
1394
1784
|
export interface WorkspaceCreatedBy {
|
|
1395
1785
|
apiTokenName: string;
|
|
1396
1786
|
avatarUrl: string;
|
package/userInvite.d.ts
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* User Invite resource
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as astronomer from "@ryan-pip/pulumi_astronomer";
|
|
12
|
+
*
|
|
13
|
+
* const userInvite = new astronomer.UserInvite("userInvite", {
|
|
14
|
+
* email: "email@organization.com",
|
|
15
|
+
* role: "ORGANIZATION_MEMBER",
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare class UserInvite extends pulumi.CustomResource {
|
|
20
|
+
/**
|
|
21
|
+
* Get an existing UserInvite resource's state with the given name, ID, and optional extra
|
|
22
|
+
* properties used to qualify the lookup.
|
|
23
|
+
*
|
|
24
|
+
* @param name The _unique_ name of the resulting resource.
|
|
25
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
26
|
+
* @param state Any extra arguments used during the lookup.
|
|
27
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
28
|
+
*/
|
|
29
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: UserInviteState, opts?: pulumi.CustomResourceOptions): UserInvite;
|
|
30
|
+
/**
|
|
31
|
+
* Returns true if the given object is an instance of UserInvite. This is designed to work even
|
|
32
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
33
|
+
*/
|
|
34
|
+
static isInstance(obj: any): obj is UserInvite;
|
|
35
|
+
/**
|
|
36
|
+
* The email address of the user being invited
|
|
37
|
+
*/
|
|
38
|
+
readonly email: pulumi.Output<string>;
|
|
39
|
+
/**
|
|
40
|
+
* The expiration date of the invite
|
|
41
|
+
*/
|
|
42
|
+
readonly expiresAt: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* The ID of the invite
|
|
45
|
+
*/
|
|
46
|
+
readonly inviteId: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* The profile of the invitee
|
|
49
|
+
*/
|
|
50
|
+
readonly invitee: pulumi.Output<outputs.UserInviteInvitee>;
|
|
51
|
+
/**
|
|
52
|
+
* The profile of the inviter
|
|
53
|
+
*/
|
|
54
|
+
readonly inviter: pulumi.Output<outputs.UserInviteInviter>;
|
|
55
|
+
/**
|
|
56
|
+
* The Organization role to assign to the user
|
|
57
|
+
*/
|
|
58
|
+
readonly role: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* The ID of the user
|
|
61
|
+
*/
|
|
62
|
+
readonly userId: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Create a UserInvite resource with the given unique name, arguments, and options.
|
|
65
|
+
*
|
|
66
|
+
* @param name The _unique_ name of the resource.
|
|
67
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
68
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
69
|
+
*/
|
|
70
|
+
constructor(name: string, args: UserInviteArgs, opts?: pulumi.CustomResourceOptions);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Input properties used for looking up and filtering UserInvite resources.
|
|
74
|
+
*/
|
|
75
|
+
export interface UserInviteState {
|
|
76
|
+
/**
|
|
77
|
+
* The email address of the user being invited
|
|
78
|
+
*/
|
|
79
|
+
email?: pulumi.Input<string>;
|
|
80
|
+
/**
|
|
81
|
+
* The expiration date of the invite
|
|
82
|
+
*/
|
|
83
|
+
expiresAt?: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* The ID of the invite
|
|
86
|
+
*/
|
|
87
|
+
inviteId?: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* The profile of the invitee
|
|
90
|
+
*/
|
|
91
|
+
invitee?: pulumi.Input<inputs.UserInviteInvitee>;
|
|
92
|
+
/**
|
|
93
|
+
* The profile of the inviter
|
|
94
|
+
*/
|
|
95
|
+
inviter?: pulumi.Input<inputs.UserInviteInviter>;
|
|
96
|
+
/**
|
|
97
|
+
* The Organization role to assign to the user
|
|
98
|
+
*/
|
|
99
|
+
role?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* The ID of the user
|
|
102
|
+
*/
|
|
103
|
+
userId?: pulumi.Input<string>;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* The set of arguments for constructing a UserInvite resource.
|
|
107
|
+
*/
|
|
108
|
+
export interface UserInviteArgs {
|
|
109
|
+
/**
|
|
110
|
+
* The email address of the user being invited
|
|
111
|
+
*/
|
|
112
|
+
email: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* The Organization role to assign to the user
|
|
115
|
+
*/
|
|
116
|
+
role: pulumi.Input<string>;
|
|
117
|
+
}
|
package/userInvite.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.UserInvite = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* User Invite resource
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as astronomer from "@ryan-pip/pulumi_astronomer";
|
|
16
|
+
*
|
|
17
|
+
* const userInvite = new astronomer.UserInvite("userInvite", {
|
|
18
|
+
* email: "email@organization.com",
|
|
19
|
+
* role: "ORGANIZATION_MEMBER",
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
class UserInvite extends pulumi.CustomResource {
|
|
24
|
+
/**
|
|
25
|
+
* Get an existing UserInvite resource's state with the given name, ID, and optional extra
|
|
26
|
+
* properties used to qualify the lookup.
|
|
27
|
+
*
|
|
28
|
+
* @param name The _unique_ name of the resulting resource.
|
|
29
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
30
|
+
* @param state Any extra arguments used during the lookup.
|
|
31
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
32
|
+
*/
|
|
33
|
+
static get(name, id, state, opts) {
|
|
34
|
+
return new UserInvite(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Returns true if the given object is an instance of UserInvite. This is designed to work even
|
|
38
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
39
|
+
*/
|
|
40
|
+
static isInstance(obj) {
|
|
41
|
+
if (obj === undefined || obj === null) {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
return obj['__pulumiType'] === UserInvite.__pulumiType;
|
|
45
|
+
}
|
|
46
|
+
constructor(name, argsOrState, opts) {
|
|
47
|
+
let resourceInputs = {};
|
|
48
|
+
opts = opts || {};
|
|
49
|
+
if (opts.id) {
|
|
50
|
+
const state = argsOrState;
|
|
51
|
+
resourceInputs["email"] = state ? state.email : undefined;
|
|
52
|
+
resourceInputs["expiresAt"] = state ? state.expiresAt : undefined;
|
|
53
|
+
resourceInputs["inviteId"] = state ? state.inviteId : undefined;
|
|
54
|
+
resourceInputs["invitee"] = state ? state.invitee : undefined;
|
|
55
|
+
resourceInputs["inviter"] = state ? state.inviter : undefined;
|
|
56
|
+
resourceInputs["role"] = state ? state.role : undefined;
|
|
57
|
+
resourceInputs["userId"] = state ? state.userId : undefined;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
const args = argsOrState;
|
|
61
|
+
if ((!args || args.email === undefined) && !opts.urn) {
|
|
62
|
+
throw new Error("Missing required property 'email'");
|
|
63
|
+
}
|
|
64
|
+
if ((!args || args.role === undefined) && !opts.urn) {
|
|
65
|
+
throw new Error("Missing required property 'role'");
|
|
66
|
+
}
|
|
67
|
+
resourceInputs["email"] = args ? args.email : undefined;
|
|
68
|
+
resourceInputs["role"] = args ? args.role : undefined;
|
|
69
|
+
resourceInputs["expiresAt"] = undefined /*out*/;
|
|
70
|
+
resourceInputs["inviteId"] = undefined /*out*/;
|
|
71
|
+
resourceInputs["invitee"] = undefined /*out*/;
|
|
72
|
+
resourceInputs["inviter"] = undefined /*out*/;
|
|
73
|
+
resourceInputs["userId"] = undefined /*out*/;
|
|
74
|
+
}
|
|
75
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
76
|
+
super(UserInvite.__pulumiType, name, resourceInputs, opts);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.UserInvite = UserInvite;
|
|
80
|
+
/** @internal */
|
|
81
|
+
UserInvite.__pulumiType = 'astronomer:index/userInvite:UserInvite';
|
|
82
|
+
//# sourceMappingURL=userInvite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userInvite.js","sourceRoot":"","sources":["../userInvite.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IA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