@pulumi/gitlab 4.10.0-alpha.1682547394 → 4.10.0-alpha.1682616809

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 (123) hide show
  1. package/applicationSettings.d.ts +1 -1
  2. package/applicationSettings.js +1 -1
  3. package/getBranch.d.ts +19 -3
  4. package/getBranch.js +21 -8
  5. package/getBranch.js.map +1 -1
  6. package/getClusterAgent.d.ts +21 -2
  7. package/getClusterAgent.js +23 -7
  8. package/getClusterAgent.js.map +1 -1
  9. package/getClusterAgents.d.ts +20 -2
  10. package/getClusterAgents.js +22 -7
  11. package/getClusterAgents.js.map +1 -1
  12. package/getCurrentUser.d.ts +1 -1
  13. package/getCurrentUser.js +2 -5
  14. package/getCurrentUser.js.map +1 -1
  15. package/getGroup.d.ts +18 -3
  16. package/getGroup.js +20 -8
  17. package/getGroup.js.map +1 -1
  18. package/getGroupHook.d.ts +5 -0
  19. package/getGroupHook.js +7 -5
  20. package/getGroupHook.js.map +1 -1
  21. package/getGroupHooks.d.ts +5 -0
  22. package/getGroupHooks.js +7 -5
  23. package/getGroupHooks.js.map +1 -1
  24. package/getGroupMembership.d.ts +18 -3
  25. package/getGroupMembership.js +20 -8
  26. package/getGroupMembership.js.map +1 -1
  27. package/getGroupVariable.d.ts +26 -5
  28. package/getGroupVariable.js +28 -10
  29. package/getGroupVariable.js.map +1 -1
  30. package/getGroupVariables.d.ts +24 -5
  31. package/getGroupVariables.js +26 -10
  32. package/getGroupVariables.js.map +1 -1
  33. package/getInstanceDeployKeys.d.ts +21 -4
  34. package/getInstanceDeployKeys.js +23 -9
  35. package/getInstanceDeployKeys.js.map +1 -1
  36. package/getInstanceVariable.d.ts +18 -2
  37. package/getInstanceVariable.js +20 -7
  38. package/getInstanceVariable.js.map +1 -1
  39. package/getInstanceVariables.d.ts +1 -1
  40. package/getInstanceVariables.js +2 -5
  41. package/getInstanceVariables.js.map +1 -1
  42. package/getProject.d.ts +18 -2
  43. package/getProject.js +20 -7
  44. package/getProject.js.map +1 -1
  45. package/getProjectHook.d.ts +20 -0
  46. package/getProjectHook.js +22 -5
  47. package/getProjectHook.js.map +1 -1
  48. package/getProjectHooks.d.ts +19 -0
  49. package/getProjectHooks.js +21 -5
  50. package/getProjectHooks.js.map +1 -1
  51. package/getProjectIssue.d.ts +21 -0
  52. package/getProjectIssue.js +23 -5
  53. package/getProjectIssue.js.map +1 -1
  54. package/getProjectIssues.d.ts +20 -0
  55. package/getProjectIssues.js +22 -5
  56. package/getProjectIssues.js.map +1 -1
  57. package/getProjectMembership.d.ts +21 -4
  58. package/getProjectMembership.js +23 -9
  59. package/getProjectMembership.js.map +1 -1
  60. package/getProjectMilestone.d.ts +19 -3
  61. package/getProjectMilestone.js +21 -8
  62. package/getProjectMilestone.js.map +1 -1
  63. package/getProjectMilestones.d.ts +18 -3
  64. package/getProjectMilestones.js +20 -8
  65. package/getProjectMilestones.js.map +1 -1
  66. package/getProjectProtectedBranch.d.ts +19 -2
  67. package/getProjectProtectedBranch.js +21 -7
  68. package/getProjectProtectedBranch.js.map +1 -1
  69. package/getProjectProtectedBranches.d.ts +18 -2
  70. package/getProjectProtectedBranches.js +20 -7
  71. package/getProjectProtectedBranches.js.map +1 -1
  72. package/getProjectTag.d.ts +19 -3
  73. package/getProjectTag.js +21 -8
  74. package/getProjectTag.js.map +1 -1
  75. package/getProjectTags.d.ts +18 -3
  76. package/getProjectTags.js +20 -8
  77. package/getProjectTags.js.map +1 -1
  78. package/getProjectVariable.d.ts +26 -5
  79. package/getProjectVariable.js +28 -10
  80. package/getProjectVariable.js.map +1 -1
  81. package/getProjectVariables.d.ts +24 -5
  82. package/getProjectVariables.js +26 -10
  83. package/getProjectVariables.js.map +1 -1
  84. package/getProjects.d.ts +30 -0
  85. package/getProjects.js +32 -5
  86. package/getProjects.js.map +1 -1
  87. package/getReleaseLink.d.ts +20 -3
  88. package/getReleaseLink.js +22 -8
  89. package/getReleaseLink.js.map +1 -1
  90. package/getReleaseLinks.d.ts +19 -3
  91. package/getReleaseLinks.js +21 -8
  92. package/getReleaseLinks.js.map +1 -1
  93. package/getRepositoryFile.d.ts +20 -2
  94. package/getRepositoryFile.js +22 -7
  95. package/getRepositoryFile.js.map +1 -1
  96. package/getRepositoryTree.d.ts +21 -2
  97. package/getRepositoryTree.js +23 -7
  98. package/getRepositoryTree.js.map +1 -1
  99. package/getUser.d.ts +7 -0
  100. package/getUser.js +9 -5
  101. package/getUser.js.map +1 -1
  102. package/getUsers.d.ts +29 -4
  103. package/getUsers.js +31 -9
  104. package/getUsers.js.map +1 -1
  105. package/groupHook.d.ts +1 -1
  106. package/groupHook.js +1 -1
  107. package/groupSamlLink.d.ts +0 -13
  108. package/groupSamlLink.js +0 -13
  109. package/groupSamlLink.js.map +1 -1
  110. package/groupVariable.d.ts +1 -1
  111. package/groupVariable.js +1 -1
  112. package/instanceVariable.d.ts +1 -1
  113. package/instanceVariable.js +1 -1
  114. package/package.json +2 -2
  115. package/package.json.dev +2 -2
  116. package/project.d.ts +1 -1
  117. package/project.js +1 -1
  118. package/projectIssueBoard.d.ts +1 -1
  119. package/projectIssueBoard.js +1 -1
  120. package/projectVariable.d.ts +1 -1
  121. package/projectVariable.js +1 -1
  122. package/tagProtection.d.ts +1 -1
  123. package/tagProtection.js +1 -1
@@ -7,7 +7,7 @@ import * as pulumi from "@pulumi/pulumi";
7
7
  * import * as gitlab from "@pulumi/gitlab";
8
8
  *
9
9
  * // Set the 2FA settings
10
- * const thisApplicationSettings = new gitlab.ApplicationSettings("this", {
10
+ * const _this = new gitlab.ApplicationSettings("this", {
11
11
  * requireTwoFactorAuthentication: true,
12
12
  * twoFactorGracePeriod: 24,
13
13
  * });
@@ -13,7 +13,7 @@ const utilities = require("./utilities");
13
13
  * import * as gitlab from "@pulumi/gitlab";
14
14
  *
15
15
  * // Set the 2FA settings
16
- * const thisApplicationSettings = new gitlab.ApplicationSettings("this", {
16
+ * const _this = new gitlab.ApplicationSettings("this", {
17
17
  * requireTwoFactorAuthentication: true,
18
18
  * twoFactorGracePeriod: 24,
19
19
  * });
package/getBranch.d.ts CHANGED
@@ -11,11 +11,10 @@ import * as outputs from "./types/output";
11
11
  * import * as pulumi from "@pulumi/pulumi";
12
12
  * import * as gitlab from "@pulumi/gitlab";
13
13
  *
14
- * // By project full path
15
- * const foo = pulumi.output(gitlab.getBranch({
14
+ * const foo = gitlab.getBranch({
16
15
  * name: "example",
17
16
  * project: "foo/bar",
18
- * }));
17
+ * });
19
18
  * ```
20
19
  */
21
20
  export declare function getBranch(args: GetBranchArgs, opts?: pulumi.InvokeOptions): Promise<GetBranchResult>;
@@ -81,6 +80,23 @@ export interface GetBranchResult {
81
80
  */
82
81
  readonly webUrl: string;
83
82
  }
83
+ /**
84
+ * The `gitlab.Branch` data source allows details of a repository branch to be retrieved by its name and project.
85
+ *
86
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html#get-single-repository-branch)
87
+ *
88
+ * ## Example Usage
89
+ *
90
+ * ```typescript
91
+ * import * as pulumi from "@pulumi/pulumi";
92
+ * import * as gitlab from "@pulumi/gitlab";
93
+ *
94
+ * const foo = gitlab.getBranch({
95
+ * name: "example",
96
+ * project: "foo/bar",
97
+ * });
98
+ * ```
99
+ */
84
100
  export declare function getBranchOutput(args: GetBranchOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetBranchResult>;
85
101
  /**
86
102
  * A collection of arguments for invoking getBranch.
package/getBranch.js CHANGED
@@ -16,26 +16,39 @@ const utilities = require("./utilities");
16
16
  * import * as pulumi from "@pulumi/pulumi";
17
17
  * import * as gitlab from "@pulumi/gitlab";
18
18
  *
19
- * // By project full path
20
- * const foo = pulumi.output(gitlab.getBranch({
19
+ * const foo = gitlab.getBranch({
21
20
  * name: "example",
22
21
  * project: "foo/bar",
23
- * }));
22
+ * });
24
23
  * ```
25
24
  */
26
25
  function getBranch(args, opts) {
27
- if (!opts) {
28
- opts = {};
29
- }
30
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
26
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
31
27
  return pulumi.runtime.invoke("gitlab:index/getBranch:getBranch", {
32
28
  "name": args.name,
33
29
  "project": args.project,
34
30
  }, opts);
35
31
  }
36
32
  exports.getBranch = getBranch;
33
+ /**
34
+ * The `gitlab.Branch` data source allows details of a repository branch to be retrieved by its name and project.
35
+ *
36
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html#get-single-repository-branch)
37
+ *
38
+ * ## Example Usage
39
+ *
40
+ * ```typescript
41
+ * import * as pulumi from "@pulumi/pulumi";
42
+ * import * as gitlab from "@pulumi/gitlab";
43
+ *
44
+ * const foo = gitlab.getBranch({
45
+ * name: "example",
46
+ * project: "foo/bar",
47
+ * });
48
+ * ```
49
+ */
37
50
  function getBranchOutput(args, opts) {
38
- return pulumi.output(args).apply(a => getBranch(a, opts));
51
+ return pulumi.output(args).apply((a) => getBranch(a, opts));
39
52
  }
40
53
  exports.getBranchOutput = getBranchOutput;
41
54
  //# sourceMappingURL=getBranch.js.map
package/getBranch.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getBranch.js","sourceRoot":"","sources":["../getBranch.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IACtE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kCAAkC,EAAE;QAC7D,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,8BAUC;AAkED,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7D,CAAC;AAFD,0CAEC"}
1
+ {"version":3,"file":"getBranch.js","sourceRoot":"","sources":["../getBranch.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IAEtE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kCAAkC,EAAE;QAC7D,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8BAOC;AAiED;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,0CAEC"}
@@ -12,10 +12,10 @@ import * as pulumi from "@pulumi/pulumi";
12
12
  * import * as pulumi from "@pulumi/pulumi";
13
13
  * import * as gitlab from "@pulumi/gitlab";
14
14
  *
15
- * const example = pulumi.output(gitlab.getClusterAgent({
15
+ * const example = gitlab.getClusterAgent({
16
16
  * agentId: 1,
17
17
  * project: "12345",
18
- * }));
18
+ * });
19
19
  * ```
20
20
  */
21
21
  export declare function getClusterAgent(args: GetClusterAgentArgs, opts?: pulumi.InvokeOptions): Promise<GetClusterAgentResult>;
@@ -61,6 +61,25 @@ export interface GetClusterAgentResult {
61
61
  */
62
62
  readonly project: string;
63
63
  }
64
+ /**
65
+ * The `gitlab.ClusterAgent` data source allows to retrieve details about a GitLab Agent for Kubernetes.
66
+ *
67
+ * > Requires at least GitLab 14.10
68
+ *
69
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html)
70
+ *
71
+ * ## Example Usage
72
+ *
73
+ * ```typescript
74
+ * import * as pulumi from "@pulumi/pulumi";
75
+ * import * as gitlab from "@pulumi/gitlab";
76
+ *
77
+ * const example = gitlab.getClusterAgent({
78
+ * agentId: 1,
79
+ * project: "12345",
80
+ * });
81
+ * ```
82
+ */
64
83
  export declare function getClusterAgentOutput(args: GetClusterAgentOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetClusterAgentResult>;
65
84
  /**
66
85
  * A collection of arguments for invoking getClusterAgent.
@@ -18,25 +18,41 @@ const utilities = require("./utilities");
18
18
  * import * as pulumi from "@pulumi/pulumi";
19
19
  * import * as gitlab from "@pulumi/gitlab";
20
20
  *
21
- * const example = pulumi.output(gitlab.getClusterAgent({
21
+ * const example = gitlab.getClusterAgent({
22
22
  * agentId: 1,
23
23
  * project: "12345",
24
- * }));
24
+ * });
25
25
  * ```
26
26
  */
27
27
  function getClusterAgent(args, opts) {
28
- if (!opts) {
29
- opts = {};
30
- }
31
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
28
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
32
29
  return pulumi.runtime.invoke("gitlab:index/getClusterAgent:getClusterAgent", {
33
30
  "agentId": args.agentId,
34
31
  "project": args.project,
35
32
  }, opts);
36
33
  }
37
34
  exports.getClusterAgent = getClusterAgent;
35
+ /**
36
+ * The `gitlab.ClusterAgent` data source allows to retrieve details about a GitLab Agent for Kubernetes.
37
+ *
38
+ * > Requires at least GitLab 14.10
39
+ *
40
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html)
41
+ *
42
+ * ## Example Usage
43
+ *
44
+ * ```typescript
45
+ * import * as pulumi from "@pulumi/pulumi";
46
+ * import * as gitlab from "@pulumi/gitlab";
47
+ *
48
+ * const example = gitlab.getClusterAgent({
49
+ * agentId: 1,
50
+ * project: "12345",
51
+ * });
52
+ * ```
53
+ */
38
54
  function getClusterAgentOutput(args, opts) {
39
- return pulumi.output(args).apply(a => getClusterAgent(a, opts));
55
+ return pulumi.output(args).apply((a) => getClusterAgent(a, opts));
40
56
  }
41
57
  exports.getClusterAgentOutput = getClusterAgentOutput;
42
58
  //# sourceMappingURL=getClusterAgent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getClusterAgent.js","sourceRoot":"","sources":["../getClusterAgent.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,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;QACvB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,0CAUC;AA8CD,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"}
1
+ {"version":3,"file":"getClusterAgent.js","sourceRoot":"","sources":["../getClusterAgent.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAElF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE;QACzE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0CAOC;AA6CD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
@@ -13,9 +13,9 @@ import * as outputs from "./types/output";
13
13
  * import * as pulumi from "@pulumi/pulumi";
14
14
  * import * as gitlab from "@pulumi/gitlab";
15
15
  *
16
- * const agents = pulumi.output(gitlab.getClusterAgents({
16
+ * const agents = gitlab.getClusterAgents({
17
17
  * project: "12345",
18
- * }));
18
+ * });
19
19
  * ```
20
20
  */
21
21
  export declare function getClusterAgents(args: GetClusterAgentsArgs, opts?: pulumi.InvokeOptions): Promise<GetClusterAgentsResult>;
@@ -45,6 +45,24 @@ export interface GetClusterAgentsResult {
45
45
  */
46
46
  readonly project: string;
47
47
  }
48
+ /**
49
+ * The `gitlab.getClusterAgents` data source allows details of GitLab Agents for Kubernetes in a project.
50
+ *
51
+ * > Requires at least GitLab 14.10
52
+ *
53
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html)
54
+ *
55
+ * ## Example Usage
56
+ *
57
+ * ```typescript
58
+ * import * as pulumi from "@pulumi/pulumi";
59
+ * import * as gitlab from "@pulumi/gitlab";
60
+ *
61
+ * const agents = gitlab.getClusterAgents({
62
+ * project: "12345",
63
+ * });
64
+ * ```
65
+ */
48
66
  export declare function getClusterAgentsOutput(args: GetClusterAgentsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetClusterAgentsResult>;
49
67
  /**
50
68
  * A collection of arguments for invoking getClusterAgents.
@@ -18,23 +18,38 @@ const utilities = require("./utilities");
18
18
  * import * as pulumi from "@pulumi/pulumi";
19
19
  * import * as gitlab from "@pulumi/gitlab";
20
20
  *
21
- * const agents = pulumi.output(gitlab.getClusterAgents({
21
+ * const agents = gitlab.getClusterAgents({
22
22
  * project: "12345",
23
- * }));
23
+ * });
24
24
  * ```
25
25
  */
26
26
  function getClusterAgents(args, opts) {
27
- if (!opts) {
28
- opts = {};
29
- }
30
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
27
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
31
28
  return pulumi.runtime.invoke("gitlab:index/getClusterAgents:getClusterAgents", {
32
29
  "project": args.project,
33
30
  }, opts);
34
31
  }
35
32
  exports.getClusterAgents = getClusterAgents;
33
+ /**
34
+ * The `gitlab.getClusterAgents` data source allows details of GitLab Agents for Kubernetes in a project.
35
+ *
36
+ * > Requires at least GitLab 14.10
37
+ *
38
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html)
39
+ *
40
+ * ## Example Usage
41
+ *
42
+ * ```typescript
43
+ * import * as pulumi from "@pulumi/pulumi";
44
+ * import * as gitlab from "@pulumi/gitlab";
45
+ *
46
+ * const agents = gitlab.getClusterAgents({
47
+ * project: "12345",
48
+ * });
49
+ * ```
50
+ */
36
51
  function getClusterAgentsOutput(args, opts) {
37
- return pulumi.output(args).apply(a => getClusterAgents(a, opts));
52
+ return pulumi.output(args).apply((a) => getClusterAgents(a, opts));
38
53
  }
39
54
  exports.getClusterAgentsOutput = getClusterAgentsOutput;
40
55
  //# sourceMappingURL=getClusterAgents.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getClusterAgents.js","sourceRoot":"","sources":["../getClusterAgents.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,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,gDAAgD,EAAE;QAC3E,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,4CASC;AA8BD,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAChG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,wDAEC"}
1
+ {"version":3,"file":"getClusterAgents.js","sourceRoot":"","sources":["../getClusterAgents.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IAEpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,4CAMC;AA6BD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAChG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC3E,CAAC;AAFD,wDAEC"}
@@ -10,7 +10,7 @@ import * as pulumi from "@pulumi/pulumi";
10
10
  * import * as pulumi from "@pulumi/pulumi";
11
11
  * import * as gitlab from "@pulumi/gitlab";
12
12
  *
13
- * const example = pulumi.output(gitlab.getCurrentUser());
13
+ * const example = gitlab.getCurrentUser({});
14
14
  * ```
15
15
  */
16
16
  export declare function getCurrentUser(opts?: pulumi.InvokeOptions): Promise<GetCurrentUserResult>;
package/getCurrentUser.js CHANGED
@@ -16,14 +16,11 @@ const utilities = require("./utilities");
16
16
  * import * as pulumi from "@pulumi/pulumi";
17
17
  * import * as gitlab from "@pulumi/gitlab";
18
18
  *
19
- * const example = pulumi.output(gitlab.getCurrentUser());
19
+ * const example = gitlab.getCurrentUser({});
20
20
  * ```
21
21
  */
22
22
  function getCurrentUser(opts) {
23
- if (!opts) {
24
- opts = {};
25
- }
26
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
23
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
27
24
  return pulumi.runtime.invoke("gitlab:index/getCurrentUser:getCurrentUser", {}, opts);
28
25
  }
29
26
  exports.getCurrentUser = getCurrentUser;
@@ -1 +1 @@
1
- {"version":3,"file":"getCurrentUser.js","sourceRoot":"","sources":["../getCurrentUser.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,cAAc,CAAC,IAA2B;IACtD,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,EAC1E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,wCAQC"}
1
+ {"version":3,"file":"getCurrentUser.js","sourceRoot":"","sources":["../getCurrentUser.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,cAAc,CAAC,IAA2B;IAEtD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE,EAC1E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,wCAKC"}
package/getGroup.d.ts CHANGED
@@ -10,10 +10,9 @@ import * as pulumi from "@pulumi/pulumi";
10
10
  * import * as pulumi from "@pulumi/pulumi";
11
11
  * import * as gitlab from "@pulumi/gitlab";
12
12
  *
13
- * // By group's full path
14
- * const foo = pulumi.output(gitlab.getGroup({
13
+ * const foo = gitlab.getGroup({
15
14
  * fullPath: "foo/bar",
16
- * }));
15
+ * });
17
16
  * ```
18
17
  */
19
18
  export declare function getGroup(args?: GetGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetGroupResult>;
@@ -95,6 +94,22 @@ export interface GetGroupResult {
95
94
  */
96
95
  readonly webUrl: string;
97
96
  }
97
+ /**
98
+ * The `gitlab.Group` data source allows details of a group to be retrieved by its id or full path.
99
+ *
100
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#details-of-a-group)
101
+ *
102
+ * ## Example Usage
103
+ *
104
+ * ```typescript
105
+ * import * as pulumi from "@pulumi/pulumi";
106
+ * import * as gitlab from "@pulumi/gitlab";
107
+ *
108
+ * const foo = gitlab.getGroup({
109
+ * fullPath: "foo/bar",
110
+ * });
111
+ * ```
112
+ */
98
113
  export declare function getGroupOutput(args?: GetGroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetGroupResult>;
99
114
  /**
100
115
  * A collection of arguments for invoking getGroup.
package/getGroup.js CHANGED
@@ -16,26 +16,38 @@ const utilities = require("./utilities");
16
16
  * import * as pulumi from "@pulumi/pulumi";
17
17
  * import * as gitlab from "@pulumi/gitlab";
18
18
  *
19
- * // By group's full path
20
- * const foo = pulumi.output(gitlab.getGroup({
19
+ * const foo = gitlab.getGroup({
21
20
  * fullPath: "foo/bar",
22
- * }));
21
+ * });
23
22
  * ```
24
23
  */
25
24
  function getGroup(args, opts) {
26
25
  args = args || {};
27
- if (!opts) {
28
- opts = {};
29
- }
30
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
26
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
31
27
  return pulumi.runtime.invoke("gitlab:index/getGroup:getGroup", {
32
28
  "fullPath": args.fullPath,
33
29
  "groupId": args.groupId,
34
30
  }, opts);
35
31
  }
36
32
  exports.getGroup = getGroup;
33
+ /**
34
+ * The `gitlab.Group` data source allows details of a group to be retrieved by its id or full path.
35
+ *
36
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#details-of-a-group)
37
+ *
38
+ * ## Example Usage
39
+ *
40
+ * ```typescript
41
+ * import * as pulumi from "@pulumi/pulumi";
42
+ * import * as gitlab from "@pulumi/gitlab";
43
+ *
44
+ * const foo = gitlab.getGroup({
45
+ * fullPath: "foo/bar",
46
+ * });
47
+ * ```
48
+ */
37
49
  function getGroupOutput(args, opts) {
38
- return pulumi.output(args).apply(a => getGroup(a, opts));
50
+ return pulumi.output(args).apply((a) => getGroup(a, opts));
39
51
  }
40
52
  exports.getGroupOutput = getGroupOutput;
41
53
  //# sourceMappingURL=getGroup.js.map
package/getGroup.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getGroup.js","sourceRoot":"","sources":["../getGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,QAAQ,CAAC,IAAmB,EAAE,IAA2B;IACrE,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,gCAAgC,EAAE;QAC3D,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,4BAWC;AAkFD,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC5D,CAAC;AAFD,wCAEC"}
1
+ {"version":3,"file":"getGroup.js","sourceRoot":"","sources":["../getGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,QAAQ,CAAC,IAAmB,EAAE,IAA2B;IACrE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,EAAE;QAC3D,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,4BAQC;AAiFD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,wCAEC"}
package/getGroupHook.d.ts CHANGED
@@ -107,6 +107,11 @@ export interface GetGroupHookResult {
107
107
  */
108
108
  readonly wikiPageEvents: boolean;
109
109
  }
110
+ /**
111
+ * The `gitlab.GroupHook` data source allows to retrieve details about a hook in a group.
112
+ *
113
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#get-group-hook)
114
+ */
110
115
  export declare function getGroupHookOutput(args: GetGroupHookOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetGroupHookResult>;
111
116
  /**
112
117
  * A collection of arguments for invoking getGroupHook.
package/getGroupHook.js CHANGED
@@ -11,18 +11,20 @@ const utilities = require("./utilities");
11
11
  * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#get-group-hook)
12
12
  */
13
13
  function getGroupHook(args, opts) {
14
- if (!opts) {
15
- opts = {};
16
- }
17
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
14
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
18
15
  return pulumi.runtime.invoke("gitlab:index/getGroupHook:getGroupHook", {
19
16
  "group": args.group,
20
17
  "hookId": args.hookId,
21
18
  }, opts);
22
19
  }
23
20
  exports.getGroupHook = getGroupHook;
21
+ /**
22
+ * The `gitlab.GroupHook` data source allows to retrieve details about a hook in a group.
23
+ *
24
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#get-group-hook)
25
+ */
24
26
  function getGroupHookOutput(args, opts) {
25
- return pulumi.output(args).apply(a => getGroupHook(a, opts));
27
+ return pulumi.output(args).apply((a) => getGroupHook(a, opts));
26
28
  }
27
29
  exports.getGroupHookOutput = getGroupHookOutput;
28
30
  //# sourceMappingURL=getGroupHook.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getGroupHook.js","sourceRoot":"","sources":["../getGroupHook.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,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,wCAAwC,EAAE;QACnE,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,oCAUC;AA0GD,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChE,CAAC;AAFD,gDAEC"}
1
+ {"version":3,"file":"getGroupHook.js","sourceRoot":"","sources":["../getGroupHook.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAE5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,oCAOC;AAyGD;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,gDAEC"}
@@ -32,6 +32,11 @@ export interface GetGroupHooksResult {
32
32
  */
33
33
  readonly id: string;
34
34
  }
35
+ /**
36
+ * The `gitlab.getGroupHooks` data source allows to retrieve details about hooks in a group.
37
+ *
38
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#list-group-hooks)
39
+ */
35
40
  export declare function getGroupHooksOutput(args: GetGroupHooksOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetGroupHooksResult>;
36
41
  /**
37
42
  * A collection of arguments for invoking getGroupHooks.
package/getGroupHooks.js CHANGED
@@ -11,17 +11,19 @@ const utilities = require("./utilities");
11
11
  * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#list-group-hooks)
12
12
  */
13
13
  function getGroupHooks(args, opts) {
14
- if (!opts) {
15
- opts = {};
16
- }
17
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
14
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
18
15
  return pulumi.runtime.invoke("gitlab:index/getGroupHooks:getGroupHooks", {
19
16
  "group": args.group,
20
17
  }, opts);
21
18
  }
22
19
  exports.getGroupHooks = getGroupHooks;
20
+ /**
21
+ * The `gitlab.getGroupHooks` data source allows to retrieve details about hooks in a group.
22
+ *
23
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#list-group-hooks)
24
+ */
23
25
  function getGroupHooksOutput(args, opts) {
24
- return pulumi.output(args).apply(a => getGroupHooks(a, opts));
26
+ return pulumi.output(args).apply((a) => getGroupHooks(a, opts));
25
27
  }
26
28
  exports.getGroupHooksOutput = getGroupHooksOutput;
27
29
  //# sourceMappingURL=getGroupHooks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getGroupHooks.js","sourceRoot":"","sources":["../getGroupHooks.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAC9E,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,0CAA0C,EAAE;QACrE,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,sCASC;AA8BD,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACjE,CAAC;AAFD,kDAEC"}
1
+ {"version":3,"file":"getGroupHooks.js","sourceRoot":"","sources":["../getGroupHooks.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAE9E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sCAMC;AA6BD;;;;GAIG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
@@ -11,10 +11,9 @@ import * as outputs from "./types/output";
11
11
  * import * as pulumi from "@pulumi/pulumi";
12
12
  * import * as gitlab from "@pulumi/gitlab";
13
13
  *
14
- * // By group's full path
15
- * const example = pulumi.output(gitlab.getGroupMembership({
14
+ * const example = gitlab.getGroupMembership({
16
15
  * fullPath: "foo/bar",
17
- * }));
16
+ * });
18
17
  * ```
19
18
  */
20
19
  export declare function getGroupMembership(args?: GetGroupMembershipArgs, opts?: pulumi.InvokeOptions): Promise<GetGroupMembershipResult>;
@@ -60,6 +59,22 @@ export interface GetGroupMembershipResult {
60
59
  */
61
60
  readonly members: outputs.GetGroupMembershipMember[];
62
61
  }
62
+ /**
63
+ * The `gitlab.GroupMembership` data source allows to list and filter all members of a group specified by either its id or full path.
64
+ *
65
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project)
66
+ *
67
+ * ## Example Usage
68
+ *
69
+ * ```typescript
70
+ * import * as pulumi from "@pulumi/pulumi";
71
+ * import * as gitlab from "@pulumi/gitlab";
72
+ *
73
+ * const example = gitlab.getGroupMembership({
74
+ * fullPath: "foo/bar",
75
+ * });
76
+ * ```
77
+ */
63
78
  export declare function getGroupMembershipOutput(args?: GetGroupMembershipOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetGroupMembershipResult>;
64
79
  /**
65
80
  * A collection of arguments for invoking getGroupMembership.
@@ -16,18 +16,14 @@ const utilities = require("./utilities");
16
16
  * import * as pulumi from "@pulumi/pulumi";
17
17
  * import * as gitlab from "@pulumi/gitlab";
18
18
  *
19
- * // By group's full path
20
- * const example = pulumi.output(gitlab.getGroupMembership({
19
+ * const example = gitlab.getGroupMembership({
21
20
  * fullPath: "foo/bar",
22
- * }));
21
+ * });
23
22
  * ```
24
23
  */
25
24
  function getGroupMembership(args, opts) {
26
25
  args = args || {};
27
- if (!opts) {
28
- opts = {};
29
- }
30
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
26
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
31
27
  return pulumi.runtime.invoke("gitlab:index/getGroupMembership:getGroupMembership", {
32
28
  "accessLevel": args.accessLevel,
33
29
  "fullPath": args.fullPath,
@@ -35,8 +31,24 @@ function getGroupMembership(args, opts) {
35
31
  }, opts);
36
32
  }
37
33
  exports.getGroupMembership = getGroupMembership;
34
+ /**
35
+ * The `gitlab.GroupMembership` data source allows to list and filter all members of a group specified by either its id or full path.
36
+ *
37
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project)
38
+ *
39
+ * ## Example Usage
40
+ *
41
+ * ```typescript
42
+ * import * as pulumi from "@pulumi/pulumi";
43
+ * import * as gitlab from "@pulumi/gitlab";
44
+ *
45
+ * const example = gitlab.getGroupMembership({
46
+ * fullPath: "foo/bar",
47
+ * });
48
+ * ```
49
+ */
38
50
  function getGroupMembershipOutput(args, opts) {
39
- return pulumi.output(args).apply(a => getGroupMembership(a, opts));
51
+ return pulumi.output(args).apply((a) => getGroupMembership(a, opts));
40
52
  }
41
53
  exports.getGroupMembershipOutput = getGroupMembershipOutput;
42
54
  //# sourceMappingURL=getGroupMembership.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getGroupMembership.js","sourceRoot":"","sources":["../getGroupMembership.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,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,oDAAoD,EAAE;QAC/E,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,gDAYC;AA8CD,SAAgB,wBAAwB,CAAC,IAAmC,EAAE,IAA2B;IACrG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,4DAEC"}
1
+ {"version":3,"file":"getGroupMembership.js","sourceRoot":"","sources":["../getGroupMembership.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oDAAoD,EAAE;QAC/E,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,gDASC;AA6CD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,wBAAwB,CAAC,IAAmC,EAAE,IAA2B;IACrG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7E,CAAC;AAFD,4DAEC"}