@pulumiverse/buildkite 2.3.1 → 3.0.2
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 +5 -0
- package/agent/agentToken.d.ts +13 -19
- package/agent/agentToken.js +6 -6
- package/agent/agentToken.js.map +1 -1
- package/cluster/cluster.d.ts +76 -20
- package/cluster/cluster.js +56 -6
- package/cluster/cluster.js.map +1 -1
- package/cluster/clusterAgentToken.d.ts +51 -15
- package/cluster/clusterAgentToken.js +28 -8
- package/cluster/clusterAgentToken.js.map +1 -1
- package/cluster/clusterDefaultQueue.d.ts +132 -0
- package/cluster/clusterDefaultQueue.js +123 -0
- package/cluster/clusterDefaultQueue.js.map +1 -0
- package/cluster/clusterQueue.d.ts +44 -50
- package/cluster/clusterQueue.js +37 -43
- package/cluster/clusterQueue.js.map +1 -1
- package/cluster/getCluster.d.ts +52 -5
- package/cluster/getCluster.js +44 -0
- package/cluster/getCluster.js.map +1 -1
- package/cluster/index.d.ts +3 -0
- package/cluster/index.js +6 -1
- package/cluster/index.js.map +1 -1
- package/config/vars.d.ts +9 -7
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/getMeta.d.ts +55 -1
- package/getMeta.js +55 -1
- package/getMeta.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +3 -2
- package/index.js.map +1 -1
- package/organization/banner.d.ts +106 -0
- package/organization/banner.js +104 -0
- package/organization/banner.js.map +1 -0
- package/organization/getOrganization.d.ts +12 -21
- package/organization/getOrganization.js +9 -21
- package/organization/getOrganization.js.map +1 -1
- package/organization/index.d.ts +4 -3
- package/organization/index.js +8 -7
- package/organization/index.js.map +1 -1
- package/organization/organization.d.ts +31 -13
- package/organization/organization.js +12 -10
- package/organization/organization.js.map +1 -1
- package/package.json +2 -3
- package/package.json.bak +1 -2
- package/pipeline/getPipeline.d.ts +26 -18
- package/pipeline/getPipeline.js +12 -14
- package/pipeline/getPipeline.js.map +1 -1
- package/pipeline/getSignedSteps.d.ts +143 -0
- package/pipeline/getSignedSteps.js +95 -0
- package/pipeline/getSignedSteps.js.map +1 -0
- package/pipeline/getTemplate.d.ts +120 -0
- package/pipeline/getTemplate.js +83 -0
- package/pipeline/getTemplate.js.map +1 -0
- package/pipeline/index.d.ts +9 -0
- package/pipeline/index.js +12 -1
- package/pipeline/index.js.map +1 -1
- package/pipeline/pipeline.d.ts +116 -101
- package/pipeline/pipeline.js +18 -16
- package/pipeline/pipeline.js.map +1 -1
- package/pipeline/schedule.d.ts +64 -53
- package/pipeline/schedule.js +38 -27
- package/pipeline/schedule.js.map +1 -1
- package/pipeline/team.d.ts +42 -31
- package/pipeline/team.js +34 -23
- package/pipeline/team.js.map +1 -1
- package/pipeline/template.d.ts +157 -0
- package/pipeline/template.js +125 -0
- package/pipeline/template.js.map +1 -0
- package/provider.d.ts +23 -9
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/team/getTeam.d.ts +33 -34
- package/team/getTeam.js +18 -16
- package/team/getTeam.js.map +1 -1
- package/team/member.d.ts +44 -44
- package/team/member.js +33 -33
- package/team/team.d.ts +45 -43
- package/team/team.js +26 -24
- package/team/team.js.map +1 -1
- package/testsuite/team.d.ts +48 -52
- package/testsuite/team.js +43 -47
- package/testsuite/team.js.map +1 -1
- package/testsuite/testSuite.d.ts +21 -27
- package/testsuite/testSuite.js +6 -12
- package/testsuite/testSuite.js.map +1 -1
- package/types/input.d.ts +37 -21
- package/types/output.d.ts +34 -18
- package/utilities.d.ts +4 -0
- package/utilities.js +33 -1
- package/utilities.js.map +1 -1
- package/organization/settings.d.ts +0 -80
- package/organization/settings.js +0 -81
- package/organization/settings.js.map +0 -1
- package/scripts/install-pulumi-plugin.js +0 -26
package/types/output.d.ts
CHANGED
|
@@ -12,33 +12,32 @@ export declare namespace Pipeline {
|
|
|
12
12
|
* Whether to create builds for pull requests when labels are added or removed.
|
|
13
13
|
*/
|
|
14
14
|
buildPullRequestLabelsChanged: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Whether to create a build when a pull request changes to "Ready for review".
|
|
17
|
+
*/
|
|
15
18
|
buildPullRequestReadyForReview: boolean;
|
|
16
19
|
/**
|
|
17
|
-
* Whether to create builds for commits that are part of a
|
|
20
|
+
* Whether to create builds for commits that are part of a pull request.
|
|
18
21
|
*/
|
|
19
22
|
buildPullRequests: boolean;
|
|
20
23
|
/**
|
|
21
24
|
* Whether to create builds when tags are pushed.
|
|
22
|
-
*
|
|
23
|
-
* Properties available for Bitbucket Cloud, GitHub, and GitHub Enterprise:
|
|
24
25
|
*/
|
|
25
26
|
buildTags: boolean;
|
|
26
27
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* Additional properties available for GitHub:
|
|
28
|
+
* Automatically cancel running builds for a branch if the branch is deleted.
|
|
30
29
|
*/
|
|
31
30
|
cancelDeletedBranchBuilds: boolean;
|
|
32
31
|
/**
|
|
33
|
-
* The condition to evaluate when deciding if a build should run. More details available in [the documentation](https://buildkite.com/docs/pipelines/conditionals#conditionals-in-pipelines)
|
|
32
|
+
* The condition to evaluate when deciding if a build should run. More details available in [the documentation](https://buildkite.com/docs/pipelines/conditionals#conditionals-in-pipelines).
|
|
34
33
|
*/
|
|
35
34
|
filterCondition: string;
|
|
36
35
|
/**
|
|
37
|
-
*
|
|
36
|
+
* Whether to filter builds to only run when the condition in `filterCondition` is true.
|
|
38
37
|
*/
|
|
39
38
|
filterEnabled: boolean;
|
|
40
39
|
/**
|
|
41
|
-
* Prefix branch names for third-party fork builds to ensure they don't trigger branch conditions. For example, the
|
|
40
|
+
* Prefix branch names for third-party fork builds to ensure they don't trigger branch conditions. For example, the main branch from some-user will become some-user:main.
|
|
42
41
|
*/
|
|
43
42
|
prefixPullRequestForkBranchNames: boolean;
|
|
44
43
|
/**
|
|
@@ -54,11 +53,11 @@ export declare namespace Pipeline {
|
|
|
54
53
|
*/
|
|
55
54
|
publishCommitStatusPerStep: boolean;
|
|
56
55
|
/**
|
|
57
|
-
*
|
|
56
|
+
* Filter pull requests builds by the branch filter.
|
|
58
57
|
*/
|
|
59
58
|
pullRequestBranchFilterConfiguration: string;
|
|
60
59
|
/**
|
|
61
|
-
*
|
|
60
|
+
* Filter pull request builds.
|
|
62
61
|
*/
|
|
63
62
|
pullRequestBranchFilterEnabled: boolean;
|
|
64
63
|
/**
|
|
@@ -66,7 +65,7 @@ export declare namespace Pipeline {
|
|
|
66
65
|
*/
|
|
67
66
|
separatePullRequestStatuses: boolean;
|
|
68
67
|
/**
|
|
69
|
-
* Whether to skip creating a new build if an existing build for the commit and branch already exists.
|
|
68
|
+
* Whether to skip creating a new build if an existing build for the commit and branch already exists. This option is only valid if the pipeline uses a GitHub repository.
|
|
70
69
|
*/
|
|
71
70
|
skipBuildsForExistingCommits: boolean;
|
|
72
71
|
/**
|
|
@@ -75,16 +74,33 @@ export declare namespace Pipeline {
|
|
|
75
74
|
skipPullRequestBuildsForExistingCommits: boolean;
|
|
76
75
|
/**
|
|
77
76
|
* What type of event to trigger builds on. Must be one of:
|
|
77
|
+
* - `code` will create builds when code is pushed to GitHub.
|
|
78
|
+
* - `deployment` will create builds when a deployment is created in GitHub.
|
|
79
|
+
* - `fork` will create builds when the GitHub repository is forked.
|
|
80
|
+
* - `none` will not create any builds based on GitHub activity.
|
|
81
|
+
*
|
|
82
|
+
* > `triggerMode` is only valid if the pipeline uses a GitHub repository.
|
|
78
83
|
*/
|
|
79
84
|
triggerMode: string;
|
|
80
85
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
86
|
+
}
|
|
87
|
+
export declare namespace config {
|
|
88
|
+
interface Timeouts {
|
|
89
|
+
/**
|
|
90
|
+
* A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
|
|
91
|
+
*/
|
|
92
|
+
create?: string;
|
|
93
|
+
/**
|
|
94
|
+
* A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
|
|
95
|
+
*/
|
|
96
|
+
delete?: string;
|
|
97
|
+
/**
|
|
98
|
+
* A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
|
|
99
|
+
*/
|
|
100
|
+
read?: string;
|
|
84
101
|
/**
|
|
85
|
-
*
|
|
102
|
+
* A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
|
|
86
103
|
*/
|
|
87
|
-
|
|
88
|
-
teamId: string;
|
|
104
|
+
update?: string;
|
|
89
105
|
}
|
|
90
106
|
}
|
package/utilities.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
1
2
|
export declare function getEnv(...vars: string[]): string | undefined;
|
|
2
3
|
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
3
4
|
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
4
5
|
export declare function getVersion(): string;
|
|
6
|
+
export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
|
|
7
|
+
property?: string;
|
|
8
|
+
}): Promise<T>;
|
package/utilities.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
4
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
14
|
+
exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
15
|
+
const runtime = require("@pulumi/pulumi/runtime");
|
|
6
16
|
function getEnv(...vars) {
|
|
7
17
|
for (const v of vars) {
|
|
8
18
|
const value = process.env[v];
|
|
@@ -66,4 +76,26 @@ function lazyLoad(exports, props, loadModule) {
|
|
|
66
76
|
}
|
|
67
77
|
}
|
|
68
78
|
exports.lazyLoad = lazyLoad;
|
|
79
|
+
function callAsync(tok, props, res, opts) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const o = runtime.call(tok, props, res);
|
|
82
|
+
const value = yield o.promise(true /*withUnknowns*/);
|
|
83
|
+
const isKnown = yield o.isKnown;
|
|
84
|
+
const isSecret = yield o.isSecret;
|
|
85
|
+
const problem = !isKnown ? "an unknown value"
|
|
86
|
+
: isSecret ? "a secret value"
|
|
87
|
+
: undefined;
|
|
88
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
89
|
+
if (problem) {
|
|
90
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
|
91
|
+
"This is an error in the provider, please report this to the provider developer.");
|
|
92
|
+
}
|
|
93
|
+
// Extract a single property if requested.
|
|
94
|
+
if (opts && opts.property) {
|
|
95
|
+
return value[opts.property];
|
|
96
|
+
}
|
|
97
|
+
return value;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
exports.callAsync = callAsync;
|
|
69
101
|
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAGjF,kDAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE;QACjB,uGAAuG;QACvG,yDAAyD;QACzD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE;YAC1E,OAAO,IAAI,CAAC;SACf;QACD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAA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ED,SAAsB,SAAS,CAC3B,GAAW,EACX,KAAoB,EACpB,GAAqB,EACrB,IAA0B;;QAE1B,MAAM,CAAC,GAAQ,OAAO,CAAC,IAAI,CAAI,GAAG,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;QAChD,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACrD,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,OAAO,CAAC;QAChC,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,QAAQ,CAAC;QAClC,MAAM,OAAO,GACT,CAAC,OAAO,CAAC,CAAC,CAAC,kBAAkB;YAC7B,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB;gBAC7B,CAAC,CAAC,SAAS,CAAC;QAChB,sGAAsG;QACtG,IAAI,OAAO,EAAE;YACT,MAAM,IAAI,KAAK,CAAC,0BAA0B,GAAG,0BAA0B,OAAO,IAAI;gBAC9E,iFAAiF,CAAC,CAAC;SAC1F;QACD,0CAA0C;QAC1C,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE;YACvB,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SAC/B;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;CAAA;AAxBD,8BAwBC"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* ## # Resource: organizationSettings
|
|
4
|
-
*
|
|
5
|
-
* **Note**: This resource has been deprecated. In a future minor release, we will remove this resource in favour of the newer `buildkite.Organization.Organization` resource that aligns with the datasource of the same name.
|
|
6
|
-
*
|
|
7
|
-
* This resource allows you to manage the settings for an organization.
|
|
8
|
-
*
|
|
9
|
-
* You must be an organization administrator to manage organization settings.
|
|
10
|
-
*
|
|
11
|
-
* Note: The "Allowed API IP Addresses" feature must be enabled on your organization in order to manage the `allowedApiIpAddresses` attribute.
|
|
12
|
-
*
|
|
13
|
-
* ## Example Usage
|
|
14
|
-
*
|
|
15
|
-
* ```typescript
|
|
16
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
-
* import * as buildkite from "@pulumiverse/buildkite";
|
|
18
|
-
*
|
|
19
|
-
* const testSettings = new buildkite.organization.Settings("testSettings", {allowedApiIpAddresses: ["1.1.1.1/32"]});
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* ## Import
|
|
23
|
-
*
|
|
24
|
-
* Organization settings can be imported by passing the organization slug to the import command, along with the identifier of the resource.
|
|
25
|
-
*
|
|
26
|
-
* ```sh
|
|
27
|
-
* $ pulumi import buildkite:Organization/settings:Settings test_settings test_org
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* Your organization's slug can be found in your organisation's [settings](https://buildkite.com/organizations/~/settings) page.
|
|
31
|
-
*/
|
|
32
|
-
export declare class Settings extends pulumi.CustomResource {
|
|
33
|
-
/**
|
|
34
|
-
* Get an existing Settings resource's state with the given name, ID, and optional extra
|
|
35
|
-
* properties used to qualify the lookup.
|
|
36
|
-
*
|
|
37
|
-
* @param name The _unique_ name of the resulting resource.
|
|
38
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
39
|
-
* @param state Any extra arguments used during the lookup.
|
|
40
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
|
-
*/
|
|
42
|
-
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SettingsState, opts?: pulumi.CustomResourceOptions): Settings;
|
|
43
|
-
/**
|
|
44
|
-
* Returns true if the given object is an instance of Settings. This is designed to work even
|
|
45
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
46
|
-
*/
|
|
47
|
-
static isInstance(obj: any): obj is Settings;
|
|
48
|
-
/**
|
|
49
|
-
* 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).
|
|
50
|
-
*/
|
|
51
|
-
readonly allowedApiIpAddresses: pulumi.Output<string[] | undefined>;
|
|
52
|
-
readonly uuid: pulumi.Output<string>;
|
|
53
|
-
/**
|
|
54
|
-
* Create a Settings resource with the given unique name, arguments, and options.
|
|
55
|
-
*
|
|
56
|
-
* @param name The _unique_ name of the resource.
|
|
57
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
58
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
59
|
-
*/
|
|
60
|
-
constructor(name: string, args?: SettingsArgs, opts?: pulumi.CustomResourceOptions);
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Input properties used for looking up and filtering Settings resources.
|
|
64
|
-
*/
|
|
65
|
-
export interface SettingsState {
|
|
66
|
-
/**
|
|
67
|
-
* 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).
|
|
68
|
-
*/
|
|
69
|
-
allowedApiIpAddresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
70
|
-
uuid?: pulumi.Input<string>;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* The set of arguments for constructing a Settings resource.
|
|
74
|
-
*/
|
|
75
|
-
export interface SettingsArgs {
|
|
76
|
-
/**
|
|
77
|
-
* 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).
|
|
78
|
-
*/
|
|
79
|
-
allowedApiIpAddresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
80
|
-
}
|
package/organization/settings.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
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
|
-
* **Note**: This resource has been deprecated. In a future minor release, we will remove this resource in favour of the newer `buildkite.Organization.Organization` resource that aligns with the datasource of the same name.
|
|
12
|
-
*
|
|
13
|
-
* This resource allows you to manage the settings for an organization.
|
|
14
|
-
*
|
|
15
|
-
* You must be an organization administrator to manage organization settings.
|
|
16
|
-
*
|
|
17
|
-
* Note: The "Allowed API IP Addresses" feature must be enabled on your organization in order to manage the `allowedApiIpAddresses` attribute.
|
|
18
|
-
*
|
|
19
|
-
* ## Example Usage
|
|
20
|
-
*
|
|
21
|
-
* ```typescript
|
|
22
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
-
* import * as buildkite from "@pulumiverse/buildkite";
|
|
24
|
-
*
|
|
25
|
-
* const testSettings = new buildkite.organization.Settings("testSettings", {allowedApiIpAddresses: ["1.1.1.1/32"]});
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* ## Import
|
|
29
|
-
*
|
|
30
|
-
* Organization settings can be imported by passing the organization slug to the import command, along with the identifier of the resource.
|
|
31
|
-
*
|
|
32
|
-
* ```sh
|
|
33
|
-
* $ pulumi import buildkite:Organization/settings:Settings test_settings test_org
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* Your organization's slug can be found in your organisation's [settings](https://buildkite.com/organizations/~/settings) page.
|
|
37
|
-
*/
|
|
38
|
-
class Settings extends pulumi.CustomResource {
|
|
39
|
-
/**
|
|
40
|
-
* Get an existing Settings resource's state with the given name, ID, and optional extra
|
|
41
|
-
* properties used to qualify the lookup.
|
|
42
|
-
*
|
|
43
|
-
* @param name The _unique_ name of the resulting resource.
|
|
44
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
45
|
-
* @param state Any extra arguments used during the lookup.
|
|
46
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
47
|
-
*/
|
|
48
|
-
static get(name, id, state, opts) {
|
|
49
|
-
return new Settings(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Returns true if the given object is an instance of Settings. This is designed to work even
|
|
53
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
54
|
-
*/
|
|
55
|
-
static isInstance(obj) {
|
|
56
|
-
if (obj === undefined || obj === null) {
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
59
|
-
return obj['__pulumiType'] === Settings.__pulumiType;
|
|
60
|
-
}
|
|
61
|
-
constructor(name, argsOrState, opts) {
|
|
62
|
-
let resourceInputs = {};
|
|
63
|
-
opts = opts || {};
|
|
64
|
-
if (opts.id) {
|
|
65
|
-
const state = argsOrState;
|
|
66
|
-
resourceInputs["allowedApiIpAddresses"] = state ? state.allowedApiIpAddresses : undefined;
|
|
67
|
-
resourceInputs["uuid"] = state ? state.uuid : undefined;
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
const args = argsOrState;
|
|
71
|
-
resourceInputs["allowedApiIpAddresses"] = args ? args.allowedApiIpAddresses : undefined;
|
|
72
|
-
resourceInputs["uuid"] = undefined /*out*/;
|
|
73
|
-
}
|
|
74
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
75
|
-
super(Settings.__pulumiType, name, resourceInputs, opts);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
exports.Settings = Settings;
|
|
79
|
-
/** @internal */
|
|
80
|
-
Settings.__pulumiType = 'buildkite:Organization/settings:Settings';
|
|
81
|
-
//# sourceMappingURL=settings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../organization/settings.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,QAAS,SAAQ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,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAxDL,4BAyDC;AA3CG,gBAAgB;AACO,qBAAY,GAAG,0CAA0C,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var childProcess = require("child_process");
|
|
3
|
-
|
|
4
|
-
var args = process.argv.slice(2);
|
|
5
|
-
|
|
6
|
-
if (args.indexOf("${VERSION}") !== -1) {
|
|
7
|
-
process.exit(0);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
var res = childProcess.spawnSync("pulumi", ["plugin", "install", "--server", "github://api.github.com/pulumiverse/pulumi-buildkite"].concat(args), {
|
|
11
|
-
stdio: ["ignore", "inherit", "inherit"]
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
if (res.error && res.error.code === "ENOENT") {
|
|
15
|
-
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
16
|
-
"It looks like `pulumi` is not installed on your system. " +
|
|
17
|
-
"Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
|
|
18
|
-
"You may try manually installing the plugin by running " +
|
|
19
|
-
"`pulumi plugin install " + args.join(" ") + "`");
|
|
20
|
-
} else if (res.error || res.status !== 0) {
|
|
21
|
-
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
22
|
-
"You may try to manually installing the plugin by running " +
|
|
23
|
-
"`pulumi plugin install " + args.join(" ") + "`");
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
process.exit(0);
|