@pulumi/gitlab 4.1.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/branchProtection.d.ts +50 -8
- package/branchProtection.js +36 -2
- package/branchProtection.js.map +1 -1
- package/config/index.js +11 -4
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +6 -6
- package/config/vars.js +37 -25
- package/config/vars.js.map +1 -1
- package/deployKey.d.ts +1 -1
- package/deployKey.js +2 -1
- package/deployKey.js.map +1 -1
- package/deployKeyEnable.d.ts +1 -1
- package/deployKeyEnable.js +2 -1
- package/deployKeyEnable.js.map +1 -1
- package/deployToken.js +1 -0
- package/deployToken.js.map +1 -1
- package/getGroup.d.ts +17 -5
- package/getGroup.js +8 -5
- package/getGroup.js.map +1 -1
- package/getGroupMembership.d.ts +22 -6
- package/getGroupMembership.js +8 -5
- package/getGroupMembership.js.map +1 -1
- package/getProject.d.ts +11 -1
- package/getProject.js +6 -1
- package/getProject.js.map +1 -1
- package/getProjects.d.ts +86 -2
- package/getProjects.js +7 -2
- package/getProjects.js.map +1 -1
- package/getUser.d.ts +18 -0
- package/getUser.js +5 -0
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +47 -2
- package/getUsers.js +10 -2
- package/getUsers.js.map +1 -1
- package/group.d.ts +37 -0
- package/group.js +38 -0
- package/group.js.map +1 -1
- package/groupCluster.js +1 -0
- package/groupCluster.js.map +1 -1
- package/groupLabel.js +1 -0
- package/groupLabel.js.map +1 -1
- package/groupLdapLink.js +1 -0
- package/groupLdapLink.js.map +1 -1
- package/groupMembership.js +1 -0
- package/groupMembership.js.map +1 -1
- package/groupShareGroup.js +1 -0
- package/groupShareGroup.js.map +1 -1
- package/groupVariable.d.ts +9 -0
- package/groupVariable.js +1 -0
- package/groupVariable.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +56 -43
- package/index.js.map +1 -1
- package/instanceCluster.js +1 -0
- package/instanceCluster.js.map +1 -1
- package/instanceVariable.d.ts +2 -0
- package/instanceVariable.js +3 -0
- package/instanceVariable.js.map +1 -1
- package/label.d.ts +8 -2
- package/label.js +9 -2
- package/label.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +3 -2
- package/package.json.dev +4 -3
- package/pipelineSchedule.d.ts +8 -0
- package/pipelineSchedule.js +9 -0
- package/pipelineSchedule.js.map +1 -1
- package/pipelineScheduleVariable.js +1 -0
- package/pipelineScheduleVariable.js.map +1 -1
- package/pipelineTrigger.d.ts +8 -0
- package/pipelineTrigger.js +9 -0
- package/pipelineTrigger.js.map +1 -1
- package/project.d.ts +68 -4
- package/project.js +45 -0
- package/project.js.map +1 -1
- package/projectApprovalRule.d.ts +38 -9
- package/projectApprovalRule.js +26 -6
- package/projectApprovalRule.js.map +1 -1
- package/projectBadge.d.ts +119 -0
- package/projectBadge.js +99 -0
- package/projectBadge.js.map +1 -0
- package/projectCluster.js +1 -0
- package/projectCluster.js.map +1 -1
- package/projectFreezePeriod.js +1 -0
- package/projectFreezePeriod.js.map +1 -1
- package/projectHook.js +1 -0
- package/projectHook.js.map +1 -1
- package/projectLevelMrApprovals.d.ts +35 -0
- package/projectLevelMrApprovals.js +36 -0
- package/projectLevelMrApprovals.js.map +1 -1
- package/projectMembership.d.ts +5 -0
- package/projectMembership.js +6 -0
- package/projectMembership.js.map +1 -1
- package/projectMirror.js +1 -0
- package/projectMirror.js.map +1 -1
- package/projectShareGroup.js +1 -0
- package/projectShareGroup.js.map +1 -1
- package/projectVariable.js +1 -0
- package/projectVariable.js.map +1 -1
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/serviceGithub.d.ts +34 -0
- package/serviceGithub.js +35 -0
- package/serviceGithub.js.map +1 -1
- package/serviceJira.js +1 -0
- package/serviceJira.js.map +1 -1
- package/servicePipelinesEmail.js +1 -0
- package/servicePipelinesEmail.js.map +1 -1
- package/serviceSlack.js +1 -0
- package/serviceSlack.js.map +1 -1
- package/tagProtection.js +1 -0
- package/tagProtection.js.map +1 -1
- package/types/index.js +1 -0
- package/types/index.js.map +1 -1
- package/types/input.d.ts +24 -0
- package/types/output.d.ts +28 -3
- package/user.d.ts +38 -0
- package/user.js +39 -0
- package/user.js.map +1 -1
- package/utilities.js +1 -0
- package/utilities.js.map +1 -1
package/project.d.ts
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* ## # gitlab\_project
|
|
5
|
+
*
|
|
6
|
+
* This resource allows you to create and manage projects within your GitLab group or within your user.
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
13
|
+
*
|
|
14
|
+
* const example = new gitlab.Project("example", {
|
|
15
|
+
* description: "My awesome codebase",
|
|
16
|
+
* visibilityLevel: "public",
|
|
17
|
+
* });
|
|
18
|
+
* // Project with custom push rules
|
|
19
|
+
* const example_two = new gitlab.Project("example-two", {
|
|
20
|
+
* pushRules: {
|
|
21
|
+
* authorEmailRegex: "@example\\.com$",
|
|
22
|
+
* commitCommitterCheck: true,
|
|
23
|
+
* memberCheck: true,
|
|
24
|
+
* preventSecrets: true,
|
|
25
|
+
* },
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import gitlab:index/project:Project You can import a project state using `<resource> <id>`. The
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* `id` can be whatever the [get single project api][get_single_project] takes for its `:id` value, so for example
|
|
36
|
+
*
|
|
37
|
+
* ```sh
|
|
38
|
+
* $ pulumi import gitlab:index/project:Project example richardc/example
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* [get_single_project]https://docs.gitlab.com/ee/api/projects.html#get-single-project [group_members_permissions]https://docs.gitlab.com/ce/user/permissions.html#group-members-permissions
|
|
42
|
+
*/
|
|
3
43
|
export declare class Project extends pulumi.CustomResource {
|
|
4
44
|
/**
|
|
5
45
|
* Get an existing Project resource's state with the given name, ID, and optional extra
|
|
@@ -24,6 +64,14 @@ export declare class Project extends pulumi.CustomResource {
|
|
|
24
64
|
* Whether the project is in read-only mode (archived). Repositories can be archived/unarchived by toggling this parameter.
|
|
25
65
|
*/
|
|
26
66
|
readonly archived: pulumi.Output<boolean | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* Test coverage parsing for the project.
|
|
69
|
+
*/
|
|
70
|
+
readonly buildCoverageRegex: pulumi.Output<string | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* Custom Path to CI config file.
|
|
73
|
+
*/
|
|
74
|
+
readonly ciConfigPath: pulumi.Output<string | undefined>;
|
|
27
75
|
/**
|
|
28
76
|
* Enable container registry for the project.
|
|
29
77
|
*/
|
|
@@ -31,7 +79,7 @@ export declare class Project extends pulumi.CustomResource {
|
|
|
31
79
|
/**
|
|
32
80
|
* The default branch for the project.
|
|
33
81
|
*/
|
|
34
|
-
readonly defaultBranch: pulumi.Output<string
|
|
82
|
+
readonly defaultBranch: pulumi.Output<string>;
|
|
35
83
|
/**
|
|
36
84
|
* A description of the project.
|
|
37
85
|
*/
|
|
@@ -50,7 +98,7 @@ export declare class Project extends pulumi.CustomResource {
|
|
|
50
98
|
*/
|
|
51
99
|
readonly importUrl: pulumi.Output<string | undefined>;
|
|
52
100
|
/**
|
|
53
|
-
* Create
|
|
101
|
+
* Create main branch with first commit containing a README.md file.
|
|
54
102
|
*/
|
|
55
103
|
readonly initializeWithReadme: pulumi.Output<boolean | undefined>;
|
|
56
104
|
/**
|
|
@@ -207,6 +255,14 @@ export interface ProjectState {
|
|
|
207
255
|
* Whether the project is in read-only mode (archived). Repositories can be archived/unarchived by toggling this parameter.
|
|
208
256
|
*/
|
|
209
257
|
archived?: pulumi.Input<boolean>;
|
|
258
|
+
/**
|
|
259
|
+
* Test coverage parsing for the project.
|
|
260
|
+
*/
|
|
261
|
+
buildCoverageRegex?: pulumi.Input<string>;
|
|
262
|
+
/**
|
|
263
|
+
* Custom Path to CI config file.
|
|
264
|
+
*/
|
|
265
|
+
ciConfigPath?: pulumi.Input<string>;
|
|
210
266
|
/**
|
|
211
267
|
* Enable container registry for the project.
|
|
212
268
|
*/
|
|
@@ -233,7 +289,7 @@ export interface ProjectState {
|
|
|
233
289
|
*/
|
|
234
290
|
importUrl?: pulumi.Input<string>;
|
|
235
291
|
/**
|
|
236
|
-
* Create
|
|
292
|
+
* Create main branch with first commit containing a README.md file.
|
|
237
293
|
*/
|
|
238
294
|
initializeWithReadme?: pulumi.Input<boolean>;
|
|
239
295
|
/**
|
|
@@ -382,6 +438,14 @@ export interface ProjectArgs {
|
|
|
382
438
|
* Whether the project is in read-only mode (archived). Repositories can be archived/unarchived by toggling this parameter.
|
|
383
439
|
*/
|
|
384
440
|
archived?: pulumi.Input<boolean>;
|
|
441
|
+
/**
|
|
442
|
+
* Test coverage parsing for the project.
|
|
443
|
+
*/
|
|
444
|
+
buildCoverageRegex?: pulumi.Input<string>;
|
|
445
|
+
/**
|
|
446
|
+
* Custom Path to CI config file.
|
|
447
|
+
*/
|
|
448
|
+
ciConfigPath?: pulumi.Input<string>;
|
|
385
449
|
/**
|
|
386
450
|
* Enable container registry for the project.
|
|
387
451
|
*/
|
|
@@ -403,7 +467,7 @@ export interface ProjectArgs {
|
|
|
403
467
|
*/
|
|
404
468
|
importUrl?: pulumi.Input<string>;
|
|
405
469
|
/**
|
|
406
|
-
* Create
|
|
470
|
+
* Create main branch with first commit containing a README.md file.
|
|
407
471
|
*/
|
|
408
472
|
initializeWithReadme?: pulumi.Input<boolean>;
|
|
409
473
|
/**
|
package/project.js
CHANGED
|
@@ -2,8 +2,49 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Project = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## # gitlab\_project
|
|
10
|
+
*
|
|
11
|
+
* This resource allows you to create and manage projects within your GitLab group or within your user.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
18
|
+
*
|
|
19
|
+
* const example = new gitlab.Project("example", {
|
|
20
|
+
* description: "My awesome codebase",
|
|
21
|
+
* visibilityLevel: "public",
|
|
22
|
+
* });
|
|
23
|
+
* // Project with custom push rules
|
|
24
|
+
* const example_two = new gitlab.Project("example-two", {
|
|
25
|
+
* pushRules: {
|
|
26
|
+
* authorEmailRegex: "@example\\.com$",
|
|
27
|
+
* commitCommitterCheck: true,
|
|
28
|
+
* memberCheck: true,
|
|
29
|
+
* preventSecrets: true,
|
|
30
|
+
* },
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* ## Import
|
|
35
|
+
*
|
|
36
|
+
* ```sh
|
|
37
|
+
* $ pulumi import gitlab:index/project:Project You can import a project state using `<resource> <id>`. The
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* `id` can be whatever the [get single project api][get_single_project] takes for its `:id` value, so for example
|
|
41
|
+
*
|
|
42
|
+
* ```sh
|
|
43
|
+
* $ pulumi import gitlab:index/project:Project example richardc/example
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* [get_single_project]https://docs.gitlab.com/ee/api/projects.html#get-single-project [group_members_permissions]https://docs.gitlab.com/ce/user/permissions.html#group-members-permissions
|
|
47
|
+
*/
|
|
7
48
|
class Project extends pulumi.CustomResource {
|
|
8
49
|
constructor(name, argsOrState, opts) {
|
|
9
50
|
let inputs = {};
|
|
@@ -12,6 +53,8 @@ class Project extends pulumi.CustomResource {
|
|
|
12
53
|
const state = argsOrState;
|
|
13
54
|
inputs["approvalsBeforeMerge"] = state ? state.approvalsBeforeMerge : undefined;
|
|
14
55
|
inputs["archived"] = state ? state.archived : undefined;
|
|
56
|
+
inputs["buildCoverageRegex"] = state ? state.buildCoverageRegex : undefined;
|
|
57
|
+
inputs["ciConfigPath"] = state ? state.ciConfigPath : undefined;
|
|
15
58
|
inputs["containerRegistryEnabled"] = state ? state.containerRegistryEnabled : undefined;
|
|
16
59
|
inputs["defaultBranch"] = state ? state.defaultBranch : undefined;
|
|
17
60
|
inputs["description"] = state ? state.description : undefined;
|
|
@@ -55,6 +98,8 @@ class Project extends pulumi.CustomResource {
|
|
|
55
98
|
const args = argsOrState;
|
|
56
99
|
inputs["approvalsBeforeMerge"] = args ? args.approvalsBeforeMerge : undefined;
|
|
57
100
|
inputs["archived"] = args ? args.archived : undefined;
|
|
101
|
+
inputs["buildCoverageRegex"] = args ? args.buildCoverageRegex : undefined;
|
|
102
|
+
inputs["ciConfigPath"] = args ? args.ciConfigPath : undefined;
|
|
58
103
|
inputs["containerRegistryEnabled"] = args ? args.containerRegistryEnabled : undefined;
|
|
59
104
|
inputs["defaultBranch"] = args ? args.defaultBranch : undefined;
|
|
60
105
|
inputs["description"] = args ? args.description : undefined;
|
package/project.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.js","sourceRoot":"","sources":["../project.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"project.js","sourceRoot":"","sources":["../project.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;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O,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;;AA1BL,0BAwTC;AA1SG,gBAAgB;AACO,oBAAY,GAAG,8BAA8B,CAAC"}
|
package/projectApprovalRule.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
6
6
|
* projects. For further information on approval rules, consult the [gitlab
|
|
7
7
|
* documentation](https://docs.gitlab.com/ee/api/merge_request_approvals.html#project-level-mr-approvals).
|
|
8
8
|
*
|
|
9
|
-
* > This feature requires
|
|
9
|
+
* > This feature requires GitLab Premium.
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
@@ -23,11 +23,28 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
23
23
|
* 500,
|
|
24
24
|
* ],
|
|
25
25
|
* });
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
26
|
+
* ```
|
|
27
|
+
* ### With Protected Branch IDs
|
|
28
|
+
*
|
|
29
|
+
* ```typescript
|
|
30
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
31
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
32
|
+
*
|
|
33
|
+
* const exampleBranchProtection = new gitlab.BranchProtection("exampleBranchProtection", {
|
|
34
|
+
* project: 5,
|
|
35
|
+
* branch: "release/*",
|
|
36
|
+
* pushAccessLevel: "maintainer",
|
|
37
|
+
* mergeAccessLevel: "developer",
|
|
38
|
+
* });
|
|
39
|
+
* const exampleProjectApprovalRule = new gitlab.ProjectApprovalRule("exampleProjectApprovalRule", {
|
|
40
|
+
* project: 5,
|
|
41
|
+
* approvalsRequired: 3,
|
|
42
|
+
* userIds: [
|
|
43
|
+
* 50,
|
|
44
|
+
* 500,
|
|
45
|
+
* ],
|
|
46
|
+
* groupIds: [51],
|
|
47
|
+
* protectedBranchIds: [exampleBranchProtection.branchProtectionId],
|
|
31
48
|
* });
|
|
32
49
|
* ```
|
|
33
50
|
*
|
|
@@ -60,7 +77,7 @@ export declare class ProjectApprovalRule extends pulumi.CustomResource {
|
|
|
60
77
|
*/
|
|
61
78
|
readonly approvalsRequired: pulumi.Output<number>;
|
|
62
79
|
/**
|
|
63
|
-
* A list of group IDs
|
|
80
|
+
* A list of group IDs whose members can approve of the merge request.
|
|
64
81
|
*/
|
|
65
82
|
readonly groupIds: pulumi.Output<number[] | undefined>;
|
|
66
83
|
/**
|
|
@@ -71,6 +88,10 @@ export declare class ProjectApprovalRule extends pulumi.CustomResource {
|
|
|
71
88
|
* The name or id of the project to add the approval rules.
|
|
72
89
|
*/
|
|
73
90
|
readonly project: pulumi.Output<string>;
|
|
91
|
+
/**
|
|
92
|
+
* A list of protected branch IDs (not branch names) for which the rule applies.
|
|
93
|
+
*/
|
|
94
|
+
readonly protectedBranchIds: pulumi.Output<number[] | undefined>;
|
|
74
95
|
/**
|
|
75
96
|
* A list of specific User IDs to add to the list of approvers.
|
|
76
97
|
*/
|
|
@@ -93,7 +114,7 @@ export interface ProjectApprovalRuleState {
|
|
|
93
114
|
*/
|
|
94
115
|
approvalsRequired?: pulumi.Input<number>;
|
|
95
116
|
/**
|
|
96
|
-
* A list of group IDs
|
|
117
|
+
* A list of group IDs whose members can approve of the merge request.
|
|
97
118
|
*/
|
|
98
119
|
groupIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
99
120
|
/**
|
|
@@ -104,6 +125,10 @@ export interface ProjectApprovalRuleState {
|
|
|
104
125
|
* The name or id of the project to add the approval rules.
|
|
105
126
|
*/
|
|
106
127
|
project?: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* A list of protected branch IDs (not branch names) for which the rule applies.
|
|
130
|
+
*/
|
|
131
|
+
protectedBranchIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
107
132
|
/**
|
|
108
133
|
* A list of specific User IDs to add to the list of approvers.
|
|
109
134
|
*/
|
|
@@ -118,7 +143,7 @@ export interface ProjectApprovalRuleArgs {
|
|
|
118
143
|
*/
|
|
119
144
|
approvalsRequired: pulumi.Input<number>;
|
|
120
145
|
/**
|
|
121
|
-
* A list of group IDs
|
|
146
|
+
* A list of group IDs whose members can approve of the merge request.
|
|
122
147
|
*/
|
|
123
148
|
groupIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
124
149
|
/**
|
|
@@ -129,6 +154,10 @@ export interface ProjectApprovalRuleArgs {
|
|
|
129
154
|
* The name or id of the project to add the approval rules.
|
|
130
155
|
*/
|
|
131
156
|
project: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* A list of protected branch IDs (not branch names) for which the rule applies.
|
|
159
|
+
*/
|
|
160
|
+
protectedBranchIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
132
161
|
/**
|
|
133
162
|
* A list of specific User IDs to add to the list of approvers.
|
|
134
163
|
*/
|
package/projectApprovalRule.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ProjectApprovalRule = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -11,7 +12,7 @@ const utilities = require("./utilities");
|
|
|
11
12
|
* projects. For further information on approval rules, consult the [gitlab
|
|
12
13
|
* documentation](https://docs.gitlab.com/ee/api/merge_request_approvals.html#project-level-mr-approvals).
|
|
13
14
|
*
|
|
14
|
-
* > This feature requires
|
|
15
|
+
* > This feature requires GitLab Premium.
|
|
15
16
|
*
|
|
16
17
|
* ## Example Usage
|
|
17
18
|
*
|
|
@@ -28,11 +29,28 @@ const utilities = require("./utilities");
|
|
|
28
29
|
* 500,
|
|
29
30
|
* ],
|
|
30
31
|
* });
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
32
|
+
* ```
|
|
33
|
+
* ### With Protected Branch IDs
|
|
34
|
+
*
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
37
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
38
|
+
*
|
|
39
|
+
* const exampleBranchProtection = new gitlab.BranchProtection("exampleBranchProtection", {
|
|
40
|
+
* project: 5,
|
|
41
|
+
* branch: "release/*",
|
|
42
|
+
* pushAccessLevel: "maintainer",
|
|
43
|
+
* mergeAccessLevel: "developer",
|
|
44
|
+
* });
|
|
45
|
+
* const exampleProjectApprovalRule = new gitlab.ProjectApprovalRule("exampleProjectApprovalRule", {
|
|
46
|
+
* project: 5,
|
|
47
|
+
* approvalsRequired: 3,
|
|
48
|
+
* userIds: [
|
|
49
|
+
* 50,
|
|
50
|
+
* 500,
|
|
51
|
+
* ],
|
|
52
|
+
* groupIds: [51],
|
|
53
|
+
* protectedBranchIds: [exampleBranchProtection.branchProtectionId],
|
|
36
54
|
* });
|
|
37
55
|
* ```
|
|
38
56
|
*
|
|
@@ -54,6 +72,7 @@ class ProjectApprovalRule extends pulumi.CustomResource {
|
|
|
54
72
|
inputs["groupIds"] = state ? state.groupIds : undefined;
|
|
55
73
|
inputs["name"] = state ? state.name : undefined;
|
|
56
74
|
inputs["project"] = state ? state.project : undefined;
|
|
75
|
+
inputs["protectedBranchIds"] = state ? state.protectedBranchIds : undefined;
|
|
57
76
|
inputs["userIds"] = state ? state.userIds : undefined;
|
|
58
77
|
}
|
|
59
78
|
else {
|
|
@@ -68,6 +87,7 @@ class ProjectApprovalRule extends pulumi.CustomResource {
|
|
|
68
87
|
inputs["groupIds"] = args ? args.groupIds : undefined;
|
|
69
88
|
inputs["name"] = args ? args.name : undefined;
|
|
70
89
|
inputs["project"] = args ? args.project : undefined;
|
|
90
|
+
inputs["protectedBranchIds"] = args ? args.protectedBranchIds : undefined;
|
|
71
91
|
inputs["userIds"] = args ? args.userIds : undefined;
|
|
72
92
|
}
|
|
73
93
|
if (!opts.version) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectApprovalRule.js","sourceRoot":"","sources":["../projectApprovalRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"projectApprovalRule.js","sourceRoot":"","sources":["../projectApprovalRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IA6D1D,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmD,CAAC;YAClE,MAAM,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,MAAM,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,S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,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,MAAM,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;SACvD;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;IA1FD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;;AA1BL,kDA4FC;AA9EG,gBAAgB;AACO,gCAAY,GAAG,sDAAsD,CAAC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## # gitlab\_project\_badge
|
|
4
|
+
*
|
|
5
|
+
* This resource allows you to create and manage badges for your GitLab projects.
|
|
6
|
+
* For further information on hooks, consult the [gitlab
|
|
7
|
+
* documentation](https://docs.gitlab.com/ce/user/project/badges.html).
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
14
|
+
*
|
|
15
|
+
* const foo = new gitlab.Project("foo", {});
|
|
16
|
+
* const example = new gitlab.ProjectBadge("example", {
|
|
17
|
+
* project: foo.id,
|
|
18
|
+
* linkUrl: "https://example.com/badge-123",
|
|
19
|
+
* imageUrl: "https://example.com/badge-123.svg",
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* ## Import
|
|
24
|
+
*
|
|
25
|
+
* GitLab project badges can be imported using an id made up of `{project_id}:{badge_id}`,
|
|
26
|
+
*
|
|
27
|
+
* e.g. bash
|
|
28
|
+
*
|
|
29
|
+
* ```sh
|
|
30
|
+
* $ pulumi import gitlab:index/projectBadge:ProjectBadge foo 1:3
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare class ProjectBadge extends pulumi.CustomResource {
|
|
34
|
+
/**
|
|
35
|
+
* Get an existing ProjectBadge 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?: ProjectBadgeState, opts?: pulumi.CustomResourceOptions): ProjectBadge;
|
|
44
|
+
/**
|
|
45
|
+
* Returns true if the given object is an instance of ProjectBadge. 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 ProjectBadge;
|
|
49
|
+
/**
|
|
50
|
+
* The image url which will be presented on project overview.
|
|
51
|
+
*/
|
|
52
|
+
readonly imageUrl: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* The url linked with the badge.
|
|
55
|
+
*/
|
|
56
|
+
readonly linkUrl: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* The id of the project to add the badge to.
|
|
59
|
+
*/
|
|
60
|
+
readonly project: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* The imageUrl argument rendered (in case of use of placeholders).
|
|
63
|
+
*/
|
|
64
|
+
readonly renderedImageUrl: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* The linkUrl argument rendered (in case of use of placeholders).
|
|
67
|
+
*/
|
|
68
|
+
readonly renderedLinkUrl: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Create a ProjectBadge resource with the given unique name, arguments, and options.
|
|
71
|
+
*
|
|
72
|
+
* @param name The _unique_ name of the resource.
|
|
73
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
74
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
75
|
+
*/
|
|
76
|
+
constructor(name: string, args: ProjectBadgeArgs, opts?: pulumi.CustomResourceOptions);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Input properties used for looking up and filtering ProjectBadge resources.
|
|
80
|
+
*/
|
|
81
|
+
export interface ProjectBadgeState {
|
|
82
|
+
/**
|
|
83
|
+
* The image url which will be presented on project overview.
|
|
84
|
+
*/
|
|
85
|
+
imageUrl?: pulumi.Input<string>;
|
|
86
|
+
/**
|
|
87
|
+
* The url linked with the badge.
|
|
88
|
+
*/
|
|
89
|
+
linkUrl?: pulumi.Input<string>;
|
|
90
|
+
/**
|
|
91
|
+
* The id of the project to add the badge to.
|
|
92
|
+
*/
|
|
93
|
+
project?: pulumi.Input<string>;
|
|
94
|
+
/**
|
|
95
|
+
* The imageUrl argument rendered (in case of use of placeholders).
|
|
96
|
+
*/
|
|
97
|
+
renderedImageUrl?: pulumi.Input<string>;
|
|
98
|
+
/**
|
|
99
|
+
* The linkUrl argument rendered (in case of use of placeholders).
|
|
100
|
+
*/
|
|
101
|
+
renderedLinkUrl?: pulumi.Input<string>;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* The set of arguments for constructing a ProjectBadge resource.
|
|
105
|
+
*/
|
|
106
|
+
export interface ProjectBadgeArgs {
|
|
107
|
+
/**
|
|
108
|
+
* The image url which will be presented on project overview.
|
|
109
|
+
*/
|
|
110
|
+
imageUrl: pulumi.Input<string>;
|
|
111
|
+
/**
|
|
112
|
+
* The url linked with the badge.
|
|
113
|
+
*/
|
|
114
|
+
linkUrl: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* The id of the project to add the badge to.
|
|
117
|
+
*/
|
|
118
|
+
project: pulumi.Input<string>;
|
|
119
|
+
}
|
package/projectBadge.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
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.ProjectBadge = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## # gitlab\_project\_badge
|
|
10
|
+
*
|
|
11
|
+
* This resource allows you to create and manage badges for your GitLab projects.
|
|
12
|
+
* For further information on hooks, consult the [gitlab
|
|
13
|
+
* documentation](https://docs.gitlab.com/ce/user/project/badges.html).
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
20
|
+
*
|
|
21
|
+
* const foo = new gitlab.Project("foo", {});
|
|
22
|
+
* const example = new gitlab.ProjectBadge("example", {
|
|
23
|
+
* project: foo.id,
|
|
24
|
+
* linkUrl: "https://example.com/badge-123",
|
|
25
|
+
* imageUrl: "https://example.com/badge-123.svg",
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* GitLab project badges can be imported using an id made up of `{project_id}:{badge_id}`,
|
|
32
|
+
*
|
|
33
|
+
* e.g. bash
|
|
34
|
+
*
|
|
35
|
+
* ```sh
|
|
36
|
+
* $ pulumi import gitlab:index/projectBadge:ProjectBadge foo 1:3
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
class ProjectBadge extends pulumi.CustomResource {
|
|
40
|
+
constructor(name, argsOrState, opts) {
|
|
41
|
+
let inputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (opts.id) {
|
|
44
|
+
const state = argsOrState;
|
|
45
|
+
inputs["imageUrl"] = state ? state.imageUrl : undefined;
|
|
46
|
+
inputs["linkUrl"] = state ? state.linkUrl : undefined;
|
|
47
|
+
inputs["project"] = state ? state.project : undefined;
|
|
48
|
+
inputs["renderedImageUrl"] = state ? state.renderedImageUrl : undefined;
|
|
49
|
+
inputs["renderedLinkUrl"] = state ? state.renderedLinkUrl : undefined;
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
const args = argsOrState;
|
|
53
|
+
if ((!args || args.imageUrl === undefined) && !opts.urn) {
|
|
54
|
+
throw new Error("Missing required property 'imageUrl'");
|
|
55
|
+
}
|
|
56
|
+
if ((!args || args.linkUrl === undefined) && !opts.urn) {
|
|
57
|
+
throw new Error("Missing required property 'linkUrl'");
|
|
58
|
+
}
|
|
59
|
+
if ((!args || args.project === undefined) && !opts.urn) {
|
|
60
|
+
throw new Error("Missing required property 'project'");
|
|
61
|
+
}
|
|
62
|
+
inputs["imageUrl"] = args ? args.imageUrl : undefined;
|
|
63
|
+
inputs["linkUrl"] = args ? args.linkUrl : undefined;
|
|
64
|
+
inputs["project"] = args ? args.project : undefined;
|
|
65
|
+
inputs["renderedImageUrl"] = undefined /*out*/;
|
|
66
|
+
inputs["renderedLinkUrl"] = undefined /*out*/;
|
|
67
|
+
}
|
|
68
|
+
if (!opts.version) {
|
|
69
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
70
|
+
}
|
|
71
|
+
super(ProjectBadge.__pulumiType, name, inputs, opts);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Get an existing ProjectBadge resource's state with the given name, ID, and optional extra
|
|
75
|
+
* properties used to qualify the lookup.
|
|
76
|
+
*
|
|
77
|
+
* @param name The _unique_ name of the resulting resource.
|
|
78
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
79
|
+
* @param state Any extra arguments used during the lookup.
|
|
80
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
81
|
+
*/
|
|
82
|
+
static get(name, id, state, opts) {
|
|
83
|
+
return new ProjectBadge(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Returns true if the given object is an instance of ProjectBadge. This is designed to work even
|
|
87
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
88
|
+
*/
|
|
89
|
+
static isInstance(obj) {
|
|
90
|
+
if (obj === undefined || obj === null) {
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
return obj['__pulumiType'] === ProjectBadge.__pulumiType;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.ProjectBadge = ProjectBadge;
|
|
97
|
+
/** @internal */
|
|
98
|
+
ProjectBadge.__pulumiType = 'gitlab:index/projectBadge:ProjectBadge';
|
|
99
|
+
//# sourceMappingURL=projectBadge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projectBadge.js","sourceRoot":"","sources":["../projectBadge.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;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,CAAC,KAAK,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;;AA1BL,oCAyFC;AA3EG,gBAAgB;AACO,yBAAY,GAAG,wCAAwC,CAAC"}
|
package/projectCluster.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ProjectCluster = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|