@ryan-pip/pulumi_astronomer 0.0.10 → 0.1.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/README.md +1 -2
- package/cluster.d.ts +104 -87
- package/cluster.js +49 -19
- package/cluster.js.map +1 -1
- package/config/vars.d.ts +6 -2
- package/config/vars.js +7 -1
- package/config/vars.js.map +1 -1
- package/deployment.d.ts +312 -85
- package/deployment.js +63 -18
- package/deployment.js.map +1 -1
- package/getCluster.d.ts +40 -32
- package/getCluster.js +6 -6
- package/getCluster.js.map +1 -1
- package/getClusterOptions.d.ts +66 -0
- package/getClusterOptions.js +56 -0
- package/getClusterOptions.js.map +1 -0
- package/getClusters.d.ts +66 -0
- package/getClusters.js +57 -0
- package/getClusters.js.map +1 -0
- package/getDeployment.d.ts +196 -13
- package/getDeployment.js +24 -2
- package/getDeployment.js.map +1 -1
- package/getDeploymentOptions.d.ts +147 -0
- package/getDeploymentOptions.js +71 -0
- package/getDeploymentOptions.js.map +1 -0
- package/getDeployments.d.ts +75 -0
- package/getDeployments.js +64 -0
- package/getDeployments.js.map +1 -0
- package/getOrganization.d.ts +26 -46
- package/getOrganization.js +8 -15
- package/getOrganization.js.map +1 -1
- package/getTeam.d.ts +103 -0
- package/getTeam.js +47 -0
- package/getTeam.js.map +1 -0
- package/getTeams.d.ts +63 -0
- package/getTeams.js +56 -0
- package/getTeams.js.map +1 -0
- package/getWorkspace.d.ts +29 -12
- package/getWorkspace.js +6 -6
- package/getWorkspace.js.map +1 -1
- package/getWorkspaces.d.ts +78 -0
- package/getWorkspaces.js +69 -0
- package/getWorkspaces.js.map +1 -0
- package/hybridClusterWorkspaceAuthorization.d.ts +82 -0
- package/hybridClusterWorkspaceAuthorization.js +76 -0
- package/hybridClusterWorkspaceAuthorization.js.map +1 -0
- package/index.d.ts +28 -1
- package/index.js +32 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.bak +1 -1
- package/provider.d.ts +13 -5
- package/provider.js +3 -2
- package/provider.js.map +1 -1
- package/teamRoles.d.ts +89 -0
- package/teamRoles.js +64 -0
- package/teamRoles.js.map +1 -0
- package/types/input.d.ts +176 -20
- package/types/output.d.ts +1350 -36
- package/workspace.d.ts +55 -17
- package/workspace.js +21 -3
- package/workspace.js.map +1 -1
package/workspace.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
2
4
|
/**
|
|
3
|
-
*
|
|
5
|
+
* Workspace resource
|
|
4
6
|
*
|
|
5
7
|
* ## Example Usage
|
|
6
8
|
*
|
|
@@ -8,9 +10,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
11
|
* import * as astronomer from "@ryan-pip/pulumi_astronomer";
|
|
10
12
|
*
|
|
11
|
-
* const
|
|
13
|
+
* const example = new astronomer.Workspace("example", {
|
|
14
|
+
* description: "my first workspace",
|
|
15
|
+
* cicdEnforcedDefault: true,
|
|
16
|
+
* });
|
|
17
|
+
* const importedWorkspace = new astronomer.Workspace("importedWorkspace", {
|
|
18
|
+
* description: "an existing workspace",
|
|
12
19
|
* cicdEnforcedDefault: true,
|
|
13
|
-
* description: "Testing Workspace",
|
|
14
20
|
* });
|
|
15
21
|
* ```
|
|
16
22
|
*/
|
|
@@ -31,17 +37,33 @@ export declare class Workspace extends pulumi.CustomResource {
|
|
|
31
37
|
*/
|
|
32
38
|
static isInstance(obj: any): obj is Workspace;
|
|
33
39
|
/**
|
|
34
|
-
* Whether new Deployments enforce CI/CD deploys by default
|
|
40
|
+
* Whether new Deployments enforce CI/CD deploys by default
|
|
41
|
+
*/
|
|
42
|
+
readonly cicdEnforcedDefault: pulumi.Output<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* Workspace creation timestamp
|
|
45
|
+
*/
|
|
46
|
+
readonly createdAt: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Workspace creator
|
|
35
49
|
*/
|
|
36
|
-
readonly
|
|
50
|
+
readonly createdBy: pulumi.Output<outputs.WorkspaceCreatedBy>;
|
|
37
51
|
/**
|
|
38
|
-
*
|
|
52
|
+
* Workspace description
|
|
39
53
|
*/
|
|
40
|
-
readonly description: pulumi.Output<string
|
|
54
|
+
readonly description: pulumi.Output<string>;
|
|
41
55
|
/**
|
|
42
|
-
*
|
|
56
|
+
* Workspace name
|
|
43
57
|
*/
|
|
44
58
|
readonly name: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Workspace last updated timestamp
|
|
61
|
+
*/
|
|
62
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Workspace updater
|
|
65
|
+
*/
|
|
66
|
+
readonly updatedBy: pulumi.Output<outputs.WorkspaceUpdatedBy>;
|
|
45
67
|
/**
|
|
46
68
|
* Create a Workspace resource with the given unique name, arguments, and options.
|
|
47
69
|
*
|
|
@@ -49,39 +71,55 @@ export declare class Workspace extends pulumi.CustomResource {
|
|
|
49
71
|
* @param args The arguments to use to populate this resource's properties.
|
|
50
72
|
* @param opts A bag of options that control this resource's behavior.
|
|
51
73
|
*/
|
|
52
|
-
constructor(name: string, args
|
|
74
|
+
constructor(name: string, args: WorkspaceArgs, opts?: pulumi.CustomResourceOptions);
|
|
53
75
|
}
|
|
54
76
|
/**
|
|
55
77
|
* Input properties used for looking up and filtering Workspace resources.
|
|
56
78
|
*/
|
|
57
79
|
export interface WorkspaceState {
|
|
58
80
|
/**
|
|
59
|
-
* Whether new Deployments enforce CI/CD deploys by default
|
|
81
|
+
* Whether new Deployments enforce CI/CD deploys by default
|
|
60
82
|
*/
|
|
61
83
|
cicdEnforcedDefault?: pulumi.Input<boolean>;
|
|
62
84
|
/**
|
|
63
|
-
*
|
|
85
|
+
* Workspace creation timestamp
|
|
86
|
+
*/
|
|
87
|
+
createdAt?: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Workspace creator
|
|
90
|
+
*/
|
|
91
|
+
createdBy?: pulumi.Input<inputs.WorkspaceCreatedBy>;
|
|
92
|
+
/**
|
|
93
|
+
* Workspace description
|
|
64
94
|
*/
|
|
65
95
|
description?: pulumi.Input<string>;
|
|
66
96
|
/**
|
|
67
|
-
*
|
|
97
|
+
* Workspace name
|
|
68
98
|
*/
|
|
69
99
|
name?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* Workspace last updated timestamp
|
|
102
|
+
*/
|
|
103
|
+
updatedAt?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Workspace updater
|
|
106
|
+
*/
|
|
107
|
+
updatedBy?: pulumi.Input<inputs.WorkspaceUpdatedBy>;
|
|
70
108
|
}
|
|
71
109
|
/**
|
|
72
110
|
* The set of arguments for constructing a Workspace resource.
|
|
73
111
|
*/
|
|
74
112
|
export interface WorkspaceArgs {
|
|
75
113
|
/**
|
|
76
|
-
* Whether new Deployments enforce CI/CD deploys by default
|
|
114
|
+
* Whether new Deployments enforce CI/CD deploys by default
|
|
77
115
|
*/
|
|
78
|
-
cicdEnforcedDefault
|
|
116
|
+
cicdEnforcedDefault: pulumi.Input<boolean>;
|
|
79
117
|
/**
|
|
80
|
-
*
|
|
118
|
+
* Workspace description
|
|
81
119
|
*/
|
|
82
|
-
description
|
|
120
|
+
description: pulumi.Input<string>;
|
|
83
121
|
/**
|
|
84
|
-
*
|
|
122
|
+
* Workspace name
|
|
85
123
|
*/
|
|
86
124
|
name?: pulumi.Input<string>;
|
|
87
125
|
}
|
package/workspace.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.Workspace = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Workspace resource
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
@@ -14,9 +14,13 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as astronomer from "@ryan-pip/pulumi_astronomer";
|
|
16
16
|
*
|
|
17
|
-
* const
|
|
17
|
+
* const example = new astronomer.Workspace("example", {
|
|
18
|
+
* description: "my first workspace",
|
|
19
|
+
* cicdEnforcedDefault: true,
|
|
20
|
+
* });
|
|
21
|
+
* const importedWorkspace = new astronomer.Workspace("importedWorkspace", {
|
|
22
|
+
* description: "an existing workspace",
|
|
18
23
|
* cicdEnforcedDefault: true,
|
|
19
|
-
* description: "Testing Workspace",
|
|
20
24
|
* });
|
|
21
25
|
* ```
|
|
22
26
|
*/
|
|
@@ -49,14 +53,28 @@ class Workspace extends pulumi.CustomResource {
|
|
|
49
53
|
if (opts.id) {
|
|
50
54
|
const state = argsOrState;
|
|
51
55
|
resourceInputs["cicdEnforcedDefault"] = state ? state.cicdEnforcedDefault : undefined;
|
|
56
|
+
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
|
|
57
|
+
resourceInputs["createdBy"] = state ? state.createdBy : undefined;
|
|
52
58
|
resourceInputs["description"] = state ? state.description : undefined;
|
|
53
59
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
60
|
+
resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
|
|
61
|
+
resourceInputs["updatedBy"] = state ? state.updatedBy : undefined;
|
|
54
62
|
}
|
|
55
63
|
else {
|
|
56
64
|
const args = argsOrState;
|
|
65
|
+
if ((!args || args.cicdEnforcedDefault === undefined) && !opts.urn) {
|
|
66
|
+
throw new Error("Missing required property 'cicdEnforcedDefault'");
|
|
67
|
+
}
|
|
68
|
+
if ((!args || args.description === undefined) && !opts.urn) {
|
|
69
|
+
throw new Error("Missing required property 'description'");
|
|
70
|
+
}
|
|
57
71
|
resourceInputs["cicdEnforcedDefault"] = args ? args.cicdEnforcedDefault : undefined;
|
|
58
72
|
resourceInputs["description"] = args ? args.description : undefined;
|
|
59
73
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
74
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
75
|
+
resourceInputs["createdBy"] = undefined /*out*/;
|
|
76
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
77
|
+
resourceInputs["updatedBy"] = undefined /*out*/;
|
|
60
78
|
}
|
|
61
79
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
62
80
|
super(Workspace.__pulumiType, name, resourceInputs, opts);
|
package/workspace.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../workspace.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../workspace.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;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;IAuCD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,I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