@pulumi/gitlab 4.5.0-alpha.1643227148 → 4.5.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/branchProtection.d.ts +41 -31
- package/branchProtection.js +33 -43
- package/branchProtection.js.map +1 -1
- package/config/vars.d.ts +19 -5
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/deployKey.d.ts +1 -3
- package/deployKey.js +12 -16
- package/deployKey.js.map +1 -1
- package/deployKeyEnable.d.ts +34 -9
- package/deployKeyEnable.js +20 -24
- package/deployKeyEnable.js.map +1 -1
- package/deployToken.d.ts +3 -24
- package/deployToken.js +17 -34
- package/deployToken.js.map +1 -1
- package/getGroup.d.ts +6 -13
- package/getGroup.js +4 -16
- package/getGroup.js.map +1 -1
- package/getGroupMembership.d.ts +10 -14
- package/getGroupMembership.js +4 -16
- package/getGroupMembership.js.map +1 -1
- package/getProject.d.ts +19 -19
- package/getProject.js +3 -14
- package/getProject.js.map +1 -1
- package/getProjectProtectedBranch.d.ts +78 -0
- package/getProjectProtectedBranch.js +38 -0
- package/getProjectProtectedBranch.js.map +1 -0
- package/getProjectProtectedBranches.d.ts +53 -0
- package/getProjectProtectedBranches.js +36 -0
- package/getProjectProtectedBranches.js.map +1 -0
- package/getProjects.d.ts +81 -17
- package/getProjects.js +5 -15
- package/getProjects.js.map +1 -1
- package/getUser.d.ts +10 -15
- package/getUser.js +2 -15
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +25 -3
- package/getUsers.js +1 -5
- package/getUsers.js.map +1 -1
- package/group.d.ts +5 -54
- package/group.js +45 -51
- package/group.js.map +1 -1
- package/groupBadge.d.ts +115 -0
- package/groupBadge.js +93 -0
- package/groupBadge.js.map +1 -0
- package/groupCluster.d.ts +30 -10
- package/groupCluster.js +39 -45
- package/groupCluster.js.map +1 -1
- package/groupCustomAttribute.d.ts +96 -0
- package/groupCustomAttribute.js +86 -0
- package/groupCustomAttribute.js.map +1 -0
- package/groupLabel.d.ts +1 -3
- package/groupLabel.js +12 -16
- package/groupLabel.js.map +1 -1
- package/groupLdapLink.d.ts +34 -9
- package/groupLdapLink.js +17 -22
- package/groupLdapLink.js.map +1 -1
- package/groupMembership.d.ts +4 -6
- package/groupMembership.js +12 -16
- package/groupMembership.js.map +1 -1
- package/groupShareGroup.d.ts +4 -6
- package/groupShareGroup.js +12 -16
- package/groupShareGroup.js.map +1 -1
- package/groupVariable.d.ts +18 -7
- package/groupVariable.js +20 -21
- package/groupVariable.js.map +1 -1
- package/index.d.ts +10 -0
- package/index.js +42 -0
- package/index.js.map +1 -1
- package/instanceCluster.d.ts +25 -3
- package/instanceCluster.js +34 -38
- package/instanceCluster.js.map +1 -1
- package/instanceVariable.d.ts +1 -3
- package/instanceVariable.js +14 -18
- package/instanceVariable.js.map +1 -1
- package/label.d.ts +0 -2
- package/label.js +11 -15
- package/label.js.map +1 -1
- package/managedLicense.d.ts +102 -0
- package/managedLicense.js +89 -0
- package/managedLicense.js.map +1 -0
- package/package.json +2 -2
- package/package.json.bak +2 -1
- package/package.json.dev +3 -2
- package/pipelineSchedule.d.ts +1 -3
- package/pipelineSchedule.js +16 -20
- package/pipelineSchedule.js.map +1 -1
- package/pipelineScheduleVariable.d.ts +8 -2
- package/pipelineScheduleVariable.js +19 -15
- package/pipelineScheduleVariable.js.map +1 -1
- package/pipelineTrigger.d.ts +7 -3
- package/pipelineTrigger.js +10 -14
- package/pipelineTrigger.js.map +1 -1
- package/project.d.ts +65 -61
- package/project.js +99 -99
- package/project.js.map +1 -1
- package/projectAccessToken.d.ts +145 -0
- package/projectAccessToken.js +92 -0
- package/projectAccessToken.js.map +1 -0
- package/projectApprovalRule.d.ts +1 -43
- package/projectApprovalRule.js +16 -60
- package/projectApprovalRule.js.map +1 -1
- package/projectBadge.d.ts +2 -6
- package/projectBadge.js +15 -21
- package/projectBadge.js.map +1 -1
- package/projectCluster.d.ts +29 -7
- package/projectCluster.js +40 -44
- package/projectCluster.js.map +1 -1
- package/projectCustomAttribute.d.ts +96 -0
- package/projectCustomAttribute.js +86 -0
- package/projectCustomAttribute.js.map +1 -0
- package/projectFreezePeriod.d.ts +1 -3
- package/projectFreezePeriod.js +12 -16
- package/projectFreezePeriod.js.map +1 -1
- package/projectHook.d.ts +0 -2
- package/projectHook.js +35 -39
- package/projectHook.js.map +1 -1
- package/projectLevelMrApprovals.d.ts +3 -11
- package/projectLevelMrApprovals.js +16 -20
- package/projectLevelMrApprovals.js.map +1 -1
- package/projectMembership.d.ts +4 -6
- package/projectMembership.js +10 -14
- package/projectMembership.js.map +1 -1
- package/projectMirror.d.ts +7 -3
- package/projectMirror.js +16 -20
- package/projectMirror.js.map +1 -1
- package/projectShareGroup.d.ts +25 -9
- package/projectShareGroup.js +13 -18
- package/projectShareGroup.js.map +1 -1
- package/projectVariable.d.ts +4 -6
- package/projectVariable.js +18 -22
- package/projectVariable.js.map +1 -1
- package/provider.d.ts +30 -9
- package/provider.js +10 -11
- package/provider.js.map +1 -1
- package/repositoryFile.d.ts +149 -0
- package/repositoryFile.js +89 -0
- package/repositoryFile.js.map +1 -0
- package/serviceGithub.d.ts +37 -6
- package/serviceGithub.js +20 -24
- package/serviceGithub.js.map +1 -1
- package/serviceJira.d.ts +125 -0
- package/serviceJira.js +70 -31
- package/serviceJira.js.map +1 -1
- package/serviceMicrosoftTeams.d.ts +244 -0
- package/serviceMicrosoftTeams.js +113 -0
- package/serviceMicrosoftTeams.js.map +1 -0
- package/servicePipelinesEmail.d.ts +29 -0
- package/servicePipelinesEmail.js +40 -13
- package/servicePipelinesEmail.js.map +1 -1
- package/serviceSlack.d.ts +42 -6
- package/serviceSlack.js +81 -53
- package/serviceSlack.js.map +1 -1
- package/tagProtection.d.ts +11 -5
- package/tagProtection.js +17 -13
- package/tagProtection.js.map +1 -1
- package/types/input.d.ts +12 -0
- package/types/output.d.ts +52 -173
- package/user.d.ts +2 -7
- package/user.js +27 -31
- package/user.js.map +1 -1
- package/userCustomAttribute.d.ts +96 -0
- package/userCustomAttribute.js +86 -0
- package/userCustomAttribute.js.map +1 -0
- package/utilities.js +6 -1
- package/utilities.js.map +1 -1
package/branchProtection.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "./types";
|
|
3
3
|
/**
|
|
4
|
-
* ## # gitlab\_branch\_protection
|
|
5
|
-
*
|
|
6
4
|
* This resource allows you to protect a specific branch by an access level so that the user with less access level cannot Merge/Push to the branch.
|
|
7
5
|
*
|
|
8
6
|
* > The `allowedToPush`, `allowedToMerge` and `codeOwnerApprovalRequired` arguments require a GitLab Premium account or above. Please refer to [Gitlab API documentation](https://docs.gitlab.com/ee/api/protected_branches.html) for further information.
|
|
@@ -13,36 +11,30 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
13
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
14
12
|
* import * as gitlab from "@pulumi/gitlab";
|
|
15
13
|
*
|
|
16
|
-
* const branchProtect = new gitlab.BranchProtection("
|
|
17
|
-
*
|
|
14
|
+
* const branchProtect = new gitlab.BranchProtection("branchProtect", {
|
|
15
|
+
* project: "12345",
|
|
16
|
+
* branch: "BranchProtected",
|
|
17
|
+
* pushAccessLevel: "developer",
|
|
18
|
+
* mergeAccessLevel: "developer",
|
|
19
|
+
* codeOwnerApprovalRequired: true,
|
|
20
|
+
* allowedToPushes: [
|
|
18
21
|
* {
|
|
19
|
-
* userId:
|
|
22
|
+
* userId: 5,
|
|
20
23
|
* },
|
|
21
24
|
* {
|
|
22
|
-
* userId:
|
|
25
|
+
* userId: 521,
|
|
23
26
|
* },
|
|
24
27
|
* ],
|
|
25
|
-
*
|
|
28
|
+
* allowedToMerges: [
|
|
26
29
|
* {
|
|
27
|
-
* userId:
|
|
30
|
+
* userId: 15,
|
|
28
31
|
* },
|
|
29
32
|
* {
|
|
30
|
-
* userId:
|
|
33
|
+
* userId: 37,
|
|
31
34
|
* },
|
|
32
35
|
* ],
|
|
33
|
-
* branch: "BranchProtected",
|
|
34
|
-
* codeOwnerApprovalRequired: true,
|
|
35
|
-
* mergeAccessLevel: "developer",
|
|
36
|
-
* project: "12345",
|
|
37
|
-
* pushAccessLevel: "developer",
|
|
38
36
|
* });
|
|
39
|
-
*
|
|
40
|
-
* ### Example using dynamic block
|
|
41
|
-
*
|
|
42
|
-
* ```typescript
|
|
43
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
44
|
-
* import * as gitlab from "@pulumi/gitlab";
|
|
45
|
-
*
|
|
37
|
+
* // Example using dynamic block
|
|
46
38
|
* const main = new gitlab.BranchProtection("main", {
|
|
47
39
|
* project: "12345",
|
|
48
40
|
* branch: "main",
|
|
@@ -63,7 +55,7 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
63
55
|
*
|
|
64
56
|
* ## Import
|
|
65
57
|
*
|
|
66
|
-
* Gitlab protected branches can be imported with a key composed of `<project_id>:<branch>`, e.g.
|
|
58
|
+
* # Gitlab protected branches can be imported with a key composed of `<project_id>:<branch>`, e.g.
|
|
67
59
|
*
|
|
68
60
|
* ```sh
|
|
69
61
|
* $ pulumi import gitlab:index/branchProtection:BranchProtection BranchProtect "12345:main"
|
|
@@ -85,7 +77,13 @@ export declare class BranchProtection extends pulumi.CustomResource {
|
|
|
85
77
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
86
78
|
*/
|
|
87
79
|
static isInstance(obj: any): obj is BranchProtection;
|
|
80
|
+
/**
|
|
81
|
+
* Defines permissions for action.
|
|
82
|
+
*/
|
|
88
83
|
readonly allowedToMerges: pulumi.Output<outputs.BranchProtectionAllowedToMerge[] | undefined>;
|
|
84
|
+
/**
|
|
85
|
+
* Defines permissions for action.
|
|
86
|
+
*/
|
|
89
87
|
readonly allowedToPushes: pulumi.Output<outputs.BranchProtectionAllowedToPush[] | undefined>;
|
|
90
88
|
/**
|
|
91
89
|
* Name of the branch.
|
|
@@ -96,11 +94,11 @@ export declare class BranchProtection extends pulumi.CustomResource {
|
|
|
96
94
|
*/
|
|
97
95
|
readonly branchProtectionId: pulumi.Output<number>;
|
|
98
96
|
/**
|
|
99
|
-
*
|
|
97
|
+
* Can be set to true to require code owner approval before merging.
|
|
100
98
|
*/
|
|
101
99
|
readonly codeOwnerApprovalRequired: pulumi.Output<boolean | undefined>;
|
|
102
100
|
/**
|
|
103
|
-
*
|
|
101
|
+
* Access levels allowed to merge. Valid values are: `no one`, `developer`, `maintainer`.
|
|
104
102
|
*/
|
|
105
103
|
readonly mergeAccessLevel: pulumi.Output<string>;
|
|
106
104
|
/**
|
|
@@ -108,7 +106,7 @@ export declare class BranchProtection extends pulumi.CustomResource {
|
|
|
108
106
|
*/
|
|
109
107
|
readonly project: pulumi.Output<string>;
|
|
110
108
|
/**
|
|
111
|
-
*
|
|
109
|
+
* Access levels allowed to push. Valid values are: `no one`, `developer`, `maintainer`.
|
|
112
110
|
*/
|
|
113
111
|
readonly pushAccessLevel: pulumi.Output<string>;
|
|
114
112
|
/**
|
|
@@ -124,7 +122,13 @@ export declare class BranchProtection extends pulumi.CustomResource {
|
|
|
124
122
|
* Input properties used for looking up and filtering BranchProtection resources.
|
|
125
123
|
*/
|
|
126
124
|
export interface BranchProtectionState {
|
|
125
|
+
/**
|
|
126
|
+
* Defines permissions for action.
|
|
127
|
+
*/
|
|
127
128
|
allowedToMerges?: pulumi.Input<pulumi.Input<inputs.BranchProtectionAllowedToMerge>[]>;
|
|
129
|
+
/**
|
|
130
|
+
* Defines permissions for action.
|
|
131
|
+
*/
|
|
128
132
|
allowedToPushes?: pulumi.Input<pulumi.Input<inputs.BranchProtectionAllowedToPush>[]>;
|
|
129
133
|
/**
|
|
130
134
|
* Name of the branch.
|
|
@@ -135,11 +139,11 @@ export interface BranchProtectionState {
|
|
|
135
139
|
*/
|
|
136
140
|
branchProtectionId?: pulumi.Input<number>;
|
|
137
141
|
/**
|
|
138
|
-
*
|
|
142
|
+
* Can be set to true to require code owner approval before merging.
|
|
139
143
|
*/
|
|
140
144
|
codeOwnerApprovalRequired?: pulumi.Input<boolean>;
|
|
141
145
|
/**
|
|
142
|
-
*
|
|
146
|
+
* Access levels allowed to merge. Valid values are: `no one`, `developer`, `maintainer`.
|
|
143
147
|
*/
|
|
144
148
|
mergeAccessLevel?: pulumi.Input<string>;
|
|
145
149
|
/**
|
|
@@ -147,7 +151,7 @@ export interface BranchProtectionState {
|
|
|
147
151
|
*/
|
|
148
152
|
project?: pulumi.Input<string>;
|
|
149
153
|
/**
|
|
150
|
-
*
|
|
154
|
+
* Access levels allowed to push. Valid values are: `no one`, `developer`, `maintainer`.
|
|
151
155
|
*/
|
|
152
156
|
pushAccessLevel?: pulumi.Input<string>;
|
|
153
157
|
}
|
|
@@ -155,18 +159,24 @@ export interface BranchProtectionState {
|
|
|
155
159
|
* The set of arguments for constructing a BranchProtection resource.
|
|
156
160
|
*/
|
|
157
161
|
export interface BranchProtectionArgs {
|
|
162
|
+
/**
|
|
163
|
+
* Defines permissions for action.
|
|
164
|
+
*/
|
|
158
165
|
allowedToMerges?: pulumi.Input<pulumi.Input<inputs.BranchProtectionAllowedToMerge>[]>;
|
|
166
|
+
/**
|
|
167
|
+
* Defines permissions for action.
|
|
168
|
+
*/
|
|
159
169
|
allowedToPushes?: pulumi.Input<pulumi.Input<inputs.BranchProtectionAllowedToPush>[]>;
|
|
160
170
|
/**
|
|
161
171
|
* Name of the branch.
|
|
162
172
|
*/
|
|
163
173
|
branch: pulumi.Input<string>;
|
|
164
174
|
/**
|
|
165
|
-
*
|
|
175
|
+
* Can be set to true to require code owner approval before merging.
|
|
166
176
|
*/
|
|
167
177
|
codeOwnerApprovalRequired?: pulumi.Input<boolean>;
|
|
168
178
|
/**
|
|
169
|
-
*
|
|
179
|
+
* Access levels allowed to merge. Valid values are: `no one`, `developer`, `maintainer`.
|
|
170
180
|
*/
|
|
171
181
|
mergeAccessLevel: pulumi.Input<string>;
|
|
172
182
|
/**
|
|
@@ -174,7 +184,7 @@ export interface BranchProtectionArgs {
|
|
|
174
184
|
*/
|
|
175
185
|
project: pulumi.Input<string>;
|
|
176
186
|
/**
|
|
177
|
-
*
|
|
187
|
+
* Access levels allowed to push. Valid values are: `no one`, `developer`, `maintainer`.
|
|
178
188
|
*/
|
|
179
189
|
pushAccessLevel: pulumi.Input<string>;
|
|
180
190
|
}
|
package/branchProtection.js
CHANGED
|
@@ -6,8 +6,6 @@ exports.BranchProtection = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* ## # gitlab\_branch\_protection
|
|
10
|
-
*
|
|
11
9
|
* This resource allows you to protect a specific branch by an access level so that the user with less access level cannot Merge/Push to the branch.
|
|
12
10
|
*
|
|
13
11
|
* > The `allowedToPush`, `allowedToMerge` and `codeOwnerApprovalRequired` arguments require a GitLab Premium account or above. Please refer to [Gitlab API documentation](https://docs.gitlab.com/ee/api/protected_branches.html) for further information.
|
|
@@ -18,36 +16,30 @@ const utilities = require("./utilities");
|
|
|
18
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
19
17
|
* import * as gitlab from "@pulumi/gitlab";
|
|
20
18
|
*
|
|
21
|
-
* const branchProtect = new gitlab.BranchProtection("
|
|
22
|
-
*
|
|
19
|
+
* const branchProtect = new gitlab.BranchProtection("branchProtect", {
|
|
20
|
+
* project: "12345",
|
|
21
|
+
* branch: "BranchProtected",
|
|
22
|
+
* pushAccessLevel: "developer",
|
|
23
|
+
* mergeAccessLevel: "developer",
|
|
24
|
+
* codeOwnerApprovalRequired: true,
|
|
25
|
+
* allowedToPushes: [
|
|
23
26
|
* {
|
|
24
|
-
* userId:
|
|
27
|
+
* userId: 5,
|
|
25
28
|
* },
|
|
26
29
|
* {
|
|
27
|
-
* userId:
|
|
30
|
+
* userId: 521,
|
|
28
31
|
* },
|
|
29
32
|
* ],
|
|
30
|
-
*
|
|
33
|
+
* allowedToMerges: [
|
|
31
34
|
* {
|
|
32
|
-
* userId:
|
|
35
|
+
* userId: 15,
|
|
33
36
|
* },
|
|
34
37
|
* {
|
|
35
|
-
* userId:
|
|
38
|
+
* userId: 37,
|
|
36
39
|
* },
|
|
37
40
|
* ],
|
|
38
|
-
* branch: "BranchProtected",
|
|
39
|
-
* codeOwnerApprovalRequired: true,
|
|
40
|
-
* mergeAccessLevel: "developer",
|
|
41
|
-
* project: "12345",
|
|
42
|
-
* pushAccessLevel: "developer",
|
|
43
41
|
* });
|
|
44
|
-
*
|
|
45
|
-
* ### Example using dynamic block
|
|
46
|
-
*
|
|
47
|
-
* ```typescript
|
|
48
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
49
|
-
* import * as gitlab from "@pulumi/gitlab";
|
|
50
|
-
*
|
|
42
|
+
* // Example using dynamic block
|
|
51
43
|
* const main = new gitlab.BranchProtection("main", {
|
|
52
44
|
* project: "12345",
|
|
53
45
|
* branch: "main",
|
|
@@ -68,7 +60,7 @@ const utilities = require("./utilities");
|
|
|
68
60
|
*
|
|
69
61
|
* ## Import
|
|
70
62
|
*
|
|
71
|
-
* Gitlab protected branches can be imported with a key composed of `<project_id>:<branch>`, e.g.
|
|
63
|
+
* # Gitlab protected branches can be imported with a key composed of `<project_id>:<branch>`, e.g.
|
|
72
64
|
*
|
|
73
65
|
* ```sh
|
|
74
66
|
* $ pulumi import gitlab:index/branchProtection:BranchProtection BranchProtect "12345:main"
|
|
@@ -76,18 +68,18 @@ const utilities = require("./utilities");
|
|
|
76
68
|
*/
|
|
77
69
|
class BranchProtection extends pulumi.CustomResource {
|
|
78
70
|
constructor(name, argsOrState, opts) {
|
|
79
|
-
let
|
|
71
|
+
let resourceInputs = {};
|
|
80
72
|
opts = opts || {};
|
|
81
73
|
if (opts.id) {
|
|
82
74
|
const state = argsOrState;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
75
|
+
resourceInputs["allowedToMerges"] = state ? state.allowedToMerges : undefined;
|
|
76
|
+
resourceInputs["allowedToPushes"] = state ? state.allowedToPushes : undefined;
|
|
77
|
+
resourceInputs["branch"] = state ? state.branch : undefined;
|
|
78
|
+
resourceInputs["branchProtectionId"] = state ? state.branchProtectionId : undefined;
|
|
79
|
+
resourceInputs["codeOwnerApprovalRequired"] = state ? state.codeOwnerApprovalRequired : undefined;
|
|
80
|
+
resourceInputs["mergeAccessLevel"] = state ? state.mergeAccessLevel : undefined;
|
|
81
|
+
resourceInputs["project"] = state ? state.project : undefined;
|
|
82
|
+
resourceInputs["pushAccessLevel"] = state ? state.pushAccessLevel : undefined;
|
|
91
83
|
}
|
|
92
84
|
else {
|
|
93
85
|
const args = argsOrState;
|
|
@@ -103,19 +95,17 @@ class BranchProtection extends pulumi.CustomResource {
|
|
|
103
95
|
if ((!args || args.pushAccessLevel === undefined) && !opts.urn) {
|
|
104
96
|
throw new Error("Missing required property 'pushAccessLevel'");
|
|
105
97
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
115
|
-
if (!opts.version) {
|
|
116
|
-
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
98
|
+
resourceInputs["allowedToMerges"] = args ? args.allowedToMerges : undefined;
|
|
99
|
+
resourceInputs["allowedToPushes"] = args ? args.allowedToPushes : undefined;
|
|
100
|
+
resourceInputs["branch"] = args ? args.branch : undefined;
|
|
101
|
+
resourceInputs["codeOwnerApprovalRequired"] = args ? args.codeOwnerApprovalRequired : undefined;
|
|
102
|
+
resourceInputs["mergeAccessLevel"] = args ? args.mergeAccessLevel : undefined;
|
|
103
|
+
resourceInputs["project"] = args ? args.project : undefined;
|
|
104
|
+
resourceInputs["pushAccessLevel"] = args ? args.pushAccessLevel : undefined;
|
|
105
|
+
resourceInputs["branchProtectionId"] = undefined /*out*/;
|
|
117
106
|
}
|
|
118
|
-
|
|
107
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
108
|
+
super(BranchProtection.__pulumiType, name, resourceInputs, opts);
|
|
119
109
|
}
|
|
120
110
|
/**
|
|
121
111
|
* Get an existing BranchProtection resource's state with the given name, ID, and optional extra
|
package/branchProtection.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branchProtection.js","sourceRoot":"","sources":["../branchProtection.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"branchProtection.js","sourceRoot":"","sources":["../branchProtection.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IAqEvD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,oBAAoB,CAAC,GAAG,KAAK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,CAAC;IACvE,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,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;;AA1BL,4CA4GC;AA9FG,gBAAgB;AACO,6BAAY,GAAG,gDAAgD,CAAC"}
|
package/config/vars.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* This is the target GitLab base API endpoint. Providing a value is a requirement when working with GitLab CE or GitLab
|
|
3
|
+
* Enterprise e.g. `https://my.gitlab.server/api/v4/`. It is optional to provide this value and it can also be sourced from
|
|
4
|
+
* the `GITLAB_BASE_URL` environment variable. The value must end with a slash.
|
|
3
5
|
*/
|
|
4
6
|
export declare const baseUrl: string | undefined;
|
|
5
7
|
/**
|
|
6
|
-
*
|
|
8
|
+
* This is a file containing the ca cert to verify the gitlab instance. This is available for use when working with GitLab
|
|
9
|
+
* CE or Gitlab Enterprise with a locally-issued or self-signed certificate chain.
|
|
7
10
|
*/
|
|
8
11
|
export declare const cacertFile: string | undefined;
|
|
9
12
|
/**
|
|
@@ -11,14 +14,25 @@ export declare const cacertFile: string | undefined;
|
|
|
11
14
|
*/
|
|
12
15
|
export declare const clientCert: string | undefined;
|
|
13
16
|
/**
|
|
14
|
-
* File path to client key when GitLab instance is behind company proxy. File must contain PEM encoded data.
|
|
17
|
+
* File path to client key when GitLab instance is behind company proxy. File must contain PEM encoded data. Required when
|
|
18
|
+
* `client_cert` is set.
|
|
15
19
|
*/
|
|
16
20
|
export declare const clientKey: string | undefined;
|
|
17
21
|
/**
|
|
18
|
-
*
|
|
22
|
+
* (Experimental) By default the provider does a dummy request to get the current user in order to verify that the provider
|
|
23
|
+
* configuration is correct and the GitLab API is reachable. Turn it off, to skip this check. This may be useful if the
|
|
24
|
+
* GitLab instance does not yet exist and is created within the same terraform module. This is an experimental feature and
|
|
25
|
+
* may change in the future. Please make sure to always keep backups of your state.
|
|
26
|
+
*/
|
|
27
|
+
export declare const earlyAuthCheck: boolean | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* When set to true this disables SSL verification of the connection to the GitLab instance.
|
|
19
30
|
*/
|
|
20
31
|
export declare const insecure: boolean | undefined;
|
|
21
32
|
/**
|
|
22
|
-
* The OAuth2
|
|
33
|
+
* The OAuth2 Token, Project, Group, Personal Access Token or CI Job Token used to connect to GitLab. The OAuth method is
|
|
34
|
+
* used in this provider for authentication (using Bearer authorization token). See
|
|
35
|
+
* https://docs.gitlab.com/ee/api/#authentication for details. It may be sourced from the `GITLAB_TOKEN` environment
|
|
36
|
+
* variable.
|
|
23
37
|
*/
|
|
24
38
|
export declare const token: string | undefined;
|
package/config/vars.js
CHANGED
|
@@ -28,6 +28,12 @@ Object.defineProperty(exports, "clientKey", {
|
|
|
28
28
|
},
|
|
29
29
|
enumerable: true,
|
|
30
30
|
});
|
|
31
|
+
Object.defineProperty(exports, "earlyAuthCheck", {
|
|
32
|
+
get() {
|
|
33
|
+
return __config.getObject("earlyAuthCheck");
|
|
34
|
+
},
|
|
35
|
+
enumerable: true,
|
|
36
|
+
});
|
|
31
37
|
Object.defineProperty(exports, "insecure", {
|
|
32
38
|
get() {
|
|
33
39
|
return __config.getObject("insecure");
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF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AG,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
package/deployKey.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* ## # gitlab\_deploy\_key
|
|
4
|
-
*
|
|
5
3
|
* This resource allows you to create and manage [deploy keys](https://docs.gitlab.com/ee/user/project/deploy_keys/) for your GitLab projects.
|
|
6
4
|
*
|
|
7
5
|
* ## Example Usage
|
|
@@ -19,7 +17,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
19
17
|
*
|
|
20
18
|
* ## Import
|
|
21
19
|
*
|
|
22
|
-
* GitLab deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g.
|
|
20
|
+
* # GitLab deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g.
|
|
23
21
|
*
|
|
24
22
|
* ```sh
|
|
25
23
|
* $ pulumi import gitlab:index/deployKey:DeployKey test 1:3
|
package/deployKey.js
CHANGED
|
@@ -6,8 +6,6 @@ exports.DeployKey = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* ## # gitlab\_deploy\_key
|
|
10
|
-
*
|
|
11
9
|
* This resource allows you to create and manage [deploy keys](https://docs.gitlab.com/ee/user/project/deploy_keys/) for your GitLab projects.
|
|
12
10
|
*
|
|
13
11
|
* ## Example Usage
|
|
@@ -25,7 +23,7 @@ const utilities = require("./utilities");
|
|
|
25
23
|
*
|
|
26
24
|
* ## Import
|
|
27
25
|
*
|
|
28
|
-
* GitLab deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g.
|
|
26
|
+
* # GitLab deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g.
|
|
29
27
|
*
|
|
30
28
|
* ```sh
|
|
31
29
|
* $ pulumi import gitlab:index/deployKey:DeployKey test 1:3
|
|
@@ -33,14 +31,14 @@ const utilities = require("./utilities");
|
|
|
33
31
|
*/
|
|
34
32
|
class DeployKey extends pulumi.CustomResource {
|
|
35
33
|
constructor(name, argsOrState, opts) {
|
|
36
|
-
let
|
|
34
|
+
let resourceInputs = {};
|
|
37
35
|
opts = opts || {};
|
|
38
36
|
if (opts.id) {
|
|
39
37
|
const state = argsOrState;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
resourceInputs["canPush"] = state ? state.canPush : undefined;
|
|
39
|
+
resourceInputs["key"] = state ? state.key : undefined;
|
|
40
|
+
resourceInputs["project"] = state ? state.project : undefined;
|
|
41
|
+
resourceInputs["title"] = state ? state.title : undefined;
|
|
44
42
|
}
|
|
45
43
|
else {
|
|
46
44
|
const args = argsOrState;
|
|
@@ -53,15 +51,13 @@ class DeployKey extends pulumi.CustomResource {
|
|
|
53
51
|
if ((!args || args.title === undefined) && !opts.urn) {
|
|
54
52
|
throw new Error("Missing required property 'title'");
|
|
55
53
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
if (!opts.version) {
|
|
62
|
-
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
54
|
+
resourceInputs["canPush"] = args ? args.canPush : undefined;
|
|
55
|
+
resourceInputs["key"] = args ? args.key : undefined;
|
|
56
|
+
resourceInputs["project"] = args ? args.project : undefined;
|
|
57
|
+
resourceInputs["title"] = args ? args.title : undefined;
|
|
63
58
|
}
|
|
64
|
-
|
|
59
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
60
|
+
super(DeployKey.__pulumiType, name, resourceInputs, opts);
|
|
65
61
|
}
|
|
66
62
|
/**
|
|
67
63
|
* Get an existing DeployKey resource's state with the given name, ID, and optional extra
|
package/deployKey.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployKey.js","sourceRoot":"","sources":["../deployKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"deployKey.js","sourceRoot":"","sources":["../deployKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAqDhD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;aAAM;YACH,MAAM,IAAI,GAAG,WAAwC,CAAC;YACtD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,GAAG,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAChD,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;aACtD;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,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IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;;AA1BL,8BAiFC;AAnEG,gBAAgB;AACO,sBAAY,GAAG,kCAAkC,CAAC"}
|
package/deployKeyEnable.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* ## # gitlab\_deploy\_key\_enable
|
|
4
|
-
*
|
|
5
3
|
* This resource allows you to enable pre-existing deploy keys for your GitLab projects.
|
|
6
4
|
*
|
|
7
5
|
* > **NOTE**: the GITLAB KEY_ID for the deploy key must be known
|
|
@@ -13,25 +11,25 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
13
11
|
* import * as gitlab from "@pulumi/gitlab";
|
|
14
12
|
*
|
|
15
13
|
* // A repo to host the deployment key
|
|
16
|
-
* const parentProject = new gitlab.Project("
|
|
14
|
+
* const parentProject = new gitlab.Project("parentProject", {});
|
|
17
15
|
* // A second repo to use the deployment key from the parent project
|
|
18
|
-
* const fooProject = new gitlab.Project("
|
|
16
|
+
* const fooProject = new gitlab.Project("fooProject", {});
|
|
19
17
|
* // Upload a deployment key for the parent repo
|
|
20
|
-
* const parentDeployKey = new gitlab.DeployKey("
|
|
21
|
-
* key: "ssh-rsa AAAA...",
|
|
18
|
+
* const parentDeployKey = new gitlab.DeployKey("parentDeployKey", {
|
|
22
19
|
* project: parentProject.id,
|
|
23
20
|
* title: "Example deploy key",
|
|
21
|
+
* key: "ssh-rsa AAAA...",
|
|
24
22
|
* });
|
|
25
23
|
* // Enable the deployment key on the second repo
|
|
26
|
-
* const fooDeployKeyEnable = new gitlab.DeployKeyEnable("
|
|
27
|
-
* keyId: parentDeployKey.id,
|
|
24
|
+
* const fooDeployKeyEnable = new gitlab.DeployKeyEnable("fooDeployKeyEnable", {
|
|
28
25
|
* project: fooProject.id,
|
|
26
|
+
* keyId: parentDeployKey.id,
|
|
29
27
|
* });
|
|
30
28
|
* ```
|
|
31
29
|
*
|
|
32
30
|
* ## Import
|
|
33
31
|
*
|
|
34
|
-
* GitLab enabled deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g.
|
|
32
|
+
* # GitLab enabled deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g.
|
|
35
33
|
*
|
|
36
34
|
* ```sh
|
|
37
35
|
* $ pulumi import gitlab:index/deployKeyEnable:DeployKeyEnable example 12345:67890
|
|
@@ -53,7 +51,13 @@ export declare class DeployKeyEnable extends pulumi.CustomResource {
|
|
|
53
51
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
54
52
|
*/
|
|
55
53
|
static isInstance(obj: any): obj is DeployKeyEnable;
|
|
54
|
+
/**
|
|
55
|
+
* Can deploy key push to the project’s repository.
|
|
56
|
+
*/
|
|
56
57
|
readonly canPush: pulumi.Output<boolean>;
|
|
58
|
+
/**
|
|
59
|
+
* Deploy key.
|
|
60
|
+
*/
|
|
57
61
|
readonly key: pulumi.Output<string>;
|
|
58
62
|
/**
|
|
59
63
|
* The Gitlab key id for the pre-existing deploy key
|
|
@@ -63,6 +67,9 @@ export declare class DeployKeyEnable extends pulumi.CustomResource {
|
|
|
63
67
|
* The name or id of the project to add the deploy key to.
|
|
64
68
|
*/
|
|
65
69
|
readonly project: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* Deploy key's title.
|
|
72
|
+
*/
|
|
66
73
|
readonly title: pulumi.Output<string>;
|
|
67
74
|
/**
|
|
68
75
|
* Create a DeployKeyEnable resource with the given unique name, arguments, and options.
|
|
@@ -77,7 +84,13 @@ export declare class DeployKeyEnable extends pulumi.CustomResource {
|
|
|
77
84
|
* Input properties used for looking up and filtering DeployKeyEnable resources.
|
|
78
85
|
*/
|
|
79
86
|
export interface DeployKeyEnableState {
|
|
87
|
+
/**
|
|
88
|
+
* Can deploy key push to the project’s repository.
|
|
89
|
+
*/
|
|
80
90
|
canPush?: pulumi.Input<boolean>;
|
|
91
|
+
/**
|
|
92
|
+
* Deploy key.
|
|
93
|
+
*/
|
|
81
94
|
key?: pulumi.Input<string>;
|
|
82
95
|
/**
|
|
83
96
|
* The Gitlab key id for the pre-existing deploy key
|
|
@@ -87,13 +100,22 @@ export interface DeployKeyEnableState {
|
|
|
87
100
|
* The name or id of the project to add the deploy key to.
|
|
88
101
|
*/
|
|
89
102
|
project?: pulumi.Input<string>;
|
|
103
|
+
/**
|
|
104
|
+
* Deploy key's title.
|
|
105
|
+
*/
|
|
90
106
|
title?: pulumi.Input<string>;
|
|
91
107
|
}
|
|
92
108
|
/**
|
|
93
109
|
* The set of arguments for constructing a DeployKeyEnable resource.
|
|
94
110
|
*/
|
|
95
111
|
export interface DeployKeyEnableArgs {
|
|
112
|
+
/**
|
|
113
|
+
* Can deploy key push to the project’s repository.
|
|
114
|
+
*/
|
|
96
115
|
canPush?: pulumi.Input<boolean>;
|
|
116
|
+
/**
|
|
117
|
+
* Deploy key.
|
|
118
|
+
*/
|
|
97
119
|
key?: pulumi.Input<string>;
|
|
98
120
|
/**
|
|
99
121
|
* The Gitlab key id for the pre-existing deploy key
|
|
@@ -103,5 +125,8 @@ export interface DeployKeyEnableArgs {
|
|
|
103
125
|
* The name or id of the project to add the deploy key to.
|
|
104
126
|
*/
|
|
105
127
|
project: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* Deploy key's title.
|
|
130
|
+
*/
|
|
106
131
|
title?: pulumi.Input<string>;
|
|
107
132
|
}
|