@pulumiverse/buildkite 3.1.6 → 3.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/agent/agentToken.d.ts +0 -2
- package/agent/agentToken.js +6 -8
- package/agent/agentToken.js.map +1 -1
- package/agent/index.js +1 -1
- package/agent/index.js.map +1 -1
- package/cluster/cluster.d.ts +4 -4
- package/cluster/cluster.js +15 -15
- package/cluster/cluster.js.map +1 -1
- package/cluster/clusterAgentToken.d.ts +5 -5
- package/cluster/clusterAgentToken.js +18 -18
- package/cluster/clusterAgentToken.js.map +1 -1
- package/cluster/clusterDefaultQueue.d.ts +15 -8
- package/cluster/clusterDefaultQueue.js +18 -17
- package/cluster/clusterDefaultQueue.js.map +1 -1
- package/cluster/clusterMaintainer.d.ts +159 -0
- package/cluster/clusterMaintainer.js +107 -0
- package/cluster/clusterMaintainer.js.map +1 -0
- package/cluster/clusterQueue.d.ts +64 -4
- package/cluster/clusterQueue.js +44 -16
- package/cluster/clusterQueue.js.map +1 -1
- package/cluster/clusterSecret.d.ts +148 -0
- package/cluster/clusterSecret.js +108 -0
- package/cluster/clusterSecret.js.map +1 -0
- package/cluster/getCluster.d.ts +12 -9
- package/cluster/getCluster.js +11 -10
- package/cluster/getCluster.js.map +1 -1
- package/cluster/getClusters.d.ts +22 -0
- package/cluster/getClusters.js +26 -0
- package/cluster/getClusters.js.map +1 -0
- package/cluster/index.d.ts +9 -0
- package/cluster/index.js +15 -2
- package/cluster/index.js.map +1 -1
- package/config/index.js +1 -1
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +7 -6
- package/config/vars.js +7 -1
- package/config/vars.js.map +1 -1
- package/getMeta.d.ts +21 -19
- package/getMeta.js +23 -20
- package/getMeta.js.map +1 -1
- package/index.d.ts +1 -3
- package/index.js +19 -5
- package/index.js.map +1 -1
- package/organization/banner.d.ts +2 -4
- package/organization/banner.js +8 -10
- package/organization/banner.js.map +1 -1
- package/organization/getMember.d.ts +94 -0
- package/organization/getMember.js +74 -0
- package/organization/getMember.js.map +1 -0
- package/organization/getMembers.d.ts +40 -0
- package/organization/getMembers.js +44 -0
- package/organization/getMembers.js.map +1 -0
- package/organization/getOrganization.d.ts +1 -1
- package/organization/getOrganization.js +3 -2
- package/organization/getOrganization.js.map +1 -1
- package/organization/getPortal.d.ts +95 -0
- package/organization/getPortal.js +50 -0
- package/organization/getPortal.js.map +1 -0
- package/organization/getPortals.d.ts +40 -0
- package/organization/getPortals.js +44 -0
- package/organization/getPortals.js.map +1 -0
- package/organization/getRegistry.d.ts +78 -0
- package/organization/getRegistry.js +34 -0
- package/organization/getRegistry.js.map +1 -0
- package/organization/getRule.d.ts +124 -0
- package/organization/getRule.js +72 -0
- package/organization/getRule.js.map +1 -0
- package/organization/index.d.ts +27 -0
- package/organization/index.js +35 -2
- package/organization/index.js.map +1 -1
- package/organization/organization.d.ts +3 -3
- package/organization/organization.js +10 -10
- package/organization/organization.js.map +1 -1
- package/organization/portal.d.ts +217 -0
- package/organization/portal.js +150 -0
- package/organization/portal.js.map +1 -0
- package/organization/registry.d.ts +161 -0
- package/organization/registry.js +87 -0
- package/organization/registry.js.map +1 -0
- package/organization/rule.d.ts +267 -0
- package/organization/rule.js +212 -0
- package/organization/rule.js.map +1 -0
- package/package.json +2 -1
- package/pipeline/getPipeline.d.ts +11 -7
- package/pipeline/getPipeline.js +7 -8
- package/pipeline/getPipeline.js.map +1 -1
- package/pipeline/getSignedSteps.d.ts +8 -49
- package/pipeline/getSignedSteps.js +13 -50
- package/pipeline/getSignedSteps.js.map +1 -1
- package/pipeline/getTemplate.d.ts +9 -11
- package/pipeline/getTemplate.js +15 -12
- package/pipeline/getTemplate.js.map +1 -1
- package/pipeline/index.d.ts +3 -0
- package/pipeline/index.js +7 -2
- package/pipeline/index.js.map +1 -1
- package/pipeline/pipeline.d.ts +30 -14
- package/pipeline/pipeline.js +54 -48
- package/pipeline/pipeline.js.map +1 -1
- package/pipeline/schedule.d.ts +8 -7
- package/pipeline/schedule.js +31 -30
- package/pipeline/schedule.js.map +1 -1
- package/pipeline/team.d.ts +8 -6
- package/pipeline/team.js +20 -18
- package/pipeline/team.js.map +1 -1
- package/pipeline/template.d.ts +11 -11
- package/pipeline/template.js +23 -23
- package/pipeline/template.js.map +1 -1
- package/pipeline/webhook.d.ts +120 -0
- package/pipeline/webhook.js +111 -0
- package/pipeline/webhook.js.map +1 -0
- package/provider.d.ts +24 -24
- package/provider.js +16 -7
- package/provider.js.map +1 -1
- package/team/getTeam.d.ts +21 -9
- package/team/getTeam.js +11 -10
- package/team/getTeam.js.map +1 -1
- package/team/getTeams.d.ts +22 -0
- package/team/getTeams.js +26 -0
- package/team/getTeams.js.map +1 -0
- package/team/index.d.ts +3 -0
- package/team/index.js +5 -2
- package/team/index.js.map +1 -1
- package/team/member.d.ts +4 -5
- package/team/member.js +16 -17
- package/team/member.js.map +1 -1
- package/team/team.d.ts +54 -7
- package/team/team.js +32 -25
- package/team/team.js.map +1 -1
- package/testsuite/getTestSuite.d.ts +90 -0
- package/testsuite/getTestSuite.js +66 -0
- package/testsuite/getTestSuite.js.map +1 -0
- package/testsuite/index.d.ts +3 -0
- package/testsuite/index.js +5 -2
- package/testsuite/index.js.map +1 -1
- package/testsuite/team.d.ts +4 -5
- package/testsuite/team.js +16 -17
- package/testsuite/team.js.map +1 -1
- package/testsuite/testSuite.d.ts +50 -2
- package/testsuite/testSuite.js +53 -15
- package/testsuite/testSuite.js.map +1 -1
- package/types/index.js +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +81 -5
- package/types/input.js +1 -1
- package/types/input.js.map +1 -1
- package/types/output.d.ts +323 -5
- package/types/output.js +1 -1
- package/types/output.js.map +1 -1
- package/utilities.d.ts +0 -4
- package/utilities.js +20 -30
- package/utilities.js.map +1 -1
- package/package.json.bak +0 -28
package/team/member.d.ts
CHANGED
|
@@ -4,29 +4,28 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
*
|
|
5
5
|
* ## Example Usage
|
|
6
6
|
*
|
|
7
|
-
* <!--Start PulumiCodeChooser -->
|
|
8
7
|
* ```typescript
|
|
9
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
9
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
11
10
|
*
|
|
12
11
|
* const everyone = new buildkite.team.Team("everyone", {
|
|
12
|
+
* name: "Everyone",
|
|
13
13
|
* privacy: "VISIBLE",
|
|
14
14
|
* defaultTeam: false,
|
|
15
15
|
* defaultMemberRole: "MEMBER",
|
|
16
16
|
* });
|
|
17
|
-
* const aSmith = new buildkite.team.Member("
|
|
17
|
+
* const aSmith = new buildkite.team.Member("a_smith", {
|
|
18
18
|
* teamId: everyone.id,
|
|
19
19
|
* userId: "VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==",
|
|
20
20
|
* role: "MEMBER",
|
|
21
21
|
* });
|
|
22
22
|
* ```
|
|
23
|
-
* <!--End PulumiCodeChooser -->
|
|
24
23
|
*
|
|
25
24
|
* ## Import
|
|
26
25
|
*
|
|
27
|
-
*
|
|
26
|
+
* Using `pulumi import`, import resources using the `id`. For example:
|
|
28
27
|
*
|
|
29
|
-
*
|
|
28
|
+
* import a team member resource using the GraphQL ID
|
|
30
29
|
*
|
|
31
30
|
* you can use this query to find the ID:
|
|
32
31
|
*
|
package/team/member.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.Member = void 0;
|
|
@@ -10,29 +10,28 @@ const utilities = require("../utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
13
|
-
* <!--Start PulumiCodeChooser -->
|
|
14
13
|
* ```typescript
|
|
15
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
15
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
17
16
|
*
|
|
18
17
|
* const everyone = new buildkite.team.Team("everyone", {
|
|
18
|
+
* name: "Everyone",
|
|
19
19
|
* privacy: "VISIBLE",
|
|
20
20
|
* defaultTeam: false,
|
|
21
21
|
* defaultMemberRole: "MEMBER",
|
|
22
22
|
* });
|
|
23
|
-
* const aSmith = new buildkite.team.Member("
|
|
23
|
+
* const aSmith = new buildkite.team.Member("a_smith", {
|
|
24
24
|
* teamId: everyone.id,
|
|
25
25
|
* userId: "VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==",
|
|
26
26
|
* role: "MEMBER",
|
|
27
27
|
* });
|
|
28
28
|
* ```
|
|
29
|
-
* <!--End PulumiCodeChooser -->
|
|
30
29
|
*
|
|
31
30
|
* ## Import
|
|
32
31
|
*
|
|
33
|
-
*
|
|
32
|
+
* Using `pulumi import`, import resources using the `id`. For example:
|
|
34
33
|
*
|
|
35
|
-
*
|
|
34
|
+
* import a team member resource using the GraphQL ID
|
|
36
35
|
*
|
|
37
36
|
* you can use this query to find the ID:
|
|
38
37
|
*
|
|
@@ -85,7 +84,7 @@ class Member extends pulumi.CustomResource {
|
|
|
85
84
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
86
85
|
*/
|
|
87
86
|
static get(name, id, state, opts) {
|
|
88
|
-
return new Member(name, state,
|
|
87
|
+
return new Member(name, state, { ...opts, id: id });
|
|
89
88
|
}
|
|
90
89
|
/**
|
|
91
90
|
* Returns true if the given object is an instance of Member. This is designed to work even
|
|
@@ -102,25 +101,25 @@ class Member extends pulumi.CustomResource {
|
|
|
102
101
|
opts = opts || {};
|
|
103
102
|
if (opts.id) {
|
|
104
103
|
const state = argsOrState;
|
|
105
|
-
resourceInputs["role"] = state
|
|
106
|
-
resourceInputs["teamId"] = state
|
|
107
|
-
resourceInputs["userId"] = state
|
|
108
|
-
resourceInputs["uuid"] = state
|
|
104
|
+
resourceInputs["role"] = state?.role;
|
|
105
|
+
resourceInputs["teamId"] = state?.teamId;
|
|
106
|
+
resourceInputs["userId"] = state?.userId;
|
|
107
|
+
resourceInputs["uuid"] = state?.uuid;
|
|
109
108
|
}
|
|
110
109
|
else {
|
|
111
110
|
const args = argsOrState;
|
|
112
|
-
if (
|
|
111
|
+
if (args?.role === undefined && !opts.urn) {
|
|
113
112
|
throw new Error("Missing required property 'role'");
|
|
114
113
|
}
|
|
115
|
-
if (
|
|
114
|
+
if (args?.teamId === undefined && !opts.urn) {
|
|
116
115
|
throw new Error("Missing required property 'teamId'");
|
|
117
116
|
}
|
|
118
|
-
if (
|
|
117
|
+
if (args?.userId === undefined && !opts.urn) {
|
|
119
118
|
throw new Error("Missing required property 'userId'");
|
|
120
119
|
}
|
|
121
|
-
resourceInputs["role"] = args
|
|
122
|
-
resourceInputs["teamId"] = args
|
|
123
|
-
resourceInputs["userId"] = args
|
|
120
|
+
resourceInputs["role"] = args?.role;
|
|
121
|
+
resourceInputs["teamId"] = args?.teamId;
|
|
122
|
+
resourceInputs["userId"] = args?.userId;
|
|
124
123
|
resourceInputs["uuid"] = undefined /*out*/;
|
|
125
124
|
}
|
|
126
125
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/team/member.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"member.js","sourceRoot":"","sources":["../../team/member.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"member.js","sourceRoot":"","sources":["../../team/member.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,MAAa,M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YACD,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AAhFL,wBAiFC;AAnEG,gBAAgB;AACO,mBAAY,GAAG,8BAA8B,CAAC"}
|
package/team/team.d.ts
CHANGED
|
@@ -4,24 +4,23 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
*
|
|
5
5
|
* ## Example Usage
|
|
6
6
|
*
|
|
7
|
-
* <!--Start PulumiCodeChooser -->
|
|
8
7
|
* ```typescript
|
|
9
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
9
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
11
10
|
*
|
|
12
11
|
* const everyone = new buildkite.team.Team("everyone", {
|
|
13
|
-
*
|
|
14
|
-
* defaultTeam: false,
|
|
12
|
+
* name: "Everyone",
|
|
15
13
|
* privacy: "VISIBLE",
|
|
14
|
+
* defaultTeam: false,
|
|
15
|
+
* defaultMemberRole: "MEMBER",
|
|
16
16
|
* });
|
|
17
17
|
* ```
|
|
18
|
-
* <!--End PulumiCodeChooser -->
|
|
19
18
|
*
|
|
20
19
|
* ## Import
|
|
21
20
|
*
|
|
22
|
-
* import
|
|
21
|
+
* Using `pulumi import`, import resources using the `id`. For example:
|
|
23
22
|
*
|
|
24
|
-
*
|
|
23
|
+
* import a team resource using the GraphQL ID
|
|
25
24
|
*
|
|
26
25
|
* you can use this query to find the ID:
|
|
27
26
|
*
|
|
@@ -80,11 +79,27 @@ export declare class Team extends pulumi.CustomResource {
|
|
|
80
79
|
/**
|
|
81
80
|
* A description for the team. This is displayed in the Buildkite UI.
|
|
82
81
|
*/
|
|
83
|
-
readonly description: pulumi.Output<string
|
|
82
|
+
readonly description: pulumi.Output<string>;
|
|
84
83
|
/**
|
|
85
84
|
* Whether members of the team can create Pipelines.
|
|
86
85
|
*/
|
|
87
86
|
readonly membersCanCreatePipelines: pulumi.Output<boolean>;
|
|
87
|
+
/**
|
|
88
|
+
* Whether members of the team can create registries.
|
|
89
|
+
*/
|
|
90
|
+
readonly membersCanCreateRegistries: pulumi.Output<boolean>;
|
|
91
|
+
/**
|
|
92
|
+
* Whether members of the team can create test suites.
|
|
93
|
+
*/
|
|
94
|
+
readonly membersCanCreateSuites: pulumi.Output<boolean>;
|
|
95
|
+
/**
|
|
96
|
+
* Whether members of the team can destroy packages.
|
|
97
|
+
*/
|
|
98
|
+
readonly membersCanDestroyPackages: pulumi.Output<boolean>;
|
|
99
|
+
/**
|
|
100
|
+
* Whether members of the team can destroy registries.
|
|
101
|
+
*/
|
|
102
|
+
readonly membersCanDestroyRegistries: pulumi.Output<boolean>;
|
|
88
103
|
/**
|
|
89
104
|
* The name of the team.
|
|
90
105
|
*/
|
|
@@ -130,6 +145,22 @@ export interface TeamState {
|
|
|
130
145
|
* Whether members of the team can create Pipelines.
|
|
131
146
|
*/
|
|
132
147
|
membersCanCreatePipelines?: pulumi.Input<boolean>;
|
|
148
|
+
/**
|
|
149
|
+
* Whether members of the team can create registries.
|
|
150
|
+
*/
|
|
151
|
+
membersCanCreateRegistries?: pulumi.Input<boolean>;
|
|
152
|
+
/**
|
|
153
|
+
* Whether members of the team can create test suites.
|
|
154
|
+
*/
|
|
155
|
+
membersCanCreateSuites?: pulumi.Input<boolean>;
|
|
156
|
+
/**
|
|
157
|
+
* Whether members of the team can destroy packages.
|
|
158
|
+
*/
|
|
159
|
+
membersCanDestroyPackages?: pulumi.Input<boolean>;
|
|
160
|
+
/**
|
|
161
|
+
* Whether members of the team can destroy registries.
|
|
162
|
+
*/
|
|
163
|
+
membersCanDestroyRegistries?: pulumi.Input<boolean>;
|
|
133
164
|
/**
|
|
134
165
|
* The name of the team.
|
|
135
166
|
*/
|
|
@@ -167,6 +198,22 @@ export interface TeamArgs {
|
|
|
167
198
|
* Whether members of the team can create Pipelines.
|
|
168
199
|
*/
|
|
169
200
|
membersCanCreatePipelines?: pulumi.Input<boolean>;
|
|
201
|
+
/**
|
|
202
|
+
* Whether members of the team can create registries.
|
|
203
|
+
*/
|
|
204
|
+
membersCanCreateRegistries?: pulumi.Input<boolean>;
|
|
205
|
+
/**
|
|
206
|
+
* Whether members of the team can create test suites.
|
|
207
|
+
*/
|
|
208
|
+
membersCanCreateSuites?: pulumi.Input<boolean>;
|
|
209
|
+
/**
|
|
210
|
+
* Whether members of the team can destroy packages.
|
|
211
|
+
*/
|
|
212
|
+
membersCanDestroyPackages?: pulumi.Input<boolean>;
|
|
213
|
+
/**
|
|
214
|
+
* Whether members of the team can destroy registries.
|
|
215
|
+
*/
|
|
216
|
+
membersCanDestroyRegistries?: pulumi.Input<boolean>;
|
|
170
217
|
/**
|
|
171
218
|
* The name of the team.
|
|
172
219
|
*/
|
package/team/team.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.Team = void 0;
|
|
@@ -10,24 +10,23 @@ const utilities = require("../utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
13
|
-
* <!--Start PulumiCodeChooser -->
|
|
14
13
|
* ```typescript
|
|
15
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
15
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
17
16
|
*
|
|
18
17
|
* const everyone = new buildkite.team.Team("everyone", {
|
|
19
|
-
*
|
|
20
|
-
* defaultTeam: false,
|
|
18
|
+
* name: "Everyone",
|
|
21
19
|
* privacy: "VISIBLE",
|
|
20
|
+
* defaultTeam: false,
|
|
21
|
+
* defaultMemberRole: "MEMBER",
|
|
22
22
|
* });
|
|
23
23
|
* ```
|
|
24
|
-
* <!--End PulumiCodeChooser -->
|
|
25
24
|
*
|
|
26
25
|
* ## Import
|
|
27
26
|
*
|
|
28
|
-
* import
|
|
27
|
+
* Using `pulumi import`, import resources using the `id`. For example:
|
|
29
28
|
*
|
|
30
|
-
*
|
|
29
|
+
* import a team resource using the GraphQL ID
|
|
31
30
|
*
|
|
32
31
|
* you can use this query to find the ID:
|
|
33
32
|
*
|
|
@@ -70,7 +69,7 @@ class Team extends pulumi.CustomResource {
|
|
|
70
69
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
71
70
|
*/
|
|
72
71
|
static get(name, id, state, opts) {
|
|
73
|
-
return new Team(name, state,
|
|
72
|
+
return new Team(name, state, { ...opts, id: id });
|
|
74
73
|
}
|
|
75
74
|
/**
|
|
76
75
|
* Returns true if the given object is an instance of Team. This is designed to work even
|
|
@@ -87,32 +86,40 @@ class Team extends pulumi.CustomResource {
|
|
|
87
86
|
opts = opts || {};
|
|
88
87
|
if (opts.id) {
|
|
89
88
|
const state = argsOrState;
|
|
90
|
-
resourceInputs["defaultMemberRole"] = state
|
|
91
|
-
resourceInputs["defaultTeam"] = state
|
|
92
|
-
resourceInputs["description"] = state
|
|
93
|
-
resourceInputs["membersCanCreatePipelines"] = state
|
|
94
|
-
resourceInputs["
|
|
95
|
-
resourceInputs["
|
|
96
|
-
resourceInputs["
|
|
97
|
-
resourceInputs["
|
|
89
|
+
resourceInputs["defaultMemberRole"] = state?.defaultMemberRole;
|
|
90
|
+
resourceInputs["defaultTeam"] = state?.defaultTeam;
|
|
91
|
+
resourceInputs["description"] = state?.description;
|
|
92
|
+
resourceInputs["membersCanCreatePipelines"] = state?.membersCanCreatePipelines;
|
|
93
|
+
resourceInputs["membersCanCreateRegistries"] = state?.membersCanCreateRegistries;
|
|
94
|
+
resourceInputs["membersCanCreateSuites"] = state?.membersCanCreateSuites;
|
|
95
|
+
resourceInputs["membersCanDestroyPackages"] = state?.membersCanDestroyPackages;
|
|
96
|
+
resourceInputs["membersCanDestroyRegistries"] = state?.membersCanDestroyRegistries;
|
|
97
|
+
resourceInputs["name"] = state?.name;
|
|
98
|
+
resourceInputs["privacy"] = state?.privacy;
|
|
99
|
+
resourceInputs["slug"] = state?.slug;
|
|
100
|
+
resourceInputs["uuid"] = state?.uuid;
|
|
98
101
|
}
|
|
99
102
|
else {
|
|
100
103
|
const args = argsOrState;
|
|
101
|
-
if (
|
|
104
|
+
if (args?.defaultMemberRole === undefined && !opts.urn) {
|
|
102
105
|
throw new Error("Missing required property 'defaultMemberRole'");
|
|
103
106
|
}
|
|
104
|
-
if (
|
|
107
|
+
if (args?.defaultTeam === undefined && !opts.urn) {
|
|
105
108
|
throw new Error("Missing required property 'defaultTeam'");
|
|
106
109
|
}
|
|
107
|
-
if (
|
|
110
|
+
if (args?.privacy === undefined && !opts.urn) {
|
|
108
111
|
throw new Error("Missing required property 'privacy'");
|
|
109
112
|
}
|
|
110
|
-
resourceInputs["defaultMemberRole"] = args
|
|
111
|
-
resourceInputs["defaultTeam"] = args
|
|
112
|
-
resourceInputs["description"] = args
|
|
113
|
-
resourceInputs["membersCanCreatePipelines"] = args
|
|
114
|
-
resourceInputs["
|
|
115
|
-
resourceInputs["
|
|
113
|
+
resourceInputs["defaultMemberRole"] = args?.defaultMemberRole;
|
|
114
|
+
resourceInputs["defaultTeam"] = args?.defaultTeam;
|
|
115
|
+
resourceInputs["description"] = args?.description;
|
|
116
|
+
resourceInputs["membersCanCreatePipelines"] = args?.membersCanCreatePipelines;
|
|
117
|
+
resourceInputs["membersCanCreateRegistries"] = args?.membersCanCreateRegistries;
|
|
118
|
+
resourceInputs["membersCanCreateSuites"] = args?.membersCanCreateSuites;
|
|
119
|
+
resourceInputs["membersCanDestroyPackages"] = args?.membersCanDestroyPackages;
|
|
120
|
+
resourceInputs["membersCanDestroyRegistries"] = args?.membersCanDestroyRegistries;
|
|
121
|
+
resourceInputs["name"] = args?.name;
|
|
122
|
+
resourceInputs["privacy"] = args?.privacy;
|
|
116
123
|
resourceInputs["slug"] = undefined /*out*/;
|
|
117
124
|
resourceInputs["uuid"] = undefined /*out*/;
|
|
118
125
|
}
|
package/team/team.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team.js","sourceRoot":"","sources":["../../team/team.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"team.js","sourceRoot":"","sources":["../../team/team.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;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,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,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;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G,gBAAgB;AACO,iBAAY,GAAG,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* A test suite is a collection of tests. A run is to a suite what a build is to a Pipeline.Use this datasource to read attributes for a [Test Suites](https://buildkite.com/docs/test-analytics) on Buildkite.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
10
|
+
*
|
|
11
|
+
* const application = buildkite.TestSuite.getTestSuite({
|
|
12
|
+
* slug: "application",
|
|
13
|
+
* });
|
|
14
|
+
* const team = buildkite.Team.getTeam({
|
|
15
|
+
* slug: "Everyone",
|
|
16
|
+
* });
|
|
17
|
+
* const everyone = new buildkite.testsuite.Team("everyone", {
|
|
18
|
+
* teamId: team.then(team => team.id),
|
|
19
|
+
* suiteId: application.then(application => application.id),
|
|
20
|
+
* accessLevel: "MANAGE_AND_READ",
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare function getTestSuite(args: GetTestSuiteArgs, opts?: pulumi.InvokeOptions): Promise<GetTestSuiteResult>;
|
|
25
|
+
/**
|
|
26
|
+
* A collection of arguments for invoking getTestSuite.
|
|
27
|
+
*/
|
|
28
|
+
export interface GetTestSuiteArgs {
|
|
29
|
+
/**
|
|
30
|
+
* The generated slug of the test suite.
|
|
31
|
+
*/
|
|
32
|
+
slug: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A collection of values returned by getTestSuite.
|
|
36
|
+
*/
|
|
37
|
+
export interface GetTestSuiteResult {
|
|
38
|
+
/**
|
|
39
|
+
* The default branch for the repository this test suite is for.
|
|
40
|
+
*/
|
|
41
|
+
readonly defaultBranch: string;
|
|
42
|
+
/**
|
|
43
|
+
* The GraphQL ID of the test suite.
|
|
44
|
+
*/
|
|
45
|
+
readonly id: string;
|
|
46
|
+
/**
|
|
47
|
+
* The name to give the test suite.
|
|
48
|
+
*/
|
|
49
|
+
readonly name: string;
|
|
50
|
+
/**
|
|
51
|
+
* The generated slug of the test suite.
|
|
52
|
+
*/
|
|
53
|
+
readonly slug: string;
|
|
54
|
+
/**
|
|
55
|
+
* The UUID of the test suite.
|
|
56
|
+
*/
|
|
57
|
+
readonly uuid: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* A test suite is a collection of tests. A run is to a suite what a build is to a Pipeline.Use this datasource to read attributes for a [Test Suites](https://buildkite.com/docs/test-analytics) on Buildkite.
|
|
61
|
+
*
|
|
62
|
+
* ## Example Usage
|
|
63
|
+
*
|
|
64
|
+
* ```typescript
|
|
65
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
66
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
67
|
+
*
|
|
68
|
+
* const application = buildkite.TestSuite.getTestSuite({
|
|
69
|
+
* slug: "application",
|
|
70
|
+
* });
|
|
71
|
+
* const team = buildkite.Team.getTeam({
|
|
72
|
+
* slug: "Everyone",
|
|
73
|
+
* });
|
|
74
|
+
* const everyone = new buildkite.testsuite.Team("everyone", {
|
|
75
|
+
* teamId: team.then(team => team.id),
|
|
76
|
+
* suiteId: application.then(application => application.id),
|
|
77
|
+
* accessLevel: "MANAGE_AND_READ",
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
export declare function getTestSuiteOutput(args: GetTestSuiteOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTestSuiteResult>;
|
|
82
|
+
/**
|
|
83
|
+
* A collection of arguments for invoking getTestSuite.
|
|
84
|
+
*/
|
|
85
|
+
export interface GetTestSuiteOutputArgs {
|
|
86
|
+
/**
|
|
87
|
+
* The generated slug of the test suite.
|
|
88
|
+
*/
|
|
89
|
+
slug: pulumi.Input<string>;
|
|
90
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.getTestSuiteOutput = exports.getTestSuite = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* A test suite is a collection of tests. A run is to a suite what a build is to a Pipeline.Use this datasource to read attributes for a [Test Suites](https://buildkite.com/docs/test-analytics) on Buildkite.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
16
|
+
*
|
|
17
|
+
* const application = buildkite.TestSuite.getTestSuite({
|
|
18
|
+
* slug: "application",
|
|
19
|
+
* });
|
|
20
|
+
* const team = buildkite.Team.getTeam({
|
|
21
|
+
* slug: "Everyone",
|
|
22
|
+
* });
|
|
23
|
+
* const everyone = new buildkite.testsuite.Team("everyone", {
|
|
24
|
+
* teamId: team.then(team => team.id),
|
|
25
|
+
* suiteId: application.then(application => application.id),
|
|
26
|
+
* accessLevel: "MANAGE_AND_READ",
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
function getTestSuite(args, opts) {
|
|
31
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
32
|
+
return pulumi.runtime.invoke("buildkite:TestSuite/getTestSuite:getTestSuite", {
|
|
33
|
+
"slug": args.slug,
|
|
34
|
+
}, opts);
|
|
35
|
+
}
|
|
36
|
+
exports.getTestSuite = getTestSuite;
|
|
37
|
+
/**
|
|
38
|
+
* A test suite is a collection of tests. A run is to a suite what a build is to a Pipeline.Use this datasource to read attributes for a [Test Suites](https://buildkite.com/docs/test-analytics) on Buildkite.
|
|
39
|
+
*
|
|
40
|
+
* ## Example Usage
|
|
41
|
+
*
|
|
42
|
+
* ```typescript
|
|
43
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
44
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
45
|
+
*
|
|
46
|
+
* const application = buildkite.TestSuite.getTestSuite({
|
|
47
|
+
* slug: "application",
|
|
48
|
+
* });
|
|
49
|
+
* const team = buildkite.Team.getTeam({
|
|
50
|
+
* slug: "Everyone",
|
|
51
|
+
* });
|
|
52
|
+
* const everyone = new buildkite.testsuite.Team("everyone", {
|
|
53
|
+
* teamId: team.then(team => team.id),
|
|
54
|
+
* suiteId: application.then(application => application.id),
|
|
55
|
+
* accessLevel: "MANAGE_AND_READ",
|
|
56
|
+
* });
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
function getTestSuiteOutput(args, opts) {
|
|
60
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
61
|
+
return pulumi.runtime.invokeOutput("buildkite:TestSuite/getTestSuite:getTestSuite", {
|
|
62
|
+
"slug": args.slug,
|
|
63
|
+
}, opts);
|
|
64
|
+
}
|
|
65
|
+
exports.getTestSuiteOutput = getTestSuiteOutput;
|
|
66
|
+
//# sourceMappingURL=getTestSuite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTestSuite.js","sourceRoot":"","sources":["../../testsuite/getTestSuite.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,+CAA+C,EAAE;QAC1E,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,oCAKC;AAqCD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAAiC;IAC9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,+CAA+C,EAAE;QAChF,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,gDAKC"}
|
package/testsuite/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export { GetTestSuiteArgs, GetTestSuiteResult, GetTestSuiteOutputArgs } from "./getTestSuite";
|
|
2
|
+
export declare const getTestSuite: typeof import("./getTestSuite").getTestSuite;
|
|
3
|
+
export declare const getTestSuiteOutput: typeof import("./getTestSuite").getTestSuiteOutput;
|
|
1
4
|
export { TeamArgs, TeamState } from "./team";
|
|
2
5
|
export type Team = import("./team").Team;
|
|
3
6
|
export declare const Team: typeof import("./team").Team;
|
package/testsuite/index.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.TestSuite = exports.Team = void 0;
|
|
5
|
+
exports.TestSuite = exports.Team = exports.getTestSuiteOutput = exports.getTestSuite = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
|
+
exports.getTestSuite = null;
|
|
9
|
+
exports.getTestSuiteOutput = null;
|
|
10
|
+
utilities.lazyLoad(exports, ["getTestSuite", "getTestSuiteOutput"], () => require("./getTestSuite"));
|
|
8
11
|
exports.Team = null;
|
|
9
12
|
utilities.lazyLoad(exports, ["Team"], () => require("./team"));
|
|
10
13
|
exports.TestSuite = null;
|
package/testsuite/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../testsuite/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../testsuite/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAI7B,QAAA,YAAY,GAAiD,IAAW,CAAC;AACzE,QAAA,kBAAkB,GAAuD,IAAW,CAAC;AAClG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,cAAc,EAAC,oBAAoB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAIvF,QAAA,IAAI,GAAiC,IAAW,CAAC;AAC9D,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AAIlD,QAAA,SAAS,GAA2C,IAAW,CAAC;AAC7E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;AAGzE,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,+BAA+B;gBAChC,OAAO,IAAI,YAAI,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAClD,KAAK,yCAAyC;gBAC1C,OAAO,IAAI,iBAAS,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACvD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAA;AAC7E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAA"}
|
package/testsuite/team.d.ts
CHANGED
|
@@ -4,30 +4,29 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
*
|
|
5
5
|
* ## Example Usage
|
|
6
6
|
*
|
|
7
|
-
* <!--Start PulumiCodeChooser -->
|
|
8
7
|
* ```typescript
|
|
9
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
9
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
11
10
|
*
|
|
12
11
|
* // create a test suite
|
|
13
12
|
* const main = new buildkite.testsuite.TestSuite("main", {
|
|
13
|
+
* name: "main",
|
|
14
14
|
* defaultBranch: "main",
|
|
15
15
|
* teamOwnerId: "VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==",
|
|
16
16
|
* });
|
|
17
17
|
* // give the "everyone" team manage access to the "main" test suite
|
|
18
|
-
* const mainEveryone = new buildkite.testsuite.Team("
|
|
18
|
+
* const mainEveryone = new buildkite.testsuite.Team("main_everyone", {
|
|
19
19
|
* testSuiteId: main.id,
|
|
20
20
|
* teamId: "VGVhbS0tLWU1YjQyMDQyLTUzN2QtNDZjNi04MjY0LTliZjFkMzkyYjZkNQ==",
|
|
21
21
|
* accessLevel: "MANAGE_AND_READ",
|
|
22
22
|
* });
|
|
23
23
|
* ```
|
|
24
|
-
* <!--End PulumiCodeChooser -->
|
|
25
24
|
*
|
|
26
25
|
* ## Import
|
|
27
26
|
*
|
|
28
|
-
*
|
|
27
|
+
* Using `pulumi import`, import resources using the `id`. For example:
|
|
29
28
|
*
|
|
30
|
-
*
|
|
29
|
+
* import a test suite team resource using the GraphQL ID
|
|
31
30
|
*
|
|
32
31
|
* you can use this query to find the ID:
|
|
33
32
|
*
|