@pulumi/gitlab 6.5.0-alpha.1698476707 → 6.5.0-alpha.1698712574
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/getGroup.d.ts +4 -0
- package/getGroup.js.map +1 -1
- package/getProject.d.ts +4 -0
- package/getProject.js.map +1 -1
- package/group.d.ts +51 -39
- package/group.js +2 -0
- package/group.js.map +1 -1
- package/groupProtectedEnvironment.d.ts +116 -0
- package/groupProtectedEnvironment.js +84 -0
- package/groupProtectedEnvironment.js.map +1 -0
- package/index.d.ts +3 -0
- package/index.js +7 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/project.d.ts +35 -9
- package/project.js +4 -0
- package/project.js.map +1 -1
- package/types/input.d.ts +48 -0
- package/types/output.d.ts +51 -0
- package/userSshKey.d.ts +4 -4
- package/userSshKey.js +0 -3
- package/userSshKey.js.map +1 -1
package/getGroup.d.ts
CHANGED
|
@@ -97,6 +97,10 @@ export interface GetGroupResult {
|
|
|
97
97
|
* Can be set by administrators only. Maximum number of monthly CI/CD minutes for this group. Can be nil (default; inherit system default), 0 (unlimited), or > 0.
|
|
98
98
|
*/
|
|
99
99
|
readonly sharedRunnersMinutesLimit: number;
|
|
100
|
+
/**
|
|
101
|
+
* Enable or disable shared runners for a group’s subgroups and projects. Valid values are: `enabled`, `disabledAndOverridable`, `disabledAndUnoverridable`, `disabledWithOverride`.
|
|
102
|
+
*/
|
|
103
|
+
readonly sharedRunnersSetting: string;
|
|
100
104
|
/**
|
|
101
105
|
* Visibility level of the group. Possible values are `private`, `internal`, `public`.
|
|
102
106
|
*/
|
package/getGroup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getGroup.js","sourceRoot":"","sources":["../getGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,QAAQ,CAAC,IAAmB,EAAE,IAA2B;IACrE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,EAAE;QAC3D,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,4BAQC;
|
|
1
|
+
{"version":3,"file":"getGroup.js","sourceRoot":"","sources":["../getGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,QAAQ,CAAC,IAAmB,EAAE,IAA2B;IACrE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,EAAE;QAC3D,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,4BAQC;AAqGD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,wCAEC"}
|
package/getProject.d.ts
CHANGED
|
@@ -110,6 +110,10 @@ export interface GetProjectResult {
|
|
|
110
110
|
* Disable email notifications.
|
|
111
111
|
*/
|
|
112
112
|
readonly emailsDisabled: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Whether the project is empty.
|
|
115
|
+
*/
|
|
116
|
+
readonly emptyRepo: boolean;
|
|
113
117
|
/**
|
|
114
118
|
* Set the environments access level. Valid values are `disabled`, `private`, `enabled`.
|
|
115
119
|
*/
|
package/getProject.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getProject.js","sourceRoot":"","sources":["../getProject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oCAAoC,EAAE;QAC/D,mBAAmB,EAAE,IAAI,CAAC,iBAAiB;QAC3C,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,mBAAmB,EAAE,IAAI,CAAC,iBAAiB;QAC3C,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,gCAUC;
|
|
1
|
+
{"version":3,"file":"getProject.js","sourceRoot":"","sources":["../getProject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oCAAoC,EAAE;QAC/D,mBAAmB,EAAE,IAAI,CAAC,iBAAiB;QAC3C,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,mBAAmB,EAAE,IAAI,CAAC,iBAAiB;QAC3C,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,gCAUC;AA6RD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
|
package/group.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export declare class Group extends pulumi.CustomResource {
|
|
|
52
52
|
*/
|
|
53
53
|
static isInstance(obj: any): obj is Group;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Default to Auto DevOps pipeline for all projects within this group.
|
|
56
56
|
*/
|
|
57
57
|
readonly autoDevopsEnabled: pulumi.Output<boolean>;
|
|
58
58
|
/**
|
|
@@ -68,15 +68,15 @@ export declare class Group extends pulumi.CustomResource {
|
|
|
68
68
|
*/
|
|
69
69
|
readonly avatarUrl: pulumi.Output<string>;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* See https://docs.gitlab.com/ee/api/groups.html#options-for-default*branch*protection. Valid values are: `0`, `1`, `2`, `3`, `4`.
|
|
72
72
|
*/
|
|
73
73
|
readonly defaultBranchProtection: pulumi.Output<number>;
|
|
74
74
|
/**
|
|
75
|
-
* The description
|
|
75
|
+
* The group's description.
|
|
76
76
|
*/
|
|
77
77
|
readonly description: pulumi.Output<string | undefined>;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Disable email notifications.
|
|
80
80
|
*/
|
|
81
81
|
readonly emailsDisabled: pulumi.Output<boolean>;
|
|
82
82
|
/**
|
|
@@ -96,7 +96,7 @@ export declare class Group extends pulumi.CustomResource {
|
|
|
96
96
|
*/
|
|
97
97
|
readonly ipRestrictionRanges: pulumi.Output<string[] | undefined>;
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
99
|
+
* Enable/disable Large File Storage (LFS) for the projects in this group.
|
|
100
100
|
*/
|
|
101
101
|
readonly lfsEnabled: pulumi.Output<boolean>;
|
|
102
102
|
/**
|
|
@@ -104,11 +104,11 @@ export declare class Group extends pulumi.CustomResource {
|
|
|
104
104
|
*/
|
|
105
105
|
readonly membershipLock: pulumi.Output<boolean | undefined>;
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
107
|
+
* Disable the capability of a group from getting mentioned.
|
|
108
108
|
*/
|
|
109
109
|
readonly mentionsDisabled: pulumi.Output<boolean>;
|
|
110
110
|
/**
|
|
111
|
-
* The name of
|
|
111
|
+
* The name of the group.
|
|
112
112
|
*/
|
|
113
113
|
readonly name: pulumi.Output<string>;
|
|
114
114
|
/**
|
|
@@ -124,15 +124,15 @@ export declare class Group extends pulumi.CustomResource {
|
|
|
124
124
|
*/
|
|
125
125
|
readonly preventForkingOutsideGroup: pulumi.Output<boolean>;
|
|
126
126
|
/**
|
|
127
|
-
*
|
|
127
|
+
* Determine if developers can create projects in the group. Valid values are: `noone`, `maintainer`, `developer`
|
|
128
128
|
*/
|
|
129
129
|
readonly projectCreationLevel: pulumi.Output<string>;
|
|
130
130
|
/**
|
|
131
|
-
*
|
|
131
|
+
* Allow users to request member access.
|
|
132
132
|
*/
|
|
133
133
|
readonly requestAccessEnabled: pulumi.Output<boolean>;
|
|
134
134
|
/**
|
|
135
|
-
*
|
|
135
|
+
* Require all users in this group to setup Two-factor authentication.
|
|
136
136
|
*/
|
|
137
137
|
readonly requireTwoFactorAuthentication: pulumi.Output<boolean>;
|
|
138
138
|
/**
|
|
@@ -140,7 +140,7 @@ export declare class Group extends pulumi.CustomResource {
|
|
|
140
140
|
*/
|
|
141
141
|
readonly runnersToken: pulumi.Output<string>;
|
|
142
142
|
/**
|
|
143
|
-
*
|
|
143
|
+
* Prevent sharing a project with another group within this group.
|
|
144
144
|
*/
|
|
145
145
|
readonly shareWithGroupLock: pulumi.Output<boolean>;
|
|
146
146
|
/**
|
|
@@ -148,7 +148,11 @@ export declare class Group extends pulumi.CustomResource {
|
|
|
148
148
|
*/
|
|
149
149
|
readonly sharedRunnersMinutesLimit: pulumi.Output<number>;
|
|
150
150
|
/**
|
|
151
|
-
*
|
|
151
|
+
* Enable or disable shared runners for a group’s subgroups and projects. Valid values are: `enabled`, `disabledAndOverridable`, `disabledAndUnoverridable`, `disabledWithOverride`.
|
|
152
|
+
*/
|
|
153
|
+
readonly sharedRunnersSetting: pulumi.Output<string>;
|
|
154
|
+
/**
|
|
155
|
+
* Allowed to create subgroups. Valid values are: `owner`, `maintainer`.
|
|
152
156
|
*/
|
|
153
157
|
readonly subgroupCreationLevel: pulumi.Output<string>;
|
|
154
158
|
/**
|
|
@@ -156,7 +160,7 @@ export declare class Group extends pulumi.CustomResource {
|
|
|
156
160
|
*/
|
|
157
161
|
readonly twoFactorGracePeriod: pulumi.Output<number>;
|
|
158
162
|
/**
|
|
159
|
-
* The group's visibility. Can be `private`, `internal`, or `public`.
|
|
163
|
+
* The group's visibility. Can be `private`, `internal`, or `public`. Valid values are: `private`, `internal`, `public`.
|
|
160
164
|
*/
|
|
161
165
|
readonly visibilityLevel: pulumi.Output<string>;
|
|
162
166
|
/**
|
|
@@ -181,7 +185,7 @@ export declare class Group extends pulumi.CustomResource {
|
|
|
181
185
|
*/
|
|
182
186
|
export interface GroupState {
|
|
183
187
|
/**
|
|
184
|
-
*
|
|
188
|
+
* Default to Auto DevOps pipeline for all projects within this group.
|
|
185
189
|
*/
|
|
186
190
|
autoDevopsEnabled?: pulumi.Input<boolean>;
|
|
187
191
|
/**
|
|
@@ -197,15 +201,15 @@ export interface GroupState {
|
|
|
197
201
|
*/
|
|
198
202
|
avatarUrl?: pulumi.Input<string>;
|
|
199
203
|
/**
|
|
200
|
-
*
|
|
204
|
+
* See https://docs.gitlab.com/ee/api/groups.html#options-for-default*branch*protection. Valid values are: `0`, `1`, `2`, `3`, `4`.
|
|
201
205
|
*/
|
|
202
206
|
defaultBranchProtection?: pulumi.Input<number>;
|
|
203
207
|
/**
|
|
204
|
-
* The description
|
|
208
|
+
* The group's description.
|
|
205
209
|
*/
|
|
206
210
|
description?: pulumi.Input<string>;
|
|
207
211
|
/**
|
|
208
|
-
*
|
|
212
|
+
* Disable email notifications.
|
|
209
213
|
*/
|
|
210
214
|
emailsDisabled?: pulumi.Input<boolean>;
|
|
211
215
|
/**
|
|
@@ -225,7 +229,7 @@ export interface GroupState {
|
|
|
225
229
|
*/
|
|
226
230
|
ipRestrictionRanges?: pulumi.Input<pulumi.Input<string>[]>;
|
|
227
231
|
/**
|
|
228
|
-
*
|
|
232
|
+
* Enable/disable Large File Storage (LFS) for the projects in this group.
|
|
229
233
|
*/
|
|
230
234
|
lfsEnabled?: pulumi.Input<boolean>;
|
|
231
235
|
/**
|
|
@@ -233,11 +237,11 @@ export interface GroupState {
|
|
|
233
237
|
*/
|
|
234
238
|
membershipLock?: pulumi.Input<boolean>;
|
|
235
239
|
/**
|
|
236
|
-
*
|
|
240
|
+
* Disable the capability of a group from getting mentioned.
|
|
237
241
|
*/
|
|
238
242
|
mentionsDisabled?: pulumi.Input<boolean>;
|
|
239
243
|
/**
|
|
240
|
-
* The name of
|
|
244
|
+
* The name of the group.
|
|
241
245
|
*/
|
|
242
246
|
name?: pulumi.Input<string>;
|
|
243
247
|
/**
|
|
@@ -253,15 +257,15 @@ export interface GroupState {
|
|
|
253
257
|
*/
|
|
254
258
|
preventForkingOutsideGroup?: pulumi.Input<boolean>;
|
|
255
259
|
/**
|
|
256
|
-
*
|
|
260
|
+
* Determine if developers can create projects in the group. Valid values are: `noone`, `maintainer`, `developer`
|
|
257
261
|
*/
|
|
258
262
|
projectCreationLevel?: pulumi.Input<string>;
|
|
259
263
|
/**
|
|
260
|
-
*
|
|
264
|
+
* Allow users to request member access.
|
|
261
265
|
*/
|
|
262
266
|
requestAccessEnabled?: pulumi.Input<boolean>;
|
|
263
267
|
/**
|
|
264
|
-
*
|
|
268
|
+
* Require all users in this group to setup Two-factor authentication.
|
|
265
269
|
*/
|
|
266
270
|
requireTwoFactorAuthentication?: pulumi.Input<boolean>;
|
|
267
271
|
/**
|
|
@@ -269,7 +273,7 @@ export interface GroupState {
|
|
|
269
273
|
*/
|
|
270
274
|
runnersToken?: pulumi.Input<string>;
|
|
271
275
|
/**
|
|
272
|
-
*
|
|
276
|
+
* Prevent sharing a project with another group within this group.
|
|
273
277
|
*/
|
|
274
278
|
shareWithGroupLock?: pulumi.Input<boolean>;
|
|
275
279
|
/**
|
|
@@ -277,7 +281,11 @@ export interface GroupState {
|
|
|
277
281
|
*/
|
|
278
282
|
sharedRunnersMinutesLimit?: pulumi.Input<number>;
|
|
279
283
|
/**
|
|
280
|
-
*
|
|
284
|
+
* Enable or disable shared runners for a group’s subgroups and projects. Valid values are: `enabled`, `disabledAndOverridable`, `disabledAndUnoverridable`, `disabledWithOverride`.
|
|
285
|
+
*/
|
|
286
|
+
sharedRunnersSetting?: pulumi.Input<string>;
|
|
287
|
+
/**
|
|
288
|
+
* Allowed to create subgroups. Valid values are: `owner`, `maintainer`.
|
|
281
289
|
*/
|
|
282
290
|
subgroupCreationLevel?: pulumi.Input<string>;
|
|
283
291
|
/**
|
|
@@ -285,7 +293,7 @@ export interface GroupState {
|
|
|
285
293
|
*/
|
|
286
294
|
twoFactorGracePeriod?: pulumi.Input<number>;
|
|
287
295
|
/**
|
|
288
|
-
* The group's visibility. Can be `private`, `internal`, or `public`.
|
|
296
|
+
* The group's visibility. Can be `private`, `internal`, or `public`. Valid values are: `private`, `internal`, `public`.
|
|
289
297
|
*/
|
|
290
298
|
visibilityLevel?: pulumi.Input<string>;
|
|
291
299
|
/**
|
|
@@ -302,7 +310,7 @@ export interface GroupState {
|
|
|
302
310
|
*/
|
|
303
311
|
export interface GroupArgs {
|
|
304
312
|
/**
|
|
305
|
-
*
|
|
313
|
+
* Default to Auto DevOps pipeline for all projects within this group.
|
|
306
314
|
*/
|
|
307
315
|
autoDevopsEnabled?: pulumi.Input<boolean>;
|
|
308
316
|
/**
|
|
@@ -314,15 +322,15 @@ export interface GroupArgs {
|
|
|
314
322
|
*/
|
|
315
323
|
avatarHash?: pulumi.Input<string>;
|
|
316
324
|
/**
|
|
317
|
-
*
|
|
325
|
+
* See https://docs.gitlab.com/ee/api/groups.html#options-for-default*branch*protection. Valid values are: `0`, `1`, `2`, `3`, `4`.
|
|
318
326
|
*/
|
|
319
327
|
defaultBranchProtection?: pulumi.Input<number>;
|
|
320
328
|
/**
|
|
321
|
-
* The description
|
|
329
|
+
* The group's description.
|
|
322
330
|
*/
|
|
323
331
|
description?: pulumi.Input<string>;
|
|
324
332
|
/**
|
|
325
|
-
*
|
|
333
|
+
* Disable email notifications.
|
|
326
334
|
*/
|
|
327
335
|
emailsDisabled?: pulumi.Input<boolean>;
|
|
328
336
|
/**
|
|
@@ -334,7 +342,7 @@ export interface GroupArgs {
|
|
|
334
342
|
*/
|
|
335
343
|
ipRestrictionRanges?: pulumi.Input<pulumi.Input<string>[]>;
|
|
336
344
|
/**
|
|
337
|
-
*
|
|
345
|
+
* Enable/disable Large File Storage (LFS) for the projects in this group.
|
|
338
346
|
*/
|
|
339
347
|
lfsEnabled?: pulumi.Input<boolean>;
|
|
340
348
|
/**
|
|
@@ -342,11 +350,11 @@ export interface GroupArgs {
|
|
|
342
350
|
*/
|
|
343
351
|
membershipLock?: pulumi.Input<boolean>;
|
|
344
352
|
/**
|
|
345
|
-
*
|
|
353
|
+
* Disable the capability of a group from getting mentioned.
|
|
346
354
|
*/
|
|
347
355
|
mentionsDisabled?: pulumi.Input<boolean>;
|
|
348
356
|
/**
|
|
349
|
-
* The name of
|
|
357
|
+
* The name of the group.
|
|
350
358
|
*/
|
|
351
359
|
name?: pulumi.Input<string>;
|
|
352
360
|
/**
|
|
@@ -362,19 +370,19 @@ export interface GroupArgs {
|
|
|
362
370
|
*/
|
|
363
371
|
preventForkingOutsideGroup?: pulumi.Input<boolean>;
|
|
364
372
|
/**
|
|
365
|
-
*
|
|
373
|
+
* Determine if developers can create projects in the group. Valid values are: `noone`, `maintainer`, `developer`
|
|
366
374
|
*/
|
|
367
375
|
projectCreationLevel?: pulumi.Input<string>;
|
|
368
376
|
/**
|
|
369
|
-
*
|
|
377
|
+
* Allow users to request member access.
|
|
370
378
|
*/
|
|
371
379
|
requestAccessEnabled?: pulumi.Input<boolean>;
|
|
372
380
|
/**
|
|
373
|
-
*
|
|
381
|
+
* Require all users in this group to setup Two-factor authentication.
|
|
374
382
|
*/
|
|
375
383
|
requireTwoFactorAuthentication?: pulumi.Input<boolean>;
|
|
376
384
|
/**
|
|
377
|
-
*
|
|
385
|
+
* Prevent sharing a project with another group within this group.
|
|
378
386
|
*/
|
|
379
387
|
shareWithGroupLock?: pulumi.Input<boolean>;
|
|
380
388
|
/**
|
|
@@ -382,7 +390,11 @@ export interface GroupArgs {
|
|
|
382
390
|
*/
|
|
383
391
|
sharedRunnersMinutesLimit?: pulumi.Input<number>;
|
|
384
392
|
/**
|
|
385
|
-
*
|
|
393
|
+
* Enable or disable shared runners for a group’s subgroups and projects. Valid values are: `enabled`, `disabledAndOverridable`, `disabledAndUnoverridable`, `disabledWithOverride`.
|
|
394
|
+
*/
|
|
395
|
+
sharedRunnersSetting?: pulumi.Input<string>;
|
|
396
|
+
/**
|
|
397
|
+
* Allowed to create subgroups. Valid values are: `owner`, `maintainer`.
|
|
386
398
|
*/
|
|
387
399
|
subgroupCreationLevel?: pulumi.Input<string>;
|
|
388
400
|
/**
|
|
@@ -390,7 +402,7 @@ export interface GroupArgs {
|
|
|
390
402
|
*/
|
|
391
403
|
twoFactorGracePeriod?: pulumi.Input<number>;
|
|
392
404
|
/**
|
|
393
|
-
* The group's visibility. Can be `private`, `internal`, or `public`.
|
|
405
|
+
* The group's visibility. Can be `private`, `internal`, or `public`. Valid values are: `private`, `internal`, `public`.
|
|
394
406
|
*/
|
|
395
407
|
visibilityLevel?: pulumi.Input<string>;
|
|
396
408
|
/**
|
package/group.js
CHANGED
|
@@ -93,6 +93,7 @@ class Group extends pulumi.CustomResource {
|
|
|
93
93
|
resourceInputs["runnersToken"] = state ? state.runnersToken : undefined;
|
|
94
94
|
resourceInputs["shareWithGroupLock"] = state ? state.shareWithGroupLock : undefined;
|
|
95
95
|
resourceInputs["sharedRunnersMinutesLimit"] = state ? state.sharedRunnersMinutesLimit : undefined;
|
|
96
|
+
resourceInputs["sharedRunnersSetting"] = state ? state.sharedRunnersSetting : undefined;
|
|
96
97
|
resourceInputs["subgroupCreationLevel"] = state ? state.subgroupCreationLevel : undefined;
|
|
97
98
|
resourceInputs["twoFactorGracePeriod"] = state ? state.twoFactorGracePeriod : undefined;
|
|
98
99
|
resourceInputs["visibilityLevel"] = state ? state.visibilityLevel : undefined;
|
|
@@ -124,6 +125,7 @@ class Group extends pulumi.CustomResource {
|
|
|
124
125
|
resourceInputs["requireTwoFactorAuthentication"] = args ? args.requireTwoFactorAuthentication : undefined;
|
|
125
126
|
resourceInputs["shareWithGroupLock"] = args ? args.shareWithGroupLock : undefined;
|
|
126
127
|
resourceInputs["sharedRunnersMinutesLimit"] = args ? args.sharedRunnersMinutesLimit : undefined;
|
|
128
|
+
resourceInputs["sharedRunnersSetting"] = args ? args.sharedRunnersSetting : undefined;
|
|
127
129
|
resourceInputs["subgroupCreationLevel"] = args ? args.subgroupCreationLevel : undefined;
|
|
128
130
|
resourceInputs["twoFactorGracePeriod"] = args ? args.twoFactorGracePeriod : undefined;
|
|
129
131
|
resourceInputs["visibilityLevel"] = args ? args.visibilityLevel : undefined;
|
package/group.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.js","sourceRoot":"","sources":["../group.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5D,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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;
|
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../group.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5D,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,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|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* The `gitlab.GroupProtectedEnvironment` resource allows to manage the lifecycle of a protected environment in a group.
|
|
6
|
+
*
|
|
7
|
+
* > In order to use a userId in the `deployAccessLevels` configuration,
|
|
8
|
+
* you need to make sure that users have access to the group with Maintainer role or higher.
|
|
9
|
+
* In order to use a groupId in the `deployAccessLevels` configuration,
|
|
10
|
+
* the groupId must be a sub-group under the given group.
|
|
11
|
+
*
|
|
12
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_protected_environments.html)
|
|
13
|
+
*
|
|
14
|
+
* ## Import
|
|
15
|
+
*
|
|
16
|
+
* GitLab group protected environments can be imported using an id made up of `groupId:environmentName`, e.g.
|
|
17
|
+
*
|
|
18
|
+
* ```sh
|
|
19
|
+
* $ pulumi import gitlab:index/groupProtectedEnvironment:GroupProtectedEnvironment bar 123:production
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare class GroupProtectedEnvironment extends pulumi.CustomResource {
|
|
23
|
+
/**
|
|
24
|
+
* Get an existing GroupProtectedEnvironment resource's state with the given name, ID, and optional extra
|
|
25
|
+
* properties used to qualify the lookup.
|
|
26
|
+
*
|
|
27
|
+
* @param name The _unique_ name of the resulting resource.
|
|
28
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
29
|
+
* @param state Any extra arguments used during the lookup.
|
|
30
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
31
|
+
*/
|
|
32
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GroupProtectedEnvironmentState, opts?: pulumi.CustomResourceOptions): GroupProtectedEnvironment;
|
|
33
|
+
/**
|
|
34
|
+
* Returns true if the given object is an instance of GroupProtectedEnvironment. This is designed to work even
|
|
35
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
36
|
+
*/
|
|
37
|
+
static isInstance(obj: any): obj is GroupProtectedEnvironment;
|
|
38
|
+
/**
|
|
39
|
+
* Array of approval rules to deploy, with each described by a hash.
|
|
40
|
+
*/
|
|
41
|
+
readonly approvalRules: pulumi.Output<outputs.GroupProtectedEnvironmentApprovalRule[]>;
|
|
42
|
+
/**
|
|
43
|
+
* Array of access levels allowed to deploy, with each described by a hash.
|
|
44
|
+
*/
|
|
45
|
+
readonly deployAccessLevels: pulumi.Output<outputs.GroupProtectedEnvironmentDeployAccessLevel[]>;
|
|
46
|
+
/**
|
|
47
|
+
* The deployment tier of the environment. Valid values are `production`, `staging`, `testing`, `development`, `other`.
|
|
48
|
+
*/
|
|
49
|
+
readonly environment: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* The ID or full path of the group which the protected environment is created against.
|
|
52
|
+
*/
|
|
53
|
+
readonly group: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* The number of approvals required to deploy to this environment.
|
|
56
|
+
*/
|
|
57
|
+
readonly requiredApprovalCount: pulumi.Output<number>;
|
|
58
|
+
/**
|
|
59
|
+
* Create a GroupProtectedEnvironment resource with the given unique name, arguments, and options.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resource.
|
|
62
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
63
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
64
|
+
*/
|
|
65
|
+
constructor(name: string, args: GroupProtectedEnvironmentArgs, opts?: pulumi.CustomResourceOptions);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Input properties used for looking up and filtering GroupProtectedEnvironment resources.
|
|
69
|
+
*/
|
|
70
|
+
export interface GroupProtectedEnvironmentState {
|
|
71
|
+
/**
|
|
72
|
+
* Array of approval rules to deploy, with each described by a hash.
|
|
73
|
+
*/
|
|
74
|
+
approvalRules?: pulumi.Input<pulumi.Input<inputs.GroupProtectedEnvironmentApprovalRule>[]>;
|
|
75
|
+
/**
|
|
76
|
+
* Array of access levels allowed to deploy, with each described by a hash.
|
|
77
|
+
*/
|
|
78
|
+
deployAccessLevels?: pulumi.Input<pulumi.Input<inputs.GroupProtectedEnvironmentDeployAccessLevel>[]>;
|
|
79
|
+
/**
|
|
80
|
+
* The deployment tier of the environment. Valid values are `production`, `staging`, `testing`, `development`, `other`.
|
|
81
|
+
*/
|
|
82
|
+
environment?: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* The ID or full path of the group which the protected environment is created against.
|
|
85
|
+
*/
|
|
86
|
+
group?: pulumi.Input<string>;
|
|
87
|
+
/**
|
|
88
|
+
* The number of approvals required to deploy to this environment.
|
|
89
|
+
*/
|
|
90
|
+
requiredApprovalCount?: pulumi.Input<number>;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The set of arguments for constructing a GroupProtectedEnvironment resource.
|
|
94
|
+
*/
|
|
95
|
+
export interface GroupProtectedEnvironmentArgs {
|
|
96
|
+
/**
|
|
97
|
+
* Array of approval rules to deploy, with each described by a hash.
|
|
98
|
+
*/
|
|
99
|
+
approvalRules?: pulumi.Input<pulumi.Input<inputs.GroupProtectedEnvironmentApprovalRule>[]>;
|
|
100
|
+
/**
|
|
101
|
+
* Array of access levels allowed to deploy, with each described by a hash.
|
|
102
|
+
*/
|
|
103
|
+
deployAccessLevels: pulumi.Input<pulumi.Input<inputs.GroupProtectedEnvironmentDeployAccessLevel>[]>;
|
|
104
|
+
/**
|
|
105
|
+
* The deployment tier of the environment. Valid values are `production`, `staging`, `testing`, `development`, `other`.
|
|
106
|
+
*/
|
|
107
|
+
environment: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* The ID or full path of the group which the protected environment is created against.
|
|
110
|
+
*/
|
|
111
|
+
group: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* The number of approvals required to deploy to this environment.
|
|
114
|
+
*/
|
|
115
|
+
requiredApprovalCount?: pulumi.Input<number>;
|
|
116
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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.GroupProtectedEnvironment = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The `gitlab.GroupProtectedEnvironment` resource allows to manage the lifecycle of a protected environment in a group.
|
|
10
|
+
*
|
|
11
|
+
* > In order to use a userId in the `deployAccessLevels` configuration,
|
|
12
|
+
* you need to make sure that users have access to the group with Maintainer role or higher.
|
|
13
|
+
* In order to use a groupId in the `deployAccessLevels` configuration,
|
|
14
|
+
* the groupId must be a sub-group under the given group.
|
|
15
|
+
*
|
|
16
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_protected_environments.html)
|
|
17
|
+
*
|
|
18
|
+
* ## Import
|
|
19
|
+
*
|
|
20
|
+
* GitLab group protected environments can be imported using an id made up of `groupId:environmentName`, e.g.
|
|
21
|
+
*
|
|
22
|
+
* ```sh
|
|
23
|
+
* $ pulumi import gitlab:index/groupProtectedEnvironment:GroupProtectedEnvironment bar 123:production
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
class GroupProtectedEnvironment extends pulumi.CustomResource {
|
|
27
|
+
/**
|
|
28
|
+
* Get an existing GroupProtectedEnvironment resource's state with the given name, ID, and optional extra
|
|
29
|
+
* properties used to qualify the lookup.
|
|
30
|
+
*
|
|
31
|
+
* @param name The _unique_ name of the resulting resource.
|
|
32
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
33
|
+
* @param state Any extra arguments used during the lookup.
|
|
34
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
35
|
+
*/
|
|
36
|
+
static get(name, id, state, opts) {
|
|
37
|
+
return new GroupProtectedEnvironment(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns true if the given object is an instance of GroupProtectedEnvironment. This is designed to work even
|
|
41
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
42
|
+
*/
|
|
43
|
+
static isInstance(obj) {
|
|
44
|
+
if (obj === undefined || obj === null) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
return obj['__pulumiType'] === GroupProtectedEnvironment.__pulumiType;
|
|
48
|
+
}
|
|
49
|
+
constructor(name, argsOrState, opts) {
|
|
50
|
+
let resourceInputs = {};
|
|
51
|
+
opts = opts || {};
|
|
52
|
+
if (opts.id) {
|
|
53
|
+
const state = argsOrState;
|
|
54
|
+
resourceInputs["approvalRules"] = state ? state.approvalRules : undefined;
|
|
55
|
+
resourceInputs["deployAccessLevels"] = state ? state.deployAccessLevels : undefined;
|
|
56
|
+
resourceInputs["environment"] = state ? state.environment : undefined;
|
|
57
|
+
resourceInputs["group"] = state ? state.group : undefined;
|
|
58
|
+
resourceInputs["requiredApprovalCount"] = state ? state.requiredApprovalCount : undefined;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
const args = argsOrState;
|
|
62
|
+
if ((!args || args.deployAccessLevels === undefined) && !opts.urn) {
|
|
63
|
+
throw new Error("Missing required property 'deployAccessLevels'");
|
|
64
|
+
}
|
|
65
|
+
if ((!args || args.environment === undefined) && !opts.urn) {
|
|
66
|
+
throw new Error("Missing required property 'environment'");
|
|
67
|
+
}
|
|
68
|
+
if ((!args || args.group === undefined) && !opts.urn) {
|
|
69
|
+
throw new Error("Missing required property 'group'");
|
|
70
|
+
}
|
|
71
|
+
resourceInputs["approvalRules"] = args ? args.approvalRules : undefined;
|
|
72
|
+
resourceInputs["deployAccessLevels"] = args ? args.deployAccessLevels : undefined;
|
|
73
|
+
resourceInputs["environment"] = args ? args.environment : undefined;
|
|
74
|
+
resourceInputs["group"] = args ? args.group : undefined;
|
|
75
|
+
resourceInputs["requiredApprovalCount"] = args ? args.requiredApprovalCount : undefined;
|
|
76
|
+
}
|
|
77
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
78
|
+
super(GroupProtectedEnvironment.__pulumiType, name, resourceInputs, opts);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.GroupProtectedEnvironment = GroupProtectedEnvironment;
|
|
82
|
+
/** @internal */
|
|
83
|
+
GroupProtectedEnvironment.__pulumiType = 'gitlab:index/groupProtectedEnvironment:GroupProtectedEnvironment';
|
|
84
|
+
//# sourceMappingURL=groupProtectedEnvironment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groupProtectedEnvironment.js","sourceRoot":"","sources":["../groupProtectedEnvironment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;IAChE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsC,EAAE,IAAmC;QACpI,OAAO,IAAI,yBAAyB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChF,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,yBAAyB,CAAC,YAAY,CAAC;IAC1E,CAAC;IA+BD,YAAY,IAAY,EAAE,WAA4E,EAAE,IAAmC;QACvI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE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AC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3F;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,yBAAyB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;;AAtFL,8DAuFC;AAzEG,gBAAgB;AACO,sCAAY,GAAG,kEAAkE,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -184,6 +184,9 @@ export declare const GroupMembership: typeof import("./groupMembership").GroupMe
|
|
|
184
184
|
export { GroupProjectFileTemplateArgs, GroupProjectFileTemplateState } from "./groupProjectFileTemplate";
|
|
185
185
|
export type GroupProjectFileTemplate = import("./groupProjectFileTemplate").GroupProjectFileTemplate;
|
|
186
186
|
export declare const GroupProjectFileTemplate: typeof import("./groupProjectFileTemplate").GroupProjectFileTemplate;
|
|
187
|
+
export { GroupProtectedEnvironmentArgs, GroupProtectedEnvironmentState } from "./groupProtectedEnvironment";
|
|
188
|
+
export type GroupProtectedEnvironment = import("./groupProtectedEnvironment").GroupProtectedEnvironment;
|
|
189
|
+
export declare const GroupProtectedEnvironment: typeof import("./groupProtectedEnvironment").GroupProtectedEnvironment;
|
|
187
190
|
export { GroupSamlLinkArgs, GroupSamlLinkState } from "./groupSamlLink";
|
|
188
191
|
export type GroupSamlLink = import("./groupSamlLink").GroupSamlLink;
|
|
189
192
|
export declare const GroupSamlLink: typeof import("./groupSamlLink").GroupSamlLink;
|
package/index.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.getProjectHookOutput = exports.getProjectHook = exports.getProjectBranchesOutput = exports.getProjectBranches = exports.getProjectOutput = exports.getProject = exports.getMetadataOutput = exports.getMetadata = exports.getInstanceVariablesOutput = exports.getInstanceVariables = exports.getInstanceVariableOutput = exports.getInstanceVariable = exports.getInstanceDeployKeysOutput = exports.getInstanceDeployKeys = exports.getGroupsOutput = exports.getGroups = exports.getGroupVariablesOutput = exports.getGroupVariables = exports.getGroupVariableOutput = exports.getGroupVariable = exports.getGroupSubgroupsOutput = exports.getGroupSubgroups = exports.getGroupMembershipOutput = exports.getGroupMembership = exports.getGroupHooksOutput = exports.getGroupHooks = exports.getGroupHookOutput = exports.getGroupHook = exports.getGroupOutput = exports.getGroup = exports.getCurrentUserOutput = exports.getCurrentUser = exports.getClusterAgentsOutput = exports.getClusterAgents = exports.getClusterAgentOutput = exports.getClusterAgent = exports.getBranchOutput = exports.getBranch = exports.getApplicationOutput = exports.getApplication = exports.DeployToken = exports.DeployKeyEnable = exports.DeployKey = exports.ComplianceFramework = exports.ClusterAgentToken = exports.ClusterAgent = exports.BranchProtection = exports.Branch = exports.ApplicationSettings = exports.Application = void 0;
|
|
6
6
|
exports.GroupLdapLink = exports.GroupLabel = exports.GroupIssueBoard = exports.GroupHook = exports.GroupEpicBoard = exports.GroupCustomAttribute = exports.GroupCluster = exports.GroupBadge = exports.GroupAccessToken = exports.Group = exports.getUsersOutput = exports.getUsers = exports.getUserSshkeysOutput = exports.getUserSshkeys = exports.getUserOutput = exports.getUser = exports.getRepositoryTreeOutput = exports.getRepositoryTree = exports.getRepositoryFileOutput = exports.getRepositoryFile = exports.getReleaseLinksOutput = exports.getReleaseLinks = exports.getReleaseLinkOutput = exports.getReleaseLink = exports.getProjectsOutput = exports.getProjects = exports.getProjectVariablesOutput = exports.getProjectVariables = exports.getProjectVariableOutput = exports.getProjectVariable = exports.getProjectTagsOutput = exports.getProjectTags = exports.getProjectTagOutput = exports.getProjectTag = exports.getProjectProtectedBranchesOutput = exports.getProjectProtectedBranches = exports.getProjectProtectedBranchOutput = exports.getProjectProtectedBranch = exports.getProjectMilestonesOutput = exports.getProjectMilestones = exports.getProjectMilestoneOutput = exports.getProjectMilestone = exports.getProjectMembershipOutput = exports.getProjectMembership = exports.getProjectIssuesOutput = exports.getProjectIssues = exports.getProjectIssueOutput = exports.getProjectIssue = exports.getProjectHooksOutput = exports.getProjectHooks = void 0;
|
|
7
|
-
exports.
|
|
8
|
-
exports.types = exports.config = exports.UserSshKey = exports.UserRunner = exports.UserGpgKey = exports.UserCustomAttribute = exports.User = exports.Topic = exports.TagProtection = exports.SystemHook = exports.ServiceSlack = exports.ServicePipelinesEmail = exports.ServiceMicrosoftTeams = exports.ServiceJira = exports.ServiceGithub = exports.ServiceExternalWiki = exports.ServiceEmailsOnPush = void 0;
|
|
7
|
+
exports.Runner = exports.RepositoryFile = exports.ReleaseLink = exports.Provider = exports.ProjectVariable = exports.ProjectTag = exports.ProjectShareGroup = exports.ProjectRunnerEnablement = exports.ProjectProtectedEnvironment = exports.ProjectMirror = exports.ProjectMilestone = exports.ProjectMembership = exports.ProjectLevelMrApprovals = exports.ProjectLabel = exports.ProjectJobTokenScope = exports.ProjectIssueBoard = exports.ProjectIssue = exports.ProjectHook = exports.ProjectFreezePeriod = exports.ProjectEnvironment = exports.ProjectCustomAttribute = exports.ProjectComplianceFramework = exports.ProjectCluster = exports.ProjectBadge = exports.ProjectApprovalRule = exports.ProjectAccessToken = exports.Project = exports.PipelineTrigger = exports.PipelineScheduleVariable = exports.PipelineSchedule = exports.PersonalAccessToken = exports.PagesDomain = exports.Label = exports.IntegrationSlack = exports.IntegrationPipelinesEmail = exports.IntegrationMicrosoftTeams = exports.IntegrationMattermost = exports.IntegrationJira = exports.IntegrationGithub = exports.IntegrationExternalWiki = exports.IntegrationEmailsOnPush = exports.IntegrationCustomIssueTracker = exports.InstanceVariable = exports.InstanceCluster = exports.GroupVariable = exports.GroupShareGroup = exports.GroupSamlLink = exports.GroupProtectedEnvironment = exports.GroupProjectFileTemplate = exports.GroupMembership = void 0;
|
|
8
|
+
exports.types = exports.config = exports.UserSshKey = exports.UserRunner = exports.UserGpgKey = exports.UserCustomAttribute = exports.User = exports.Topic = exports.TagProtection = exports.SystemHook = exports.ServiceSlack = exports.ServicePipelinesEmail = exports.ServiceMicrosoftTeams = exports.ServiceJira = exports.ServiceGithub = exports.ServiceExternalWiki = exports.ServiceEmailsOnPush = exports.ServiceCustomIssueTracker = void 0;
|
|
9
9
|
const pulumi = require("@pulumi/pulumi");
|
|
10
10
|
const utilities = require("./utilities");
|
|
11
11
|
exports.Application = null;
|
|
@@ -172,6 +172,8 @@ exports.GroupMembership = null;
|
|
|
172
172
|
utilities.lazyLoad(exports, ["GroupMembership"], () => require("./groupMembership"));
|
|
173
173
|
exports.GroupProjectFileTemplate = null;
|
|
174
174
|
utilities.lazyLoad(exports, ["GroupProjectFileTemplate"], () => require("./groupProjectFileTemplate"));
|
|
175
|
+
exports.GroupProtectedEnvironment = null;
|
|
176
|
+
utilities.lazyLoad(exports, ["GroupProtectedEnvironment"], () => require("./groupProtectedEnvironment"));
|
|
175
177
|
exports.GroupSamlLink = null;
|
|
176
178
|
utilities.lazyLoad(exports, ["GroupSamlLink"], () => require("./groupSamlLink"));
|
|
177
179
|
exports.GroupShareGroup = null;
|
|
@@ -351,6 +353,8 @@ const _module = {
|
|
|
351
353
|
return new exports.GroupMembership(name, undefined, { urn });
|
|
352
354
|
case "gitlab:index/groupProjectFileTemplate:GroupProjectFileTemplate":
|
|
353
355
|
return new exports.GroupProjectFileTemplate(name, undefined, { urn });
|
|
356
|
+
case "gitlab:index/groupProtectedEnvironment:GroupProtectedEnvironment":
|
|
357
|
+
return new exports.GroupProtectedEnvironment(name, undefined, { urn });
|
|
354
358
|
case "gitlab:index/groupSamlLink:GroupSamlLink":
|
|
355
359
|
return new exports.GroupSamlLink(name, undefined, { urn });
|
|
356
360
|
case "gitlab:index/groupShareGroup:GroupShareGroup":
|
|
@@ -502,6 +506,7 @@ pulumi.runtime.registerResourceModule("gitlab", "index/groupLabel", _module);
|
|
|
502
506
|
pulumi.runtime.registerResourceModule("gitlab", "index/groupLdapLink", _module);
|
|
503
507
|
pulumi.runtime.registerResourceModule("gitlab", "index/groupMembership", _module);
|
|
504
508
|
pulumi.runtime.registerResourceModule("gitlab", "index/groupProjectFileTemplate", _module);
|
|
509
|
+
pulumi.runtime.registerResourceModule("gitlab", "index/groupProtectedEnvironment", _module);
|
|
505
510
|
pulumi.runtime.registerResourceModule("gitlab", "index/groupSamlLink", _module);
|
|
506
511
|
pulumi.runtime.registerResourceModule("gitlab", "index/groupShareGroup", _module);
|
|
507
512
|
pulumi.runtime.registerResourceModule("gitlab", "index/groupVariable", _module);
|