@pulumi/gitlab 4.8.0 → 4.9.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.
- package/applicationSettings.d.ts +2936 -0
- package/applicationSettings.js +543 -0
- package/applicationSettings.js.map +1 -0
- package/branch.d.ts +3 -2
- package/branch.js +1 -1
- package/branch.js.map +1 -1
- package/branchProtection.d.ts +3 -8
- package/branchProtection.js +1 -7
- package/branchProtection.js.map +1 -1
- package/clusterAgent.d.ts +1 -1
- package/clusterAgent.js +1 -1
- package/clusterAgentToken.d.ts +2 -2
- package/clusterAgentToken.js +2 -2
- package/deployKey.d.ts +1 -1
- package/deployKey.js +1 -1
- package/deployKeyEnable.d.ts +1 -1
- package/deployKeyEnable.js +1 -1
- package/deployToken.d.ts +7 -9
- package/deployToken.js +4 -2
- package/deployToken.js.map +1 -1
- package/getBranch.d.ts +43 -1
- package/getBranch.js.map +1 -1
- package/getClusterAgent.d.ts +27 -0
- package/getClusterAgent.js.map +1 -1
- package/getClusterAgents.d.ts +13 -1
- package/getClusterAgents.js.map +1 -1
- package/getCurrentUser.d.ts +27 -0
- package/getGroup.d.ts +54 -0
- package/getGroup.js.map +1 -1
- package/getGroupHook.d.ts +123 -0
- package/getGroupHook.js +28 -0
- package/getGroupHook.js.map +1 -0
- package/getGroupHooks.d.ts +44 -0
- package/getGroupHooks.js +27 -0
- package/getGroupHooks.js.map +1 -0
- package/getGroupMembership.d.ts +31 -1
- package/getGroupMembership.js.map +1 -1
- package/getGroupVariable.d.ts +39 -0
- package/getGroupVariable.js.map +1 -1
- package/getGroupVariables.d.ts +22 -1
- package/getGroupVariables.js.map +1 -1
- package/getInstanceDeployKeys.d.ts +13 -1
- package/getInstanceDeployKeys.js.map +1 -1
- package/getInstanceVariable.d.ts +21 -0
- package/getInstanceVariable.js.map +1 -1
- package/getInstanceVariables.d.ts +4 -1
- package/getInstanceVariables.js.map +1 -1
- package/getProject.d.ts +188 -1
- package/getProject.js.map +1 -1
- package/getProjectHook.d.ts +134 -0
- package/getProjectHook.js +43 -0
- package/getProjectHook.js.map +1 -0
- package/getProjectHooks.d.ts +58 -0
- package/getProjectHooks.js +41 -0
- package/getProjectHooks.js.map +1 -0
- package/getProjectIssue.d.ts +131 -1
- package/getProjectIssue.js.map +1 -1
- package/getProjectIssues.d.ts +238 -1
- package/getProjectIssues.js.map +1 -1
- package/getProjectMembership.d.ts +96 -0
- package/getProjectMembership.js +47 -0
- package/getProjectMembership.js.map +1 -0
- package/getProjectMilestone.d.ts +51 -0
- package/getProjectMilestone.js.map +1 -1
- package/getProjectMilestones.d.ts +58 -1
- package/getProjectMilestones.js.map +1 -1
- package/getProjectProtectedBranch.d.ts +34 -1
- package/getProjectProtectedBranch.js.map +1 -1
- package/getProjectProtectedBranches.d.ts +13 -1
- package/getProjectProtectedBranches.js.map +1 -1
- package/getProjectTag.d.ts +34 -1
- package/getProjectTag.js.map +1 -1
- package/getProjectTags.d.ts +40 -1
- package/getProjectTags.js.map +1 -1
- package/getProjectVariable.d.ts +39 -0
- package/getProjectVariable.js.map +1 -1
- package/getProjectVariables.d.ts +22 -1
- package/getProjectVariables.js.map +1 -1
- package/getProjects.d.ts +193 -1
- package/getProjects.js.map +1 -1
- package/getReleaseLink.d.ts +45 -0
- package/getReleaseLink.js.map +1 -1
- package/getReleaseLinks.d.ts +22 -1
- package/getReleaseLinks.js.map +1 -1
- package/getRepositoryFile.d.ts +54 -0
- package/getRepositoryFile.js.map +1 -1
- package/getRepositoryTree.d.ts +94 -0
- package/getRepositoryTree.js +44 -0
- package/getRepositoryTree.js.map +1 -0
- package/getUser.d.ts +108 -0
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +85 -1
- package/getUsers.js.map +1 -1
- package/group.d.ts +5 -5
- package/group.js +4 -2
- package/group.js.map +1 -1
- package/groupAccessToken.d.ts +7 -12
- package/groupAccessToken.js +4 -2
- package/groupAccessToken.js.map +1 -1
- package/groupBadge.d.ts +5 -5
- package/groupBadge.js +1 -1
- package/groupCluster.d.ts +4 -4
- package/groupCluster.js +4 -2
- package/groupCluster.js.map +1 -1
- package/groupCustomAttribute.d.ts +1 -1
- package/groupCustomAttribute.js +1 -1
- package/groupHook.d.ts +317 -0
- package/groupHook.js +144 -0
- package/groupHook.js.map +1 -0
- package/groupLabel.d.ts +4 -7
- package/groupLabel.js +1 -1
- package/groupLabel.js.map +1 -1
- package/groupLdapLink.d.ts +10 -16
- package/groupLdapLink.js +1 -1
- package/groupLdapLink.js.map +1 -1
- package/groupMembership.d.ts +28 -7
- package/groupMembership.js +5 -1
- package/groupMembership.js.map +1 -1
- package/groupProjectFileTemplate.d.ts +15 -14
- package/groupProjectFileTemplate.js +3 -2
- package/groupProjectFileTemplate.js.map +1 -1
- package/groupSamlLink.d.ts +98 -0
- package/groupSamlLink.js +88 -0
- package/groupSamlLink.js.map +1 -0
- package/groupShareGroup.d.ts +4 -7
- package/groupShareGroup.js +1 -1
- package/groupShareGroup.js.map +1 -1
- package/groupVariable.d.ts +13 -22
- package/groupVariable.js +4 -2
- package/groupVariable.js.map +1 -1
- package/index.d.ts +298 -89
- package/index.js +311 -228
- package/index.js.map +1 -1
- package/instanceCluster.d.ts +4 -4
- package/instanceCluster.js +4 -2
- package/instanceCluster.js.map +1 -1
- package/instanceVariable.d.ts +10 -16
- package/instanceVariable.js +4 -2
- package/instanceVariable.js.map +1 -1
- package/label.d.ts +4 -7
- package/label.js +1 -1
- package/label.js.map +1 -1
- package/managedLicense.d.ts +10 -10
- package/managedLicense.js +1 -1
- package/package.json +4 -3
- package/package.json.bak +2 -1
- package/package.json.dev +4 -3
- package/personalAccessToken.d.ts +7 -15
- package/personalAccessToken.js +4 -2
- package/personalAccessToken.js.map +1 -1
- package/pipelineSchedule.d.ts +1 -1
- package/pipelineSchedule.js +1 -1
- package/pipelineScheduleVariable.d.ts +1 -1
- package/pipelineScheduleVariable.js +1 -1
- package/pipelineTrigger.d.ts +1 -1
- package/pipelineTrigger.js +3 -1
- package/pipelineTrigger.js.map +1 -1
- package/project.d.ts +55 -72
- package/project.js +4 -2
- package/project.js.map +1 -1
- package/projectAccessToken.d.ts +10 -13
- package/projectAccessToken.js +4 -2
- package/projectAccessToken.js.map +1 -1
- package/projectApprovalRule.d.ts +4 -7
- package/projectApprovalRule.js +1 -1
- package/projectApprovalRule.js.map +1 -1
- package/projectBadge.d.ts +5 -5
- package/projectBadge.js +1 -1
- package/projectCluster.d.ts +4 -4
- package/projectCluster.js +4 -2
- package/projectCluster.js.map +1 -1
- package/projectCustomAttribute.d.ts +1 -1
- package/projectCustomAttribute.js +1 -1
- package/projectEnvironment.d.ts +3 -5
- package/projectEnvironment.js +1 -1
- package/projectEnvironment.js.map +1 -1
- package/projectFreezePeriod.d.ts +1 -1
- package/projectFreezePeriod.js +1 -1
- package/projectHook.d.ts +18 -2
- package/projectHook.js +9 -3
- package/projectHook.js.map +1 -1
- package/projectIssue.d.ts +28 -39
- package/projectIssue.js +1 -1
- package/projectIssue.js.map +1 -1
- package/projectIssueBoard.d.ts +189 -0
- package/projectIssueBoard.js +131 -0
- package/projectIssueBoard.js.map +1 -0
- package/projectLevelMrApprovals.d.ts +5 -8
- package/projectLevelMrApprovals.js +2 -2
- package/projectLevelMrApprovals.js.map +1 -1
- package/projectMembership.d.ts +4 -7
- package/projectMembership.js +1 -1
- package/projectMembership.js.map +1 -1
- package/projectMilestone.d.ts +1 -1
- package/projectMilestone.js +1 -1
- package/projectMirror.d.ts +1 -1
- package/projectMirror.js +4 -2
- package/projectMirror.js.map +1 -1
- package/projectProtectedEnvironment.d.ts +9 -2
- package/projectProtectedEnvironment.js +7 -1
- package/projectProtectedEnvironment.js.map +1 -1
- package/projectRunnerEnablement.d.ts +1 -1
- package/projectRunnerEnablement.js +1 -1
- package/projectShareGroup.d.ts +7 -13
- package/projectShareGroup.js +1 -1
- package/projectShareGroup.js.map +1 -1
- package/projectTag.d.ts +4 -3
- package/projectTag.js +2 -2
- package/projectTag.js.map +1 -1
- package/projectVariable.d.ts +13 -22
- package/projectVariable.js +4 -2
- package/projectVariable.js.map +1 -1
- package/releaseLink.d.ts +6 -11
- package/releaseLink.js +1 -1
- package/releaseLink.js.map +1 -1
- package/repositoryFile.d.ts +4 -7
- package/repositoryFile.js +1 -1
- package/repositoryFile.js.map +1 -1
- package/runner.d.ts +8 -8
- package/runner.js +4 -2
- package/runner.js.map +1 -1
- package/serviceExternalWiki.d.ts +3 -5
- package/serviceExternalWiki.js +1 -1
- package/serviceExternalWiki.js.map +1 -1
- package/serviceGithub.d.ts +4 -7
- package/serviceGithub.js +4 -2
- package/serviceGithub.js.map +1 -1
- package/serviceJira.d.ts +7 -13
- package/serviceJira.js +4 -2
- package/serviceJira.js.map +1 -1
- package/serviceMicrosoftTeams.d.ts +4 -7
- package/serviceMicrosoftTeams.js +1 -1
- package/serviceMicrosoftTeams.js.map +1 -1
- package/servicePipelinesEmail.d.ts +4 -7
- package/servicePipelinesEmail.js +1 -1
- package/servicePipelinesEmail.js.map +1 -1
- package/serviceSlack.d.ts +9 -11
- package/serviceSlack.js +1 -1
- package/serviceSlack.js.map +1 -1
- package/systemHook.d.ts +5 -8
- package/systemHook.js +5 -3
- package/systemHook.js.map +1 -1
- package/tagProtection.d.ts +1 -1
- package/tagProtection.js +1 -1
- package/topic.d.ts +5 -8
- package/topic.js +2 -2
- package/topic.js.map +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +137 -0
- package/types/output.d.ts +321 -1
- package/user.d.ts +11 -14
- package/user.js +5 -3
- package/user.js.map +1 -1
- package/userCustomAttribute.d.ts +1 -1
- package/userCustomAttribute.js +1 -1
- package/userGpgKey.d.ts +119 -0
- package/userGpgKey.js +101 -0
- package/userGpgKey.js.map +1 -0
- package/userSshKey.d.ts +4 -7
- package/userSshKey.js +1 -1
- package/userSshKey.js.map +1 -1
- package/utilities.js +13 -1
- package/utilities.js.map +1 -1
package/getInstanceVariable.d.ts
CHANGED
|
@@ -20,6 +20,9 @@ export declare function getInstanceVariable(args: GetInstanceVariableArgs, opts?
|
|
|
20
20
|
* A collection of arguments for invoking getInstanceVariable.
|
|
21
21
|
*/
|
|
22
22
|
export interface GetInstanceVariableArgs {
|
|
23
|
+
/**
|
|
24
|
+
* The name of the variable.
|
|
25
|
+
*/
|
|
23
26
|
key: string;
|
|
24
27
|
}
|
|
25
28
|
/**
|
|
@@ -30,10 +33,25 @@ export interface GetInstanceVariableResult {
|
|
|
30
33
|
* The provider-assigned unique ID for this managed resource.
|
|
31
34
|
*/
|
|
32
35
|
readonly id: string;
|
|
36
|
+
/**
|
|
37
|
+
* The name of the variable.
|
|
38
|
+
*/
|
|
33
39
|
readonly key: string;
|
|
40
|
+
/**
|
|
41
|
+
* If set to `true`, the value of the variable will be hidden in job logs. The value must meet the [masking requirements](https://docs.gitlab.com/ee/ci/variables/#masked-variables). Defaults to `false`.
|
|
42
|
+
*/
|
|
34
43
|
readonly masked: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* If set to `true`, the variable will be passed only to pipelines running on protected branches and tags. Defaults to `false`.
|
|
46
|
+
*/
|
|
35
47
|
readonly protected: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* The value of the variable.
|
|
50
|
+
*/
|
|
36
51
|
readonly value: string;
|
|
52
|
+
/**
|
|
53
|
+
* The type of a variable. Valid values are: `envVar`, `file`. Default is `envVar`.
|
|
54
|
+
*/
|
|
37
55
|
readonly variableType: string;
|
|
38
56
|
}
|
|
39
57
|
export declare function getInstanceVariableOutput(args: GetInstanceVariableOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetInstanceVariableResult>;
|
|
@@ -41,5 +59,8 @@ export declare function getInstanceVariableOutput(args: GetInstanceVariableOutpu
|
|
|
41
59
|
* A collection of arguments for invoking getInstanceVariable.
|
|
42
60
|
*/
|
|
43
61
|
export interface GetInstanceVariableOutputArgs {
|
|
62
|
+
/**
|
|
63
|
+
* The name of the variable.
|
|
64
|
+
*/
|
|
44
65
|
key: pulumi.Input<string>;
|
|
45
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInstanceVariable.js","sourceRoot":"","sources":["../getInstanceVariable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sDAAsD,EAAE;QACjF,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,kDASC;
|
|
1
|
+
{"version":3,"file":"getInstanceVariable.js","sourceRoot":"","sources":["../getInstanceVariable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sDAAsD,EAAE;QACjF,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,kDASC;AA0CD,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAA2B;IACtG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,8DAEC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
3
|
/**
|
|
4
4
|
* The `gitlab.getInstanceVariables` data source allows to retrieve all instance-level CI/CD variables.
|
|
5
5
|
*
|
|
@@ -23,5 +23,8 @@ export interface GetInstanceVariablesResult {
|
|
|
23
23
|
* The provider-assigned unique ID for this managed resource.
|
|
24
24
|
*/
|
|
25
25
|
readonly id: string;
|
|
26
|
+
/**
|
|
27
|
+
* The list of variables returned by the search
|
|
28
|
+
*/
|
|
26
29
|
readonly variables: outputs.GetInstanceVariablesVariable[];
|
|
27
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInstanceVariables.js","sourceRoot":"","sources":["../getInstanceVariables.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getInstanceVariables.js","sourceRoot":"","sources":["../getInstanceVariables.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,oBAAoB,CAAC,IAA2B;IAC5D,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wDAAwD,EAAE,EACtF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,oDAQC"}
|
package/getProject.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
3
|
/**
|
|
4
4
|
* The `gitlab.Project` data source allows details of a project to be retrieved by either its ID or its path with namespace.
|
|
5
5
|
*
|
|
@@ -21,67 +21,242 @@ export declare function getProject(args?: GetProjectArgs, opts?: pulumi.InvokeOp
|
|
|
21
21
|
* A collection of arguments for invoking getProject.
|
|
22
22
|
*/
|
|
23
23
|
export interface GetProjectArgs {
|
|
24
|
+
/**
|
|
25
|
+
* Default number of revisions for shallow cloning.
|
|
26
|
+
*/
|
|
24
27
|
ciDefaultGitDepth?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The integer or path with namespace that uniquely identifies the project within the gitlab install.
|
|
30
|
+
*/
|
|
25
31
|
id?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The path of the repository with namespace.
|
|
34
|
+
*/
|
|
26
35
|
pathWithNamespace?: string;
|
|
36
|
+
/**
|
|
37
|
+
* If true, jobs can be viewed by non-project members.
|
|
38
|
+
*/
|
|
27
39
|
publicBuilds?: boolean;
|
|
28
40
|
}
|
|
29
41
|
/**
|
|
30
42
|
* A collection of values returned by getProject.
|
|
31
43
|
*/
|
|
32
44
|
export interface GetProjectResult {
|
|
45
|
+
/**
|
|
46
|
+
* Set the analytics access level. Valid values are `disabled`, `private`, `enabled`.
|
|
47
|
+
*/
|
|
33
48
|
readonly analyticsAccessLevel: string;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the project is in read-only mode (archived).
|
|
51
|
+
*/
|
|
34
52
|
readonly archived: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Auto-cancel pending pipelines. This isn’t a boolean, but enabled/disabled.
|
|
55
|
+
*/
|
|
35
56
|
readonly autoCancelPendingPipelines: string;
|
|
57
|
+
/**
|
|
58
|
+
* Auto Deploy strategy. Valid values are `continuous`, `manual`, `timedIncremental`.
|
|
59
|
+
*/
|
|
36
60
|
readonly autoDevopsDeployStrategy: string;
|
|
61
|
+
/**
|
|
62
|
+
* Enable Auto DevOps for this project.
|
|
63
|
+
*/
|
|
37
64
|
readonly autoDevopsEnabled: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Set whether auto-closing referenced issues on default branch.
|
|
67
|
+
*/
|
|
38
68
|
readonly autocloseReferencedIssues: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* The Git strategy. Defaults to fetch.
|
|
71
|
+
*/
|
|
39
72
|
readonly buildGitStrategy: string;
|
|
73
|
+
/**
|
|
74
|
+
* The maximum amount of time, in seconds, that a job can run.
|
|
75
|
+
*/
|
|
40
76
|
readonly buildTimeout: number;
|
|
77
|
+
/**
|
|
78
|
+
* Set the builds access level. Valid values are `disabled`, `private`, `enabled`.
|
|
79
|
+
*/
|
|
41
80
|
readonly buildsAccessLevel: string;
|
|
81
|
+
/**
|
|
82
|
+
* CI config file path for the project.
|
|
83
|
+
*/
|
|
84
|
+
readonly ciConfigPath: string;
|
|
85
|
+
/**
|
|
86
|
+
* Default number of revisions for shallow cloning.
|
|
87
|
+
*/
|
|
42
88
|
readonly ciDefaultGitDepth: number;
|
|
89
|
+
/**
|
|
90
|
+
* Set the image cleanup policy for this project. **Note**: this field is sometimes named `containerExpirationPolicyAttributes` in the GitLab Upstream API.
|
|
91
|
+
*/
|
|
43
92
|
readonly containerExpirationPolicies: outputs.GetProjectContainerExpirationPolicy[];
|
|
93
|
+
/**
|
|
94
|
+
* Set visibility of container registry, for this project. Valid values are `disabled`, `private`, `enabled`.
|
|
95
|
+
*/
|
|
44
96
|
readonly containerRegistryAccessLevel: string;
|
|
97
|
+
/**
|
|
98
|
+
* The default branch for the project.
|
|
99
|
+
*/
|
|
45
100
|
readonly defaultBranch: string;
|
|
101
|
+
/**
|
|
102
|
+
* A description of the project.
|
|
103
|
+
*/
|
|
46
104
|
readonly description: string;
|
|
105
|
+
/**
|
|
106
|
+
* Disable email notifications.
|
|
107
|
+
*/
|
|
47
108
|
readonly emailsDisabled: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* The classification label for the project.
|
|
111
|
+
*/
|
|
48
112
|
readonly externalAuthorizationClassificationLabel: string;
|
|
113
|
+
/**
|
|
114
|
+
* Set the forking access level. Valid values are `disabled`, `private`, `enabled`.
|
|
115
|
+
*/
|
|
49
116
|
readonly forkingAccessLevel: string;
|
|
117
|
+
/**
|
|
118
|
+
* URL that can be provided to `git clone` to clone the
|
|
119
|
+
*/
|
|
50
120
|
readonly httpUrlToRepo: string;
|
|
121
|
+
/**
|
|
122
|
+
* The integer or path with namespace that uniquely identifies the project within the gitlab install.
|
|
123
|
+
*/
|
|
51
124
|
readonly id: string;
|
|
125
|
+
/**
|
|
126
|
+
* Set the issues access level. Valid values are `disabled`, `private`, `enabled`.
|
|
127
|
+
*/
|
|
52
128
|
readonly issuesAccessLevel: string;
|
|
129
|
+
/**
|
|
130
|
+
* Enable issue tracking for the project.
|
|
131
|
+
*/
|
|
53
132
|
readonly issuesEnabled: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Enable LFS for the project.
|
|
135
|
+
*/
|
|
54
136
|
readonly lfsEnabled: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Template used to create merge commit message in merge requests. (Introduced in GitLab 14.5.)
|
|
139
|
+
*/
|
|
55
140
|
readonly mergeCommitTemplate: string;
|
|
141
|
+
/**
|
|
142
|
+
* Enable or disable merge pipelines.
|
|
143
|
+
*/
|
|
56
144
|
readonly mergePipelinesEnabled: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Set the merge requests access level. Valid values are `disabled`, `private`, `enabled`.
|
|
147
|
+
*/
|
|
57
148
|
readonly mergeRequestsAccessLevel: string;
|
|
149
|
+
/**
|
|
150
|
+
* Enable merge requests for the project.
|
|
151
|
+
*/
|
|
58
152
|
readonly mergeRequestsEnabled: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Enable or disable merge trains.
|
|
155
|
+
*/
|
|
59
156
|
readonly mergeTrainsEnabled: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* The name of the project.
|
|
159
|
+
*/
|
|
60
160
|
readonly name: string;
|
|
161
|
+
/**
|
|
162
|
+
* The namespace (group or user) of the project. Defaults to your user.
|
|
163
|
+
*/
|
|
61
164
|
readonly namespaceId: number;
|
|
165
|
+
/**
|
|
166
|
+
* Set the operations access level. Valid values are `disabled`, `private`, `enabled`.
|
|
167
|
+
*/
|
|
62
168
|
readonly operationsAccessLevel: string;
|
|
169
|
+
/**
|
|
170
|
+
* The path of the repository.
|
|
171
|
+
*/
|
|
63
172
|
readonly path: string;
|
|
173
|
+
/**
|
|
174
|
+
* The path of the repository with namespace.
|
|
175
|
+
*/
|
|
64
176
|
readonly pathWithNamespace: string;
|
|
177
|
+
/**
|
|
178
|
+
* Enable pipelines for the project.
|
|
179
|
+
*/
|
|
65
180
|
readonly pipelinesEnabled: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Show link to create/view merge request when pushing from the command line
|
|
183
|
+
*/
|
|
66
184
|
readonly printingMergeRequestLinkEnabled: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* If true, jobs can be viewed by non-project members.
|
|
187
|
+
*/
|
|
67
188
|
readonly publicBuilds?: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* Push rules for the project.
|
|
191
|
+
*/
|
|
68
192
|
readonly pushRules: outputs.GetProjectPushRules;
|
|
193
|
+
/**
|
|
194
|
+
* Enable `Delete source branch` option by default for all new merge requests
|
|
195
|
+
*/
|
|
69
196
|
readonly removeSourceBranchAfterMerge: boolean;
|
|
197
|
+
/**
|
|
198
|
+
* Set the repository access level. Valid values are `disabled`, `private`, `enabled`.
|
|
199
|
+
*/
|
|
70
200
|
readonly repositoryAccessLevel: string;
|
|
201
|
+
/**
|
|
202
|
+
* Which storage shard the repository is on. (administrator only)
|
|
203
|
+
*/
|
|
71
204
|
readonly repositoryStorage: string;
|
|
205
|
+
/**
|
|
206
|
+
* Allow users to request member access.
|
|
207
|
+
*/
|
|
72
208
|
readonly requestAccessEnabled: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Set the requirements access level. Valid values are `disabled`, `private`, `enabled`.
|
|
211
|
+
*/
|
|
73
212
|
readonly requirementsAccessLevel: string;
|
|
213
|
+
/**
|
|
214
|
+
* Automatically resolve merge request diffs discussions on lines changed with a push.
|
|
215
|
+
*/
|
|
74
216
|
readonly resolveOutdatedDiffDiscussions: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* Registration token to use during runner setup.
|
|
219
|
+
*/
|
|
75
220
|
readonly runnersToken: string;
|
|
221
|
+
/**
|
|
222
|
+
* Set the security and compliance access level. Valid values are `disabled`, `private`, `enabled`.
|
|
223
|
+
*/
|
|
76
224
|
readonly securityAndComplianceAccessLevel: string;
|
|
225
|
+
/**
|
|
226
|
+
* Set the snippets access level. Valid values are `disabled`, `private`, `enabled`.
|
|
227
|
+
*/
|
|
77
228
|
readonly snippetsAccessLevel: string;
|
|
229
|
+
/**
|
|
230
|
+
* Enable snippets for the project.
|
|
231
|
+
*/
|
|
78
232
|
readonly snippetsEnabled: boolean;
|
|
233
|
+
/**
|
|
234
|
+
* Template used to create squash commit message in merge requests. (Introduced in GitLab 14.6.)
|
|
235
|
+
*/
|
|
79
236
|
readonly squashCommitTemplate: string;
|
|
237
|
+
/**
|
|
238
|
+
* URL that can be provided to `git clone` to clone the
|
|
239
|
+
*/
|
|
80
240
|
readonly sshUrlToRepo: string;
|
|
241
|
+
/**
|
|
242
|
+
* The list of topics for the project.
|
|
243
|
+
*/
|
|
81
244
|
readonly topics: string[];
|
|
245
|
+
/**
|
|
246
|
+
* Repositories are created as private by default.
|
|
247
|
+
*/
|
|
82
248
|
readonly visibilityLevel: string;
|
|
249
|
+
/**
|
|
250
|
+
* URL that can be used to find the project in a browser.
|
|
251
|
+
*/
|
|
83
252
|
readonly webUrl: string;
|
|
253
|
+
/**
|
|
254
|
+
* Set the wiki access level. Valid values are `disabled`, `private`, `enabled`.
|
|
255
|
+
*/
|
|
84
256
|
readonly wikiAccessLevel: string;
|
|
257
|
+
/**
|
|
258
|
+
* Enable wiki for the project.
|
|
259
|
+
*/
|
|
85
260
|
readonly wikiEnabled: boolean;
|
|
86
261
|
}
|
|
87
262
|
export declare function getProjectOutput(args?: GetProjectOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetProjectResult>;
|
|
@@ -89,8 +264,20 @@ export declare function getProjectOutput(args?: GetProjectOutputArgs, opts?: pul
|
|
|
89
264
|
* A collection of arguments for invoking getProject.
|
|
90
265
|
*/
|
|
91
266
|
export interface GetProjectOutputArgs {
|
|
267
|
+
/**
|
|
268
|
+
* Default number of revisions for shallow cloning.
|
|
269
|
+
*/
|
|
92
270
|
ciDefaultGitDepth?: pulumi.Input<number>;
|
|
271
|
+
/**
|
|
272
|
+
* The integer or path with namespace that uniquely identifies the project within the gitlab install.
|
|
273
|
+
*/
|
|
93
274
|
id?: pulumi.Input<string>;
|
|
275
|
+
/**
|
|
276
|
+
* The path of the repository with namespace.
|
|
277
|
+
*/
|
|
94
278
|
pathWithNamespace?: pulumi.Input<string>;
|
|
279
|
+
/**
|
|
280
|
+
* If true, jobs can be viewed by non-project members.
|
|
281
|
+
*/
|
|
95
282
|
publicBuilds?: pulumi.Input<boolean>;
|
|
96
283
|
}
|
package/getProject.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getProject.js","sourceRoot":"","sources":["../getProject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getProject.js","sourceRoot":"","sources":["../getProject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oCAAoC,EAAE;QAC/D,mBAAmB,EAAE,IAAI,CAAC,iBAAiB;QAC3C,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,mBAAmB,EAAE,IAAI,CAAC,iBAAiB;QAC3C,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,gCAaC;AAsPD,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9D,CAAC;AAFD,4CAEC"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The `gitlab.ProjectHook` data source allows to retrieve details about a hook in a project.
|
|
4
|
+
*
|
|
5
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#get-project-hook)
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
12
|
+
*
|
|
13
|
+
* const exampleProject = gitlab.getProject({
|
|
14
|
+
* id: "foo/bar/baz",
|
|
15
|
+
* });
|
|
16
|
+
* const exampleProjectHook = exampleProject.then(exampleProject => gitlab.getProjectHook({
|
|
17
|
+
* project: exampleProject.id,
|
|
18
|
+
* hookId: 1,
|
|
19
|
+
* }));
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function getProjectHook(args: GetProjectHookArgs, opts?: pulumi.InvokeOptions): Promise<GetProjectHookResult>;
|
|
23
|
+
/**
|
|
24
|
+
* A collection of arguments for invoking getProjectHook.
|
|
25
|
+
*/
|
|
26
|
+
export interface GetProjectHookArgs {
|
|
27
|
+
/**
|
|
28
|
+
* The id of the project hook.
|
|
29
|
+
*/
|
|
30
|
+
hookId: number;
|
|
31
|
+
/**
|
|
32
|
+
* The name or id of the project to add the hook to.
|
|
33
|
+
*/
|
|
34
|
+
project: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A collection of values returned by getProjectHook.
|
|
38
|
+
*/
|
|
39
|
+
export interface GetProjectHookResult {
|
|
40
|
+
/**
|
|
41
|
+
* Invoke the hook for confidential issues events.
|
|
42
|
+
*/
|
|
43
|
+
readonly confidentialIssuesEvents: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Invoke the hook for confidential notes events.
|
|
46
|
+
*/
|
|
47
|
+
readonly confidentialNoteEvents: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Invoke the hook for deployment events.
|
|
50
|
+
*/
|
|
51
|
+
readonly deploymentEvents: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Enable ssl verification when invoking the hook.
|
|
54
|
+
*/
|
|
55
|
+
readonly enableSslVerification: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* The id of the project hook.
|
|
58
|
+
*/
|
|
59
|
+
readonly hookId: number;
|
|
60
|
+
/**
|
|
61
|
+
* The provider-assigned unique ID for this managed resource.
|
|
62
|
+
*/
|
|
63
|
+
readonly id: string;
|
|
64
|
+
/**
|
|
65
|
+
* Invoke the hook for issues events.
|
|
66
|
+
*/
|
|
67
|
+
readonly issuesEvents: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Invoke the hook for job events.
|
|
70
|
+
*/
|
|
71
|
+
readonly jobEvents: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Invoke the hook for merge requests.
|
|
74
|
+
*/
|
|
75
|
+
readonly mergeRequestsEvents: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Invoke the hook for notes events.
|
|
78
|
+
*/
|
|
79
|
+
readonly noteEvents: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Invoke the hook for pipeline events.
|
|
82
|
+
*/
|
|
83
|
+
readonly pipelineEvents: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* The name or id of the project to add the hook to.
|
|
86
|
+
*/
|
|
87
|
+
readonly project: string;
|
|
88
|
+
/**
|
|
89
|
+
* The id of the project for the hook.
|
|
90
|
+
*/
|
|
91
|
+
readonly projectId: number;
|
|
92
|
+
/**
|
|
93
|
+
* Invoke the hook for push events.
|
|
94
|
+
*/
|
|
95
|
+
readonly pushEvents: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Invoke the hook for push events on matching branches only.
|
|
98
|
+
*/
|
|
99
|
+
readonly pushEventsBranchFilter: string;
|
|
100
|
+
/**
|
|
101
|
+
* Invoke the hook for releases events.
|
|
102
|
+
*/
|
|
103
|
+
readonly releasesEvents: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Invoke the hook for tag push events.
|
|
106
|
+
*/
|
|
107
|
+
readonly tagPushEvents: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* A token to present when invoking the hook. The token is not available for imported resources.
|
|
110
|
+
*/
|
|
111
|
+
readonly token: string;
|
|
112
|
+
/**
|
|
113
|
+
* The url of the hook to invoke.
|
|
114
|
+
*/
|
|
115
|
+
readonly url: string;
|
|
116
|
+
/**
|
|
117
|
+
* Invoke the hook for wiki page events.
|
|
118
|
+
*/
|
|
119
|
+
readonly wikiPageEvents: boolean;
|
|
120
|
+
}
|
|
121
|
+
export declare function getProjectHookOutput(args: GetProjectHookOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetProjectHookResult>;
|
|
122
|
+
/**
|
|
123
|
+
* A collection of arguments for invoking getProjectHook.
|
|
124
|
+
*/
|
|
125
|
+
export interface GetProjectHookOutputArgs {
|
|
126
|
+
/**
|
|
127
|
+
* The id of the project hook.
|
|
128
|
+
*/
|
|
129
|
+
hookId: pulumi.Input<number>;
|
|
130
|
+
/**
|
|
131
|
+
* The name or id of the project to add the hook to.
|
|
132
|
+
*/
|
|
133
|
+
project: pulumi.Input<string>;
|
|
134
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getProjectHookOutput = exports.getProjectHook = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The `gitlab.ProjectHook` data source allows to retrieve details about a hook in a project.
|
|
10
|
+
*
|
|
11
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#get-project-hook)
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
18
|
+
*
|
|
19
|
+
* const exampleProject = gitlab.getProject({
|
|
20
|
+
* id: "foo/bar/baz",
|
|
21
|
+
* });
|
|
22
|
+
* const exampleProjectHook = exampleProject.then(exampleProject => gitlab.getProjectHook({
|
|
23
|
+
* project: exampleProject.id,
|
|
24
|
+
* hookId: 1,
|
|
25
|
+
* }));
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
function getProjectHook(args, opts) {
|
|
29
|
+
if (!opts) {
|
|
30
|
+
opts = {};
|
|
31
|
+
}
|
|
32
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
33
|
+
return pulumi.runtime.invoke("gitlab:index/getProjectHook:getProjectHook", {
|
|
34
|
+
"hookId": args.hookId,
|
|
35
|
+
"project": args.project,
|
|
36
|
+
}, opts);
|
|
37
|
+
}
|
|
38
|
+
exports.getProjectHook = getProjectHook;
|
|
39
|
+
function getProjectHookOutput(args, opts) {
|
|
40
|
+
return pulumi.output(args).apply(a => getProjectHook(a, opts));
|
|
41
|
+
}
|
|
42
|
+
exports.getProjectHookOutput = getProjectHookOutput;
|
|
43
|
+
//# sourceMappingURL=getProjectHook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProjectHook.js","sourceRoot":"","sources":["../getProjectHook.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,wCAUC;AAsGD,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,oDAEC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* The `gitlab.getProjectHooks` data source allows to retrieve details about hooks in a project.
|
|
5
|
+
*
|
|
6
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#list-project-hooks)
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
13
|
+
*
|
|
14
|
+
* const example = gitlab.getProject({
|
|
15
|
+
* id: "foo/bar/baz",
|
|
16
|
+
* });
|
|
17
|
+
* const examples = example.then(example => gitlab.getProjectHooks({
|
|
18
|
+
* project: example.id,
|
|
19
|
+
* }));
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function getProjectHooks(args: GetProjectHooksArgs, opts?: pulumi.InvokeOptions): Promise<GetProjectHooksResult>;
|
|
23
|
+
/**
|
|
24
|
+
* A collection of arguments for invoking getProjectHooks.
|
|
25
|
+
*/
|
|
26
|
+
export interface GetProjectHooksArgs {
|
|
27
|
+
/**
|
|
28
|
+
* The name or id of the project.
|
|
29
|
+
*/
|
|
30
|
+
project: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A collection of values returned by getProjectHooks.
|
|
34
|
+
*/
|
|
35
|
+
export interface GetProjectHooksResult {
|
|
36
|
+
/**
|
|
37
|
+
* The list of hooks.
|
|
38
|
+
*/
|
|
39
|
+
readonly hooks: outputs.GetProjectHooksHook[];
|
|
40
|
+
/**
|
|
41
|
+
* The provider-assigned unique ID for this managed resource.
|
|
42
|
+
*/
|
|
43
|
+
readonly id: string;
|
|
44
|
+
/**
|
|
45
|
+
* The name or id of the project.
|
|
46
|
+
*/
|
|
47
|
+
readonly project: string;
|
|
48
|
+
}
|
|
49
|
+
export declare function getProjectHooksOutput(args: GetProjectHooksOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetProjectHooksResult>;
|
|
50
|
+
/**
|
|
51
|
+
* A collection of arguments for invoking getProjectHooks.
|
|
52
|
+
*/
|
|
53
|
+
export interface GetProjectHooksOutputArgs {
|
|
54
|
+
/**
|
|
55
|
+
* The name or id of the project.
|
|
56
|
+
*/
|
|
57
|
+
project: pulumi.Input<string>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getProjectHooksOutput = exports.getProjectHooks = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The `gitlab.getProjectHooks` data source allows to retrieve details about hooks in a project.
|
|
10
|
+
*
|
|
11
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#list-project-hooks)
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
18
|
+
*
|
|
19
|
+
* const example = gitlab.getProject({
|
|
20
|
+
* id: "foo/bar/baz",
|
|
21
|
+
* });
|
|
22
|
+
* const examples = example.then(example => gitlab.getProjectHooks({
|
|
23
|
+
* project: example.id,
|
|
24
|
+
* }));
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
function getProjectHooks(args, opts) {
|
|
28
|
+
if (!opts) {
|
|
29
|
+
opts = {};
|
|
30
|
+
}
|
|
31
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
32
|
+
return pulumi.runtime.invoke("gitlab:index/getProjectHooks:getProjectHooks", {
|
|
33
|
+
"project": args.project,
|
|
34
|
+
}, opts);
|
|
35
|
+
}
|
|
36
|
+
exports.getProjectHooks = getProjectHooks;
|
|
37
|
+
function getProjectHooksOutput(args, opts) {
|
|
38
|
+
return pulumi.output(args).apply(a => getProjectHooks(a, opts));
|
|
39
|
+
}
|
|
40
|
+
exports.getProjectHooksOutput = getProjectHooksOutput;
|
|
41
|
+
//# sourceMappingURL=getProjectHooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProjectHooks.js","sourceRoot":"","sources":["../getProjectHooks.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE;QACzE,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,0CASC;AA8BD,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,sDAEC"}
|