@pulumi/gitlab 4.5.0-alpha.1643227148 → 4.5.0

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