@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.
Files changed (95) hide show
  1. package/README.md +5 -0
  2. package/agent/agentToken.d.ts +11 -19
  3. package/agent/agentToken.js +4 -6
  4. package/agent/agentToken.js.map +1 -1
  5. package/cluster/cluster.d.ts +74 -20
  6. package/cluster/cluster.js +54 -6
  7. package/cluster/cluster.js.map +1 -1
  8. package/cluster/clusterAgentToken.d.ts +49 -15
  9. package/cluster/clusterAgentToken.js +26 -8
  10. package/cluster/clusterAgentToken.js.map +1 -1
  11. package/cluster/clusterDefaultQueue.d.ts +130 -0
  12. package/cluster/clusterDefaultQueue.js +121 -0
  13. package/cluster/clusterDefaultQueue.js.map +1 -0
  14. package/cluster/clusterQueue.d.ts +36 -44
  15. package/cluster/clusterQueue.js +29 -37
  16. package/cluster/clusterQueue.js.map +1 -1
  17. package/cluster/getCluster.d.ts +48 -5
  18. package/cluster/getCluster.js +40 -0
  19. package/cluster/getCluster.js.map +1 -1
  20. package/cluster/index.d.ts +3 -0
  21. package/cluster/index.js +6 -1
  22. package/cluster/index.js.map +1 -1
  23. package/config/vars.d.ts +9 -7
  24. package/config/vars.js +6 -0
  25. package/config/vars.js.map +1 -1
  26. package/getMeta.d.ts +51 -1
  27. package/getMeta.js +51 -1
  28. package/getMeta.js.map +1 -1
  29. package/index.d.ts +1 -0
  30. package/index.js +3 -2
  31. package/index.js.map +1 -1
  32. package/organization/banner.d.ts +104 -0
  33. package/organization/banner.js +102 -0
  34. package/organization/banner.js.map +1 -0
  35. package/organization/getOrganization.d.ts +12 -21
  36. package/organization/getOrganization.js +9 -21
  37. package/organization/getOrganization.js.map +1 -1
  38. package/organization/index.d.ts +4 -3
  39. package/organization/index.js +8 -7
  40. package/organization/index.js.map +1 -1
  41. package/organization/organization.d.ts +29 -13
  42. package/organization/organization.js +10 -10
  43. package/organization/organization.js.map +1 -1
  44. package/package.json +2 -3
  45. package/package.json.bak +1 -2
  46. package/pipeline/getPipeline.d.ts +22 -18
  47. package/pipeline/getPipeline.js +8 -14
  48. package/pipeline/getPipeline.js.map +1 -1
  49. package/pipeline/getSignedSteps.d.ts +139 -0
  50. package/pipeline/getSignedSteps.js +91 -0
  51. package/pipeline/getSignedSteps.js.map +1 -0
  52. package/pipeline/getTemplate.d.ts +116 -0
  53. package/pipeline/getTemplate.js +79 -0
  54. package/pipeline/getTemplate.js.map +1 -0
  55. package/pipeline/index.d.ts +9 -0
  56. package/pipeline/index.js +12 -1
  57. package/pipeline/index.js.map +1 -1
  58. package/pipeline/pipeline.d.ts +116 -101
  59. package/pipeline/pipeline.js +18 -16
  60. package/pipeline/pipeline.js.map +1 -1
  61. package/pipeline/schedule.d.ts +50 -41
  62. package/pipeline/schedule.js +24 -15
  63. package/pipeline/schedule.js.map +1 -1
  64. package/pipeline/team.d.ts +35 -26
  65. package/pipeline/team.js +27 -18
  66. package/pipeline/team.js.map +1 -1
  67. package/pipeline/template.d.ts +155 -0
  68. package/pipeline/template.js +123 -0
  69. package/pipeline/template.js.map +1 -0
  70. package/provider.d.ts +23 -9
  71. package/provider.js +1 -0
  72. package/provider.js.map +1 -1
  73. package/team/getTeam.d.ts +29 -34
  74. package/team/getTeam.js +14 -16
  75. package/team/getTeam.js.map +1 -1
  76. package/team/member.d.ts +31 -33
  77. package/team/member.js +20 -22
  78. package/team/member.js.map +1 -1
  79. package/team/team.d.ts +36 -36
  80. package/team/team.js +17 -17
  81. package/testsuite/team.d.ts +29 -35
  82. package/testsuite/team.js +24 -30
  83. package/testsuite/team.js.map +1 -1
  84. package/testsuite/testSuite.d.ts +19 -27
  85. package/testsuite/testSuite.js +4 -12
  86. package/testsuite/testSuite.js.map +1 -1
  87. package/types/input.d.ts +37 -21
  88. package/types/output.d.ts +34 -18
  89. package/utilities.d.ts +4 -0
  90. package/utilities.js +33 -1
  91. package/utilities.js.map +1 -1
  92. package/organization/settings.d.ts +0 -80
  93. package/organization/settings.js +0 -81
  94. package/organization/settings.js.map +0 -1
  95. 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
- * ## # Resource: teamMember
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 team = new buildkite.team.Team("team", {
11
+ * const everyone = new buildkite.team.Team("everyone", {
20
12
  * privacy: "VISIBLE",
21
- * defaultTeam: true,
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
- * Team members can be imported using the GraphQL ID of the membership. Note this is different to the ID of the user.
25
+ * import a team member resource using the GraphQL ID
34
26
  *
35
- * ```sh
36
- * $ pulumi import buildkite:Team/member:Member a_smith VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==
37
- * ```
27
+ * #
28
+ *
29
+ * you can use this query to find the ID:
38
30
  *
39
- * To find the ID to use, you can use the GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/ce4540dd-4f60-4e79-8e8f-9f4c3bc8784e), where you will need fo fill in the organization slug and search terms for teams and members. Both search terms (TEAM_SEARCH_TERM and TEAM_MEMBER_SEARCH_TERM) work on the name of the associated object. graphql query getTeamMemberId {
31
+ * query getTeamMemberId {
40
32
  *
41
- * organization(slug"ORGANIZATION_SLUG") {
33
+ * organization(slug: "ORGANIZATION_SLUG") {
42
34
  *
43
- * teams(first2, search"TEAM_SEARCH_TERM") {
35
+ * teams(first: 2, search: "TEAM_SEARCH_TERM") {
44
36
  *
45
37
  * edges {
46
38
  *
47
39
  * node {
48
40
  *
49
- * members(first2, search"TEAM_MEMBER_SEARCH_TERM") {
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 to add to/remove from.
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 to add/remove.
94
+ * The GraphQL ID of the user.
97
95
  */
98
96
  readonly userId: pulumi.Output<string>;
99
97
  /**
100
- * The UUID for the team membership.
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 to add to/remove from.
119
+ * The GraphQL ID of the team.
122
120
  */
123
121
  teamId?: pulumi.Input<string>;
124
122
  /**
125
- * The GraphQL ID of the user to add/remove.
123
+ * The GraphQL ID of the user.
126
124
  */
127
125
  userId?: pulumi.Input<string>;
128
126
  /**
129
- * The UUID for the team membership.
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 to add to/remove from.
140
+ * The GraphQL ID of the team.
143
141
  */
144
142
  teamId: pulumi.Input<string>;
145
143
  /**
146
- * The GraphQL ID of the user to add/remove.
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
- * ## # Resource: teamMember
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 team = new buildkite.team.Team("team", {
17
+ * const everyone = new buildkite.team.Team("everyone", {
26
18
  * privacy: "VISIBLE",
27
- * defaultTeam: true,
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
- * Team members can be imported using the GraphQL ID of the membership. Note this is different to the ID of the user.
31
+ * import a team member resource using the GraphQL ID
40
32
  *
41
- * ```sh
42
- * $ pulumi import buildkite:Team/member:Member a_smith VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==
43
- * ```
33
+ * #
34
+ *
35
+ * you can use this query to find the ID:
44
36
  *
45
- * To find the ID to use, you can use the GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/ce4540dd-4f60-4e79-8e8f-9f4c3bc8784e), where you will need fo fill in the organization slug and search terms for teams and members. Both search terms (TEAM_SEARCH_TERM and TEAM_MEMBER_SEARCH_TERM) work on the name of the associated object. graphql query getTeamMemberId {
37
+ * query getTeamMemberId {
46
38
  *
47
- * organization(slug"ORGANIZATION_SLUG") {
39
+ * organization(slug: "ORGANIZATION_SLUG") {
48
40
  *
49
- * teams(first2, search"TEAM_SEARCH_TERM") {
41
+ * teams(first: 2, search: "TEAM_SEARCH_TERM") {
50
42
  *
51
43
  * edges {
52
44
  *
53
45
  * node {
54
46
  *
55
- * members(first2, search"TEAM_MEMBER_SEARCH_TERM") {
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
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"member.js","sourceRoot":"","sources":["../../team/member.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;IA2BD,YAAY,IAAY,EAAE,WAAsC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AAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,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
@@ -1,12 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * ## # Resource: team
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 team = new buildkite.team.Team("team", {
11
+ * const everyone = new buildkite.team.Team("everyone", {
18
12
  * defaultMemberRole: "MEMBER",
19
- * defaultTeam: true,
13
+ * defaultTeam: false,
20
14
  * privacy: "VISIBLE",
21
15
  * });
22
16
  * ```
23
17
  *
24
18
  * ## Import
25
19
  *
26
- * Teams can be imported using the `GraphQL ID` (not UUID), e.g.
20
+ * import a team resource using the GraphQL ID
27
21
  *
28
- * ```sh
29
- * $ pulumi import buildkite:Team/team:Team fleet UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
30
- * ```
22
+ * #
23
+ *
24
+ * you can use this query to find the ID:
31
25
  *
32
- * To find the ID to use, you can use the GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/6e74c89c-4e91-4d1d-92ca-4fb19d0ea453), where you will need fo fill in the organization slug and search term (TEAM_SEARCH_TERM) for the team. graphql query getTeamId {
26
+ * query getTeamId {
33
27
  *
34
- * organization(slug"ORGANIZATION_SLUG") {
28
+ * organization(slug: "ORGANIZATION_SLUG") {
35
29
  *
36
- * teams(first1, search"TEAM_SEARCH_TERM") {
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
- * Default role to assign to a team member.
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 to assign this team to a user by default.
75
+ * Whether this is the default team for the organization.
76
76
  */
77
77
  readonly defaultTeam: pulumi.Output<boolean>;
78
78
  /**
79
- * The description to assign to the team.
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 members can create.
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 level to set the team too.
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 name of the team.
95
+ * The generated slug for the team.
96
96
  */
97
97
  readonly slug: pulumi.Output<string>;
98
98
  /**
99
- * The UUID for the team.
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
- * Default role to assign to a team member.
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 to assign this team to a user by default.
120
+ * Whether this is the default team for the organization.
121
121
  */
122
122
  defaultTeam?: pulumi.Input<boolean>;
123
123
  /**
124
- * The description to assign to the team.
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 members can create.
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 level to set the team too.
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 name of the team.
140
+ * The generated slug for the team.
141
141
  */
142
142
  slug?: pulumi.Input<string>;
143
143
  /**
144
- * The UUID for the team.
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
- * Default role to assign to a team member.
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 to assign this team to a user by default.
157
+ * Whether this is the default team for the organization.
158
158
  */
159
159
  defaultTeam: pulumi.Input<boolean>;
160
160
  /**
161
- * The description to assign to the team.
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 members can create.
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 level to set the team too.
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
- * ## # Resource: team
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 team = new buildkite.team.Team("team", {
17
+ * const everyone = new buildkite.team.Team("everyone", {
24
18
  * defaultMemberRole: "MEMBER",
25
- * defaultTeam: true,
19
+ * defaultTeam: false,
26
20
  * privacy: "VISIBLE",
27
21
  * });
28
22
  * ```
29
23
  *
30
24
  * ## Import
31
25
  *
32
- * Teams can be imported using the `GraphQL ID` (not UUID), e.g.
26
+ * import a team resource using the GraphQL ID
33
27
  *
34
- * ```sh
35
- * $ pulumi import buildkite:Team/team:Team fleet UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
36
- * ```
28
+ * #
29
+ *
30
+ * you can use this query to find the ID:
37
31
  *
38
- * To find the ID to use, you can use the GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/6e74c89c-4e91-4d1d-92ca-4fb19d0ea453), where you will need fo fill in the organization slug and search term (TEAM_SEARCH_TERM) for the team. graphql query getTeamId {
32
+ * query getTeamId {
39
33
  *
40
- * organization(slug"ORGANIZATION_SLUG") {
34
+ * organization(slug: "ORGANIZATION_SLUG") {
41
35
  *
42
- * teams(first1, search"TEAM_SEARCH_TERM") {
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
  /**
@@ -1,10 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * ## # Resource: testSuiteTeam
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
- * const owners = new buildkite.team.Team("owners", {
16
- * defaultTeam: false,
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: owners.id,
14
+ * teamOwnerId: "VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==",
28
15
  * });
29
- * const viewersRspec = new buildkite.testsuite.Team("viewersRspec", {
30
- * testSuiteId: rspecSuite.id,
31
- * teamId: viewers.id,
32
- * accessLevel: "READ_ONLY",
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
- * Test suite teams can be imported using the `GraphQL ID` (not UUID), e.g.
26
+ * import a test suite team resource using the GraphQL ID
39
27
  *
40
- * ```sh
41
- * $ pulumi import buildkite:TestSuite/team:Team viewers VGVhbvDf4eRef20tMzIxMGEfYTctNzEF5g00M8f5s6E2YjYtODNlOGNlZgD6HcBi
42
- * ```
28
+ * #
29
+ *
30
+ * you can use this query to find the ID:
43
31
  *
44
- * To find the ID to use, you can use the GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/e8480014-37a8-4150-a011-6d35f33b4dfd), where you will need fo fill in the organization slug and suite search term (SUITE_SEARCH_TERM) for the particular test suite required. graphql query getTeamSuiteIds {
32
+ * query getTeamSuiteIds {
45
33
  *
46
- * organization(slug"ORGANIZATION_SLUG") {
34
+ * organization(slug: "ORGANIZATION_SLUG") {
47
35
  *
48
- * suites(first1, search:"SUITE_SEARCH_TERM") {
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(first10){
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
- * This is the UUID of the test suite team.
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
- * This is the UUID of the test suite team.
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
  /**