@pulumi/gitlab 9.3.0-alpha.1759039852 → 9.3.0-alpha.1759184134

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 (72) hide show
  1. package/clusterAgentToken.d.ts +1 -1
  2. package/config/vars.d.ts +12 -0
  3. package/config/vars.js +18 -0
  4. package/config/vars.js.map +1 -1
  5. package/deployToken.d.ts +5 -3
  6. package/deployToken.js +2 -0
  7. package/deployToken.js.map +1 -1
  8. package/getBranch.d.ts +1 -1
  9. package/getClusterAgent.d.ts +3 -3
  10. package/getClusterAgent.js +2 -2
  11. package/getClusterAgents.d.ts +6 -6
  12. package/getClusterAgents.js +2 -2
  13. package/getCurrentUser.d.ts +1 -1
  14. package/getGroupHook.d.ts +4 -2
  15. package/getGroupHook.js.map +1 -1
  16. package/getGroupSamlLinks.d.ts +46 -0
  17. package/getGroupSamlLinks.js +32 -0
  18. package/getGroupSamlLinks.js.map +1 -0
  19. package/getInstanceDeployKeys.d.ts +1 -1
  20. package/getInstanceVariable.d.ts +7 -7
  21. package/getInstanceVariable.js +2 -2
  22. package/getInstanceVariables.d.ts +4 -4
  23. package/getInstanceVariables.js +2 -2
  24. package/getProjectBranches.d.ts +1 -1
  25. package/getProjectHook.d.ts +6 -4
  26. package/getProjectHook.js +2 -2
  27. package/getProjectHook.js.map +1 -1
  28. package/getProjectHooks.d.ts +1 -1
  29. package/getProjectMembership.d.ts +27 -7
  30. package/getProjectMembership.js +4 -6
  31. package/getProjectMembership.js.map +1 -1
  32. package/getProjectMilestone.d.ts +1 -1
  33. package/getProjectMilestones.d.ts +1 -1
  34. package/getProjectVariable.d.ts +12 -12
  35. package/getProjectVariables.d.ts +4 -4
  36. package/getReleaseLink.d.ts +4 -4
  37. package/getReleaseLink.js +2 -2
  38. package/getReleaseLinks.d.ts +4 -4
  39. package/getRepositoryFile.d.ts +1 -1
  40. package/getRepositoryTree.d.ts +1 -1
  41. package/getUser.d.ts +1 -1
  42. package/getUsers.d.ts +13 -1
  43. package/getUsers.js +2 -0
  44. package/getUsers.js.map +1 -1
  45. package/group.d.ts +3 -3
  46. package/groupDeployToken.d.ts +181 -0
  47. package/groupDeployToken.js +132 -0
  48. package/groupDeployToken.js.map +1 -0
  49. package/groupLevelMrApprovals.d.ts +140 -0
  50. package/groupLevelMrApprovals.js +93 -0
  51. package/groupLevelMrApprovals.js.map +1 -0
  52. package/groupShareGroup.d.ts +5 -3
  53. package/groupShareGroup.js +2 -0
  54. package/groupShareGroup.js.map +1 -1
  55. package/index.d.ts +15 -0
  56. package/index.js +28 -5
  57. package/index.js.map +1 -1
  58. package/instanceServiceAccount.d.ts +1 -1
  59. package/package.json +2 -2
  60. package/projectDeployToken.d.ts +181 -0
  61. package/projectDeployToken.js +132 -0
  62. package/projectDeployToken.js.map +1 -0
  63. package/projectEnvironment.d.ts +4 -4
  64. package/projectExternalStatusCheck.d.ts +158 -0
  65. package/projectExternalStatusCheck.js +121 -0
  66. package/projectExternalStatusCheck.js.map +1 -0
  67. package/projectFreezePeriod.d.ts +10 -10
  68. package/projectHook.d.ts +3 -3
  69. package/provider.d.ts +20 -0
  70. package/provider.js +3 -0
  71. package/provider.js.map +1 -1
  72. package/types/output.d.ts +38 -16
@@ -0,0 +1,158 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * The `gitlab.ProjectExternalStatusCheck` resource allows you to manage the lifecycle of an external status check service on a project.
4
+ *
5
+ * > This resource requires a GitLab Enterprise instance with an Ultimate license.
6
+ *
7
+ * **Upstream API**: [GitLab API docs](https://docs.gitlab.com/api/status_checks/)
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as gitlab from "@pulumi/gitlab";
14
+ *
15
+ * const foo = new gitlab.ProjectExternalStatusCheck("foo", {
16
+ * projectId: 123,
17
+ * name: "foo",
18
+ * externalUrl: "https://example.gitlab.com",
19
+ * });
20
+ * const bar = new gitlab.ProjectExternalStatusCheck("bar", {
21
+ * projectId: 456,
22
+ * name: "bar",
23
+ * externalUrl: "https://example.gitlab.com",
24
+ * sharedSecret: "secret",
25
+ * protectedBranchIds: [
26
+ * 6,
27
+ * 28,
28
+ * ],
29
+ * });
30
+ * ```
31
+ *
32
+ * ## Import
33
+ *
34
+ * Starting in Terraform v1.5.0, you can use an import block to import `gitlab_project_external_status_check`. For example:
35
+ *
36
+ * terraform
37
+ *
38
+ * import {
39
+ *
40
+ * to = gitlab_project_external_status_check.example
41
+ *
42
+ * id = "see CLI command below for ID"
43
+ *
44
+ * }
45
+ *
46
+ * Importing using the CLI is supported with the following syntax:
47
+ *
48
+ * GitLab project external status checks can be imported using an id made up of `<project-id>:<external-check-id>`, e.g.
49
+ *
50
+ * ```sh
51
+ * $ pulumi import gitlab:index/projectExternalStatusCheck:ProjectExternalStatusCheck foo "123:42"
52
+ * ```
53
+ *
54
+ * NOTE: the `shared_secret` resource attribute is not available for imported resources as this information cannot be read from the GitLab API.
55
+ */
56
+ export declare class ProjectExternalStatusCheck extends pulumi.CustomResource {
57
+ /**
58
+ * Get an existing ProjectExternalStatusCheck resource's state with the given name, ID, and optional extra
59
+ * properties used to qualify the lookup.
60
+ *
61
+ * @param name The _unique_ name of the resulting resource.
62
+ * @param id The _unique_ provider ID of the resource to lookup.
63
+ * @param state Any extra arguments used during the lookup.
64
+ * @param opts Optional settings to control the behavior of the CustomResource.
65
+ */
66
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectExternalStatusCheckState, opts?: pulumi.CustomResourceOptions): ProjectExternalStatusCheck;
67
+ /**
68
+ * Returns true if the given object is an instance of ProjectExternalStatusCheck. This is designed to work even
69
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
70
+ */
71
+ static isInstance(obj: any): obj is ProjectExternalStatusCheck;
72
+ /**
73
+ * The URL of the external status check service.
74
+ */
75
+ readonly externalUrl: pulumi.Output<string>;
76
+ /**
77
+ * True if the external status check uses an HMAC secret.
78
+ */
79
+ readonly hmac: pulumi.Output<boolean>;
80
+ /**
81
+ * The display name of the external status check service.
82
+ */
83
+ readonly name: pulumi.Output<string>;
84
+ /**
85
+ * The ID of the project.
86
+ */
87
+ readonly projectId: pulumi.Output<number>;
88
+ /**
89
+ * The list of IDs of protected branches to scope the rule by.
90
+ */
91
+ readonly protectedBranchIds: pulumi.Output<number[]>;
92
+ /**
93
+ * The HMAC secret for the external status check. If this is set, then removed from the config, the value will get set to empty in the state.
94
+ */
95
+ readonly sharedSecret: pulumi.Output<string | undefined>;
96
+ /**
97
+ * Create a ProjectExternalStatusCheck resource with the given unique name, arguments, and options.
98
+ *
99
+ * @param name The _unique_ name of the resource.
100
+ * @param args The arguments to use to populate this resource's properties.
101
+ * @param opts A bag of options that control this resource's behavior.
102
+ */
103
+ constructor(name: string, args: ProjectExternalStatusCheckArgs, opts?: pulumi.CustomResourceOptions);
104
+ }
105
+ /**
106
+ * Input properties used for looking up and filtering ProjectExternalStatusCheck resources.
107
+ */
108
+ export interface ProjectExternalStatusCheckState {
109
+ /**
110
+ * The URL of the external status check service.
111
+ */
112
+ externalUrl?: pulumi.Input<string>;
113
+ /**
114
+ * True if the external status check uses an HMAC secret.
115
+ */
116
+ hmac?: pulumi.Input<boolean>;
117
+ /**
118
+ * The display name of the external status check service.
119
+ */
120
+ name?: pulumi.Input<string>;
121
+ /**
122
+ * The ID of the project.
123
+ */
124
+ projectId?: pulumi.Input<number>;
125
+ /**
126
+ * The list of IDs of protected branches to scope the rule by.
127
+ */
128
+ protectedBranchIds?: pulumi.Input<pulumi.Input<number>[]>;
129
+ /**
130
+ * The HMAC secret for the external status check. If this is set, then removed from the config, the value will get set to empty in the state.
131
+ */
132
+ sharedSecret?: pulumi.Input<string>;
133
+ }
134
+ /**
135
+ * The set of arguments for constructing a ProjectExternalStatusCheck resource.
136
+ */
137
+ export interface ProjectExternalStatusCheckArgs {
138
+ /**
139
+ * The URL of the external status check service.
140
+ */
141
+ externalUrl: pulumi.Input<string>;
142
+ /**
143
+ * The display name of the external status check service.
144
+ */
145
+ name?: pulumi.Input<string>;
146
+ /**
147
+ * The ID of the project.
148
+ */
149
+ projectId: pulumi.Input<number>;
150
+ /**
151
+ * The list of IDs of protected branches to scope the rule by.
152
+ */
153
+ protectedBranchIds?: pulumi.Input<pulumi.Input<number>[]>;
154
+ /**
155
+ * The HMAC secret for the external status check. If this is set, then removed from the config, the value will get set to empty in the state.
156
+ */
157
+ sharedSecret?: pulumi.Input<string>;
158
+ }
@@ -0,0 +1,121 @@
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.ProjectExternalStatusCheck = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * The `gitlab.ProjectExternalStatusCheck` resource allows you to manage the lifecycle of an external status check service on a project.
10
+ *
11
+ * > This resource requires a GitLab Enterprise instance with an Ultimate license.
12
+ *
13
+ * **Upstream API**: [GitLab API docs](https://docs.gitlab.com/api/status_checks/)
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as gitlab from "@pulumi/gitlab";
20
+ *
21
+ * const foo = new gitlab.ProjectExternalStatusCheck("foo", {
22
+ * projectId: 123,
23
+ * name: "foo",
24
+ * externalUrl: "https://example.gitlab.com",
25
+ * });
26
+ * const bar = new gitlab.ProjectExternalStatusCheck("bar", {
27
+ * projectId: 456,
28
+ * name: "bar",
29
+ * externalUrl: "https://example.gitlab.com",
30
+ * sharedSecret: "secret",
31
+ * protectedBranchIds: [
32
+ * 6,
33
+ * 28,
34
+ * ],
35
+ * });
36
+ * ```
37
+ *
38
+ * ## Import
39
+ *
40
+ * Starting in Terraform v1.5.0, you can use an import block to import `gitlab_project_external_status_check`. For example:
41
+ *
42
+ * terraform
43
+ *
44
+ * import {
45
+ *
46
+ * to = gitlab_project_external_status_check.example
47
+ *
48
+ * id = "see CLI command below for ID"
49
+ *
50
+ * }
51
+ *
52
+ * Importing using the CLI is supported with the following syntax:
53
+ *
54
+ * GitLab project external status checks can be imported using an id made up of `<project-id>:<external-check-id>`, e.g.
55
+ *
56
+ * ```sh
57
+ * $ pulumi import gitlab:index/projectExternalStatusCheck:ProjectExternalStatusCheck foo "123:42"
58
+ * ```
59
+ *
60
+ * NOTE: the `shared_secret` resource attribute is not available for imported resources as this information cannot be read from the GitLab API.
61
+ */
62
+ class ProjectExternalStatusCheck extends pulumi.CustomResource {
63
+ /**
64
+ * Get an existing ProjectExternalStatusCheck resource's state with the given name, ID, and optional extra
65
+ * properties used to qualify the lookup.
66
+ *
67
+ * @param name The _unique_ name of the resulting resource.
68
+ * @param id The _unique_ provider ID of the resource to lookup.
69
+ * @param state Any extra arguments used during the lookup.
70
+ * @param opts Optional settings to control the behavior of the CustomResource.
71
+ */
72
+ static get(name, id, state, opts) {
73
+ return new ProjectExternalStatusCheck(name, state, { ...opts, id: id });
74
+ }
75
+ /**
76
+ * Returns true if the given object is an instance of ProjectExternalStatusCheck. This is designed to work even
77
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
78
+ */
79
+ static isInstance(obj) {
80
+ if (obj === undefined || obj === null) {
81
+ return false;
82
+ }
83
+ return obj['__pulumiType'] === ProjectExternalStatusCheck.__pulumiType;
84
+ }
85
+ constructor(name, argsOrState, opts) {
86
+ let resourceInputs = {};
87
+ opts = opts || {};
88
+ if (opts.id) {
89
+ const state = argsOrState;
90
+ resourceInputs["externalUrl"] = state?.externalUrl;
91
+ resourceInputs["hmac"] = state?.hmac;
92
+ resourceInputs["name"] = state?.name;
93
+ resourceInputs["projectId"] = state?.projectId;
94
+ resourceInputs["protectedBranchIds"] = state?.protectedBranchIds;
95
+ resourceInputs["sharedSecret"] = state?.sharedSecret;
96
+ }
97
+ else {
98
+ const args = argsOrState;
99
+ if (args?.externalUrl === undefined && !opts.urn) {
100
+ throw new Error("Missing required property 'externalUrl'");
101
+ }
102
+ if (args?.projectId === undefined && !opts.urn) {
103
+ throw new Error("Missing required property 'projectId'");
104
+ }
105
+ resourceInputs["externalUrl"] = args?.externalUrl;
106
+ resourceInputs["name"] = args?.name;
107
+ resourceInputs["projectId"] = args?.projectId;
108
+ resourceInputs["protectedBranchIds"] = args?.protectedBranchIds;
109
+ resourceInputs["sharedSecret"] = args?.sharedSecret ? pulumi.secret(args.sharedSecret) : undefined;
110
+ resourceInputs["hmac"] = undefined /*out*/;
111
+ }
112
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
113
+ const secretOpts = { additionalSecretOutputs: ["sharedSecret"] };
114
+ opts = pulumi.mergeOptions(opts, secretOpts);
115
+ super(ProjectExternalStatusCheck.__pulumiType, name, resourceInputs, opts);
116
+ }
117
+ }
118
+ exports.ProjectExternalStatusCheck = ProjectExternalStatusCheck;
119
+ /** @internal */
120
+ ProjectExternalStatusCheck.__pulumiType = 'gitlab:index/projectExternalStatusCheck:ProjectExternalStatusCheck';
121
+ //# sourceMappingURL=projectExternalStatusCheck.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectExternalStatusCheck.js","sourceRoot":"","sources":["../projectExternalStatusCheck.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,MAAa,0BAA2B,SAAQ,MAAM,CAAC,cAAc;IACjE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuC,EAAE,IAAmC;QACrI,OAAO,IAAI,0BAA0B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACjF,CAAC;IAKD;;;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,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC;YAChE,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACnG,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC;QACjE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,0BAA0B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/E,CAAC;;AA3FL,gEA4FC;AA9EG,gBAAgB;AACO,uCAAY,GAAG,oEAAoE,CAAC"}
@@ -59,17 +59,17 @@ export declare class ProjectFreezePeriod extends pulumi.CustomResource {
59
59
  /**
60
60
  * The timezone.
61
61
  */
62
- readonly cronTimezone: pulumi.Output<string | undefined>;
62
+ readonly cronTimezone: pulumi.Output<string>;
63
63
  /**
64
- * End of the Freeze Period in cron format (e.g. `0 2 * * *`).
64
+ * End of the Freeze Period in cron format (for example, `0 2 * * *`).
65
65
  */
66
66
  readonly freezeEnd: pulumi.Output<string>;
67
67
  /**
68
- * Start of the Freeze Period in cron format (e.g. `0 1 * * *`).
68
+ * Start of the Freeze Period in cron format (for example, `0 1 * * *`).
69
69
  */
70
70
  readonly freezeStart: pulumi.Output<string>;
71
71
  /**
72
- * The ID or URL-encoded path of the project to add the schedule to.
72
+ * The ID or path of the project to add the freeze period to.
73
73
  */
74
74
  readonly project: pulumi.Output<string>;
75
75
  /**
@@ -90,15 +90,15 @@ export interface ProjectFreezePeriodState {
90
90
  */
91
91
  cronTimezone?: pulumi.Input<string>;
92
92
  /**
93
- * End of the Freeze Period in cron format (e.g. `0 2 * * *`).
93
+ * End of the Freeze Period in cron format (for example, `0 2 * * *`).
94
94
  */
95
95
  freezeEnd?: pulumi.Input<string>;
96
96
  /**
97
- * Start of the Freeze Period in cron format (e.g. `0 1 * * *`).
97
+ * Start of the Freeze Period in cron format (for example, `0 1 * * *`).
98
98
  */
99
99
  freezeStart?: pulumi.Input<string>;
100
100
  /**
101
- * The ID or URL-encoded path of the project to add the schedule to.
101
+ * The ID or path of the project to add the freeze period to.
102
102
  */
103
103
  project?: pulumi.Input<string>;
104
104
  }
@@ -111,15 +111,15 @@ export interface ProjectFreezePeriodArgs {
111
111
  */
112
112
  cronTimezone?: pulumi.Input<string>;
113
113
  /**
114
- * End of the Freeze Period in cron format (e.g. `0 2 * * *`).
114
+ * End of the Freeze Period in cron format (for example, `0 2 * * *`).
115
115
  */
116
116
  freezeEnd: pulumi.Input<string>;
117
117
  /**
118
- * Start of the Freeze Period in cron format (e.g. `0 1 * * *`).
118
+ * Start of the Freeze Period in cron format (for example, `0 1 * * *`).
119
119
  */
120
120
  freezeStart: pulumi.Input<string>;
121
121
  /**
122
- * The ID or URL-encoded path of the project to add the schedule to.
122
+ * The ID or path of the project to add the freeze period to.
123
123
  */
124
124
  project: pulumi.Input<string>;
125
125
  }
package/projectHook.d.ts CHANGED
@@ -87,7 +87,7 @@ export declare class ProjectHook extends pulumi.CustomResource {
87
87
  */
88
88
  readonly confidentialNoteEvents: pulumi.Output<boolean>;
89
89
  /**
90
- * Custom headers for the project webhook.
90
+ * Custom headers for the project webhook. Available from GitLab 17.1 onwards.
91
91
  */
92
92
  readonly customHeaders: pulumi.Output<outputs.ProjectHookCustomHeader[] | undefined>;
93
93
  /**
@@ -196,7 +196,7 @@ export interface ProjectHookState {
196
196
  */
197
197
  confidentialNoteEvents?: pulumi.Input<boolean>;
198
198
  /**
199
- * Custom headers for the project webhook.
199
+ * Custom headers for the project webhook. Available from GitLab 17.1 onwards.
200
200
  */
201
201
  customHeaders?: pulumi.Input<pulumi.Input<inputs.ProjectHookCustomHeader>[]>;
202
202
  /**
@@ -297,7 +297,7 @@ export interface ProjectHookArgs {
297
297
  */
298
298
  confidentialNoteEvents?: pulumi.Input<boolean>;
299
299
  /**
300
- * Custom headers for the project webhook.
300
+ * Custom headers for the project webhook. Available from GitLab 17.1 onwards.
301
301
  */
302
302
  customHeaders?: pulumi.Input<pulumi.Input<inputs.ProjectHookCustomHeader>[]>;
303
303
  /**
package/provider.d.ts CHANGED
@@ -27,6 +27,14 @@ export declare class Provider extends pulumi.ProviderResource {
27
27
  * File path to client key when GitLab instance is behind company proxy. File must contain PEM encoded data. Required when `clientCert` is set.
28
28
  */
29
29
  readonly clientKey: pulumi.Output<string | undefined>;
30
+ /**
31
+ * The path to the configuration file to use. It may be sourced from the `GITLAB_CONFIG_FILE` environment variable.
32
+ */
33
+ readonly configFile: pulumi.Output<string | undefined>;
34
+ /**
35
+ * The context to use for authentication and configuration. The context must exist in the configuration file. It may be sourced from the `GITLAB_CONTEXT` environment variable.
36
+ */
37
+ readonly context: pulumi.Output<string | undefined>;
30
38
  /**
31
39
  * The OAuth2 Token, Project, Group, Personal Access Token or CI Job Token used to connect to GitLab. The OAuth method is used in this provider for authentication (using Bearer authorization token). See https://docs.gitlab.com/api/#authentication for details. It may be sourced from the `GITLAB_TOKEN` environment variable.
32
40
  */
@@ -64,7 +72,19 @@ export interface ProviderArgs {
64
72
  * File path to client key when GitLab instance is behind company proxy. File must contain PEM encoded data. Required when `clientCert` is set.
65
73
  */
66
74
  clientKey?: pulumi.Input<string>;
75
+ /**
76
+ * The path to the configuration file to use. It may be sourced from the `GITLAB_CONFIG_FILE` environment variable.
77
+ */
78
+ configFile?: pulumi.Input<string>;
79
+ /**
80
+ * The context to use for authentication and configuration. The context must exist in the configuration file. It may be sourced from the `GITLAB_CONTEXT` environment variable.
81
+ */
82
+ context?: pulumi.Input<string>;
67
83
  earlyAuthCheck?: pulumi.Input<boolean>;
84
+ /**
85
+ * If automatic CI support should be enabled or not. This only works when not providing a token.
86
+ */
87
+ enableAutoCiSupport?: pulumi.Input<boolean>;
68
88
  /**
69
89
  * A map of headers to append to all API request to the GitLab instance.
70
90
  */
package/provider.js CHANGED
@@ -37,7 +37,10 @@ class Provider extends pulumi.ProviderResource {
37
37
  resourceInputs["cacertFile"] = args?.cacertFile;
38
38
  resourceInputs["clientCert"] = args?.clientCert;
39
39
  resourceInputs["clientKey"] = args?.clientKey;
40
+ resourceInputs["configFile"] = args?.configFile;
41
+ resourceInputs["context"] = args?.context;
40
42
  resourceInputs["earlyAuthCheck"] = pulumi.output(args?.earlyAuthCheck).apply(JSON.stringify);
43
+ resourceInputs["enableAutoCiSupport"] = pulumi.output(args?.enableAutoCiSupport).apply(JSON.stringify);
41
44
  resourceInputs["headers"] = pulumi.output(args?.headers).apply(JSON.stringify);
42
45
  resourceInputs["insecure"] = pulumi.output(args?.insecure).apply(JSON.stringify);
43
46
  resourceInputs["retries"] = pulumi.output(args?.retries).apply(JSON.stringify);
package/provider.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;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,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAuBD;;;;;;OAMG;IACH,Y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CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,eAAe;QACX,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,yCAAyC,EAAE;YAClE,UAAU,EAAE,IAAI;SACnB,EAAE,IAAI,CAAC,CAAC;IACb,CAAC;;AAjFL,4BAkFC;AAjFG,gBAAgB;AACO,qBAAY,GAAG,QAAQ,CAAC"}
package/types/output.d.ts CHANGED
@@ -457,6 +457,20 @@ export interface GetGroupProvisionedUsersProvisionedUser {
457
457
  */
458
458
  websiteUrl: string;
459
459
  }
460
+ export interface GetGroupSamlLinksSamlLink {
461
+ /**
462
+ * The base access level for members of the SAML group.
463
+ */
464
+ accessLevel: string;
465
+ /**
466
+ * Member Role ID (custom role for members of the SAML group.
467
+ */
468
+ memberRoleId: number;
469
+ /**
470
+ * Name of the SAML group.
471
+ */
472
+ name: string;
473
+ }
460
474
  export interface GetGroupSharedWithGroup {
461
475
  /**
462
476
  * Share with group expiration date.
@@ -654,15 +668,15 @@ export interface GetInstanceVariablesVariable {
654
668
  */
655
669
  key: string;
656
670
  /**
657
- * 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/ci/variables/#masked-variables). Defaults to `false`.
671
+ * If set to `true`, the value of the variable will be hidden in job logs.
658
672
  */
659
673
  masked: boolean;
660
674
  /**
661
- * If set to `true`, the variable will be passed only to pipelines running on protected branches and tags. Defaults to `false`.
675
+ * If set to `true`, the variable will be passed only to pipelines running on protected branches and tags.
662
676
  */
663
677
  protected: boolean;
664
678
  /**
665
- * Whether the variable is treated as a raw string. Default: false. When true, variables in the value are not expanded.
679
+ * If set to `true`, the variable will be treated as a raw string.
666
680
  */
667
681
  raw: boolean;
668
682
  /**
@@ -670,7 +684,7 @@ export interface GetInstanceVariablesVariable {
670
684
  */
671
685
  value: string;
672
686
  /**
673
- * The type of a variable. Valid values are: `envVar`, `file`. Default is `envVar`.
687
+ * The type of the variable, either `envVar` or `file`.
674
688
  */
675
689
  variableType: string;
676
690
  }
@@ -838,7 +852,7 @@ export interface GetProjectBranchesBranch {
838
852
  */
839
853
  canPush: boolean;
840
854
  /**
841
- * The commit associated with this branch.
855
+ * The commit associated with the branch ref.
842
856
  */
843
857
  commits: outputs.GetProjectBranchesBranchCommit[];
844
858
  /**
@@ -1074,7 +1088,9 @@ export interface GetProjectHooksHook {
1074
1088
  */
1075
1089
  tagPushEvents: boolean;
1076
1090
  /**
1077
- * A token to present when invoking the hook. The token is not available for imported resources.
1091
+ * A token to present when invoking the hook. The token is not available in this datasource.
1092
+ *
1093
+ * @deprecated The token is only available on resource creation, not in this datasource. It will always be blank.
1078
1094
  */
1079
1095
  token: string;
1080
1096
  /**
@@ -1519,7 +1535,7 @@ export interface GetProjectMilestonesMilestone {
1519
1535
  */
1520
1536
  iid: number;
1521
1537
  /**
1522
- * The instance-wide ID of the projects milestone.
1538
+ * The instance-wide ID of the project's milestone.
1523
1539
  */
1524
1540
  milestoneId: number;
1525
1541
  /**
@@ -1923,11 +1939,11 @@ export interface GetProjectTagsTagRelease {
1923
1939
  }
1924
1940
  export interface GetProjectVariablesVariable {
1925
1941
  /**
1926
- * The description of the variable.
1942
+ * The description of the variable. Maximum of 255 characters.
1927
1943
  */
1928
1944
  description: string;
1929
1945
  /**
1930
- * The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans.
1946
+ * The environment scope of the variable. Defaults to all environment (`*`).
1931
1947
  */
1932
1948
  environmentScope: string;
1933
1949
  /**
@@ -1935,19 +1951,19 @@ export interface GetProjectVariablesVariable {
1935
1951
  */
1936
1952
  key: string;
1937
1953
  /**
1938
- * 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/ci/variables/#masked-variables). Defaults to `false`.
1954
+ * If set to `true`, the value of the variable will be hidden in job logs.
1939
1955
  */
1940
1956
  masked: boolean;
1941
1957
  /**
1942
- * The name or id of the project.
1958
+ * The name or path of the project.
1943
1959
  */
1944
1960
  project: string;
1945
1961
  /**
1946
- * If set to `true`, the variable will be passed only to pipelines running on protected branches and tags. Defaults to `false`.
1962
+ * If set to `true`, the variable will be passed only to pipelines running on protected branches and tags.
1947
1963
  */
1948
1964
  protected: boolean;
1949
1965
  /**
1950
- * Whether the variable is treated as a raw string. Default: false. When true, variables in the value are not expanded.
1966
+ * If set to `true`, the variable will be treated as a raw string.
1951
1967
  */
1952
1968
  raw: boolean;
1953
1969
  /**
@@ -1955,7 +1971,7 @@ export interface GetProjectVariablesVariable {
1955
1971
  */
1956
1972
  value: string;
1957
1973
  /**
1958
- * The type of a variable. Valid values are: `envVar`, `file`. Default is `envVar`.
1974
+ * The type of the variable, either `envVar` or `file`.
1959
1975
  */
1960
1976
  variableType: string;
1961
1977
  }
@@ -2576,7 +2592,7 @@ export interface GetReleaseLinksReleaseLink {
2576
2592
  */
2577
2593
  linkId: number;
2578
2594
  /**
2579
- * The type of the link. Valid values are `other`, `runbook`, `image`, `package`. Defaults to other.
2595
+ * The type of the link. Valid values are `other`, `runbook`, `image`, `package`.
2580
2596
  */
2581
2597
  linkType: string;
2582
2598
  /**
@@ -2598,7 +2614,9 @@ export interface GetReleaseLinksReleaseLink {
2598
2614
  }
2599
2615
  export interface GetRepositoryTreeTree {
2600
2616
  /**
2601
- * The SHA-1 hash of the tree or blob in the repository.
2617
+ * The project ID.
2618
+ *
2619
+ * @deprecated Use `nodeId` instead. To be removed in version 19.0.
2602
2620
  */
2603
2621
  id: string;
2604
2622
  /**
@@ -2609,6 +2627,10 @@ export interface GetRepositoryTreeTree {
2609
2627
  * Name of the blob or tree in the repository
2610
2628
  */
2611
2629
  name: string;
2630
+ /**
2631
+ * The SHA-1 hash of the tree or blob in the repository.
2632
+ */
2633
+ nodeId: string;
2612
2634
  /**
2613
2635
  * Path of the object inside of the repository.
2614
2636
  */