@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.
Files changed (66) hide show
  1. package/apiToken.d.ts +167 -0
  2. package/apiToken.js +86 -0
  3. package/apiToken.js.map +1 -0
  4. package/cluster.d.ts +8 -0
  5. package/cluster.js +2 -0
  6. package/cluster.js.map +1 -1
  7. package/getApiToken.d.ts +113 -0
  8. package/getApiToken.js +49 -0
  9. package/getApiToken.js.map +1 -0
  10. package/getApiTokens.d.ts +77 -0
  11. package/getApiTokens.js +66 -0
  12. package/getApiTokens.js.map +1 -0
  13. package/getCluster.d.ts +8 -2
  14. package/getCluster.js +4 -2
  15. package/getCluster.js.map +1 -1
  16. package/getClusterOptions.d.ts +4 -2
  17. package/getClusterOptions.js +4 -2
  18. package/getClusterOptions.js.map +1 -1
  19. package/getClusters.d.ts +2 -0
  20. package/getClusters.js +2 -0
  21. package/getClusters.js.map +1 -1
  22. package/getDeployment.d.ts +4 -2
  23. package/getDeployment.js +4 -2
  24. package/getDeployment.js.map +1 -1
  25. package/getDeploymentOptions.d.ts +4 -2
  26. package/getDeploymentOptions.js +4 -2
  27. package/getDeploymentOptions.js.map +1 -1
  28. package/getDeployments.d.ts +2 -0
  29. package/getDeployments.js +2 -0
  30. package/getDeployments.js.map +1 -1
  31. package/getOrganization.d.ts +4 -2
  32. package/getOrganization.js +4 -2
  33. package/getOrganization.js.map +1 -1
  34. package/getTeam.d.ts +12 -10
  35. package/getTeam.js +4 -2
  36. package/getTeam.js.map +1 -1
  37. package/getTeams.d.ts +4 -2
  38. package/getTeams.js +4 -2
  39. package/getTeams.js.map +1 -1
  40. package/getUser.d.ts +97 -0
  41. package/getUser.js +49 -0
  42. package/getUser.js.map +1 -0
  43. package/getUsers.d.ts +68 -0
  44. package/getUsers.js +59 -0
  45. package/getUsers.js.map +1 -0
  46. package/getWorkspace.d.ts +4 -2
  47. package/getWorkspace.js +4 -2
  48. package/getWorkspace.js.map +1 -1
  49. package/getWorkspaces.d.ts +4 -2
  50. package/getWorkspaces.js +4 -2
  51. package/getWorkspaces.js.map +1 -1
  52. package/index.d.ts +24 -0
  53. package/index.js +33 -1
  54. package/index.js.map +1 -1
  55. package/package.json +1 -1
  56. package/team.d.ts +161 -0
  57. package/team.js +77 -0
  58. package/team.js.map +1 -0
  59. package/types/input.d.ts +130 -0
  60. package/types/output.d.ts +396 -6
  61. package/userInvite.d.ts +117 -0
  62. package/userInvite.js +82 -0
  63. package/userInvite.js.map +1 -0
  64. package/userRoles.d.ts +89 -0
  65. package/userRoles.js +64 -0
  66. package/userRoles.js.map +1 -0
package/team.js ADDED
@@ -0,0 +1,77 @@
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.Team = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Team resource
10
+ */
11
+ class Team extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing Team resource's state with the given name, ID, and optional extra
14
+ * properties used to qualify the lookup.
15
+ *
16
+ * @param name The _unique_ name of the resulting resource.
17
+ * @param id The _unique_ provider ID of the resource to lookup.
18
+ * @param state Any extra arguments used during the lookup.
19
+ * @param opts Optional settings to control the behavior of the CustomResource.
20
+ */
21
+ static get(name, id, state, opts) {
22
+ return new Team(name, state, Object.assign(Object.assign({}, opts), { id: id }));
23
+ }
24
+ /**
25
+ * Returns true if the given object is an instance of Team. This is designed to work even
26
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
27
+ */
28
+ static isInstance(obj) {
29
+ if (obj === undefined || obj === null) {
30
+ return false;
31
+ }
32
+ return obj['__pulumiType'] === Team.__pulumiType;
33
+ }
34
+ constructor(name, argsOrState, opts) {
35
+ let resourceInputs = {};
36
+ opts = opts || {};
37
+ if (opts.id) {
38
+ const state = argsOrState;
39
+ resourceInputs["createdAt"] = state ? state.createdAt : undefined;
40
+ resourceInputs["createdBy"] = state ? state.createdBy : undefined;
41
+ resourceInputs["deploymentRoles"] = state ? state.deploymentRoles : undefined;
42
+ resourceInputs["description"] = state ? state.description : undefined;
43
+ resourceInputs["isIdpManaged"] = state ? state.isIdpManaged : undefined;
44
+ resourceInputs["memberIds"] = state ? state.memberIds : undefined;
45
+ resourceInputs["name"] = state ? state.name : undefined;
46
+ resourceInputs["organizationRole"] = state ? state.organizationRole : undefined;
47
+ resourceInputs["rolesCount"] = state ? state.rolesCount : undefined;
48
+ resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
49
+ resourceInputs["updatedBy"] = state ? state.updatedBy : undefined;
50
+ resourceInputs["workspaceRoles"] = state ? state.workspaceRoles : undefined;
51
+ }
52
+ else {
53
+ const args = argsOrState;
54
+ if ((!args || args.organizationRole === undefined) && !opts.urn) {
55
+ throw new Error("Missing required property 'organizationRole'");
56
+ }
57
+ resourceInputs["deploymentRoles"] = args ? args.deploymentRoles : undefined;
58
+ resourceInputs["description"] = args ? args.description : undefined;
59
+ resourceInputs["memberIds"] = args ? args.memberIds : undefined;
60
+ resourceInputs["name"] = args ? args.name : undefined;
61
+ resourceInputs["organizationRole"] = args ? args.organizationRole : undefined;
62
+ resourceInputs["workspaceRoles"] = args ? args.workspaceRoles : undefined;
63
+ resourceInputs["createdAt"] = undefined /*out*/;
64
+ resourceInputs["createdBy"] = undefined /*out*/;
65
+ resourceInputs["isIdpManaged"] = undefined /*out*/;
66
+ resourceInputs["rolesCount"] = undefined /*out*/;
67
+ resourceInputs["updatedAt"] = undefined /*out*/;
68
+ resourceInputs["updatedBy"] = undefined /*out*/;
69
+ }
70
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
71
+ super(Team.__pulumiType, name, resourceInputs, opts);
72
+ }
73
+ }
74
+ exports.Team = Team;
75
+ /** @internal */
76
+ Team.__pulumiType = 'astronomer:index/team:Team';
77
+ //# sourceMappingURL=team.js.map
package/team.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"team.js","sourceRoot":"","sources":["../team.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;IA2DD,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoC,CAAC;YACnD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,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}
package/types/input.d.ts CHANGED
@@ -1,10 +1,68 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "../types/input";
3
+ export interface ApiTokenCreatedBy {
4
+ apiTokenName?: pulumi.Input<string>;
5
+ avatarUrl?: pulumi.Input<string>;
6
+ fullName?: pulumi.Input<string>;
7
+ id?: pulumi.Input<string>;
8
+ subjectType?: pulumi.Input<string>;
9
+ username?: pulumi.Input<string>;
10
+ }
11
+ export interface ApiTokenRole {
12
+ /**
13
+ * The ID of the entity to assign the role to
14
+ */
15
+ entityId: pulumi.Input<string>;
16
+ /**
17
+ * The type of entity to assign the role to
18
+ */
19
+ entityType: pulumi.Input<string>;
20
+ /**
21
+ * The role to assign to the entity
22
+ */
23
+ role: pulumi.Input<string>;
24
+ }
25
+ export interface ApiTokenUpdatedBy {
26
+ apiTokenName?: pulumi.Input<string>;
27
+ avatarUrl?: pulumi.Input<string>;
28
+ fullName?: pulumi.Input<string>;
29
+ id?: pulumi.Input<string>;
30
+ subjectType?: pulumi.Input<string>;
31
+ username?: pulumi.Input<string>;
32
+ }
33
+ export interface ClusterHealthStatus {
34
+ /**
35
+ * Cluster health status details
36
+ */
37
+ details?: pulumi.Input<pulumi.Input<inputs.ClusterHealthStatusDetail>[]>;
38
+ /**
39
+ * Cluster health status value
40
+ */
41
+ value?: pulumi.Input<string>;
42
+ }
43
+ export interface ClusterHealthStatusDetail {
44
+ /**
45
+ * Cluster health status detail code
46
+ */
47
+ code?: pulumi.Input<string>;
48
+ /**
49
+ * Cluster health status detail description
50
+ */
51
+ description?: pulumi.Input<string>;
52
+ /**
53
+ * Cluster health status detail severity
54
+ */
55
+ severity?: pulumi.Input<string>;
56
+ }
3
57
  export interface ClusterMetadata {
4
58
  /**
5
59
  * Cluster external IPs
6
60
  */
7
61
  externalIps?: pulumi.Input<pulumi.Input<string>[]>;
62
+ /**
63
+ * Cluster kube DNS IP
64
+ */
65
+ kubeDnsIp?: pulumi.Input<string>;
8
66
  /**
9
67
  * Cluster OIDC issuer URL
10
68
  */
@@ -174,6 +232,24 @@ export interface DeploymentWorkerQueue {
174
232
  */
175
233
  workerConcurrency: pulumi.Input<number>;
176
234
  }
235
+ export interface TeamCreatedBy {
236
+ apiTokenName?: pulumi.Input<string>;
237
+ avatarUrl?: pulumi.Input<string>;
238
+ fullName?: pulumi.Input<string>;
239
+ id?: pulumi.Input<string>;
240
+ subjectType?: pulumi.Input<string>;
241
+ username?: pulumi.Input<string>;
242
+ }
243
+ export interface TeamDeploymentRole {
244
+ /**
245
+ * The ID of the deployment to assign the role to
246
+ */
247
+ deploymentId: pulumi.Input<string>;
248
+ /**
249
+ * The role to assign to the deployment
250
+ */
251
+ role: pulumi.Input<string>;
252
+ }
177
253
  export interface TeamRolesDeploymentRole {
178
254
  /**
179
255
  * The ID of the deployment to assign the role to
@@ -194,6 +270,60 @@ export interface TeamRolesWorkspaceRole {
194
270
  */
195
271
  workspaceId: pulumi.Input<string>;
196
272
  }
273
+ export interface TeamUpdatedBy {
274
+ apiTokenName?: pulumi.Input<string>;
275
+ avatarUrl?: pulumi.Input<string>;
276
+ fullName?: pulumi.Input<string>;
277
+ id?: pulumi.Input<string>;
278
+ subjectType?: pulumi.Input<string>;
279
+ username?: pulumi.Input<string>;
280
+ }
281
+ export interface TeamWorkspaceRole {
282
+ /**
283
+ * The role to assign to the workspace
284
+ */
285
+ role: pulumi.Input<string>;
286
+ /**
287
+ * The ID of the workspace to assign the role to
288
+ */
289
+ workspaceId: pulumi.Input<string>;
290
+ }
291
+ export interface UserInviteInvitee {
292
+ apiTokenName?: pulumi.Input<string>;
293
+ avatarUrl?: pulumi.Input<string>;
294
+ fullName?: pulumi.Input<string>;
295
+ id?: pulumi.Input<string>;
296
+ subjectType?: pulumi.Input<string>;
297
+ username?: pulumi.Input<string>;
298
+ }
299
+ export interface UserInviteInviter {
300
+ apiTokenName?: pulumi.Input<string>;
301
+ avatarUrl?: pulumi.Input<string>;
302
+ fullName?: pulumi.Input<string>;
303
+ id?: pulumi.Input<string>;
304
+ subjectType?: pulumi.Input<string>;
305
+ username?: pulumi.Input<string>;
306
+ }
307
+ export interface UserRolesDeploymentRole {
308
+ /**
309
+ * The ID of the deployment to assign the role to
310
+ */
311
+ deploymentId: pulumi.Input<string>;
312
+ /**
313
+ * The role to assign to the deployment
314
+ */
315
+ role: pulumi.Input<string>;
316
+ }
317
+ export interface UserRolesWorkspaceRole {
318
+ /**
319
+ * The role to assign to the workspace
320
+ */
321
+ role: pulumi.Input<string>;
322
+ /**
323
+ * The ID of the workspace to assign the role to
324
+ */
325
+ workspaceId: pulumi.Input<string>;
326
+ }
197
327
  export interface WorkspaceCreatedBy {
198
328
  apiTokenName?: pulumi.Input<string>;
199
329
  avatarUrl?: pulumi.Input<string>;