@pulumi/gitlab 9.6.0 → 9.8.0-alpha.1766469107

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 (97) hide show
  1. package/getArtifactFile.d.ts +2 -2
  2. package/getArtifactFile.js +2 -2
  3. package/getGroupBillableMemberMemberships.d.ts +2 -2
  4. package/getGroupBillableMemberMemberships.js +2 -2
  5. package/getGroupMembership.d.ts +2 -2
  6. package/getGroupMembership.js +2 -2
  7. package/getGroupServiceAccount.d.ts +2 -2
  8. package/getGroupServiceAccount.js +2 -2
  9. package/getGroupServiceAccountAccessTokens.d.ts +66 -0
  10. package/getGroupServiceAccountAccessTokens.js +42 -0
  11. package/getGroupServiceAccountAccessTokens.js.map +1 -0
  12. package/getGroupVariable.d.ts +1 -1
  13. package/getInstanceServiceAccount.d.ts +2 -2
  14. package/getInstanceServiceAccount.js +2 -2
  15. package/getProject.d.ts +4 -0
  16. package/getProject.js.map +1 -1
  17. package/getProjectIssueLabelEvents.d.ts +94 -0
  18. package/getProjectIssueLabelEvents.js +60 -0
  19. package/getProjectIssueLabelEvents.js.map +1 -0
  20. package/getProjectMembership.d.ts +2 -2
  21. package/getProjectMembership.js +2 -2
  22. package/getProjectProtectedTag.d.ts +2 -2
  23. package/getProjectProtectedTag.js +2 -2
  24. package/getProjectSecureFile.d.ts +125 -0
  25. package/getProjectSecureFile.js +68 -0
  26. package/getProjectSecureFile.js.map +1 -0
  27. package/getProjects.d.ts +3 -3
  28. package/getReleaseLink.d.ts +5 -5
  29. package/getReleaseLinks.d.ts +3 -3
  30. package/getSecurityPolicyDocument.d.ts +112 -0
  31. package/getSecurityPolicyDocument.js +96 -0
  32. package/getSecurityPolicyDocument.js.map +1 -0
  33. package/globalLevelNotifications.d.ts +1 -1
  34. package/globalLevelNotifications.js +1 -1
  35. package/groupAccessToken.d.ts +2 -2
  36. package/groupAccessToken.js +2 -2
  37. package/groupLabel.d.ts +3 -3
  38. package/groupMembership.d.ts +1 -1
  39. package/groupMembership.js +1 -1
  40. package/groupServiceAccount.d.ts +1 -1
  41. package/groupServiceAccount.js +1 -1
  42. package/groupServiceAccountAccessToken.d.ts +1 -1
  43. package/groupServiceAccountAccessToken.js +1 -1
  44. package/groupShareGroup.d.ts +1 -1
  45. package/groupShareGroup.js +1 -1
  46. package/index.d.ts +15 -0
  47. package/index.js +23 -5
  48. package/index.js.map +1 -1
  49. package/instanceServiceAccount.d.ts +1 -1
  50. package/instanceServiceAccount.js +1 -1
  51. package/instanceVariable.d.ts +8 -8
  52. package/label.d.ts +3 -3
  53. package/memberRole.d.ts +4 -4
  54. package/memberRole.js +1 -1
  55. package/package.json +2 -2
  56. package/pagesDomain.d.ts +3 -3
  57. package/personalAccessToken.d.ts +1 -1
  58. package/personalAccessToken.js +1 -1
  59. package/pipelineScheduleVariable.d.ts +1 -1
  60. package/pipelineScheduleVariable.js +1 -1
  61. package/project.d.ts +15 -3
  62. package/project.js +2 -0
  63. package/project.js.map +1 -1
  64. package/projectAccessToken.d.ts +1 -1
  65. package/projectAccessToken.js +1 -1
  66. package/projectDeployToken.d.ts +1 -1
  67. package/projectDeployToken.js +1 -1
  68. package/projectHook.d.ts +1 -1
  69. package/projectHook.js +1 -1
  70. package/projectLabel.d.ts +5 -5
  71. package/projectLabel.js +2 -2
  72. package/projectLevelMrApprovals.d.ts +1 -1
  73. package/projectLevelMrApprovals.js +1 -1
  74. package/projectLevelNotifications.d.ts +1 -1
  75. package/projectLevelNotifications.js +1 -1
  76. package/projectMembership.d.ts +1 -1
  77. package/projectMembership.js +1 -1
  78. package/projectTargetBranchRule.d.ts +1 -1
  79. package/projectTargetBranchRule.js +1 -1
  80. package/projectVariable.d.ts +3 -3
  81. package/releaseLink.d.ts +8 -8
  82. package/runner.d.ts +1 -1
  83. package/runner.js +1 -1
  84. package/systemHook.d.ts +3 -3
  85. package/types/input.d.ts +224 -0
  86. package/types/output.d.ts +257 -4
  87. package/userAvatar.d.ts +126 -0
  88. package/userAvatar.js +99 -0
  89. package/userAvatar.js.map +1 -0
  90. package/userGpgKey.d.ts +1 -1
  91. package/userGpgKey.js +1 -1
  92. package/userImpersonationToken.d.ts +1 -1
  93. package/userImpersonationToken.js +1 -1
  94. package/userRunner.d.ts +1 -1
  95. package/userRunner.js +1 -1
  96. package/userSshKey.d.ts +1 -1
  97. package/userSshKey.js +1 -1
package/userAvatar.js ADDED
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
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.UserAvatar = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * The `gitlab.UserAvatar` resource allows users to manage the lifecycle of a user avatar.
10
+ * The resource can also be used to set the avatar on project or group access tokens, as well as on service accounts.
11
+ *
12
+ * > The `token` attribute is optional only when the GitLab token used by the provider has an administrator scope, as this allows an administrator to manage user avatars.
13
+ *
14
+ * > The provided `token` must have the `api` scope in order to set the avatar.
15
+ *
16
+ * **Upstream API**: [GitLab API docs](https://docs.gitlab.com/api/users/#upload-an-avatar-for-yourself)
17
+ *
18
+ * ## Import
19
+ *
20
+ * Starting in Terraform v1.5.0, you can use an import block to import `gitlab_user_avatar`. For example:
21
+ *
22
+ * terraform
23
+ *
24
+ * import {
25
+ *
26
+ * to = gitlab_user_avatar.example
27
+ *
28
+ * id = "see CLI command below for ID"
29
+ *
30
+ * }
31
+ *
32
+ * Importing using the CLI is supported with the following syntax:
33
+ *
34
+ * A GitLab User Avatar can be imported using the user id, e.g.
35
+ *
36
+ * ```sh
37
+ * $ pulumi import gitlab:index/userAvatar:UserAvatar example "12345"
38
+ * ```
39
+ *
40
+ * NOTE: the `token` and `avatar` resource attributes are not available for imported resources as this information cannot be read from the GitLab API.
41
+ */
42
+ class UserAvatar extends pulumi.CustomResource {
43
+ /**
44
+ * Get an existing UserAvatar resource's state with the given name, ID, and optional extra
45
+ * properties used to qualify the lookup.
46
+ *
47
+ * @param name The _unique_ name of the resulting resource.
48
+ * @param id The _unique_ provider ID of the resource to lookup.
49
+ * @param state Any extra arguments used during the lookup.
50
+ * @param opts Optional settings to control the behavior of the CustomResource.
51
+ */
52
+ static get(name, id, state, opts) {
53
+ return new UserAvatar(name, state, { ...opts, id: id });
54
+ }
55
+ /**
56
+ * Returns true if the given object is an instance of UserAvatar. This is designed to work even
57
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
58
+ */
59
+ static isInstance(obj) {
60
+ if (obj === undefined || obj === null) {
61
+ return false;
62
+ }
63
+ return obj['__pulumiType'] === UserAvatar.__pulumiType;
64
+ }
65
+ constructor(name, argsOrState, opts) {
66
+ let resourceInputs = {};
67
+ opts = opts || {};
68
+ if (opts.id) {
69
+ const state = argsOrState;
70
+ resourceInputs["avatar"] = state?.avatar;
71
+ resourceInputs["avatarHash"] = state?.avatarHash;
72
+ resourceInputs["avatarUrl"] = state?.avatarUrl;
73
+ resourceInputs["token"] = state?.token;
74
+ resourceInputs["userId"] = state?.userId;
75
+ }
76
+ else {
77
+ const args = argsOrState;
78
+ if (args?.avatar === undefined && !opts.urn) {
79
+ throw new Error("Missing required property 'avatar'");
80
+ }
81
+ if (args?.userId === undefined && !opts.urn) {
82
+ throw new Error("Missing required property 'userId'");
83
+ }
84
+ resourceInputs["avatar"] = args?.avatar;
85
+ resourceInputs["avatarHash"] = args?.avatarHash;
86
+ resourceInputs["token"] = args?.token ? pulumi.secret(args.token) : undefined;
87
+ resourceInputs["userId"] = args?.userId;
88
+ resourceInputs["avatarUrl"] = undefined /*out*/;
89
+ }
90
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
91
+ const secretOpts = { additionalSecretOutputs: ["token"] };
92
+ opts = pulumi.mergeOptions(opts, secretOpts);
93
+ super(UserAvatar.__pulumiType, name, resourceInputs, opts);
94
+ }
95
+ }
96
+ exports.UserAvatar = UserAvatar;
97
+ /** @internal */
98
+ UserAvatar.__pulumiType = 'gitlab:index/userAvatar:UserAvatar';
99
+ //# sourceMappingURL=userAvatar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userAvatar.js","sourceRoot":"","sources":["../userAvatar.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IA+BD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC;YACvC,cAA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umi/pulumi";
4
4
  *
5
5
  * > Managing GPG keys for arbitrary users requires admin privileges.
6
6
  *
7
- * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/users/#get-a-specific-gpg-key)
7
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/user_keys/#get-a-gpg-key-for-a-user)
8
8
  *
9
9
  * ## Example Usage
10
10
  *
package/userGpgKey.js CHANGED
@@ -10,7 +10,7 @@ const utilities = require("./utilities");
10
10
  *
11
11
  * > Managing GPG keys for arbitrary users requires admin privileges.
12
12
  *
13
- * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/users/#get-a-specific-gpg-key)
13
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/user_keys/#get-a-gpg-key-for-a-user)
14
14
  *
15
15
  * ## Example Usage
16
16
  *
@@ -3,7 +3,7 @@ import * as pulumi from "@pulumi/pulumi";
3
3
  * The `gitlab.UserImpersonationToken` resource allows to manage impersonation tokens of users.
4
4
  * Requires administrator access. Token values are returned once. You are only able to create impersonation tokens to impersonate the user and perform both API calls and Git reads and writes. The user can’t see these tokens in their profile settings page.
5
5
  *
6
- * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/users/#create-an-impersonation-token)
6
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/user_tokens/#create-an-impersonation-token)
7
7
  *
8
8
  * ## Example Usage
9
9
  *
@@ -9,7 +9,7 @@ const utilities = require("./utilities");
9
9
  * The `gitlab.UserImpersonationToken` resource allows to manage impersonation tokens of users.
10
10
  * Requires administrator access. Token values are returned once. You are only able to create impersonation tokens to impersonate the user and perform both API calls and Git reads and writes. The user can’t see these tokens in their profile settings page.
11
11
  *
12
- * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/users/#create-an-impersonation-token)
12
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/user_tokens/#create-an-impersonation-token)
13
13
  *
14
14
  * ## Example Usage
15
15
  *
package/userRunner.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
3
  * The `gitlab.UserRunner` resource allows creating a GitLab runner using the new [GitLab Runner Registration Flow](https://docs.gitlab.com/ci/runners/new_creation_workflow/).
4
4
  *
5
- * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/users/#create-a-runner)
5
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/users/#create-a-runner-linked-to-a-user)
6
6
  *
7
7
  * ## Example Usage
8
8
  *
package/userRunner.js CHANGED
@@ -8,7 +8,7 @@ const utilities = require("./utilities");
8
8
  /**
9
9
  * The `gitlab.UserRunner` resource allows creating a GitLab runner using the new [GitLab Runner Registration Flow](https://docs.gitlab.com/ci/runners/new_creation_workflow/).
10
10
  *
11
- * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/users/#create-a-runner)
11
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/users/#create-a-runner-linked-to-a-user)
12
12
  *
13
13
  * ## Example Usage
14
14
  *
package/userSshKey.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
3
  * The `gitlab.UserSshKey` resource allows to manage the lifecycle of an SSH key assigned to a user.
4
4
  *
5
- * **Upstream API**: [GitLab API docs](https://docs.gitlab.com/api/users/#single-ssh-key)
5
+ * **Upstream API**: [GitLab API docs](https://docs.gitlab.com/api/user_keys/#get-an-ssh-key-for-a-user)
6
6
  *
7
7
  * ## Example Usage
8
8
  *
package/userSshKey.js CHANGED
@@ -8,7 +8,7 @@ const utilities = require("./utilities");
8
8
  /**
9
9
  * The `gitlab.UserSshKey` resource allows to manage the lifecycle of an SSH key assigned to a user.
10
10
  *
11
- * **Upstream API**: [GitLab API docs](https://docs.gitlab.com/api/users/#single-ssh-key)
11
+ * **Upstream API**: [GitLab API docs](https://docs.gitlab.com/api/user_keys/#get-an-ssh-key-for-a-user)
12
12
  *
13
13
  * ## Example Usage
14
14
  *