@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/userRoles.d.ts ADDED
@@ -0,0 +1,89 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * User Roles resource
6
+ */
7
+ export declare class UserRoles extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing UserRoles resource's state with the given name, ID, and optional extra
10
+ * properties used to qualify the lookup.
11
+ *
12
+ * @param name The _unique_ name of the resulting resource.
13
+ * @param id The _unique_ provider ID of the resource to lookup.
14
+ * @param state Any extra arguments used during the lookup.
15
+ * @param opts Optional settings to control the behavior of the CustomResource.
16
+ */
17
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: UserRolesState, opts?: pulumi.CustomResourceOptions): UserRoles;
18
+ /**
19
+ * Returns true if the given object is an instance of UserRoles. This is designed to work even
20
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
21
+ */
22
+ static isInstance(obj: any): obj is UserRoles;
23
+ /**
24
+ * The roles to assign to the deployments
25
+ */
26
+ readonly deploymentRoles: pulumi.Output<outputs.UserRolesDeploymentRole[] | undefined>;
27
+ /**
28
+ * The role to assign to the organization
29
+ */
30
+ readonly organizationRole: pulumi.Output<string>;
31
+ /**
32
+ * The ID of the user to assign the roles to
33
+ */
34
+ readonly userId: pulumi.Output<string>;
35
+ /**
36
+ * The roles to assign to the workspaces
37
+ */
38
+ readonly workspaceRoles: pulumi.Output<outputs.UserRolesWorkspaceRole[] | undefined>;
39
+ /**
40
+ * Create a UserRoles resource with the given unique name, arguments, and options.
41
+ *
42
+ * @param name The _unique_ name of the resource.
43
+ * @param args The arguments to use to populate this resource's properties.
44
+ * @param opts A bag of options that control this resource's behavior.
45
+ */
46
+ constructor(name: string, args: UserRolesArgs, opts?: pulumi.CustomResourceOptions);
47
+ }
48
+ /**
49
+ * Input properties used for looking up and filtering UserRoles resources.
50
+ */
51
+ export interface UserRolesState {
52
+ /**
53
+ * The roles to assign to the deployments
54
+ */
55
+ deploymentRoles?: pulumi.Input<pulumi.Input<inputs.UserRolesDeploymentRole>[]>;
56
+ /**
57
+ * The role to assign to the organization
58
+ */
59
+ organizationRole?: pulumi.Input<string>;
60
+ /**
61
+ * The ID of the user to assign the roles to
62
+ */
63
+ userId?: pulumi.Input<string>;
64
+ /**
65
+ * The roles to assign to the workspaces
66
+ */
67
+ workspaceRoles?: pulumi.Input<pulumi.Input<inputs.UserRolesWorkspaceRole>[]>;
68
+ }
69
+ /**
70
+ * The set of arguments for constructing a UserRoles resource.
71
+ */
72
+ export interface UserRolesArgs {
73
+ /**
74
+ * The roles to assign to the deployments
75
+ */
76
+ deploymentRoles?: pulumi.Input<pulumi.Input<inputs.UserRolesDeploymentRole>[]>;
77
+ /**
78
+ * The role to assign to the organization
79
+ */
80
+ organizationRole: pulumi.Input<string>;
81
+ /**
82
+ * The ID of the user to assign the roles to
83
+ */
84
+ userId: pulumi.Input<string>;
85
+ /**
86
+ * The roles to assign to the workspaces
87
+ */
88
+ workspaceRoles?: pulumi.Input<pulumi.Input<inputs.UserRolesWorkspaceRole>[]>;
89
+ }
package/userRoles.js ADDED
@@ -0,0 +1,64 @@
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.UserRoles = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * User Roles resource
10
+ */
11
+ class UserRoles extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing UserRoles 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 UserRoles(name, state, Object.assign(Object.assign({}, opts), { id: id }));
23
+ }
24
+ /**
25
+ * Returns true if the given object is an instance of UserRoles. 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'] === UserRoles.__pulumiType;
33
+ }
34
+ constructor(name, argsOrState, opts) {
35
+ let resourceInputs = {};
36
+ opts = opts || {};
37
+ if (opts.id) {
38
+ const state = argsOrState;
39
+ resourceInputs["deploymentRoles"] = state ? state.deploymentRoles : undefined;
40
+ resourceInputs["organizationRole"] = state ? state.organizationRole : undefined;
41
+ resourceInputs["userId"] = state ? state.userId : undefined;
42
+ resourceInputs["workspaceRoles"] = state ? state.workspaceRoles : undefined;
43
+ }
44
+ else {
45
+ const args = argsOrState;
46
+ if ((!args || args.organizationRole === undefined) && !opts.urn) {
47
+ throw new Error("Missing required property 'organizationRole'");
48
+ }
49
+ if ((!args || args.userId === undefined) && !opts.urn) {
50
+ throw new Error("Missing required property 'userId'");
51
+ }
52
+ resourceInputs["deploymentRoles"] = args ? args.deploymentRoles : undefined;
53
+ resourceInputs["organizationRole"] = args ? args.organizationRole : undefined;
54
+ resourceInputs["userId"] = args ? args.userId : undefined;
55
+ resourceInputs["workspaceRoles"] = args ? args.workspaceRoles : undefined;
56
+ }
57
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
58
+ super(UserRoles.__pulumiType, name, resourceInputs, opts);
59
+ }
60
+ }
61
+ exports.UserRoles = UserRoles;
62
+ /** @internal */
63
+ UserRoles.__pulumiType = 'astronomer:index/userRoles:UserRoles';
64
+ //# sourceMappingURL=userRoles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userRoles.js","sourceRoot":"","sources":["../userRoles.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,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,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IA2BD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,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