@pulumiverse/buildkite 2.0.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/LICENSE +201 -0
- package/README.md +110 -0
- package/agent/agentToken.d.ts +94 -0
- package/agent/agentToken.js +77 -0
- package/agent/agentToken.js.map +1 -0
- package/agent/index.d.ts +3 -0
- package/agent/index.js +22 -0
- package/agent/index.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +16 -0
- package/config/vars.js +31 -0
- package/config/vars.js.map +1 -0
- package/getMeta.d.ts +15 -0
- package/getMeta.js +13 -0
- package/getMeta.js.map +1 -0
- package/index.d.ts +12 -0
- package/index.js +34 -0
- package/index.js.map +1 -0
- package/organization/getOrganization.d.ts +47 -0
- package/organization/getOrganization.js +32 -0
- package/organization/getOrganization.js.map +1 -0
- package/organization/index.d.ts +6 -0
- package/organization/index.js +25 -0
- package/organization/index.js.map +1 -0
- package/organization/settings.d.ts +76 -0
- package/organization/settings.js +77 -0
- package/organization/settings.js.map +1 -0
- package/package.json +29 -0
- package/package.json.bak +29 -0
- package/pipeline/getPipeline.d.ts +89 -0
- package/pipeline/getPipeline.js +57 -0
- package/pipeline/getPipeline.js.map +1 -0
- package/pipeline/index.d.ts +9 -0
- package/pipeline/index.js +30 -0
- package/pipeline/index.js.map +1 -0
- package/pipeline/pipeline.d.ts +363 -0
- package/pipeline/pipeline.js +186 -0
- package/pipeline/pipeline.js.map +1 -0
- package/pipeline/schedule.d.ts +166 -0
- package/pipeline/schedule.js +106 -0
- package/pipeline/schedule.js.map +1 -0
- package/provider.d.ts +59 -0
- package/provider.js +54 -0
- package/provider.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +26 -0
- package/team/getTeam.d.ts +97 -0
- package/team/getTeam.js +57 -0
- package/team/getTeam.js.map +1 -0
- package/team/index.d.ts +9 -0
- package/team/index.js +30 -0
- package/team/index.js.map +1 -0
- package/team/member.d.ts +149 -0
- package/team/member.js +133 -0
- package/team/member.js.map +1 -0
- package/team/team.d.ts +146 -0
- package/team/team.js +94 -0
- package/team/team.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +88 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +87 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +69 -0
- package/utilities.js.map +1 -0
package/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
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.types = exports.team = exports.pipeline = exports.organization = exports.config = exports.agent = exports.Provider = exports.getMeta = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
exports.getMeta = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["getMeta"], () => require("./getMeta"));
|
|
10
|
+
exports.Provider = null;
|
|
11
|
+
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
|
12
|
+
// Export sub-modules:
|
|
13
|
+
const agent = require("./agent");
|
|
14
|
+
exports.agent = agent;
|
|
15
|
+
const config = require("./config");
|
|
16
|
+
exports.config = config;
|
|
17
|
+
const organization = require("./organization");
|
|
18
|
+
exports.organization = organization;
|
|
19
|
+
const pipeline = require("./pipeline");
|
|
20
|
+
exports.pipeline = pipeline;
|
|
21
|
+
const team = require("./team");
|
|
22
|
+
exports.team = team;
|
|
23
|
+
const types = require("./types");
|
|
24
|
+
exports.types = types;
|
|
25
|
+
pulumi.runtime.registerResourcePackage("buildkite", {
|
|
26
|
+
version: utilities.getVersion(),
|
|
27
|
+
constructProvider: (name, type, urn) => {
|
|
28
|
+
if (type !== "pulumi:providers:buildkite") {
|
|
29
|
+
throw new Error(`unknown provider type ${type}`);
|
|
30
|
+
}
|
|
31
|
+
return new exports.Provider(name, undefined, { urn });
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +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;AAQ7B,sBAAK;AAPT,mCAAmC;AAQ/B,wBAAM;AAPV,+CAA+C;AAQ3C,oCAAY;AAPhB,uCAAuC;AAQnC,4BAAQ;AAPZ,+BAA+B;AAQ3B,oBAAI;AAPR,iCAAiC;AAQ7B,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"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## # Data Source: organization
|
|
4
|
+
*
|
|
5
|
+
* Use this data source to look up the organization settings. It currently supports
|
|
6
|
+
* allowed_api_ip_addresses.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getOrganization(args?: GetOrganizationArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationResult>;
|
|
9
|
+
/**
|
|
10
|
+
* A collection of arguments for invoking getOrganization.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetOrganizationArgs {
|
|
13
|
+
/**
|
|
14
|
+
* list of IP addresses in CIDR format that are allowed to access the Buildkite API.
|
|
15
|
+
*/
|
|
16
|
+
allowedApiIpAddresses?: string[];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A collection of values returned by getOrganization.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetOrganizationResult {
|
|
22
|
+
/**
|
|
23
|
+
* list of IP addresses in CIDR format that are allowed to access the Buildkite API.
|
|
24
|
+
*/
|
|
25
|
+
readonly allowedApiIpAddresses?: string[];
|
|
26
|
+
/**
|
|
27
|
+
* The provider-assigned unique ID for this managed resource.
|
|
28
|
+
*/
|
|
29
|
+
readonly id: string;
|
|
30
|
+
readonly uuid: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* ## # Data Source: organization
|
|
34
|
+
*
|
|
35
|
+
* Use this data source to look up the organization settings. It currently supports
|
|
36
|
+
* allowed_api_ip_addresses.
|
|
37
|
+
*/
|
|
38
|
+
export declare function getOrganizationOutput(args?: GetOrganizationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetOrganizationResult>;
|
|
39
|
+
/**
|
|
40
|
+
* A collection of arguments for invoking getOrganization.
|
|
41
|
+
*/
|
|
42
|
+
export interface GetOrganizationOutputArgs {
|
|
43
|
+
/**
|
|
44
|
+
* list of IP addresses in CIDR format that are allowed to access the Buildkite API.
|
|
45
|
+
*/
|
|
46
|
+
allowedApiIpAddresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.getOrganizationOutput = exports.getOrganization = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## # Data Source: organization
|
|
10
|
+
*
|
|
11
|
+
* Use this data source to look up the organization settings. It currently supports
|
|
12
|
+
* allowed_api_ip_addresses.
|
|
13
|
+
*/
|
|
14
|
+
function getOrganization(args, opts) {
|
|
15
|
+
args = args || {};
|
|
16
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
17
|
+
return pulumi.runtime.invoke("buildkite:Organization/getOrganization:getOrganization", {
|
|
18
|
+
"allowedApiIpAddresses": args.allowedApiIpAddresses,
|
|
19
|
+
}, opts);
|
|
20
|
+
}
|
|
21
|
+
exports.getOrganization = getOrganization;
|
|
22
|
+
/**
|
|
23
|
+
* ## # Data Source: organization
|
|
24
|
+
*
|
|
25
|
+
* Use this data source to look up the organization settings. It currently supports
|
|
26
|
+
* allowed_api_ip_addresses.
|
|
27
|
+
*/
|
|
28
|
+
function getOrganizationOutput(args, opts) {
|
|
29
|
+
return pulumi.output(args).apply((a) => getOrganization(a, opts));
|
|
30
|
+
}
|
|
31
|
+
exports.getOrganizationOutput = getOrganizationOutput;
|
|
32
|
+
//# sourceMappingURL=getOrganization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOrganization.js","sourceRoot":"","sources":["../../organization/getOrganization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;GAKG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,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,wDAAwD,EAAE;QACnF,uBAAuB,EAAE,IAAI,CAAC,qBAAqB;KACtD,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0CAOC;AA0BD;;;;;GAKG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { GetOrganizationArgs, GetOrganizationResult, GetOrganizationOutputArgs } from "./getOrganization";
|
|
2
|
+
export declare const getOrganization: typeof import("./getOrganization").getOrganization;
|
|
3
|
+
export declare const getOrganizationOutput: typeof import("./getOrganization").getOrganizationOutput;
|
|
4
|
+
export { SettingsArgs, SettingsState } from "./settings";
|
|
5
|
+
export type Settings = import("./settings").Settings;
|
|
6
|
+
export declare const Settings: typeof import("./settings").Settings;
|
|
@@ -0,0 +1,25 @@
|
|
|
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.Settings = exports.getOrganizationOutput = exports.getOrganization = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
exports.getOrganization = null;
|
|
9
|
+
exports.getOrganizationOutput = null;
|
|
10
|
+
utilities.lazyLoad(exports, ["getOrganization", "getOrganizationOutput"], () => require("./getOrganization"));
|
|
11
|
+
exports.Settings = null;
|
|
12
|
+
utilities.lazyLoad(exports, ["Settings"], () => require("./settings"));
|
|
13
|
+
const _module = {
|
|
14
|
+
version: utilities.getVersion(),
|
|
15
|
+
construct: (name, type, urn) => {
|
|
16
|
+
switch (type) {
|
|
17
|
+
case "buildkite:Organization/settings:Settings":
|
|
18
|
+
return new exports.Settings(name, undefined, { urn });
|
|
19
|
+
default:
|
|
20
|
+
throw new Error(`unknown resource type ${type}`);
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
pulumi.runtime.registerResourceModule("buildkite", "Organization/settings", _module);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../organization/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAI7B,QAAA,eAAe,GAAuD,IAAW,CAAC;AAClF,QAAA,qBAAqB,GAA6D,IAAW,CAAC;AAC3G,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,iBAAiB,EAAC,uBAAuB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAIhG,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,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,0CAA0C;gBAC3C,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,uBAAuB,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## # Resource: organizationSettings
|
|
4
|
+
*
|
|
5
|
+
* This resource allows you to manage the settings for an organization.
|
|
6
|
+
*
|
|
7
|
+
* You must be an organization administrator to manage organization settings.
|
|
8
|
+
*
|
|
9
|
+
* Note: The "Allowed API IP Addresses" feature must be enabled on your organization in order to manage the `allowedApiIpAddresses` attribute.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
16
|
+
*
|
|
17
|
+
* const testSettings = new buildkite.organization.Settings("testSettings", {allowedApiIpAddresses: ["1.1.1.1/32"]});
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Import
|
|
21
|
+
*
|
|
22
|
+
* Organization settings can be imported by passing the organization slug to the import command, along with the identifier of the resource.
|
|
23
|
+
*
|
|
24
|
+
* ```sh
|
|
25
|
+
* $ pulumi import buildkite:Organization/settings:Settings test_settings test_org
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare class Settings extends pulumi.CustomResource {
|
|
29
|
+
/**
|
|
30
|
+
* Get an existing Settings resource's state with the given name, ID, and optional extra
|
|
31
|
+
* properties used to qualify the lookup.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resulting resource.
|
|
34
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
35
|
+
* @param state Any extra arguments used during the lookup.
|
|
36
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
37
|
+
*/
|
|
38
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SettingsState, opts?: pulumi.CustomResourceOptions): Settings;
|
|
39
|
+
/**
|
|
40
|
+
* Returns true if the given object is an instance of Settings. This is designed to work even
|
|
41
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
42
|
+
*/
|
|
43
|
+
static isInstance(obj: any): obj is Settings;
|
|
44
|
+
/**
|
|
45
|
+
* A list of IP addresses in CIDR format that are allowed to access the Buildkite API. If not set, all IP addresses are allowed (the same as setting 0.0.0.0/0).
|
|
46
|
+
*/
|
|
47
|
+
readonly allowedApiIpAddresses: pulumi.Output<string[] | undefined>;
|
|
48
|
+
readonly uuid: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Create a Settings resource with the given unique name, arguments, and options.
|
|
51
|
+
*
|
|
52
|
+
* @param name The _unique_ name of the resource.
|
|
53
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
54
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
55
|
+
*/
|
|
56
|
+
constructor(name: string, args?: SettingsArgs, opts?: pulumi.CustomResourceOptions);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Input properties used for looking up and filtering Settings resources.
|
|
60
|
+
*/
|
|
61
|
+
export interface SettingsState {
|
|
62
|
+
/**
|
|
63
|
+
* A list of IP addresses in CIDR format that are allowed to access the Buildkite API. If not set, all IP addresses are allowed (the same as setting 0.0.0.0/0).
|
|
64
|
+
*/
|
|
65
|
+
allowedApiIpAddresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
66
|
+
uuid?: pulumi.Input<string>;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* The set of arguments for constructing a Settings resource.
|
|
70
|
+
*/
|
|
71
|
+
export interface SettingsArgs {
|
|
72
|
+
/**
|
|
73
|
+
* A list of IP addresses in CIDR format that are allowed to access the Buildkite API. If not set, all IP addresses are allowed (the same as setting 0.0.0.0/0).
|
|
74
|
+
*/
|
|
75
|
+
allowedApiIpAddresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
76
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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.Settings = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## # Resource: organizationSettings
|
|
10
|
+
*
|
|
11
|
+
* This resource allows you to manage the settings for an organization.
|
|
12
|
+
*
|
|
13
|
+
* You must be an organization administrator to manage organization settings.
|
|
14
|
+
*
|
|
15
|
+
* Note: The "Allowed API IP Addresses" feature must be enabled on your organization in order to manage the `allowedApiIpAddresses` attribute.
|
|
16
|
+
*
|
|
17
|
+
* ## Example Usage
|
|
18
|
+
*
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
22
|
+
*
|
|
23
|
+
* const testSettings = new buildkite.organization.Settings("testSettings", {allowedApiIpAddresses: ["1.1.1.1/32"]});
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* Organization settings can be imported by passing the organization slug to the import command, along with the identifier of the resource.
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import buildkite:Organization/settings:Settings test_settings test_org
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
class Settings extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing Settings resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param state Any extra arguments used during the lookup.
|
|
42
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
43
|
+
*/
|
|
44
|
+
static get(name, id, state, opts) {
|
|
45
|
+
return new Settings(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Returns true if the given object is an instance of Settings. This is designed to work even
|
|
49
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
50
|
+
*/
|
|
51
|
+
static isInstance(obj) {
|
|
52
|
+
if (obj === undefined || obj === null) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
return obj['__pulumiType'] === Settings.__pulumiType;
|
|
56
|
+
}
|
|
57
|
+
constructor(name, argsOrState, opts) {
|
|
58
|
+
let resourceInputs = {};
|
|
59
|
+
opts = opts || {};
|
|
60
|
+
if (opts.id) {
|
|
61
|
+
const state = argsOrState;
|
|
62
|
+
resourceInputs["allowedApiIpAddresses"] = state ? state.allowedApiIpAddresses : undefined;
|
|
63
|
+
resourceInputs["uuid"] = state ? state.uuid : undefined;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
const args = argsOrState;
|
|
67
|
+
resourceInputs["allowedApiIpAddresses"] = args ? args.allowedApiIpAddresses : undefined;
|
|
68
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
69
|
+
}
|
|
70
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
71
|
+
super(Settings.__pulumiType, name, resourceInputs, opts);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.Settings = Settings;
|
|
75
|
+
/** @internal */
|
|
76
|
+
Settings.__pulumiType = 'buildkite:Organization/settings:Settings';
|
|
77
|
+
//# sourceMappingURL=settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../organization/settings.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;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
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pulumiverse/buildkite",
|
|
3
|
+
"version": "v2.0.0",
|
|
4
|
+
"description": "A Pulumi package for creating and managing Buildkite resources.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pulumi",
|
|
7
|
+
"buildkite"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://github.com/pulumiverse/pulumi-buildkite",
|
|
10
|
+
"repository": "https://github.com/pulumiverse/pulumi-buildkite",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource buildkite v2.0.0"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/mime": "^2.0.0",
|
|
21
|
+
"@types/node": "^10.0.0",
|
|
22
|
+
"typescript": "^4.3.5"
|
|
23
|
+
},
|
|
24
|
+
"pulumi": {
|
|
25
|
+
"resource": true,
|
|
26
|
+
"name": "buildkite",
|
|
27
|
+
"server": "github://api.github.com/pulumiverse/pulumi-buildkite"
|
|
28
|
+
}
|
|
29
|
+
}
|
package/package.json.bak
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pulumiverse/buildkite",
|
|
3
|
+
"version": "${VERSION}",
|
|
4
|
+
"description": "A Pulumi package for creating and managing Buildkite resources.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pulumi",
|
|
7
|
+
"buildkite"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://github.com/pulumiverse/pulumi-buildkite",
|
|
10
|
+
"repository": "https://github.com/pulumiverse/pulumi-buildkite",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource buildkite ${VERSION}"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/mime": "^2.0.0",
|
|
21
|
+
"@types/node": "^10.0.0",
|
|
22
|
+
"typescript": "^4.3.5"
|
|
23
|
+
},
|
|
24
|
+
"pulumi": {
|
|
25
|
+
"resource": true,
|
|
26
|
+
"name": "buildkite",
|
|
27
|
+
"server": "github://api.github.com/pulumiverse/pulumi-buildkite"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## # Data Source: pipeline
|
|
4
|
+
*
|
|
5
|
+
* Use this data source to look up properties on a specific pipeline. This is
|
|
6
|
+
* particularly useful for looking up the webhook URL for each pipeline.
|
|
7
|
+
*
|
|
8
|
+
* Buildkite Documentation: https://buildkite.com/docs/pipelines
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as buildkite from "@pulumi/buildkite";
|
|
15
|
+
*
|
|
16
|
+
* const repo2 = buildkite.Pipeline.getPipeline({
|
|
17
|
+
* slug: "repo2",
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function getPipeline(args: GetPipelineArgs, opts?: pulumi.InvokeOptions): Promise<GetPipelineResult>;
|
|
22
|
+
/**
|
|
23
|
+
* A collection of arguments for invoking getPipeline.
|
|
24
|
+
*/
|
|
25
|
+
export interface GetPipelineArgs {
|
|
26
|
+
/**
|
|
27
|
+
* The slug of the pipeline, available in the URL of the pipeline on buildkite.com
|
|
28
|
+
*/
|
|
29
|
+
slug: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A collection of values returned by getPipeline.
|
|
33
|
+
*/
|
|
34
|
+
export interface GetPipelineResult {
|
|
35
|
+
/**
|
|
36
|
+
* The default branch to prefill when new builds are created or triggered, usually main or master but can be anything.
|
|
37
|
+
*/
|
|
38
|
+
readonly defaultBranch: string;
|
|
39
|
+
/**
|
|
40
|
+
* A description of the pipeline.
|
|
41
|
+
*/
|
|
42
|
+
readonly description: string;
|
|
43
|
+
/**
|
|
44
|
+
* The provider-assigned unique ID for this managed resource.
|
|
45
|
+
*/
|
|
46
|
+
readonly id: string;
|
|
47
|
+
/**
|
|
48
|
+
* The name of the pipeline.
|
|
49
|
+
*/
|
|
50
|
+
readonly name: string;
|
|
51
|
+
/**
|
|
52
|
+
* The git URL of the repository.
|
|
53
|
+
*/
|
|
54
|
+
readonly repository: string;
|
|
55
|
+
readonly slug: string;
|
|
56
|
+
/**
|
|
57
|
+
* The default branch to prefill when new builds are created or triggered.
|
|
58
|
+
*/
|
|
59
|
+
readonly webhookUrl: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* ## # Data Source: pipeline
|
|
63
|
+
*
|
|
64
|
+
* Use this data source to look up properties on a specific pipeline. This is
|
|
65
|
+
* particularly useful for looking up the webhook URL for each pipeline.
|
|
66
|
+
*
|
|
67
|
+
* Buildkite Documentation: https://buildkite.com/docs/pipelines
|
|
68
|
+
*
|
|
69
|
+
* ## Example Usage
|
|
70
|
+
*
|
|
71
|
+
* ```typescript
|
|
72
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
73
|
+
* import * as buildkite from "@pulumi/buildkite";
|
|
74
|
+
*
|
|
75
|
+
* const repo2 = buildkite.Pipeline.getPipeline({
|
|
76
|
+
* slug: "repo2",
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
export declare function getPipelineOutput(args: GetPipelineOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPipelineResult>;
|
|
81
|
+
/**
|
|
82
|
+
* A collection of arguments for invoking getPipeline.
|
|
83
|
+
*/
|
|
84
|
+
export interface GetPipelineOutputArgs {
|
|
85
|
+
/**
|
|
86
|
+
* The slug of the pipeline, available in the URL of the pipeline on buildkite.com
|
|
87
|
+
*/
|
|
88
|
+
slug: pulumi.Input<string>;
|
|
89
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.getPipelineOutput = exports.getPipeline = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## # Data Source: pipeline
|
|
10
|
+
*
|
|
11
|
+
* Use this data source to look up properties on a specific pipeline. This is
|
|
12
|
+
* particularly useful for looking up the webhook URL for each pipeline.
|
|
13
|
+
*
|
|
14
|
+
* Buildkite Documentation: https://buildkite.com/docs/pipelines
|
|
15
|
+
*
|
|
16
|
+
* ## Example Usage
|
|
17
|
+
*
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
20
|
+
* import * as buildkite from "@pulumi/buildkite";
|
|
21
|
+
*
|
|
22
|
+
* const repo2 = buildkite.Pipeline.getPipeline({
|
|
23
|
+
* slug: "repo2",
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
function getPipeline(args, opts) {
|
|
28
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
29
|
+
return pulumi.runtime.invoke("buildkite:Pipeline/getPipeline:getPipeline", {
|
|
30
|
+
"slug": args.slug,
|
|
31
|
+
}, opts);
|
|
32
|
+
}
|
|
33
|
+
exports.getPipeline = getPipeline;
|
|
34
|
+
/**
|
|
35
|
+
* ## # Data Source: pipeline
|
|
36
|
+
*
|
|
37
|
+
* Use this data source to look up properties on a specific pipeline. This is
|
|
38
|
+
* particularly useful for looking up the webhook URL for each pipeline.
|
|
39
|
+
*
|
|
40
|
+
* Buildkite Documentation: https://buildkite.com/docs/pipelines
|
|
41
|
+
*
|
|
42
|
+
* ## Example Usage
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as buildkite from "@pulumi/buildkite";
|
|
47
|
+
*
|
|
48
|
+
* const repo2 = buildkite.Pipeline.getPipeline({
|
|
49
|
+
* slug: "repo2",
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
function getPipelineOutput(args, opts) {
|
|
54
|
+
return pulumi.output(args).apply((a) => getPipeline(a, opts));
|
|
55
|
+
}
|
|
56
|
+
exports.getPipelineOutput = getPipelineOutput;
|
|
57
|
+
//# sourceMappingURL=getPipeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPipeline.js","sourceRoot":"","sources":["../../pipeline/getPipeline.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAE1E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kCAMC;AA0CD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,8CAEC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { GetPipelineArgs, GetPipelineResult, GetPipelineOutputArgs } from "./getPipeline";
|
|
2
|
+
export declare const getPipeline: typeof import("./getPipeline").getPipeline;
|
|
3
|
+
export declare const getPipelineOutput: typeof import("./getPipeline").getPipelineOutput;
|
|
4
|
+
export { PipelineArgs, PipelineState } from "./pipeline";
|
|
5
|
+
export type Pipeline = import("./pipeline").Pipeline;
|
|
6
|
+
export declare const Pipeline: typeof import("./pipeline").Pipeline;
|
|
7
|
+
export { ScheduleArgs, ScheduleState } from "./schedule";
|
|
8
|
+
export type Schedule = import("./schedule").Schedule;
|
|
9
|
+
export declare const Schedule: typeof import("./schedule").Schedule;
|
|
@@ -0,0 +1,30 @@
|
|
|
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.Schedule = exports.Pipeline = exports.getPipelineOutput = exports.getPipeline = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
exports.getPipeline = null;
|
|
9
|
+
exports.getPipelineOutput = null;
|
|
10
|
+
utilities.lazyLoad(exports, ["getPipeline", "getPipelineOutput"], () => require("./getPipeline"));
|
|
11
|
+
exports.Pipeline = null;
|
|
12
|
+
utilities.lazyLoad(exports, ["Pipeline"], () => require("./pipeline"));
|
|
13
|
+
exports.Schedule = null;
|
|
14
|
+
utilities.lazyLoad(exports, ["Schedule"], () => require("./schedule"));
|
|
15
|
+
const _module = {
|
|
16
|
+
version: utilities.getVersion(),
|
|
17
|
+
construct: (name, type, urn) => {
|
|
18
|
+
switch (type) {
|
|
19
|
+
case "buildkite:Pipeline/pipeline:Pipeline":
|
|
20
|
+
return new exports.Pipeline(name, undefined, { urn });
|
|
21
|
+
case "buildkite:Pipeline/schedule:Schedule":
|
|
22
|
+
return new exports.Schedule(name, undefined, { urn });
|
|
23
|
+
default:
|
|
24
|
+
throw new Error(`unknown resource type ${type}`);
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
pulumi.runtime.registerResourceModule("buildkite", "Pipeline/pipeline", _module);
|
|
29
|
+
pulumi.runtime.registerResourceModule("buildkite", "Pipeline/schedule", _module);
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../pipeline/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAI7B,QAAA,WAAW,GAA+C,IAAW,CAAC;AACtE,QAAA,iBAAiB,GAAqD,IAAW,CAAC;AAC/F,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,aAAa,EAAC,mBAAmB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;AAIpF,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;AAI1D,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,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,sCAAsC;gBACvC,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD,KAAK,sCAAsC;gBACvC,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAA;AAChF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAA"}
|