@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.
Files changed (97) 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 +11 -5
  24. package/config/vars.js +12 -0
  25. package/config/vars.js.map +1 -1
  26. package/getMeta.d.ts +49 -2
  27. package/getMeta.js +51 -1
  28. package/getMeta.js.map +1 -1
  29. package/index.d.ts +3 -1
  30. package/index.js +5 -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 +10 -63
  36. package/organization/getOrganization.js +6 -47
  37. package/organization/getOrganization.js.map +1 -1
  38. package/organization/index.d.ts +7 -4
  39. package/organization/index.js +11 -6
  40. package/organization/index.js.map +1 -1
  41. package/organization/organization.d.ts +94 -0
  42. package/organization/{settings.js → organization.js} +20 -20
  43. package/organization/organization.js.map +1 -0
  44. package/package.json +2 -3
  45. package/package.json.bak +1 -2
  46. package/pipeline/getPipeline.d.ts +21 -20
  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 +12 -0
  56. package/pipeline/index.js +17 -1
  57. package/pipeline/index.js.map +1 -1
  58. package/pipeline/pipeline.d.ts +117 -181
  59. package/pipeline/pipeline.js +15 -113
  60. package/pipeline/pipeline.js.map +1 -1
  61. package/pipeline/schedule.d.ts +57 -45
  62. package/pipeline/schedule.js +22 -19
  63. package/pipeline/schedule.js.map +1 -1
  64. package/pipeline/team.d.ts +137 -0
  65. package/pipeline/team.js +121 -0
  66. package/pipeline/team.js.map +1 -0
  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 +26 -8
  71. package/provider.js +2 -0
  72. package/provider.js.map +1 -1
  73. package/team/getTeam.d.ts +39 -30
  74. package/team/getTeam.js +16 -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 +37 -37
  80. package/team/team.js +17 -17
  81. package/testsuite/index.d.ts +6 -0
  82. package/testsuite/index.js +27 -0
  83. package/testsuite/index.js.map +1 -0
  84. package/testsuite/team.d.ts +160 -0
  85. package/testsuite/team.js +144 -0
  86. package/testsuite/team.js.map +1 -0
  87. package/testsuite/testSuite.d.ts +112 -0
  88. package/testsuite/testSuite.js +83 -0
  89. package/testsuite/testSuite.js.map +1 -0
  90. package/types/input.d.ts +37 -22
  91. package/types/output.d.ts +37 -22
  92. package/utilities.d.ts +4 -0
  93. package/utilities.js +33 -1
  94. package/utilities.js.map +1 -1
  95. package/organization/settings.d.ts +0 -78
  96. package/organization/settings.js.map +0 -1
  97. package/scripts/install-pulumi-plugin.js +0 -26
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
  /**
@@ -0,0 +1,6 @@
1
+ export { TeamArgs, TeamState } from "./team";
2
+ export type Team = import("./team").Team;
3
+ export declare const Team: typeof import("./team").Team;
4
+ export { TestSuiteArgs, TestSuiteState } from "./testSuite";
5
+ export type TestSuite = import("./testSuite").TestSuite;
6
+ export declare const TestSuite: typeof import("./testSuite").TestSuite;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.TestSuite = exports.Team = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ exports.Team = null;
9
+ utilities.lazyLoad(exports, ["Team"], () => require("./team"));
10
+ exports.TestSuite = null;
11
+ utilities.lazyLoad(exports, ["TestSuite"], () => require("./testSuite"));
12
+ const _module = {
13
+ version: utilities.getVersion(),
14
+ construct: (name, type, urn) => {
15
+ switch (type) {
16
+ case "buildkite:TestSuite/team:Team":
17
+ return new exports.Team(name, undefined, { urn });
18
+ case "buildkite:TestSuite/testSuite:TestSuite":
19
+ return new exports.TestSuite(name, undefined, { urn });
20
+ default:
21
+ throw new Error(`unknown resource type ${type}`);
22
+ }
23
+ },
24
+ };
25
+ pulumi.runtime.registerResourceModule("buildkite", "TestSuite/team", _module);
26
+ pulumi.runtime.registerResourceModule("buildkite", "TestSuite/testSuite", _module);
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../testsuite/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,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"}
@@ -0,0 +1,160 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Manage team access to a test suite.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as buildkite from "@pulumiverse/buildkite";
10
+ *
11
+ * // create a test suite
12
+ * const main = new buildkite.testsuite.TestSuite("main", {
13
+ * defaultBranch: "main",
14
+ * teamOwnerId: "VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==",
15
+ * });
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",
21
+ * });
22
+ * ```
23
+ *
24
+ * ## Import
25
+ *
26
+ * import a test suite team resource using the GraphQL ID
27
+ *
28
+ * #
29
+ *
30
+ * you can use this query to find the ID:
31
+ *
32
+ * query getTeamSuiteIds {
33
+ *
34
+ * organization(slug: "ORGANIZATION_SLUG") {
35
+ *
36
+ * suites(first: 1, search:"SUITE_SEARCH_TERM") {
37
+ *
38
+ * edges {
39
+ *
40
+ * node {
41
+ *
42
+ * id
43
+ *
44
+ * name
45
+ *
46
+ * teams(first: 10){
47
+ *
48
+ * edges {
49
+ *
50
+ * node {
51
+ *
52
+ * id
53
+ *
54
+ * accessLevel
55
+ *
56
+ * team{
57
+ *
58
+ * name
59
+ *
60
+ * }
61
+ *
62
+ * }
63
+ *
64
+ * }
65
+ *
66
+ * }
67
+ *
68
+ * }
69
+ *
70
+ * }
71
+ *
72
+ * }
73
+ *
74
+ * }
75
+ *
76
+ * }
77
+ *
78
+ * ```sh
79
+ * $ pulumi import buildkite:TestSuite/team:Team main_everyone VGVhbvDf4eRef20tMzIxMGEfYTctNzEF5g00M8f5s6E2YjYtODNlOGNlZgD6HcBi
80
+ * ```
81
+ */
82
+ export declare class Team extends pulumi.CustomResource {
83
+ /**
84
+ * Get an existing Team resource's state with the given name, ID, and optional extra
85
+ * properties used to qualify the lookup.
86
+ *
87
+ * @param name The _unique_ name of the resulting resource.
88
+ * @param id The _unique_ provider ID of the resource to lookup.
89
+ * @param state Any extra arguments used during the lookup.
90
+ * @param opts Optional settings to control the behavior of the CustomResource.
91
+ */
92
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TeamState, opts?: pulumi.CustomResourceOptions): Team;
93
+ /**
94
+ * Returns true if the given object is an instance of Team. This is designed to work even
95
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
96
+ */
97
+ static isInstance(obj: any): obj is Team;
98
+ /**
99
+ * The access level the team has on the test suite. Either `READ_ONLY` or `MANAGE_AND_READ`.
100
+ */
101
+ readonly accessLevel: pulumi.Output<string>;
102
+ /**
103
+ * The GraphQL ID of the team.
104
+ */
105
+ readonly teamId: pulumi.Output<string>;
106
+ /**
107
+ * The GraphQL ID of the test suite.
108
+ */
109
+ readonly testSuiteId: pulumi.Output<string>;
110
+ /**
111
+ * The UUID of the test suite-team relationship.
112
+ */
113
+ readonly uuid: pulumi.Output<string>;
114
+ /**
115
+ * Create a Team resource with the given unique name, arguments, and options.
116
+ *
117
+ * @param name The _unique_ name of the resource.
118
+ * @param args The arguments to use to populate this resource's properties.
119
+ * @param opts A bag of options that control this resource's behavior.
120
+ */
121
+ constructor(name: string, args: TeamArgs, opts?: pulumi.CustomResourceOptions);
122
+ }
123
+ /**
124
+ * Input properties used for looking up and filtering Team resources.
125
+ */
126
+ export interface TeamState {
127
+ /**
128
+ * The access level the team has on the test suite. Either `READ_ONLY` or `MANAGE_AND_READ`.
129
+ */
130
+ accessLevel?: pulumi.Input<string>;
131
+ /**
132
+ * The GraphQL ID of the team.
133
+ */
134
+ teamId?: pulumi.Input<string>;
135
+ /**
136
+ * The GraphQL ID of the test suite.
137
+ */
138
+ testSuiteId?: pulumi.Input<string>;
139
+ /**
140
+ * The UUID of the test suite-team relationship.
141
+ */
142
+ uuid?: pulumi.Input<string>;
143
+ }
144
+ /**
145
+ * The set of arguments for constructing a Team resource.
146
+ */
147
+ export interface TeamArgs {
148
+ /**
149
+ * The access level the team has on the test suite. Either `READ_ONLY` or `MANAGE_AND_READ`.
150
+ */
151
+ accessLevel: pulumi.Input<string>;
152
+ /**
153
+ * The GraphQL ID of the team.
154
+ */
155
+ teamId: pulumi.Input<string>;
156
+ /**
157
+ * The GraphQL ID of the test suite.
158
+ */
159
+ testSuiteId: pulumi.Input<string>;
160
+ }
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.Team = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Manage team access to a test suite.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as buildkite from "@pulumiverse/buildkite";
16
+ *
17
+ * // create a test suite
18
+ * const main = new buildkite.testsuite.TestSuite("main", {
19
+ * defaultBranch: "main",
20
+ * teamOwnerId: "VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==",
21
+ * });
22
+ * // give the "everyone" team manage access to the "main" test suite
23
+ * const mainEveryone = new buildkite.testsuite.Team("mainEveryone", {
24
+ * testSuiteId: main.id,
25
+ * teamId: "VGVhbS0tLWU1YjQyMDQyLTUzN2QtNDZjNi04MjY0LTliZjFkMzkyYjZkNQ==",
26
+ * accessLevel: "MANAGE_AND_READ",
27
+ * });
28
+ * ```
29
+ *
30
+ * ## Import
31
+ *
32
+ * import a test suite team resource using the GraphQL ID
33
+ *
34
+ * #
35
+ *
36
+ * you can use this query to find the ID:
37
+ *
38
+ * query getTeamSuiteIds {
39
+ *
40
+ * organization(slug: "ORGANIZATION_SLUG") {
41
+ *
42
+ * suites(first: 1, search:"SUITE_SEARCH_TERM") {
43
+ *
44
+ * edges {
45
+ *
46
+ * node {
47
+ *
48
+ * id
49
+ *
50
+ * name
51
+ *
52
+ * teams(first: 10){
53
+ *
54
+ * edges {
55
+ *
56
+ * node {
57
+ *
58
+ * id
59
+ *
60
+ * accessLevel
61
+ *
62
+ * team{
63
+ *
64
+ * name
65
+ *
66
+ * }
67
+ *
68
+ * }
69
+ *
70
+ * }
71
+ *
72
+ * }
73
+ *
74
+ * }
75
+ *
76
+ * }
77
+ *
78
+ * }
79
+ *
80
+ * }
81
+ *
82
+ * }
83
+ *
84
+ * ```sh
85
+ * $ pulumi import buildkite:TestSuite/team:Team main_everyone VGVhbvDf4eRef20tMzIxMGEfYTctNzEF5g00M8f5s6E2YjYtODNlOGNlZgD6HcBi
86
+ * ```
87
+ */
88
+ class Team extends pulumi.CustomResource {
89
+ /**
90
+ * Get an existing Team resource's state with the given name, ID, and optional extra
91
+ * properties used to qualify the lookup.
92
+ *
93
+ * @param name The _unique_ name of the resulting resource.
94
+ * @param id The _unique_ provider ID of the resource to lookup.
95
+ * @param state Any extra arguments used during the lookup.
96
+ * @param opts Optional settings to control the behavior of the CustomResource.
97
+ */
98
+ static get(name, id, state, opts) {
99
+ return new Team(name, state, Object.assign(Object.assign({}, opts), { id: id }));
100
+ }
101
+ /**
102
+ * Returns true if the given object is an instance of Team. This is designed to work even
103
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
104
+ */
105
+ static isInstance(obj) {
106
+ if (obj === undefined || obj === null) {
107
+ return false;
108
+ }
109
+ return obj['__pulumiType'] === Team.__pulumiType;
110
+ }
111
+ constructor(name, argsOrState, opts) {
112
+ let resourceInputs = {};
113
+ opts = opts || {};
114
+ if (opts.id) {
115
+ const state = argsOrState;
116
+ resourceInputs["accessLevel"] = state ? state.accessLevel : undefined;
117
+ resourceInputs["teamId"] = state ? state.teamId : undefined;
118
+ resourceInputs["testSuiteId"] = state ? state.testSuiteId : undefined;
119
+ resourceInputs["uuid"] = state ? state.uuid : undefined;
120
+ }
121
+ else {
122
+ const args = argsOrState;
123
+ if ((!args || args.accessLevel === undefined) && !opts.urn) {
124
+ throw new Error("Missing required property 'accessLevel'");
125
+ }
126
+ if ((!args || args.teamId === undefined) && !opts.urn) {
127
+ throw new Error("Missing required property 'teamId'");
128
+ }
129
+ if ((!args || args.testSuiteId === undefined) && !opts.urn) {
130
+ throw new Error("Missing required property 'testSuiteId'");
131
+ }
132
+ resourceInputs["accessLevel"] = args ? args.accessLevel : undefined;
133
+ resourceInputs["teamId"] = args ? args.teamId : undefined;
134
+ resourceInputs["testSuiteId"] = args ? args.testSuiteId : undefined;
135
+ resourceInputs["uuid"] = undefined /*out*/;
136
+ }
137
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
138
+ super(Team.__pulumiType, name, resourceInputs, opts);
139
+ }
140
+ }
141
+ exports.Team = Team;
142
+ /** @internal */
143
+ Team.__pulumiType = 'buildkite:TestSuite/team:Team';
144
+ //# sourceMappingURL=team.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"team.js","sourceRoot":"","sources":["../../testsuite/team.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+EG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,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,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxD,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,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,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AAhFL,oBAiFC;AAnEG,gBAAgB;AACO,iBAAY,GAAG,+BAA+B,CAAC"}
@@ -0,0 +1,112 @@
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 resource to manage [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
+ * // create a test suite for the main repository
12
+ * const main = new buildkite.testsuite.TestSuite("main", {
13
+ * defaultBranch: "main",
14
+ * teamOwnerId: "VGVhbvDf4eRef20tMzIxMGEfYTctNzEF5g00M8f5s6E2YjYtODNlOGNlZgD6HcBi",
15
+ * });
16
+ * ```
17
+ */
18
+ export declare class TestSuite extends pulumi.CustomResource {
19
+ /**
20
+ * Get an existing TestSuite resource's state with the given name, ID, and optional extra
21
+ * properties used to qualify the lookup.
22
+ *
23
+ * @param name The _unique_ name of the resulting resource.
24
+ * @param id The _unique_ provider ID of the resource to lookup.
25
+ * @param state Any extra arguments used during the lookup.
26
+ * @param opts Optional settings to control the behavior of the CustomResource.
27
+ */
28
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TestSuiteState, opts?: pulumi.CustomResourceOptions): TestSuite;
29
+ /**
30
+ * Returns true if the given object is an instance of TestSuite. This is designed to work even
31
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
32
+ */
33
+ static isInstance(obj: any): obj is TestSuite;
34
+ /**
35
+ * The API token to use to send test run data to the API.
36
+ */
37
+ readonly apiToken: pulumi.Output<string>;
38
+ /**
39
+ * The default branch for the repository this test suite is for.
40
+ */
41
+ readonly defaultBranch: pulumi.Output<string>;
42
+ /**
43
+ * The name to give the test suite.
44
+ */
45
+ readonly name: pulumi.Output<string>;
46
+ /**
47
+ * The generated slug of the test suite.
48
+ */
49
+ readonly slug: pulumi.Output<string>;
50
+ /**
51
+ * The GraphQL ID of the team to mark as the owner/admin of the test suite.
52
+ */
53
+ readonly teamOwnerId: pulumi.Output<string>;
54
+ /**
55
+ * The UUID of the test suite.
56
+ */
57
+ readonly uuid: pulumi.Output<string>;
58
+ /**
59
+ * Create a TestSuite resource with the given unique name, arguments, and options.
60
+ *
61
+ * @param name The _unique_ name of the resource.
62
+ * @param args The arguments to use to populate this resource's properties.
63
+ * @param opts A bag of options that control this resource's behavior.
64
+ */
65
+ constructor(name: string, args: TestSuiteArgs, opts?: pulumi.CustomResourceOptions);
66
+ }
67
+ /**
68
+ * Input properties used for looking up and filtering TestSuite resources.
69
+ */
70
+ export interface TestSuiteState {
71
+ /**
72
+ * The API token to use to send test run data to the API.
73
+ */
74
+ apiToken?: pulumi.Input<string>;
75
+ /**
76
+ * The default branch for the repository this test suite is for.
77
+ */
78
+ defaultBranch?: pulumi.Input<string>;
79
+ /**
80
+ * The name to give the test suite.
81
+ */
82
+ name?: pulumi.Input<string>;
83
+ /**
84
+ * The generated slug of the test suite.
85
+ */
86
+ slug?: pulumi.Input<string>;
87
+ /**
88
+ * The GraphQL ID of the team to mark as the owner/admin of the test suite.
89
+ */
90
+ teamOwnerId?: pulumi.Input<string>;
91
+ /**
92
+ * The UUID of the test suite.
93
+ */
94
+ uuid?: pulumi.Input<string>;
95
+ }
96
+ /**
97
+ * The set of arguments for constructing a TestSuite resource.
98
+ */
99
+ export interface TestSuiteArgs {
100
+ /**
101
+ * The default branch for the repository this test suite is for.
102
+ */
103
+ defaultBranch: pulumi.Input<string>;
104
+ /**
105
+ * The name to give the test suite.
106
+ */
107
+ name?: pulumi.Input<string>;
108
+ /**
109
+ * The GraphQL ID of the team to mark as the owner/admin of the test suite.
110
+ */
111
+ teamOwnerId: pulumi.Input<string>;
112
+ }
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.TestSuite = 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 resource to manage [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
+ * // create a test suite for the main repository
18
+ * const main = new buildkite.testsuite.TestSuite("main", {
19
+ * defaultBranch: "main",
20
+ * teamOwnerId: "VGVhbvDf4eRef20tMzIxMGEfYTctNzEF5g00M8f5s6E2YjYtODNlOGNlZgD6HcBi",
21
+ * });
22
+ * ```
23
+ */
24
+ class TestSuite extends pulumi.CustomResource {
25
+ /**
26
+ * Get an existing TestSuite resource's state with the given name, ID, and optional extra
27
+ * properties used to qualify the lookup.
28
+ *
29
+ * @param name The _unique_ name of the resulting resource.
30
+ * @param id The _unique_ provider ID of the resource to lookup.
31
+ * @param state Any extra arguments used during the lookup.
32
+ * @param opts Optional settings to control the behavior of the CustomResource.
33
+ */
34
+ static get(name, id, state, opts) {
35
+ return new TestSuite(name, state, Object.assign(Object.assign({}, opts), { id: id }));
36
+ }
37
+ /**
38
+ * Returns true if the given object is an instance of TestSuite. This is designed to work even
39
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
40
+ */
41
+ static isInstance(obj) {
42
+ if (obj === undefined || obj === null) {
43
+ return false;
44
+ }
45
+ return obj['__pulumiType'] === TestSuite.__pulumiType;
46
+ }
47
+ constructor(name, argsOrState, opts) {
48
+ let resourceInputs = {};
49
+ opts = opts || {};
50
+ if (opts.id) {
51
+ const state = argsOrState;
52
+ resourceInputs["apiToken"] = state ? state.apiToken : undefined;
53
+ resourceInputs["defaultBranch"] = state ? state.defaultBranch : undefined;
54
+ resourceInputs["name"] = state ? state.name : undefined;
55
+ resourceInputs["slug"] = state ? state.slug : undefined;
56
+ resourceInputs["teamOwnerId"] = state ? state.teamOwnerId : undefined;
57
+ resourceInputs["uuid"] = state ? state.uuid : undefined;
58
+ }
59
+ else {
60
+ const args = argsOrState;
61
+ if ((!args || args.defaultBranch === undefined) && !opts.urn) {
62
+ throw new Error("Missing required property 'defaultBranch'");
63
+ }
64
+ if ((!args || args.teamOwnerId === undefined) && !opts.urn) {
65
+ throw new Error("Missing required property 'teamOwnerId'");
66
+ }
67
+ resourceInputs["defaultBranch"] = args ? args.defaultBranch : undefined;
68
+ resourceInputs["name"] = args ? args.name : undefined;
69
+ resourceInputs["teamOwnerId"] = args ? args.teamOwnerId : undefined;
70
+ resourceInputs["apiToken"] = undefined /*out*/;
71
+ resourceInputs["slug"] = undefined /*out*/;
72
+ resourceInputs["uuid"] = undefined /*out*/;
73
+ }
74
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
75
+ const secretOpts = { additionalSecretOutputs: ["apiToken"] };
76
+ opts = pulumi.mergeOptions(opts, secretOpts);
77
+ super(TestSuite.__pulumiType, name, resourceInputs, opts);
78
+ }
79
+ }
80
+ exports.TestSuite = TestSuite;
81
+ /** @internal */
82
+ TestSuite.__pulumiType = 'buildkite:TestSuite/testSuite:TestSuite';
83
+ //# sourceMappingURL=testSuite.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"testSuite.js","sourceRoot":"","sources":["../../testsuite/testSuite.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IAmCD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB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