@pulumi/gitlab 4.6.0 → 4.7.0-alpha.1648756283
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/branch.d.ts +3 -1
- package/branch.js +3 -1
- package/branch.js.map +1 -1
- package/branchProtection.d.ts +42 -6
- package/branchProtection.js +18 -8
- package/branchProtection.js.map +1 -1
- package/deployKey.d.ts +11 -4
- package/deployKey.js +5 -1
- package/deployKey.js.map +1 -1
- package/deployKeyEnable.d.ts +2 -2
- package/deployKeyEnable.js +2 -2
- package/deployToken.d.ts +24 -6
- package/deployToken.js +17 -1
- package/deployToken.js.map +1 -1
- package/getBranch.d.ts +3 -43
- package/getBranch.js +3 -1
- package/getBranch.js.map +1 -1
- package/getGroup.d.ts +3 -53
- package/getGroup.js +2 -2
- package/getGroup.js.map +1 -1
- package/getGroupMembership.d.ts +2 -32
- package/getGroupMembership.js +2 -2
- package/getGroupMembership.js.map +1 -1
- package/getInstanceDeployKeys.d.ts +46 -0
- package/getInstanceDeployKeys.js +42 -0
- package/getInstanceDeployKeys.js.map +1 -0
- package/getProject.d.ts +32 -88
- package/getProject.js +4 -1
- package/getProject.js.map +1 -1
- package/getProjectIssue.d.ts +91 -0
- package/getProjectIssue.js +44 -0
- package/getProjectIssue.js.map +1 -0
- package/getProjectIssues.d.ts +122 -0
- package/getProjectIssues.js +67 -0
- package/getProjectIssues.js.map +1 -0
- package/getProjectProtectedBranch.d.ts +3 -34
- package/getProjectProtectedBranch.js +3 -1
- package/getProjectProtectedBranch.js.map +1 -1
- package/getProjectProtectedBranches.d.ts +3 -13
- package/getProjectProtectedBranches.js +3 -1
- package/getProjectProtectedBranches.js.map +1 -1
- package/getProjectTag.d.ts +52 -0
- package/getProjectTag.js +41 -0
- package/getProjectTag.js.map +1 -0
- package/getProjectTags.d.ts +53 -0
- package/getProjectTags.js +42 -0
- package/getProjectTags.js.map +1 -0
- package/getProjects.d.ts +5 -195
- package/getProjects.js +5 -3
- package/getProjects.js.map +1 -1
- package/getRepositoryFile.d.ts +57 -0
- package/getRepositoryFile.js +42 -0
- package/getRepositoryFile.js.map +1 -0
- package/getUser.d.ts +4 -101
- package/getUser.js +4 -2
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +6 -86
- package/getUsers.js +6 -2
- package/getUsers.js.map +1 -1
- package/group.d.ts +53 -38
- package/group.js +7 -2
- package/group.js.map +1 -1
- package/groupAccessToken.d.ts +15 -6
- package/groupAccessToken.js +5 -1
- package/groupAccessToken.js.map +1 -1
- package/groupBadge.d.ts +7 -7
- package/groupBadge.js +3 -3
- package/groupCluster.d.ts +8 -6
- package/groupCluster.js +5 -3
- package/groupCluster.js.map +1 -1
- package/groupCustomAttribute.d.ts +3 -1
- package/groupCustomAttribute.js +3 -1
- package/groupCustomAttribute.js.map +1 -1
- package/groupLabel.d.ts +9 -6
- package/groupLabel.js +3 -3
- package/groupLabel.js.map +1 -1
- package/groupLdapLink.d.ts +15 -7
- package/groupLdapLink.js +3 -1
- package/groupLdapLink.js.map +1 -1
- package/groupMembership.d.ts +11 -4
- package/groupMembership.js +5 -1
- package/groupMembership.js.map +1 -1
- package/groupShareGroup.d.ts +9 -4
- package/groupShareGroup.js +3 -1
- package/groupShareGroup.js.map +1 -1
- package/groupVariable.d.ts +27 -15
- package/groupVariable.js +3 -3
- package/groupVariable.js.map +1 -1
- package/index.d.ts +11 -0
- package/index.js +31 -0
- package/index.js.map +1 -1
- package/instanceCluster.d.ts +8 -6
- package/instanceCluster.js +5 -3
- package/instanceCluster.js.map +1 -1
- package/instanceVariable.d.ts +18 -12
- package/instanceVariable.js +3 -3
- package/instanceVariable.js.map +1 -1
- package/label.d.ts +17 -6
- package/label.js +11 -3
- package/label.js.map +1 -1
- package/managedLicense.d.ts +14 -7
- package/managedLicense.js +5 -4
- package/managedLicense.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/pipelineSchedule.d.ts +3 -3
- package/pipelineSchedule.js +3 -3
- package/pipelineScheduleVariable.d.ts +3 -1
- package/pipelineScheduleVariable.js +3 -1
- package/pipelineScheduleVariable.js.map +1 -1
- package/pipelineTrigger.d.ts +3 -1
- package/pipelineTrigger.js +3 -1
- package/pipelineTrigger.js.map +1 -1
- package/project.d.ts +372 -26
- package/project.js +59 -1
- package/project.js.map +1 -1
- package/projectAccessToken.d.ts +20 -8
- package/projectAccessToken.js +13 -1
- package/projectAccessToken.js.map +1 -1
- package/projectApprovalRule.d.ts +19 -2
- package/projectApprovalRule.js +6 -2
- package/projectApprovalRule.js.map +1 -1
- package/projectBadge.d.ts +7 -7
- package/projectBadge.js +3 -3
- package/projectCluster.d.ts +8 -6
- package/projectCluster.js +5 -3
- package/projectCluster.js.map +1 -1
- package/projectCustomAttribute.d.ts +3 -1
- package/projectCustomAttribute.js +3 -1
- package/projectCustomAttribute.js.map +1 -1
- package/projectEnvironment.d.ts +147 -0
- package/projectEnvironment.js +95 -0
- package/projectEnvironment.js.map +1 -0
- package/projectFreezePeriod.d.ts +3 -1
- package/projectFreezePeriod.js +3 -1
- package/projectFreezePeriod.js.map +1 -1
- package/projectHook.d.ts +16 -6
- package/projectHook.js +13 -3
- package/projectHook.js.map +1 -1
- package/projectIssue.d.ts +526 -0
- package/projectIssue.js +163 -0
- package/projectIssue.js.map +1 -0
- package/projectLevelMrApprovals.d.ts +11 -5
- package/projectLevelMrApprovals.js +5 -2
- package/projectLevelMrApprovals.js.map +1 -1
- package/projectMembership.d.ts +11 -4
- package/projectMembership.js +5 -1
- package/projectMembership.js.map +1 -1
- package/projectMirror.d.ts +4 -5
- package/projectMirror.js +4 -5
- package/projectMirror.js.map +1 -1
- package/projectProtectedEnvironment.d.ts +127 -0
- package/projectProtectedEnvironment.js +116 -0
- package/projectProtectedEnvironment.js.map +1 -0
- package/projectShareGroup.d.ts +15 -7
- package/projectShareGroup.js +3 -1
- package/projectShareGroup.js.map +1 -1
- package/projectTag.d.ts +149 -0
- package/projectTag.js +101 -0
- package/projectTag.js.map +1 -0
- package/projectVariable.d.ts +16 -16
- package/projectVariable.js +4 -7
- package/projectVariable.js.map +1 -1
- package/repositoryFile.d.ts +67 -8
- package/repositoryFile.js +14 -0
- package/repositoryFile.js.map +1 -1
- package/serviceGithub.d.ts +10 -5
- package/serviceGithub.js +4 -2
- package/serviceGithub.js.map +1 -1
- package/serviceJira.d.ts +15 -7
- package/serviceJira.js +3 -1
- package/serviceJira.js.map +1 -1
- package/serviceMicrosoftTeams.d.ts +9 -4
- package/serviceMicrosoftTeams.js +3 -1
- package/serviceMicrosoftTeams.js.map +1 -1
- package/servicePipelinesEmail.d.ts +9 -4
- package/servicePipelinesEmail.js +3 -1
- package/servicePipelinesEmail.js.map +1 -1
- package/serviceSlack.d.ts +13 -9
- package/serviceSlack.js +3 -1
- package/serviceSlack.js.map +1 -1
- package/systemHook.d.ts +165 -0
- package/systemHook.js +100 -0
- package/systemHook.js.map +1 -0
- package/tagProtection.d.ts +3 -1
- package/tagProtection.js +3 -1
- package/tagProtection.js.map +1 -1
- package/topic.d.ts +57 -25
- package/topic.js +10 -16
- package/topic.js.map +1 -1
- package/types/input.d.ts +42 -60
- package/types/output.d.ts +197 -102
- package/user.d.ts +18 -12
- package/user.js +6 -3
- package/user.js.map +1 -1
- package/userCustomAttribute.d.ts +3 -1
- package/userCustomAttribute.js +3 -1
- package/userCustomAttribute.js.map +1 -1
- package/userSshKey.d.ts +7 -4
- package/userSshKey.js +1 -1
- package/userSshKey.js.map +1 -1
package/branch.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "./types";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* The `gitlab.Branch` resource allows to manage the lifecycle of a repository branch.
|
|
5
|
+
*
|
|
6
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html)
|
|
5
7
|
*
|
|
6
8
|
* ## Example Usage
|
|
7
9
|
*
|
package/branch.js
CHANGED
|
@@ -6,7 +6,9 @@ exports.Branch = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* The `gitlab.Branch` resource allows to manage the lifecycle of a repository branch.
|
|
10
|
+
*
|
|
11
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html)
|
|
10
12
|
*
|
|
11
13
|
* ## Example Usage
|
|
12
14
|
*
|
package/branch.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branch.js","sourceRoot":"","sources":["../branch.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"branch.js","sourceRoot":"","sources":["../branch.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAiF7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAA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I,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;;AA1BL,wBAwHC;AA1GG,gBAAgB;AACO,mBAAY,GAAG,4BAA4B,CAAC"}
|
package/branchProtection.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "./types";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* The `gitlab.BranchProtection` resource allows to manage the lifecycle of a protected branch of a repository.
|
|
5
5
|
*
|
|
6
|
-
* > The `allowedToPush`, `allowedToMerge` and `codeOwnerApprovalRequired`
|
|
6
|
+
* > The `allowedToPush`, `allowedToMerge`, `allowedToUnprotect`, `unprotectAccessLevel` and `codeOwnerApprovalRequired` attributes require a GitLab Enterprise instance.
|
|
7
|
+
*
|
|
8
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html)
|
|
7
9
|
*
|
|
8
10
|
* ## Example Usage
|
|
9
11
|
*
|
|
@@ -16,6 +18,7 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
16
18
|
* branch: "BranchProtected",
|
|
17
19
|
* pushAccessLevel: "developer",
|
|
18
20
|
* mergeAccessLevel: "developer",
|
|
21
|
+
* unprotectAccessLevel: "developer",
|
|
19
22
|
* allowForcePush: true,
|
|
20
23
|
* codeOwnerApprovalRequired: true,
|
|
21
24
|
* allowedToPushes: [
|
|
@@ -34,6 +37,14 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
34
37
|
* userId: 37,
|
|
35
38
|
* },
|
|
36
39
|
* ],
|
|
40
|
+
* allowedToUnprotects: [
|
|
41
|
+
* {
|
|
42
|
+
* userId: 15,
|
|
43
|
+
* },
|
|
44
|
+
* {
|
|
45
|
+
* groupId: 42,
|
|
46
|
+
* },
|
|
47
|
+
* ],
|
|
37
48
|
* });
|
|
38
49
|
* // Example using dynamic block
|
|
39
50
|
* const main = new gitlab.BranchProtection("main", {
|
|
@@ -41,6 +52,7 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
41
52
|
* branch: "main",
|
|
42
53
|
* pushAccessLevel: "maintainer",
|
|
43
54
|
* mergeAccessLevel: "maintainer",
|
|
55
|
+
* unprotectAccessLevel: "maintainer",
|
|
44
56
|
* dynamic: [{
|
|
45
57
|
* forEach: [
|
|
46
58
|
* 50,
|
|
@@ -90,6 +102,10 @@ export declare class BranchProtection extends pulumi.CustomResource {
|
|
|
90
102
|
* Defines permissions for action.
|
|
91
103
|
*/
|
|
92
104
|
readonly allowedToPushes: pulumi.Output<outputs.BranchProtectionAllowedToPush[] | undefined>;
|
|
105
|
+
/**
|
|
106
|
+
* Defines permissions for action.
|
|
107
|
+
*/
|
|
108
|
+
readonly allowedToUnprotects: pulumi.Output<outputs.BranchProtectionAllowedToUnprotect[] | undefined>;
|
|
93
109
|
/**
|
|
94
110
|
* Name of the branch.
|
|
95
111
|
*/
|
|
@@ -105,7 +121,7 @@ export declare class BranchProtection extends pulumi.CustomResource {
|
|
|
105
121
|
/**
|
|
106
122
|
* Access levels allowed to merge. Valid values are: `no one`, `developer`, `maintainer`.
|
|
107
123
|
*/
|
|
108
|
-
readonly mergeAccessLevel: pulumi.Output<string>;
|
|
124
|
+
readonly mergeAccessLevel: pulumi.Output<string | undefined>;
|
|
109
125
|
/**
|
|
110
126
|
* The id of the project.
|
|
111
127
|
*/
|
|
@@ -113,7 +129,11 @@ export declare class BranchProtection extends pulumi.CustomResource {
|
|
|
113
129
|
/**
|
|
114
130
|
* Access levels allowed to push. Valid values are: `no one`, `developer`, `maintainer`.
|
|
115
131
|
*/
|
|
116
|
-
readonly pushAccessLevel: pulumi.Output<string>;
|
|
132
|
+
readonly pushAccessLevel: pulumi.Output<string | undefined>;
|
|
133
|
+
/**
|
|
134
|
+
* Access levels allowed to unprotect. Valid values are: `developer`, `maintainer`.
|
|
135
|
+
*/
|
|
136
|
+
readonly unprotectAccessLevel: pulumi.Output<string | undefined>;
|
|
117
137
|
/**
|
|
118
138
|
* Create a BranchProtection resource with the given unique name, arguments, and options.
|
|
119
139
|
*
|
|
@@ -139,6 +159,10 @@ export interface BranchProtectionState {
|
|
|
139
159
|
* Defines permissions for action.
|
|
140
160
|
*/
|
|
141
161
|
allowedToPushes?: pulumi.Input<pulumi.Input<inputs.BranchProtectionAllowedToPush>[]>;
|
|
162
|
+
/**
|
|
163
|
+
* Defines permissions for action.
|
|
164
|
+
*/
|
|
165
|
+
allowedToUnprotects?: pulumi.Input<pulumi.Input<inputs.BranchProtectionAllowedToUnprotect>[]>;
|
|
142
166
|
/**
|
|
143
167
|
* Name of the branch.
|
|
144
168
|
*/
|
|
@@ -163,6 +187,10 @@ export interface BranchProtectionState {
|
|
|
163
187
|
* Access levels allowed to push. Valid values are: `no one`, `developer`, `maintainer`.
|
|
164
188
|
*/
|
|
165
189
|
pushAccessLevel?: pulumi.Input<string>;
|
|
190
|
+
/**
|
|
191
|
+
* Access levels allowed to unprotect. Valid values are: `developer`, `maintainer`.
|
|
192
|
+
*/
|
|
193
|
+
unprotectAccessLevel?: pulumi.Input<string>;
|
|
166
194
|
}
|
|
167
195
|
/**
|
|
168
196
|
* The set of arguments for constructing a BranchProtection resource.
|
|
@@ -180,6 +208,10 @@ export interface BranchProtectionArgs {
|
|
|
180
208
|
* Defines permissions for action.
|
|
181
209
|
*/
|
|
182
210
|
allowedToPushes?: pulumi.Input<pulumi.Input<inputs.BranchProtectionAllowedToPush>[]>;
|
|
211
|
+
/**
|
|
212
|
+
* Defines permissions for action.
|
|
213
|
+
*/
|
|
214
|
+
allowedToUnprotects?: pulumi.Input<pulumi.Input<inputs.BranchProtectionAllowedToUnprotect>[]>;
|
|
183
215
|
/**
|
|
184
216
|
* Name of the branch.
|
|
185
217
|
*/
|
|
@@ -191,7 +223,7 @@ export interface BranchProtectionArgs {
|
|
|
191
223
|
/**
|
|
192
224
|
* Access levels allowed to merge. Valid values are: `no one`, `developer`, `maintainer`.
|
|
193
225
|
*/
|
|
194
|
-
mergeAccessLevel
|
|
226
|
+
mergeAccessLevel?: pulumi.Input<string>;
|
|
195
227
|
/**
|
|
196
228
|
* The id of the project.
|
|
197
229
|
*/
|
|
@@ -199,5 +231,9 @@ export interface BranchProtectionArgs {
|
|
|
199
231
|
/**
|
|
200
232
|
* Access levels allowed to push. Valid values are: `no one`, `developer`, `maintainer`.
|
|
201
233
|
*/
|
|
202
|
-
pushAccessLevel
|
|
234
|
+
pushAccessLevel?: pulumi.Input<string>;
|
|
235
|
+
/**
|
|
236
|
+
* Access levels allowed to unprotect. Valid values are: `developer`, `maintainer`.
|
|
237
|
+
*/
|
|
238
|
+
unprotectAccessLevel?: pulumi.Input<string>;
|
|
203
239
|
}
|
package/branchProtection.js
CHANGED
|
@@ -6,9 +6,11 @@ exports.BranchProtection = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* The `gitlab.BranchProtection` resource allows to manage the lifecycle of a protected branch of a repository.
|
|
10
10
|
*
|
|
11
|
-
* > The `allowedToPush`, `allowedToMerge` and `codeOwnerApprovalRequired`
|
|
11
|
+
* > The `allowedToPush`, `allowedToMerge`, `allowedToUnprotect`, `unprotectAccessLevel` and `codeOwnerApprovalRequired` attributes require a GitLab Enterprise instance.
|
|
12
|
+
*
|
|
13
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html)
|
|
12
14
|
*
|
|
13
15
|
* ## Example Usage
|
|
14
16
|
*
|
|
@@ -21,6 +23,7 @@ const utilities = require("./utilities");
|
|
|
21
23
|
* branch: "BranchProtected",
|
|
22
24
|
* pushAccessLevel: "developer",
|
|
23
25
|
* mergeAccessLevel: "developer",
|
|
26
|
+
* unprotectAccessLevel: "developer",
|
|
24
27
|
* allowForcePush: true,
|
|
25
28
|
* codeOwnerApprovalRequired: true,
|
|
26
29
|
* allowedToPushes: [
|
|
@@ -39,6 +42,14 @@ const utilities = require("./utilities");
|
|
|
39
42
|
* userId: 37,
|
|
40
43
|
* },
|
|
41
44
|
* ],
|
|
45
|
+
* allowedToUnprotects: [
|
|
46
|
+
* {
|
|
47
|
+
* userId: 15,
|
|
48
|
+
* },
|
|
49
|
+
* {
|
|
50
|
+
* groupId: 42,
|
|
51
|
+
* },
|
|
52
|
+
* ],
|
|
42
53
|
* });
|
|
43
54
|
* // Example using dynamic block
|
|
44
55
|
* const main = new gitlab.BranchProtection("main", {
|
|
@@ -46,6 +57,7 @@ const utilities = require("./utilities");
|
|
|
46
57
|
* branch: "main",
|
|
47
58
|
* pushAccessLevel: "maintainer",
|
|
48
59
|
* mergeAccessLevel: "maintainer",
|
|
60
|
+
* unprotectAccessLevel: "maintainer",
|
|
49
61
|
* dynamic: [{
|
|
50
62
|
* forEach: [
|
|
51
63
|
* 50,
|
|
@@ -76,35 +88,33 @@ class BranchProtection extends pulumi.CustomResource {
|
|
|
76
88
|
resourceInputs["allowForcePush"] = state ? state.allowForcePush : undefined;
|
|
77
89
|
resourceInputs["allowedToMerges"] = state ? state.allowedToMerges : undefined;
|
|
78
90
|
resourceInputs["allowedToPushes"] = state ? state.allowedToPushes : undefined;
|
|
91
|
+
resourceInputs["allowedToUnprotects"] = state ? state.allowedToUnprotects : undefined;
|
|
79
92
|
resourceInputs["branch"] = state ? state.branch : undefined;
|
|
80
93
|
resourceInputs["branchProtectionId"] = state ? state.branchProtectionId : undefined;
|
|
81
94
|
resourceInputs["codeOwnerApprovalRequired"] = state ? state.codeOwnerApprovalRequired : undefined;
|
|
82
95
|
resourceInputs["mergeAccessLevel"] = state ? state.mergeAccessLevel : undefined;
|
|
83
96
|
resourceInputs["project"] = state ? state.project : undefined;
|
|
84
97
|
resourceInputs["pushAccessLevel"] = state ? state.pushAccessLevel : undefined;
|
|
98
|
+
resourceInputs["unprotectAccessLevel"] = state ? state.unprotectAccessLevel : undefined;
|
|
85
99
|
}
|
|
86
100
|
else {
|
|
87
101
|
const args = argsOrState;
|
|
88
102
|
if ((!args || args.branch === undefined) && !opts.urn) {
|
|
89
103
|
throw new Error("Missing required property 'branch'");
|
|
90
104
|
}
|
|
91
|
-
if ((!args || args.mergeAccessLevel === undefined) && !opts.urn) {
|
|
92
|
-
throw new Error("Missing required property 'mergeAccessLevel'");
|
|
93
|
-
}
|
|
94
105
|
if ((!args || args.project === undefined) && !opts.urn) {
|
|
95
106
|
throw new Error("Missing required property 'project'");
|
|
96
107
|
}
|
|
97
|
-
if ((!args || args.pushAccessLevel === undefined) && !opts.urn) {
|
|
98
|
-
throw new Error("Missing required property 'pushAccessLevel'");
|
|
99
|
-
}
|
|
100
108
|
resourceInputs["allowForcePush"] = args ? args.allowForcePush : undefined;
|
|
101
109
|
resourceInputs["allowedToMerges"] = args ? args.allowedToMerges : undefined;
|
|
102
110
|
resourceInputs["allowedToPushes"] = args ? args.allowedToPushes : undefined;
|
|
111
|
+
resourceInputs["allowedToUnprotects"] = args ? args.allowedToUnprotects : undefined;
|
|
103
112
|
resourceInputs["branch"] = args ? args.branch : undefined;
|
|
104
113
|
resourceInputs["codeOwnerApprovalRequired"] = args ? args.codeOwnerApprovalRequired : undefined;
|
|
105
114
|
resourceInputs["mergeAccessLevel"] = args ? args.mergeAccessLevel : undefined;
|
|
106
115
|
resourceInputs["project"] = args ? args.project : undefined;
|
|
107
116
|
resourceInputs["pushAccessLevel"] = args ? args.pushAccessLevel : undefined;
|
|
117
|
+
resourceInputs["unprotectAccessLevel"] = args ? args.unprotectAccessLevel : undefined;
|
|
108
118
|
resourceInputs["branchProtectionId"] = undefined /*out*/;
|
|
109
119
|
}
|
|
110
120
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IAiFvD,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,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,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,qBAAqB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC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AAI,CAAC,CAAC;IACrE,CAAC;IAtHD;;;;;;;;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,4CAwHC;AA1GG,gBAAgB;AACO,6BAAY,GAAG,gDAAgD,CAAC"}
|
package/deployKey.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* The `gitlab.DeployKey` resource allows to manage the lifecycle of a deploy key.
|
|
4
|
+
*
|
|
5
|
+
* > To enable an already existing deploy key for another project use the `gitlabProjectDeployKey` resource.
|
|
6
|
+
*
|
|
7
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html)
|
|
4
8
|
*
|
|
5
9
|
* ## Example Usage
|
|
6
10
|
*
|
|
@@ -40,7 +44,8 @@ export declare class DeployKey extends pulumi.CustomResource {
|
|
|
40
44
|
*/
|
|
41
45
|
static isInstance(obj: any): obj is DeployKey;
|
|
42
46
|
/**
|
|
43
|
-
* Allow this deploy key to be used to push changes to the project.
|
|
47
|
+
* Allow this deploy key to be used to push changes to the project. Defaults to `false`. **NOTE::** this cannot currently
|
|
48
|
+
* be managed.
|
|
44
49
|
*/
|
|
45
50
|
readonly canPush: pulumi.Output<boolean | undefined>;
|
|
46
51
|
/**
|
|
@@ -69,7 +74,8 @@ export declare class DeployKey extends pulumi.CustomResource {
|
|
|
69
74
|
*/
|
|
70
75
|
export interface DeployKeyState {
|
|
71
76
|
/**
|
|
72
|
-
* Allow this deploy key to be used to push changes to the project.
|
|
77
|
+
* Allow this deploy key to be used to push changes to the project. Defaults to `false`. **NOTE::** this cannot currently
|
|
78
|
+
* be managed.
|
|
73
79
|
*/
|
|
74
80
|
canPush?: pulumi.Input<boolean>;
|
|
75
81
|
/**
|
|
@@ -90,7 +96,8 @@ export interface DeployKeyState {
|
|
|
90
96
|
*/
|
|
91
97
|
export interface DeployKeyArgs {
|
|
92
98
|
/**
|
|
93
|
-
* Allow this deploy key to be used to push changes to the project.
|
|
99
|
+
* Allow this deploy key to be used to push changes to the project. Defaults to `false`. **NOTE::** this cannot currently
|
|
100
|
+
* be managed.
|
|
94
101
|
*/
|
|
95
102
|
canPush?: pulumi.Input<boolean>;
|
|
96
103
|
/**
|
package/deployKey.js
CHANGED
|
@@ -6,7 +6,11 @@ exports.DeployKey = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* The `gitlab.DeployKey` resource allows to manage the lifecycle of a deploy key.
|
|
10
|
+
*
|
|
11
|
+
* > To enable an already existing deploy key for another project use the `gitlabProjectDeployKey` resource.
|
|
12
|
+
*
|
|
13
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html)
|
|
10
14
|
*
|
|
11
15
|
* ## Example Usage
|
|
12
16
|
*
|
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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
package/deployKeyEnable.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* The `gitlab.DeployKeyEnable` resource allows to enable an already existing deploy key (see `gitlab.DeployKey resource`) for a specific project.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html#enable-a-deploy-key)
|
|
6
6
|
*
|
|
7
7
|
* ## Example Usage
|
|
8
8
|
*
|
package/deployKeyEnable.js
CHANGED
|
@@ -6,9 +6,9 @@ exports.DeployKeyEnable = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* The `gitlab.DeployKeyEnable` resource allows to enable an already existing deploy key (see `gitlab.DeployKey resource`) for a specific project.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html#enable-a-deploy-key)
|
|
12
12
|
*
|
|
13
13
|
* ## Example Usage
|
|
14
14
|
*
|
package/deployToken.d.ts
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* The `gitlab.DeployToken` resource allows to manage the lifecycle of group and project deploy tokens.
|
|
4
|
+
*
|
|
5
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_tokens.html)
|
|
6
|
+
*
|
|
7
|
+
* ## Import
|
|
8
|
+
*
|
|
9
|
+
* # GitLab deploy tokens can be imported using an id made up of `{type}:{type_id}:{deploy_token_id}`, where type is one ofproject, group.
|
|
10
|
+
*
|
|
11
|
+
* ```sh
|
|
12
|
+
* $ pulumi import gitlab:index/deployToken:DeployToken group_token group:1:3
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* ```sh
|
|
16
|
+
* $ pulumi import gitlab:index/deployToken:DeployToken project_token project:1:4
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* # Notethe `token` resource attribute is not available for imported resources as this information cannot be read from the GitLab API.
|
|
4
20
|
*/
|
|
5
21
|
export declare class DeployToken extends pulumi.CustomResource {
|
|
6
22
|
/**
|
|
@@ -35,11 +51,12 @@ export declare class DeployToken extends pulumi.CustomResource {
|
|
|
35
51
|
*/
|
|
36
52
|
readonly project: pulumi.Output<string | undefined>;
|
|
37
53
|
/**
|
|
38
|
-
* Valid values: `
|
|
54
|
+
* Valid values: `read_repository`, `read_registry`, `read_package_registry`, `write_registry`, `write_package_registry`.
|
|
39
55
|
*/
|
|
40
56
|
readonly scopes: pulumi.Output<string[]>;
|
|
41
57
|
/**
|
|
42
|
-
* The secret token. This is only populated when creating a new deploy token.
|
|
58
|
+
* The secret token. This is only populated when creating a new deploy token. **Note**: The token is not available for
|
|
59
|
+
* imported resources.
|
|
43
60
|
*/
|
|
44
61
|
readonly token: pulumi.Output<string>;
|
|
45
62
|
/**
|
|
@@ -76,11 +93,12 @@ export interface DeployTokenState {
|
|
|
76
93
|
*/
|
|
77
94
|
project?: pulumi.Input<string>;
|
|
78
95
|
/**
|
|
79
|
-
* Valid values: `
|
|
96
|
+
* Valid values: `read_repository`, `read_registry`, `read_package_registry`, `write_registry`, `write_package_registry`.
|
|
80
97
|
*/
|
|
81
98
|
scopes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
82
99
|
/**
|
|
83
|
-
* The secret token. This is only populated when creating a new deploy token.
|
|
100
|
+
* The secret token. This is only populated when creating a new deploy token. **Note**: The token is not available for
|
|
101
|
+
* imported resources.
|
|
84
102
|
*/
|
|
85
103
|
token?: pulumi.Input<string>;
|
|
86
104
|
/**
|
|
@@ -109,7 +127,7 @@ export interface DeployTokenArgs {
|
|
|
109
127
|
*/
|
|
110
128
|
project?: pulumi.Input<string>;
|
|
111
129
|
/**
|
|
112
|
-
* Valid values: `
|
|
130
|
+
* Valid values: `read_repository`, `read_registry`, `read_package_registry`, `write_registry`, `write_package_registry`.
|
|
113
131
|
*/
|
|
114
132
|
scopes: pulumi.Input<pulumi.Input<string>[]>;
|
|
115
133
|
/**
|
package/deployToken.js
CHANGED
|
@@ -6,7 +6,23 @@ exports.DeployToken = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* The `gitlab.DeployToken` resource allows to manage the lifecycle of group and project deploy tokens.
|
|
10
|
+
*
|
|
11
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_tokens.html)
|
|
12
|
+
*
|
|
13
|
+
* ## Import
|
|
14
|
+
*
|
|
15
|
+
* # GitLab deploy tokens can be imported using an id made up of `{type}:{type_id}:{deploy_token_id}`, where type is one ofproject, group.
|
|
16
|
+
*
|
|
17
|
+
* ```sh
|
|
18
|
+
* $ pulumi import gitlab:index/deployToken:DeployToken group_token group:1:3
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* ```sh
|
|
22
|
+
* $ pulumi import gitlab:index/deployToken:DeployToken project_token project:1:4
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* # Notethe `token` resource attribute is not available for imported resources as this information cannot be read from the GitLab API.
|
|
10
26
|
*/
|
|
11
27
|
class DeployToken extends pulumi.CustomResource {
|
|
12
28
|
constructor(name, argsOrState, opts) {
|
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":["../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;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,kCA8FC;AAhFG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
|
package/getBranch.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { output as outputs } from "./types";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* The `gitlab.Branch` data source allows details of a repository branch to be retrieved by its name and project.
|
|
5
|
+
*
|
|
6
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html#get-single-repository-branch)
|
|
5
7
|
*
|
|
6
8
|
* ## Example Usage
|
|
7
9
|
*
|
|
@@ -21,62 +23,26 @@ export declare function getBranch(args: GetBranchArgs, opts?: pulumi.InvokeOptio
|
|
|
21
23
|
* A collection of arguments for invoking getBranch.
|
|
22
24
|
*/
|
|
23
25
|
export interface GetBranchArgs {
|
|
24
|
-
/**
|
|
25
|
-
* The name of the branch.
|
|
26
|
-
*/
|
|
27
26
|
name: string;
|
|
28
|
-
/**
|
|
29
|
-
* The full path or id of the project.
|
|
30
|
-
*/
|
|
31
27
|
project: string;
|
|
32
28
|
}
|
|
33
29
|
/**
|
|
34
30
|
* A collection of values returned by getBranch.
|
|
35
31
|
*/
|
|
36
32
|
export interface GetBranchResult {
|
|
37
|
-
/**
|
|
38
|
-
* Bool, true if you can push to the branch.
|
|
39
|
-
*/
|
|
40
33
|
readonly canPush: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* The commit associated with the branch ref.
|
|
43
|
-
*/
|
|
44
34
|
readonly commits: outputs.GetBranchCommit[];
|
|
45
|
-
/**
|
|
46
|
-
* Bool, true if branch is the default branch for the project.
|
|
47
|
-
*/
|
|
48
35
|
readonly default: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Bool, true if developer level access allows to merge branch.
|
|
51
|
-
*/
|
|
52
36
|
readonly developerCanMerge: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Bool, true if developer level access allows git push.
|
|
55
|
-
*/
|
|
56
37
|
readonly developerCanPush: boolean;
|
|
57
38
|
/**
|
|
58
39
|
* The provider-assigned unique ID for this managed resource.
|
|
59
40
|
*/
|
|
60
41
|
readonly id: string;
|
|
61
|
-
/**
|
|
62
|
-
* Bool, true if the branch has been merged into it's parent.
|
|
63
|
-
*/
|
|
64
42
|
readonly merged: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* The name of the branch.
|
|
67
|
-
*/
|
|
68
43
|
readonly name: string;
|
|
69
|
-
/**
|
|
70
|
-
* The full path or id of the project.
|
|
71
|
-
*/
|
|
72
44
|
readonly project: string;
|
|
73
|
-
/**
|
|
74
|
-
* Bool, true if branch has branch protection.
|
|
75
|
-
*/
|
|
76
45
|
readonly protected: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* The url of the created branch (https.)
|
|
79
|
-
*/
|
|
80
46
|
readonly webUrl: string;
|
|
81
47
|
}
|
|
82
48
|
export declare function getBranchOutput(args: GetBranchOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetBranchResult>;
|
|
@@ -84,12 +50,6 @@ export declare function getBranchOutput(args: GetBranchOutputArgs, opts?: pulumi
|
|
|
84
50
|
* A collection of arguments for invoking getBranch.
|
|
85
51
|
*/
|
|
86
52
|
export interface GetBranchOutputArgs {
|
|
87
|
-
/**
|
|
88
|
-
* The name of the branch.
|
|
89
|
-
*/
|
|
90
53
|
name: pulumi.Input<string>;
|
|
91
|
-
/**
|
|
92
|
-
* The full path or id of the project.
|
|
93
|
-
*/
|
|
94
54
|
project: pulumi.Input<string>;
|
|
95
55
|
}
|
package/getBranch.js
CHANGED
|
@@ -6,7 +6,9 @@ exports.getBranchOutput = exports.getBranch = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* The `gitlab.Branch` data source allows details of a repository branch to be retrieved by its name and project.
|
|
10
|
+
*
|
|
11
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html#get-single-repository-branch)
|
|
10
12
|
*
|
|
11
13
|
* ## Example Usage
|
|
12
14
|
*
|
package/getBranch.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBranch.js","sourceRoot":"","sources":["../getBranch.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getBranch.js","sourceRoot":"","sources":["../getBranch.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IACtE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kCAAkC,EAAE;QAC7D,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,8BAUC;AA8BD,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7D,CAAC;AAFD,0CAEC"}
|