@pulumi/gitlab 4.7.0 → 4.7.1
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 +0 -59
- package/branchProtection.js +0 -59
- package/branchProtection.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
package/branchProtection.d.ts
CHANGED
|
@@ -7,65 +7,6 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
7
7
|
*
|
|
8
8
|
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html)
|
|
9
9
|
*
|
|
10
|
-
* ## Example Usage
|
|
11
|
-
*
|
|
12
|
-
* ```typescript
|
|
13
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
-
* import * as gitlab from "@pulumi/gitlab";
|
|
15
|
-
*
|
|
16
|
-
* const branchProtect = new gitlab.BranchProtection("branchProtect", {
|
|
17
|
-
* project: "12345",
|
|
18
|
-
* branch: "BranchProtected",
|
|
19
|
-
* pushAccessLevel: "developer",
|
|
20
|
-
* mergeAccessLevel: "developer",
|
|
21
|
-
* unprotectAccessLevel: "developer",
|
|
22
|
-
* allowForcePush: true,
|
|
23
|
-
* codeOwnerApprovalRequired: true,
|
|
24
|
-
* allowedToPushes: [
|
|
25
|
-
* {
|
|
26
|
-
* userId: 5,
|
|
27
|
-
* },
|
|
28
|
-
* {
|
|
29
|
-
* userId: 521,
|
|
30
|
-
* },
|
|
31
|
-
* ],
|
|
32
|
-
* allowedToMerges: [
|
|
33
|
-
* {
|
|
34
|
-
* userId: 15,
|
|
35
|
-
* },
|
|
36
|
-
* {
|
|
37
|
-
* userId: 37,
|
|
38
|
-
* },
|
|
39
|
-
* ],
|
|
40
|
-
* allowedToUnprotects: [
|
|
41
|
-
* {
|
|
42
|
-
* userId: 15,
|
|
43
|
-
* },
|
|
44
|
-
* {
|
|
45
|
-
* groupId: 42,
|
|
46
|
-
* },
|
|
47
|
-
* ],
|
|
48
|
-
* });
|
|
49
|
-
* // Example using dynamic block
|
|
50
|
-
* const main = new gitlab.BranchProtection("main", {
|
|
51
|
-
* project: "12345",
|
|
52
|
-
* branch: "main",
|
|
53
|
-
* pushAccessLevel: "maintainer",
|
|
54
|
-
* mergeAccessLevel: "maintainer",
|
|
55
|
-
* unprotectAccessLevel: "maintainer",
|
|
56
|
-
* dynamic: [{
|
|
57
|
-
* forEach: [
|
|
58
|
-
* 50,
|
|
59
|
-
* 55,
|
|
60
|
-
* 60,
|
|
61
|
-
* ],
|
|
62
|
-
* content: [{
|
|
63
|
-
* userId: allowed_to_push.value,
|
|
64
|
-
* }],
|
|
65
|
-
* }],
|
|
66
|
-
* });
|
|
67
|
-
* ```
|
|
68
|
-
*
|
|
69
10
|
* ## Import
|
|
70
11
|
*
|
|
71
12
|
* # Gitlab protected branches can be imported with a key composed of `<project_id>:<branch>`, e.g.
|
package/branchProtection.js
CHANGED
|
@@ -12,65 +12,6 @@ const utilities = require("./utilities");
|
|
|
12
12
|
*
|
|
13
13
|
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html)
|
|
14
14
|
*
|
|
15
|
-
* ## Example Usage
|
|
16
|
-
*
|
|
17
|
-
* ```typescript
|
|
18
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
-
* import * as gitlab from "@pulumi/gitlab";
|
|
20
|
-
*
|
|
21
|
-
* const branchProtect = new gitlab.BranchProtection("branchProtect", {
|
|
22
|
-
* project: "12345",
|
|
23
|
-
* branch: "BranchProtected",
|
|
24
|
-
* pushAccessLevel: "developer",
|
|
25
|
-
* mergeAccessLevel: "developer",
|
|
26
|
-
* unprotectAccessLevel: "developer",
|
|
27
|
-
* allowForcePush: true,
|
|
28
|
-
* codeOwnerApprovalRequired: true,
|
|
29
|
-
* allowedToPushes: [
|
|
30
|
-
* {
|
|
31
|
-
* userId: 5,
|
|
32
|
-
* },
|
|
33
|
-
* {
|
|
34
|
-
* userId: 521,
|
|
35
|
-
* },
|
|
36
|
-
* ],
|
|
37
|
-
* allowedToMerges: [
|
|
38
|
-
* {
|
|
39
|
-
* userId: 15,
|
|
40
|
-
* },
|
|
41
|
-
* {
|
|
42
|
-
* userId: 37,
|
|
43
|
-
* },
|
|
44
|
-
* ],
|
|
45
|
-
* allowedToUnprotects: [
|
|
46
|
-
* {
|
|
47
|
-
* userId: 15,
|
|
48
|
-
* },
|
|
49
|
-
* {
|
|
50
|
-
* groupId: 42,
|
|
51
|
-
* },
|
|
52
|
-
* ],
|
|
53
|
-
* });
|
|
54
|
-
* // Example using dynamic block
|
|
55
|
-
* const main = new gitlab.BranchProtection("main", {
|
|
56
|
-
* project: "12345",
|
|
57
|
-
* branch: "main",
|
|
58
|
-
* pushAccessLevel: "maintainer",
|
|
59
|
-
* mergeAccessLevel: "maintainer",
|
|
60
|
-
* unprotectAccessLevel: "maintainer",
|
|
61
|
-
* dynamic: [{
|
|
62
|
-
* forEach: [
|
|
63
|
-
* 50,
|
|
64
|
-
* 55,
|
|
65
|
-
* 60,
|
|
66
|
-
* ],
|
|
67
|
-
* content: [{
|
|
68
|
-
* userId: allowed_to_push.value,
|
|
69
|
-
* }],
|
|
70
|
-
* }],
|
|
71
|
-
* });
|
|
72
|
-
* ```
|
|
73
|
-
*
|
|
74
15
|
* ## Import
|
|
75
16
|
*
|
|
76
17
|
* # Gitlab protected branches can be imported with a key composed of `<project_id>:<branch>`, e.g.
|
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;;;;;;;;;;;;;;G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GG,gBAAgB;AACO,6BAAY,GAAG,gDAAgD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/gitlab",
|
|
3
|
-
"version": "v4.7.
|
|
3
|
+
"version": "v4.7.1",
|
|
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.7.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource gitlab v4.7.1"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0",
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/gitlab",
|
|
3
|
-
"version": "v4.7.
|
|
3
|
+
"version": "v4.7.1",
|
|
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.7.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource gitlab v4.7.1"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0",
|