pulumi-gitlab 9.3.0a1759182301__py3-none-any.whl → 9.8.1__py3-none-any.whl
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.
- pulumi_gitlab/__init__.py +107 -0
- pulumi_gitlab/_inputs.py +795 -0
- pulumi_gitlab/application_settings.py +16 -7
- pulumi_gitlab/branch.py +1 -1
- pulumi_gitlab/cluster_agent_token.py +1 -1
- pulumi_gitlab/config/__init__.pyi +15 -0
- pulumi_gitlab/config/vars.py +21 -0
- pulumi_gitlab/deploy_key_enable.py +4 -42
- pulumi_gitlab/deploy_token.py +11 -7
- pulumi_gitlab/get_artifact_file.py +266 -0
- pulumi_gitlab/get_branch.py +1 -1
- pulumi_gitlab/get_cluster_agent.py +3 -3
- pulumi_gitlab/get_cluster_agents.py +6 -6
- pulumi_gitlab/get_current_user.py +1 -1
- pulumi_gitlab/get_group.py +2 -2
- pulumi_gitlab/get_group_billable_member_memberships.py +2 -2
- pulumi_gitlab/get_group_hook.py +22 -3
- pulumi_gitlab/get_group_hooks.py +7 -3
- pulumi_gitlab/get_group_membership.py +2 -2
- pulumi_gitlab/get_group_saml_links.py +114 -0
- pulumi_gitlab/get_group_service_account.py +6 -2
- pulumi_gitlab/get_group_service_account_access_tokens.py +138 -0
- pulumi_gitlab/get_group_subgroups.py +1 -1
- pulumi_gitlab/get_group_variable.py +1 -1
- pulumi_gitlab/get_groups.py +1 -1
- pulumi_gitlab/get_instance_deploy_keys.py +1 -1
- pulumi_gitlab/get_instance_service_account.py +2 -2
- pulumi_gitlab/get_instance_variable.py +7 -7
- pulumi_gitlab/get_instance_variables.py +4 -4
- pulumi_gitlab/get_member_role.py +200 -0
- pulumi_gitlab/get_project.py +27 -7
- pulumi_gitlab/get_project_approval_rules.py +137 -0
- pulumi_gitlab/get_project_branches.py +1 -1
- pulumi_gitlab/get_project_hook.py +20 -5
- pulumi_gitlab/get_project_hooks.py +1 -1
- pulumi_gitlab/get_project_issue_label_events.py +170 -0
- pulumi_gitlab/get_project_membership.py +34 -16
- pulumi_gitlab/get_project_milestone.py +1 -1
- pulumi_gitlab/get_project_milestones.py +1 -1
- pulumi_gitlab/get_project_protected_tag.py +2 -2
- pulumi_gitlab/get_project_secure_file.py +247 -0
- pulumi_gitlab/get_project_tag.py +2 -2
- pulumi_gitlab/get_project_tags.py +1 -1
- pulumi_gitlab/get_project_variable.py +12 -12
- pulumi_gitlab/get_project_variables.py +4 -4
- pulumi_gitlab/get_projects.py +3 -3
- pulumi_gitlab/get_release_link.py +9 -9
- pulumi_gitlab/get_release_links.py +4 -4
- pulumi_gitlab/get_repository_file.py +1 -1
- pulumi_gitlab/get_repository_tree.py +1 -1
- pulumi_gitlab/get_security_policy_document.py +170 -0
- pulumi_gitlab/get_user.py +33 -1
- pulumi_gitlab/get_users.py +22 -2
- pulumi_gitlab/global_level_notifications.py +2 -2
- pulumi_gitlab/group.py +148 -7
- pulumi_gitlab/group_access_token.py +54 -7
- pulumi_gitlab/group_deploy_token.py +582 -0
- pulumi_gitlab/group_hook.py +163 -112
- pulumi_gitlab/group_label.py +7 -7
- pulumi_gitlab/group_level_mr_approvals.py +509 -0
- pulumi_gitlab/group_membership.py +10 -10
- pulumi_gitlab/group_service_account.py +38 -2
- pulumi_gitlab/group_service_account_access_token.py +146 -5
- pulumi_gitlab/group_share_group.py +13 -9
- pulumi_gitlab/instance_service_account.py +3 -3
- pulumi_gitlab/instance_variable.py +12 -12
- pulumi_gitlab/integration_custom_issue_tracker.py +4 -0
- pulumi_gitlab/integration_emails_on_push.py +9 -7
- pulumi_gitlab/integration_harbor.py +4 -0
- pulumi_gitlab/integration_jenkins.py +4 -0
- pulumi_gitlab/integration_redmine.py +4 -2
- pulumi_gitlab/integration_telegram.py +4 -0
- pulumi_gitlab/label.py +11 -7
- pulumi_gitlab/member_role.py +9 -9
- pulumi_gitlab/outputs.py +1279 -112
- pulumi_gitlab/pages_domain.py +7 -7
- pulumi_gitlab/personal_access_token.py +52 -5
- pulumi_gitlab/pipeline_schedule_variable.py +2 -2
- pulumi_gitlab/project.py +241 -105
- pulumi_gitlab/project_access_token.py +52 -5
- pulumi_gitlab/project_approval_rule.py +120 -0
- pulumi_gitlab/project_cicd_catalog.py +314 -0
- pulumi_gitlab/project_deploy_token.py +582 -0
- pulumi_gitlab/project_environment.py +4 -4
- pulumi_gitlab/project_external_status_check.py +469 -0
- pulumi_gitlab/project_freeze_period.py +22 -22
- pulumi_gitlab/project_hook.py +162 -109
- pulumi_gitlab/project_integration_emails_on_push.py +17 -7
- pulumi_gitlab/project_issue_link.py +502 -0
- pulumi_gitlab/project_job_token_scope.py +24 -4
- pulumi_gitlab/project_job_token_scopes.py +14 -14
- pulumi_gitlab/project_label.py +11 -11
- pulumi_gitlab/project_level_mr_approvals.py +2 -2
- pulumi_gitlab/project_level_notifications.py +2 -2
- pulumi_gitlab/project_membership.py +9 -9
- pulumi_gitlab/project_mirror.py +8 -6
- pulumi_gitlab/project_package_dependency_proxy.py +446 -0
- pulumi_gitlab/project_protected_environment.py +14 -14
- pulumi_gitlab/project_pull_mirror.py +837 -0
- pulumi_gitlab/project_push_mirror.py +547 -0
- pulumi_gitlab/project_secure_file.py +489 -0
- pulumi_gitlab/project_tag.py +3 -3
- pulumi_gitlab/project_target_branch_rule.py +2 -2
- pulumi_gitlab/project_variable.py +7 -7
- pulumi_gitlab/project_wiki_page.py +30 -0
- pulumi_gitlab/provider.py +76 -0
- pulumi_gitlab/pulumi-plugin.json +1 -1
- pulumi_gitlab/release_link.py +19 -19
- pulumi_gitlab/runner.py +8 -4
- pulumi_gitlab/system_hook.py +7 -7
- pulumi_gitlab/user_avatar.py +386 -0
- pulumi_gitlab/user_gpg_key.py +2 -2
- pulumi_gitlab/user_impersonation_token.py +52 -5
- pulumi_gitlab/user_runner.py +14 -14
- pulumi_gitlab/user_ssh_key.py +2 -2
- pulumi_gitlab/value_stream_analytics.py +92 -0
- {pulumi_gitlab-9.3.0a1759182301.dist-info → pulumi_gitlab-9.8.1.dist-info}/METADATA +1 -1
- pulumi_gitlab-9.8.1.dist-info/RECORD +207 -0
- pulumi_gitlab-9.3.0a1759182301.dist-info/RECORD +0 -188
- {pulumi_gitlab-9.3.0a1759182301.dist-info → pulumi_gitlab-9.8.1.dist-info}/WHEEL +0 -0
- {pulumi_gitlab-9.3.0a1759182301.dist-info → pulumi_gitlab-9.8.1.dist-info}/top_level.txt +0 -0
pulumi_gitlab/project_hook.py
CHANGED
|
@@ -42,31 +42,33 @@ class ProjectHookArgs:
|
|
|
42
42
|
resource_access_token_events: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
43
43
|
tag_push_events: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
44
44
|
token: Optional[pulumi.Input[_builtins.str]] = None,
|
|
45
|
+
vulnerability_events: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
45
46
|
wiki_page_events: Optional[pulumi.Input[_builtins.bool]] = None):
|
|
46
47
|
"""
|
|
47
48
|
The set of arguments for constructing a ProjectHook resource.
|
|
48
49
|
:param pulumi.Input[_builtins.str] project: The name or id of the project to add the hook to.
|
|
49
50
|
:param pulumi.Input[_builtins.str] url: The url of the hook to invoke. Forces re-creation to preserve `token`.
|
|
50
|
-
:param pulumi.Input[_builtins.bool] confidential_issues_events: Invoke the hook for confidential issues events.
|
|
51
|
-
:param pulumi.Input[_builtins.bool] confidential_note_events: Invoke the hook for confidential note events.
|
|
52
|
-
:param pulumi.Input[Sequence[pulumi.Input['ProjectHookCustomHeaderArgs']]] custom_headers: Custom headers for the project webhook.
|
|
51
|
+
:param pulumi.Input[_builtins.bool] confidential_issues_events: Invoke the hook for confidential issues events. Defaults to `false`.
|
|
52
|
+
:param pulumi.Input[_builtins.bool] confidential_note_events: Invoke the hook for confidential note events. Defaults to `false`.
|
|
53
|
+
:param pulumi.Input[Sequence[pulumi.Input['ProjectHookCustomHeaderArgs']]] custom_headers: Custom headers for the project webhook. Available from GitLab 17.1 onwards.
|
|
53
54
|
:param pulumi.Input[_builtins.str] custom_webhook_template: Custom webhook template.
|
|
54
|
-
:param pulumi.Input[_builtins.bool] deployment_events: Invoke the hook for deployment events.
|
|
55
|
+
:param pulumi.Input[_builtins.bool] deployment_events: Invoke the hook for deployment events. Defaults to `false`.
|
|
55
56
|
:param pulumi.Input[_builtins.str] description: Description of the webhook.
|
|
56
|
-
:param pulumi.Input[_builtins.bool] enable_ssl_verification: Enable SSL verification when invoking the hook.
|
|
57
|
-
:param pulumi.Input[_builtins.bool] issues_events: Invoke the hook for issues events.
|
|
58
|
-
:param pulumi.Input[_builtins.bool] job_events: Invoke the hook for job events.
|
|
59
|
-
:param pulumi.Input[_builtins.bool] merge_requests_events: Invoke the hook for merge requests events.
|
|
57
|
+
:param pulumi.Input[_builtins.bool] enable_ssl_verification: Enable SSL verification when invoking the hook. Defaults to `true`.
|
|
58
|
+
:param pulumi.Input[_builtins.bool] issues_events: Invoke the hook for issues events. Defaults to `false`.
|
|
59
|
+
:param pulumi.Input[_builtins.bool] job_events: Invoke the hook for job events. Defaults to `false`.
|
|
60
|
+
:param pulumi.Input[_builtins.bool] merge_requests_events: Invoke the hook for merge requests events. Defaults to `false`.
|
|
60
61
|
:param pulumi.Input[_builtins.str] name: Name of the project webhook.
|
|
61
|
-
:param pulumi.Input[_builtins.bool] note_events: Invoke the hook for note events.
|
|
62
|
-
:param pulumi.Input[_builtins.bool] pipeline_events: Invoke the hook for pipeline events.
|
|
63
|
-
:param pulumi.Input[_builtins.bool] push_events: Invoke the hook for push events.
|
|
62
|
+
:param pulumi.Input[_builtins.bool] note_events: Invoke the hook for note events. Defaults to `false`.
|
|
63
|
+
:param pulumi.Input[_builtins.bool] pipeline_events: Invoke the hook for pipeline events. Defaults to `false`.
|
|
64
|
+
:param pulumi.Input[_builtins.bool] push_events: Invoke the hook for push events. Defaults to `true`.
|
|
64
65
|
:param pulumi.Input[_builtins.str] push_events_branch_filter: Invoke the hook for push events on matching branches only.
|
|
65
|
-
:param pulumi.Input[_builtins.bool] releases_events: Invoke the hook for release events.
|
|
66
|
-
:param pulumi.Input[_builtins.bool] resource_access_token_events: Invoke the hook for project access token expiry events.
|
|
67
|
-
:param pulumi.Input[_builtins.bool] tag_push_events: Invoke the hook for tag push events.
|
|
66
|
+
:param pulumi.Input[_builtins.bool] releases_events: Invoke the hook for release events. Defaults to `false`.
|
|
67
|
+
:param pulumi.Input[_builtins.bool] resource_access_token_events: Invoke the hook for project access token expiry events. Defaults to `false`.
|
|
68
|
+
:param pulumi.Input[_builtins.bool] tag_push_events: Invoke the hook for tag push events. Defaults to `false`.
|
|
68
69
|
:param pulumi.Input[_builtins.str] token: A token to present when invoking the hook. The token is not available for imported resources.
|
|
69
|
-
:param pulumi.Input[_builtins.bool]
|
|
70
|
+
:param pulumi.Input[_builtins.bool] vulnerability_events: Invoke the hook for vulnerability events. Defaults to `false`.
|
|
71
|
+
:param pulumi.Input[_builtins.bool] wiki_page_events: Invoke the hook for wiki page events. Defaults to `false`.
|
|
70
72
|
"""
|
|
71
73
|
pulumi.set(__self__, "project", project)
|
|
72
74
|
pulumi.set(__self__, "url", url)
|
|
@@ -108,6 +110,8 @@ class ProjectHookArgs:
|
|
|
108
110
|
pulumi.set(__self__, "tag_push_events", tag_push_events)
|
|
109
111
|
if token is not None:
|
|
110
112
|
pulumi.set(__self__, "token", token)
|
|
113
|
+
if vulnerability_events is not None:
|
|
114
|
+
pulumi.set(__self__, "vulnerability_events", vulnerability_events)
|
|
111
115
|
if wiki_page_events is not None:
|
|
112
116
|
pulumi.set(__self__, "wiki_page_events", wiki_page_events)
|
|
113
117
|
|
|
@@ -139,7 +143,7 @@ class ProjectHookArgs:
|
|
|
139
143
|
@pulumi.getter(name="confidentialIssuesEvents")
|
|
140
144
|
def confidential_issues_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
141
145
|
"""
|
|
142
|
-
Invoke the hook for confidential issues events.
|
|
146
|
+
Invoke the hook for confidential issues events. Defaults to `false`.
|
|
143
147
|
"""
|
|
144
148
|
return pulumi.get(self, "confidential_issues_events")
|
|
145
149
|
|
|
@@ -151,7 +155,7 @@ class ProjectHookArgs:
|
|
|
151
155
|
@pulumi.getter(name="confidentialNoteEvents")
|
|
152
156
|
def confidential_note_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
153
157
|
"""
|
|
154
|
-
Invoke the hook for confidential note events.
|
|
158
|
+
Invoke the hook for confidential note events. Defaults to `false`.
|
|
155
159
|
"""
|
|
156
160
|
return pulumi.get(self, "confidential_note_events")
|
|
157
161
|
|
|
@@ -163,7 +167,7 @@ class ProjectHookArgs:
|
|
|
163
167
|
@pulumi.getter(name="customHeaders")
|
|
164
168
|
def custom_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ProjectHookCustomHeaderArgs']]]]:
|
|
165
169
|
"""
|
|
166
|
-
Custom headers for the project webhook.
|
|
170
|
+
Custom headers for the project webhook. Available from GitLab 17.1 onwards.
|
|
167
171
|
"""
|
|
168
172
|
return pulumi.get(self, "custom_headers")
|
|
169
173
|
|
|
@@ -187,7 +191,7 @@ class ProjectHookArgs:
|
|
|
187
191
|
@pulumi.getter(name="deploymentEvents")
|
|
188
192
|
def deployment_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
189
193
|
"""
|
|
190
|
-
Invoke the hook for deployment events.
|
|
194
|
+
Invoke the hook for deployment events. Defaults to `false`.
|
|
191
195
|
"""
|
|
192
196
|
return pulumi.get(self, "deployment_events")
|
|
193
197
|
|
|
@@ -211,7 +215,7 @@ class ProjectHookArgs:
|
|
|
211
215
|
@pulumi.getter(name="enableSslVerification")
|
|
212
216
|
def enable_ssl_verification(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
213
217
|
"""
|
|
214
|
-
Enable SSL verification when invoking the hook.
|
|
218
|
+
Enable SSL verification when invoking the hook. Defaults to `true`.
|
|
215
219
|
"""
|
|
216
220
|
return pulumi.get(self, "enable_ssl_verification")
|
|
217
221
|
|
|
@@ -223,7 +227,7 @@ class ProjectHookArgs:
|
|
|
223
227
|
@pulumi.getter(name="issuesEvents")
|
|
224
228
|
def issues_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
225
229
|
"""
|
|
226
|
-
Invoke the hook for issues events.
|
|
230
|
+
Invoke the hook for issues events. Defaults to `false`.
|
|
227
231
|
"""
|
|
228
232
|
return pulumi.get(self, "issues_events")
|
|
229
233
|
|
|
@@ -235,7 +239,7 @@ class ProjectHookArgs:
|
|
|
235
239
|
@pulumi.getter(name="jobEvents")
|
|
236
240
|
def job_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
237
241
|
"""
|
|
238
|
-
Invoke the hook for job events.
|
|
242
|
+
Invoke the hook for job events. Defaults to `false`.
|
|
239
243
|
"""
|
|
240
244
|
return pulumi.get(self, "job_events")
|
|
241
245
|
|
|
@@ -247,7 +251,7 @@ class ProjectHookArgs:
|
|
|
247
251
|
@pulumi.getter(name="mergeRequestsEvents")
|
|
248
252
|
def merge_requests_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
249
253
|
"""
|
|
250
|
-
Invoke the hook for merge requests events.
|
|
254
|
+
Invoke the hook for merge requests events. Defaults to `false`.
|
|
251
255
|
"""
|
|
252
256
|
return pulumi.get(self, "merge_requests_events")
|
|
253
257
|
|
|
@@ -271,7 +275,7 @@ class ProjectHookArgs:
|
|
|
271
275
|
@pulumi.getter(name="noteEvents")
|
|
272
276
|
def note_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
273
277
|
"""
|
|
274
|
-
Invoke the hook for note events.
|
|
278
|
+
Invoke the hook for note events. Defaults to `false`.
|
|
275
279
|
"""
|
|
276
280
|
return pulumi.get(self, "note_events")
|
|
277
281
|
|
|
@@ -283,7 +287,7 @@ class ProjectHookArgs:
|
|
|
283
287
|
@pulumi.getter(name="pipelineEvents")
|
|
284
288
|
def pipeline_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
285
289
|
"""
|
|
286
|
-
Invoke the hook for pipeline events.
|
|
290
|
+
Invoke the hook for pipeline events. Defaults to `false`.
|
|
287
291
|
"""
|
|
288
292
|
return pulumi.get(self, "pipeline_events")
|
|
289
293
|
|
|
@@ -295,7 +299,7 @@ class ProjectHookArgs:
|
|
|
295
299
|
@pulumi.getter(name="pushEvents")
|
|
296
300
|
def push_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
297
301
|
"""
|
|
298
|
-
Invoke the hook for push events.
|
|
302
|
+
Invoke the hook for push events. Defaults to `true`.
|
|
299
303
|
"""
|
|
300
304
|
return pulumi.get(self, "push_events")
|
|
301
305
|
|
|
@@ -319,7 +323,7 @@ class ProjectHookArgs:
|
|
|
319
323
|
@pulumi.getter(name="releasesEvents")
|
|
320
324
|
def releases_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
321
325
|
"""
|
|
322
|
-
Invoke the hook for release events.
|
|
326
|
+
Invoke the hook for release events. Defaults to `false`.
|
|
323
327
|
"""
|
|
324
328
|
return pulumi.get(self, "releases_events")
|
|
325
329
|
|
|
@@ -331,7 +335,7 @@ class ProjectHookArgs:
|
|
|
331
335
|
@pulumi.getter(name="resourceAccessTokenEvents")
|
|
332
336
|
def resource_access_token_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
333
337
|
"""
|
|
334
|
-
Invoke the hook for project access token expiry events.
|
|
338
|
+
Invoke the hook for project access token expiry events. Defaults to `false`.
|
|
335
339
|
"""
|
|
336
340
|
return pulumi.get(self, "resource_access_token_events")
|
|
337
341
|
|
|
@@ -343,7 +347,7 @@ class ProjectHookArgs:
|
|
|
343
347
|
@pulumi.getter(name="tagPushEvents")
|
|
344
348
|
def tag_push_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
345
349
|
"""
|
|
346
|
-
Invoke the hook for tag push events.
|
|
350
|
+
Invoke the hook for tag push events. Defaults to `false`.
|
|
347
351
|
"""
|
|
348
352
|
return pulumi.get(self, "tag_push_events")
|
|
349
353
|
|
|
@@ -363,11 +367,23 @@ class ProjectHookArgs:
|
|
|
363
367
|
def token(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
364
368
|
pulumi.set(self, "token", value)
|
|
365
369
|
|
|
370
|
+
@_builtins.property
|
|
371
|
+
@pulumi.getter(name="vulnerabilityEvents")
|
|
372
|
+
def vulnerability_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
373
|
+
"""
|
|
374
|
+
Invoke the hook for vulnerability events. Defaults to `false`.
|
|
375
|
+
"""
|
|
376
|
+
return pulumi.get(self, "vulnerability_events")
|
|
377
|
+
|
|
378
|
+
@vulnerability_events.setter
|
|
379
|
+
def vulnerability_events(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
380
|
+
pulumi.set(self, "vulnerability_events", value)
|
|
381
|
+
|
|
366
382
|
@_builtins.property
|
|
367
383
|
@pulumi.getter(name="wikiPageEvents")
|
|
368
384
|
def wiki_page_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
369
385
|
"""
|
|
370
|
-
Invoke the hook for wiki page events.
|
|
386
|
+
Invoke the hook for wiki page events. Defaults to `false`.
|
|
371
387
|
"""
|
|
372
388
|
return pulumi.get(self, "wiki_page_events")
|
|
373
389
|
|
|
@@ -402,33 +418,35 @@ class _ProjectHookState:
|
|
|
402
418
|
tag_push_events: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
403
419
|
token: Optional[pulumi.Input[_builtins.str]] = None,
|
|
404
420
|
url: Optional[pulumi.Input[_builtins.str]] = None,
|
|
421
|
+
vulnerability_events: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
405
422
|
wiki_page_events: Optional[pulumi.Input[_builtins.bool]] = None):
|
|
406
423
|
"""
|
|
407
424
|
Input properties used for looking up and filtering ProjectHook resources.
|
|
408
|
-
:param pulumi.Input[_builtins.bool] confidential_issues_events: Invoke the hook for confidential issues events.
|
|
409
|
-
:param pulumi.Input[_builtins.bool] confidential_note_events: Invoke the hook for confidential note events.
|
|
410
|
-
:param pulumi.Input[Sequence[pulumi.Input['ProjectHookCustomHeaderArgs']]] custom_headers: Custom headers for the project webhook.
|
|
425
|
+
:param pulumi.Input[_builtins.bool] confidential_issues_events: Invoke the hook for confidential issues events. Defaults to `false`.
|
|
426
|
+
:param pulumi.Input[_builtins.bool] confidential_note_events: Invoke the hook for confidential note events. Defaults to `false`.
|
|
427
|
+
:param pulumi.Input[Sequence[pulumi.Input['ProjectHookCustomHeaderArgs']]] custom_headers: Custom headers for the project webhook. Available from GitLab 17.1 onwards.
|
|
411
428
|
:param pulumi.Input[_builtins.str] custom_webhook_template: Custom webhook template.
|
|
412
|
-
:param pulumi.Input[_builtins.bool] deployment_events: Invoke the hook for deployment events.
|
|
429
|
+
:param pulumi.Input[_builtins.bool] deployment_events: Invoke the hook for deployment events. Defaults to `false`.
|
|
413
430
|
:param pulumi.Input[_builtins.str] description: Description of the webhook.
|
|
414
|
-
:param pulumi.Input[_builtins.bool] enable_ssl_verification: Enable SSL verification when invoking the hook.
|
|
431
|
+
:param pulumi.Input[_builtins.bool] enable_ssl_verification: Enable SSL verification when invoking the hook. Defaults to `true`.
|
|
415
432
|
:param pulumi.Input[_builtins.int] hook_id: The id of the project hook.
|
|
416
|
-
:param pulumi.Input[_builtins.bool] issues_events: Invoke the hook for issues events.
|
|
417
|
-
:param pulumi.Input[_builtins.bool] job_events: Invoke the hook for job events.
|
|
418
|
-
:param pulumi.Input[_builtins.bool] merge_requests_events: Invoke the hook for merge requests events.
|
|
433
|
+
:param pulumi.Input[_builtins.bool] issues_events: Invoke the hook for issues events. Defaults to `false`.
|
|
434
|
+
:param pulumi.Input[_builtins.bool] job_events: Invoke the hook for job events. Defaults to `false`.
|
|
435
|
+
:param pulumi.Input[_builtins.bool] merge_requests_events: Invoke the hook for merge requests events. Defaults to `false`.
|
|
419
436
|
:param pulumi.Input[_builtins.str] name: Name of the project webhook.
|
|
420
|
-
:param pulumi.Input[_builtins.bool] note_events: Invoke the hook for note events.
|
|
421
|
-
:param pulumi.Input[_builtins.bool] pipeline_events: Invoke the hook for pipeline events.
|
|
437
|
+
:param pulumi.Input[_builtins.bool] note_events: Invoke the hook for note events. Defaults to `false`.
|
|
438
|
+
:param pulumi.Input[_builtins.bool] pipeline_events: Invoke the hook for pipeline events. Defaults to `false`.
|
|
422
439
|
:param pulumi.Input[_builtins.str] project: The name or id of the project to add the hook to.
|
|
423
440
|
:param pulumi.Input[_builtins.int] project_id: The id of the project for the hook.
|
|
424
|
-
:param pulumi.Input[_builtins.bool] push_events: Invoke the hook for push events.
|
|
441
|
+
:param pulumi.Input[_builtins.bool] push_events: Invoke the hook for push events. Defaults to `true`.
|
|
425
442
|
:param pulumi.Input[_builtins.str] push_events_branch_filter: Invoke the hook for push events on matching branches only.
|
|
426
|
-
:param pulumi.Input[_builtins.bool] releases_events: Invoke the hook for release events.
|
|
427
|
-
:param pulumi.Input[_builtins.bool] resource_access_token_events: Invoke the hook for project access token expiry events.
|
|
428
|
-
:param pulumi.Input[_builtins.bool] tag_push_events: Invoke the hook for tag push events.
|
|
443
|
+
:param pulumi.Input[_builtins.bool] releases_events: Invoke the hook for release events. Defaults to `false`.
|
|
444
|
+
:param pulumi.Input[_builtins.bool] resource_access_token_events: Invoke the hook for project access token expiry events. Defaults to `false`.
|
|
445
|
+
:param pulumi.Input[_builtins.bool] tag_push_events: Invoke the hook for tag push events. Defaults to `false`.
|
|
429
446
|
:param pulumi.Input[_builtins.str] token: A token to present when invoking the hook. The token is not available for imported resources.
|
|
430
447
|
:param pulumi.Input[_builtins.str] url: The url of the hook to invoke. Forces re-creation to preserve `token`.
|
|
431
|
-
:param pulumi.Input[_builtins.bool]
|
|
448
|
+
:param pulumi.Input[_builtins.bool] vulnerability_events: Invoke the hook for vulnerability events. Defaults to `false`.
|
|
449
|
+
:param pulumi.Input[_builtins.bool] wiki_page_events: Invoke the hook for wiki page events. Defaults to `false`.
|
|
432
450
|
"""
|
|
433
451
|
if confidential_issues_events is not None:
|
|
434
452
|
pulumi.set(__self__, "confidential_issues_events", confidential_issues_events)
|
|
@@ -476,6 +494,8 @@ class _ProjectHookState:
|
|
|
476
494
|
pulumi.set(__self__, "token", token)
|
|
477
495
|
if url is not None:
|
|
478
496
|
pulumi.set(__self__, "url", url)
|
|
497
|
+
if vulnerability_events is not None:
|
|
498
|
+
pulumi.set(__self__, "vulnerability_events", vulnerability_events)
|
|
479
499
|
if wiki_page_events is not None:
|
|
480
500
|
pulumi.set(__self__, "wiki_page_events", wiki_page_events)
|
|
481
501
|
|
|
@@ -483,7 +503,7 @@ class _ProjectHookState:
|
|
|
483
503
|
@pulumi.getter(name="confidentialIssuesEvents")
|
|
484
504
|
def confidential_issues_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
485
505
|
"""
|
|
486
|
-
Invoke the hook for confidential issues events.
|
|
506
|
+
Invoke the hook for confidential issues events. Defaults to `false`.
|
|
487
507
|
"""
|
|
488
508
|
return pulumi.get(self, "confidential_issues_events")
|
|
489
509
|
|
|
@@ -495,7 +515,7 @@ class _ProjectHookState:
|
|
|
495
515
|
@pulumi.getter(name="confidentialNoteEvents")
|
|
496
516
|
def confidential_note_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
497
517
|
"""
|
|
498
|
-
Invoke the hook for confidential note events.
|
|
518
|
+
Invoke the hook for confidential note events. Defaults to `false`.
|
|
499
519
|
"""
|
|
500
520
|
return pulumi.get(self, "confidential_note_events")
|
|
501
521
|
|
|
@@ -507,7 +527,7 @@ class _ProjectHookState:
|
|
|
507
527
|
@pulumi.getter(name="customHeaders")
|
|
508
528
|
def custom_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ProjectHookCustomHeaderArgs']]]]:
|
|
509
529
|
"""
|
|
510
|
-
Custom headers for the project webhook.
|
|
530
|
+
Custom headers for the project webhook. Available from GitLab 17.1 onwards.
|
|
511
531
|
"""
|
|
512
532
|
return pulumi.get(self, "custom_headers")
|
|
513
533
|
|
|
@@ -531,7 +551,7 @@ class _ProjectHookState:
|
|
|
531
551
|
@pulumi.getter(name="deploymentEvents")
|
|
532
552
|
def deployment_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
533
553
|
"""
|
|
534
|
-
Invoke the hook for deployment events.
|
|
554
|
+
Invoke the hook for deployment events. Defaults to `false`.
|
|
535
555
|
"""
|
|
536
556
|
return pulumi.get(self, "deployment_events")
|
|
537
557
|
|
|
@@ -555,7 +575,7 @@ class _ProjectHookState:
|
|
|
555
575
|
@pulumi.getter(name="enableSslVerification")
|
|
556
576
|
def enable_ssl_verification(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
557
577
|
"""
|
|
558
|
-
Enable SSL verification when invoking the hook.
|
|
578
|
+
Enable SSL verification when invoking the hook. Defaults to `true`.
|
|
559
579
|
"""
|
|
560
580
|
return pulumi.get(self, "enable_ssl_verification")
|
|
561
581
|
|
|
@@ -579,7 +599,7 @@ class _ProjectHookState:
|
|
|
579
599
|
@pulumi.getter(name="issuesEvents")
|
|
580
600
|
def issues_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
581
601
|
"""
|
|
582
|
-
Invoke the hook for issues events.
|
|
602
|
+
Invoke the hook for issues events. Defaults to `false`.
|
|
583
603
|
"""
|
|
584
604
|
return pulumi.get(self, "issues_events")
|
|
585
605
|
|
|
@@ -591,7 +611,7 @@ class _ProjectHookState:
|
|
|
591
611
|
@pulumi.getter(name="jobEvents")
|
|
592
612
|
def job_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
593
613
|
"""
|
|
594
|
-
Invoke the hook for job events.
|
|
614
|
+
Invoke the hook for job events. Defaults to `false`.
|
|
595
615
|
"""
|
|
596
616
|
return pulumi.get(self, "job_events")
|
|
597
617
|
|
|
@@ -603,7 +623,7 @@ class _ProjectHookState:
|
|
|
603
623
|
@pulumi.getter(name="mergeRequestsEvents")
|
|
604
624
|
def merge_requests_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
605
625
|
"""
|
|
606
|
-
Invoke the hook for merge requests events.
|
|
626
|
+
Invoke the hook for merge requests events. Defaults to `false`.
|
|
607
627
|
"""
|
|
608
628
|
return pulumi.get(self, "merge_requests_events")
|
|
609
629
|
|
|
@@ -627,7 +647,7 @@ class _ProjectHookState:
|
|
|
627
647
|
@pulumi.getter(name="noteEvents")
|
|
628
648
|
def note_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
629
649
|
"""
|
|
630
|
-
Invoke the hook for note events.
|
|
650
|
+
Invoke the hook for note events. Defaults to `false`.
|
|
631
651
|
"""
|
|
632
652
|
return pulumi.get(self, "note_events")
|
|
633
653
|
|
|
@@ -639,7 +659,7 @@ class _ProjectHookState:
|
|
|
639
659
|
@pulumi.getter(name="pipelineEvents")
|
|
640
660
|
def pipeline_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
641
661
|
"""
|
|
642
|
-
Invoke the hook for pipeline events.
|
|
662
|
+
Invoke the hook for pipeline events. Defaults to `false`.
|
|
643
663
|
"""
|
|
644
664
|
return pulumi.get(self, "pipeline_events")
|
|
645
665
|
|
|
@@ -675,7 +695,7 @@ class _ProjectHookState:
|
|
|
675
695
|
@pulumi.getter(name="pushEvents")
|
|
676
696
|
def push_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
677
697
|
"""
|
|
678
|
-
Invoke the hook for push events.
|
|
698
|
+
Invoke the hook for push events. Defaults to `true`.
|
|
679
699
|
"""
|
|
680
700
|
return pulumi.get(self, "push_events")
|
|
681
701
|
|
|
@@ -699,7 +719,7 @@ class _ProjectHookState:
|
|
|
699
719
|
@pulumi.getter(name="releasesEvents")
|
|
700
720
|
def releases_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
701
721
|
"""
|
|
702
|
-
Invoke the hook for release events.
|
|
722
|
+
Invoke the hook for release events. Defaults to `false`.
|
|
703
723
|
"""
|
|
704
724
|
return pulumi.get(self, "releases_events")
|
|
705
725
|
|
|
@@ -711,7 +731,7 @@ class _ProjectHookState:
|
|
|
711
731
|
@pulumi.getter(name="resourceAccessTokenEvents")
|
|
712
732
|
def resource_access_token_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
713
733
|
"""
|
|
714
|
-
Invoke the hook for project access token expiry events.
|
|
734
|
+
Invoke the hook for project access token expiry events. Defaults to `false`.
|
|
715
735
|
"""
|
|
716
736
|
return pulumi.get(self, "resource_access_token_events")
|
|
717
737
|
|
|
@@ -723,7 +743,7 @@ class _ProjectHookState:
|
|
|
723
743
|
@pulumi.getter(name="tagPushEvents")
|
|
724
744
|
def tag_push_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
725
745
|
"""
|
|
726
|
-
Invoke the hook for tag push events.
|
|
746
|
+
Invoke the hook for tag push events. Defaults to `false`.
|
|
727
747
|
"""
|
|
728
748
|
return pulumi.get(self, "tag_push_events")
|
|
729
749
|
|
|
@@ -755,11 +775,23 @@ class _ProjectHookState:
|
|
|
755
775
|
def url(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
756
776
|
pulumi.set(self, "url", value)
|
|
757
777
|
|
|
778
|
+
@_builtins.property
|
|
779
|
+
@pulumi.getter(name="vulnerabilityEvents")
|
|
780
|
+
def vulnerability_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
781
|
+
"""
|
|
782
|
+
Invoke the hook for vulnerability events. Defaults to `false`.
|
|
783
|
+
"""
|
|
784
|
+
return pulumi.get(self, "vulnerability_events")
|
|
785
|
+
|
|
786
|
+
@vulnerability_events.setter
|
|
787
|
+
def vulnerability_events(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
788
|
+
pulumi.set(self, "vulnerability_events", value)
|
|
789
|
+
|
|
758
790
|
@_builtins.property
|
|
759
791
|
@pulumi.getter(name="wikiPageEvents")
|
|
760
792
|
def wiki_page_events(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
761
793
|
"""
|
|
762
|
-
Invoke the hook for wiki page events.
|
|
794
|
+
Invoke the hook for wiki page events. Defaults to `false`.
|
|
763
795
|
"""
|
|
764
796
|
return pulumi.get(self, "wiki_page_events")
|
|
765
797
|
|
|
@@ -795,12 +827,15 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
795
827
|
tag_push_events: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
796
828
|
token: Optional[pulumi.Input[_builtins.str]] = None,
|
|
797
829
|
url: Optional[pulumi.Input[_builtins.str]] = None,
|
|
830
|
+
vulnerability_events: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
798
831
|
wiki_page_events: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
799
832
|
__props__=None):
|
|
800
833
|
"""
|
|
801
834
|
The `ProjectHook` resource allows to manage the lifecycle of a project hook.
|
|
802
835
|
|
|
803
|
-
|
|
836
|
+
> Note that `push_events` defaults to `true`.
|
|
837
|
+
|
|
838
|
+
**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/project_webhooks/)
|
|
804
839
|
|
|
805
840
|
## Example Usage
|
|
806
841
|
|
|
@@ -813,7 +848,8 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
813
848
|
url="https://example.com/hook/example",
|
|
814
849
|
name="example",
|
|
815
850
|
description="Example hook",
|
|
816
|
-
merge_requests_events=True
|
|
851
|
+
merge_requests_events=True,
|
|
852
|
+
push_events=False)
|
|
817
853
|
# Using Custom Headers
|
|
818
854
|
# Values of headers can't be imported
|
|
819
855
|
custom_headers = gitlab.ProjectHook("custom_headers",
|
|
@@ -858,28 +894,29 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
858
894
|
|
|
859
895
|
:param str resource_name: The name of the resource.
|
|
860
896
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
861
|
-
:param pulumi.Input[_builtins.bool] confidential_issues_events: Invoke the hook for confidential issues events.
|
|
862
|
-
:param pulumi.Input[_builtins.bool] confidential_note_events: Invoke the hook for confidential note events.
|
|
863
|
-
:param pulumi.Input[Sequence[pulumi.Input[Union['ProjectHookCustomHeaderArgs', 'ProjectHookCustomHeaderArgsDict']]]] custom_headers: Custom headers for the project webhook.
|
|
897
|
+
:param pulumi.Input[_builtins.bool] confidential_issues_events: Invoke the hook for confidential issues events. Defaults to `false`.
|
|
898
|
+
:param pulumi.Input[_builtins.bool] confidential_note_events: Invoke the hook for confidential note events. Defaults to `false`.
|
|
899
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ProjectHookCustomHeaderArgs', 'ProjectHookCustomHeaderArgsDict']]]] custom_headers: Custom headers for the project webhook. Available from GitLab 17.1 onwards.
|
|
864
900
|
:param pulumi.Input[_builtins.str] custom_webhook_template: Custom webhook template.
|
|
865
|
-
:param pulumi.Input[_builtins.bool] deployment_events: Invoke the hook for deployment events.
|
|
901
|
+
:param pulumi.Input[_builtins.bool] deployment_events: Invoke the hook for deployment events. Defaults to `false`.
|
|
866
902
|
:param pulumi.Input[_builtins.str] description: Description of the webhook.
|
|
867
|
-
:param pulumi.Input[_builtins.bool] enable_ssl_verification: Enable SSL verification when invoking the hook.
|
|
868
|
-
:param pulumi.Input[_builtins.bool] issues_events: Invoke the hook for issues events.
|
|
869
|
-
:param pulumi.Input[_builtins.bool] job_events: Invoke the hook for job events.
|
|
870
|
-
:param pulumi.Input[_builtins.bool] merge_requests_events: Invoke the hook for merge requests events.
|
|
903
|
+
:param pulumi.Input[_builtins.bool] enable_ssl_verification: Enable SSL verification when invoking the hook. Defaults to `true`.
|
|
904
|
+
:param pulumi.Input[_builtins.bool] issues_events: Invoke the hook for issues events. Defaults to `false`.
|
|
905
|
+
:param pulumi.Input[_builtins.bool] job_events: Invoke the hook for job events. Defaults to `false`.
|
|
906
|
+
:param pulumi.Input[_builtins.bool] merge_requests_events: Invoke the hook for merge requests events. Defaults to `false`.
|
|
871
907
|
:param pulumi.Input[_builtins.str] name: Name of the project webhook.
|
|
872
|
-
:param pulumi.Input[_builtins.bool] note_events: Invoke the hook for note events.
|
|
873
|
-
:param pulumi.Input[_builtins.bool] pipeline_events: Invoke the hook for pipeline events.
|
|
908
|
+
:param pulumi.Input[_builtins.bool] note_events: Invoke the hook for note events. Defaults to `false`.
|
|
909
|
+
:param pulumi.Input[_builtins.bool] pipeline_events: Invoke the hook for pipeline events. Defaults to `false`.
|
|
874
910
|
:param pulumi.Input[_builtins.str] project: The name or id of the project to add the hook to.
|
|
875
|
-
:param pulumi.Input[_builtins.bool] push_events: Invoke the hook for push events.
|
|
911
|
+
:param pulumi.Input[_builtins.bool] push_events: Invoke the hook for push events. Defaults to `true`.
|
|
876
912
|
:param pulumi.Input[_builtins.str] push_events_branch_filter: Invoke the hook for push events on matching branches only.
|
|
877
|
-
:param pulumi.Input[_builtins.bool] releases_events: Invoke the hook for release events.
|
|
878
|
-
:param pulumi.Input[_builtins.bool] resource_access_token_events: Invoke the hook for project access token expiry events.
|
|
879
|
-
:param pulumi.Input[_builtins.bool] tag_push_events: Invoke the hook for tag push events.
|
|
913
|
+
:param pulumi.Input[_builtins.bool] releases_events: Invoke the hook for release events. Defaults to `false`.
|
|
914
|
+
:param pulumi.Input[_builtins.bool] resource_access_token_events: Invoke the hook for project access token expiry events. Defaults to `false`.
|
|
915
|
+
:param pulumi.Input[_builtins.bool] tag_push_events: Invoke the hook for tag push events. Defaults to `false`.
|
|
880
916
|
:param pulumi.Input[_builtins.str] token: A token to present when invoking the hook. The token is not available for imported resources.
|
|
881
917
|
:param pulumi.Input[_builtins.str] url: The url of the hook to invoke. Forces re-creation to preserve `token`.
|
|
882
|
-
:param pulumi.Input[_builtins.bool]
|
|
918
|
+
:param pulumi.Input[_builtins.bool] vulnerability_events: Invoke the hook for vulnerability events. Defaults to `false`.
|
|
919
|
+
:param pulumi.Input[_builtins.bool] wiki_page_events: Invoke the hook for wiki page events. Defaults to `false`.
|
|
883
920
|
"""
|
|
884
921
|
...
|
|
885
922
|
@overload
|
|
@@ -890,7 +927,9 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
890
927
|
"""
|
|
891
928
|
The `ProjectHook` resource allows to manage the lifecycle of a project hook.
|
|
892
929
|
|
|
893
|
-
|
|
930
|
+
> Note that `push_events` defaults to `true`.
|
|
931
|
+
|
|
932
|
+
**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/project_webhooks/)
|
|
894
933
|
|
|
895
934
|
## Example Usage
|
|
896
935
|
|
|
@@ -903,7 +942,8 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
903
942
|
url="https://example.com/hook/example",
|
|
904
943
|
name="example",
|
|
905
944
|
description="Example hook",
|
|
906
|
-
merge_requests_events=True
|
|
945
|
+
merge_requests_events=True,
|
|
946
|
+
push_events=False)
|
|
907
947
|
# Using Custom Headers
|
|
908
948
|
# Values of headers can't be imported
|
|
909
949
|
custom_headers = gitlab.ProjectHook("custom_headers",
|
|
@@ -982,6 +1022,7 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
982
1022
|
tag_push_events: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
983
1023
|
token: Optional[pulumi.Input[_builtins.str]] = None,
|
|
984
1024
|
url: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1025
|
+
vulnerability_events: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
985
1026
|
wiki_page_events: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
986
1027
|
__props__=None):
|
|
987
1028
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
@@ -1017,6 +1058,7 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
1017
1058
|
if url is None and not opts.urn:
|
|
1018
1059
|
raise TypeError("Missing required property 'url'")
|
|
1019
1060
|
__props__.__dict__["url"] = url
|
|
1061
|
+
__props__.__dict__["vulnerability_events"] = vulnerability_events
|
|
1020
1062
|
__props__.__dict__["wiki_page_events"] = wiki_page_events
|
|
1021
1063
|
__props__.__dict__["hook_id"] = None
|
|
1022
1064
|
__props__.__dict__["project_id"] = None
|
|
@@ -1055,6 +1097,7 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
1055
1097
|
tag_push_events: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1056
1098
|
token: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1057
1099
|
url: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1100
|
+
vulnerability_events: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1058
1101
|
wiki_page_events: Optional[pulumi.Input[_builtins.bool]] = None) -> 'ProjectHook':
|
|
1059
1102
|
"""
|
|
1060
1103
|
Get an existing ProjectHook resource's state with the given name, id, and optional extra
|
|
@@ -1063,30 +1106,31 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
1063
1106
|
:param str resource_name: The unique name of the resulting resource.
|
|
1064
1107
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
1065
1108
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1066
|
-
:param pulumi.Input[_builtins.bool] confidential_issues_events: Invoke the hook for confidential issues events.
|
|
1067
|
-
:param pulumi.Input[_builtins.bool] confidential_note_events: Invoke the hook for confidential note events.
|
|
1068
|
-
:param pulumi.Input[Sequence[pulumi.Input[Union['ProjectHookCustomHeaderArgs', 'ProjectHookCustomHeaderArgsDict']]]] custom_headers: Custom headers for the project webhook.
|
|
1109
|
+
:param pulumi.Input[_builtins.bool] confidential_issues_events: Invoke the hook for confidential issues events. Defaults to `false`.
|
|
1110
|
+
:param pulumi.Input[_builtins.bool] confidential_note_events: Invoke the hook for confidential note events. Defaults to `false`.
|
|
1111
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ProjectHookCustomHeaderArgs', 'ProjectHookCustomHeaderArgsDict']]]] custom_headers: Custom headers for the project webhook. Available from GitLab 17.1 onwards.
|
|
1069
1112
|
:param pulumi.Input[_builtins.str] custom_webhook_template: Custom webhook template.
|
|
1070
|
-
:param pulumi.Input[_builtins.bool] deployment_events: Invoke the hook for deployment events.
|
|
1113
|
+
:param pulumi.Input[_builtins.bool] deployment_events: Invoke the hook for deployment events. Defaults to `false`.
|
|
1071
1114
|
:param pulumi.Input[_builtins.str] description: Description of the webhook.
|
|
1072
|
-
:param pulumi.Input[_builtins.bool] enable_ssl_verification: Enable SSL verification when invoking the hook.
|
|
1115
|
+
:param pulumi.Input[_builtins.bool] enable_ssl_verification: Enable SSL verification when invoking the hook. Defaults to `true`.
|
|
1073
1116
|
:param pulumi.Input[_builtins.int] hook_id: The id of the project hook.
|
|
1074
|
-
:param pulumi.Input[_builtins.bool] issues_events: Invoke the hook for issues events.
|
|
1075
|
-
:param pulumi.Input[_builtins.bool] job_events: Invoke the hook for job events.
|
|
1076
|
-
:param pulumi.Input[_builtins.bool] merge_requests_events: Invoke the hook for merge requests events.
|
|
1117
|
+
:param pulumi.Input[_builtins.bool] issues_events: Invoke the hook for issues events. Defaults to `false`.
|
|
1118
|
+
:param pulumi.Input[_builtins.bool] job_events: Invoke the hook for job events. Defaults to `false`.
|
|
1119
|
+
:param pulumi.Input[_builtins.bool] merge_requests_events: Invoke the hook for merge requests events. Defaults to `false`.
|
|
1077
1120
|
:param pulumi.Input[_builtins.str] name: Name of the project webhook.
|
|
1078
|
-
:param pulumi.Input[_builtins.bool] note_events: Invoke the hook for note events.
|
|
1079
|
-
:param pulumi.Input[_builtins.bool] pipeline_events: Invoke the hook for pipeline events.
|
|
1121
|
+
:param pulumi.Input[_builtins.bool] note_events: Invoke the hook for note events. Defaults to `false`.
|
|
1122
|
+
:param pulumi.Input[_builtins.bool] pipeline_events: Invoke the hook for pipeline events. Defaults to `false`.
|
|
1080
1123
|
:param pulumi.Input[_builtins.str] project: The name or id of the project to add the hook to.
|
|
1081
1124
|
:param pulumi.Input[_builtins.int] project_id: The id of the project for the hook.
|
|
1082
|
-
:param pulumi.Input[_builtins.bool] push_events: Invoke the hook for push events.
|
|
1125
|
+
:param pulumi.Input[_builtins.bool] push_events: Invoke the hook for push events. Defaults to `true`.
|
|
1083
1126
|
:param pulumi.Input[_builtins.str] push_events_branch_filter: Invoke the hook for push events on matching branches only.
|
|
1084
|
-
:param pulumi.Input[_builtins.bool] releases_events: Invoke the hook for release events.
|
|
1085
|
-
:param pulumi.Input[_builtins.bool] resource_access_token_events: Invoke the hook for project access token expiry events.
|
|
1086
|
-
:param pulumi.Input[_builtins.bool] tag_push_events: Invoke the hook for tag push events.
|
|
1127
|
+
:param pulumi.Input[_builtins.bool] releases_events: Invoke the hook for release events. Defaults to `false`.
|
|
1128
|
+
:param pulumi.Input[_builtins.bool] resource_access_token_events: Invoke the hook for project access token expiry events. Defaults to `false`.
|
|
1129
|
+
:param pulumi.Input[_builtins.bool] tag_push_events: Invoke the hook for tag push events. Defaults to `false`.
|
|
1087
1130
|
:param pulumi.Input[_builtins.str] token: A token to present when invoking the hook. The token is not available for imported resources.
|
|
1088
1131
|
:param pulumi.Input[_builtins.str] url: The url of the hook to invoke. Forces re-creation to preserve `token`.
|
|
1089
|
-
:param pulumi.Input[_builtins.bool]
|
|
1132
|
+
:param pulumi.Input[_builtins.bool] vulnerability_events: Invoke the hook for vulnerability events. Defaults to `false`.
|
|
1133
|
+
:param pulumi.Input[_builtins.bool] wiki_page_events: Invoke the hook for wiki page events. Defaults to `false`.
|
|
1090
1134
|
"""
|
|
1091
1135
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
1092
1136
|
|
|
@@ -1115,6 +1159,7 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
1115
1159
|
__props__.__dict__["tag_push_events"] = tag_push_events
|
|
1116
1160
|
__props__.__dict__["token"] = token
|
|
1117
1161
|
__props__.__dict__["url"] = url
|
|
1162
|
+
__props__.__dict__["vulnerability_events"] = vulnerability_events
|
|
1118
1163
|
__props__.__dict__["wiki_page_events"] = wiki_page_events
|
|
1119
1164
|
return ProjectHook(resource_name, opts=opts, __props__=__props__)
|
|
1120
1165
|
|
|
@@ -1122,7 +1167,7 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
1122
1167
|
@pulumi.getter(name="confidentialIssuesEvents")
|
|
1123
1168
|
def confidential_issues_events(self) -> pulumi.Output[_builtins.bool]:
|
|
1124
1169
|
"""
|
|
1125
|
-
Invoke the hook for confidential issues events.
|
|
1170
|
+
Invoke the hook for confidential issues events. Defaults to `false`.
|
|
1126
1171
|
"""
|
|
1127
1172
|
return pulumi.get(self, "confidential_issues_events")
|
|
1128
1173
|
|
|
@@ -1130,7 +1175,7 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
1130
1175
|
@pulumi.getter(name="confidentialNoteEvents")
|
|
1131
1176
|
def confidential_note_events(self) -> pulumi.Output[_builtins.bool]:
|
|
1132
1177
|
"""
|
|
1133
|
-
Invoke the hook for confidential note events.
|
|
1178
|
+
Invoke the hook for confidential note events. Defaults to `false`.
|
|
1134
1179
|
"""
|
|
1135
1180
|
return pulumi.get(self, "confidential_note_events")
|
|
1136
1181
|
|
|
@@ -1138,7 +1183,7 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
1138
1183
|
@pulumi.getter(name="customHeaders")
|
|
1139
1184
|
def custom_headers(self) -> pulumi.Output[Optional[Sequence['outputs.ProjectHookCustomHeader']]]:
|
|
1140
1185
|
"""
|
|
1141
|
-
Custom headers for the project webhook.
|
|
1186
|
+
Custom headers for the project webhook. Available from GitLab 17.1 onwards.
|
|
1142
1187
|
"""
|
|
1143
1188
|
return pulumi.get(self, "custom_headers")
|
|
1144
1189
|
|
|
@@ -1154,7 +1199,7 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
1154
1199
|
@pulumi.getter(name="deploymentEvents")
|
|
1155
1200
|
def deployment_events(self) -> pulumi.Output[_builtins.bool]:
|
|
1156
1201
|
"""
|
|
1157
|
-
Invoke the hook for deployment events.
|
|
1202
|
+
Invoke the hook for deployment events. Defaults to `false`.
|
|
1158
1203
|
"""
|
|
1159
1204
|
return pulumi.get(self, "deployment_events")
|
|
1160
1205
|
|
|
@@ -1170,7 +1215,7 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
1170
1215
|
@pulumi.getter(name="enableSslVerification")
|
|
1171
1216
|
def enable_ssl_verification(self) -> pulumi.Output[_builtins.bool]:
|
|
1172
1217
|
"""
|
|
1173
|
-
Enable SSL verification when invoking the hook.
|
|
1218
|
+
Enable SSL verification when invoking the hook. Defaults to `true`.
|
|
1174
1219
|
"""
|
|
1175
1220
|
return pulumi.get(self, "enable_ssl_verification")
|
|
1176
1221
|
|
|
@@ -1186,7 +1231,7 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
1186
1231
|
@pulumi.getter(name="issuesEvents")
|
|
1187
1232
|
def issues_events(self) -> pulumi.Output[_builtins.bool]:
|
|
1188
1233
|
"""
|
|
1189
|
-
Invoke the hook for issues events.
|
|
1234
|
+
Invoke the hook for issues events. Defaults to `false`.
|
|
1190
1235
|
"""
|
|
1191
1236
|
return pulumi.get(self, "issues_events")
|
|
1192
1237
|
|
|
@@ -1194,7 +1239,7 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
1194
1239
|
@pulumi.getter(name="jobEvents")
|
|
1195
1240
|
def job_events(self) -> pulumi.Output[_builtins.bool]:
|
|
1196
1241
|
"""
|
|
1197
|
-
Invoke the hook for job events.
|
|
1242
|
+
Invoke the hook for job events. Defaults to `false`.
|
|
1198
1243
|
"""
|
|
1199
1244
|
return pulumi.get(self, "job_events")
|
|
1200
1245
|
|
|
@@ -1202,7 +1247,7 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
1202
1247
|
@pulumi.getter(name="mergeRequestsEvents")
|
|
1203
1248
|
def merge_requests_events(self) -> pulumi.Output[_builtins.bool]:
|
|
1204
1249
|
"""
|
|
1205
|
-
Invoke the hook for merge requests events.
|
|
1250
|
+
Invoke the hook for merge requests events. Defaults to `false`.
|
|
1206
1251
|
"""
|
|
1207
1252
|
return pulumi.get(self, "merge_requests_events")
|
|
1208
1253
|
|
|
@@ -1218,7 +1263,7 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
1218
1263
|
@pulumi.getter(name="noteEvents")
|
|
1219
1264
|
def note_events(self) -> pulumi.Output[_builtins.bool]:
|
|
1220
1265
|
"""
|
|
1221
|
-
Invoke the hook for note events.
|
|
1266
|
+
Invoke the hook for note events. Defaults to `false`.
|
|
1222
1267
|
"""
|
|
1223
1268
|
return pulumi.get(self, "note_events")
|
|
1224
1269
|
|
|
@@ -1226,7 +1271,7 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
1226
1271
|
@pulumi.getter(name="pipelineEvents")
|
|
1227
1272
|
def pipeline_events(self) -> pulumi.Output[_builtins.bool]:
|
|
1228
1273
|
"""
|
|
1229
|
-
Invoke the hook for pipeline events.
|
|
1274
|
+
Invoke the hook for pipeline events. Defaults to `false`.
|
|
1230
1275
|
"""
|
|
1231
1276
|
return pulumi.get(self, "pipeline_events")
|
|
1232
1277
|
|
|
@@ -1250,7 +1295,7 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
1250
1295
|
@pulumi.getter(name="pushEvents")
|
|
1251
1296
|
def push_events(self) -> pulumi.Output[_builtins.bool]:
|
|
1252
1297
|
"""
|
|
1253
|
-
Invoke the hook for push events.
|
|
1298
|
+
Invoke the hook for push events. Defaults to `true`.
|
|
1254
1299
|
"""
|
|
1255
1300
|
return pulumi.get(self, "push_events")
|
|
1256
1301
|
|
|
@@ -1266,7 +1311,7 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
1266
1311
|
@pulumi.getter(name="releasesEvents")
|
|
1267
1312
|
def releases_events(self) -> pulumi.Output[_builtins.bool]:
|
|
1268
1313
|
"""
|
|
1269
|
-
Invoke the hook for release events.
|
|
1314
|
+
Invoke the hook for release events. Defaults to `false`.
|
|
1270
1315
|
"""
|
|
1271
1316
|
return pulumi.get(self, "releases_events")
|
|
1272
1317
|
|
|
@@ -1274,7 +1319,7 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
1274
1319
|
@pulumi.getter(name="resourceAccessTokenEvents")
|
|
1275
1320
|
def resource_access_token_events(self) -> pulumi.Output[_builtins.bool]:
|
|
1276
1321
|
"""
|
|
1277
|
-
Invoke the hook for project access token expiry events.
|
|
1322
|
+
Invoke the hook for project access token expiry events. Defaults to `false`.
|
|
1278
1323
|
"""
|
|
1279
1324
|
return pulumi.get(self, "resource_access_token_events")
|
|
1280
1325
|
|
|
@@ -1282,7 +1327,7 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
1282
1327
|
@pulumi.getter(name="tagPushEvents")
|
|
1283
1328
|
def tag_push_events(self) -> pulumi.Output[_builtins.bool]:
|
|
1284
1329
|
"""
|
|
1285
|
-
Invoke the hook for tag push events.
|
|
1330
|
+
Invoke the hook for tag push events. Defaults to `false`.
|
|
1286
1331
|
"""
|
|
1287
1332
|
return pulumi.get(self, "tag_push_events")
|
|
1288
1333
|
|
|
@@ -1302,11 +1347,19 @@ class ProjectHook(pulumi.CustomResource):
|
|
|
1302
1347
|
"""
|
|
1303
1348
|
return pulumi.get(self, "url")
|
|
1304
1349
|
|
|
1350
|
+
@_builtins.property
|
|
1351
|
+
@pulumi.getter(name="vulnerabilityEvents")
|
|
1352
|
+
def vulnerability_events(self) -> pulumi.Output[_builtins.bool]:
|
|
1353
|
+
"""
|
|
1354
|
+
Invoke the hook for vulnerability events. Defaults to `false`.
|
|
1355
|
+
"""
|
|
1356
|
+
return pulumi.get(self, "vulnerability_events")
|
|
1357
|
+
|
|
1305
1358
|
@_builtins.property
|
|
1306
1359
|
@pulumi.getter(name="wikiPageEvents")
|
|
1307
1360
|
def wiki_page_events(self) -> pulumi.Output[_builtins.bool]:
|
|
1308
1361
|
"""
|
|
1309
|
-
Invoke the hook for wiki page events.
|
|
1362
|
+
Invoke the hook for wiki page events. Defaults to `false`.
|
|
1310
1363
|
"""
|
|
1311
1364
|
return pulumi.get(self, "wiki_page_events")
|
|
1312
1365
|
|