@pulumi/gitlab 5.1.0-alpha.1685079676 → 6.0.0-alpha.1685643149
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/deployKey.d.ts +8 -0
- package/deployKey.js +2 -0
- package/deployKey.js.map +1 -1
- package/deployToken.d.ts +8 -0
- package/deployToken.js +2 -0
- package/deployToken.js.map +1 -1
- package/getGroupVariable.d.ts +4 -0
- package/getGroupVariable.js.map +1 -1
- package/getInstanceVariable.d.ts +4 -0
- package/getInstanceVariable.js.map +1 -1
- package/getProject.d.ts +0 -4
- package/getProject.js.map +1 -1
- package/getProjectIssue.d.ts +2 -2
- package/getProjectIssue.js +2 -2
- package/getProjectVariable.d.ts +4 -0
- package/getProjectVariable.js.map +1 -1
- package/groupAccessToken.d.ts +4 -4
- package/groupLabel.d.ts +8 -0
- package/groupLabel.js +2 -0
- package/groupLabel.js.map +1 -1
- package/groupLdapLink.d.ts +34 -30
- package/groupLdapLink.js +12 -21
- package/groupLdapLink.js.map +1 -1
- package/groupVariable.d.ts +12 -0
- package/groupVariable.js +3 -3
- package/groupVariable.js.map +1 -1
- package/index.d.ts +27 -3
- package/index.js +47 -6
- package/index.js.map +1 -1
- package/instanceVariable.d.ts +12 -0
- package/instanceVariable.js +3 -3
- package/instanceVariable.js.map +1 -1
- package/integrationCustomIssueTracker.d.ts +134 -0
- package/integrationCustomIssueTracker.js +100 -0
- package/integrationCustomIssueTracker.js.map +1 -0
- package/integrationEmailsOnPush.d.ts +189 -0
- package/integrationEmailsOnPush.js +106 -0
- package/integrationEmailsOnPush.js.map +1 -0
- package/integrationExternalWiki.d.ts +129 -0
- package/integrationExternalWiki.js +96 -0
- package/integrationExternalWiki.js.map +1 -0
- package/integrationGithub.d.ts +150 -0
- package/integrationGithub.js +108 -0
- package/integrationGithub.js.map +1 -0
- package/integrationJira.d.ts +291 -0
- package/integrationJira.js +132 -0
- package/integrationJira.js.map +1 -0
- package/integrationMicrosoftTeams.d.ts +246 -0
- package/integrationMicrosoftTeams.js +115 -0
- package/integrationMicrosoftTeams.js.map +1 -0
- package/integrationPipelinesEmail.d.ts +115 -0
- package/integrationPipelinesEmail.js +92 -0
- package/integrationPipelinesEmail.js.map +1 -0
- package/integrationSlack.d.ts +358 -0
- package/integrationSlack.js +133 -0
- package/integrationSlack.js.map +1 -0
- package/label.d.ts +10 -27
- package/label.js +4 -27
- package/label.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/personalAccessToken.d.ts +4 -4
- package/pipelineSchedule.d.ts +8 -0
- package/pipelineSchedule.js +2 -0
- package/pipelineSchedule.js.map +1 -1
- package/pipelineTrigger.d.ts +8 -0
- package/pipelineTrigger.js +2 -0
- package/pipelineTrigger.js.map +1 -1
- package/project.d.ts +0 -12
- package/project.js +0 -2
- package/project.js.map +1 -1
- package/projectAccessToken.d.ts +4 -4
- package/projectFreezePeriod.d.ts +7 -7
- package/projectFreezePeriod.js +5 -5
- package/projectFreezePeriod.js.map +1 -1
- package/projectIssueBoard.d.ts +0 -52
- package/projectIssueBoard.js +0 -52
- package/projectIssueBoard.js.map +1 -1
- package/projectLabel.d.ts +124 -0
- package/{managedLicense.js → projectLabel.js} +31 -26
- package/projectLabel.js.map +1 -0
- package/projectLevelMrApprovals.d.ts +7 -7
- package/projectLevelMrApprovals.js +5 -5
- package/projectLevelMrApprovals.js.map +1 -1
- package/projectMembership.d.ts +8 -8
- package/projectMembership.js +6 -6
- package/projectMembership.js.map +1 -1
- package/projectShareGroup.d.ts +7 -7
- package/projectShareGroup.js +5 -5
- package/projectShareGroup.js.map +1 -1
- package/projectVariable.d.ts +12 -0
- package/projectVariable.js +3 -3
- package/projectVariable.js.map +1 -1
- package/serviceCustomIssueTracker.d.ts +3 -1
- package/serviceCustomIssueTracker.js +3 -1
- package/serviceCustomIssueTracker.js.map +1 -1
- package/serviceEmailsOnPush.d.ts +2 -0
- package/serviceEmailsOnPush.js +2 -0
- package/serviceEmailsOnPush.js.map +1 -1
- package/serviceExternalWiki.d.ts +2 -0
- package/serviceExternalWiki.js +2 -0
- package/serviceExternalWiki.js.map +1 -1
- package/serviceGithub.d.ts +3 -1
- package/serviceGithub.js +3 -1
- package/serviceGithub.js.map +1 -1
- package/serviceJira.d.ts +3 -1
- package/serviceJira.js +3 -1
- package/serviceJira.js.map +1 -1
- package/serviceMicrosoftTeams.d.ts +3 -1
- package/serviceMicrosoftTeams.js +3 -1
- package/serviceMicrosoftTeams.js.map +1 -1
- package/servicePipelinesEmail.d.ts +2 -0
- package/servicePipelinesEmail.js +2 -0
- package/servicePipelinesEmail.js.map +1 -1
- package/serviceSlack.d.ts +2 -0
- package/serviceSlack.js +2 -0
- package/serviceSlack.js.map +1 -1
- package/types/output.d.ts +3 -1
- package/managedLicense.d.ts +0 -109
- package/managedLicense.js.map +0 -1
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The `gitlab.IntegrationGithub` resource allows to manage the lifecycle of a project integration with GitHub.
|
|
4
|
+
*
|
|
5
|
+
* > This resource requires a GitLab Enterprise instance.
|
|
6
|
+
*
|
|
7
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#github)
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
14
|
+
*
|
|
15
|
+
* const awesomeProject = new gitlab.Project("awesomeProject", {
|
|
16
|
+
* description: "My awesome project.",
|
|
17
|
+
* visibilityLevel: "public",
|
|
18
|
+
* });
|
|
19
|
+
* const github = new gitlab.IntegrationGithub("github", {
|
|
20
|
+
* project: awesomeProject.id,
|
|
21
|
+
* token: "REDACTED",
|
|
22
|
+
* repositoryUrl: "https://github.com/gitlabhq/terraform-provider-gitlab",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* ```sh
|
|
29
|
+
* $ pulumi import gitlab:index/integrationGithub:IntegrationGithub You can import a gitlab_integration_github state using `<resource> <project_id>`
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import gitlab:index/integrationGithub:IntegrationGithub github 1
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare class IntegrationGithub extends pulumi.CustomResource {
|
|
37
|
+
/**
|
|
38
|
+
* Get an existing IntegrationGithub resource's state with the given name, ID, and optional extra
|
|
39
|
+
* properties used to qualify the lookup.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resulting resource.
|
|
42
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
43
|
+
* @param state Any extra arguments used during the lookup.
|
|
44
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
45
|
+
*/
|
|
46
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: IntegrationGithubState, opts?: pulumi.CustomResourceOptions): IntegrationGithub;
|
|
47
|
+
/**
|
|
48
|
+
* Returns true if the given object is an instance of IntegrationGithub. 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: any): obj is IntegrationGithub;
|
|
52
|
+
/**
|
|
53
|
+
* Whether the integration is active.
|
|
54
|
+
*/
|
|
55
|
+
readonly active: pulumi.Output<boolean>;
|
|
56
|
+
/**
|
|
57
|
+
* Create time.
|
|
58
|
+
*/
|
|
59
|
+
readonly createdAt: pulumi.Output<string>;
|
|
60
|
+
/**
|
|
61
|
+
* ID of the project you want to activate integration on.
|
|
62
|
+
*/
|
|
63
|
+
readonly project: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* The URL of the GitHub repo to integrate with, e,g, https://github.com/gitlabhq/terraform-provider-gitlab.
|
|
66
|
+
*/
|
|
67
|
+
readonly repositoryUrl: pulumi.Output<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Append instance name instead of branch to the status. Must enable to set a GitLab status check as *required* in GitHub. See [Static / dynamic status check names] to learn more.
|
|
70
|
+
*/
|
|
71
|
+
readonly staticContext: pulumi.Output<boolean | undefined>;
|
|
72
|
+
/**
|
|
73
|
+
* Title.
|
|
74
|
+
*/
|
|
75
|
+
readonly title: pulumi.Output<string>;
|
|
76
|
+
/**
|
|
77
|
+
* A GitHub personal access token with at least `repo:status` scope.
|
|
78
|
+
*/
|
|
79
|
+
readonly token: pulumi.Output<string>;
|
|
80
|
+
/**
|
|
81
|
+
* Update time.
|
|
82
|
+
*/
|
|
83
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Create a IntegrationGithub resource with the given unique name, arguments, and options.
|
|
86
|
+
*
|
|
87
|
+
* @param name The _unique_ name of the resource.
|
|
88
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
89
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
90
|
+
*/
|
|
91
|
+
constructor(name: string, args: IntegrationGithubArgs, opts?: pulumi.CustomResourceOptions);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Input properties used for looking up and filtering IntegrationGithub resources.
|
|
95
|
+
*/
|
|
96
|
+
export interface IntegrationGithubState {
|
|
97
|
+
/**
|
|
98
|
+
* Whether the integration is active.
|
|
99
|
+
*/
|
|
100
|
+
active?: pulumi.Input<boolean>;
|
|
101
|
+
/**
|
|
102
|
+
* Create time.
|
|
103
|
+
*/
|
|
104
|
+
createdAt?: pulumi.Input<string>;
|
|
105
|
+
/**
|
|
106
|
+
* ID of the project you want to activate integration on.
|
|
107
|
+
*/
|
|
108
|
+
project?: pulumi.Input<string>;
|
|
109
|
+
/**
|
|
110
|
+
* The URL of the GitHub repo to integrate with, e,g, https://github.com/gitlabhq/terraform-provider-gitlab.
|
|
111
|
+
*/
|
|
112
|
+
repositoryUrl?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* Append instance name instead of branch to the status. Must enable to set a GitLab status check as *required* in GitHub. See [Static / dynamic status check names] to learn more.
|
|
115
|
+
*/
|
|
116
|
+
staticContext?: pulumi.Input<boolean>;
|
|
117
|
+
/**
|
|
118
|
+
* Title.
|
|
119
|
+
*/
|
|
120
|
+
title?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* A GitHub personal access token with at least `repo:status` scope.
|
|
123
|
+
*/
|
|
124
|
+
token?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Update time.
|
|
127
|
+
*/
|
|
128
|
+
updatedAt?: pulumi.Input<string>;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* The set of arguments for constructing a IntegrationGithub resource.
|
|
132
|
+
*/
|
|
133
|
+
export interface IntegrationGithubArgs {
|
|
134
|
+
/**
|
|
135
|
+
* ID of the project you want to activate integration on.
|
|
136
|
+
*/
|
|
137
|
+
project: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* The URL of the GitHub repo to integrate with, e,g, https://github.com/gitlabhq/terraform-provider-gitlab.
|
|
140
|
+
*/
|
|
141
|
+
repositoryUrl: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* Append instance name instead of branch to the status. Must enable to set a GitLab status check as *required* in GitHub. See [Static / dynamic status check names] to learn more.
|
|
144
|
+
*/
|
|
145
|
+
staticContext?: pulumi.Input<boolean>;
|
|
146
|
+
/**
|
|
147
|
+
* A GitHub personal access token with at least `repo:status` scope.
|
|
148
|
+
*/
|
|
149
|
+
token: pulumi.Input<string>;
|
|
150
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
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.IntegrationGithub = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The `gitlab.IntegrationGithub` resource allows to manage the lifecycle of a project integration with GitHub.
|
|
10
|
+
*
|
|
11
|
+
* > This resource requires a GitLab Enterprise instance.
|
|
12
|
+
*
|
|
13
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#github)
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
20
|
+
*
|
|
21
|
+
* const awesomeProject = new gitlab.Project("awesomeProject", {
|
|
22
|
+
* description: "My awesome project.",
|
|
23
|
+
* visibilityLevel: "public",
|
|
24
|
+
* });
|
|
25
|
+
* const github = new gitlab.IntegrationGithub("github", {
|
|
26
|
+
* project: awesomeProject.id,
|
|
27
|
+
* token: "REDACTED",
|
|
28
|
+
* repositoryUrl: "https://github.com/gitlabhq/terraform-provider-gitlab",
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* ## Import
|
|
33
|
+
*
|
|
34
|
+
* ```sh
|
|
35
|
+
* $ pulumi import gitlab:index/integrationGithub:IntegrationGithub You can import a gitlab_integration_github state using `<resource> <project_id>`
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* ```sh
|
|
39
|
+
* $ pulumi import gitlab:index/integrationGithub:IntegrationGithub github 1
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
class IntegrationGithub extends pulumi.CustomResource {
|
|
43
|
+
/**
|
|
44
|
+
* Get an existing IntegrationGithub resource's state with the given name, ID, and optional extra
|
|
45
|
+
* properties used to qualify the lookup.
|
|
46
|
+
*
|
|
47
|
+
* @param name The _unique_ name of the resulting resource.
|
|
48
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
49
|
+
* @param state Any extra arguments used during the lookup.
|
|
50
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
51
|
+
*/
|
|
52
|
+
static get(name, id, state, opts) {
|
|
53
|
+
return new IntegrationGithub(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Returns true if the given object is an instance of IntegrationGithub. This is designed to work even
|
|
57
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
58
|
+
*/
|
|
59
|
+
static isInstance(obj) {
|
|
60
|
+
if (obj === undefined || obj === null) {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
return obj['__pulumiType'] === IntegrationGithub.__pulumiType;
|
|
64
|
+
}
|
|
65
|
+
constructor(name, argsOrState, opts) {
|
|
66
|
+
let resourceInputs = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
if (opts.id) {
|
|
69
|
+
const state = argsOrState;
|
|
70
|
+
resourceInputs["active"] = state ? state.active : undefined;
|
|
71
|
+
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
|
|
72
|
+
resourceInputs["project"] = state ? state.project : undefined;
|
|
73
|
+
resourceInputs["repositoryUrl"] = state ? state.repositoryUrl : undefined;
|
|
74
|
+
resourceInputs["staticContext"] = state ? state.staticContext : undefined;
|
|
75
|
+
resourceInputs["title"] = state ? state.title : undefined;
|
|
76
|
+
resourceInputs["token"] = state ? state.token : undefined;
|
|
77
|
+
resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
const args = argsOrState;
|
|
81
|
+
if ((!args || args.project === undefined) && !opts.urn) {
|
|
82
|
+
throw new Error("Missing required property 'project'");
|
|
83
|
+
}
|
|
84
|
+
if ((!args || args.repositoryUrl === undefined) && !opts.urn) {
|
|
85
|
+
throw new Error("Missing required property 'repositoryUrl'");
|
|
86
|
+
}
|
|
87
|
+
if ((!args || args.token === undefined) && !opts.urn) {
|
|
88
|
+
throw new Error("Missing required property 'token'");
|
|
89
|
+
}
|
|
90
|
+
resourceInputs["project"] = args ? args.project : undefined;
|
|
91
|
+
resourceInputs["repositoryUrl"] = args ? args.repositoryUrl : undefined;
|
|
92
|
+
resourceInputs["staticContext"] = args ? args.staticContext : undefined;
|
|
93
|
+
resourceInputs["token"] = (args === null || args === void 0 ? void 0 : args.token) ? pulumi.secret(args.token) : undefined;
|
|
94
|
+
resourceInputs["active"] = undefined /*out*/;
|
|
95
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
96
|
+
resourceInputs["title"] = undefined /*out*/;
|
|
97
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
98
|
+
}
|
|
99
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
100
|
+
const secretOpts = { additionalSecretOutputs: ["token"] };
|
|
101
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
102
|
+
super(IntegrationGithub.__pulumiType, name, resourceInputs, opts);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
exports.IntegrationGithub = IntegrationGithub;
|
|
106
|
+
/** @internal */
|
|
107
|
+
IntegrationGithub.__pulumiType = 'gitlab:index/integrationGithub:IntegrationGithub';
|
|
108
|
+
//# sourceMappingURL=integrationGithub.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrationGithub.js","sourceRoot":"","sources":["../integrationGithub.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The `gitlab.IntegrationJira` resource allows to manage the lifecycle of a project integration with Jira.
|
|
4
|
+
*
|
|
5
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/services.html#jira)
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
12
|
+
*
|
|
13
|
+
* const awesomeProject = new gitlab.Project("awesomeProject", {
|
|
14
|
+
* description: "My awesome project.",
|
|
15
|
+
* visibilityLevel: "public",
|
|
16
|
+
* });
|
|
17
|
+
* const jira = new gitlab.IntegrationJira("jira", {
|
|
18
|
+
* project: awesomeProject.id,
|
|
19
|
+
* url: "https://jira.example.com",
|
|
20
|
+
* username: "user",
|
|
21
|
+
* password: "mypass",
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ## Import
|
|
26
|
+
*
|
|
27
|
+
* You can import a gitlab_integration_jira state using the project ID, e.g.
|
|
28
|
+
*
|
|
29
|
+
* ```sh
|
|
30
|
+
* $ pulumi import gitlab:index/integrationJira:IntegrationJira jira 1
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare class IntegrationJira extends pulumi.CustomResource {
|
|
34
|
+
/**
|
|
35
|
+
* Get an existing IntegrationJira resource's state with the given name, ID, and optional extra
|
|
36
|
+
* properties used to qualify the lookup.
|
|
37
|
+
*
|
|
38
|
+
* @param name The _unique_ name of the resulting resource.
|
|
39
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
40
|
+
* @param state Any extra arguments used during the lookup.
|
|
41
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
+
*/
|
|
43
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: IntegrationJiraState, opts?: pulumi.CustomResourceOptions): IntegrationJira;
|
|
44
|
+
/**
|
|
45
|
+
* Returns true if the given object is an instance of IntegrationJira. This is designed to work even
|
|
46
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
47
|
+
*/
|
|
48
|
+
static isInstance(obj: any): obj is IntegrationJira;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the integration is active.
|
|
51
|
+
*/
|
|
52
|
+
readonly active: pulumi.Output<boolean>;
|
|
53
|
+
/**
|
|
54
|
+
* The base URL to the Jira instance API. Web URL value is used if not set. For example, https://jira-api.example.com.
|
|
55
|
+
*/
|
|
56
|
+
readonly apiUrl: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Enable comments inside Jira issues on each GitLab event (commit / merge request)
|
|
59
|
+
*/
|
|
60
|
+
readonly commentOnEventEnabled: pulumi.Output<boolean>;
|
|
61
|
+
/**
|
|
62
|
+
* Enable notifications for commit events
|
|
63
|
+
*/
|
|
64
|
+
readonly commitEvents: pulumi.Output<boolean>;
|
|
65
|
+
/**
|
|
66
|
+
* Create time.
|
|
67
|
+
*/
|
|
68
|
+
readonly createdAt: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Enable notifications for issues events.
|
|
71
|
+
*/
|
|
72
|
+
readonly issuesEvents: pulumi.Output<boolean>;
|
|
73
|
+
/**
|
|
74
|
+
* The ID of a transition that moves issues to a closed state. You can find this number under the JIRA workflow administration (Administration > Issues > Workflows) by selecting View under Operations of the desired workflow of your project. By default, this ID is set to 2. *Note**: importing this field is only supported since GitLab 15.2.
|
|
75
|
+
*/
|
|
76
|
+
readonly jiraIssueTransitionId: pulumi.Output<string | undefined>;
|
|
77
|
+
/**
|
|
78
|
+
* Enable notifications for job events.
|
|
79
|
+
*/
|
|
80
|
+
readonly jobEvents: pulumi.Output<boolean>;
|
|
81
|
+
/**
|
|
82
|
+
* Enable notifications for merge request events
|
|
83
|
+
*/
|
|
84
|
+
readonly mergeRequestsEvents: pulumi.Output<boolean>;
|
|
85
|
+
/**
|
|
86
|
+
* Enable notifications for note events.
|
|
87
|
+
*/
|
|
88
|
+
readonly noteEvents: pulumi.Output<boolean>;
|
|
89
|
+
/**
|
|
90
|
+
* The password of the user created to be used with GitLab/JIRA.
|
|
91
|
+
*/
|
|
92
|
+
readonly password: pulumi.Output<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Enable notifications for pipeline events.
|
|
95
|
+
*/
|
|
96
|
+
readonly pipelineEvents: pulumi.Output<boolean>;
|
|
97
|
+
/**
|
|
98
|
+
* ID of the project you want to activate integration on.
|
|
99
|
+
*/
|
|
100
|
+
readonly project: pulumi.Output<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The short identifier for your JIRA project, all uppercase, e.g., PROJ.
|
|
103
|
+
*/
|
|
104
|
+
readonly projectKey: pulumi.Output<string | undefined>;
|
|
105
|
+
/**
|
|
106
|
+
* Enable notifications for push events.
|
|
107
|
+
*/
|
|
108
|
+
readonly pushEvents: pulumi.Output<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* Enable notifications for tagPush events.
|
|
111
|
+
*/
|
|
112
|
+
readonly tagPushEvents: pulumi.Output<boolean>;
|
|
113
|
+
/**
|
|
114
|
+
* Title.
|
|
115
|
+
*/
|
|
116
|
+
readonly title: pulumi.Output<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Update time.
|
|
119
|
+
*/
|
|
120
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
121
|
+
/**
|
|
122
|
+
* The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.
|
|
123
|
+
*/
|
|
124
|
+
readonly url: pulumi.Output<string>;
|
|
125
|
+
/**
|
|
126
|
+
* The username of the user created to be used with GitLab/JIRA.
|
|
127
|
+
*/
|
|
128
|
+
readonly username: pulumi.Output<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Create a IntegrationJira resource with the given unique name, arguments, and options.
|
|
131
|
+
*
|
|
132
|
+
* @param name The _unique_ name of the resource.
|
|
133
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
134
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
135
|
+
*/
|
|
136
|
+
constructor(name: string, args: IntegrationJiraArgs, opts?: pulumi.CustomResourceOptions);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Input properties used for looking up and filtering IntegrationJira resources.
|
|
140
|
+
*/
|
|
141
|
+
export interface IntegrationJiraState {
|
|
142
|
+
/**
|
|
143
|
+
* Whether the integration is active.
|
|
144
|
+
*/
|
|
145
|
+
active?: pulumi.Input<boolean>;
|
|
146
|
+
/**
|
|
147
|
+
* The base URL to the Jira instance API. Web URL value is used if not set. For example, https://jira-api.example.com.
|
|
148
|
+
*/
|
|
149
|
+
apiUrl?: pulumi.Input<string>;
|
|
150
|
+
/**
|
|
151
|
+
* Enable comments inside Jira issues on each GitLab event (commit / merge request)
|
|
152
|
+
*/
|
|
153
|
+
commentOnEventEnabled?: pulumi.Input<boolean>;
|
|
154
|
+
/**
|
|
155
|
+
* Enable notifications for commit events
|
|
156
|
+
*/
|
|
157
|
+
commitEvents?: pulumi.Input<boolean>;
|
|
158
|
+
/**
|
|
159
|
+
* Create time.
|
|
160
|
+
*/
|
|
161
|
+
createdAt?: pulumi.Input<string>;
|
|
162
|
+
/**
|
|
163
|
+
* Enable notifications for issues events.
|
|
164
|
+
*/
|
|
165
|
+
issuesEvents?: pulumi.Input<boolean>;
|
|
166
|
+
/**
|
|
167
|
+
* The ID of a transition that moves issues to a closed state. You can find this number under the JIRA workflow administration (Administration > Issues > Workflows) by selecting View under Operations of the desired workflow of your project. By default, this ID is set to 2. *Note**: importing this field is only supported since GitLab 15.2.
|
|
168
|
+
*/
|
|
169
|
+
jiraIssueTransitionId?: pulumi.Input<string>;
|
|
170
|
+
/**
|
|
171
|
+
* Enable notifications for job events.
|
|
172
|
+
*/
|
|
173
|
+
jobEvents?: pulumi.Input<boolean>;
|
|
174
|
+
/**
|
|
175
|
+
* Enable notifications for merge request events
|
|
176
|
+
*/
|
|
177
|
+
mergeRequestsEvents?: pulumi.Input<boolean>;
|
|
178
|
+
/**
|
|
179
|
+
* Enable notifications for note events.
|
|
180
|
+
*/
|
|
181
|
+
noteEvents?: pulumi.Input<boolean>;
|
|
182
|
+
/**
|
|
183
|
+
* The password of the user created to be used with GitLab/JIRA.
|
|
184
|
+
*/
|
|
185
|
+
password?: pulumi.Input<string>;
|
|
186
|
+
/**
|
|
187
|
+
* Enable notifications for pipeline events.
|
|
188
|
+
*/
|
|
189
|
+
pipelineEvents?: pulumi.Input<boolean>;
|
|
190
|
+
/**
|
|
191
|
+
* ID of the project you want to activate integration on.
|
|
192
|
+
*/
|
|
193
|
+
project?: pulumi.Input<string>;
|
|
194
|
+
/**
|
|
195
|
+
* The short identifier for your JIRA project, all uppercase, e.g., PROJ.
|
|
196
|
+
*/
|
|
197
|
+
projectKey?: pulumi.Input<string>;
|
|
198
|
+
/**
|
|
199
|
+
* Enable notifications for push events.
|
|
200
|
+
*/
|
|
201
|
+
pushEvents?: pulumi.Input<boolean>;
|
|
202
|
+
/**
|
|
203
|
+
* Enable notifications for tagPush events.
|
|
204
|
+
*/
|
|
205
|
+
tagPushEvents?: pulumi.Input<boolean>;
|
|
206
|
+
/**
|
|
207
|
+
* Title.
|
|
208
|
+
*/
|
|
209
|
+
title?: pulumi.Input<string>;
|
|
210
|
+
/**
|
|
211
|
+
* Update time.
|
|
212
|
+
*/
|
|
213
|
+
updatedAt?: pulumi.Input<string>;
|
|
214
|
+
/**
|
|
215
|
+
* The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.
|
|
216
|
+
*/
|
|
217
|
+
url?: pulumi.Input<string>;
|
|
218
|
+
/**
|
|
219
|
+
* The username of the user created to be used with GitLab/JIRA.
|
|
220
|
+
*/
|
|
221
|
+
username?: pulumi.Input<string>;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* The set of arguments for constructing a IntegrationJira resource.
|
|
225
|
+
*/
|
|
226
|
+
export interface IntegrationJiraArgs {
|
|
227
|
+
/**
|
|
228
|
+
* The base URL to the Jira instance API. Web URL value is used if not set. For example, https://jira-api.example.com.
|
|
229
|
+
*/
|
|
230
|
+
apiUrl?: pulumi.Input<string>;
|
|
231
|
+
/**
|
|
232
|
+
* Enable comments inside Jira issues on each GitLab event (commit / merge request)
|
|
233
|
+
*/
|
|
234
|
+
commentOnEventEnabled?: pulumi.Input<boolean>;
|
|
235
|
+
/**
|
|
236
|
+
* Enable notifications for commit events
|
|
237
|
+
*/
|
|
238
|
+
commitEvents?: pulumi.Input<boolean>;
|
|
239
|
+
/**
|
|
240
|
+
* Enable notifications for issues events.
|
|
241
|
+
*/
|
|
242
|
+
issuesEvents?: pulumi.Input<boolean>;
|
|
243
|
+
/**
|
|
244
|
+
* The ID of a transition that moves issues to a closed state. You can find this number under the JIRA workflow administration (Administration > Issues > Workflows) by selecting View under Operations of the desired workflow of your project. By default, this ID is set to 2. *Note**: importing this field is only supported since GitLab 15.2.
|
|
245
|
+
*/
|
|
246
|
+
jiraIssueTransitionId?: pulumi.Input<string>;
|
|
247
|
+
/**
|
|
248
|
+
* Enable notifications for job events.
|
|
249
|
+
*/
|
|
250
|
+
jobEvents?: pulumi.Input<boolean>;
|
|
251
|
+
/**
|
|
252
|
+
* Enable notifications for merge request events
|
|
253
|
+
*/
|
|
254
|
+
mergeRequestsEvents?: pulumi.Input<boolean>;
|
|
255
|
+
/**
|
|
256
|
+
* Enable notifications for note events.
|
|
257
|
+
*/
|
|
258
|
+
noteEvents?: pulumi.Input<boolean>;
|
|
259
|
+
/**
|
|
260
|
+
* The password of the user created to be used with GitLab/JIRA.
|
|
261
|
+
*/
|
|
262
|
+
password: pulumi.Input<string>;
|
|
263
|
+
/**
|
|
264
|
+
* Enable notifications for pipeline events.
|
|
265
|
+
*/
|
|
266
|
+
pipelineEvents?: pulumi.Input<boolean>;
|
|
267
|
+
/**
|
|
268
|
+
* ID of the project you want to activate integration on.
|
|
269
|
+
*/
|
|
270
|
+
project: pulumi.Input<string>;
|
|
271
|
+
/**
|
|
272
|
+
* The short identifier for your JIRA project, all uppercase, e.g., PROJ.
|
|
273
|
+
*/
|
|
274
|
+
projectKey?: pulumi.Input<string>;
|
|
275
|
+
/**
|
|
276
|
+
* Enable notifications for push events.
|
|
277
|
+
*/
|
|
278
|
+
pushEvents?: pulumi.Input<boolean>;
|
|
279
|
+
/**
|
|
280
|
+
* Enable notifications for tagPush events.
|
|
281
|
+
*/
|
|
282
|
+
tagPushEvents?: pulumi.Input<boolean>;
|
|
283
|
+
/**
|
|
284
|
+
* The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.
|
|
285
|
+
*/
|
|
286
|
+
url: pulumi.Input<string>;
|
|
287
|
+
/**
|
|
288
|
+
* The username of the user created to be used with GitLab/JIRA.
|
|
289
|
+
*/
|
|
290
|
+
username: pulumi.Input<string>;
|
|
291
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
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.IntegrationJira = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The `gitlab.IntegrationJira` resource allows to manage the lifecycle of a project integration with Jira.
|
|
10
|
+
*
|
|
11
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/services.html#jira)
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
18
|
+
*
|
|
19
|
+
* const awesomeProject = new gitlab.Project("awesomeProject", {
|
|
20
|
+
* description: "My awesome project.",
|
|
21
|
+
* visibilityLevel: "public",
|
|
22
|
+
* });
|
|
23
|
+
* const jira = new gitlab.IntegrationJira("jira", {
|
|
24
|
+
* project: awesomeProject.id,
|
|
25
|
+
* url: "https://jira.example.com",
|
|
26
|
+
* username: "user",
|
|
27
|
+
* password: "mypass",
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ## Import
|
|
32
|
+
*
|
|
33
|
+
* You can import a gitlab_integration_jira state using the project ID, e.g.
|
|
34
|
+
*
|
|
35
|
+
* ```sh
|
|
36
|
+
* $ pulumi import gitlab:index/integrationJira:IntegrationJira jira 1
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
class IntegrationJira extends pulumi.CustomResource {
|
|
40
|
+
/**
|
|
41
|
+
* Get an existing IntegrationJira resource's state with the given name, ID, and optional extra
|
|
42
|
+
* properties used to qualify the lookup.
|
|
43
|
+
*
|
|
44
|
+
* @param name The _unique_ name of the resulting resource.
|
|
45
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
46
|
+
* @param state Any extra arguments used during the lookup.
|
|
47
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
48
|
+
*/
|
|
49
|
+
static get(name, id, state, opts) {
|
|
50
|
+
return new IntegrationJira(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Returns true if the given object is an instance of IntegrationJira. This is designed to work even
|
|
54
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
55
|
+
*/
|
|
56
|
+
static isInstance(obj) {
|
|
57
|
+
if (obj === undefined || obj === null) {
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
return obj['__pulumiType'] === IntegrationJira.__pulumiType;
|
|
61
|
+
}
|
|
62
|
+
constructor(name, argsOrState, opts) {
|
|
63
|
+
let resourceInputs = {};
|
|
64
|
+
opts = opts || {};
|
|
65
|
+
if (opts.id) {
|
|
66
|
+
const state = argsOrState;
|
|
67
|
+
resourceInputs["active"] = state ? state.active : undefined;
|
|
68
|
+
resourceInputs["apiUrl"] = state ? state.apiUrl : undefined;
|
|
69
|
+
resourceInputs["commentOnEventEnabled"] = state ? state.commentOnEventEnabled : undefined;
|
|
70
|
+
resourceInputs["commitEvents"] = state ? state.commitEvents : undefined;
|
|
71
|
+
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
|
|
72
|
+
resourceInputs["issuesEvents"] = state ? state.issuesEvents : undefined;
|
|
73
|
+
resourceInputs["jiraIssueTransitionId"] = state ? state.jiraIssueTransitionId : undefined;
|
|
74
|
+
resourceInputs["jobEvents"] = state ? state.jobEvents : undefined;
|
|
75
|
+
resourceInputs["mergeRequestsEvents"] = state ? state.mergeRequestsEvents : undefined;
|
|
76
|
+
resourceInputs["noteEvents"] = state ? state.noteEvents : undefined;
|
|
77
|
+
resourceInputs["password"] = state ? state.password : undefined;
|
|
78
|
+
resourceInputs["pipelineEvents"] = state ? state.pipelineEvents : undefined;
|
|
79
|
+
resourceInputs["project"] = state ? state.project : undefined;
|
|
80
|
+
resourceInputs["projectKey"] = state ? state.projectKey : undefined;
|
|
81
|
+
resourceInputs["pushEvents"] = state ? state.pushEvents : undefined;
|
|
82
|
+
resourceInputs["tagPushEvents"] = state ? state.tagPushEvents : undefined;
|
|
83
|
+
resourceInputs["title"] = state ? state.title : undefined;
|
|
84
|
+
resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
|
|
85
|
+
resourceInputs["url"] = state ? state.url : undefined;
|
|
86
|
+
resourceInputs["username"] = state ? state.username : undefined;
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
const args = argsOrState;
|
|
90
|
+
if ((!args || args.password === undefined) && !opts.urn) {
|
|
91
|
+
throw new Error("Missing required property 'password'");
|
|
92
|
+
}
|
|
93
|
+
if ((!args || args.project === undefined) && !opts.urn) {
|
|
94
|
+
throw new Error("Missing required property 'project'");
|
|
95
|
+
}
|
|
96
|
+
if ((!args || args.url === undefined) && !opts.urn) {
|
|
97
|
+
throw new Error("Missing required property 'url'");
|
|
98
|
+
}
|
|
99
|
+
if ((!args || args.username === undefined) && !opts.urn) {
|
|
100
|
+
throw new Error("Missing required property 'username'");
|
|
101
|
+
}
|
|
102
|
+
resourceInputs["apiUrl"] = args ? args.apiUrl : undefined;
|
|
103
|
+
resourceInputs["commentOnEventEnabled"] = args ? args.commentOnEventEnabled : undefined;
|
|
104
|
+
resourceInputs["commitEvents"] = args ? args.commitEvents : undefined;
|
|
105
|
+
resourceInputs["issuesEvents"] = args ? args.issuesEvents : undefined;
|
|
106
|
+
resourceInputs["jiraIssueTransitionId"] = args ? args.jiraIssueTransitionId : undefined;
|
|
107
|
+
resourceInputs["jobEvents"] = args ? args.jobEvents : undefined;
|
|
108
|
+
resourceInputs["mergeRequestsEvents"] = args ? args.mergeRequestsEvents : undefined;
|
|
109
|
+
resourceInputs["noteEvents"] = args ? args.noteEvents : undefined;
|
|
110
|
+
resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined;
|
|
111
|
+
resourceInputs["pipelineEvents"] = args ? args.pipelineEvents : undefined;
|
|
112
|
+
resourceInputs["project"] = args ? args.project : undefined;
|
|
113
|
+
resourceInputs["projectKey"] = args ? args.projectKey : undefined;
|
|
114
|
+
resourceInputs["pushEvents"] = args ? args.pushEvents : undefined;
|
|
115
|
+
resourceInputs["tagPushEvents"] = args ? args.tagPushEvents : undefined;
|
|
116
|
+
resourceInputs["url"] = args ? args.url : undefined;
|
|
117
|
+
resourceInputs["username"] = args ? args.username : undefined;
|
|
118
|
+
resourceInputs["active"] = undefined /*out*/;
|
|
119
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
120
|
+
resourceInputs["title"] = undefined /*out*/;
|
|
121
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
122
|
+
}
|
|
123
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
124
|
+
const secretOpts = { additionalSecretOutputs: ["password"] };
|
|
125
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
126
|
+
super(IntegrationJira.__pulumiType, name, resourceInputs, opts);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
exports.IntegrationJira = IntegrationJira;
|
|
130
|
+
/** @internal */
|
|
131
|
+
IntegrationJira.__pulumiType = 'gitlab:index/integrationJira:IntegrationJira';
|
|
132
|
+
//# sourceMappingURL=integrationJira.js.map
|