@pulumiverse/buildkite 2.2.0 → 2.3.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 (74) hide show
  1. package/README.md +3 -3
  2. package/agent/agentToken.js +2 -0
  3. package/agent/agentToken.js.map +1 -1
  4. package/cluster/cluster.d.ts +108 -0
  5. package/cluster/cluster.js +73 -0
  6. package/cluster/cluster.js.map +1 -0
  7. package/cluster/clusterAgentToken.d.ts +97 -0
  8. package/cluster/clusterAgentToken.js +84 -0
  9. package/cluster/clusterAgentToken.js.map +1 -0
  10. package/cluster/clusterQueue.d.ts +162 -0
  11. package/cluster/clusterQueue.js +137 -0
  12. package/cluster/clusterQueue.js.map +1 -0
  13. package/cluster/getCluster.d.ts +47 -0
  14. package/cluster/getCluster.js +19 -0
  15. package/cluster/getCluster.js.map +1 -0
  16. package/cluster/index.d.ts +12 -0
  17. package/cluster/index.js +35 -0
  18. package/cluster/index.js.map +1 -0
  19. package/config/vars.d.ts +5 -1
  20. package/config/vars.js +6 -0
  21. package/config/vars.js.map +1 -1
  22. package/getMeta.d.ts +0 -3
  23. package/index.d.ts +3 -1
  24. package/index.js +5 -1
  25. package/index.js.map +1 -1
  26. package/organization/getOrganization.d.ts +2 -46
  27. package/organization/getOrganization.js +3 -32
  28. package/organization/getOrganization.js.map +1 -1
  29. package/organization/index.d.ts +4 -2
  30. package/organization/index.js +7 -3
  31. package/organization/index.js.map +1 -1
  32. package/organization/organization.d.ts +78 -0
  33. package/organization/organization.js +79 -0
  34. package/organization/organization.js.map +1 -0
  35. package/organization/settings.d.ts +4 -0
  36. package/organization/settings.js +4 -0
  37. package/organization/settings.js.map +1 -1
  38. package/package.json +2 -2
  39. package/pipeline/getPipeline.d.ts +1 -4
  40. package/pipeline/getPipeline.js.map +1 -1
  41. package/pipeline/index.d.ts +3 -0
  42. package/pipeline/index.js +6 -1
  43. package/pipeline/index.js.map +1 -1
  44. package/pipeline/pipeline.d.ts +45 -98
  45. package/pipeline/pipeline.js +10 -85
  46. package/pipeline/pipeline.js.map +1 -1
  47. package/pipeline/schedule.d.ts +46 -5
  48. package/pipeline/schedule.js +34 -2
  49. package/pipeline/schedule.js.map +1 -1
  50. package/pipeline/team.d.ts +128 -0
  51. package/pipeline/team.js +112 -0
  52. package/pipeline/team.js.map +1 -0
  53. package/provider.d.ts +11 -7
  54. package/provider.js +5 -8
  55. package/provider.js.map +1 -1
  56. package/team/getTeam.d.ts +24 -10
  57. package/team/getTeam.js +6 -4
  58. package/team/getTeam.js.map +1 -1
  59. package/team/member.d.ts +4 -4
  60. package/team/member.js +4 -4
  61. package/team/team.d.ts +31 -1
  62. package/team/team.js +30 -0
  63. package/team/team.js.map +1 -1
  64. package/testsuite/index.d.ts +6 -0
  65. package/testsuite/index.js +27 -0
  66. package/testsuite/index.js.map +1 -0
  67. package/testsuite/team.d.ts +166 -0
  68. package/testsuite/team.js +150 -0
  69. package/testsuite/team.js.map +1 -0
  70. package/testsuite/testSuite.d.ts +120 -0
  71. package/testsuite/testSuite.js +91 -0
  72. package/testsuite/testSuite.js.map +1 -0
  73. package/types/input.d.ts +3 -4
  74. package/types/output.d.ts +8 -9
package/team/team.d.ts CHANGED
@@ -20,6 +20,36 @@ import * as pulumi from "@pulumi/pulumi";
20
20
  * privacy: "VISIBLE",
21
21
  * });
22
22
  * ```
23
+ *
24
+ * ## Import
25
+ *
26
+ * Teams can be imported using the `GraphQL ID` (not UUID), e.g.
27
+ *
28
+ * ```sh
29
+ * $ pulumi import buildkite:Team/team:Team fleet UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
30
+ * ```
31
+ *
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 {
33
+ *
34
+ * organization(slug"ORGANIZATION_SLUG") {
35
+ *
36
+ * teams(first1, search"TEAM_SEARCH_TERM") {
37
+ *
38
+ * edges {
39
+ *
40
+ * node {
41
+ *
42
+ * id
43
+ *
44
+ * name
45
+ *
46
+ * }
47
+ *
48
+ * }
49
+ *
50
+ * }
51
+ *
52
+ * } }
23
53
  */
24
54
  export declare class Team extends pulumi.CustomResource {
25
55
  /**
@@ -52,7 +82,7 @@ export declare class Team extends pulumi.CustomResource {
52
82
  /**
53
83
  * Whether team members can create.
54
84
  */
55
- readonly membersCanCreatePipelines: pulumi.Output<boolean | undefined>;
85
+ readonly membersCanCreatePipelines: pulumi.Output<boolean>;
56
86
  /**
57
87
  * The name of the team.
58
88
  */
package/team/team.js CHANGED
@@ -26,6 +26,36 @@ const utilities = require("../utilities");
26
26
  * privacy: "VISIBLE",
27
27
  * });
28
28
  * ```
29
+ *
30
+ * ## Import
31
+ *
32
+ * Teams can be imported using the `GraphQL ID` (not UUID), e.g.
33
+ *
34
+ * ```sh
35
+ * $ pulumi import buildkite:Team/team:Team fleet UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
36
+ * ```
37
+ *
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 {
39
+ *
40
+ * organization(slug"ORGANIZATION_SLUG") {
41
+ *
42
+ * teams(first1, search"TEAM_SEARCH_TERM") {
43
+ *
44
+ * edges {
45
+ *
46
+ * node {
47
+ *
48
+ * id
49
+ *
50
+ * name
51
+ *
52
+ * }
53
+ *
54
+ * }
55
+ *
56
+ * }
57
+ *
58
+ * } }
29
59
  */
30
60
  class Team extends pulumi.CustomResource {
31
61
  /**
package/team/team.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"team.js","sour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AI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,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;;AAxGL,oBAyGC;AA3FG,gBAAgB;AACO,iBAAY,GAAG,0BAA0B,CAAC"}
@@ -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,166 @@
1
+ import * as pulumi from "@pulumi/pulumi";
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
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as buildkite from "@pulumiverse/buildkite";
14
+ *
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", {
26
+ * defaultBranch: "main",
27
+ * teamOwnerId: owners.id,
28
+ * });
29
+ * const viewersRspec = new buildkite.testsuite.Team("viewersRspec", {
30
+ * testSuiteId: rspecSuite.id,
31
+ * teamId: viewers.id,
32
+ * accessLevel: "READ_ONLY",
33
+ * });
34
+ * ```
35
+ *
36
+ * ## Import
37
+ *
38
+ * Test suite teams can be imported using the `GraphQL ID` (not UUID), e.g.
39
+ *
40
+ * ```sh
41
+ * $ pulumi import buildkite:TestSuite/team:Team viewers VGVhbvDf4eRef20tMzIxMGEfYTctNzEF5g00M8f5s6E2YjYtODNlOGNlZgD6HcBi
42
+ * ```
43
+ *
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 {
45
+ *
46
+ * organization(slug"ORGANIZATION_SLUG") {
47
+ *
48
+ * suites(first1, search:"SUITE_SEARCH_TERM") {
49
+ *
50
+ * edges {
51
+ *
52
+ * node {
53
+ *
54
+ * id
55
+ *
56
+ * name
57
+ *
58
+ * teams(first10){
59
+ *
60
+ * edges {
61
+ *
62
+ * node {
63
+ *
64
+ * id
65
+ *
66
+ * accessLevel
67
+ *
68
+ * team{
69
+ *
70
+ * name
71
+ *
72
+ * }
73
+ *
74
+ * }
75
+ *
76
+ * }
77
+ *
78
+ * }
79
+ *
80
+ * }
81
+ *
82
+ * }
83
+ *
84
+ * }
85
+ *
86
+ * } }
87
+ */
88
+ export declare 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: string, id: pulumi.Input<pulumi.ID>, state?: TeamState, opts?: pulumi.CustomResourceOptions): Team;
99
+ /**
100
+ * Returns true if the given object is an instance of Team. This is designed to work even
101
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
102
+ */
103
+ static isInstance(obj: any): obj is Team;
104
+ /**
105
+ * The access level the team has on the test suite. Either READ_ONLY or MANAGE_AND_READ.
106
+ */
107
+ readonly accessLevel: pulumi.Output<string>;
108
+ /**
109
+ * The GraphQL ID of the team.
110
+ */
111
+ readonly teamId: pulumi.Output<string>;
112
+ /**
113
+ * The GraphQL ID of the test suite.
114
+ */
115
+ readonly testSuiteId: pulumi.Output<string>;
116
+ /**
117
+ * This is the UUID of the test suite team.
118
+ */
119
+ readonly uuid: pulumi.Output<string>;
120
+ /**
121
+ * Create a Team resource with the given unique name, arguments, and options.
122
+ *
123
+ * @param name The _unique_ name of the resource.
124
+ * @param args The arguments to use to populate this resource's properties.
125
+ * @param opts A bag of options that control this resource's behavior.
126
+ */
127
+ constructor(name: string, args: TeamArgs, opts?: pulumi.CustomResourceOptions);
128
+ }
129
+ /**
130
+ * Input properties used for looking up and filtering Team resources.
131
+ */
132
+ export interface TeamState {
133
+ /**
134
+ * The access level the team has on the test suite. Either READ_ONLY or MANAGE_AND_READ.
135
+ */
136
+ accessLevel?: pulumi.Input<string>;
137
+ /**
138
+ * The GraphQL ID of the team.
139
+ */
140
+ teamId?: pulumi.Input<string>;
141
+ /**
142
+ * The GraphQL ID of the test suite.
143
+ */
144
+ testSuiteId?: pulumi.Input<string>;
145
+ /**
146
+ * This is the UUID of the test suite team.
147
+ */
148
+ uuid?: pulumi.Input<string>;
149
+ }
150
+ /**
151
+ * The set of arguments for constructing a Team resource.
152
+ */
153
+ export interface TeamArgs {
154
+ /**
155
+ * The access level the team has on the test suite. Either READ_ONLY or MANAGE_AND_READ.
156
+ */
157
+ accessLevel: pulumi.Input<string>;
158
+ /**
159
+ * The GraphQL ID of the team.
160
+ */
161
+ teamId: pulumi.Input<string>;
162
+ /**
163
+ * The GraphQL ID of the test suite.
164
+ */
165
+ testSuiteId: pulumi.Input<string>;
166
+ }
@@ -0,0 +1,150 @@
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
+ * ## # Resource: testSuiteTeam
10
+ *
11
+ * This resources allows you to create, manage and import team access to Test Suites.
12
+ *
13
+ * Buildkite documentation: https://buildkite.com/docs/test-analytics
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as buildkite from "@pulumiverse/buildkite";
20
+ *
21
+ * const owners = new buildkite.team.Team("owners", {
22
+ * defaultTeam: false,
23
+ * privacy: "VISIBLE",
24
+ * defaultMemberRole: "MAINTAINER",
25
+ * });
26
+ * const viewers = new buildkite.team.Team("viewers", {
27
+ * defaultTeam: false,
28
+ * privacy: "VISIBLE",
29
+ * defaultMemberRole: "MAINTAINER",
30
+ * });
31
+ * const rspecSuite = new buildkite.testsuite.TestSuite("rspecSuite", {
32
+ * defaultBranch: "main",
33
+ * teamOwnerId: owners.id,
34
+ * });
35
+ * const viewersRspec = new buildkite.testsuite.Team("viewersRspec", {
36
+ * testSuiteId: rspecSuite.id,
37
+ * teamId: viewers.id,
38
+ * accessLevel: "READ_ONLY",
39
+ * });
40
+ * ```
41
+ *
42
+ * ## Import
43
+ *
44
+ * Test suite teams can be imported using the `GraphQL ID` (not UUID), e.g.
45
+ *
46
+ * ```sh
47
+ * $ pulumi import buildkite:TestSuite/team:Team viewers VGVhbvDf4eRef20tMzIxMGEfYTctNzEF5g00M8f5s6E2YjYtODNlOGNlZgD6HcBi
48
+ * ```
49
+ *
50
+ * 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 {
51
+ *
52
+ * organization(slug"ORGANIZATION_SLUG") {
53
+ *
54
+ * suites(first1, search:"SUITE_SEARCH_TERM") {
55
+ *
56
+ * edges {
57
+ *
58
+ * node {
59
+ *
60
+ * id
61
+ *
62
+ * name
63
+ *
64
+ * teams(first10){
65
+ *
66
+ * edges {
67
+ *
68
+ * node {
69
+ *
70
+ * id
71
+ *
72
+ * accessLevel
73
+ *
74
+ * team{
75
+ *
76
+ * name
77
+ *
78
+ * }
79
+ *
80
+ * }
81
+ *
82
+ * }
83
+ *
84
+ * }
85
+ *
86
+ * }
87
+ *
88
+ * }
89
+ *
90
+ * }
91
+ *
92
+ * } }
93
+ */
94
+ class Team extends pulumi.CustomResource {
95
+ /**
96
+ * Get an existing Team resource's state with the given name, ID, and optional extra
97
+ * properties used to qualify the lookup.
98
+ *
99
+ * @param name The _unique_ name of the resulting resource.
100
+ * @param id The _unique_ provider ID of the resource to lookup.
101
+ * @param state Any extra arguments used during the lookup.
102
+ * @param opts Optional settings to control the behavior of the CustomResource.
103
+ */
104
+ static get(name, id, state, opts) {
105
+ return new Team(name, state, Object.assign(Object.assign({}, opts), { id: id }));
106
+ }
107
+ /**
108
+ * Returns true if the given object is an instance of Team. This is designed to work even
109
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
110
+ */
111
+ static isInstance(obj) {
112
+ if (obj === undefined || obj === null) {
113
+ return false;
114
+ }
115
+ return obj['__pulumiType'] === Team.__pulumiType;
116
+ }
117
+ constructor(name, argsOrState, opts) {
118
+ let resourceInputs = {};
119
+ opts = opts || {};
120
+ if (opts.id) {
121
+ const state = argsOrState;
122
+ resourceInputs["accessLevel"] = state ? state.accessLevel : undefined;
123
+ resourceInputs["teamId"] = state ? state.teamId : undefined;
124
+ resourceInputs["testSuiteId"] = state ? state.testSuiteId : undefined;
125
+ resourceInputs["uuid"] = state ? state.uuid : undefined;
126
+ }
127
+ else {
128
+ const args = argsOrState;
129
+ if ((!args || args.accessLevel === undefined) && !opts.urn) {
130
+ throw new Error("Missing required property 'accessLevel'");
131
+ }
132
+ if ((!args || args.teamId === undefined) && !opts.urn) {
133
+ throw new Error("Missing required property 'teamId'");
134
+ }
135
+ if ((!args || args.testSuiteId === undefined) && !opts.urn) {
136
+ throw new Error("Missing required property 'testSuiteId'");
137
+ }
138
+ resourceInputs["accessLevel"] = args ? args.accessLevel : undefined;
139
+ resourceInputs["teamId"] = args ? args.teamId : undefined;
140
+ resourceInputs["testSuiteId"] = args ? args.testSuiteId : undefined;
141
+ resourceInputs["uuid"] = undefined /*out*/;
142
+ }
143
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
144
+ super(Team.__pulumiType, name, resourceInputs, opts);
145
+ }
146
+ }
147
+ exports.Team = Team;
148
+ /** @internal */
149
+ Team.__pulumiType = 'buildkite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C,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AAhFL,oBAiFC;AAnEG,gBAAgB;AACO,iBAAY,GAAG,+BAA+B,CAAC"}
@@ -0,0 +1,120 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## # Resource: testSuite
4
+ *
5
+ * This resources allows you to create and manage a Test Suite.
6
+ *
7
+ * Buildkite documentation: https://buildkite.com/docs/test-analytics
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as buildkite from "@pulumiverse/buildkite";
14
+ *
15
+ * const test = new buildkite.team.Team("test", {
16
+ * privacy: "VISIBLE",
17
+ * defaultTeam: false,
18
+ * defaultMemberRole: "MEMBER",
19
+ * });
20
+ * const unitTests = new buildkite.testsuite.TestSuite("unitTests", {
21
+ * defaultBranch: "main",
22
+ * teamOwnerId: test.id,
23
+ * });
24
+ * ```
25
+ */
26
+ export declare class TestSuite extends pulumi.CustomResource {
27
+ /**
28
+ * Get an existing TestSuite resource's state with the given name, ID, and optional extra
29
+ * properties used to qualify the lookup.
30
+ *
31
+ * @param name The _unique_ name of the resulting resource.
32
+ * @param id The _unique_ provider ID of the resource to lookup.
33
+ * @param state Any extra arguments used during the lookup.
34
+ * @param opts Optional settings to control the behavior of the CustomResource.
35
+ */
36
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TestSuiteState, opts?: pulumi.CustomResourceOptions): TestSuite;
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: any): obj is TestSuite;
42
+ /**
43
+ * This is the unique API token used when send test results.
44
+ */
45
+ readonly apiToken: pulumi.Output<string>;
46
+ /**
47
+ * This is the default branch used to compare tests against.
48
+ */
49
+ readonly defaultBranch: pulumi.Output<string>;
50
+ /**
51
+ * This is the name of the test suite.
52
+ */
53
+ readonly name: pulumi.Output<string>;
54
+ /**
55
+ * This is the unique slug generated from the name upon creation.
56
+ */
57
+ readonly slug: pulumi.Output<string>;
58
+ /**
59
+ * This is a single team linked to the test suite upon creation.
60
+ */
61
+ readonly teamOwnerId: pulumi.Output<string>;
62
+ /**
63
+ * This is the UUID of the suite.
64
+ */
65
+ readonly uuid: pulumi.Output<string>;
66
+ /**
67
+ * Create a TestSuite resource with the given unique name, arguments, and options.
68
+ *
69
+ * @param name The _unique_ name of the resource.
70
+ * @param args The arguments to use to populate this resource's properties.
71
+ * @param opts A bag of options that control this resource's behavior.
72
+ */
73
+ constructor(name: string, args: TestSuiteArgs, opts?: pulumi.CustomResourceOptions);
74
+ }
75
+ /**
76
+ * Input properties used for looking up and filtering TestSuite resources.
77
+ */
78
+ export interface TestSuiteState {
79
+ /**
80
+ * This is the unique API token used when send test results.
81
+ */
82
+ apiToken?: pulumi.Input<string>;
83
+ /**
84
+ * This is the default branch used to compare tests against.
85
+ */
86
+ defaultBranch?: pulumi.Input<string>;
87
+ /**
88
+ * This is the name of the test suite.
89
+ */
90
+ name?: pulumi.Input<string>;
91
+ /**
92
+ * This is the unique slug generated from the name upon creation.
93
+ */
94
+ slug?: pulumi.Input<string>;
95
+ /**
96
+ * This is a single team linked to the test suite upon creation.
97
+ */
98
+ teamOwnerId?: pulumi.Input<string>;
99
+ /**
100
+ * This is the UUID of the suite.
101
+ */
102
+ uuid?: pulumi.Input<string>;
103
+ }
104
+ /**
105
+ * The set of arguments for constructing a TestSuite resource.
106
+ */
107
+ export interface TestSuiteArgs {
108
+ /**
109
+ * This is the default branch used to compare tests against.
110
+ */
111
+ defaultBranch: pulumi.Input<string>;
112
+ /**
113
+ * This is the name of the test suite.
114
+ */
115
+ name?: pulumi.Input<string>;
116
+ /**
117
+ * This is a single team linked to the test suite upon creation.
118
+ */
119
+ teamOwnerId: pulumi.Input<string>;
120
+ }
@@ -0,0 +1,91 @@
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
+ * ## # Resource: testSuite
10
+ *
11
+ * This resources allows you to create and manage a Test Suite.
12
+ *
13
+ * Buildkite documentation: https://buildkite.com/docs/test-analytics
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as buildkite from "@pulumiverse/buildkite";
20
+ *
21
+ * const test = new buildkite.team.Team("test", {
22
+ * privacy: "VISIBLE",
23
+ * defaultTeam: false,
24
+ * defaultMemberRole: "MEMBER",
25
+ * });
26
+ * const unitTests = new buildkite.testsuite.TestSuite("unitTests", {
27
+ * defaultBranch: "main",
28
+ * teamOwnerId: test.id,
29
+ * });
30
+ * ```
31
+ */
32
+ class TestSuite extends pulumi.CustomResource {
33
+ /**
34
+ * Get an existing TestSuite resource's state with the given name, ID, and optional extra
35
+ * properties used to qualify the lookup.
36
+ *
37
+ * @param name The _unique_ name of the resulting resource.
38
+ * @param id The _unique_ provider ID of the resource to lookup.
39
+ * @param state Any extra arguments used during the lookup.
40
+ * @param opts Optional settings to control the behavior of the CustomResource.
41
+ */
42
+ static get(name, id, state, opts) {
43
+ return new TestSuite(name, state, Object.assign(Object.assign({}, opts), { id: id }));
44
+ }
45
+ /**
46
+ * Returns true if the given object is an instance of TestSuite. This is designed to work even
47
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
48
+ */
49
+ static isInstance(obj) {
50
+ if (obj === undefined || obj === null) {
51
+ return false;
52
+ }
53
+ return obj['__pulumiType'] === TestSuite.__pulumiType;
54
+ }
55
+ constructor(name, argsOrState, opts) {
56
+ let resourceInputs = {};
57
+ opts = opts || {};
58
+ if (opts.id) {
59
+ const state = argsOrState;
60
+ resourceInputs["apiToken"] = state ? state.apiToken : undefined;
61
+ resourceInputs["defaultBranch"] = state ? state.defaultBranch : undefined;
62
+ resourceInputs["name"] = state ? state.name : undefined;
63
+ resourceInputs["slug"] = state ? state.slug : undefined;
64
+ resourceInputs["teamOwnerId"] = state ? state.teamOwnerId : undefined;
65
+ resourceInputs["uuid"] = state ? state.uuid : undefined;
66
+ }
67
+ else {
68
+ const args = argsOrState;
69
+ if ((!args || args.defaultBranch === undefined) && !opts.urn) {
70
+ throw new Error("Missing required property 'defaultBranch'");
71
+ }
72
+ if ((!args || args.teamOwnerId === undefined) && !opts.urn) {
73
+ throw new Error("Missing required property 'teamOwnerId'");
74
+ }
75
+ resourceInputs["defaultBranch"] = args ? args.defaultBranch : undefined;
76
+ resourceInputs["name"] = args ? args.name : undefined;
77
+ resourceInputs["teamOwnerId"] = args ? args.teamOwnerId : undefined;
78
+ resourceInputs["apiToken"] = undefined /*out*/;
79
+ resourceInputs["slug"] = undefined /*out*/;
80
+ resourceInputs["uuid"] = undefined /*out*/;
81
+ }
82
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
83
+ const secretOpts = { additionalSecretOutputs: ["apiToken"] };
84
+ opts = pulumi.mergeOptions(opts, secretOpts);
85
+ super(TestSuite.__pulumiType, name, resourceInputs, opts);
86
+ }
87
+ }
88
+ exports.TestSuite = TestSuite;
89
+ /** @internal */
90
+ TestSuite.__pulumiType = 'buildkite:TestSuite/testSuite:TestSuite';
91
+ //# 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;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAA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