@pulumiverse/buildkite 2.2.0 → 2.3.0
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/index.d.ts +2 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/organization/settings.d.ts +2 -0
- package/organization/settings.js +2 -0
- package/organization/settings.js.map +1 -1
- package/package.json +2 -2
- package/pipeline/pipeline.d.ts +28 -2
- package/pipeline/pipeline.js +25 -0
- package/pipeline/pipeline.js.map +1 -1
- package/pipeline/schedule.d.ts +38 -0
- package/pipeline/schedule.js +38 -0
- package/pipeline/schedule.js.map +1 -1
- package/provider.d.ts +5 -5
- package/provider.js +4 -8
- package/provider.js.map +1 -1
- package/team/member.d.ts +4 -4
- package/team/member.js +4 -4
- package/team/team.d.ts +30 -0
- package/team/team.js +30 -0
- package/team/team.js.map +1 -1
|
@@ -0,0 +1,137 @@
|
|
|
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.ClusterQueue = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## # Resource: clusterQueue
|
|
10
|
+
*
|
|
11
|
+
* This resource allows you to create and manage cluster queues.
|
|
12
|
+
*
|
|
13
|
+
* Buildkite Documentation: https://buildkite.com/docs/clusters/manage-clusters#set-up-clusters-create-a-queue
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
20
|
+
*
|
|
21
|
+
* const queue1 = new buildkite.cluster.ClusterQueue("queue1", {
|
|
22
|
+
* clusterId: "Q2x1c3Rlci0tLTMzMDc0ZDhiLTM4MjctNDRkNC05YTQ3LTkwN2E2NWZjODViNg==",
|
|
23
|
+
* description: "Prod deployment cluster queue",
|
|
24
|
+
* key: "prod-deploy",
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ## Import
|
|
29
|
+
*
|
|
30
|
+
* Cluster queues can be imported using its `GraphQL ID`, along with its respective cluster `UUID`, separated by a comma. e.g.
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import buildkite:Cluster/clusterQueue:ClusterQueue test Q2x1c3RlclF1ZXVlLS0tYjJiOGRhNTEtOWY5My00Y2MyLTkyMjktMGRiNzg3ZDQzOTAz,35498aaf-ad05-4fa5-9a07-91bf6cacd2bd
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* To find the cluster's `UUID` to utilize, you can use the below GraphQL query below. Alternatively, you can use this [pre-saved query](https://buildkite.com/user/graphql/console/3adf0389-02bd-45ef-adcd-4e8e5ae57f25), where you will need fo fill in the organization slug (ORGANIZATION_SLUG) for obtaining the relevant cluster name/`UUID` that the cluster queue is in. graphql query getClusters {
|
|
37
|
+
*
|
|
38
|
+
* organization(slug"ORGANIZATION_SLUG") {
|
|
39
|
+
*
|
|
40
|
+
* clusters(first50) {
|
|
41
|
+
*
|
|
42
|
+
* edges{
|
|
43
|
+
*
|
|
44
|
+
* node{
|
|
45
|
+
*
|
|
46
|
+
* name
|
|
47
|
+
*
|
|
48
|
+
* uuid
|
|
49
|
+
*
|
|
50
|
+
* }
|
|
51
|
+
*
|
|
52
|
+
* }
|
|
53
|
+
*
|
|
54
|
+
* }
|
|
55
|
+
*
|
|
56
|
+
* } } After the cluster `UUID` has been found, you can use the below GraphQL query to find the cluster queue's `GraphQL ID`. Alternatively, this [pre-saved query](https://buildkite.com/user/graphql/console/1d913905-900e-40e7-8f46-651543487b5a) can be used, specifying the organization slug (ORGANIZATION_SLUG) and the cluster `UUID` from above (CLUSTER_UUID). graphql query getClusterQueues {
|
|
57
|
+
*
|
|
58
|
+
* organization(slug"ORGANIZATION_SLUG") {
|
|
59
|
+
*
|
|
60
|
+
* cluster(id"CLUSTER_UUID") {
|
|
61
|
+
*
|
|
62
|
+
* queues(first50) {
|
|
63
|
+
*
|
|
64
|
+
* edges {
|
|
65
|
+
*
|
|
66
|
+
* node {
|
|
67
|
+
*
|
|
68
|
+
* id
|
|
69
|
+
*
|
|
70
|
+
* key
|
|
71
|
+
*
|
|
72
|
+
* }
|
|
73
|
+
*
|
|
74
|
+
* }
|
|
75
|
+
*
|
|
76
|
+
* }
|
|
77
|
+
*
|
|
78
|
+
* }
|
|
79
|
+
*
|
|
80
|
+
* } }
|
|
81
|
+
*/
|
|
82
|
+
class ClusterQueue extends pulumi.CustomResource {
|
|
83
|
+
/**
|
|
84
|
+
* Get an existing ClusterQueue 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, id, state, opts) {
|
|
93
|
+
return new ClusterQueue(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Returns true if the given object is an instance of ClusterQueue. This is designed to work even
|
|
97
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
98
|
+
*/
|
|
99
|
+
static isInstance(obj) {
|
|
100
|
+
if (obj === undefined || obj === null) {
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
return obj['__pulumiType'] === ClusterQueue.__pulumiType;
|
|
104
|
+
}
|
|
105
|
+
constructor(name, argsOrState, opts) {
|
|
106
|
+
let resourceInputs = {};
|
|
107
|
+
opts = opts || {};
|
|
108
|
+
if (opts.id) {
|
|
109
|
+
const state = argsOrState;
|
|
110
|
+
resourceInputs["clusterId"] = state ? state.clusterId : undefined;
|
|
111
|
+
resourceInputs["clusterUuid"] = state ? state.clusterUuid : undefined;
|
|
112
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
113
|
+
resourceInputs["key"] = state ? state.key : undefined;
|
|
114
|
+
resourceInputs["uuid"] = state ? state.uuid : undefined;
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
const args = argsOrState;
|
|
118
|
+
if ((!args || args.clusterId === undefined) && !opts.urn) {
|
|
119
|
+
throw new Error("Missing required property 'clusterId'");
|
|
120
|
+
}
|
|
121
|
+
if ((!args || args.key === undefined) && !opts.urn) {
|
|
122
|
+
throw new Error("Missing required property 'key'");
|
|
123
|
+
}
|
|
124
|
+
resourceInputs["clusterId"] = args ? args.clusterId : undefined;
|
|
125
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
126
|
+
resourceInputs["key"] = args ? args.key : undefined;
|
|
127
|
+
resourceInputs["clusterUuid"] = undefined /*out*/;
|
|
128
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
129
|
+
}
|
|
130
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
131
|
+
super(ClusterQueue.__pulumiType, name, resourceInputs, opts);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.ClusterQueue = ClusterQueue;
|
|
135
|
+
/** @internal */
|
|
136
|
+
ClusterQueue.__pulumiType = 'buildkite:Cluster/clusterQueue:ClusterQueue';
|
|
137
|
+
//# sourceMappingURL=clusterQueue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clusterQueue.js","sourceRoot":"","sources":["../../cluster/clusterQueue.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IA+BD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CA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GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,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,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAnFL,oCAoFC;AAtEG,gBAAgB;AACO,yBAAY,GAAG,6CAA6C,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare function getCluster(args: GetClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetClusterResult>;
|
|
3
|
+
/**
|
|
4
|
+
* A collection of arguments for invoking getCluster.
|
|
5
|
+
*/
|
|
6
|
+
export interface GetClusterArgs {
|
|
7
|
+
/**
|
|
8
|
+
* The name of the cluster to lookup.
|
|
9
|
+
*/
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A collection of values returned by getCluster.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetClusterResult {
|
|
16
|
+
/**
|
|
17
|
+
* The color given the cluster.
|
|
18
|
+
*/
|
|
19
|
+
readonly color: string;
|
|
20
|
+
/**
|
|
21
|
+
* The description of the cluster.
|
|
22
|
+
*/
|
|
23
|
+
readonly description: string;
|
|
24
|
+
/**
|
|
25
|
+
* The emoji given the cluster.
|
|
26
|
+
*/
|
|
27
|
+
readonly emoji: string;
|
|
28
|
+
/**
|
|
29
|
+
* The GraphQL ID of the cluster.
|
|
30
|
+
*/
|
|
31
|
+
readonly id: string;
|
|
32
|
+
readonly name: string;
|
|
33
|
+
/**
|
|
34
|
+
* The UUID of the cluster.
|
|
35
|
+
*/
|
|
36
|
+
readonly uuid: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function getClusterOutput(args: GetClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetClusterResult>;
|
|
39
|
+
/**
|
|
40
|
+
* A collection of arguments for invoking getCluster.
|
|
41
|
+
*/
|
|
42
|
+
export interface GetClusterOutputArgs {
|
|
43
|
+
/**
|
|
44
|
+
* The name of the cluster to lookup.
|
|
45
|
+
*/
|
|
46
|
+
name: pulumi.Input<string>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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.getClusterOutput = exports.getCluster = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
function getCluster(args, opts) {
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("buildkite:Cluster/getCluster:getCluster", {
|
|
11
|
+
"name": args.name,
|
|
12
|
+
}, opts);
|
|
13
|
+
}
|
|
14
|
+
exports.getCluster = getCluster;
|
|
15
|
+
function getClusterOutput(args, opts) {
|
|
16
|
+
return pulumi.output(args).apply((a) => getCluster(a, opts));
|
|
17
|
+
}
|
|
18
|
+
exports.getClusterOutput = getClusterOutput;
|
|
19
|
+
//# sourceMappingURL=getCluster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCluster.js","sourceRoot":"","sources":["../../cluster/getCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE;QACpE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gCAMC;AAsCD,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { ClusterArgs, ClusterState } from "./cluster";
|
|
2
|
+
export type Cluster = import("./cluster").Cluster;
|
|
3
|
+
export declare const Cluster: typeof import("./cluster").Cluster;
|
|
4
|
+
export { ClusterAgentTokenArgs, ClusterAgentTokenState } from "./clusterAgentToken";
|
|
5
|
+
export type ClusterAgentToken = import("./clusterAgentToken").ClusterAgentToken;
|
|
6
|
+
export declare const ClusterAgentToken: typeof import("./clusterAgentToken").ClusterAgentToken;
|
|
7
|
+
export { ClusterQueueArgs, ClusterQueueState } from "./clusterQueue";
|
|
8
|
+
export type ClusterQueue = import("./clusterQueue").ClusterQueue;
|
|
9
|
+
export declare const ClusterQueue: typeof import("./clusterQueue").ClusterQueue;
|
|
10
|
+
export { GetClusterArgs, GetClusterResult, GetClusterOutputArgs } from "./getCluster";
|
|
11
|
+
export declare const getCluster: typeof import("./getCluster").getCluster;
|
|
12
|
+
export declare const getClusterOutput: typeof import("./getCluster").getClusterOutput;
|
package/cluster/index.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
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.getClusterOutput = exports.getCluster = exports.ClusterQueue = exports.ClusterAgentToken = exports.Cluster = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
exports.Cluster = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["Cluster"], () => require("./cluster"));
|
|
10
|
+
exports.ClusterAgentToken = null;
|
|
11
|
+
utilities.lazyLoad(exports, ["ClusterAgentToken"], () => require("./clusterAgentToken"));
|
|
12
|
+
exports.ClusterQueue = null;
|
|
13
|
+
utilities.lazyLoad(exports, ["ClusterQueue"], () => require("./clusterQueue"));
|
|
14
|
+
exports.getCluster = null;
|
|
15
|
+
exports.getClusterOutput = null;
|
|
16
|
+
utilities.lazyLoad(exports, ["getCluster", "getClusterOutput"], () => require("./getCluster"));
|
|
17
|
+
const _module = {
|
|
18
|
+
version: utilities.getVersion(),
|
|
19
|
+
construct: (name, type, urn) => {
|
|
20
|
+
switch (type) {
|
|
21
|
+
case "buildkite:Cluster/cluster:Cluster":
|
|
22
|
+
return new exports.Cluster(name, undefined, { urn });
|
|
23
|
+
case "buildkite:Cluster/clusterAgentToken:ClusterAgentToken":
|
|
24
|
+
return new exports.ClusterAgentToken(name, undefined, { urn });
|
|
25
|
+
case "buildkite:Cluster/clusterQueue:ClusterQueue":
|
|
26
|
+
return new exports.ClusterQueue(name, undefined, { urn });
|
|
27
|
+
default:
|
|
28
|
+
throw new Error(`unknown resource type ${type}`);
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
pulumi.runtime.registerResourceModule("buildkite", "Cluster/cluster", _module);
|
|
33
|
+
pulumi.runtime.registerResourceModule("buildkite", "Cluster/clusterAgentToken", _module);
|
|
34
|
+
pulumi.runtime.registerResourceModule("buildkite", "Cluster/clusterQueue", _module);
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","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,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC1D;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAA;AAC9E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,2BAA2B,EAAE,OAAO,CAAC,CAAA;AACxF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,EAAE,OAAO,CAAC,CAAA"}
|
package/index.d.ts
CHANGED
|
@@ -4,9 +4,10 @@ export { ProviderArgs } from "./provider";
|
|
|
4
4
|
export type Provider = import("./provider").Provider;
|
|
5
5
|
export declare const Provider: typeof import("./provider").Provider;
|
|
6
6
|
import * as agent from "./agent";
|
|
7
|
+
import * as cluster from "./cluster";
|
|
7
8
|
import * as config from "./config";
|
|
8
9
|
import * as organization from "./organization";
|
|
9
10
|
import * as pipeline from "./pipeline";
|
|
10
11
|
import * as team from "./team";
|
|
11
12
|
import * as types from "./types";
|
|
12
|
-
export { agent, config, organization, pipeline, team, types, };
|
|
13
|
+
export { agent, cluster, config, organization, pipeline, team, types, };
|
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.types = exports.team = exports.pipeline = exports.organization = exports.config = exports.agent = exports.Provider = exports.getMeta = void 0;
|
|
5
|
+
exports.types = exports.team = exports.pipeline = exports.organization = exports.config = exports.cluster = exports.agent = exports.Provider = exports.getMeta = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
exports.getMeta = null;
|
|
@@ -12,6 +12,8 @@ utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
|
|
12
12
|
// Export sub-modules:
|
|
13
13
|
const agent = require("./agent");
|
|
14
14
|
exports.agent = agent;
|
|
15
|
+
const cluster = require("./cluster");
|
|
16
|
+
exports.cluster = cluster;
|
|
15
17
|
const config = require("./config");
|
|
16
18
|
exports.config = config;
|
|
17
19
|
const organization = require("./organization");
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAI5B,QAAA,OAAO,GAAuC,IAAW,CAAC;AACvE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAIxD,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAGvE,sBAAsB;AACtB,iCAAiC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAI5B,QAAA,OAAO,GAAuC,IAAW,CAAC;AACvE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAIxD,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAGvE,sBAAsB;AACtB,iCAAiC;AAS7B,sBAAK;AART,qCAAqC;AASjC,0BAAO;AARX,mCAAmC;AAS/B,wBAAM;AARV,+CAA+C;AAS3C,oCAAY;AARhB,uCAAuC;AASnC,4BAAQ;AARZ,+BAA+B;AAS3B,oBAAI;AARR,iCAAiC;AAS7B,sBAAK;AAET,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,WAAW,EAAE;IAChD,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,4BAA4B,EAAE;YACvC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
|
|
@@ -24,6 +24,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
24
24
|
* ```sh
|
|
25
25
|
* $ pulumi import buildkite:Organization/settings:Settings test_settings test_org
|
|
26
26
|
* ```
|
|
27
|
+
*
|
|
28
|
+
* Your organization's slug can be found in your organisation's [settings](https://buildkite.com/organizations/~/settings) page.
|
|
27
29
|
*/
|
|
28
30
|
export declare class Settings extends pulumi.CustomResource {
|
|
29
31
|
/**
|
package/organization/settings.js
CHANGED
|
@@ -30,6 +30,8 @@ const utilities = require("../utilities");
|
|
|
30
30
|
* ```sh
|
|
31
31
|
* $ pulumi import buildkite:Organization/settings:Settings test_settings test_org
|
|
32
32
|
* ```
|
|
33
|
+
*
|
|
34
|
+
* Your organization's slug can be found in your organisation's [settings](https://buildkite.com/organizations/~/settings) page.
|
|
33
35
|
*/
|
|
34
36
|
class Settings extends pulumi.CustomResource {
|
|
35
37
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../organization/settings.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../organization/settings.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;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,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAgBD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1F,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;aAAM;YACH,MAAM,IAAI,GAAG,WAAuC,CAAC;YACrD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,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;;AAxDL,4BAyDC;AA3CG,gBAAgB;AACO,qBAAY,GAAG,0CAA0C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumiverse/buildkite",
|
|
3
|
-
"version": "v2.
|
|
3
|
+
"version": "v2.3.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Buildkite resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource buildkite v2.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource buildkite v2.3.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/pipeline/pipeline.d.ts
CHANGED
|
@@ -59,6 +59,21 @@ import * as outputs from "../types/output";
|
|
|
59
59
|
* ```
|
|
60
60
|
*
|
|
61
61
|
* `deletionProtection` will block `destroy` actions on the **pipeline**. Attached resources, such as `schedules` will still be destroyed.
|
|
62
|
+
* ### With Archive On Delete
|
|
63
|
+
*
|
|
64
|
+
* ```typescript
|
|
65
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
66
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
67
|
+
* import * as fs from "fs";
|
|
68
|
+
*
|
|
69
|
+
* const testNew = new buildkite.pipeline.Pipeline("testNew", {
|
|
70
|
+
* repository: "https://github.com/buildkite/terraform-provider-buildkite.git",
|
|
71
|
+
* steps: fs.readFileSync("./deploy-steps.yml"),
|
|
72
|
+
* archiveOnDelete: true,
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* `archiveOnDelete` will archive the **pipeline** when `destroy` is called. Attached resources, such as `schedules` will still be destroyed. In order to delete the pipeline, `archiveOnDelete` must be set to `false` in the configuration, then `destroy` must be called again.
|
|
62
77
|
* ### With GitHub Provider Settings
|
|
63
78
|
*
|
|
64
79
|
* ```typescript
|
|
@@ -94,6 +109,14 @@ import * as outputs from "../types/output";
|
|
|
94
109
|
* ```sh
|
|
95
110
|
* $ pulumi import buildkite:Pipeline/pipeline:Pipeline fleet UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
|
|
96
111
|
* ```
|
|
112
|
+
*
|
|
113
|
+
* 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/04e6ac1d-222e-49f9-8167-4767ab0f5362). graphql query getPipelineId {
|
|
114
|
+
*
|
|
115
|
+
* pipeline(slug"ORGANIZATION_SLUG/PIPELINE_SLUG") {
|
|
116
|
+
*
|
|
117
|
+
* id
|
|
118
|
+
*
|
|
119
|
+
* } }
|
|
97
120
|
*/
|
|
98
121
|
export declare class Pipeline extends pulumi.CustomResource {
|
|
99
122
|
/**
|
|
@@ -114,7 +137,8 @@ export declare class Pipeline extends pulumi.CustomResource {
|
|
|
114
137
|
/**
|
|
115
138
|
* A boolean on whether or not to allow rebuilds for the pipeline.
|
|
116
139
|
*/
|
|
117
|
-
readonly allowRebuilds: pulumi.Output<boolean>;
|
|
140
|
+
readonly allowRebuilds: pulumi.Output<boolean | undefined>;
|
|
141
|
+
readonly archiveOnDelete: pulumi.Output<boolean | undefined>;
|
|
118
142
|
/**
|
|
119
143
|
* The pipeline's last build status so you can display build status badge.
|
|
120
144
|
*/
|
|
@@ -122,7 +146,7 @@ export declare class Pipeline extends pulumi.CustomResource {
|
|
|
122
146
|
/**
|
|
123
147
|
* Limit which branches and tags cause new builds to be created, either via a code push or via the Builds REST API.
|
|
124
148
|
*/
|
|
125
|
-
readonly branchConfiguration: pulumi.Output<string>;
|
|
149
|
+
readonly branchConfiguration: pulumi.Output<string | undefined>;
|
|
126
150
|
/**
|
|
127
151
|
* A boolean to enable automatically cancelling any running builds on the same branch when a new build is created.
|
|
128
152
|
*/
|
|
@@ -209,6 +233,7 @@ export interface PipelineState {
|
|
|
209
233
|
* A boolean on whether or not to allow rebuilds for the pipeline.
|
|
210
234
|
*/
|
|
211
235
|
allowRebuilds?: pulumi.Input<boolean>;
|
|
236
|
+
archiveOnDelete?: pulumi.Input<boolean>;
|
|
212
237
|
/**
|
|
213
238
|
* The pipeline's last build status so you can display build status badge.
|
|
214
239
|
*/
|
|
@@ -295,6 +320,7 @@ export interface PipelineArgs {
|
|
|
295
320
|
* A boolean on whether or not to allow rebuilds for the pipeline.
|
|
296
321
|
*/
|
|
297
322
|
allowRebuilds?: pulumi.Input<boolean>;
|
|
323
|
+
archiveOnDelete?: pulumi.Input<boolean>;
|
|
298
324
|
/**
|
|
299
325
|
* Limit which branches and tags cause new builds to be created, either via a code push or via the Builds REST API.
|
|
300
326
|
*/
|
package/pipeline/pipeline.js
CHANGED
|
@@ -63,6 +63,21 @@ const utilities = require("../utilities");
|
|
|
63
63
|
* ```
|
|
64
64
|
*
|
|
65
65
|
* `deletionProtection` will block `destroy` actions on the **pipeline**. Attached resources, such as `schedules` will still be destroyed.
|
|
66
|
+
* ### With Archive On Delete
|
|
67
|
+
*
|
|
68
|
+
* ```typescript
|
|
69
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
70
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
71
|
+
* import * as fs from "fs";
|
|
72
|
+
*
|
|
73
|
+
* const testNew = new buildkite.pipeline.Pipeline("testNew", {
|
|
74
|
+
* repository: "https://github.com/buildkite/terraform-provider-buildkite.git",
|
|
75
|
+
* steps: fs.readFileSync("./deploy-steps.yml"),
|
|
76
|
+
* archiveOnDelete: true,
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* `archiveOnDelete` will archive the **pipeline** when `destroy` is called. Attached resources, such as `schedules` will still be destroyed. In order to delete the pipeline, `archiveOnDelete` must be set to `false` in the configuration, then `destroy` must be called again.
|
|
66
81
|
* ### With GitHub Provider Settings
|
|
67
82
|
*
|
|
68
83
|
* ```typescript
|
|
@@ -98,6 +113,14 @@ const utilities = require("../utilities");
|
|
|
98
113
|
* ```sh
|
|
99
114
|
* $ pulumi import buildkite:Pipeline/pipeline:Pipeline fleet UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
|
|
100
115
|
* ```
|
|
116
|
+
*
|
|
117
|
+
* 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/04e6ac1d-222e-49f9-8167-4767ab0f5362). graphql query getPipelineId {
|
|
118
|
+
*
|
|
119
|
+
* pipeline(slug"ORGANIZATION_SLUG/PIPELINE_SLUG") {
|
|
120
|
+
*
|
|
121
|
+
* id
|
|
122
|
+
*
|
|
123
|
+
* } }
|
|
101
124
|
*/
|
|
102
125
|
class Pipeline extends pulumi.CustomResource {
|
|
103
126
|
/**
|
|
@@ -128,6 +151,7 @@ class Pipeline extends pulumi.CustomResource {
|
|
|
128
151
|
if (opts.id) {
|
|
129
152
|
const state = argsOrState;
|
|
130
153
|
resourceInputs["allowRebuilds"] = state ? state.allowRebuilds : undefined;
|
|
154
|
+
resourceInputs["archiveOnDelete"] = state ? state.archiveOnDelete : undefined;
|
|
131
155
|
resourceInputs["badgeUrl"] = state ? state.badgeUrl : undefined;
|
|
132
156
|
resourceInputs["branchConfiguration"] = state ? state.branchConfiguration : undefined;
|
|
133
157
|
resourceInputs["cancelIntermediateBuilds"] = state ? state.cancelIntermediateBuilds : undefined;
|
|
@@ -155,6 +179,7 @@ class Pipeline extends pulumi.CustomResource {
|
|
|
155
179
|
throw new Error("Missing required property 'repository'");
|
|
156
180
|
}
|
|
157
181
|
resourceInputs["allowRebuilds"] = args ? args.allowRebuilds : undefined;
|
|
182
|
+
resourceInputs["archiveOnDelete"] = args ? args.archiveOnDelete : undefined;
|
|
158
183
|
resourceInputs["branchConfiguration"] = args ? args.branchConfiguration : undefined;
|
|
159
184
|
resourceInputs["cancelIntermediateBuilds"] = args ? args.cancelIntermediateBuilds : undefined;
|
|
160
185
|
resourceInputs["cancelIntermediateBuildsBranchFilter"] = args ? args.cancelIntermediateBuildsBranchFilter : undefined;
|
package/pipeline/pipeline.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../../pipeline/pipeline.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../../pipeline/pipeline.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoHG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC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C,kCAAkC,CAAC,CAAC,CAAC,SAAS,CAAC;YAClH,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;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;;AAhLL,4BAiLC;AAnKG,gBAAgB;AACO,qBAAY,GAAG,sCAAsC,CAAC"}
|
package/pipeline/schedule.d.ts
CHANGED
|
@@ -27,6 +27,44 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
27
27
|
* ```sh
|
|
28
28
|
* $ pulumi import buildkite:Pipeline/schedule:Schedule test myorg/test/1be3e7c7-1e03-4011-accf-b2d8eec90222
|
|
29
29
|
* ```
|
|
30
|
+
*
|
|
31
|
+
* Your organization's slug can be found in your organisation's [settings](https://buildkite.com/organizations/~/settingss) page.
|
|
32
|
+
*
|
|
33
|
+
* The pipeline slug and its relevant schedule UUID can be found with the GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/abf9270e-eccf-4c5f-af21-4cd35164ab6c), specifying the organisation slug (when known) and the pipeline search term (PIPELINE_SEARCH_TERM). graphql query getPipelineScheduleUuid {
|
|
34
|
+
*
|
|
35
|
+
* organization(slug"ORGANIZATION_SLUG") {
|
|
36
|
+
*
|
|
37
|
+
* pipelines(first5, search"PIPELINE_SEARCH_TERM") {
|
|
38
|
+
*
|
|
39
|
+
* edges{
|
|
40
|
+
*
|
|
41
|
+
* node{
|
|
42
|
+
*
|
|
43
|
+
* name
|
|
44
|
+
*
|
|
45
|
+
* schedules{
|
|
46
|
+
*
|
|
47
|
+
* edges{
|
|
48
|
+
*
|
|
49
|
+
* node{
|
|
50
|
+
*
|
|
51
|
+
* uuid
|
|
52
|
+
*
|
|
53
|
+
* cronline
|
|
54
|
+
*
|
|
55
|
+
* }
|
|
56
|
+
*
|
|
57
|
+
* }
|
|
58
|
+
*
|
|
59
|
+
* }
|
|
60
|
+
*
|
|
61
|
+
* }
|
|
62
|
+
*
|
|
63
|
+
* }
|
|
64
|
+
*
|
|
65
|
+
* }
|
|
66
|
+
*
|
|
67
|
+
* } }
|
|
30
68
|
*/
|
|
31
69
|
export declare class Schedule extends pulumi.CustomResource {
|
|
32
70
|
/**
|
package/pipeline/schedule.js
CHANGED
|
@@ -33,6 +33,44 @@ const utilities = require("../utilities");
|
|
|
33
33
|
* ```sh
|
|
34
34
|
* $ pulumi import buildkite:Pipeline/schedule:Schedule test myorg/test/1be3e7c7-1e03-4011-accf-b2d8eec90222
|
|
35
35
|
* ```
|
|
36
|
+
*
|
|
37
|
+
* Your organization's slug can be found in your organisation's [settings](https://buildkite.com/organizations/~/settingss) page.
|
|
38
|
+
*
|
|
39
|
+
* The pipeline slug and its relevant schedule UUID can be found with the GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/abf9270e-eccf-4c5f-af21-4cd35164ab6c), specifying the organisation slug (when known) and the pipeline search term (PIPELINE_SEARCH_TERM). graphql query getPipelineScheduleUuid {
|
|
40
|
+
*
|
|
41
|
+
* organization(slug"ORGANIZATION_SLUG") {
|
|
42
|
+
*
|
|
43
|
+
* pipelines(first5, search"PIPELINE_SEARCH_TERM") {
|
|
44
|
+
*
|
|
45
|
+
* edges{
|
|
46
|
+
*
|
|
47
|
+
* node{
|
|
48
|
+
*
|
|
49
|
+
* name
|
|
50
|
+
*
|
|
51
|
+
* schedules{
|
|
52
|
+
*
|
|
53
|
+
* edges{
|
|
54
|
+
*
|
|
55
|
+
* node{
|
|
56
|
+
*
|
|
57
|
+
* uuid
|
|
58
|
+
*
|
|
59
|
+
* cronline
|
|
60
|
+
*
|
|
61
|
+
* }
|
|
62
|
+
*
|
|
63
|
+
* }
|
|
64
|
+
*
|
|
65
|
+
* }
|
|
66
|
+
*
|
|
67
|
+
* }
|
|
68
|
+
*
|
|
69
|
+
* }
|
|
70
|
+
*
|
|
71
|
+
* }
|
|
72
|
+
*
|
|
73
|
+
* } }
|
|
36
74
|
*/
|
|
37
75
|
class Schedule extends pulumi.CustomResource {
|
|
38
76
|
/**
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;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,KAAK,kCA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