@pulumiverse/buildkite 2.3.0 → 3.0.1
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 +5 -0
- package/agent/agentToken.d.ts +11 -19
- package/agent/agentToken.js +4 -6
- package/agent/agentToken.js.map +1 -1
- package/cluster/cluster.d.ts +74 -20
- package/cluster/cluster.js +54 -6
- package/cluster/cluster.js.map +1 -1
- package/cluster/clusterAgentToken.d.ts +49 -15
- package/cluster/clusterAgentToken.js +26 -8
- package/cluster/clusterAgentToken.js.map +1 -1
- package/cluster/clusterDefaultQueue.d.ts +130 -0
- package/cluster/clusterDefaultQueue.js +121 -0
- package/cluster/clusterDefaultQueue.js.map +1 -0
- package/cluster/clusterQueue.d.ts +36 -44
- package/cluster/clusterQueue.js +29 -37
- package/cluster/clusterQueue.js.map +1 -1
- package/cluster/getCluster.d.ts +48 -5
- package/cluster/getCluster.js +40 -0
- package/cluster/getCluster.js.map +1 -1
- package/cluster/index.d.ts +3 -0
- package/cluster/index.js +6 -1
- package/cluster/index.js.map +1 -1
- package/config/vars.d.ts +11 -5
- package/config/vars.js +12 -0
- package/config/vars.js.map +1 -1
- package/getMeta.d.ts +49 -2
- package/getMeta.js +51 -1
- package/getMeta.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +5 -2
- package/index.js.map +1 -1
- package/organization/banner.d.ts +104 -0
- package/organization/banner.js +102 -0
- package/organization/banner.js.map +1 -0
- package/organization/getOrganization.d.ts +10 -63
- package/organization/getOrganization.js +6 -47
- package/organization/getOrganization.js.map +1 -1
- package/organization/index.d.ts +7 -4
- package/organization/index.js +11 -6
- package/organization/index.js.map +1 -1
- package/organization/organization.d.ts +94 -0
- package/organization/{settings.js → organization.js} +20 -20
- package/organization/organization.js.map +1 -0
- package/package.json +2 -3
- package/package.json.bak +1 -2
- package/pipeline/getPipeline.d.ts +21 -20
- package/pipeline/getPipeline.js +8 -14
- package/pipeline/getPipeline.js.map +1 -1
- package/pipeline/getSignedSteps.d.ts +139 -0
- package/pipeline/getSignedSteps.js +91 -0
- package/pipeline/getSignedSteps.js.map +1 -0
- package/pipeline/getTemplate.d.ts +116 -0
- package/pipeline/getTemplate.js +79 -0
- package/pipeline/getTemplate.js.map +1 -0
- package/pipeline/index.d.ts +12 -0
- package/pipeline/index.js +17 -1
- package/pipeline/index.js.map +1 -1
- package/pipeline/pipeline.d.ts +117 -181
- package/pipeline/pipeline.js +15 -113
- package/pipeline/pipeline.js.map +1 -1
- package/pipeline/schedule.d.ts +57 -45
- package/pipeline/schedule.js +22 -19
- package/pipeline/schedule.js.map +1 -1
- package/pipeline/team.d.ts +137 -0
- package/pipeline/team.js +121 -0
- package/pipeline/team.js.map +1 -0
- package/pipeline/template.d.ts +155 -0
- package/pipeline/template.js +123 -0
- package/pipeline/template.js.map +1 -0
- package/provider.d.ts +26 -8
- package/provider.js +2 -0
- package/provider.js.map +1 -1
- package/team/getTeam.d.ts +39 -30
- package/team/getTeam.js +16 -16
- package/team/getTeam.js.map +1 -1
- package/team/member.d.ts +31 -33
- package/team/member.js +20 -22
- package/team/member.js.map +1 -1
- package/team/team.d.ts +37 -37
- package/team/team.js +17 -17
- package/testsuite/index.d.ts +6 -0
- package/testsuite/index.js +27 -0
- package/testsuite/index.js.map +1 -0
- package/testsuite/team.d.ts +160 -0
- package/testsuite/team.js +144 -0
- package/testsuite/team.js.map +1 -0
- package/testsuite/testSuite.d.ts +112 -0
- package/testsuite/testSuite.js +83 -0
- package/testsuite/testSuite.js.map +1 -0
- package/types/input.d.ts +37 -22
- package/types/output.d.ts +37 -22
- package/utilities.d.ts +4 -0
- package/utilities.js +33 -1
- package/utilities.js.map +1 -1
- package/organization/settings.d.ts +0 -78
- package/organization/settings.js.map +0 -1
- package/scripts/install-pulumi-plugin.js +0 -26
package/team/getTeam.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Use this data source to look up properties of a team. This can be used to
|
|
6
|
-
* validate that a team exists before setting the team slug on a pipeline.
|
|
7
|
-
*
|
|
8
|
-
* Buildkite documentation: https://buildkite.com/docs/pipelines/permissions
|
|
3
|
+
* Use this data source to retrieve a team by slug or id. You can find out more about teams in the Buildkite
|
|
4
|
+
* [documentation](https://buildkite.com/docs/pipelines/permissions).
|
|
9
5
|
*
|
|
10
6
|
* ## Example Usage
|
|
11
7
|
*
|
|
@@ -13,66 +9,72 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
13
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
14
10
|
* import * as buildkite from "@pulumi/buildkite";
|
|
15
11
|
*
|
|
16
|
-
* const
|
|
17
|
-
*
|
|
12
|
+
* const teamDev = buildkite.Team.getTeam({
|
|
13
|
+
* id: buildkite_team.team_dev.id,
|
|
14
|
+
* });
|
|
15
|
+
* const team = buildkite.Team.getTeam({
|
|
16
|
+
* slug: "Everyone",
|
|
18
17
|
* });
|
|
19
18
|
* ```
|
|
20
19
|
*/
|
|
21
|
-
export declare function getTeam(args
|
|
20
|
+
export declare function getTeam(args?: GetTeamArgs, opts?: pulumi.InvokeOptions): Promise<GetTeamResult>;
|
|
22
21
|
/**
|
|
23
22
|
* A collection of arguments for invoking getTeam.
|
|
24
23
|
*/
|
|
25
24
|
export interface GetTeamArgs {
|
|
26
25
|
/**
|
|
27
|
-
* The
|
|
26
|
+
* The GraphQL ID of the team to find.
|
|
28
27
|
*/
|
|
29
|
-
|
|
28
|
+
id?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The slug of the team to find.
|
|
31
|
+
*/
|
|
32
|
+
slug?: string;
|
|
30
33
|
}
|
|
31
34
|
/**
|
|
32
35
|
* A collection of values returned by getTeam.
|
|
33
36
|
*/
|
|
34
37
|
export interface GetTeamResult {
|
|
35
38
|
/**
|
|
36
|
-
*
|
|
39
|
+
* The default member role of the team.
|
|
37
40
|
*/
|
|
38
41
|
readonly defaultMemberRole: string;
|
|
39
42
|
/**
|
|
40
|
-
* Whether
|
|
43
|
+
* Whether the team is the default team.
|
|
41
44
|
*/
|
|
42
45
|
readonly defaultTeam: boolean;
|
|
43
46
|
/**
|
|
44
|
-
*
|
|
47
|
+
* The description of the team.
|
|
45
48
|
*/
|
|
46
49
|
readonly description: string;
|
|
47
50
|
/**
|
|
48
|
-
* The GraphQL ID of the team
|
|
51
|
+
* The GraphQL ID of the team to find.
|
|
49
52
|
*/
|
|
50
53
|
readonly id: string;
|
|
51
54
|
/**
|
|
52
|
-
* Whether
|
|
55
|
+
* Whether members can create pipelines.
|
|
53
56
|
*/
|
|
54
57
|
readonly membersCanCreatePipelines: boolean;
|
|
55
58
|
/**
|
|
56
|
-
* The name of the team
|
|
59
|
+
* The name of the team.
|
|
57
60
|
*/
|
|
58
61
|
readonly name: string;
|
|
59
62
|
/**
|
|
60
|
-
*
|
|
63
|
+
* The privacy setting of the team.
|
|
61
64
|
*/
|
|
62
65
|
readonly privacy: string;
|
|
66
|
+
/**
|
|
67
|
+
* The slug of the team to find.
|
|
68
|
+
*/
|
|
63
69
|
readonly slug: string;
|
|
64
70
|
/**
|
|
65
|
-
* The UUID of the team
|
|
71
|
+
* The UUID of the team.
|
|
66
72
|
*/
|
|
67
73
|
readonly uuid: string;
|
|
68
74
|
}
|
|
69
75
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* Use this data source to look up properties of a team. This can be used to
|
|
73
|
-
* validate that a team exists before setting the team slug on a pipeline.
|
|
74
|
-
*
|
|
75
|
-
* Buildkite documentation: https://buildkite.com/docs/pipelines/permissions
|
|
76
|
+
* Use this data source to retrieve a team by slug or id. You can find out more about teams in the Buildkite
|
|
77
|
+
* [documentation](https://buildkite.com/docs/pipelines/permissions).
|
|
76
78
|
*
|
|
77
79
|
* ## Example Usage
|
|
78
80
|
*
|
|
@@ -80,18 +82,25 @@ export interface GetTeamResult {
|
|
|
80
82
|
* import * as pulumi from "@pulumi/pulumi";
|
|
81
83
|
* import * as buildkite from "@pulumi/buildkite";
|
|
82
84
|
*
|
|
83
|
-
* const
|
|
84
|
-
*
|
|
85
|
+
* const teamDev = buildkite.Team.getTeam({
|
|
86
|
+
* id: buildkite_team.team_dev.id,
|
|
87
|
+
* });
|
|
88
|
+
* const team = buildkite.Team.getTeam({
|
|
89
|
+
* slug: "Everyone",
|
|
85
90
|
* });
|
|
86
91
|
* ```
|
|
87
92
|
*/
|
|
88
|
-
export declare function getTeamOutput(args
|
|
93
|
+
export declare function getTeamOutput(args?: GetTeamOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTeamResult>;
|
|
89
94
|
/**
|
|
90
95
|
* A collection of arguments for invoking getTeam.
|
|
91
96
|
*/
|
|
92
97
|
export interface GetTeamOutputArgs {
|
|
93
98
|
/**
|
|
94
|
-
* The
|
|
99
|
+
* The GraphQL ID of the team to find.
|
|
100
|
+
*/
|
|
101
|
+
id?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* The slug of the team to find.
|
|
95
104
|
*/
|
|
96
|
-
slug
|
|
105
|
+
slug?: pulumi.Input<string>;
|
|
97
106
|
}
|
package/team/getTeam.js
CHANGED
|
@@ -6,12 +6,8 @@ exports.getTeamOutput = exports.getTeam = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* Use this data source to look up properties of a team. This can be used to
|
|
12
|
-
* validate that a team exists before setting the team slug on a pipeline.
|
|
13
|
-
*
|
|
14
|
-
* Buildkite documentation: https://buildkite.com/docs/pipelines/permissions
|
|
9
|
+
* Use this data source to retrieve a team by slug or id. You can find out more about teams in the Buildkite
|
|
10
|
+
* [documentation](https://buildkite.com/docs/pipelines/permissions).
|
|
15
11
|
*
|
|
16
12
|
* ## Example Usage
|
|
17
13
|
*
|
|
@@ -19,25 +15,26 @@ const utilities = require("../utilities");
|
|
|
19
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
20
16
|
* import * as buildkite from "@pulumi/buildkite";
|
|
21
17
|
*
|
|
22
|
-
* const
|
|
23
|
-
*
|
|
18
|
+
* const teamDev = buildkite.Team.getTeam({
|
|
19
|
+
* id: buildkite_team.team_dev.id,
|
|
20
|
+
* });
|
|
21
|
+
* const team = buildkite.Team.getTeam({
|
|
22
|
+
* slug: "Everyone",
|
|
24
23
|
* });
|
|
25
24
|
* ```
|
|
26
25
|
*/
|
|
27
26
|
function getTeam(args, opts) {
|
|
27
|
+
args = args || {};
|
|
28
28
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
29
29
|
return pulumi.runtime.invoke("buildkite:Team/getTeam:getTeam", {
|
|
30
|
+
"id": args.id,
|
|
30
31
|
"slug": args.slug,
|
|
31
32
|
}, opts);
|
|
32
33
|
}
|
|
33
34
|
exports.getTeam = getTeam;
|
|
34
35
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* Use this data source to look up properties of a team. This can be used to
|
|
38
|
-
* validate that a team exists before setting the team slug on a pipeline.
|
|
39
|
-
*
|
|
40
|
-
* Buildkite documentation: https://buildkite.com/docs/pipelines/permissions
|
|
36
|
+
* Use this data source to retrieve a team by slug or id. You can find out more about teams in the Buildkite
|
|
37
|
+
* [documentation](https://buildkite.com/docs/pipelines/permissions).
|
|
41
38
|
*
|
|
42
39
|
* ## Example Usage
|
|
43
40
|
*
|
|
@@ -45,8 +42,11 @@ exports.getTeam = getTeam;
|
|
|
45
42
|
* import * as pulumi from "@pulumi/pulumi";
|
|
46
43
|
* import * as buildkite from "@pulumi/buildkite";
|
|
47
44
|
*
|
|
48
|
-
* const
|
|
49
|
-
*
|
|
45
|
+
* const teamDev = buildkite.Team.getTeam({
|
|
46
|
+
* id: buildkite_team.team_dev.id,
|
|
47
|
+
* });
|
|
48
|
+
* const team = buildkite.Team.getTeam({
|
|
49
|
+
* slug: "Everyone",
|
|
50
50
|
* });
|
|
51
51
|
* ```
|
|
52
52
|
*/
|
package/team/getTeam.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTeam.js","sourceRoot":"","sources":["../../team/getTeam.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getTeam.js","sourceRoot":"","sources":["../../team/getTeam.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,OAAO,CAAC,IAAkB,EAAE,IAA2B;IACnE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,EAAE;QAC3D,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0BAQC;AAyDD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,sCAEC"}
|
package/team/member.d.ts
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* This resource allows manage team membership for existing organization users.
|
|
6
|
-
*
|
|
7
|
-
* The user must already be part of the organization to which you are managing team membership. This will not invite a new user to the organization.
|
|
8
|
-
*
|
|
9
|
-
* Buildkite Documentation: https://buildkite.com/docs/pipelines/permissions
|
|
10
|
-
*
|
|
11
|
-
* Note: You must first enable Teams on your organization.
|
|
3
|
+
* A team member resource allows for the management of team membership for existing organization users.
|
|
12
4
|
*
|
|
13
5
|
* ## Example Usage
|
|
14
6
|
*
|
|
@@ -16,37 +8,37 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
16
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
17
9
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
18
10
|
*
|
|
19
|
-
* const
|
|
11
|
+
* const everyone = new buildkite.team.Team("everyone", {
|
|
20
12
|
* privacy: "VISIBLE",
|
|
21
|
-
* defaultTeam:
|
|
13
|
+
* defaultTeam: false,
|
|
22
14
|
* defaultMemberRole: "MEMBER",
|
|
23
15
|
* });
|
|
24
16
|
* const aSmith = new buildkite.team.Member("aSmith", {
|
|
17
|
+
* teamId: everyone.id,
|
|
18
|
+
* userId: "VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==",
|
|
25
19
|
* role: "MEMBER",
|
|
26
|
-
* teamId: team.id,
|
|
27
|
-
* userId: "VXNlci0tLWRlOTdmMjBiLWJkZmMtNGNjOC1hOTcwLTY1ODNiZTk2ZGEyYQ==",
|
|
28
20
|
* });
|
|
29
21
|
* ```
|
|
30
22
|
*
|
|
31
23
|
* ## Import
|
|
32
24
|
*
|
|
33
|
-
*
|
|
25
|
+
* import a team member resource using the GraphQL ID
|
|
34
26
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
27
|
+
* #
|
|
28
|
+
*
|
|
29
|
+
* you can use this query to find the ID:
|
|
38
30
|
*
|
|
39
|
-
*
|
|
31
|
+
* query getTeamMemberId {
|
|
40
32
|
*
|
|
41
|
-
* organization(slug"ORGANIZATION_SLUG") {
|
|
33
|
+
* organization(slug: "ORGANIZATION_SLUG") {
|
|
42
34
|
*
|
|
43
|
-
* teams(
|
|
35
|
+
* teams(first: 2, search: "TEAM_SEARCH_TERM") {
|
|
44
36
|
*
|
|
45
37
|
* edges {
|
|
46
38
|
*
|
|
47
39
|
* node {
|
|
48
40
|
*
|
|
49
|
-
* members(
|
|
41
|
+
* members(first: 2, search: "TEAM_MEMBER_SEARCH_TERM") {
|
|
50
42
|
*
|
|
51
43
|
* edges {
|
|
52
44
|
*
|
|
@@ -66,7 +58,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
66
58
|
*
|
|
67
59
|
* }
|
|
68
60
|
*
|
|
69
|
-
* }
|
|
61
|
+
* }
|
|
62
|
+
*
|
|
63
|
+
* }
|
|
64
|
+
*
|
|
65
|
+
* ```sh
|
|
66
|
+
* $ pulumi import buildkite:Team/member:Member a_smith VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==
|
|
67
|
+
* ```
|
|
70
68
|
*/
|
|
71
69
|
export declare class Member extends pulumi.CustomResource {
|
|
72
70
|
/**
|
|
@@ -85,19 +83,19 @@ export declare class Member extends pulumi.CustomResource {
|
|
|
85
83
|
*/
|
|
86
84
|
static isInstance(obj: any): obj is Member;
|
|
87
85
|
/**
|
|
88
|
-
* Either MEMBER or MAINTAINER
|
|
86
|
+
* The role for the user. Either `MEMBER` or `MAINTAINER`.
|
|
89
87
|
*/
|
|
90
88
|
readonly role: pulumi.Output<string>;
|
|
91
89
|
/**
|
|
92
|
-
* The GraphQL ID of the team
|
|
90
|
+
* The GraphQL ID of the team.
|
|
93
91
|
*/
|
|
94
92
|
readonly teamId: pulumi.Output<string>;
|
|
95
93
|
/**
|
|
96
|
-
* The GraphQL ID of the user
|
|
94
|
+
* The GraphQL ID of the user.
|
|
97
95
|
*/
|
|
98
96
|
readonly userId: pulumi.Output<string>;
|
|
99
97
|
/**
|
|
100
|
-
* The UUID
|
|
98
|
+
* The UUID of the team membership.
|
|
101
99
|
*/
|
|
102
100
|
readonly uuid: pulumi.Output<string>;
|
|
103
101
|
/**
|
|
@@ -114,19 +112,19 @@ export declare class Member extends pulumi.CustomResource {
|
|
|
114
112
|
*/
|
|
115
113
|
export interface MemberState {
|
|
116
114
|
/**
|
|
117
|
-
* Either MEMBER or MAINTAINER
|
|
115
|
+
* The role for the user. Either `MEMBER` or `MAINTAINER`.
|
|
118
116
|
*/
|
|
119
117
|
role?: pulumi.Input<string>;
|
|
120
118
|
/**
|
|
121
|
-
* The GraphQL ID of the team
|
|
119
|
+
* The GraphQL ID of the team.
|
|
122
120
|
*/
|
|
123
121
|
teamId?: pulumi.Input<string>;
|
|
124
122
|
/**
|
|
125
|
-
* The GraphQL ID of the user
|
|
123
|
+
* The GraphQL ID of the user.
|
|
126
124
|
*/
|
|
127
125
|
userId?: pulumi.Input<string>;
|
|
128
126
|
/**
|
|
129
|
-
* The UUID
|
|
127
|
+
* The UUID of the team membership.
|
|
130
128
|
*/
|
|
131
129
|
uuid?: pulumi.Input<string>;
|
|
132
130
|
}
|
|
@@ -135,15 +133,15 @@ export interface MemberState {
|
|
|
135
133
|
*/
|
|
136
134
|
export interface MemberArgs {
|
|
137
135
|
/**
|
|
138
|
-
* Either MEMBER or MAINTAINER
|
|
136
|
+
* The role for the user. Either `MEMBER` or `MAINTAINER`.
|
|
139
137
|
*/
|
|
140
138
|
role: pulumi.Input<string>;
|
|
141
139
|
/**
|
|
142
|
-
* The GraphQL ID of the team
|
|
140
|
+
* The GraphQL ID of the team.
|
|
143
141
|
*/
|
|
144
142
|
teamId: pulumi.Input<string>;
|
|
145
143
|
/**
|
|
146
|
-
* The GraphQL ID of the user
|
|
144
|
+
* The GraphQL ID of the user.
|
|
147
145
|
*/
|
|
148
146
|
userId: pulumi.Input<string>;
|
|
149
147
|
}
|
package/team/member.js
CHANGED
|
@@ -6,15 +6,7 @@ exports.Member = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* This resource allows manage team membership for existing organization users.
|
|
12
|
-
*
|
|
13
|
-
* The user must already be part of the organization to which you are managing team membership. This will not invite a new user to the organization.
|
|
14
|
-
*
|
|
15
|
-
* Buildkite Documentation: https://buildkite.com/docs/pipelines/permissions
|
|
16
|
-
*
|
|
17
|
-
* Note: You must first enable Teams on your organization.
|
|
9
|
+
* A team member resource allows for the management of team membership for existing organization users.
|
|
18
10
|
*
|
|
19
11
|
* ## Example Usage
|
|
20
12
|
*
|
|
@@ -22,37 +14,37 @@ const utilities = require("../utilities");
|
|
|
22
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
23
15
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
24
16
|
*
|
|
25
|
-
* const
|
|
17
|
+
* const everyone = new buildkite.team.Team("everyone", {
|
|
26
18
|
* privacy: "VISIBLE",
|
|
27
|
-
* defaultTeam:
|
|
19
|
+
* defaultTeam: false,
|
|
28
20
|
* defaultMemberRole: "MEMBER",
|
|
29
21
|
* });
|
|
30
22
|
* const aSmith = new buildkite.team.Member("aSmith", {
|
|
23
|
+
* teamId: everyone.id,
|
|
24
|
+
* userId: "VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==",
|
|
31
25
|
* role: "MEMBER",
|
|
32
|
-
* teamId: team.id,
|
|
33
|
-
* userId: "VXNlci0tLWRlOTdmMjBiLWJkZmMtNGNjOC1hOTcwLTY1ODNiZTk2ZGEyYQ==",
|
|
34
26
|
* });
|
|
35
27
|
* ```
|
|
36
28
|
*
|
|
37
29
|
* ## Import
|
|
38
30
|
*
|
|
39
|
-
*
|
|
31
|
+
* import a team member resource using the GraphQL ID
|
|
40
32
|
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
33
|
+
* #
|
|
34
|
+
*
|
|
35
|
+
* you can use this query to find the ID:
|
|
44
36
|
*
|
|
45
|
-
*
|
|
37
|
+
* query getTeamMemberId {
|
|
46
38
|
*
|
|
47
|
-
* organization(slug"ORGANIZATION_SLUG") {
|
|
39
|
+
* organization(slug: "ORGANIZATION_SLUG") {
|
|
48
40
|
*
|
|
49
|
-
* teams(
|
|
41
|
+
* teams(first: 2, search: "TEAM_SEARCH_TERM") {
|
|
50
42
|
*
|
|
51
43
|
* edges {
|
|
52
44
|
*
|
|
53
45
|
* node {
|
|
54
46
|
*
|
|
55
|
-
* members(
|
|
47
|
+
* members(first: 2, search: "TEAM_MEMBER_SEARCH_TERM") {
|
|
56
48
|
*
|
|
57
49
|
* edges {
|
|
58
50
|
*
|
|
@@ -72,7 +64,13 @@ const utilities = require("../utilities");
|
|
|
72
64
|
*
|
|
73
65
|
* }
|
|
74
66
|
*
|
|
75
|
-
* }
|
|
67
|
+
* }
|
|
68
|
+
*
|
|
69
|
+
* }
|
|
70
|
+
*
|
|
71
|
+
* ```sh
|
|
72
|
+
* $ pulumi import buildkite:Team/member:Member a_smith VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==
|
|
73
|
+
* ```
|
|
76
74
|
*/
|
|
77
75
|
class Member extends pulumi.CustomResource {
|
|
78
76
|
/**
|
package/team/member.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"member.js","sourceRoot":"","sources":["../../team/member.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"member.js","sourceRoot":"","sources":["../../team/member.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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|
-
*
|
|
5
|
-
* This resource allows you to create and manage teams.
|
|
6
|
-
*
|
|
7
|
-
* Buildkite Documentation: https://buildkite.com/docs/pipelines/permissions
|
|
8
|
-
*
|
|
9
|
-
* Note: You must first enable Teams on your organization.
|
|
3
|
+
* A Team is a group of users that can be given permissions for using Pipelines.This feature is only available to Business and Enterprise customers. You can find out more about Teams in the Buildkite [documentation](https://buildkite.com/docs/team-management/permissions).
|
|
10
4
|
*
|
|
11
5
|
* ## Example Usage
|
|
12
6
|
*
|
|
@@ -14,26 +8,26 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
14
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
9
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
16
10
|
*
|
|
17
|
-
* const
|
|
11
|
+
* const everyone = new buildkite.team.Team("everyone", {
|
|
18
12
|
* defaultMemberRole: "MEMBER",
|
|
19
|
-
* defaultTeam:
|
|
13
|
+
* defaultTeam: false,
|
|
20
14
|
* privacy: "VISIBLE",
|
|
21
15
|
* });
|
|
22
16
|
* ```
|
|
23
17
|
*
|
|
24
18
|
* ## Import
|
|
25
19
|
*
|
|
26
|
-
*
|
|
20
|
+
* import a team resource using the GraphQL ID
|
|
27
21
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
22
|
+
* #
|
|
23
|
+
*
|
|
24
|
+
* you can use this query to find the ID:
|
|
31
25
|
*
|
|
32
|
-
*
|
|
26
|
+
* query getTeamId {
|
|
33
27
|
*
|
|
34
|
-
* organization(slug"ORGANIZATION_SLUG") {
|
|
28
|
+
* organization(slug: "ORGANIZATION_SLUG") {
|
|
35
29
|
*
|
|
36
|
-
* teams(
|
|
30
|
+
* teams(first: 1, search: "TEAM_SEARCH_TERM") {
|
|
37
31
|
*
|
|
38
32
|
* edges {
|
|
39
33
|
*
|
|
@@ -49,7 +43,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
49
43
|
*
|
|
50
44
|
* }
|
|
51
45
|
*
|
|
52
|
-
* }
|
|
46
|
+
* }
|
|
47
|
+
*
|
|
48
|
+
* }
|
|
49
|
+
*
|
|
50
|
+
* ```sh
|
|
51
|
+
* $ pulumi import buildkite:Team/team:Team everyone UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
|
|
52
|
+
* ```
|
|
53
53
|
*/
|
|
54
54
|
export declare class Team extends pulumi.CustomResource {
|
|
55
55
|
/**
|
|
@@ -68,35 +68,35 @@ export declare class Team extends pulumi.CustomResource {
|
|
|
68
68
|
*/
|
|
69
69
|
static isInstance(obj: any): obj is Team;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* The default role for new members of the team. This can be either `MEMBER` or `MAINTAINER`.
|
|
72
72
|
*/
|
|
73
73
|
readonly defaultMemberRole: pulumi.Output<string>;
|
|
74
74
|
/**
|
|
75
|
-
* Whether
|
|
75
|
+
* Whether this is the default team for the organization.
|
|
76
76
|
*/
|
|
77
77
|
readonly defaultTeam: pulumi.Output<boolean>;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* A description for the team. This is displayed in the Buildkite UI.
|
|
80
80
|
*/
|
|
81
81
|
readonly description: pulumi.Output<string | undefined>;
|
|
82
82
|
/**
|
|
83
|
-
* Whether team
|
|
83
|
+
* Whether members of the team can create Pipelines.
|
|
84
84
|
*/
|
|
85
|
-
readonly membersCanCreatePipelines: pulumi.Output<boolean
|
|
85
|
+
readonly membersCanCreatePipelines: pulumi.Output<boolean>;
|
|
86
86
|
/**
|
|
87
87
|
* The name of the team.
|
|
88
88
|
*/
|
|
89
89
|
readonly name: pulumi.Output<string>;
|
|
90
90
|
/**
|
|
91
|
-
* The privacy
|
|
91
|
+
* The privacy setting for the team. This can be either `VISIBLE` or `SECRET`.
|
|
92
92
|
*/
|
|
93
93
|
readonly privacy: pulumi.Output<string>;
|
|
94
94
|
/**
|
|
95
|
-
* The
|
|
95
|
+
* The generated slug for the team.
|
|
96
96
|
*/
|
|
97
97
|
readonly slug: pulumi.Output<string>;
|
|
98
98
|
/**
|
|
99
|
-
* The UUID
|
|
99
|
+
* The UUID of the team.
|
|
100
100
|
*/
|
|
101
101
|
readonly uuid: pulumi.Output<string>;
|
|
102
102
|
/**
|
|
@@ -113,19 +113,19 @@ export declare class Team extends pulumi.CustomResource {
|
|
|
113
113
|
*/
|
|
114
114
|
export interface TeamState {
|
|
115
115
|
/**
|
|
116
|
-
*
|
|
116
|
+
* The default role for new members of the team. This can be either `MEMBER` or `MAINTAINER`.
|
|
117
117
|
*/
|
|
118
118
|
defaultMemberRole?: pulumi.Input<string>;
|
|
119
119
|
/**
|
|
120
|
-
* Whether
|
|
120
|
+
* Whether this is the default team for the organization.
|
|
121
121
|
*/
|
|
122
122
|
defaultTeam?: pulumi.Input<boolean>;
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* A description for the team. This is displayed in the Buildkite UI.
|
|
125
125
|
*/
|
|
126
126
|
description?: pulumi.Input<string>;
|
|
127
127
|
/**
|
|
128
|
-
* Whether team
|
|
128
|
+
* Whether members of the team can create Pipelines.
|
|
129
129
|
*/
|
|
130
130
|
membersCanCreatePipelines?: pulumi.Input<boolean>;
|
|
131
131
|
/**
|
|
@@ -133,15 +133,15 @@ export interface TeamState {
|
|
|
133
133
|
*/
|
|
134
134
|
name?: pulumi.Input<string>;
|
|
135
135
|
/**
|
|
136
|
-
* The privacy
|
|
136
|
+
* The privacy setting for the team. This can be either `VISIBLE` or `SECRET`.
|
|
137
137
|
*/
|
|
138
138
|
privacy?: pulumi.Input<string>;
|
|
139
139
|
/**
|
|
140
|
-
* The
|
|
140
|
+
* The generated slug for the team.
|
|
141
141
|
*/
|
|
142
142
|
slug?: pulumi.Input<string>;
|
|
143
143
|
/**
|
|
144
|
-
* The UUID
|
|
144
|
+
* The UUID of the team.
|
|
145
145
|
*/
|
|
146
146
|
uuid?: pulumi.Input<string>;
|
|
147
147
|
}
|
|
@@ -150,19 +150,19 @@ export interface TeamState {
|
|
|
150
150
|
*/
|
|
151
151
|
export interface TeamArgs {
|
|
152
152
|
/**
|
|
153
|
-
*
|
|
153
|
+
* The default role for new members of the team. This can be either `MEMBER` or `MAINTAINER`.
|
|
154
154
|
*/
|
|
155
155
|
defaultMemberRole: pulumi.Input<string>;
|
|
156
156
|
/**
|
|
157
|
-
* Whether
|
|
157
|
+
* Whether this is the default team for the organization.
|
|
158
158
|
*/
|
|
159
159
|
defaultTeam: pulumi.Input<boolean>;
|
|
160
160
|
/**
|
|
161
|
-
*
|
|
161
|
+
* A description for the team. This is displayed in the Buildkite UI.
|
|
162
162
|
*/
|
|
163
163
|
description?: pulumi.Input<string>;
|
|
164
164
|
/**
|
|
165
|
-
* Whether team
|
|
165
|
+
* Whether members of the team can create Pipelines.
|
|
166
166
|
*/
|
|
167
167
|
membersCanCreatePipelines?: pulumi.Input<boolean>;
|
|
168
168
|
/**
|
|
@@ -170,7 +170,7 @@ export interface TeamArgs {
|
|
|
170
170
|
*/
|
|
171
171
|
name?: pulumi.Input<string>;
|
|
172
172
|
/**
|
|
173
|
-
* The privacy
|
|
173
|
+
* The privacy setting for the team. This can be either `VISIBLE` or `SECRET`.
|
|
174
174
|
*/
|
|
175
175
|
privacy: pulumi.Input<string>;
|
|
176
176
|
}
|