@pulumi/gitlab 9.12.0-alpha.1782457766 → 10.0.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 (234) hide show
  1. package/README.md +2 -2
  2. package/applicationSettings.d.ts +48 -18
  3. package/applicationSettings.d.ts.map +1 -1
  4. package/applicationSettings.js +8 -2
  5. package/applicationSettings.js.map +1 -1
  6. package/branchProtection.d.ts +48 -52
  7. package/branchProtection.d.ts.map +1 -1
  8. package/branchProtection.js +30 -24
  9. package/branchProtection.js.map +1 -1
  10. package/getGroup.d.ts +114 -2
  11. package/getGroup.d.ts.map +1 -1
  12. package/getGroup.js.map +1 -1
  13. package/getGroupHook.d.ts +40 -6
  14. package/getGroupHook.d.ts.map +1 -1
  15. package/getGroupHook.js.map +1 -1
  16. package/getGroupLabel.d.ts +125 -0
  17. package/getGroupLabel.d.ts.map +1 -0
  18. package/getGroupLabel.js +93 -0
  19. package/getGroupLabel.js.map +1 -0
  20. package/getGroupLabels.d.ts +74 -0
  21. package/getGroupLabels.d.ts.map +1 -0
  22. package/getGroupLabels.js +79 -0
  23. package/getGroupLabels.js.map +1 -0
  24. package/getGroupProtectedBranch.d.ts +82 -0
  25. package/getGroupProtectedBranch.d.ts.map +1 -0
  26. package/getGroupProtectedBranch.js +61 -0
  27. package/getGroupProtectedBranch.js.map +1 -0
  28. package/getGroupProtectedBranches.d.ts +54 -0
  29. package/getGroupProtectedBranches.d.ts.map +1 -0
  30. package/getGroupProtectedBranches.js +59 -0
  31. package/getGroupProtectedBranches.js.map +1 -0
  32. package/getProject.d.ts +355 -57
  33. package/getProject.d.ts.map +1 -1
  34. package/getProject.js +0 -6
  35. package/getProject.js.map +1 -1
  36. package/getProjectHook.d.ts +36 -6
  37. package/getProjectHook.d.ts.map +1 -1
  38. package/getProjectHook.js.map +1 -1
  39. package/getProjectMembership.d.ts +4 -40
  40. package/getProjectMembership.d.ts.map +1 -1
  41. package/getProjectMembership.js +0 -6
  42. package/getProjectMembership.js.map +1 -1
  43. package/getProjectProtectedBranch.d.ts +8 -21
  44. package/getProjectProtectedBranch.d.ts.map +1 -1
  45. package/getProjectProtectedBranch.js +0 -4
  46. package/getProjectProtectedBranch.js.map +1 -1
  47. package/getProjectProtectedBranches.d.ts +1 -10
  48. package/getProjectProtectedBranches.d.ts.map +1 -1
  49. package/getProjectProtectedBranches.js +0 -2
  50. package/getProjectProtectedBranches.js.map +1 -1
  51. package/getProjectServiceAccount.d.ts +97 -0
  52. package/getProjectServiceAccount.d.ts.map +1 -0
  53. package/getProjectServiceAccount.js +89 -0
  54. package/getProjectServiceAccount.js.map +1 -0
  55. package/getProjects.d.ts +22 -10
  56. package/getProjects.d.ts.map +1 -1
  57. package/getProjects.js +2 -0
  58. package/getProjects.js.map +1 -1
  59. package/getSystemHook.d.ts +111 -0
  60. package/getSystemHook.d.ts.map +1 -0
  61. package/getSystemHook.js +81 -0
  62. package/getSystemHook.js.map +1 -0
  63. package/getSystemHooks.d.ts +50 -0
  64. package/getSystemHooks.d.ts.map +1 -0
  65. package/getSystemHooks.js +73 -0
  66. package/getSystemHooks.js.map +1 -0
  67. package/group.d.ts +12 -0
  68. package/group.d.ts.map +1 -1
  69. package/group.js +2 -0
  70. package/group.js.map +1 -1
  71. package/groupAccessToken.d.ts +3 -3
  72. package/groupBranchProtection.d.ts +185 -0
  73. package/groupBranchProtection.d.ts.map +1 -0
  74. package/groupBranchProtection.js +146 -0
  75. package/groupBranchProtection.js.map +1 -0
  76. package/groupCluster.d.ts +1 -1
  77. package/groupCluster.js +1 -1
  78. package/groupDeployToken.d.ts +3 -3
  79. package/groupHook.d.ts +75 -3
  80. package/groupHook.d.ts.map +1 -1
  81. package/groupHook.js +15 -1
  82. package/groupHook.js.map +1 -1
  83. package/{integrationHarbor.d.ts → groupIntegrationHarbor.d.ts} +39 -43
  84. package/groupIntegrationHarbor.d.ts.map +1 -0
  85. package/{integrationHarbor.js → groupIntegrationHarbor.js} +30 -34
  86. package/groupIntegrationHarbor.js.map +1 -0
  87. package/groupSamlLink.d.ts +3 -3
  88. package/groupSavedReply.d.ts +78 -0
  89. package/groupSavedReply.d.ts.map +1 -0
  90. package/{deployToken.js → groupSavedReply.js} +19 -45
  91. package/groupSavedReply.js.map +1 -0
  92. package/groupServiceAccount.d.ts +12 -0
  93. package/groupServiceAccount.d.ts.map +1 -1
  94. package/groupServiceAccount.js +2 -0
  95. package/groupServiceAccount.js.map +1 -1
  96. package/groupServiceAccountAccessToken.d.ts +3 -3
  97. package/index.d.ts +45 -48
  98. package/index.d.ts.map +1 -1
  99. package/index.js +67 -86
  100. package/index.js.map +1 -1
  101. package/instanceCluster.d.ts +1 -1
  102. package/instanceCluster.js +1 -1
  103. package/integrationSlack.d.ts +0 -18
  104. package/integrationSlack.d.ts.map +1 -1
  105. package/integrationSlack.js +0 -2
  106. package/integrationSlack.js.map +1 -1
  107. package/memberRole.d.ts +3 -3
  108. package/package.json +2 -2
  109. package/personalAccessToken.d.ts +3 -3
  110. package/project.d.ts +36 -234
  111. package/project.d.ts.map +1 -1
  112. package/project.js +6 -26
  113. package/project.js.map +1 -1
  114. package/projectAccessToken.d.ts +3 -3
  115. package/projectCluster.d.ts +1 -1
  116. package/projectCluster.js +1 -1
  117. package/projectDeployToken.d.ts +3 -3
  118. package/projectHook.d.ts +103 -0
  119. package/projectHook.d.ts.map +1 -1
  120. package/projectHook.js +30 -1
  121. package/projectHook.js.map +1 -1
  122. package/projectIntegrationDatadog.d.ts +200 -0
  123. package/projectIntegrationDatadog.d.ts.map +1 -0
  124. package/{integrationGithub.js → projectIntegrationDatadog.js} +44 -45
  125. package/projectIntegrationDatadog.js.map +1 -0
  126. package/{integrationMicrosoftTeams.d.ts → projectIntegrationGoogleChat.d.ts} +35 -95
  127. package/projectIntegrationGoogleChat.d.ts.map +1 -0
  128. package/{integrationMicrosoftTeams.js → projectIntegrationGoogleChat.js} +12 -50
  129. package/projectIntegrationGoogleChat.js.map +1 -0
  130. package/projectIntegrationJira.d.ts +12 -12
  131. package/projectJobTokenScopes.d.ts +5 -21
  132. package/projectJobTokenScopes.d.ts.map +1 -1
  133. package/projectJobTokenScopes.js +6 -3
  134. package/projectJobTokenScopes.js.map +1 -1
  135. package/projectLabel.d.ts +12 -0
  136. package/projectLabel.d.ts.map +1 -1
  137. package/projectLabel.js +2 -0
  138. package/projectLabel.js.map +1 -1
  139. package/projectLevelMrApprovals.d.ts +21 -3
  140. package/projectLevelMrApprovals.d.ts.map +1 -1
  141. package/projectLevelMrApprovals.js +2 -0
  142. package/projectLevelMrApprovals.js.map +1 -1
  143. package/projectMergeRequestNote.d.ts +3 -3
  144. package/projectProtectedEnvironment.d.ts +4 -22
  145. package/projectProtectedEnvironment.d.ts.map +1 -1
  146. package/projectProtectedEnvironment.js +1 -3
  147. package/projectProtectedEnvironment.js.map +1 -1
  148. package/projectPushMirror.d.ts +12 -0
  149. package/projectPushMirror.d.ts.map +1 -1
  150. package/projectPushMirror.js +2 -0
  151. package/projectPushMirror.js.map +1 -1
  152. package/projectSavedReply.d.ts +78 -0
  153. package/projectSavedReply.d.ts.map +1 -0
  154. package/{label.js → projectSavedReply.js} +16 -24
  155. package/projectSavedReply.js.map +1 -0
  156. package/projectServiceAccount.d.ts +152 -0
  157. package/projectServiceAccount.d.ts.map +1 -0
  158. package/{integrationPipelinesEmail.js → projectServiceAccount.js} +42 -35
  159. package/projectServiceAccount.js.map +1 -0
  160. package/projectShareGroup.d.ts +2 -20
  161. package/projectShareGroup.d.ts.map +1 -1
  162. package/projectShareGroup.js +3 -2
  163. package/projectShareGroup.js.map +1 -1
  164. package/projectTargetBranchRule.d.ts +1 -1
  165. package/projectTargetBranchRule.js +1 -1
  166. package/systemHook.d.ts +50 -6
  167. package/systemHook.d.ts.map +1 -1
  168. package/systemHook.js +9 -1
  169. package/systemHook.js.map +1 -1
  170. package/types/input.d.ts +95 -249
  171. package/types/input.d.ts.map +1 -1
  172. package/types/output.d.ts +1168 -168
  173. package/types/output.d.ts.map +1 -1
  174. package/userImpersonationToken.d.ts +3 -3
  175. package/userSavedReply.d.ts +66 -0
  176. package/userSavedReply.d.ts.map +1 -0
  177. package/userSavedReply.js +82 -0
  178. package/userSavedReply.js.map +1 -0
  179. package/deployToken.d.ts +0 -147
  180. package/deployToken.d.ts.map +0 -1
  181. package/deployToken.js.map +0 -1
  182. package/integrationCustomIssueTracker.d.ts +0 -142
  183. package/integrationCustomIssueTracker.d.ts.map +0 -1
  184. package/integrationCustomIssueTracker.js +0 -130
  185. package/integrationCustomIssueTracker.js.map +0 -1
  186. package/integrationEmailsOnPush.d.ts +0 -198
  187. package/integrationEmailsOnPush.d.ts.map +0 -1
  188. package/integrationEmailsOnPush.js +0 -137
  189. package/integrationEmailsOnPush.js.map +0 -1
  190. package/integrationExternalWiki.d.ts +0 -137
  191. package/integrationExternalWiki.d.ts.map +0 -1
  192. package/integrationExternalWiki.js +0 -126
  193. package/integrationExternalWiki.js.map +0 -1
  194. package/integrationGithub.d.ts +0 -156
  195. package/integrationGithub.d.ts.map +0 -1
  196. package/integrationGithub.js.map +0 -1
  197. package/integrationHarbor.d.ts.map +0 -1
  198. package/integrationHarbor.js.map +0 -1
  199. package/integrationJenkins.d.ts +0 -190
  200. package/integrationJenkins.d.ts.map +0 -1
  201. package/integrationJenkins.js +0 -138
  202. package/integrationJenkins.js.map +0 -1
  203. package/integrationJira.d.ts +0 -299
  204. package/integrationJira.d.ts.map +0 -1
  205. package/integrationJira.js +0 -159
  206. package/integrationJira.js.map +0 -1
  207. package/integrationMattermost.d.ts +0 -352
  208. package/integrationMattermost.d.ts.map +0 -1
  209. package/integrationMattermost.js +0 -163
  210. package/integrationMattermost.js.map +0 -1
  211. package/integrationMicrosoftTeams.d.ts.map +0 -1
  212. package/integrationMicrosoftTeams.js.map +0 -1
  213. package/integrationPipelinesEmail.d.ts +0 -123
  214. package/integrationPipelinesEmail.d.ts.map +0 -1
  215. package/integrationPipelinesEmail.js.map +0 -1
  216. package/integrationRedmine.d.ts +0 -136
  217. package/integrationRedmine.d.ts.map +0 -1
  218. package/integrationRedmine.js +0 -131
  219. package/integrationRedmine.js.map +0 -1
  220. package/integrationTelegram.d.ts +0 -253
  221. package/integrationTelegram.d.ts.map +0 -1
  222. package/integrationTelegram.js +0 -184
  223. package/integrationTelegram.js.map +0 -1
  224. package/label.d.ts +0 -108
  225. package/label.d.ts.map +0 -1
  226. package/label.js.map +0 -1
  227. package/projectMirror.d.ts +0 -166
  228. package/projectMirror.d.ts.map +0 -1
  229. package/projectMirror.js +0 -131
  230. package/projectMirror.js.map +0 -1
  231. package/runner.d.ts +0 -188
  232. package/runner.d.ts.map +0 -1
  233. package/runner.js +0 -122
  234. package/runner.js.map +0 -1
@@ -0,0 +1,78 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * The `gitlab.ProjectSavedReply` resource manages a comment template (saved reply) shared across a project. Requires Premium or Ultimate.
4
+ *
5
+ * **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/api/graphql/reference/#mutationprojectsavedreplycreate)
6
+ */
7
+ export declare class ProjectSavedReply extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing ProjectSavedReply resource's state with the given name, ID, and optional extra
10
+ * properties used to qualify the lookup.
11
+ *
12
+ * @param name The _unique_ name of the resulting resource.
13
+ * @param id The _unique_ provider ID of the resource to lookup.
14
+ * @param state Any extra arguments used during the lookup.
15
+ * @param opts Optional settings to control the behavior of the CustomResource.
16
+ */
17
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectSavedReplyState, opts?: pulumi.CustomResourceOptions): ProjectSavedReply;
18
+ /**
19
+ * Returns true if the given object is an instance of ProjectSavedReply. This is designed to work even
20
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
21
+ */
22
+ static isInstance(obj: any): obj is ProjectSavedReply;
23
+ /**
24
+ * The content of the saved reply.
25
+ */
26
+ readonly content: pulumi.Output<string>;
27
+ /**
28
+ * The name of the saved reply.
29
+ */
30
+ readonly name: pulumi.Output<string>;
31
+ /**
32
+ * The ID or full path of the project.
33
+ */
34
+ readonly project: pulumi.Output<string>;
35
+ /**
36
+ * Create a ProjectSavedReply resource with the given unique name, arguments, and options.
37
+ *
38
+ * @param name The _unique_ name of the resource.
39
+ * @param args The arguments to use to populate this resource's properties.
40
+ * @param opts A bag of options that control this resource's behavior.
41
+ */
42
+ constructor(name: string, args: ProjectSavedReplyArgs, opts?: pulumi.CustomResourceOptions);
43
+ }
44
+ /**
45
+ * Input properties used for looking up and filtering ProjectSavedReply resources.
46
+ */
47
+ export interface ProjectSavedReplyState {
48
+ /**
49
+ * The content of the saved reply.
50
+ */
51
+ content?: pulumi.Input<string | undefined>;
52
+ /**
53
+ * The name of the saved reply.
54
+ */
55
+ name?: pulumi.Input<string | undefined>;
56
+ /**
57
+ * The ID or full path of the project.
58
+ */
59
+ project?: pulumi.Input<string | undefined>;
60
+ }
61
+ /**
62
+ * The set of arguments for constructing a ProjectSavedReply resource.
63
+ */
64
+ export interface ProjectSavedReplyArgs {
65
+ /**
66
+ * The content of the saved reply.
67
+ */
68
+ content: pulumi.Input<string>;
69
+ /**
70
+ * The name of the saved reply.
71
+ */
72
+ name?: pulumi.Input<string | undefined>;
73
+ /**
74
+ * The ID or full path of the project.
75
+ */
76
+ project: pulumi.Input<string>;
77
+ }
78
+ //# sourceMappingURL=projectSavedReply.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectSavedReply.d.ts","sourceRoot":"","sources":["../projectSavedReply.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;GAIG;AACH,qBAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,sBAAsB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,iBAAiB;IAOpJ;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,iBAAiB;IAO5D;;OAEG;IACH,SAAwB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACvD;;OAEG;IACH,SAAwB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACpD;;OAEG;IACH,SAAwB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAEvD;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAwB7F;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACjC"}
@@ -25,19 +25,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  return result;
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.Label = void 0;
28
+ exports.ProjectSavedReply = void 0;
29
29
  const pulumi = __importStar(require("@pulumi/pulumi"));
30
30
  const utilities = __importStar(require("./utilities"));
31
31
  /**
32
- * The `gitlab.Label` resource manages the lifecycle of a project label.
32
+ * The `gitlab.ProjectSavedReply` resource manages a comment template (saved reply) shared across a project. Requires Premium or Ultimate.
33
33
  *
34
- * > This resource is deprecated and will be removed in 19.0. Use `gitlab.ProjectLabel`instead.
35
- *
36
- * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/labels/#get-a-single-project-label)
34
+ * **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/api/graphql/reference/#mutationprojectsavedreplycreate)
37
35
  */
38
- class Label extends pulumi.CustomResource {
36
+ class ProjectSavedReply extends pulumi.CustomResource {
39
37
  /**
40
- * Get an existing Label resource's state with the given name, ID, and optional extra
38
+ * Get an existing ProjectSavedReply resource's state with the given name, ID, and optional extra
41
39
  * properties used to qualify the lookup.
42
40
  *
43
41
  * @param name The _unique_ name of the resulting resource.
@@ -46,50 +44,44 @@ class Label extends pulumi.CustomResource {
46
44
  * @param opts Optional settings to control the behavior of the CustomResource.
47
45
  */
48
46
  static get(name, id, state, opts) {
49
- return new Label(name, state, { ...opts, id: id });
47
+ return new ProjectSavedReply(name, state, { ...opts, id: id });
50
48
  }
51
49
  /** @internal */
52
- static __pulumiType = 'gitlab:index/label:Label';
50
+ static __pulumiType = 'gitlab:index/projectSavedReply:ProjectSavedReply';
53
51
  /**
54
- * Returns true if the given object is an instance of Label. This is designed to work even
52
+ * Returns true if the given object is an instance of ProjectSavedReply. This is designed to work even
55
53
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
56
54
  */
57
55
  static isInstance(obj) {
58
56
  if (obj === undefined || obj === null) {
59
57
  return false;
60
58
  }
61
- return obj['__pulumiType'] === Label.__pulumiType;
59
+ return obj['__pulumiType'] === ProjectSavedReply.__pulumiType;
62
60
  }
63
61
  constructor(name, argsOrState, opts) {
64
62
  let resourceInputs = {};
65
63
  opts = opts || {};
66
64
  if (opts.id) {
67
65
  const state = argsOrState;
68
- resourceInputs["color"] = state?.color;
69
- resourceInputs["colorHex"] = state?.colorHex;
70
- resourceInputs["description"] = state?.description;
71
- resourceInputs["labelId"] = state?.labelId;
66
+ resourceInputs["content"] = state?.content;
72
67
  resourceInputs["name"] = state?.name;
73
68
  resourceInputs["project"] = state?.project;
74
69
  }
75
70
  else {
76
71
  const args = argsOrState;
77
- if (args?.color === undefined && !opts.urn) {
78
- throw new Error("Missing required property 'color'");
72
+ if (args?.content === undefined && !opts.urn) {
73
+ throw new Error("Missing required property 'content'");
79
74
  }
80
75
  if (args?.project === undefined && !opts.urn) {
81
76
  throw new Error("Missing required property 'project'");
82
77
  }
83
- resourceInputs["color"] = args?.color;
84
- resourceInputs["description"] = args?.description;
78
+ resourceInputs["content"] = args?.content;
85
79
  resourceInputs["name"] = args?.name;
86
80
  resourceInputs["project"] = args?.project;
87
- resourceInputs["colorHex"] = undefined /*out*/;
88
- resourceInputs["labelId"] = undefined /*out*/;
89
81
  }
90
82
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
91
- super(Label.__pulumiType, name, resourceInputs, opts);
83
+ super(ProjectSavedReply.__pulumiType, name, resourceInputs, opts);
92
84
  }
93
85
  }
94
- exports.Label = Label;
95
- //# sourceMappingURL=label.js.map
86
+ exports.ProjectSavedReply = ProjectSavedReply;
87
+ //# sourceMappingURL=projectSavedReply.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectSavedReply.js","sourceRoot":"","sources":["../projectSavedReply.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;GAIG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAA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,GAAG,IAAI,EAAE,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AAvEL,8CAwEC"}
@@ -0,0 +1,152 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * The `gitlab.ProjectServiceAccount` resource allows creating a GitLab project service account.
6
+ *
7
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/service_accounts/#project-service-accounts)
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as gitlab from "@pulumi/gitlab";
14
+ *
15
+ * const example = new gitlab.Project("example", {
16
+ * name: "example",
17
+ * description: "An example project",
18
+ * });
19
+ * // The service account against the project
20
+ * const exampleSa = new gitlab.ProjectServiceAccount("example_sa", {
21
+ * project: example.id,
22
+ * name: "example-name",
23
+ * username: "example-username",
24
+ * });
25
+ * // To assign the service account to a project as a member
26
+ * const exampleMembership = new gitlab.ProjectMembership("example_membership", {
27
+ * project: example.id,
28
+ * userId: exampleSa.serviceAccountId.apply(x =>Number(x)),
29
+ * accessLevel: "developer",
30
+ * expiresAt: "2020-03-14",
31
+ * });
32
+ * ```
33
+ *
34
+ * ## Import
35
+ *
36
+ * Starting in Terraform v1.5.0, you can use an import block to import `gitlab.ProjectServiceAccount`. For example:
37
+ *
38
+ * Importing using the CLI is supported with the following syntax:
39
+ *
40
+ * `id` is in the form of <project_id>:<service_account_id>
41
+ *
42
+ * ```sh
43
+ * $ pulumi import gitlab:index/projectServiceAccount:ProjectServiceAccount example example
44
+ * ```
45
+ */
46
+ export declare class ProjectServiceAccount extends pulumi.CustomResource {
47
+ /**
48
+ * Get an existing ProjectServiceAccount resource's state with the given name, ID, and optional extra
49
+ * properties used to qualify the lookup.
50
+ *
51
+ * @param name The _unique_ name of the resulting resource.
52
+ * @param id The _unique_ provider ID of the resource to lookup.
53
+ * @param state Any extra arguments used during the lookup.
54
+ * @param opts Optional settings to control the behavior of the CustomResource.
55
+ */
56
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectServiceAccountState, opts?: pulumi.CustomResourceOptions): ProjectServiceAccount;
57
+ /**
58
+ * Returns true if the given object is an instance of ProjectServiceAccount. This is designed to work even
59
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
60
+ */
61
+ static isInstance(obj: any): obj is ProjectServiceAccount;
62
+ /**
63
+ * User account email. If not specified, generates an email prepended with `service_account_project_`. Custom email addresses require confirmation before the account is active, unless the parent group has a matching verified domain.
64
+ */
65
+ readonly email: pulumi.Output<string>;
66
+ /**
67
+ * The name of the user. If not specified, the default Service account user name is used.
68
+ */
69
+ readonly name: pulumi.Output<string>;
70
+ /**
71
+ * The ID or URL-encoded path of the project that the service account is created in.
72
+ */
73
+ readonly project: pulumi.Output<string>;
74
+ /**
75
+ * The service account id.
76
+ */
77
+ readonly serviceAccountId: pulumi.Output<string>;
78
+ /**
79
+ * If set to `true`, skip waiting for the service account to be fully deleted. This is recommended for gitlab.com where deletion can take a while due to asynchronous processing. Defaults to `false`.
80
+ */
81
+ readonly skipWaitForDeletion: pulumi.Output<boolean | undefined>;
82
+ readonly timeouts: pulumi.Output<outputs.ProjectServiceAccountTimeouts | undefined>;
83
+ /**
84
+ * The username of the user. If not specified, it’s automatically generated.
85
+ */
86
+ readonly username: pulumi.Output<string | undefined>;
87
+ /**
88
+ * Create a ProjectServiceAccount resource with the given unique name, arguments, and options.
89
+ *
90
+ * @param name The _unique_ name of the resource.
91
+ * @param args The arguments to use to populate this resource's properties.
92
+ * @param opts A bag of options that control this resource's behavior.
93
+ */
94
+ constructor(name: string, args: ProjectServiceAccountArgs, opts?: pulumi.CustomResourceOptions);
95
+ }
96
+ /**
97
+ * Input properties used for looking up and filtering ProjectServiceAccount resources.
98
+ */
99
+ export interface ProjectServiceAccountState {
100
+ /**
101
+ * User account email. If not specified, generates an email prepended with `service_account_project_`. Custom email addresses require confirmation before the account is active, unless the parent group has a matching verified domain.
102
+ */
103
+ email?: pulumi.Input<string | undefined>;
104
+ /**
105
+ * The name of the user. If not specified, the default Service account user name is used.
106
+ */
107
+ name?: pulumi.Input<string | undefined>;
108
+ /**
109
+ * The ID or URL-encoded path of the project that the service account is created in.
110
+ */
111
+ project?: pulumi.Input<string | undefined>;
112
+ /**
113
+ * The service account id.
114
+ */
115
+ serviceAccountId?: pulumi.Input<string | undefined>;
116
+ /**
117
+ * If set to `true`, skip waiting for the service account to be fully deleted. This is recommended for gitlab.com where deletion can take a while due to asynchronous processing. Defaults to `false`.
118
+ */
119
+ skipWaitForDeletion?: pulumi.Input<boolean | undefined>;
120
+ timeouts?: pulumi.Input<inputs.ProjectServiceAccountTimeouts | undefined>;
121
+ /**
122
+ * The username of the user. If not specified, it’s automatically generated.
123
+ */
124
+ username?: pulumi.Input<string | undefined>;
125
+ }
126
+ /**
127
+ * The set of arguments for constructing a ProjectServiceAccount resource.
128
+ */
129
+ export interface ProjectServiceAccountArgs {
130
+ /**
131
+ * User account email. If not specified, generates an email prepended with `service_account_project_`. Custom email addresses require confirmation before the account is active, unless the parent group has a matching verified domain.
132
+ */
133
+ email?: pulumi.Input<string | undefined>;
134
+ /**
135
+ * The name of the user. If not specified, the default Service account user name is used.
136
+ */
137
+ name?: pulumi.Input<string | undefined>;
138
+ /**
139
+ * The ID or URL-encoded path of the project that the service account is created in.
140
+ */
141
+ project: pulumi.Input<string>;
142
+ /**
143
+ * If set to `true`, skip waiting for the service account to be fully deleted. This is recommended for gitlab.com where deletion can take a while due to asynchronous processing. Defaults to `false`.
144
+ */
145
+ skipWaitForDeletion?: pulumi.Input<boolean | undefined>;
146
+ timeouts?: pulumi.Input<inputs.ProjectServiceAccountTimeouts | undefined>;
147
+ /**
148
+ * The username of the user. If not specified, it’s automatically generated.
149
+ */
150
+ username?: pulumi.Input<string | undefined>;
151
+ }
152
+ //# sourceMappingURL=projectServiceAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectServiceAccount.d.ts","sourceRoot":"","sources":["../projectServiceAccount.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,qBAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,0BAA0B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,qBAAqB;IAO5J;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,qBAAqB;IAOhE;;OAEG;IACH,SAAwB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACrD;;OAEG;IACH,SAAwB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACpD;;OAEG;IACH,SAAwB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACvD;;OAEG;IACH,SAAgC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACxE;;OAEG;IACH,SAAwB,mBAAmB,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAChF,SAAwB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,OA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AC;IAC9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,6BAA6B,GAAG,SAAS,CAAC,CAAC;IAC1E;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC/C"}
@@ -25,15 +25,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  return result;
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.IntegrationPipelinesEmail = void 0;
28
+ exports.ProjectServiceAccount = void 0;
29
29
  const pulumi = __importStar(require("@pulumi/pulumi"));
30
30
  const utilities = __importStar(require("./utilities"));
31
31
  /**
32
- * The `gitlab.IntegrationPipelinesEmail` resource manages the lifecycle of a project integration with the Pipeline Emails Service.
32
+ * The `gitlab.ProjectServiceAccount` resource allows creating a GitLab project service account.
33
33
  *
34
- * > This resource is deprecated and will be removed in 19.0. Use `gitlab.ProjectIntegrationPipelinesEmail` instead.
35
- *
36
- * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/project_integrations/#pipeline-status-emails)
34
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/service_accounts/#project-service-accounts)
37
35
  *
38
36
  * ## Example Usage
39
37
  *
@@ -41,34 +39,40 @@ const utilities = __importStar(require("./utilities"));
41
39
  * import * as pulumi from "@pulumi/pulumi";
42
40
  * import * as gitlab from "@pulumi/gitlab";
43
41
  *
44
- * const awesomeProject = new gitlab.Project("awesome_project", {
45
- * name: "awesome_project",
46
- * description: "My awesome project.",
47
- * visibilityLevel: "public",
42
+ * const example = new gitlab.Project("example", {
43
+ * name: "example",
44
+ * description: "An example project",
45
+ * });
46
+ * // The service account against the project
47
+ * const exampleSa = new gitlab.ProjectServiceAccount("example_sa", {
48
+ * project: example.id,
49
+ * name: "example-name",
50
+ * username: "example-username",
48
51
  * });
49
- * const email = new gitlab.IntegrationPipelinesEmail("email", {
50
- * project: awesomeProject.id,
51
- * recipients: ["gitlab@user.create"],
52
- * notifyOnlyBrokenPipelines: true,
53
- * branchesToBeNotified: "all",
52
+ * // To assign the service account to a project as a member
53
+ * const exampleMembership = new gitlab.ProjectMembership("example_membership", {
54
+ * project: example.id,
55
+ * userId: exampleSa.serviceAccountId.apply(x =>Number(x)),
56
+ * accessLevel: "developer",
57
+ * expiresAt: "2020-03-14",
54
58
  * });
55
59
  * ```
56
60
  *
57
61
  * ## Import
58
62
  *
59
- * Starting in Terraform v1.5.0, you can use an import block to import `gitlab.IntegrationPipelinesEmail`. For example:
63
+ * Starting in Terraform v1.5.0, you can use an import block to import `gitlab.ProjectServiceAccount`. For example:
60
64
  *
61
65
  * Importing using the CLI is supported with the following syntax:
62
66
  *
63
- * You can import a gitlab.IntegrationPipelinesEmail state using the project ID, for example:
67
+ * `id` is in the form of <project_id>:<service_account_id>
64
68
  *
65
69
  * ```sh
66
- * $ pulumi import gitlab:index/integrationPipelinesEmail:IntegrationPipelinesEmail email 1
70
+ * $ pulumi import gitlab:index/projectServiceAccount:ProjectServiceAccount example example
67
71
  * ```
68
72
  */
69
- class IntegrationPipelinesEmail extends pulumi.CustomResource {
73
+ class ProjectServiceAccount extends pulumi.CustomResource {
70
74
  /**
71
- * Get an existing IntegrationPipelinesEmail resource's state with the given name, ID, and optional extra
75
+ * Get an existing ProjectServiceAccount resource's state with the given name, ID, and optional extra
72
76
  * properties used to qualify the lookup.
73
77
  *
74
78
  * @param name The _unique_ name of the resulting resource.
@@ -77,46 +81,49 @@ class IntegrationPipelinesEmail extends pulumi.CustomResource {
77
81
  * @param opts Optional settings to control the behavior of the CustomResource.
78
82
  */
79
83
  static get(name, id, state, opts) {
80
- return new IntegrationPipelinesEmail(name, state, { ...opts, id: id });
84
+ return new ProjectServiceAccount(name, state, { ...opts, id: id });
81
85
  }
82
86
  /** @internal */
83
- static __pulumiType = 'gitlab:index/integrationPipelinesEmail:IntegrationPipelinesEmail';
87
+ static __pulumiType = 'gitlab:index/projectServiceAccount:ProjectServiceAccount';
84
88
  /**
85
- * Returns true if the given object is an instance of IntegrationPipelinesEmail. This is designed to work even
89
+ * Returns true if the given object is an instance of ProjectServiceAccount. This is designed to work even
86
90
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
87
91
  */
88
92
  static isInstance(obj) {
89
93
  if (obj === undefined || obj === null) {
90
94
  return false;
91
95
  }
92
- return obj['__pulumiType'] === IntegrationPipelinesEmail.__pulumiType;
96
+ return obj['__pulumiType'] === ProjectServiceAccount.__pulumiType;
93
97
  }
94
98
  constructor(name, argsOrState, opts) {
95
99
  let resourceInputs = {};
96
100
  opts = opts || {};
97
101
  if (opts.id) {
98
102
  const state = argsOrState;
99
- resourceInputs["branchesToBeNotified"] = state?.branchesToBeNotified;
100
- resourceInputs["notifyOnlyBrokenPipelines"] = state?.notifyOnlyBrokenPipelines;
103
+ resourceInputs["email"] = state?.email;
104
+ resourceInputs["name"] = state?.name;
101
105
  resourceInputs["project"] = state?.project;
102
- resourceInputs["recipients"] = state?.recipients;
106
+ resourceInputs["serviceAccountId"] = state?.serviceAccountId;
107
+ resourceInputs["skipWaitForDeletion"] = state?.skipWaitForDeletion;
108
+ resourceInputs["timeouts"] = state?.timeouts;
109
+ resourceInputs["username"] = state?.username;
103
110
  }
104
111
  else {
105
112
  const args = argsOrState;
106
113
  if (args?.project === undefined && !opts.urn) {
107
114
  throw new Error("Missing required property 'project'");
108
115
  }
109
- if (args?.recipients === undefined && !opts.urn) {
110
- throw new Error("Missing required property 'recipients'");
111
- }
112
- resourceInputs["branchesToBeNotified"] = args?.branchesToBeNotified;
113
- resourceInputs["notifyOnlyBrokenPipelines"] = args?.notifyOnlyBrokenPipelines;
116
+ resourceInputs["email"] = args?.email;
117
+ resourceInputs["name"] = args?.name;
114
118
  resourceInputs["project"] = args?.project;
115
- resourceInputs["recipients"] = args?.recipients;
119
+ resourceInputs["skipWaitForDeletion"] = args?.skipWaitForDeletion;
120
+ resourceInputs["timeouts"] = args?.timeouts;
121
+ resourceInputs["username"] = args?.username;
122
+ resourceInputs["serviceAccountId"] = undefined /*out*/;
116
123
  }
117
124
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
118
- super(IntegrationPipelinesEmail.__pulumiType, name, resourceInputs, opts);
125
+ super(ProjectServiceAccount.__pulumiType, name, resourceInputs, opts);
119
126
  }
120
127
  }
121
- exports.IntegrationPipelinesEmail = IntegrationPipelinesEmail;
122
- //# sourceMappingURL=integrationPipelinesEmail.js.map
128
+ exports.ProjectServiceAccount = ProjectServiceAccount;
129
+ //# sourceMappingURL=projectServiceAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectServiceAccount.js","sourceRoot":"","sources":["../projectServiceAccount.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,0DAA0D,CAAC;IAEjG;;;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,qBAAqB,CAAC,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C,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC1D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AAzFL,sDA0FC"}
@@ -45,12 +45,6 @@ export declare class ProjectShareGroup extends pulumi.CustomResource {
45
45
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
46
46
  */
47
47
  static isInstance(obj: any): obj is ProjectShareGroup;
48
- /**
49
- * The access level to grant the group for the project. Valid values are: `no one`, `minimal`, `guest`, `planner`, `reporter`, `developer`, `maintainer`, `owner`
50
- *
51
- * @deprecated Use `groupAccess` instead of the `accessLevel` attribute.
52
- */
53
- readonly accessLevel: pulumi.Output<string | undefined>;
54
48
  /**
55
49
  * Share expiration date. Format: `YYYY-MM-DD`
56
50
  */
@@ -58,7 +52,7 @@ export declare class ProjectShareGroup extends pulumi.CustomResource {
58
52
  /**
59
53
  * The access level to grant the group for the project. Valid values are: `no one`, `minimal`, `guest`, `planner`, `reporter`, `developer`, `maintainer`, `owner`
60
54
  */
61
- readonly groupAccess: pulumi.Output<string | undefined>;
55
+ readonly groupAccess: pulumi.Output<string>;
62
56
  /**
63
57
  * The id of the group.
64
58
  */
@@ -80,12 +74,6 @@ export declare class ProjectShareGroup extends pulumi.CustomResource {
80
74
  * Input properties used for looking up and filtering ProjectShareGroup resources.
81
75
  */
82
76
  export interface ProjectShareGroupState {
83
- /**
84
- * The access level to grant the group for the project. Valid values are: `no one`, `minimal`, `guest`, `planner`, `reporter`, `developer`, `maintainer`, `owner`
85
- *
86
- * @deprecated Use `groupAccess` instead of the `accessLevel` attribute.
87
- */
88
- accessLevel?: pulumi.Input<string | undefined>;
89
77
  /**
90
78
  * Share expiration date. Format: `YYYY-MM-DD`
91
79
  */
@@ -107,12 +95,6 @@ export interface ProjectShareGroupState {
107
95
  * The set of arguments for constructing a ProjectShareGroup resource.
108
96
  */
109
97
  export interface ProjectShareGroupArgs {
110
- /**
111
- * The access level to grant the group for the project. Valid values are: `no one`, `minimal`, `guest`, `planner`, `reporter`, `developer`, `maintainer`, `owner`
112
- *
113
- * @deprecated Use `groupAccess` instead of the `accessLevel` attribute.
114
- */
115
- accessLevel?: pulumi.Input<string | undefined>;
116
98
  /**
117
99
  * Share expiration date. Format: `YYYY-MM-DD`
118
100
  */
@@ -120,7 +102,7 @@ export interface ProjectShareGroupArgs {
120
102
  /**
121
103
  * The access level to grant the group for the project. Valid values are: `no one`, `minimal`, `guest`, `planner`, `reporter`, `developer`, `maintainer`, `owner`
122
104
  */
123
- groupAccess?: pulumi.Input<string | undefined>;
105
+ groupAccess: pulumi.Input<string>;
124
106
  /**
125
107
  * The id of the group.
126
108
  */
@@ -1 +1 @@
1
- {"version":3,"file":"projectShareGroup.d.ts","sourceRoot":"","sources":["../projectShareGroup.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,sBAAsB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,iBAAiB;IAOpJ;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,iBAAiB;IAO5D;;;;OAIG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACvE;;OAEG;IACH,SAAwB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MA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7C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACjC"}
@@ -88,7 +88,6 @@ class ProjectShareGroup extends pulumi.CustomResource {
88
88
  opts = opts || {};
89
89
  if (opts.id) {
90
90
  const state = argsOrState;
91
- resourceInputs["accessLevel"] = state?.accessLevel;
92
91
  resourceInputs["expiresAt"] = state?.expiresAt;
93
92
  resourceInputs["groupAccess"] = state?.groupAccess;
94
93
  resourceInputs["groupId"] = state?.groupId;
@@ -96,13 +95,15 @@ class ProjectShareGroup extends pulumi.CustomResource {
96
95
  }
97
96
  else {
98
97
  const args = argsOrState;
98
+ if (args?.groupAccess === undefined && !opts.urn) {
99
+ throw new Error("Missing required property 'groupAccess'");
100
+ }
99
101
  if (args?.groupId === undefined && !opts.urn) {
100
102
  throw new Error("Missing required property 'groupId'");
101
103
  }
102
104
  if (args?.project === undefined && !opts.urn) {
103
105
  throw new Error("Missing required property 'project'");
104
106
  }
105
- resourceInputs["accessLevel"] = args?.accessLevel;
106
107
  resourceInputs["expiresAt"] = args?.expiresAt;
107
108
  resourceInputs["groupAccess"] = args?.groupAccess;
108
109
  resourceInputs["groupId"] = args?.groupId;
@@ -1 +1 @@
1
- {"version":3,"file":"projectShareGroup.js","sourceRoot":"","sources":["../projectShareGroup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACxE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,kDAAkD,CAAC;IAEzF;;;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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;IAiCD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAA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AC;aAC1D;YACD,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AAhFL,8CAiFC"}
@@ -29,7 +29,7 @@ import * as pulumi from "@pulumi/pulumi";
29
29
  *
30
30
  * Importing using the CLI is supported with the following syntax:
31
31
  *
32
- * A GitLab Project targer branch rule can be imported using a key composed of `<project>:<target-branch-rule-id>`, for example:
32
+ * A GitLab Project target branch rule can be imported using a key composed of `<project>:<target-branch-rule-id>`, for example:
33
33
  *
34
34
  * ```sh
35
35
  * $ pulumi import gitlab:index/projectTargetBranchRule:ProjectTargetBranchRule example "12345:1"
@@ -58,7 +58,7 @@ const utilities = __importStar(require("./utilities"));
58
58
  *
59
59
  * Importing using the CLI is supported with the following syntax:
60
60
  *
61
- * A GitLab Project targer branch rule can be imported using a key composed of `<project>:<target-branch-rule-id>`, for example:
61
+ * A GitLab Project target branch rule can be imported using a key composed of `<project>:<target-branch-rule-id>`, for example:
62
62
  *
63
63
  * ```sh
64
64
  * $ pulumi import gitlab:index/projectTargetBranchRule:ProjectTargetBranchRule example "12345:1"