@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.
- package/README.md +3 -3
- package/agent/agentToken.js +2 -0
- package/agent/agentToken.js.map +1 -1
- package/cluster/cluster.d.ts +108 -0
- package/cluster/cluster.js +73 -0
- package/cluster/cluster.js.map +1 -0
- package/cluster/clusterAgentToken.d.ts +97 -0
- package/cluster/clusterAgentToken.js +84 -0
- package/cluster/clusterAgentToken.js.map +1 -0
- package/cluster/clusterQueue.d.ts +162 -0
- package/cluster/clusterQueue.js +137 -0
- package/cluster/clusterQueue.js.map +1 -0
- package/cluster/getCluster.d.ts +47 -0
- package/cluster/getCluster.js +19 -0
- package/cluster/getCluster.js.map +1 -0
- package/cluster/index.d.ts +12 -0
- package/cluster/index.js +35 -0
- package/cluster/index.js.map +1 -0
- package/config/vars.d.ts +5 -1
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/getMeta.d.ts +0 -3
- package/index.d.ts +3 -1
- package/index.js +5 -1
- package/index.js.map +1 -1
- package/organization/getOrganization.d.ts +2 -46
- package/organization/getOrganization.js +3 -32
- package/organization/getOrganization.js.map +1 -1
- package/organization/index.d.ts +4 -2
- package/organization/index.js +7 -3
- package/organization/index.js.map +1 -1
- package/organization/organization.d.ts +78 -0
- package/organization/organization.js +79 -0
- package/organization/organization.js.map +1 -0
- package/organization/settings.d.ts +4 -0
- package/organization/settings.js +4 -0
- package/organization/settings.js.map +1 -1
- package/package.json +2 -2
- package/pipeline/getPipeline.d.ts +1 -4
- package/pipeline/getPipeline.js.map +1 -1
- package/pipeline/index.d.ts +3 -0
- package/pipeline/index.js +6 -1
- package/pipeline/index.js.map +1 -1
- package/pipeline/pipeline.d.ts +45 -98
- package/pipeline/pipeline.js +10 -85
- package/pipeline/pipeline.js.map +1 -1
- package/pipeline/schedule.d.ts +46 -5
- package/pipeline/schedule.js +34 -2
- package/pipeline/schedule.js.map +1 -1
- package/pipeline/team.d.ts +128 -0
- package/pipeline/team.js +112 -0
- package/pipeline/team.js.map +1 -0
- package/provider.d.ts +11 -7
- package/provider.js +5 -8
- package/provider.js.map +1 -1
- package/team/getTeam.d.ts +24 -10
- package/team/getTeam.js +6 -4
- package/team/getTeam.js.map +1 -1
- package/team/member.d.ts +4 -4
- package/team/member.js +4 -4
- package/team/team.d.ts +31 -1
- package/team/team.js +30 -0
- package/team/team.js.map +1 -1
- package/testsuite/index.d.ts +6 -0
- package/testsuite/index.js +27 -0
- package/testsuite/index.js.map +1 -0
- package/testsuite/team.d.ts +166 -0
- package/testsuite/team.js +150 -0
- package/testsuite/team.js.map +1 -0
- package/testsuite/testSuite.d.ts +120 -0
- package/testsuite/testSuite.js +91 -0
- package/testsuite/testSuite.js.map +1 -0
- package/types/input.d.ts +3 -4
- package/types/output.d.ts +8 -9
package/pipeline/schedule.d.ts
CHANGED
|
@@ -22,11 +22,43 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
22
22
|
*
|
|
23
23
|
* ## Import
|
|
24
24
|
*
|
|
25
|
-
* Pipeline schedules can be imported using
|
|
25
|
+
* Pipeline schedules can be imported using their `GraphQL ID`, e.g.
|
|
26
26
|
*
|
|
27
27
|
* ```sh
|
|
28
|
-
* $ pulumi import buildkite:Pipeline/schedule:Schedule test
|
|
28
|
+
* $ pulumi import buildkite:Pipeline/schedule:Schedule test UGlwZWxpgm5Tf2hhZHVsZ35tLWRk4DdmN7c4LTA5M2ItNDM9YS0gMWE0LTAwZDUgYTAxYvRf49==
|
|
29
29
|
* ```
|
|
30
|
+
*
|
|
31
|
+
* Your pipeline schedules' GraphQL ID can be found with the below GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/45687b7c-2565-4acb-8a74-750a3647875f), specifying the organisation slug (when known) and the pipeline search term (PIPELINE_SEARCH_TERM). graphql query getPipelineScheduleId {
|
|
32
|
+
*
|
|
33
|
+
* organization(slug"ORGANIZATION_SLUG") { pipelines(first5, search"PIPELINE_SEARCH_TERM") {
|
|
34
|
+
*
|
|
35
|
+
* edges{
|
|
36
|
+
*
|
|
37
|
+
* node{
|
|
38
|
+
*
|
|
39
|
+
* name
|
|
40
|
+
*
|
|
41
|
+
* schedules{
|
|
42
|
+
*
|
|
43
|
+
* edges{
|
|
44
|
+
*
|
|
45
|
+
* node{
|
|
46
|
+
*
|
|
47
|
+
* id
|
|
48
|
+
*
|
|
49
|
+
* }
|
|
50
|
+
*
|
|
51
|
+
* }
|
|
52
|
+
*
|
|
53
|
+
* }
|
|
54
|
+
*
|
|
55
|
+
* }
|
|
56
|
+
*
|
|
57
|
+
* }
|
|
58
|
+
*
|
|
59
|
+
* }
|
|
60
|
+
*
|
|
61
|
+
* } }
|
|
30
62
|
*/
|
|
31
63
|
export declare class Schedule extends pulumi.CustomResource {
|
|
32
64
|
/**
|
|
@@ -51,7 +83,7 @@ export declare class Schedule extends pulumi.CustomResource {
|
|
|
51
83
|
/**
|
|
52
84
|
* The commit ref to use for the build.
|
|
53
85
|
*/
|
|
54
|
-
readonly commit: pulumi.Output<string
|
|
86
|
+
readonly commit: pulumi.Output<string>;
|
|
55
87
|
/**
|
|
56
88
|
* Schedule interval (see [docs](https://buildkite.com/docs/pipelines/scheduled-builds#schedule-intervals)).
|
|
57
89
|
*/
|
|
@@ -59,7 +91,7 @@ export declare class Schedule extends pulumi.CustomResource {
|
|
|
59
91
|
/**
|
|
60
92
|
* Whether the schedule should run.
|
|
61
93
|
*/
|
|
62
|
-
readonly enabled: pulumi.Output<boolean
|
|
94
|
+
readonly enabled: pulumi.Output<boolean>;
|
|
63
95
|
/**
|
|
64
96
|
* A map of environment variables to use for the build.
|
|
65
97
|
*/
|
|
@@ -73,7 +105,10 @@ export declare class Schedule extends pulumi.CustomResource {
|
|
|
73
105
|
/**
|
|
74
106
|
* The message to use for the build.
|
|
75
107
|
*/
|
|
76
|
-
readonly message: pulumi.Output<string>;
|
|
108
|
+
readonly message: pulumi.Output<string | undefined>;
|
|
109
|
+
/**
|
|
110
|
+
* The ID of the pipeline that this schedule belongs to.
|
|
111
|
+
*/
|
|
77
112
|
readonly pipelineId: pulumi.Output<string>;
|
|
78
113
|
/**
|
|
79
114
|
* The UUID of the pipeline schedule
|
|
@@ -122,6 +157,9 @@ export interface ScheduleState {
|
|
|
122
157
|
* The message to use for the build.
|
|
123
158
|
*/
|
|
124
159
|
message?: pulumi.Input<string>;
|
|
160
|
+
/**
|
|
161
|
+
* The ID of the pipeline that this schedule belongs to.
|
|
162
|
+
*/
|
|
125
163
|
pipelineId?: pulumi.Input<string>;
|
|
126
164
|
/**
|
|
127
165
|
* The UUID of the pipeline schedule
|
|
@@ -162,5 +200,8 @@ export interface ScheduleArgs {
|
|
|
162
200
|
* The message to use for the build.
|
|
163
201
|
*/
|
|
164
202
|
message?: pulumi.Input<string>;
|
|
203
|
+
/**
|
|
204
|
+
* The ID of the pipeline that this schedule belongs to.
|
|
205
|
+
*/
|
|
165
206
|
pipelineId: pulumi.Input<string>;
|
|
166
207
|
}
|
package/pipeline/schedule.js
CHANGED
|
@@ -28,11 +28,43 @@ const utilities = require("../utilities");
|
|
|
28
28
|
*
|
|
29
29
|
* ## Import
|
|
30
30
|
*
|
|
31
|
-
* Pipeline schedules can be imported using
|
|
31
|
+
* Pipeline schedules can be imported using their `GraphQL ID`, e.g.
|
|
32
32
|
*
|
|
33
33
|
* ```sh
|
|
34
|
-
* $ pulumi import buildkite:Pipeline/schedule:Schedule test
|
|
34
|
+
* $ pulumi import buildkite:Pipeline/schedule:Schedule test UGlwZWxpgm5Tf2hhZHVsZ35tLWRk4DdmN7c4LTA5M2ItNDM9YS0gMWE0LTAwZDUgYTAxYvRf49==
|
|
35
35
|
* ```
|
|
36
|
+
*
|
|
37
|
+
* Your pipeline schedules' GraphQL ID can be found with the below GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/45687b7c-2565-4acb-8a74-750a3647875f), specifying the organisation slug (when known) and the pipeline search term (PIPELINE_SEARCH_TERM). graphql query getPipelineScheduleId {
|
|
38
|
+
*
|
|
39
|
+
* organization(slug"ORGANIZATION_SLUG") { pipelines(first5, search"PIPELINE_SEARCH_TERM") {
|
|
40
|
+
*
|
|
41
|
+
* edges{
|
|
42
|
+
*
|
|
43
|
+
* node{
|
|
44
|
+
*
|
|
45
|
+
* name
|
|
46
|
+
*
|
|
47
|
+
* schedules{
|
|
48
|
+
*
|
|
49
|
+
* edges{
|
|
50
|
+
*
|
|
51
|
+
* node{
|
|
52
|
+
*
|
|
53
|
+
* id
|
|
54
|
+
*
|
|
55
|
+
* }
|
|
56
|
+
*
|
|
57
|
+
* }
|
|
58
|
+
*
|
|
59
|
+
* }
|
|
60
|
+
*
|
|
61
|
+
* }
|
|
62
|
+
*
|
|
63
|
+
* }
|
|
64
|
+
*
|
|
65
|
+
* }
|
|
66
|
+
*
|
|
67
|
+
* } }
|
|
36
68
|
*/
|
|
37
69
|
class Schedule extends pulumi.CustomResource {
|
|
38
70
|
/**
|
package/pipeline/schedule.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule.js","sourceRoot":"","sources":["../../pipeline/schedule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"schedule.js","sourceRoot":"","sources":["../../pipeline/schedule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,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IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,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,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAjHL,4BAkHC;AApGG,gBAAgB;AACO,qBAAY,GAAG,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## # Resource: pipelineTeam
|
|
4
|
+
*
|
|
5
|
+
* This resource allows you to create and manage team configuration in a pipeline.
|
|
6
|
+
*
|
|
7
|
+
* Buildkite Documentation: https://buildkite.com/docs/pipelines/permissions#permissions-with-teams-pipeline-level-permissions
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
14
|
+
*
|
|
15
|
+
* const developers = new buildkite.pipeline.Team("developers", {
|
|
16
|
+
* pipelineId: buildkite_pipeline.repo2,
|
|
17
|
+
* teamId: buildkite_team.test.id,
|
|
18
|
+
* accessLevel: "MANAGE_BUILD_AND_READ",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* Pipeline teams can be imported using their `GraphQL ID`, e.g.
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import buildkite:Pipeline/team:Team guests VGVhbS0tLWU1YjQyMDQyLTUzN2QtNDZjNi04MjY0LTliZjFkMzkyYjZkNQ==
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* Your pipeline team's GraphQL ID can be found with the below GraphQL query below.
|
|
31
|
+
*
|
|
32
|
+
* graphql query getPipelineTeamId {
|
|
33
|
+
*
|
|
34
|
+
* pipeline(slug"ORGANIZATION_SLUG/PIPELINE_SLUG") { teams(first5, search"PIPELINE_SEARCH_TERM") {
|
|
35
|
+
*
|
|
36
|
+
* edges{
|
|
37
|
+
*
|
|
38
|
+
* node{
|
|
39
|
+
*
|
|
40
|
+
* id
|
|
41
|
+
*
|
|
42
|
+
* }
|
|
43
|
+
*
|
|
44
|
+
* }
|
|
45
|
+
*
|
|
46
|
+
* }
|
|
47
|
+
*
|
|
48
|
+
* } }
|
|
49
|
+
*/
|
|
50
|
+
export declare class Team extends pulumi.CustomResource {
|
|
51
|
+
/**
|
|
52
|
+
* Get an existing Team resource's state with the given name, ID, and optional extra
|
|
53
|
+
* properties used to qualify the lookup.
|
|
54
|
+
*
|
|
55
|
+
* @param name The _unique_ name of the resulting resource.
|
|
56
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
57
|
+
* @param state Any extra arguments used during the lookup.
|
|
58
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
59
|
+
*/
|
|
60
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TeamState, opts?: pulumi.CustomResourceOptions): Team;
|
|
61
|
+
/**
|
|
62
|
+
* Returns true if the given object is an instance of Team. This is designed to work even
|
|
63
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
64
|
+
*/
|
|
65
|
+
static isInstance(obj: any): obj is Team;
|
|
66
|
+
/**
|
|
67
|
+
* The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.
|
|
68
|
+
*/
|
|
69
|
+
readonly accessLevel: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* The GraphQL ID of the pipeline.
|
|
72
|
+
*/
|
|
73
|
+
readonly pipelineId: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The GraphQL ID of the team to add to/remove from.
|
|
76
|
+
*/
|
|
77
|
+
readonly teamId: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* The UUID of the pipeline schedule
|
|
80
|
+
*/
|
|
81
|
+
readonly uuid: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* Create a Team resource with the given unique name, arguments, and options.
|
|
84
|
+
*
|
|
85
|
+
* @param name The _unique_ name of the resource.
|
|
86
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
87
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
88
|
+
*/
|
|
89
|
+
constructor(name: string, args: TeamArgs, opts?: pulumi.CustomResourceOptions);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Input properties used for looking up and filtering Team resources.
|
|
93
|
+
*/
|
|
94
|
+
export interface TeamState {
|
|
95
|
+
/**
|
|
96
|
+
* The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.
|
|
97
|
+
*/
|
|
98
|
+
accessLevel?: pulumi.Input<string>;
|
|
99
|
+
/**
|
|
100
|
+
* The GraphQL ID of the pipeline.
|
|
101
|
+
*/
|
|
102
|
+
pipelineId?: pulumi.Input<string>;
|
|
103
|
+
/**
|
|
104
|
+
* The GraphQL ID of the team to add to/remove from.
|
|
105
|
+
*/
|
|
106
|
+
teamId?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* The UUID of the pipeline schedule
|
|
109
|
+
*/
|
|
110
|
+
uuid?: pulumi.Input<string>;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* The set of arguments for constructing a Team resource.
|
|
114
|
+
*/
|
|
115
|
+
export interface TeamArgs {
|
|
116
|
+
/**
|
|
117
|
+
* The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.
|
|
118
|
+
*/
|
|
119
|
+
accessLevel: pulumi.Input<string>;
|
|
120
|
+
/**
|
|
121
|
+
* The GraphQL ID of the pipeline.
|
|
122
|
+
*/
|
|
123
|
+
pipelineId: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* The GraphQL ID of the team to add to/remove from.
|
|
126
|
+
*/
|
|
127
|
+
teamId: pulumi.Input<string>;
|
|
128
|
+
}
|
package/pipeline/team.js
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
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: pipelineTeam
|
|
10
|
+
*
|
|
11
|
+
* This resource allows you to create and manage team configuration in a pipeline.
|
|
12
|
+
*
|
|
13
|
+
* Buildkite Documentation: https://buildkite.com/docs/pipelines/permissions#permissions-with-teams-pipeline-level-permissions
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
20
|
+
*
|
|
21
|
+
* const developers = new buildkite.pipeline.Team("developers", {
|
|
22
|
+
* pipelineId: buildkite_pipeline.repo2,
|
|
23
|
+
* teamId: buildkite_team.test.id,
|
|
24
|
+
* accessLevel: "MANAGE_BUILD_AND_READ",
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ## Import
|
|
29
|
+
*
|
|
30
|
+
* Pipeline teams can be imported using their `GraphQL ID`, e.g.
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import buildkite:Pipeline/team:Team guests VGVhbS0tLWU1YjQyMDQyLTUzN2QtNDZjNi04MjY0LTliZjFkMzkyYjZkNQ==
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* Your pipeline team's GraphQL ID can be found with the below GraphQL query below.
|
|
37
|
+
*
|
|
38
|
+
* graphql query getPipelineTeamId {
|
|
39
|
+
*
|
|
40
|
+
* pipeline(slug"ORGANIZATION_SLUG/PIPELINE_SLUG") { teams(first5, search"PIPELINE_SEARCH_TERM") {
|
|
41
|
+
*
|
|
42
|
+
* edges{
|
|
43
|
+
*
|
|
44
|
+
* node{
|
|
45
|
+
*
|
|
46
|
+
* id
|
|
47
|
+
*
|
|
48
|
+
* }
|
|
49
|
+
*
|
|
50
|
+
* }
|
|
51
|
+
*
|
|
52
|
+
* }
|
|
53
|
+
*
|
|
54
|
+
* } }
|
|
55
|
+
*/
|
|
56
|
+
class Team extends pulumi.CustomResource {
|
|
57
|
+
/**
|
|
58
|
+
* Get an existing Team resource's state with the given name, ID, and optional extra
|
|
59
|
+
* properties used to qualify the lookup.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resulting resource.
|
|
62
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
63
|
+
* @param state Any extra arguments used during the lookup.
|
|
64
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
65
|
+
*/
|
|
66
|
+
static get(name, id, state, opts) {
|
|
67
|
+
return new Team(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Returns true if the given object is an instance of Team. This is designed to work even
|
|
71
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
72
|
+
*/
|
|
73
|
+
static isInstance(obj) {
|
|
74
|
+
if (obj === undefined || obj === null) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
return obj['__pulumiType'] === Team.__pulumiType;
|
|
78
|
+
}
|
|
79
|
+
constructor(name, argsOrState, opts) {
|
|
80
|
+
let resourceInputs = {};
|
|
81
|
+
opts = opts || {};
|
|
82
|
+
if (opts.id) {
|
|
83
|
+
const state = argsOrState;
|
|
84
|
+
resourceInputs["accessLevel"] = state ? state.accessLevel : undefined;
|
|
85
|
+
resourceInputs["pipelineId"] = state ? state.pipelineId : undefined;
|
|
86
|
+
resourceInputs["teamId"] = state ? state.teamId : undefined;
|
|
87
|
+
resourceInputs["uuid"] = state ? state.uuid : undefined;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
const args = argsOrState;
|
|
91
|
+
if ((!args || args.accessLevel === undefined) && !opts.urn) {
|
|
92
|
+
throw new Error("Missing required property 'accessLevel'");
|
|
93
|
+
}
|
|
94
|
+
if ((!args || args.pipelineId === undefined) && !opts.urn) {
|
|
95
|
+
throw new Error("Missing required property 'pipelineId'");
|
|
96
|
+
}
|
|
97
|
+
if ((!args || args.teamId === undefined) && !opts.urn) {
|
|
98
|
+
throw new Error("Missing required property 'teamId'");
|
|
99
|
+
}
|
|
100
|
+
resourceInputs["accessLevel"] = args ? args.accessLevel : undefined;
|
|
101
|
+
resourceInputs["pipelineId"] = args ? args.pipelineId : undefined;
|
|
102
|
+
resourceInputs["teamId"] = args ? args.teamId : undefined;
|
|
103
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
104
|
+
}
|
|
105
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
106
|
+
super(Team.__pulumiType, name, resourceInputs, opts);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.Team = Team;
|
|
110
|
+
/** @internal */
|
|
111
|
+
Team.__pulumiType = 'buildkite:Pipeline/team:Team';
|
|
112
|
+
//# sourceMappingURL=team.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team.js","sourceRoot":"","sources":["../../pipeline/team.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3D,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,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;IA2BD,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI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AC,CAAC,CAAC,SAAS,CAAC;YAClE,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,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AAhFL,oBAiFC;AAnEG,gBAAgB;AACO,iBAAY,GAAG,8BAA8B,CAAC"}
|
package/provider.d.ts
CHANGED
|
@@ -12,9 +12,9 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
12
12
|
*/
|
|
13
13
|
static isInstance(obj: any): obj is Provider;
|
|
14
14
|
/**
|
|
15
|
-
* API token with GraphQL access and `write_pipelines, read_pipelines` scopes
|
|
15
|
+
* API token with GraphQL access and `write_pipelines, read_pipelines` and `write_suites` REST API scopes
|
|
16
16
|
*/
|
|
17
|
-
readonly apiToken: pulumi.Output<string>;
|
|
17
|
+
readonly apiToken: pulumi.Output<string | undefined>;
|
|
18
18
|
/**
|
|
19
19
|
* Base URL for the GraphQL API to use
|
|
20
20
|
*/
|
|
@@ -22,7 +22,7 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
22
22
|
/**
|
|
23
23
|
* The Buildkite organization slug
|
|
24
24
|
*/
|
|
25
|
-
readonly organization: pulumi.Output<string>;
|
|
25
|
+
readonly organization: pulumi.Output<string | undefined>;
|
|
26
26
|
/**
|
|
27
27
|
* Base URL for the REST API to use
|
|
28
28
|
*/
|
|
@@ -34,16 +34,20 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
34
34
|
* @param args The arguments to use to populate this resource's properties.
|
|
35
35
|
* @param opts A bag of options that control this resource's behavior.
|
|
36
36
|
*/
|
|
37
|
-
constructor(name: string, args
|
|
37
|
+
constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* The set of arguments for constructing a Provider resource.
|
|
41
41
|
*/
|
|
42
42
|
export interface ProviderArgs {
|
|
43
43
|
/**
|
|
44
|
-
* API token with GraphQL access and `write_pipelines, read_pipelines` scopes
|
|
44
|
+
* API token with GraphQL access and `write_pipelines, read_pipelines` and `write_suites` REST API scopes
|
|
45
45
|
*/
|
|
46
|
-
apiToken
|
|
46
|
+
apiToken?: pulumi.Input<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Archive pipelines when destroying instead of completely deleting.
|
|
49
|
+
*/
|
|
50
|
+
archivePipelineOnDelete?: pulumi.Input<boolean>;
|
|
47
51
|
/**
|
|
48
52
|
* Base URL for the GraphQL API to use
|
|
49
53
|
*/
|
|
@@ -51,7 +55,7 @@ export interface ProviderArgs {
|
|
|
51
55
|
/**
|
|
52
56
|
* The Buildkite organization slug
|
|
53
57
|
*/
|
|
54
|
-
organization
|
|
58
|
+
organization?: pulumi.Input<string>;
|
|
55
59
|
/**
|
|
56
60
|
* Base URL for the REST API to use
|
|
57
61
|
*/
|
package/provider.js
CHANGED
|
@@ -20,7 +20,7 @@ class Provider extends pulumi.ProviderResource {
|
|
|
20
20
|
if (obj === undefined || obj === null) {
|
|
21
21
|
return false;
|
|
22
22
|
}
|
|
23
|
-
return obj['__pulumiType'] === Provider.__pulumiType;
|
|
23
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Create a Provider resource with the given unique name, arguments, and options.
|
|
@@ -33,18 +33,15 @@ class Provider extends pulumi.ProviderResource {
|
|
|
33
33
|
let resourceInputs = {};
|
|
34
34
|
opts = opts || {};
|
|
35
35
|
{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
if ((!args || args.organization === undefined) && !opts.urn) {
|
|
40
|
-
throw new Error("Missing required property 'organization'");
|
|
41
|
-
}
|
|
42
|
-
resourceInputs["apiToken"] = args ? args.apiToken : undefined;
|
|
36
|
+
resourceInputs["apiToken"] = (args === null || args === void 0 ? void 0 : args.apiToken) ? pulumi.secret(args.apiToken) : undefined;
|
|
37
|
+
resourceInputs["archivePipelineOnDelete"] = pulumi.output(args ? args.archivePipelineOnDelete : undefined).apply(JSON.stringify);
|
|
43
38
|
resourceInputs["graphqlUrl"] = args ? args.graphqlUrl : undefined;
|
|
44
39
|
resourceInputs["organization"] = args ? args.organization : undefined;
|
|
45
40
|
resourceInputs["restUrl"] = args ? args.restUrl : undefined;
|
|
46
41
|
}
|
|
47
42
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
43
|
+
const secretOpts = { additionalSecretOutputs: ["apiToken"] };
|
|
44
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
48
45
|
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
49
46
|
}
|
|
50
47
|
}
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;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,QAAQ,CAAC,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;A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AAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QAC7D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AArDL,4BAsDC;AArDG,gBAAgB;AACO,qBAAY,GAAG,WAAW,CAAC"}
|
package/team/getTeam.d.ts
CHANGED
|
@@ -13,20 +13,27 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
13
13
|
* import * as pulumi from "@pulumi/pulumi";
|
|
14
14
|
* import * as buildkite from "@pulumi/buildkite";
|
|
15
15
|
*
|
|
16
|
-
* const
|
|
17
|
-
*
|
|
16
|
+
* const myTeamData = buildkite.Team.getTeam({
|
|
17
|
+
* id: "<team id>",
|
|
18
18
|
* });
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
export declare function getTeam(args
|
|
21
|
+
export declare function getTeam(args?: GetTeamArgs, opts?: pulumi.InvokeOptions): Promise<GetTeamResult>;
|
|
22
22
|
/**
|
|
23
23
|
* A collection of arguments for invoking getTeam.
|
|
24
24
|
*/
|
|
25
25
|
export interface GetTeamArgs {
|
|
26
26
|
/**
|
|
27
|
-
* The
|
|
27
|
+
* The GraphQL ID of the team, available in the Settings page for the team.
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The slug of the team. Available in the URL of the team on buildkite.com; in the format
|
|
32
|
+
* "<organizaton/team-name>"
|
|
33
|
+
*
|
|
34
|
+
* The `team` data-source supports **either** the use of `id` or `slug` for lookup of a team.
|
|
35
|
+
*/
|
|
36
|
+
slug?: string;
|
|
30
37
|
}
|
|
31
38
|
/**
|
|
32
39
|
* A collection of values returned by getTeam.
|
|
@@ -80,18 +87,25 @@ export interface GetTeamResult {
|
|
|
80
87
|
* import * as pulumi from "@pulumi/pulumi";
|
|
81
88
|
* import * as buildkite from "@pulumi/buildkite";
|
|
82
89
|
*
|
|
83
|
-
* const
|
|
84
|
-
*
|
|
90
|
+
* const myTeamData = buildkite.Team.getTeam({
|
|
91
|
+
* id: "<team id>",
|
|
85
92
|
* });
|
|
86
93
|
* ```
|
|
87
94
|
*/
|
|
88
|
-
export declare function getTeamOutput(args
|
|
95
|
+
export declare function getTeamOutput(args?: GetTeamOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTeamResult>;
|
|
89
96
|
/**
|
|
90
97
|
* A collection of arguments for invoking getTeam.
|
|
91
98
|
*/
|
|
92
99
|
export interface GetTeamOutputArgs {
|
|
93
100
|
/**
|
|
94
|
-
* The
|
|
101
|
+
* The GraphQL ID of the team, available in the Settings page for the team.
|
|
102
|
+
*/
|
|
103
|
+
id?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* The slug of the team. Available in the URL of the team on buildkite.com; in the format
|
|
106
|
+
* "<organizaton/team-name>"
|
|
107
|
+
*
|
|
108
|
+
* The `team` data-source supports **either** the use of `id` or `slug` for lookup of a team.
|
|
95
109
|
*/
|
|
96
|
-
slug
|
|
110
|
+
slug?: pulumi.Input<string>;
|
|
97
111
|
}
|
package/team/getTeam.js
CHANGED
|
@@ -19,14 +19,16 @@ const utilities = require("../utilities");
|
|
|
19
19
|
* import * as pulumi from "@pulumi/pulumi";
|
|
20
20
|
* import * as buildkite from "@pulumi/buildkite";
|
|
21
21
|
*
|
|
22
|
-
* const
|
|
23
|
-
*
|
|
22
|
+
* const myTeamData = buildkite.Team.getTeam({
|
|
23
|
+
* id: "<team id>",
|
|
24
24
|
* });
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
27
|
function getTeam(args, opts) {
|
|
28
|
+
args = args || {};
|
|
28
29
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
29
30
|
return pulumi.runtime.invoke("buildkite:Team/getTeam:getTeam", {
|
|
31
|
+
"id": args.id,
|
|
30
32
|
"slug": args.slug,
|
|
31
33
|
}, opts);
|
|
32
34
|
}
|
|
@@ -45,8 +47,8 @@ exports.getTeam = getTeam;
|
|
|
45
47
|
* import * as pulumi from "@pulumi/pulumi";
|
|
46
48
|
* import * as buildkite from "@pulumi/buildkite";
|
|
47
49
|
*
|
|
48
|
-
* const
|
|
49
|
-
*
|
|
50
|
+
* const myTeamData = buildkite.Team.getTeam({
|
|
51
|
+
* id: "<team id>",
|
|
50
52
|
* });
|
|
51
53
|
* ```
|
|
52
54
|
*/
|
package/team/getTeam.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTeam.js","sourceRoot":"","sources":["../../team/getTeam.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"getTeam.js","sourceRoot":"","sources":["../../team/getTeam.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,OAAO,CAAC,IAAkB,EAAE,IAA2B;IACnE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,EAAE;QAC3D,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0BAQC;AAyDD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,sCAEC"}
|
package/team/member.d.ts
CHANGED
|
@@ -36,17 +36,17 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
36
36
|
* $ pulumi import buildkite:Team/member:Member a_smith VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==
|
|
37
37
|
* ```
|
|
38
38
|
*
|
|
39
|
-
* To find the ID
|
|
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 {
|
|
40
40
|
*
|
|
41
|
-
* organization(slug"") {
|
|
41
|
+
* organization(slug"ORGANIZATION_SLUG") {
|
|
42
42
|
*
|
|
43
|
-
* teams(first2, search"") {
|
|
43
|
+
* teams(first2, search"TEAM_SEARCH_TERM") {
|
|
44
44
|
*
|
|
45
45
|
* edges {
|
|
46
46
|
*
|
|
47
47
|
* node {
|
|
48
48
|
*
|
|
49
|
-
* members(first2, search"") {
|
|
49
|
+
* members(first2, search"TEAM_MEMBER_SEARCH_TERM") {
|
|
50
50
|
*
|
|
51
51
|
* edges {
|
|
52
52
|
*
|
package/team/member.js
CHANGED
|
@@ -42,17 +42,17 @@ const utilities = require("../utilities");
|
|
|
42
42
|
* $ pulumi import buildkite:Team/member:Member a_smith VGVhbU1lbWJlci0tLTVlZDEyMmY2LTM2NjQtNDI1MS04YzMwLTc4NjRiMDdiZDQ4Zg==
|
|
43
43
|
* ```
|
|
44
44
|
*
|
|
45
|
-
* To find the ID
|
|
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 {
|
|
46
46
|
*
|
|
47
|
-
* organization(slug"") {
|
|
47
|
+
* organization(slug"ORGANIZATION_SLUG") {
|
|
48
48
|
*
|
|
49
|
-
* teams(first2, search"") {
|
|
49
|
+
* teams(first2, search"TEAM_SEARCH_TERM") {
|
|
50
50
|
*
|
|
51
51
|
* edges {
|
|
52
52
|
*
|
|
53
53
|
* node {
|
|
54
54
|
*
|
|
55
|
-
* members(first2, search"") {
|
|
55
|
+
* members(first2, search"TEAM_MEMBER_SEARCH_TERM") {
|
|
56
56
|
*
|
|
57
57
|
* edges {
|
|
58
58
|
*
|