@pulumi/gitlab 4.3.0-alpha.1636737679 → 4.4.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 +25 -2
- package/branchProtection.js +25 -2
- package/branchProtection.js.map +1 -1
- package/config/vars.d.ts +1 -1
- package/deployToken.d.ts +1 -17
- package/deployToken.js +1 -17
- package/deployToken.js.map +1 -1
- package/getGroup.d.ts +4 -0
- package/getGroup.js.map +1 -1
- package/getUser.d.ts +3 -3
- package/getUser.js +1 -1
- package/group.d.ts +21 -0
- package/group.js +2 -0
- package/group.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/project.d.ts +24 -0
- package/project.js +4 -0
- package/project.js.map +1 -1
- package/projectApprovalRule.d.ts +5 -7
- package/projectApprovalRule.js +5 -7
- package/projectApprovalRule.js.map +1 -1
- package/projectLevelMrApprovals.d.ts +3 -4
- package/projectLevelMrApprovals.js +3 -4
- package/projectLevelMrApprovals.js.map +1 -1
- package/projectMembership.d.ts +1 -1
- package/projectMembership.js +1 -1
- package/provider.d.ts +2 -2
- package/types/output.d.ts +1 -0
- package/user.d.ts +4 -4
- package/user.js +1 -1
package/branchProtection.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
5
5
|
*
|
|
6
6
|
* 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
7
|
*
|
|
8
|
-
* > The `allowedToPush`, `allowedToMerge` and `codeOwnerApprovalRequired` arguments require a GitLab Premium account or above.
|
|
8
|
+
* > 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.
|
|
9
9
|
*
|
|
10
10
|
* ## Example Usage
|
|
11
11
|
*
|
|
@@ -37,10 +37,33 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
37
37
|
* pushAccessLevel: "developer",
|
|
38
38
|
* });
|
|
39
39
|
* ```
|
|
40
|
+
* ### Example using dynamic block
|
|
41
|
+
*
|
|
42
|
+
* ```typescript
|
|
43
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
44
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
45
|
+
*
|
|
46
|
+
* const main = new gitlab.BranchProtection("main", {
|
|
47
|
+
* project: "12345",
|
|
48
|
+
* branch: "main",
|
|
49
|
+
* pushAccessLevel: "maintainer",
|
|
50
|
+
* mergeAccessLevel: "maintainer",
|
|
51
|
+
* dynamic: [{
|
|
52
|
+
* forEach: [
|
|
53
|
+
* 50,
|
|
54
|
+
* 55,
|
|
55
|
+
* 60,
|
|
56
|
+
* ],
|
|
57
|
+
* content: [{
|
|
58
|
+
* userId: allowed_to_push.value,
|
|
59
|
+
* }],
|
|
60
|
+
* }],
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
40
63
|
*
|
|
41
64
|
* ## Import
|
|
42
65
|
*
|
|
43
|
-
*
|
|
66
|
+
* Gitlab protected branches can be imported with a key composed of `<project_id>:<branch>`, e.g.
|
|
44
67
|
*
|
|
45
68
|
* ```sh
|
|
46
69
|
* $ pulumi import gitlab:index/branchProtection:BranchProtection BranchProtect "12345:main"
|
package/branchProtection.js
CHANGED
|
@@ -10,7 +10,7 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* 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
12
|
*
|
|
13
|
-
* > The `allowedToPush`, `allowedToMerge` and `codeOwnerApprovalRequired` arguments require a GitLab Premium account or above.
|
|
13
|
+
* > 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.
|
|
14
14
|
*
|
|
15
15
|
* ## Example Usage
|
|
16
16
|
*
|
|
@@ -42,10 +42,33 @@ const utilities = require("./utilities");
|
|
|
42
42
|
* pushAccessLevel: "developer",
|
|
43
43
|
* });
|
|
44
44
|
* ```
|
|
45
|
+
* ### Example using dynamic block
|
|
46
|
+
*
|
|
47
|
+
* ```typescript
|
|
48
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
49
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
50
|
+
*
|
|
51
|
+
* const main = new gitlab.BranchProtection("main", {
|
|
52
|
+
* project: "12345",
|
|
53
|
+
* branch: "main",
|
|
54
|
+
* pushAccessLevel: "maintainer",
|
|
55
|
+
* mergeAccessLevel: "maintainer",
|
|
56
|
+
* dynamic: [{
|
|
57
|
+
* forEach: [
|
|
58
|
+
* 50,
|
|
59
|
+
* 55,
|
|
60
|
+
* 60,
|
|
61
|
+
* ],
|
|
62
|
+
* content: [{
|
|
63
|
+
* userId: allowed_to_push.value,
|
|
64
|
+
* }],
|
|
65
|
+
* }],
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
45
68
|
*
|
|
46
69
|
* ## Import
|
|
47
70
|
*
|
|
48
|
-
*
|
|
71
|
+
* Gitlab protected branches can be imported with a key composed of `<project_id>:<branch>`, e.g.
|
|
49
72
|
*
|
|
50
73
|
* ```sh
|
|
51
74
|
* $ pulumi import gitlab:index/branchProtection:BranchProtection BranchProtect "12345:main"
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,MAAM,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,MAAM,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;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,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IAtGD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,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,4CAwGC;AA1FG,gBAAgB;AACO,6BAAY,GAAG,gDAAgD,CAAC"}
|
package/config/vars.d.ts
CHANGED
|
@@ -19,6 +19,6 @@ export declare const clientKey: string | undefined;
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const insecure: boolean | undefined;
|
|
21
21
|
/**
|
|
22
|
-
* The
|
|
22
|
+
* The OAuth2 token or project/personal access token used to connect to GitLab.
|
|
23
23
|
*/
|
|
24
24
|
export declare const token: string | undefined;
|
package/deployToken.d.ts
CHANGED
|
@@ -2,25 +2,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* ## # gitlab\_deploy\_token
|
|
4
4
|
*
|
|
5
|
-
* This resource allows you to create and manage deploy token for your GitLab projects and groups.
|
|
5
|
+
* This resource allows you to create and manage deploy token for your GitLab projects and groups. Please refer to [Gitlab documentation](https://docs.gitlab.com/ee/user/project/deploy_tokens/) for further information.
|
|
6
6
|
*
|
|
7
7
|
* ## Example Usage
|
|
8
|
-
* ### Project
|
|
9
|
-
*
|
|
10
|
-
* ```typescript
|
|
11
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
-
* import * as gitlab from "@pulumi/gitlab";
|
|
13
|
-
*
|
|
14
|
-
* const example = new gitlab.DeployToken("example", {
|
|
15
|
-
* expiresAt: "2020-03-14T00:00:00.000Z",
|
|
16
|
-
* project: "example/deploying",
|
|
17
|
-
* scopes: [
|
|
18
|
-
* "read_repository",
|
|
19
|
-
* "read_registry",
|
|
20
|
-
* ],
|
|
21
|
-
* username: "example-username",
|
|
22
|
-
* });
|
|
23
|
-
* ```
|
|
24
8
|
* ### Group
|
|
25
9
|
*
|
|
26
10
|
* ```typescript
|
package/deployToken.js
CHANGED
|
@@ -8,25 +8,9 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* ## # gitlab\_deploy\_token
|
|
10
10
|
*
|
|
11
|
-
* This resource allows you to create and manage deploy token for your GitLab projects and groups.
|
|
11
|
+
* This resource allows you to create and manage deploy token for your GitLab projects and groups. Please refer to [Gitlab documentation](https://docs.gitlab.com/ee/user/project/deploy_tokens/) for further information.
|
|
12
12
|
*
|
|
13
13
|
* ## Example Usage
|
|
14
|
-
* ### Project
|
|
15
|
-
*
|
|
16
|
-
* ```typescript
|
|
17
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
-
* import * as gitlab from "@pulumi/gitlab";
|
|
19
|
-
*
|
|
20
|
-
* const example = new gitlab.DeployToken("example", {
|
|
21
|
-
* expiresAt: "2020-03-14T00:00:00.000Z",
|
|
22
|
-
* project: "example/deploying",
|
|
23
|
-
* scopes: [
|
|
24
|
-
* "read_repository",
|
|
25
|
-
* "read_registry",
|
|
26
|
-
* ],
|
|
27
|
-
* username: "example-username",
|
|
28
|
-
* });
|
|
29
|
-
* ```
|
|
30
14
|
* ### Group
|
|
31
15
|
*
|
|
32
16
|
* ```typescript
|
package/deployToken.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployToken.js","sourceRoot":"","sources":["../deployToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"deployToken.js","sourceRoot":"","sources":["../deployToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAmElD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAClD,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAChD,MAAM,CAA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CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,MAAM,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACvC;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,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;IA/FD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AA1BL,kCAiGC;AAnFG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
|
package/getGroup.d.ts
CHANGED
|
@@ -44,6 +44,10 @@ export interface GetGroupArgs {
|
|
|
44
44
|
* A collection of values returned by getGroup.
|
|
45
45
|
*/
|
|
46
46
|
export interface GetGroupResult {
|
|
47
|
+
/**
|
|
48
|
+
* Whether developers and maintainers can push to the applicable default branch.
|
|
49
|
+
*/
|
|
50
|
+
readonly defaultBranchProtection: number;
|
|
47
51
|
/**
|
|
48
52
|
* The description of the group.
|
|
49
53
|
*/
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,SAAgB,QAAQ,CAAC,IAAmB,EAAE,IAA2B;IACrE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,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;AAbD,4BAaC;
|
|
1
|
+
{"version":3,"file":"getGroup.js","sourceRoot":"","sources":["../getGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,SAAgB,QAAQ,CAAC,IAAmB,EAAE,IAA2B;IACrE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,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;AAbD,4BAaC;AA2ED,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC5D,CAAC;AAFD,wCAEC"}
|
package/getUser.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* ## # gitlab\_user
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* Provide details about a specific user in the gitlab provider. Especially the ability to lookup the id for linking to other resources.
|
|
6
6
|
*
|
|
7
7
|
* ## Example Usage
|
|
8
8
|
*
|
|
@@ -90,7 +90,7 @@ export interface GetUserResult {
|
|
|
90
90
|
*/
|
|
91
91
|
readonly lastSignInAt: string;
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* LinkedIn profile of the user.
|
|
94
94
|
*/
|
|
95
95
|
readonly linkedin: string;
|
|
96
96
|
/**
|
|
@@ -127,7 +127,7 @@ export interface GetUserResult {
|
|
|
127
127
|
*/
|
|
128
128
|
readonly twitter: string;
|
|
129
129
|
/**
|
|
130
|
-
* Whether user's two
|
|
130
|
+
* Whether user's two-factor auth is enabled.
|
|
131
131
|
*/
|
|
132
132
|
readonly twoFactorEnabled: boolean;
|
|
133
133
|
readonly userId: number;
|
package/getUser.js
CHANGED
|
@@ -8,7 +8,7 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* ## # gitlab\_user
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* Provide details about a specific user in the gitlab provider. Especially the ability to lookup the id for linking to other resources.
|
|
12
12
|
*
|
|
13
13
|
* ## Example Usage
|
|
14
14
|
*
|
package/group.d.ts
CHANGED
|
@@ -57,6 +57,13 @@ export declare class Group extends pulumi.CustomResource {
|
|
|
57
57
|
* DevOps pipeline for all projects within this group.
|
|
58
58
|
*/
|
|
59
59
|
readonly autoDevopsEnabled: pulumi.Output<boolean | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* (Optional) Int, defaults to 2.
|
|
62
|
+
* Whether developers and maintainers can push to the applicable default branch.
|
|
63
|
+
* 0 no protection, 1 partial protection, 2 full protection
|
|
64
|
+
* https://docs.gitlab.com/ee/api/groups.html#options-for-default_branch_protection
|
|
65
|
+
*/
|
|
66
|
+
readonly defaultBranchProtection: pulumi.Output<number | undefined>;
|
|
60
67
|
/**
|
|
61
68
|
* The description of the group.
|
|
62
69
|
*/
|
|
@@ -158,6 +165,13 @@ export interface GroupState {
|
|
|
158
165
|
* DevOps pipeline for all projects within this group.
|
|
159
166
|
*/
|
|
160
167
|
autoDevopsEnabled?: pulumi.Input<boolean>;
|
|
168
|
+
/**
|
|
169
|
+
* (Optional) Int, defaults to 2.
|
|
170
|
+
* Whether developers and maintainers can push to the applicable default branch.
|
|
171
|
+
* 0 no protection, 1 partial protection, 2 full protection
|
|
172
|
+
* https://docs.gitlab.com/ee/api/groups.html#options-for-default_branch_protection
|
|
173
|
+
*/
|
|
174
|
+
defaultBranchProtection?: pulumi.Input<number>;
|
|
161
175
|
/**
|
|
162
176
|
* The description of the group.
|
|
163
177
|
*/
|
|
@@ -251,6 +265,13 @@ export interface GroupArgs {
|
|
|
251
265
|
* DevOps pipeline for all projects within this group.
|
|
252
266
|
*/
|
|
253
267
|
autoDevopsEnabled?: pulumi.Input<boolean>;
|
|
268
|
+
/**
|
|
269
|
+
* (Optional) Int, defaults to 2.
|
|
270
|
+
* Whether developers and maintainers can push to the applicable default branch.
|
|
271
|
+
* 0 no protection, 1 partial protection, 2 full protection
|
|
272
|
+
* https://docs.gitlab.com/ee/api/groups.html#options-for-default_branch_protection
|
|
273
|
+
*/
|
|
274
|
+
defaultBranchProtection?: pulumi.Input<number>;
|
|
254
275
|
/**
|
|
255
276
|
* The description of the group.
|
|
256
277
|
*/
|
package/group.js
CHANGED
|
@@ -49,6 +49,7 @@ class Group extends pulumi.CustomResource {
|
|
|
49
49
|
if (opts.id) {
|
|
50
50
|
const state = argsOrState;
|
|
51
51
|
inputs["autoDevopsEnabled"] = state ? state.autoDevopsEnabled : undefined;
|
|
52
|
+
inputs["defaultBranchProtection"] = state ? state.defaultBranchProtection : undefined;
|
|
52
53
|
inputs["description"] = state ? state.description : undefined;
|
|
53
54
|
inputs["emailsDisabled"] = state ? state.emailsDisabled : undefined;
|
|
54
55
|
inputs["fullName"] = state ? state.fullName : undefined;
|
|
@@ -74,6 +75,7 @@ class Group extends pulumi.CustomResource {
|
|
|
74
75
|
throw new Error("Missing required property 'path'");
|
|
75
76
|
}
|
|
76
77
|
inputs["autoDevopsEnabled"] = args ? args.autoDevopsEnabled : undefined;
|
|
78
|
+
inputs["defaultBranchProtection"] = args ? args.defaultBranchProtection : undefined;
|
|
77
79
|
inputs["description"] = args ? args.description : undefined;
|
|
78
80
|
inputs["emailsDisabled"] = args ? args.emailsDisabled : undefined;
|
|
79
81
|
inputs["lfsEnabled"] = args ? args.lfsEnabled : 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../group.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAoI5C,YAAY,IAAY,EAAE,WAAoC,EAAE,IAAmC;QAC/F,IAAI,MAAM,GAA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A2B,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;;AA1BL,sBA4LC;AA9KG,gBAAgB;AACO,kBAAY,GAAG,0BAA0B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/gitlab",
|
|
3
|
-
"version": "v4.
|
|
3
|
+
"version": "v4.4.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing GitLab resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource gitlab v4.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource gitlab v4.4.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0",
|
package/package.json.dev
CHANGED
package/project.d.ts
CHANGED
|
@@ -56,6 +56,10 @@ export declare class Project extends pulumi.CustomResource {
|
|
|
56
56
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
57
57
|
*/
|
|
58
58
|
static isInstance(obj: any): obj is Project;
|
|
59
|
+
/**
|
|
60
|
+
* Set to true if you want to treat skipped pipelines as if they finished with success.
|
|
61
|
+
*/
|
|
62
|
+
readonly allowMergeOnSkippedPipeline: pulumi.Output<boolean | undefined>;
|
|
59
63
|
/**
|
|
60
64
|
* Number of merge request approvals required for merging. Default is 0.
|
|
61
65
|
*/
|
|
@@ -199,6 +203,10 @@ export declare class Project extends pulumi.CustomResource {
|
|
|
199
203
|
* Enable snippets for the project.
|
|
200
204
|
*/
|
|
201
205
|
readonly snippetsEnabled: pulumi.Output<boolean | undefined>;
|
|
206
|
+
/**
|
|
207
|
+
* Squash commits when merge request. Valid values are `never`, `always`, `defaultOn`, or `defaultOff`. The default value is `defaultOff`.
|
|
208
|
+
*/
|
|
209
|
+
readonly squashOption: pulumi.Output<string | undefined>;
|
|
202
210
|
/**
|
|
203
211
|
* URL that can be provided to `git clone` to clone the
|
|
204
212
|
* repository via SSH.
|
|
@@ -247,6 +255,10 @@ export declare class Project extends pulumi.CustomResource {
|
|
|
247
255
|
* Input properties used for looking up and filtering Project resources.
|
|
248
256
|
*/
|
|
249
257
|
export interface ProjectState {
|
|
258
|
+
/**
|
|
259
|
+
* Set to true if you want to treat skipped pipelines as if they finished with success.
|
|
260
|
+
*/
|
|
261
|
+
allowMergeOnSkippedPipeline?: pulumi.Input<boolean>;
|
|
250
262
|
/**
|
|
251
263
|
* Number of merge request approvals required for merging. Default is 0.
|
|
252
264
|
*/
|
|
@@ -390,6 +402,10 @@ export interface ProjectState {
|
|
|
390
402
|
* Enable snippets for the project.
|
|
391
403
|
*/
|
|
392
404
|
snippetsEnabled?: pulumi.Input<boolean>;
|
|
405
|
+
/**
|
|
406
|
+
* Squash commits when merge request. Valid values are `never`, `always`, `defaultOn`, or `defaultOff`. The default value is `defaultOff`.
|
|
407
|
+
*/
|
|
408
|
+
squashOption?: pulumi.Input<string>;
|
|
393
409
|
/**
|
|
394
410
|
* URL that can be provided to `git clone` to clone the
|
|
395
411
|
* repository via SSH.
|
|
@@ -430,6 +446,10 @@ export interface ProjectState {
|
|
|
430
446
|
* The set of arguments for constructing a Project resource.
|
|
431
447
|
*/
|
|
432
448
|
export interface ProjectArgs {
|
|
449
|
+
/**
|
|
450
|
+
* Set to true if you want to treat skipped pipelines as if they finished with success.
|
|
451
|
+
*/
|
|
452
|
+
allowMergeOnSkippedPipeline?: pulumi.Input<boolean>;
|
|
433
453
|
/**
|
|
434
454
|
* Number of merge request approvals required for merging. Default is 0.
|
|
435
455
|
*/
|
|
@@ -560,6 +580,10 @@ export interface ProjectArgs {
|
|
|
560
580
|
* Enable snippets for the project.
|
|
561
581
|
*/
|
|
562
582
|
snippetsEnabled?: pulumi.Input<boolean>;
|
|
583
|
+
/**
|
|
584
|
+
* Squash commits when merge request. Valid values are `never`, `always`, `defaultOn`, or `defaultOff`. The default value is `defaultOff`.
|
|
585
|
+
*/
|
|
586
|
+
squashOption?: pulumi.Input<string>;
|
|
563
587
|
/**
|
|
564
588
|
* Tags (topics) of the project.
|
|
565
589
|
*/
|
package/project.js
CHANGED
|
@@ -51,6 +51,7 @@ class Project extends pulumi.CustomResource {
|
|
|
51
51
|
opts = opts || {};
|
|
52
52
|
if (opts.id) {
|
|
53
53
|
const state = argsOrState;
|
|
54
|
+
inputs["allowMergeOnSkippedPipeline"] = state ? state.allowMergeOnSkippedPipeline : undefined;
|
|
54
55
|
inputs["approvalsBeforeMerge"] = state ? state.approvalsBeforeMerge : undefined;
|
|
55
56
|
inputs["archived"] = state ? state.archived : undefined;
|
|
56
57
|
inputs["buildCoverageRegex"] = state ? state.buildCoverageRegex : undefined;
|
|
@@ -85,6 +86,7 @@ class Project extends pulumi.CustomResource {
|
|
|
85
86
|
inputs["runnersToken"] = state ? state.runnersToken : undefined;
|
|
86
87
|
inputs["sharedRunnersEnabled"] = state ? state.sharedRunnersEnabled : undefined;
|
|
87
88
|
inputs["snippetsEnabled"] = state ? state.snippetsEnabled : undefined;
|
|
89
|
+
inputs["squashOption"] = state ? state.squashOption : undefined;
|
|
88
90
|
inputs["sshUrlToRepo"] = state ? state.sshUrlToRepo : undefined;
|
|
89
91
|
inputs["tags"] = state ? state.tags : undefined;
|
|
90
92
|
inputs["templateName"] = state ? state.templateName : undefined;
|
|
@@ -96,6 +98,7 @@ class Project extends pulumi.CustomResource {
|
|
|
96
98
|
}
|
|
97
99
|
else {
|
|
98
100
|
const args = argsOrState;
|
|
101
|
+
inputs["allowMergeOnSkippedPipeline"] = args ? args.allowMergeOnSkippedPipeline : undefined;
|
|
99
102
|
inputs["approvalsBeforeMerge"] = args ? args.approvalsBeforeMerge : undefined;
|
|
100
103
|
inputs["archived"] = args ? args.archived : undefined;
|
|
101
104
|
inputs["buildCoverageRegex"] = args ? args.buildCoverageRegex : undefined;
|
|
@@ -127,6 +130,7 @@ class Project extends pulumi.CustomResource {
|
|
|
127
130
|
inputs["requestAccessEnabled"] = args ? args.requestAccessEnabled : undefined;
|
|
128
131
|
inputs["sharedRunnersEnabled"] = args ? args.sharedRunnersEnabled : undefined;
|
|
129
132
|
inputs["snippetsEnabled"] = args ? args.snippetsEnabled : undefined;
|
|
133
|
+
inputs["squashOption"] = args ? args.squashOption : undefined;
|
|
130
134
|
inputs["tags"] = args ? args.tags : undefined;
|
|
131
135
|
inputs["templateName"] = args ? args.templateName : undefined;
|
|
132
136
|
inputs["templateProjectId"] = args ? args.templateProjectId : undefined;
|
package/project.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.js","sourceRoot":"","sources":["../project.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"project.js","sourceRoot":"","sources":["../project.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IA+N9C,YAAY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C,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;IAlUD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,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,0BAoUC;AAtTG,gBAAgB;AACO,oBAAY,GAAG,8BAA8B,CAAC"}
|
package/projectApprovalRule.d.ts
CHANGED
|
@@ -2,9 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* ## # gitlab\_project\_approval\_rule
|
|
4
4
|
*
|
|
5
|
-
* This resource allows you to create and manage multiple approval rules for your GitLab
|
|
6
|
-
* projects. For further information on approval rules, consult the [gitlab
|
|
7
|
-
* documentation](https://docs.gitlab.com/ee/api/merge_request_approvals.html#project-level-mr-approvals).
|
|
5
|
+
* This resource allows you to create and manage multiple approval rules for your GitLab projects. For further information on approval rules, consult the [gitlab documentation](https://docs.gitlab.com/ee/api/merge_request_approvals.html#project-level-mr-approvals).
|
|
8
6
|
*
|
|
9
7
|
* > This feature requires GitLab Premium.
|
|
10
8
|
*
|
|
@@ -30,13 +28,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
30
28
|
* import * as pulumi from "@pulumi/pulumi";
|
|
31
29
|
* import * as gitlab from "@pulumi/gitlab";
|
|
32
30
|
*
|
|
33
|
-
* const
|
|
31
|
+
* const example = new gitlab.BranchProtection("example", {
|
|
34
32
|
* project: 5,
|
|
35
33
|
* branch: "release/*",
|
|
36
34
|
* pushAccessLevel: "maintainer",
|
|
37
35
|
* mergeAccessLevel: "developer",
|
|
38
36
|
* });
|
|
39
|
-
* const
|
|
37
|
+
* const example_two = new gitlab.ProjectApprovalRule("example-two", {
|
|
40
38
|
* project: 5,
|
|
41
39
|
* approvalsRequired: 3,
|
|
42
40
|
* userIds: [
|
|
@@ -44,13 +42,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
44
42
|
* 500,
|
|
45
43
|
* ],
|
|
46
44
|
* groupIds: [51],
|
|
47
|
-
* protectedBranchIds: [
|
|
45
|
+
* protectedBranchIds: [example.branchProtectionId],
|
|
48
46
|
* });
|
|
49
47
|
* ```
|
|
50
48
|
*
|
|
51
49
|
* ## Import
|
|
52
50
|
*
|
|
53
|
-
* GitLab project approval rules can be imported using
|
|
51
|
+
* GitLab project approval rules can be imported using a key composed of `<project-id>:<rule-id>`, e.g.
|
|
54
52
|
*
|
|
55
53
|
* ```sh
|
|
56
54
|
* $ pulumi import gitlab:index/projectApprovalRule:ProjectApprovalRule example "12345:6"
|
package/projectApprovalRule.js
CHANGED
|
@@ -8,9 +8,7 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* ## # gitlab\_project\_approval\_rule
|
|
10
10
|
*
|
|
11
|
-
* This resource allows you to create and manage multiple approval rules for your GitLab
|
|
12
|
-
* projects. For further information on approval rules, consult the [gitlab
|
|
13
|
-
* documentation](https://docs.gitlab.com/ee/api/merge_request_approvals.html#project-level-mr-approvals).
|
|
11
|
+
* This resource allows you to create and manage multiple approval rules for your GitLab projects. For further information on approval rules, consult the [gitlab documentation](https://docs.gitlab.com/ee/api/merge_request_approvals.html#project-level-mr-approvals).
|
|
14
12
|
*
|
|
15
13
|
* > This feature requires GitLab Premium.
|
|
16
14
|
*
|
|
@@ -36,13 +34,13 @@ const utilities = require("./utilities");
|
|
|
36
34
|
* import * as pulumi from "@pulumi/pulumi";
|
|
37
35
|
* import * as gitlab from "@pulumi/gitlab";
|
|
38
36
|
*
|
|
39
|
-
* const
|
|
37
|
+
* const example = new gitlab.BranchProtection("example", {
|
|
40
38
|
* project: 5,
|
|
41
39
|
* branch: "release/*",
|
|
42
40
|
* pushAccessLevel: "maintainer",
|
|
43
41
|
* mergeAccessLevel: "developer",
|
|
44
42
|
* });
|
|
45
|
-
* const
|
|
43
|
+
* const example_two = new gitlab.ProjectApprovalRule("example-two", {
|
|
46
44
|
* project: 5,
|
|
47
45
|
* approvalsRequired: 3,
|
|
48
46
|
* userIds: [
|
|
@@ -50,13 +48,13 @@ const utilities = require("./utilities");
|
|
|
50
48
|
* 500,
|
|
51
49
|
* ],
|
|
52
50
|
* groupIds: [51],
|
|
53
|
-
* protectedBranchIds: [
|
|
51
|
+
* protectedBranchIds: [example.branchProtectionId],
|
|
54
52
|
* });
|
|
55
53
|
* ```
|
|
56
54
|
*
|
|
57
55
|
* ## Import
|
|
58
56
|
*
|
|
59
|
-
* GitLab project approval rules can be imported using
|
|
57
|
+
* GitLab project approval rules can be imported using a key composed of `<project-id>:<rule-id>`, e.g.
|
|
60
58
|
*
|
|
61
59
|
* ```sh
|
|
62
60
|
* $ pulumi import gitlab:index/projectApprovalRule:ProjectApprovalRule example "12345:6"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectApprovalRule.js","sourceRoot":"","sources":["../projectApprovalRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"projectApprovalRule.js","sourceRoot":"","sources":["../projectApprovalRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAA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E,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"}
|
|
@@ -3,8 +3,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
3
3
|
* ## # gitlab\_project\_level\_mr\_approvals
|
|
4
4
|
*
|
|
5
5
|
* This resource allows you to configure project-level MR approvals. for your GitLab projects.
|
|
6
|
-
* For further information on merge request approvals, consult the [GitLab API
|
|
7
|
-
* documentation](https://docs.gitlab.com/ee/api/merge_request_approvals.html#project-level-mr-approvals).
|
|
6
|
+
* For further information on merge request approvals, consult the [GitLab API documentation](https://docs.gitlab.com/ee/api/merge_request_approvals.html#project-level-mr-approvals).
|
|
8
7
|
*
|
|
9
8
|
* ## Example Usage
|
|
10
9
|
*
|
|
@@ -25,13 +24,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
25
24
|
* ## Import
|
|
26
25
|
*
|
|
27
26
|
* ```sh
|
|
28
|
-
* $ pulumi import gitlab:index/projectLevelMrApprovals:ProjectLevelMrApprovals You can import an approval configuration state using `<resource> <project_id>`.
|
|
27
|
+
* $ pulumi import gitlab:index/projectLevelMrApprovals:ProjectLevelMrApprovals You can import an approval configuration state using `<resource> <project_id>:<approval_rule_id>`.
|
|
29
28
|
* ```
|
|
30
29
|
*
|
|
31
30
|
* For example
|
|
32
31
|
*
|
|
33
32
|
* ```sh
|
|
34
|
-
* $ pulumi import gitlab:index/projectLevelMrApprovals:ProjectLevelMrApprovals foo 53
|
|
33
|
+
* $ pulumi import gitlab:index/projectLevelMrApprovals:ProjectLevelMrApprovals foo 1234:53
|
|
35
34
|
* ```
|
|
36
35
|
*/
|
|
37
36
|
export declare class ProjectLevelMrApprovals extends pulumi.CustomResource {
|
|
@@ -9,8 +9,7 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* ## # gitlab\_project\_level\_mr\_approvals
|
|
10
10
|
*
|
|
11
11
|
* This resource allows you to configure project-level MR approvals. for your GitLab projects.
|
|
12
|
-
* For further information on merge request approvals, consult the [GitLab API
|
|
13
|
-
* documentation](https://docs.gitlab.com/ee/api/merge_request_approvals.html#project-level-mr-approvals).
|
|
12
|
+
* For further information on merge request approvals, consult the [GitLab API documentation](https://docs.gitlab.com/ee/api/merge_request_approvals.html#project-level-mr-approvals).
|
|
14
13
|
*
|
|
15
14
|
* ## Example Usage
|
|
16
15
|
*
|
|
@@ -31,13 +30,13 @@ const utilities = require("./utilities");
|
|
|
31
30
|
* ## Import
|
|
32
31
|
*
|
|
33
32
|
* ```sh
|
|
34
|
-
* $ pulumi import gitlab:index/projectLevelMrApprovals:ProjectLevelMrApprovals You can import an approval configuration state using `<resource> <project_id>`.
|
|
33
|
+
* $ pulumi import gitlab:index/projectLevelMrApprovals:ProjectLevelMrApprovals You can import an approval configuration state using `<resource> <project_id>:<approval_rule_id>`.
|
|
35
34
|
* ```
|
|
36
35
|
*
|
|
37
36
|
* For example
|
|
38
37
|
*
|
|
39
38
|
* ```sh
|
|
40
|
-
* $ pulumi import gitlab:index/projectLevelMrApprovals:ProjectLevelMrApprovals foo 53
|
|
39
|
+
* $ pulumi import gitlab:index/projectLevelMrApprovals:ProjectLevelMrApprovals foo 1234:53
|
|
41
40
|
* ```
|
|
42
41
|
*/
|
|
43
42
|
class ProjectLevelMrApprovals extends pulumi.CustomResource {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectLevelMrApprovals.js","sourceRoot":"","sources":["../projectLevelMrApprovals.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACz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BAAuB,CAAC,YAAY,CAAC;IACxE,CAAC;;AA1BL,0DAqFC;AAvEG,gBAAgB;AACO,oCAAY,GAAG,8DAA8D,CAAC"}
|
package/projectMembership.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
24
24
|
*
|
|
25
25
|
* ## Import
|
|
26
26
|
*
|
|
27
|
-
* GitLab
|
|
27
|
+
* GitLab project membership can be imported using an id made up of `project_id:user_id`, e.g.
|
|
28
28
|
*
|
|
29
29
|
* ```sh
|
|
30
30
|
* $ pulumi import gitlab:index/projectMembership:ProjectMembership test "12345:1337"
|
package/projectMembership.js
CHANGED
|
@@ -30,7 +30,7 @@ const utilities = require("./utilities");
|
|
|
30
30
|
*
|
|
31
31
|
* ## Import
|
|
32
32
|
*
|
|
33
|
-
* GitLab
|
|
33
|
+
* GitLab project membership can be imported using an id made up of `project_id:user_id`, e.g.
|
|
34
34
|
*
|
|
35
35
|
* ```sh
|
|
36
36
|
* $ pulumi import gitlab:index/projectMembership:ProjectMembership test "12345:1337"
|
package/provider.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
28
28
|
*/
|
|
29
29
|
readonly clientKey: pulumi.Output<string | undefined>;
|
|
30
30
|
/**
|
|
31
|
-
* The
|
|
31
|
+
* The OAuth2 token or project/personal access token used to connect to GitLab.
|
|
32
32
|
*/
|
|
33
33
|
readonly token: pulumi.Output<string>;
|
|
34
34
|
/**
|
|
@@ -65,7 +65,7 @@ export interface ProviderArgs {
|
|
|
65
65
|
*/
|
|
66
66
|
insecure?: pulumi.Input<boolean>;
|
|
67
67
|
/**
|
|
68
|
-
* The
|
|
68
|
+
* The OAuth2 token or project/personal access token used to connect to GitLab.
|
|
69
69
|
*/
|
|
70
70
|
token: pulumi.Input<string>;
|
|
71
71
|
}
|
package/types/output.d.ts
CHANGED
package/user.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
5
5
|
* This resource allows you to create and manage GitLab users.
|
|
6
6
|
* Note your provider will need to be configured with admin-level access for this resource to work.
|
|
7
7
|
*
|
|
8
|
-
* >
|
|
8
|
+
* > You must specify either `password` or `resetPassword`.
|
|
9
9
|
*
|
|
10
10
|
* ## Example Usage
|
|
11
11
|
*
|
|
@@ -62,7 +62,7 @@ export declare class User extends pulumi.CustomResource {
|
|
|
62
62
|
*/
|
|
63
63
|
readonly email: pulumi.Output<string>;
|
|
64
64
|
/**
|
|
65
|
-
* Boolean, defaults to false. Whether to enable administrative
|
|
65
|
+
* Boolean, defaults to false. Whether to enable administrative privileges
|
|
66
66
|
* for the user.
|
|
67
67
|
*/
|
|
68
68
|
readonly isAdmin: pulumi.Output<boolean | undefined>;
|
|
@@ -120,7 +120,7 @@ export interface UserState {
|
|
|
120
120
|
*/
|
|
121
121
|
email?: pulumi.Input<string>;
|
|
122
122
|
/**
|
|
123
|
-
* Boolean, defaults to false. Whether to enable administrative
|
|
123
|
+
* Boolean, defaults to false. Whether to enable administrative privileges
|
|
124
124
|
* for the user.
|
|
125
125
|
*/
|
|
126
126
|
isAdmin?: pulumi.Input<boolean>;
|
|
@@ -170,7 +170,7 @@ export interface UserArgs {
|
|
|
170
170
|
*/
|
|
171
171
|
email: pulumi.Input<string>;
|
|
172
172
|
/**
|
|
173
|
-
* Boolean, defaults to false. Whether to enable administrative
|
|
173
|
+
* Boolean, defaults to false. Whether to enable administrative privileges
|
|
174
174
|
* for the user.
|
|
175
175
|
*/
|
|
176
176
|
isAdmin?: pulumi.Input<boolean>;
|
package/user.js
CHANGED
|
@@ -11,7 +11,7 @@ const utilities = require("./utilities");
|
|
|
11
11
|
* This resource allows you to create and manage GitLab users.
|
|
12
12
|
* Note your provider will need to be configured with admin-level access for this resource to work.
|
|
13
13
|
*
|
|
14
|
-
* >
|
|
14
|
+
* > You must specify either `password` or `resetPassword`.
|
|
15
15
|
*
|
|
16
16
|
* ## Example Usage
|
|
17
17
|
*
|