@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
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows for standardized step configurations that can be used within various pipelines of an organization.
|
|
4
|
+
*
|
|
5
|
+
* More information on pipeline templates can be found in the [documentation](https://buildkite.com/docs/pipelines/templates).
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* <!--Start PulumiCodeChooser -->
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
13
|
+
*
|
|
14
|
+
* const templateRequired = new buildkite.pipeline.Template("templateRequired", {configuration: `steps:
|
|
15
|
+
* - label: ":pipeline:"
|
|
16
|
+
* command: "buildkite-agent pipeline upload .buildkite/pipeline-qa.yml"
|
|
17
|
+
*
|
|
18
|
+
* `});
|
|
19
|
+
* const templateFull = new buildkite.pipeline.Template("templateFull", {
|
|
20
|
+
* available: true,
|
|
21
|
+
* configuration: `steps:
|
|
22
|
+
* - label: ":pipeline:"
|
|
23
|
+
* command: "buildkite-agent pipeline upload .buildkite/pipeline-production.yml"
|
|
24
|
+
*
|
|
25
|
+
* `,
|
|
26
|
+
* description: "Production upload template",
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
* <!--End PulumiCodeChooser -->
|
|
30
|
+
*
|
|
31
|
+
* ## Import
|
|
32
|
+
*
|
|
33
|
+
* import a pipeline template resource using the templates GraphQL ID
|
|
34
|
+
*
|
|
35
|
+
* #
|
|
36
|
+
*
|
|
37
|
+
* You can use this query to find the first 50 templates (adjust for less or more):
|
|
38
|
+
*
|
|
39
|
+
* query getPipelineTemplateIds {
|
|
40
|
+
*
|
|
41
|
+
* organization(slug: "ORGANIZATION_SLUG") {
|
|
42
|
+
*
|
|
43
|
+
* pipelineTemplates(first: 50) {
|
|
44
|
+
*
|
|
45
|
+
* edges{
|
|
46
|
+
*
|
|
47
|
+
* node{
|
|
48
|
+
*
|
|
49
|
+
* id
|
|
50
|
+
*
|
|
51
|
+
* name
|
|
52
|
+
*
|
|
53
|
+
* }
|
|
54
|
+
*
|
|
55
|
+
* }
|
|
56
|
+
*
|
|
57
|
+
* }
|
|
58
|
+
*
|
|
59
|
+
* }
|
|
60
|
+
*
|
|
61
|
+
* }
|
|
62
|
+
*
|
|
63
|
+
* ```sh
|
|
64
|
+
* $ pulumi import buildkite:Pipeline/template:Template template UGlwZWxpbmVUZW1wbGF0ZS0tLWU0YWQ3YjdjLTljZDYtNGM0MS1hYWE0LTY2ZmI3ODY0MTMwNw==
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
export declare class Template extends pulumi.CustomResource {
|
|
68
|
+
/**
|
|
69
|
+
* Get an existing Template resource's state with the given name, ID, and optional extra
|
|
70
|
+
* properties used to qualify the lookup.
|
|
71
|
+
*
|
|
72
|
+
* @param name The _unique_ name of the resulting resource.
|
|
73
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
74
|
+
* @param state Any extra arguments used during the lookup.
|
|
75
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
76
|
+
*/
|
|
77
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TemplateState, opts?: pulumi.CustomResourceOptions): Template;
|
|
78
|
+
/**
|
|
79
|
+
* Returns true if the given object is an instance of Template. This is designed to work even
|
|
80
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
81
|
+
*/
|
|
82
|
+
static isInstance(obj: any): obj is Template;
|
|
83
|
+
/**
|
|
84
|
+
* If the pipeline template is available for assignment by non admin users.
|
|
85
|
+
*/
|
|
86
|
+
readonly available: pulumi.Output<boolean>;
|
|
87
|
+
/**
|
|
88
|
+
* The YAML step configuration for the pipeline template.
|
|
89
|
+
*/
|
|
90
|
+
readonly configuration: pulumi.Output<string>;
|
|
91
|
+
/**
|
|
92
|
+
* A description for the pipeline template.
|
|
93
|
+
*/
|
|
94
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
95
|
+
/**
|
|
96
|
+
* The name of the pipeline template.
|
|
97
|
+
*/
|
|
98
|
+
readonly name: pulumi.Output<string>;
|
|
99
|
+
/**
|
|
100
|
+
* The UUID of the pipeline template.
|
|
101
|
+
*/
|
|
102
|
+
readonly uuid: pulumi.Output<string>;
|
|
103
|
+
/**
|
|
104
|
+
* Create a Template resource with the given unique name, arguments, and options.
|
|
105
|
+
*
|
|
106
|
+
* @param name The _unique_ name of the resource.
|
|
107
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
108
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
109
|
+
*/
|
|
110
|
+
constructor(name: string, args: TemplateArgs, opts?: pulumi.CustomResourceOptions);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Input properties used for looking up and filtering Template resources.
|
|
114
|
+
*/
|
|
115
|
+
export interface TemplateState {
|
|
116
|
+
/**
|
|
117
|
+
* If the pipeline template is available for assignment by non admin users.
|
|
118
|
+
*/
|
|
119
|
+
available?: pulumi.Input<boolean>;
|
|
120
|
+
/**
|
|
121
|
+
* The YAML step configuration for the pipeline template.
|
|
122
|
+
*/
|
|
123
|
+
configuration?: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* A description for the pipeline template.
|
|
126
|
+
*/
|
|
127
|
+
description?: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* The name of the pipeline template.
|
|
130
|
+
*/
|
|
131
|
+
name?: pulumi.Input<string>;
|
|
132
|
+
/**
|
|
133
|
+
* The UUID of the pipeline template.
|
|
134
|
+
*/
|
|
135
|
+
uuid?: pulumi.Input<string>;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* The set of arguments for constructing a Template resource.
|
|
139
|
+
*/
|
|
140
|
+
export interface TemplateArgs {
|
|
141
|
+
/**
|
|
142
|
+
* If the pipeline template is available for assignment by non admin users.
|
|
143
|
+
*/
|
|
144
|
+
available?: pulumi.Input<boolean>;
|
|
145
|
+
/**
|
|
146
|
+
* The YAML step configuration for the pipeline template.
|
|
147
|
+
*/
|
|
148
|
+
configuration: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* A description for the pipeline template.
|
|
151
|
+
*/
|
|
152
|
+
description?: pulumi.Input<string>;
|
|
153
|
+
/**
|
|
154
|
+
* The name of the pipeline template.
|
|
155
|
+
*/
|
|
156
|
+
name?: pulumi.Input<string>;
|
|
157
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
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.Template = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows for standardized step configurations that can be used within various pipelines of an organization.
|
|
10
|
+
*
|
|
11
|
+
* More information on pipeline templates can be found in the [documentation](https://buildkite.com/docs/pipelines/templates).
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* <!--Start PulumiCodeChooser -->
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
19
|
+
*
|
|
20
|
+
* const templateRequired = new buildkite.pipeline.Template("templateRequired", {configuration: `steps:
|
|
21
|
+
* - label: ":pipeline:"
|
|
22
|
+
* command: "buildkite-agent pipeline upload .buildkite/pipeline-qa.yml"
|
|
23
|
+
*
|
|
24
|
+
* `});
|
|
25
|
+
* const templateFull = new buildkite.pipeline.Template("templateFull", {
|
|
26
|
+
* available: true,
|
|
27
|
+
* configuration: `steps:
|
|
28
|
+
* - label: ":pipeline:"
|
|
29
|
+
* command: "buildkite-agent pipeline upload .buildkite/pipeline-production.yml"
|
|
30
|
+
*
|
|
31
|
+
* `,
|
|
32
|
+
* description: "Production upload template",
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
* <!--End PulumiCodeChooser -->
|
|
36
|
+
*
|
|
37
|
+
* ## Import
|
|
38
|
+
*
|
|
39
|
+
* import a pipeline template resource using the templates GraphQL ID
|
|
40
|
+
*
|
|
41
|
+
* #
|
|
42
|
+
*
|
|
43
|
+
* You can use this query to find the first 50 templates (adjust for less or more):
|
|
44
|
+
*
|
|
45
|
+
* query getPipelineTemplateIds {
|
|
46
|
+
*
|
|
47
|
+
* organization(slug: "ORGANIZATION_SLUG") {
|
|
48
|
+
*
|
|
49
|
+
* pipelineTemplates(first: 50) {
|
|
50
|
+
*
|
|
51
|
+
* edges{
|
|
52
|
+
*
|
|
53
|
+
* node{
|
|
54
|
+
*
|
|
55
|
+
* id
|
|
56
|
+
*
|
|
57
|
+
* name
|
|
58
|
+
*
|
|
59
|
+
* }
|
|
60
|
+
*
|
|
61
|
+
* }
|
|
62
|
+
*
|
|
63
|
+
* }
|
|
64
|
+
*
|
|
65
|
+
* }
|
|
66
|
+
*
|
|
67
|
+
* }
|
|
68
|
+
*
|
|
69
|
+
* ```sh
|
|
70
|
+
* $ pulumi import buildkite:Pipeline/template:Template template UGlwZWxpbmVUZW1wbGF0ZS0tLWU0YWQ3YjdjLTljZDYtNGM0MS1hYWE0LTY2ZmI3ODY0MTMwNw==
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
class Template extends pulumi.CustomResource {
|
|
74
|
+
/**
|
|
75
|
+
* Get an existing Template resource's state with the given name, ID, and optional extra
|
|
76
|
+
* properties used to qualify the lookup.
|
|
77
|
+
*
|
|
78
|
+
* @param name The _unique_ name of the resulting resource.
|
|
79
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
80
|
+
* @param state Any extra arguments used during the lookup.
|
|
81
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
82
|
+
*/
|
|
83
|
+
static get(name, id, state, opts) {
|
|
84
|
+
return new Template(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Returns true if the given object is an instance of Template. This is designed to work even
|
|
88
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
89
|
+
*/
|
|
90
|
+
static isInstance(obj) {
|
|
91
|
+
if (obj === undefined || obj === null) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
return obj['__pulumiType'] === Template.__pulumiType;
|
|
95
|
+
}
|
|
96
|
+
constructor(name, argsOrState, opts) {
|
|
97
|
+
let resourceInputs = {};
|
|
98
|
+
opts = opts || {};
|
|
99
|
+
if (opts.id) {
|
|
100
|
+
const state = argsOrState;
|
|
101
|
+
resourceInputs["available"] = state ? state.available : undefined;
|
|
102
|
+
resourceInputs["configuration"] = state ? state.configuration : undefined;
|
|
103
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
104
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
105
|
+
resourceInputs["uuid"] = state ? state.uuid : undefined;
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
const args = argsOrState;
|
|
109
|
+
if ((!args || args.configuration === undefined) && !opts.urn) {
|
|
110
|
+
throw new Error("Missing required property 'configuration'");
|
|
111
|
+
}
|
|
112
|
+
resourceInputs["available"] = args ? args.available : undefined;
|
|
113
|
+
resourceInputs["configuration"] = args ? args.configuration : undefined;
|
|
114
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
115
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
116
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
117
|
+
}
|
|
118
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
119
|
+
super(Template.__pulumiType, name, resourceInputs, opts);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
exports.Template = Template;
|
|
123
|
+
/** @internal */
|
|
124
|
+
Template.__pulumiType = 'buildkite:Pipeline/template:Template';
|
|
125
|
+
//# sourceMappingURL=template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot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
+
import * as inputs from "./types/input";
|
|
2
3
|
/**
|
|
3
4
|
* The provider type for the buildkite package. By default, resources use package-wide configuration
|
|
4
5
|
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
@@ -12,19 +13,25 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
12
13
|
*/
|
|
13
14
|
static isInstance(obj: any): obj is Provider;
|
|
14
15
|
/**
|
|
15
|
-
* API token with GraphQL access and `write_pipelines
|
|
16
|
+
* API token with GraphQL access and `write_pipelines`, `read_pipelines` and `write_suites` REST API scopes. You can
|
|
17
|
+
* generate a token from [your settings
|
|
18
|
+
* page](https://buildkite.com/user/api-access-tokens/new?description=terraform&scopes[]=write_pipelines&scopes[]=write_suites&scopes[]=read_pipelines&scopes[]=graphql).
|
|
19
|
+
* If not provided, the value is taken from the `BUILDKITE_API_TOKEN` environment variable.
|
|
16
20
|
*/
|
|
17
21
|
readonly apiToken: pulumi.Output<string | undefined>;
|
|
18
22
|
/**
|
|
19
|
-
* Base URL for the GraphQL API to use
|
|
23
|
+
* Base URL for the GraphQL API to use. If not provided, the value is taken from the `BUILDKITE_GRAPHQL_URL` environment
|
|
24
|
+
* variable.
|
|
20
25
|
*/
|
|
21
26
|
readonly graphqlUrl: pulumi.Output<string | undefined>;
|
|
22
27
|
/**
|
|
23
|
-
* The Buildkite organization slug
|
|
28
|
+
* The Buildkite organization slug. This can be found on the [settings](https://buildkite.com/organizations/~/settings)
|
|
29
|
+
* page. If not provided, the value is taken from the `BUILDKITE_ORGANIZATION_SLUG` environment variable.
|
|
24
30
|
*/
|
|
25
31
|
readonly organization: pulumi.Output<string | undefined>;
|
|
26
32
|
/**
|
|
27
|
-
* Base URL for the REST API to use
|
|
33
|
+
* Base URL for the REST API to use. If not provided, the value is taken from the `BUILDKITE_REST_URL` environment
|
|
34
|
+
* variable.
|
|
28
35
|
*/
|
|
29
36
|
readonly restUrl: pulumi.Output<string | undefined>;
|
|
30
37
|
/**
|
|
@@ -41,23 +48,30 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
41
48
|
*/
|
|
42
49
|
export interface ProviderArgs {
|
|
43
50
|
/**
|
|
44
|
-
* API token with GraphQL access and `write_pipelines
|
|
51
|
+
* API token with GraphQL access and `write_pipelines`, `read_pipelines` and `write_suites` REST API scopes. You can
|
|
52
|
+
* generate a token from [your settings
|
|
53
|
+
* page](https://buildkite.com/user/api-access-tokens/new?description=terraform&scopes[]=write_pipelines&scopes[]=write_suites&scopes[]=read_pipelines&scopes[]=graphql).
|
|
54
|
+
* If not provided, the value is taken from the `BUILDKITE_API_TOKEN` environment variable.
|
|
45
55
|
*/
|
|
46
56
|
apiToken?: pulumi.Input<string>;
|
|
47
57
|
/**
|
|
48
|
-
*
|
|
58
|
+
* Enable this to archive pipelines when destroying the resource. This is opposed to completely deleting pipelines.
|
|
49
59
|
*/
|
|
50
60
|
archivePipelineOnDelete?: pulumi.Input<boolean>;
|
|
51
61
|
/**
|
|
52
|
-
* Base URL for the GraphQL API to use
|
|
62
|
+
* Base URL for the GraphQL API to use. If not provided, the value is taken from the `BUILDKITE_GRAPHQL_URL` environment
|
|
63
|
+
* variable.
|
|
53
64
|
*/
|
|
54
65
|
graphqlUrl?: pulumi.Input<string>;
|
|
55
66
|
/**
|
|
56
|
-
* The Buildkite organization slug
|
|
67
|
+
* The Buildkite organization slug. This can be found on the [settings](https://buildkite.com/organizations/~/settings)
|
|
68
|
+
* page. If not provided, the value is taken from the `BUILDKITE_ORGANIZATION_SLUG` environment variable.
|
|
57
69
|
*/
|
|
58
70
|
organization?: pulumi.Input<string>;
|
|
59
71
|
/**
|
|
60
|
-
* Base URL for the REST API to use
|
|
72
|
+
* Base URL for the REST API to use. If not provided, the value is taken from the `BUILDKITE_REST_URL` environment
|
|
73
|
+
* variable.
|
|
61
74
|
*/
|
|
62
75
|
restUrl?: pulumi.Input<string>;
|
|
76
|
+
timeouts?: pulumi.Input<inputs.ProviderTimeouts>;
|
|
63
77
|
}
|
package/provider.js
CHANGED
|
@@ -38,6 +38,7 @@ class Provider extends pulumi.ProviderResource {
|
|
|
38
38
|
resourceInputs["graphqlUrl"] = args ? args.graphqlUrl : undefined;
|
|
39
39
|
resourceInputs["organization"] = args ? args.organization : undefined;
|
|
40
40
|
resourceInputs["restUrl"] = args ? args.restUrl : undefined;
|
|
41
|
+
resourceInputs["timeouts"] = pulumi.output(args ? args.timeouts : undefined).apply(JSON.stringify);
|
|
41
42
|
}
|
|
42
43
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
43
44
|
const secretOpts = { additionalSecretOutputs: ["apiToken"] };
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAyBD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,cAAc,CAAC,UAAU,CAAC,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,C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umi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Use this data source to look up properties of a team. This can be used to
|
|
6
|
-
* validate that a team exists before setting the team slug on a pipeline.
|
|
7
|
-
*
|
|
8
|
-
* Buildkite documentation: https://buildkite.com/docs/pipelines/permissions
|
|
3
|
+
* Use this data source to retrieve a team by slug or id. You can find out more about teams in the Buildkite
|
|
4
|
+
* [documentation](https://buildkite.com/docs/pipelines/permissions).
|
|
9
5
|
*
|
|
10
6
|
* ## Example Usage
|
|
11
7
|
*
|
|
8
|
+
* <!--Start PulumiCodeChooser -->
|
|
12
9
|
* ```typescript
|
|
13
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
14
11
|
* import * as buildkite from "@pulumi/buildkite";
|
|
15
12
|
*
|
|
16
|
-
* const
|
|
17
|
-
* id:
|
|
13
|
+
* const teamDev = buildkite.Team.getTeam({
|
|
14
|
+
* id: buildkite_team.team_dev.id,
|
|
15
|
+
* });
|
|
16
|
+
* const team = buildkite.Team.getTeam({
|
|
17
|
+
* slug: "Everyone",
|
|
18
18
|
* });
|
|
19
19
|
* ```
|
|
20
|
+
* <!--End PulumiCodeChooser -->
|
|
20
21
|
*/
|
|
21
22
|
export declare function getTeam(args?: GetTeamArgs, opts?: pulumi.InvokeOptions): Promise<GetTeamResult>;
|
|
22
23
|
/**
|
|
@@ -24,14 +25,11 @@ export declare function getTeam(args?: GetTeamArgs, opts?: pulumi.InvokeOptions)
|
|
|
24
25
|
*/
|
|
25
26
|
export interface GetTeamArgs {
|
|
26
27
|
/**
|
|
27
|
-
* The GraphQL ID of the team
|
|
28
|
+
* The GraphQL ID of the team to find.
|
|
28
29
|
*/
|
|
29
30
|
id?: string;
|
|
30
31
|
/**
|
|
31
|
-
* The slug of the team
|
|
32
|
-
* "<organizaton/team-name>"
|
|
33
|
-
*
|
|
34
|
-
* The `team` data-source supports **either** the use of `id` or `slug` for lookup of a team.
|
|
32
|
+
* The slug of the team to find.
|
|
35
33
|
*/
|
|
36
34
|
slug?: string;
|
|
37
35
|
}
|
|
@@ -40,57 +38,61 @@ export interface GetTeamArgs {
|
|
|
40
38
|
*/
|
|
41
39
|
export interface GetTeamResult {
|
|
42
40
|
/**
|
|
43
|
-
*
|
|
41
|
+
* The default member role of the team.
|
|
44
42
|
*/
|
|
45
43
|
readonly defaultMemberRole: string;
|
|
46
44
|
/**
|
|
47
|
-
* Whether
|
|
45
|
+
* Whether the team is the default team.
|
|
48
46
|
*/
|
|
49
47
|
readonly defaultTeam: boolean;
|
|
50
48
|
/**
|
|
51
|
-
*
|
|
49
|
+
* The description of the team.
|
|
52
50
|
*/
|
|
53
51
|
readonly description: string;
|
|
54
52
|
/**
|
|
55
|
-
* The GraphQL ID of the team
|
|
53
|
+
* The GraphQL ID of the team to find.
|
|
56
54
|
*/
|
|
57
55
|
readonly id: string;
|
|
58
56
|
/**
|
|
59
|
-
* Whether
|
|
57
|
+
* Whether members can create pipelines.
|
|
60
58
|
*/
|
|
61
59
|
readonly membersCanCreatePipelines: boolean;
|
|
62
60
|
/**
|
|
63
|
-
* The name of the team
|
|
61
|
+
* The name of the team.
|
|
64
62
|
*/
|
|
65
63
|
readonly name: string;
|
|
66
64
|
/**
|
|
67
|
-
*
|
|
65
|
+
* The privacy setting of the team.
|
|
68
66
|
*/
|
|
69
67
|
readonly privacy: string;
|
|
68
|
+
/**
|
|
69
|
+
* The slug of the team to find.
|
|
70
|
+
*/
|
|
70
71
|
readonly slug: string;
|
|
71
72
|
/**
|
|
72
|
-
* The UUID of the team
|
|
73
|
+
* The UUID of the team.
|
|
73
74
|
*/
|
|
74
75
|
readonly uuid: string;
|
|
75
76
|
}
|
|
76
77
|
/**
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
* Use this data source to look up properties of a team. This can be used to
|
|
80
|
-
* validate that a team exists before setting the team slug on a pipeline.
|
|
81
|
-
*
|
|
82
|
-
* Buildkite documentation: https://buildkite.com/docs/pipelines/permissions
|
|
78
|
+
* Use this data source to retrieve a team by slug or id. You can find out more about teams in the Buildkite
|
|
79
|
+
* [documentation](https://buildkite.com/docs/pipelines/permissions).
|
|
83
80
|
*
|
|
84
81
|
* ## Example Usage
|
|
85
82
|
*
|
|
83
|
+
* <!--Start PulumiCodeChooser -->
|
|
86
84
|
* ```typescript
|
|
87
85
|
* import * as pulumi from "@pulumi/pulumi";
|
|
88
86
|
* import * as buildkite from "@pulumi/buildkite";
|
|
89
87
|
*
|
|
90
|
-
* const
|
|
91
|
-
* id:
|
|
88
|
+
* const teamDev = buildkite.Team.getTeam({
|
|
89
|
+
* id: buildkite_team.team_dev.id,
|
|
90
|
+
* });
|
|
91
|
+
* const team = buildkite.Team.getTeam({
|
|
92
|
+
* slug: "Everyone",
|
|
92
93
|
* });
|
|
93
94
|
* ```
|
|
95
|
+
* <!--End PulumiCodeChooser -->
|
|
94
96
|
*/
|
|
95
97
|
export declare function getTeamOutput(args?: GetTeamOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTeamResult>;
|
|
96
98
|
/**
|
|
@@ -98,14 +100,11 @@ export declare function getTeamOutput(args?: GetTeamOutputArgs, opts?: pulumi.In
|
|
|
98
100
|
*/
|
|
99
101
|
export interface GetTeamOutputArgs {
|
|
100
102
|
/**
|
|
101
|
-
* The GraphQL ID of the team
|
|
103
|
+
* The GraphQL ID of the team to find.
|
|
102
104
|
*/
|
|
103
105
|
id?: pulumi.Input<string>;
|
|
104
106
|
/**
|
|
105
|
-
* The slug of the team
|
|
106
|
-
* "<organizaton/team-name>"
|
|
107
|
-
*
|
|
108
|
-
* The `team` data-source supports **either** the use of `id` or `slug` for lookup of a team.
|
|
107
|
+
* The slug of the team to find.
|
|
109
108
|
*/
|
|
110
109
|
slug?: pulumi.Input<string>;
|
|
111
110
|
}
|
package/team/getTeam.js
CHANGED
|
@@ -6,23 +6,24 @@ exports.getTeamOutput = exports.getTeam = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* Use this data source to look up properties of a team. This can be used to
|
|
12
|
-
* validate that a team exists before setting the team slug on a pipeline.
|
|
13
|
-
*
|
|
14
|
-
* Buildkite documentation: https://buildkite.com/docs/pipelines/permissions
|
|
9
|
+
* Use this data source to retrieve a team by slug or id. You can find out more about teams in the Buildkite
|
|
10
|
+
* [documentation](https://buildkite.com/docs/pipelines/permissions).
|
|
15
11
|
*
|
|
16
12
|
* ## Example Usage
|
|
17
13
|
*
|
|
14
|
+
* <!--Start PulumiCodeChooser -->
|
|
18
15
|
* ```typescript
|
|
19
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
20
17
|
* import * as buildkite from "@pulumi/buildkite";
|
|
21
18
|
*
|
|
22
|
-
* const
|
|
23
|
-
* id:
|
|
19
|
+
* const teamDev = buildkite.Team.getTeam({
|
|
20
|
+
* id: buildkite_team.team_dev.id,
|
|
21
|
+
* });
|
|
22
|
+
* const team = buildkite.Team.getTeam({
|
|
23
|
+
* slug: "Everyone",
|
|
24
24
|
* });
|
|
25
25
|
* ```
|
|
26
|
+
* <!--End PulumiCodeChooser -->
|
|
26
27
|
*/
|
|
27
28
|
function getTeam(args, opts) {
|
|
28
29
|
args = args || {};
|
|
@@ -34,23 +35,24 @@ function getTeam(args, opts) {
|
|
|
34
35
|
}
|
|
35
36
|
exports.getTeam = getTeam;
|
|
36
37
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* Use this data source to look up properties of a team. This can be used to
|
|
40
|
-
* validate that a team exists before setting the team slug on a pipeline.
|
|
41
|
-
*
|
|
42
|
-
* Buildkite documentation: https://buildkite.com/docs/pipelines/permissions
|
|
38
|
+
* Use this data source to retrieve a team by slug or id. You can find out more about teams in the Buildkite
|
|
39
|
+
* [documentation](https://buildkite.com/docs/pipelines/permissions).
|
|
43
40
|
*
|
|
44
41
|
* ## Example Usage
|
|
45
42
|
*
|
|
43
|
+
* <!--Start PulumiCodeChooser -->
|
|
46
44
|
* ```typescript
|
|
47
45
|
* import * as pulumi from "@pulumi/pulumi";
|
|
48
46
|
* import * as buildkite from "@pulumi/buildkite";
|
|
49
47
|
*
|
|
50
|
-
* const
|
|
51
|
-
* id:
|
|
48
|
+
* const teamDev = buildkite.Team.getTeam({
|
|
49
|
+
* id: buildkite_team.team_dev.id,
|
|
50
|
+
* });
|
|
51
|
+
* const team = buildkite.Team.getTeam({
|
|
52
|
+
* slug: "Everyone",
|
|
52
53
|
* });
|
|
53
54
|
* ```
|
|
55
|
+
* <!--End PulumiCodeChooser -->
|
|
54
56
|
*/
|
|
55
57
|
function getTeamOutput(args, opts) {
|
|
56
58
|
return pulumi.output(args).apply((a) => getTeam(a, opts));
|
package/team/getTeam.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTeam.js","sourceRoot":"","sources":["../../team/getTeam.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getTeam.js","sourceRoot":"","sources":["../../team/getTeam.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,OAAO,CAAC,IAAkB,EAAE,IAA2B;IACnE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,EAAE;QAC3D,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0BAQC;AAyDD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,sCAEC"}
|