@pulumi/gitlab 9.8.0-alpha.1768501030 → 9.8.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/getProjectHook.d.ts +2 -2
- package/getProjectSecureFile.d.ts +2 -2
- package/getProjectSecureFile.js +2 -2
- package/group.d.ts +36 -0
- package/group.js +6 -0
- package/group.js.map +1 -1
- package/groupHook.d.ts +50 -48
- package/groupHook.js +2 -0
- package/groupHook.js.map +1 -1
- package/index.d.ts +18 -0
- package/index.js +33 -3
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/projectCicdCatalog.d.ts +107 -0
- package/projectCicdCatalog.js +103 -0
- package/projectCicdCatalog.js.map +1 -0
- package/projectHook.d.ts +45 -42
- package/projectHook.js +3 -0
- package/projectHook.js.map +1 -1
- package/projectIssueLink.d.ts +179 -0
- package/projectIssueLink.js +149 -0
- package/projectIssueLink.js.map +1 -0
- package/projectJobTokenScope.d.ts +10 -2
- package/projectJobTokenScope.js +10 -2
- package/projectJobTokenScope.js.map +1 -1
- package/projectMirror.d.ts +4 -3
- package/projectMirror.js +4 -3
- package/projectMirror.js.map +1 -1
- package/projectPackageDependencyProxy.d.ts +153 -0
- package/projectPackageDependencyProxy.js +119 -0
- package/projectPackageDependencyProxy.js.map +1 -0
- package/projectPullMirror.d.ts +267 -0
- package/projectPullMirror.js +160 -0
- package/projectPullMirror.js.map +1 -0
- package/projectPushMirror.d.ts +173 -0
- package/projectPushMirror.js +116 -0
- package/projectPushMirror.js.map +1 -0
- package/projectSecureFile.d.ts +173 -0
- package/projectSecureFile.js +132 -0
- package/projectSecureFile.js.map +1 -0
- package/projectTag.d.ts +2 -2
- package/projectTag.js +1 -1
- package/runner.d.ts +1 -1
- package/runner.js +1 -1
- package/types/output.d.ts +19 -1
|
@@ -25,10 +25,18 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
25
25
|
*
|
|
26
26
|
* Importing using the CLI is supported with the following syntax:
|
|
27
27
|
*
|
|
28
|
-
* GitLab project job token scopes can be imported using an id made up of `projectId:
|
|
28
|
+
* GitLab project job token scopes can be imported using an id made up of `projectId:type:targetId`, e.g.
|
|
29
|
+
*
|
|
30
|
+
* For target_project_id:
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import gitlab:index/projectJobTokenScope:ProjectJobTokenScope bar 123:project:321
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* For target_group_id:
|
|
29
37
|
*
|
|
30
38
|
* ```sh
|
|
31
|
-
* $ pulumi import gitlab:index/projectJobTokenScope:ProjectJobTokenScope bar 123:321
|
|
39
|
+
* $ pulumi import gitlab:index/projectJobTokenScope:ProjectJobTokenScope bar 123:group:321
|
|
32
40
|
* ```
|
|
33
41
|
*/
|
|
34
42
|
export declare class ProjectJobTokenScope extends pulumi.CustomResource {
|
package/projectJobTokenScope.js
CHANGED
|
@@ -31,10 +31,18 @@ const utilities = require("./utilities");
|
|
|
31
31
|
*
|
|
32
32
|
* Importing using the CLI is supported with the following syntax:
|
|
33
33
|
*
|
|
34
|
-
* GitLab project job token scopes can be imported using an id made up of `projectId:
|
|
34
|
+
* GitLab project job token scopes can be imported using an id made up of `projectId:type:targetId`, e.g.
|
|
35
|
+
*
|
|
36
|
+
* For target_project_id:
|
|
37
|
+
*
|
|
38
|
+
* ```sh
|
|
39
|
+
* $ pulumi import gitlab:index/projectJobTokenScope:ProjectJobTokenScope bar 123:project:321
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* For target_group_id:
|
|
35
43
|
*
|
|
36
44
|
* ```sh
|
|
37
|
-
* $ pulumi import gitlab:index/projectJobTokenScope:ProjectJobTokenScope bar 123:321
|
|
45
|
+
* $ pulumi import gitlab:index/projectJobTokenScope:ProjectJobTokenScope bar 123:group:321
|
|
38
46
|
* ```
|
|
39
47
|
*/
|
|
40
48
|
class ProjectJobTokenScope extends pulumi.CustomResource {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectJobTokenScope.js","sourceRoot":"","sources":["../projectJobTokenScope.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"projectJobTokenScope.js","sourceRoot":"","sources":["../projectJobTokenScope.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3E,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,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAkE,EAAE,IAAmC;QAC7H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoD,CAAC;YACnE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,EAAE,aAAa,CAAC;YACvD,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,EAAE,eAAe,CAAC;SAC9D;aAAM;YACH,MAAM,IAAI,GAAG,WAAmD,CAAC;YACjE,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AApEL,oDAqEC;AAvDG,gBAAgB;AACO,iCAAY,GAAG,wDAAwD,CAAC"}
|
package/projectMirror.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* The `gitlab.ProjectMirror` resource
|
|
3
|
+
* The `gitlab.ProjectMirror` resource manages the lifecycle of a project mirror.
|
|
4
4
|
*
|
|
5
|
-
* This is for *pushing* changes to a remote repository. *Pull Mirroring* can be configured
|
|
6
|
-
* import_url, mirror, and mirrorTriggerBuilds properties on the gitlab.Project resource.
|
|
5
|
+
* This is for *pushing* changes to a remote repository. *Pull Mirroring* can be configured with the gitlab.ProjectPullMirror resource.
|
|
7
6
|
*
|
|
8
7
|
* > **Warning** By default, the provider sets the `keepDivergentRefs` argument to `True`.
|
|
9
8
|
* If you manually set `keepDivergentRefs` to `False`, GitLab mirroring removes branches in the target that aren't in the source.
|
|
@@ -11,6 +10,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
11
10
|
*
|
|
12
11
|
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/remote_mirrors/)
|
|
13
12
|
*
|
|
13
|
+
* This resource is deprecated in favor of `gitlab.ProjectPushMirror` which is a rename. The alias will be removed in version 19.0.
|
|
14
|
+
*
|
|
14
15
|
* ## Example Usage
|
|
15
16
|
*
|
|
16
17
|
* ```typescript
|
package/projectMirror.js
CHANGED
|
@@ -6,10 +6,9 @@ exports.ProjectMirror = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* The `gitlab.ProjectMirror` resource
|
|
9
|
+
* The `gitlab.ProjectMirror` resource manages the lifecycle of a project mirror.
|
|
10
10
|
*
|
|
11
|
-
* This is for *pushing* changes to a remote repository. *Pull Mirroring* can be configured
|
|
12
|
-
* import_url, mirror, and mirrorTriggerBuilds properties on the gitlab.Project resource.
|
|
11
|
+
* This is for *pushing* changes to a remote repository. *Pull Mirroring* can be configured with the gitlab.ProjectPullMirror resource.
|
|
13
12
|
*
|
|
14
13
|
* > **Warning** By default, the provider sets the `keepDivergentRefs` argument to `True`.
|
|
15
14
|
* If you manually set `keepDivergentRefs` to `False`, GitLab mirroring removes branches in the target that aren't in the source.
|
|
@@ -17,6 +16,8 @@ const utilities = require("./utilities");
|
|
|
17
16
|
*
|
|
18
17
|
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/remote_mirrors/)
|
|
19
18
|
*
|
|
19
|
+
* This resource is deprecated in favor of `gitlab.ProjectPushMirror` which is a rename. The alias will be removed in version 19.0.
|
|
20
|
+
*
|
|
20
21
|
* ## Example Usage
|
|
21
22
|
*
|
|
22
23
|
* ```typescript
|
package/projectMirror.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectMirror.js","sourceRoot":"","sources":["../projectMirror.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,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AC,KAAK,CAAC,EAAE,CAAC;QACxD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAvGL,sCAwGC;AA1FG,gBAAgB;AACO,0BAAY,GAAG,0CAA0C,CAAC"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The `gitlab.ProjectPackageDependencyProxy` resource allows managing the project-level package dependency proxy for Maven packages.
|
|
4
|
+
*
|
|
5
|
+
* This resource configures the external Maven registry settings for the dependency proxy, allowing packages to be cached and proxied through GitLab.
|
|
6
|
+
*
|
|
7
|
+
* > This resource requires GitLab Premium or Ultimate and the packages and dependency proxy features to be enabled on the GitLab instance.
|
|
8
|
+
*
|
|
9
|
+
* **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/api/graphql/reference/#mutationupdatedependencyproxypackagessettings)
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
16
|
+
*
|
|
17
|
+
* // Configure the project package dependency proxy for Maven packages
|
|
18
|
+
* const example = new gitlab.ProjectPackageDependencyProxy("example", {
|
|
19
|
+
* project: exampleGitlabProject.id,
|
|
20
|
+
* enabled: true,
|
|
21
|
+
* mavenExternalRegistryUrl: "https://repo.maven.apache.org/maven2/",
|
|
22
|
+
* });
|
|
23
|
+
* // With authentication credentials for the external registry
|
|
24
|
+
* const authenticated = new gitlab.ProjectPackageDependencyProxy("authenticated", {
|
|
25
|
+
* project: exampleGitlabProject.id,
|
|
26
|
+
* enabled: true,
|
|
27
|
+
* mavenExternalRegistryUrl: "https://private-repo.example.com/maven/",
|
|
28
|
+
* mavenExternalRegistryUsername: "maven_user",
|
|
29
|
+
* mavenExternalRegistryPassword: mavenRegistryPassword,
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ## Import
|
|
34
|
+
*
|
|
35
|
+
* Starting in Terraform v1.5.0, you can use an import block to import `gitlab_project_package_dependency_proxy`. For example:
|
|
36
|
+
*
|
|
37
|
+
* terraform
|
|
38
|
+
*
|
|
39
|
+
* import {
|
|
40
|
+
*
|
|
41
|
+
* to = gitlab_project_package_dependency_proxy.example
|
|
42
|
+
*
|
|
43
|
+
* id = "see CLI command below for ID"
|
|
44
|
+
*
|
|
45
|
+
* }
|
|
46
|
+
*
|
|
47
|
+
* Importing using the CLI is supported with the following syntax:
|
|
48
|
+
*
|
|
49
|
+
* You can import a project package dependency proxy using the project id. e.g. `{project-id}`
|
|
50
|
+
*
|
|
51
|
+
* "maven_external_registry_password" will not populate when importing, but will still
|
|
52
|
+
*
|
|
53
|
+
* be required in the configuration if credentials are used.
|
|
54
|
+
*
|
|
55
|
+
* ```sh
|
|
56
|
+
* $ pulumi import gitlab:index/projectPackageDependencyProxy:ProjectPackageDependencyProxy example 42
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
export declare class ProjectPackageDependencyProxy extends pulumi.CustomResource {
|
|
60
|
+
/**
|
|
61
|
+
* Get an existing ProjectPackageDependencyProxy resource's state with the given name, ID, and optional extra
|
|
62
|
+
* properties used to qualify the lookup.
|
|
63
|
+
*
|
|
64
|
+
* @param name The _unique_ name of the resulting resource.
|
|
65
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
66
|
+
* @param state Any extra arguments used during the lookup.
|
|
67
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
68
|
+
*/
|
|
69
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectPackageDependencyProxyState, opts?: pulumi.CustomResourceOptions): ProjectPackageDependencyProxy;
|
|
70
|
+
/**
|
|
71
|
+
* Returns true if the given object is an instance of ProjectPackageDependencyProxy. This is designed to work even
|
|
72
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
73
|
+
*/
|
|
74
|
+
static isInstance(obj: any): obj is ProjectPackageDependencyProxy;
|
|
75
|
+
/**
|
|
76
|
+
* Indicates whether the dependency proxy is enabled for packages.
|
|
77
|
+
*/
|
|
78
|
+
readonly enabled: pulumi.Output<boolean>;
|
|
79
|
+
/**
|
|
80
|
+
* The password to authenticate with the external Maven registry. Must be set together with `mavenExternalRegistryUsername`. Cannot be imported.
|
|
81
|
+
*/
|
|
82
|
+
readonly mavenExternalRegistryPassword: pulumi.Output<string | undefined>;
|
|
83
|
+
/**
|
|
84
|
+
* The URL of the external Maven registry.
|
|
85
|
+
*/
|
|
86
|
+
readonly mavenExternalRegistryUrl: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* The username to authenticate with the external Maven registry. Must be set together with `mavenExternalRegistryPassword`.
|
|
89
|
+
*/
|
|
90
|
+
readonly mavenExternalRegistryUsername: pulumi.Output<string | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* The ID or URL-encoded path of the project.
|
|
93
|
+
*/
|
|
94
|
+
readonly project: pulumi.Output<string>;
|
|
95
|
+
/**
|
|
96
|
+
* Create a ProjectPackageDependencyProxy resource with the given unique name, arguments, and options.
|
|
97
|
+
*
|
|
98
|
+
* @param name The _unique_ name of the resource.
|
|
99
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
100
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
101
|
+
*/
|
|
102
|
+
constructor(name: string, args: ProjectPackageDependencyProxyArgs, opts?: pulumi.CustomResourceOptions);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Input properties used for looking up and filtering ProjectPackageDependencyProxy resources.
|
|
106
|
+
*/
|
|
107
|
+
export interface ProjectPackageDependencyProxyState {
|
|
108
|
+
/**
|
|
109
|
+
* Indicates whether the dependency proxy is enabled for packages.
|
|
110
|
+
*/
|
|
111
|
+
enabled?: pulumi.Input<boolean>;
|
|
112
|
+
/**
|
|
113
|
+
* The password to authenticate with the external Maven registry. Must be set together with `mavenExternalRegistryUsername`. Cannot be imported.
|
|
114
|
+
*/
|
|
115
|
+
mavenExternalRegistryPassword?: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* The URL of the external Maven registry.
|
|
118
|
+
*/
|
|
119
|
+
mavenExternalRegistryUrl?: pulumi.Input<string>;
|
|
120
|
+
/**
|
|
121
|
+
* The username to authenticate with the external Maven registry. Must be set together with `mavenExternalRegistryPassword`.
|
|
122
|
+
*/
|
|
123
|
+
mavenExternalRegistryUsername?: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* The ID or URL-encoded path of the project.
|
|
126
|
+
*/
|
|
127
|
+
project?: pulumi.Input<string>;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* The set of arguments for constructing a ProjectPackageDependencyProxy resource.
|
|
131
|
+
*/
|
|
132
|
+
export interface ProjectPackageDependencyProxyArgs {
|
|
133
|
+
/**
|
|
134
|
+
* Indicates whether the dependency proxy is enabled for packages.
|
|
135
|
+
*/
|
|
136
|
+
enabled?: pulumi.Input<boolean>;
|
|
137
|
+
/**
|
|
138
|
+
* The password to authenticate with the external Maven registry. Must be set together with `mavenExternalRegistryUsername`. Cannot be imported.
|
|
139
|
+
*/
|
|
140
|
+
mavenExternalRegistryPassword?: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* The URL of the external Maven registry.
|
|
143
|
+
*/
|
|
144
|
+
mavenExternalRegistryUrl?: pulumi.Input<string>;
|
|
145
|
+
/**
|
|
146
|
+
* The username to authenticate with the external Maven registry. Must be set together with `mavenExternalRegistryPassword`.
|
|
147
|
+
*/
|
|
148
|
+
mavenExternalRegistryUsername?: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* The ID or URL-encoded path of the project.
|
|
151
|
+
*/
|
|
152
|
+
project: pulumi.Input<string>;
|
|
153
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
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.ProjectPackageDependencyProxy = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The `gitlab.ProjectPackageDependencyProxy` resource allows managing the project-level package dependency proxy for Maven packages.
|
|
10
|
+
*
|
|
11
|
+
* This resource configures the external Maven registry settings for the dependency proxy, allowing packages to be cached and proxied through GitLab.
|
|
12
|
+
*
|
|
13
|
+
* > This resource requires GitLab Premium or Ultimate and the packages and dependency proxy features to be enabled on the GitLab instance.
|
|
14
|
+
*
|
|
15
|
+
* **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/api/graphql/reference/#mutationupdatedependencyproxypackagessettings)
|
|
16
|
+
*
|
|
17
|
+
* ## Example Usage
|
|
18
|
+
*
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
22
|
+
*
|
|
23
|
+
* // Configure the project package dependency proxy for Maven packages
|
|
24
|
+
* const example = new gitlab.ProjectPackageDependencyProxy("example", {
|
|
25
|
+
* project: exampleGitlabProject.id,
|
|
26
|
+
* enabled: true,
|
|
27
|
+
* mavenExternalRegistryUrl: "https://repo.maven.apache.org/maven2/",
|
|
28
|
+
* });
|
|
29
|
+
* // With authentication credentials for the external registry
|
|
30
|
+
* const authenticated = new gitlab.ProjectPackageDependencyProxy("authenticated", {
|
|
31
|
+
* project: exampleGitlabProject.id,
|
|
32
|
+
* enabled: true,
|
|
33
|
+
* mavenExternalRegistryUrl: "https://private-repo.example.com/maven/",
|
|
34
|
+
* mavenExternalRegistryUsername: "maven_user",
|
|
35
|
+
* mavenExternalRegistryPassword: mavenRegistryPassword,
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* ## Import
|
|
40
|
+
*
|
|
41
|
+
* Starting in Terraform v1.5.0, you can use an import block to import `gitlab_project_package_dependency_proxy`. For example:
|
|
42
|
+
*
|
|
43
|
+
* terraform
|
|
44
|
+
*
|
|
45
|
+
* import {
|
|
46
|
+
*
|
|
47
|
+
* to = gitlab_project_package_dependency_proxy.example
|
|
48
|
+
*
|
|
49
|
+
* id = "see CLI command below for ID"
|
|
50
|
+
*
|
|
51
|
+
* }
|
|
52
|
+
*
|
|
53
|
+
* Importing using the CLI is supported with the following syntax:
|
|
54
|
+
*
|
|
55
|
+
* You can import a project package dependency proxy using the project id. e.g. `{project-id}`
|
|
56
|
+
*
|
|
57
|
+
* "maven_external_registry_password" will not populate when importing, but will still
|
|
58
|
+
*
|
|
59
|
+
* be required in the configuration if credentials are used.
|
|
60
|
+
*
|
|
61
|
+
* ```sh
|
|
62
|
+
* $ pulumi import gitlab:index/projectPackageDependencyProxy:ProjectPackageDependencyProxy example 42
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
class ProjectPackageDependencyProxy extends pulumi.CustomResource {
|
|
66
|
+
/**
|
|
67
|
+
* Get an existing ProjectPackageDependencyProxy resource's state with the given name, ID, and optional extra
|
|
68
|
+
* properties used to qualify the lookup.
|
|
69
|
+
*
|
|
70
|
+
* @param name The _unique_ name of the resulting resource.
|
|
71
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
72
|
+
* @param state Any extra arguments used during the lookup.
|
|
73
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
74
|
+
*/
|
|
75
|
+
static get(name, id, state, opts) {
|
|
76
|
+
return new ProjectPackageDependencyProxy(name, state, { ...opts, id: id });
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Returns true if the given object is an instance of ProjectPackageDependencyProxy. This is designed to work even
|
|
80
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
81
|
+
*/
|
|
82
|
+
static isInstance(obj) {
|
|
83
|
+
if (obj === undefined || obj === null) {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
return obj['__pulumiType'] === ProjectPackageDependencyProxy.__pulumiType;
|
|
87
|
+
}
|
|
88
|
+
constructor(name, argsOrState, opts) {
|
|
89
|
+
let resourceInputs = {};
|
|
90
|
+
opts = opts || {};
|
|
91
|
+
if (opts.id) {
|
|
92
|
+
const state = argsOrState;
|
|
93
|
+
resourceInputs["enabled"] = state?.enabled;
|
|
94
|
+
resourceInputs["mavenExternalRegistryPassword"] = state?.mavenExternalRegistryPassword;
|
|
95
|
+
resourceInputs["mavenExternalRegistryUrl"] = state?.mavenExternalRegistryUrl;
|
|
96
|
+
resourceInputs["mavenExternalRegistryUsername"] = state?.mavenExternalRegistryUsername;
|
|
97
|
+
resourceInputs["project"] = state?.project;
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
const args = argsOrState;
|
|
101
|
+
if (args?.project === undefined && !opts.urn) {
|
|
102
|
+
throw new Error("Missing required property 'project'");
|
|
103
|
+
}
|
|
104
|
+
resourceInputs["enabled"] = args?.enabled;
|
|
105
|
+
resourceInputs["mavenExternalRegistryPassword"] = args?.mavenExternalRegistryPassword ? pulumi.secret(args.mavenExternalRegistryPassword) : undefined;
|
|
106
|
+
resourceInputs["mavenExternalRegistryUrl"] = args?.mavenExternalRegistryUrl;
|
|
107
|
+
resourceInputs["mavenExternalRegistryUsername"] = args?.mavenExternalRegistryUsername;
|
|
108
|
+
resourceInputs["project"] = args?.project;
|
|
109
|
+
}
|
|
110
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
111
|
+
const secretOpts = { additionalSecretOutputs: ["mavenExternalRegistryPassword"] };
|
|
112
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
113
|
+
super(ProjectPackageDependencyProxy.__pulumiType, name, resourceInputs, opts);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
exports.ProjectPackageDependencyProxy = ProjectPackageDependencyProxy;
|
|
117
|
+
/** @internal */
|
|
118
|
+
ProjectPackageDependencyProxy.__pulumiType = 'gitlab:index/projectPackageDependencyProxy:ProjectPackageDependencyProxy';
|
|
119
|
+
//# sourceMappingURL=projectPackageDependencyProxy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projectPackageDependencyProxy.js","sourceRoot":"","sources":["../projectPackageDependencyProxy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,MAAa,6BAA8B,SAAQ,MAAM,CAAC,cAAc;IACpE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0C,EAAE,IAAmC;QACxI,OAAO,IAAI,6BAA6B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpF,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,6BAA6B,CAAC,YAAY,CAAC;IAC9E,CAAC;IA+BD,YAAY,IAAY,EAAE,WAAoF,EAAE,IAAmC;QAC/I,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,W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AE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClF,CAAC;;AAlFL,sEAmFC;AArEG,gBAAgB;AACO,0CAAY,GAAG,0EAA0E,CAAC"}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The `gitlab.ProjectPullMirror` resource allows managing pull mirroring for GitLab projects.
|
|
4
|
+
*
|
|
5
|
+
* This resource uses the dedicated pull mirror API endpoint which provides reliable configuration of pull mirroring after project creation.
|
|
6
|
+
*
|
|
7
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/project_pull_mirroring/#configure-pull-mirroring-for-a-project)
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
14
|
+
*
|
|
15
|
+
* // Basic pull mirror from GitHub
|
|
16
|
+
* // Note: Unspecified options will use GitLab's defaults
|
|
17
|
+
* const github = new gitlab.ProjectPullMirror("github", {
|
|
18
|
+
* project: example.id,
|
|
19
|
+
* url: "https://github.com/example/repo.git",
|
|
20
|
+
* authUser: "github-username",
|
|
21
|
+
* authPassword: githubToken,
|
|
22
|
+
* });
|
|
23
|
+
* // Pull mirror with explicit options
|
|
24
|
+
* // Only specify options you want to control; omit others to use GitLab defaults
|
|
25
|
+
* const advanced = new gitlab.ProjectPullMirror("advanced", {
|
|
26
|
+
* project: example.id,
|
|
27
|
+
* url: "https://github.com/example/repo.git",
|
|
28
|
+
* enabled: true,
|
|
29
|
+
* authUser: "github-username",
|
|
30
|
+
* authPassword: githubToken,
|
|
31
|
+
* mirrorTriggerBuilds: true,
|
|
32
|
+
* onlyMirrorProtectedBranches: true,
|
|
33
|
+
* mirrorOverwritesDivergedBranches: false,
|
|
34
|
+
* });
|
|
35
|
+
* // Pull mirror with branch regex (Premium/Ultimate)
|
|
36
|
+
* const regex = new gitlab.ProjectPullMirror("regex", {
|
|
37
|
+
* project: example.id,
|
|
38
|
+
* url: "https://github.com/example/repo.git",
|
|
39
|
+
* authUser: "github-username",
|
|
40
|
+
* authPassword: githubToken,
|
|
41
|
+
* mirrorBranchRegex: "^(main|develop|release/.*)$",
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* ## Import
|
|
46
|
+
*
|
|
47
|
+
* Starting in Terraform v1.5.0, you can use an import block to import `gitlab_project_pull_mirror`. For example:
|
|
48
|
+
*
|
|
49
|
+
* terraform
|
|
50
|
+
*
|
|
51
|
+
* import {
|
|
52
|
+
*
|
|
53
|
+
* to = gitlab_project_pull_mirror.example
|
|
54
|
+
*
|
|
55
|
+
* id = "see CLI command below for ID"
|
|
56
|
+
*
|
|
57
|
+
* }
|
|
58
|
+
*
|
|
59
|
+
* Importing using the CLI is supported with the following syntax:
|
|
60
|
+
*
|
|
61
|
+
* Import using project ID
|
|
62
|
+
*
|
|
63
|
+
* ```sh
|
|
64
|
+
* $ pulumi import gitlab:index/projectPullMirror:ProjectPullMirror example 123
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* Import using project path
|
|
68
|
+
*
|
|
69
|
+
* Note: Import is not supported for disabled mirrors because the GitLab API returns
|
|
70
|
+
*
|
|
71
|
+
* http 400 for disabled mirrors.
|
|
72
|
+
*
|
|
73
|
+
* ```sh
|
|
74
|
+
* $ pulumi import gitlab:index/projectPullMirror:ProjectPullMirror example "group/project"
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
export declare class ProjectPullMirror extends pulumi.CustomResource {
|
|
78
|
+
/**
|
|
79
|
+
* Get an existing ProjectPullMirror resource's state with the given name, ID, and optional extra
|
|
80
|
+
* properties used to qualify the lookup.
|
|
81
|
+
*
|
|
82
|
+
* @param name The _unique_ name of the resulting resource.
|
|
83
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
84
|
+
* @param state Any extra arguments used during the lookup.
|
|
85
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
86
|
+
*/
|
|
87
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectPullMirrorState, opts?: pulumi.CustomResourceOptions): ProjectPullMirror;
|
|
88
|
+
/**
|
|
89
|
+
* Returns true if the given object is an instance of ProjectPullMirror. This is designed to work even
|
|
90
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
91
|
+
*/
|
|
92
|
+
static isInstance(obj: any): obj is ProjectPullMirror;
|
|
93
|
+
/**
|
|
94
|
+
* Authentication password or token for the remote repository.
|
|
95
|
+
*/
|
|
96
|
+
readonly authPassword: pulumi.Output<string | undefined>;
|
|
97
|
+
/**
|
|
98
|
+
* Authentication username for the remote repository.
|
|
99
|
+
*/
|
|
100
|
+
readonly authUser: pulumi.Output<string | undefined>;
|
|
101
|
+
/**
|
|
102
|
+
* Enable or disable the pull mirror. Defaults to `true`.
|
|
103
|
+
*/
|
|
104
|
+
readonly enabled: pulumi.Output<boolean>;
|
|
105
|
+
/**
|
|
106
|
+
* Last error message from the mirror operation.
|
|
107
|
+
*/
|
|
108
|
+
readonly lastError: pulumi.Output<string>;
|
|
109
|
+
/**
|
|
110
|
+
* Timestamp of the last successful mirror update.
|
|
111
|
+
*/
|
|
112
|
+
readonly lastSuccessfulUpdateAt: pulumi.Output<string>;
|
|
113
|
+
/**
|
|
114
|
+
* Timestamp of the last mirror update attempt.
|
|
115
|
+
*/
|
|
116
|
+
readonly lastUpdateAt: pulumi.Output<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Timestamp when the last mirror update started.
|
|
119
|
+
*/
|
|
120
|
+
readonly lastUpdateStartedAt: pulumi.Output<string>;
|
|
121
|
+
/**
|
|
122
|
+
* Regular expression for branches to mirror. Requires GitLab Premium or Ultimate. Cannot be used with `onlyMirrorProtectedBranches`.
|
|
123
|
+
*/
|
|
124
|
+
readonly mirrorBranchRegex: pulumi.Output<string>;
|
|
125
|
+
/**
|
|
126
|
+
* The ID of the pull mirror. This ID is set by GitLab.
|
|
127
|
+
*/
|
|
128
|
+
readonly mirrorId: pulumi.Output<number>;
|
|
129
|
+
/**
|
|
130
|
+
* Overwrite diverged branches on the target project.
|
|
131
|
+
*/
|
|
132
|
+
readonly mirrorOverwritesDivergedBranches: pulumi.Output<boolean>;
|
|
133
|
+
/**
|
|
134
|
+
* Trigger CI/CD pipelines when the mirror updates.
|
|
135
|
+
*/
|
|
136
|
+
readonly mirrorTriggerBuilds: pulumi.Output<boolean>;
|
|
137
|
+
/**
|
|
138
|
+
* Mirror only protected branches. Cannot be used with `mirrorBranchRegex`.
|
|
139
|
+
*/
|
|
140
|
+
readonly onlyMirrorProtectedBranches: pulumi.Output<boolean>;
|
|
141
|
+
/**
|
|
142
|
+
* The ID or URL-encoded path of the project owned by the authenticated user.
|
|
143
|
+
*/
|
|
144
|
+
readonly project: pulumi.Output<string>;
|
|
145
|
+
/**
|
|
146
|
+
* Current status of the mirror update.
|
|
147
|
+
*/
|
|
148
|
+
readonly updateStatus: pulumi.Output<string>;
|
|
149
|
+
/**
|
|
150
|
+
* The URL of the remote repository to mirror from. While the API call allows including username and password as basic authentication in the URL, this resourcedoes not for security and idempotency reasons. Use `authUser` and `authPassword` instead.
|
|
151
|
+
*/
|
|
152
|
+
readonly url: pulumi.Output<string>;
|
|
153
|
+
/**
|
|
154
|
+
* Create a ProjectPullMirror resource with the given unique name, arguments, and options.
|
|
155
|
+
*
|
|
156
|
+
* @param name The _unique_ name of the resource.
|
|
157
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
158
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
159
|
+
*/
|
|
160
|
+
constructor(name: string, args: ProjectPullMirrorArgs, opts?: pulumi.CustomResourceOptions);
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Input properties used for looking up and filtering ProjectPullMirror resources.
|
|
164
|
+
*/
|
|
165
|
+
export interface ProjectPullMirrorState {
|
|
166
|
+
/**
|
|
167
|
+
* Authentication password or token for the remote repository.
|
|
168
|
+
*/
|
|
169
|
+
authPassword?: pulumi.Input<string>;
|
|
170
|
+
/**
|
|
171
|
+
* Authentication username for the remote repository.
|
|
172
|
+
*/
|
|
173
|
+
authUser?: pulumi.Input<string>;
|
|
174
|
+
/**
|
|
175
|
+
* Enable or disable the pull mirror. Defaults to `true`.
|
|
176
|
+
*/
|
|
177
|
+
enabled?: pulumi.Input<boolean>;
|
|
178
|
+
/**
|
|
179
|
+
* Last error message from the mirror operation.
|
|
180
|
+
*/
|
|
181
|
+
lastError?: pulumi.Input<string>;
|
|
182
|
+
/**
|
|
183
|
+
* Timestamp of the last successful mirror update.
|
|
184
|
+
*/
|
|
185
|
+
lastSuccessfulUpdateAt?: pulumi.Input<string>;
|
|
186
|
+
/**
|
|
187
|
+
* Timestamp of the last mirror update attempt.
|
|
188
|
+
*/
|
|
189
|
+
lastUpdateAt?: pulumi.Input<string>;
|
|
190
|
+
/**
|
|
191
|
+
* Timestamp when the last mirror update started.
|
|
192
|
+
*/
|
|
193
|
+
lastUpdateStartedAt?: pulumi.Input<string>;
|
|
194
|
+
/**
|
|
195
|
+
* Regular expression for branches to mirror. Requires GitLab Premium or Ultimate. Cannot be used with `onlyMirrorProtectedBranches`.
|
|
196
|
+
*/
|
|
197
|
+
mirrorBranchRegex?: pulumi.Input<string>;
|
|
198
|
+
/**
|
|
199
|
+
* The ID of the pull mirror. This ID is set by GitLab.
|
|
200
|
+
*/
|
|
201
|
+
mirrorId?: pulumi.Input<number>;
|
|
202
|
+
/**
|
|
203
|
+
* Overwrite diverged branches on the target project.
|
|
204
|
+
*/
|
|
205
|
+
mirrorOverwritesDivergedBranches?: pulumi.Input<boolean>;
|
|
206
|
+
/**
|
|
207
|
+
* Trigger CI/CD pipelines when the mirror updates.
|
|
208
|
+
*/
|
|
209
|
+
mirrorTriggerBuilds?: pulumi.Input<boolean>;
|
|
210
|
+
/**
|
|
211
|
+
* Mirror only protected branches. Cannot be used with `mirrorBranchRegex`.
|
|
212
|
+
*/
|
|
213
|
+
onlyMirrorProtectedBranches?: pulumi.Input<boolean>;
|
|
214
|
+
/**
|
|
215
|
+
* The ID or URL-encoded path of the project owned by the authenticated user.
|
|
216
|
+
*/
|
|
217
|
+
project?: pulumi.Input<string>;
|
|
218
|
+
/**
|
|
219
|
+
* Current status of the mirror update.
|
|
220
|
+
*/
|
|
221
|
+
updateStatus?: pulumi.Input<string>;
|
|
222
|
+
/**
|
|
223
|
+
* The URL of the remote repository to mirror from. While the API call allows including username and password as basic authentication in the URL, this resourcedoes not for security and idempotency reasons. Use `authUser` and `authPassword` instead.
|
|
224
|
+
*/
|
|
225
|
+
url?: pulumi.Input<string>;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* The set of arguments for constructing a ProjectPullMirror resource.
|
|
229
|
+
*/
|
|
230
|
+
export interface ProjectPullMirrorArgs {
|
|
231
|
+
/**
|
|
232
|
+
* Authentication password or token for the remote repository.
|
|
233
|
+
*/
|
|
234
|
+
authPassword?: pulumi.Input<string>;
|
|
235
|
+
/**
|
|
236
|
+
* Authentication username for the remote repository.
|
|
237
|
+
*/
|
|
238
|
+
authUser?: pulumi.Input<string>;
|
|
239
|
+
/**
|
|
240
|
+
* Enable or disable the pull mirror. Defaults to `true`.
|
|
241
|
+
*/
|
|
242
|
+
enabled?: pulumi.Input<boolean>;
|
|
243
|
+
/**
|
|
244
|
+
* Regular expression for branches to mirror. Requires GitLab Premium or Ultimate. Cannot be used with `onlyMirrorProtectedBranches`.
|
|
245
|
+
*/
|
|
246
|
+
mirrorBranchRegex?: pulumi.Input<string>;
|
|
247
|
+
/**
|
|
248
|
+
* Overwrite diverged branches on the target project.
|
|
249
|
+
*/
|
|
250
|
+
mirrorOverwritesDivergedBranches?: pulumi.Input<boolean>;
|
|
251
|
+
/**
|
|
252
|
+
* Trigger CI/CD pipelines when the mirror updates.
|
|
253
|
+
*/
|
|
254
|
+
mirrorTriggerBuilds?: pulumi.Input<boolean>;
|
|
255
|
+
/**
|
|
256
|
+
* Mirror only protected branches. Cannot be used with `mirrorBranchRegex`.
|
|
257
|
+
*/
|
|
258
|
+
onlyMirrorProtectedBranches?: pulumi.Input<boolean>;
|
|
259
|
+
/**
|
|
260
|
+
* The ID or URL-encoded path of the project owned by the authenticated user.
|
|
261
|
+
*/
|
|
262
|
+
project: pulumi.Input<string>;
|
|
263
|
+
/**
|
|
264
|
+
* The URL of the remote repository to mirror from. While the API call allows including username and password as basic authentication in the URL, this resourcedoes not for security and idempotency reasons. Use `authUser` and `authPassword` instead.
|
|
265
|
+
*/
|
|
266
|
+
url: pulumi.Input<string>;
|
|
267
|
+
}
|