@pulumiverse/buildkite 2.3.1 → 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 +9 -7
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/getMeta.d.ts +51 -1
- package/getMeta.js +51 -1
- package/getMeta.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +3 -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 +12 -21
- package/organization/getOrganization.js +9 -21
- package/organization/getOrganization.js.map +1 -1
- package/organization/index.d.ts +4 -3
- package/organization/index.js +8 -7
- package/organization/index.js.map +1 -1
- package/organization/organization.d.ts +29 -13
- package/organization/organization.js +10 -10
- package/organization/organization.js.map +1 -1
- package/package.json +2 -3
- package/package.json.bak +1 -2
- package/pipeline/getPipeline.d.ts +22 -18
- 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 +9 -0
- package/pipeline/index.js +12 -1
- package/pipeline/index.js.map +1 -1
- package/pipeline/pipeline.d.ts +116 -101
- package/pipeline/pipeline.js +18 -16
- package/pipeline/pipeline.js.map +1 -1
- package/pipeline/schedule.d.ts +50 -41
- package/pipeline/schedule.js +24 -15
- package/pipeline/schedule.js.map +1 -1
- package/pipeline/team.d.ts +35 -26
- package/pipeline/team.js +27 -18
- package/pipeline/team.js.map +1 -1
- package/pipeline/template.d.ts +155 -0
- package/pipeline/template.js +123 -0
- package/pipeline/template.js.map +1 -0
- package/provider.d.ts +23 -9
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/team/getTeam.d.ts +29 -34
- package/team/getTeam.js +14 -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 +36 -36
- package/team/team.js +17 -17
- package/testsuite/team.d.ts +29 -35
- package/testsuite/team.js +24 -30
- package/testsuite/team.js.map +1 -1
- package/testsuite/testSuite.d.ts +19 -27
- package/testsuite/testSuite.js +4 -12
- package/testsuite/testSuite.js.map +1 -1
- package/types/input.d.ts +37 -21
- package/types/output.d.ts +34 -18
- package/utilities.d.ts +4 -0
- package/utilities.js +33 -1
- package/utilities.js.map +1 -1
- package/organization/settings.d.ts +0 -80
- package/organization/settings.js +0 -81
- package/organization/settings.js.map +0 -1
- package/scripts/install-pulumi-plugin.js +0 -26
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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|
4
|
-
*
|
|
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,19 +68,19 @@ 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
85
|
readonly membersCanCreatePipelines: pulumi.Output<boolean>;
|
|
86
86
|
/**
|
|
@@ -88,15 +88,15 @@ export declare class Team extends pulumi.CustomResource {
|
|
|
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
|
}
|
package/team/team.js
CHANGED
|
@@ -6,13 +6,7 @@ exports.Team = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* This resource allows you to create and manage teams.
|
|
12
|
-
*
|
|
13
|
-
* Buildkite Documentation: https://buildkite.com/docs/pipelines/permissions
|
|
14
|
-
*
|
|
15
|
-
* Note: You must first enable Teams on your organization.
|
|
9
|
+
* 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).
|
|
16
10
|
*
|
|
17
11
|
* ## Example Usage
|
|
18
12
|
*
|
|
@@ -20,26 +14,26 @@ const utilities = require("../utilities");
|
|
|
20
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
21
15
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
22
16
|
*
|
|
23
|
-
* const
|
|
17
|
+
* const everyone = new buildkite.team.Team("everyone", {
|
|
24
18
|
* defaultMemberRole: "MEMBER",
|
|
25
|
-
* defaultTeam:
|
|
19
|
+
* defaultTeam: false,
|
|
26
20
|
* privacy: "VISIBLE",
|
|
27
21
|
* });
|
|
28
22
|
* ```
|
|
29
23
|
*
|
|
30
24
|
* ## Import
|
|
31
25
|
*
|
|
32
|
-
*
|
|
26
|
+
* import a team resource using the GraphQL ID
|
|
33
27
|
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
28
|
+
* #
|
|
29
|
+
*
|
|
30
|
+
* you can use this query to find the ID:
|
|
37
31
|
*
|
|
38
|
-
*
|
|
32
|
+
* query getTeamId {
|
|
39
33
|
*
|
|
40
|
-
* organization(slug"ORGANIZATION_SLUG") {
|
|
34
|
+
* organization(slug: "ORGANIZATION_SLUG") {
|
|
41
35
|
*
|
|
42
|
-
* teams(
|
|
36
|
+
* teams(first: 1, search: "TEAM_SEARCH_TERM") {
|
|
43
37
|
*
|
|
44
38
|
* edges {
|
|
45
39
|
*
|
|
@@ -55,7 +49,13 @@ const utilities = require("../utilities");
|
|
|
55
49
|
*
|
|
56
50
|
* }
|
|
57
51
|
*
|
|
58
|
-
* }
|
|
52
|
+
* }
|
|
53
|
+
*
|
|
54
|
+
* }
|
|
55
|
+
*
|
|
56
|
+
* ```sh
|
|
57
|
+
* $ pulumi import buildkite:Team/team:Team everyone UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
|
|
58
|
+
* ```
|
|
59
59
|
*/
|
|
60
60
|
class Team extends pulumi.CustomResource {
|
|
61
61
|
/**
|
package/testsuite/team.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* This resources allows you to create, manage and import team access to Test Suites.
|
|
6
|
-
*
|
|
7
|
-
* Buildkite documentation: https://buildkite.com/docs/test-analytics
|
|
3
|
+
* Manage team access to a test suite.
|
|
8
4
|
*
|
|
9
5
|
* ## Example Usage
|
|
10
6
|
*
|
|
@@ -12,40 +8,32 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
12
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
9
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
14
10
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* privacy: "VISIBLE",
|
|
18
|
-
* defaultMemberRole: "MAINTAINER",
|
|
19
|
-
* });
|
|
20
|
-
* const viewers = new buildkite.team.Team("viewers", {
|
|
21
|
-
* defaultTeam: false,
|
|
22
|
-
* privacy: "VISIBLE",
|
|
23
|
-
* defaultMemberRole: "MAINTAINER",
|
|
24
|
-
* });
|
|
25
|
-
* const rspecSuite = new buildkite.testsuite.TestSuite("rspecSuite", {
|
|
11
|
+
* // create a test suite
|
|
12
|
+
* const main = new buildkite.testsuite.TestSuite("main", {
|
|
26
13
|
* defaultBranch: "main",
|
|
27
|
-
* teamOwnerId:
|
|
14
|
+
* teamOwnerId: "VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==",
|
|
28
15
|
* });
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
16
|
+
* // give the "everyone" team manage access to the "main" test suite
|
|
17
|
+
* const mainEveryone = new buildkite.testsuite.Team("mainEveryone", {
|
|
18
|
+
* testSuiteId: main.id,
|
|
19
|
+
* teamId: "VGVhbS0tLWU1YjQyMDQyLTUzN2QtNDZjNi04MjY0LTliZjFkMzkyYjZkNQ==",
|
|
20
|
+
* accessLevel: "MANAGE_AND_READ",
|
|
33
21
|
* });
|
|
34
22
|
* ```
|
|
35
23
|
*
|
|
36
24
|
* ## Import
|
|
37
25
|
*
|
|
38
|
-
*
|
|
26
|
+
* import a test suite team resource using the GraphQL ID
|
|
39
27
|
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
28
|
+
* #
|
|
29
|
+
*
|
|
30
|
+
* you can use this query to find the ID:
|
|
43
31
|
*
|
|
44
|
-
*
|
|
32
|
+
* query getTeamSuiteIds {
|
|
45
33
|
*
|
|
46
|
-
* organization(slug"ORGANIZATION_SLUG") {
|
|
34
|
+
* organization(slug: "ORGANIZATION_SLUG") {
|
|
47
35
|
*
|
|
48
|
-
* suites(
|
|
36
|
+
* suites(first: 1, search:"SUITE_SEARCH_TERM") {
|
|
49
37
|
*
|
|
50
38
|
* edges {
|
|
51
39
|
*
|
|
@@ -55,7 +43,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
55
43
|
*
|
|
56
44
|
* name
|
|
57
45
|
*
|
|
58
|
-
* teams(
|
|
46
|
+
* teams(first: 10){
|
|
59
47
|
*
|
|
60
48
|
* edges {
|
|
61
49
|
*
|
|
@@ -83,7 +71,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
83
71
|
*
|
|
84
72
|
* }
|
|
85
73
|
*
|
|
86
|
-
* }
|
|
74
|
+
* }
|
|
75
|
+
*
|
|
76
|
+
* }
|
|
77
|
+
*
|
|
78
|
+
* ```sh
|
|
79
|
+
* $ pulumi import buildkite:TestSuite/team:Team main_everyone VGVhbvDf4eRef20tMzIxMGEfYTctNzEF5g00M8f5s6E2YjYtODNlOGNlZgD6HcBi
|
|
80
|
+
* ```
|
|
87
81
|
*/
|
|
88
82
|
export declare class Team extends pulumi.CustomResource {
|
|
89
83
|
/**
|
|
@@ -102,7 +96,7 @@ export declare class Team extends pulumi.CustomResource {
|
|
|
102
96
|
*/
|
|
103
97
|
static isInstance(obj: any): obj is Team;
|
|
104
98
|
/**
|
|
105
|
-
* The access level the team has on the test suite. Either READ_ONLY or MANAGE_AND_READ
|
|
99
|
+
* The access level the team has on the test suite. Either `READ_ONLY` or `MANAGE_AND_READ`.
|
|
106
100
|
*/
|
|
107
101
|
readonly accessLevel: pulumi.Output<string>;
|
|
108
102
|
/**
|
|
@@ -114,7 +108,7 @@ export declare class Team extends pulumi.CustomResource {
|
|
|
114
108
|
*/
|
|
115
109
|
readonly testSuiteId: pulumi.Output<string>;
|
|
116
110
|
/**
|
|
117
|
-
*
|
|
111
|
+
* The UUID of the test suite-team relationship.
|
|
118
112
|
*/
|
|
119
113
|
readonly uuid: pulumi.Output<string>;
|
|
120
114
|
/**
|
|
@@ -131,7 +125,7 @@ export declare class Team extends pulumi.CustomResource {
|
|
|
131
125
|
*/
|
|
132
126
|
export interface TeamState {
|
|
133
127
|
/**
|
|
134
|
-
* The access level the team has on the test suite. Either READ_ONLY or MANAGE_AND_READ
|
|
128
|
+
* The access level the team has on the test suite. Either `READ_ONLY` or `MANAGE_AND_READ`.
|
|
135
129
|
*/
|
|
136
130
|
accessLevel?: pulumi.Input<string>;
|
|
137
131
|
/**
|
|
@@ -143,7 +137,7 @@ export interface TeamState {
|
|
|
143
137
|
*/
|
|
144
138
|
testSuiteId?: pulumi.Input<string>;
|
|
145
139
|
/**
|
|
146
|
-
*
|
|
140
|
+
* The UUID of the test suite-team relationship.
|
|
147
141
|
*/
|
|
148
142
|
uuid?: pulumi.Input<string>;
|
|
149
143
|
}
|
|
@@ -152,7 +146,7 @@ export interface TeamState {
|
|
|
152
146
|
*/
|
|
153
147
|
export interface TeamArgs {
|
|
154
148
|
/**
|
|
155
|
-
* The access level the team has on the test suite. Either READ_ONLY or MANAGE_AND_READ
|
|
149
|
+
* The access level the team has on the test suite. Either `READ_ONLY` or `MANAGE_AND_READ`.
|
|
156
150
|
*/
|
|
157
151
|
accessLevel: pulumi.Input<string>;
|
|
158
152
|
/**
|