@pulumi/artifactory 0.0.1-alpha.1636999306
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/LICENSE +202 -0
- package/README.md +63 -0
- package/accessToken.d.ts +142 -0
- package/accessToken.js +75 -0
- package/accessToken.js.map +1 -0
- package/alpineRepository.d.ts +137 -0
- package/alpineRepository.js +107 -0
- package/alpineRepository.js.map +1 -0
- package/apiKey.d.ts +53 -0
- package/apiKey.js +60 -0
- package/apiKey.js.map +1 -0
- package/certificate.d.ts +135 -0
- package/certificate.js +100 -0
- package/certificate.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +17 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +12 -0
- package/config/vars.js +37 -0
- package/config/vars.js.map +1 -0
- package/debianRepository.d.ts +193 -0
- package/debianRepository.js +128 -0
- package/debianRepository.js.map +1 -0
- package/dockerV1Repository.d.ts +155 -0
- package/dockerV1Repository.js +100 -0
- package/dockerV1Repository.js.map +1 -0
- package/dockerV2Repository.d.ts +163 -0
- package/dockerV2Repository.js +102 -0
- package/dockerV2Repository.js.map +1 -0
- package/generalSecurity.d.ts +66 -0
- package/generalSecurity.js +78 -0
- package/generalSecurity.js.map +1 -0
- package/getFile.d.ts +121 -0
- package/getFile.js +46 -0
- package/getFile.js.map +1 -0
- package/getFileinfo.d.ts +102 -0
- package/getFileinfo.js +43 -0
- package/getFileinfo.js.map +1 -0
- package/goRepository.d.ts +149 -0
- package/goRepository.js +115 -0
- package/goRepository.js.map +1 -0
- package/group.d.ts +141 -0
- package/group.js +74 -0
- package/group.js.map +1 -0
- package/index.d.ts +33 -0
- package/index.js +182 -0
- package/index.js.map +1 -0
- package/keypair.d.ts +139 -0
- package/keypair.js +101 -0
- package/keypair.js.map +1 -0
- package/localRepository.d.ts +134 -0
- package/localRepository.js +126 -0
- package/localRepository.js.map +1 -0
- package/mavenRepository.d.ts +172 -0
- package/mavenRepository.js +128 -0
- package/mavenRepository.js.map +1 -0
- package/oauthSettings.d.ts +124 -0
- package/oauthSettings.js +99 -0
- package/oauthSettings.js.map +1 -0
- package/package.json +27 -0
- package/package.json.bak +26 -0
- package/package.json.dev +26 -0
- package/permissionTarget.d.ts +150 -0
- package/permissionTarget.js +131 -0
- package/permissionTarget.js.map +1 -0
- package/permissionTargets.d.ts +49 -0
- package/permissionTargets.js +57 -0
- package/permissionTargets.js.map +1 -0
- package/provider.d.ts +67 -0
- package/provider.js +51 -0
- package/provider.js.map +1 -0
- package/remoteCargoRepository.d.ts +323 -0
- package/remoteCargoRepository.js +156 -0
- package/remoteCargoRepository.js.map +1 -0
- package/remoteDockerRepository.d.ts +363 -0
- package/remoteDockerRepository.js +158 -0
- package/remoteDockerRepository.js.map +1 -0
- package/remoteHelmRepository.d.ts +306 -0
- package/remoteHelmRepository.js +149 -0
- package/remoteHelmRepository.js.map +1 -0
- package/remoteRepository.d.ts +208 -0
- package/remoteRepository.js +160 -0
- package/remoteRepository.js.map +1 -0
- package/replicationConfig.d.ts +58 -0
- package/replicationConfig.js +72 -0
- package/replicationConfig.js.map +1 -0
- package/samlSettings.d.ts +218 -0
- package/samlSettings.js +120 -0
- package/samlSettings.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/singleReplicationConfig.d.ts +90 -0
- package/singleReplicationConfig.js +88 -0
- package/singleReplicationConfig.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +369 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +368 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/user.d.ts +132 -0
- package/user.js +77 -0
- package/user.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +52 -0
- package/utilities.js.map +1 -0
- package/virtualRepository.d.ts +115 -0
- package/virtualRepository.js +123 -0
- package/virtualRepository.js.map +1 -0
- package/xrayPolicy.d.ts +122 -0
- package/xrayPolicy.js +82 -0
- package/xrayPolicy.js.map +1 -0
- package/xrayWatch.d.ts +113 -0
- package/xrayWatch.js +80 -0
- package/xrayWatch.js.map +1 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.AlpineRepository = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## # Artifactory Local Alpine Repository Resource
|
|
10
|
+
*
|
|
11
|
+
* Creates a local alpine repository and allows for the creation of a
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
18
|
+
* import * from "fs";
|
|
19
|
+
*
|
|
20
|
+
* const some_keypairRSA = new artifactory.Keypair("some-keypairRSA", {
|
|
21
|
+
* pairName: "some-keypair",
|
|
22
|
+
* pairType: "RSA",
|
|
23
|
+
* alias: "foo-alias",
|
|
24
|
+
* privateKey: fs.readFileSync("samples/rsa.priv"),
|
|
25
|
+
* publicKey: fs.readFileSync("samples/rsa.pub"),
|
|
26
|
+
* });
|
|
27
|
+
* const terraform_local_test_alpine_repo_basic = new artifactory.AlpineRepository("terraform-local-test-alpine-repo-basic", {
|
|
28
|
+
* key: "terraform-local-test-alpine-repo-basic",
|
|
29
|
+
* primaryKeypairRef: some_keypairRSA.pairName,
|
|
30
|
+
* }, {
|
|
31
|
+
* dependsOn: [some_keypairRSA],
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
class AlpineRepository extends pulumi.CustomResource {
|
|
36
|
+
constructor(name, argsOrState, opts) {
|
|
37
|
+
let inputs = {};
|
|
38
|
+
opts = opts || {};
|
|
39
|
+
if (opts.id) {
|
|
40
|
+
const state = argsOrState;
|
|
41
|
+
inputs["archiveBrowsingEnabled"] = state ? state.archiveBrowsingEnabled : undefined;
|
|
42
|
+
inputs["blackedOut"] = state ? state.blackedOut : undefined;
|
|
43
|
+
inputs["description"] = state ? state.description : undefined;
|
|
44
|
+
inputs["downloadDirect"] = state ? state.downloadDirect : undefined;
|
|
45
|
+
inputs["excludesPattern"] = state ? state.excludesPattern : undefined;
|
|
46
|
+
inputs["includesPattern"] = state ? state.includesPattern : undefined;
|
|
47
|
+
inputs["indexCompressionFormats"] = state ? state.indexCompressionFormats : undefined;
|
|
48
|
+
inputs["key"] = state ? state.key : undefined;
|
|
49
|
+
inputs["notes"] = state ? state.notes : undefined;
|
|
50
|
+
inputs["packageType"] = state ? state.packageType : undefined;
|
|
51
|
+
inputs["primaryKeypairRef"] = state ? state.primaryKeypairRef : undefined;
|
|
52
|
+
inputs["propertySets"] = state ? state.propertySets : undefined;
|
|
53
|
+
inputs["repoLayoutRef"] = state ? state.repoLayoutRef : undefined;
|
|
54
|
+
inputs["xrayIndex"] = state ? state.xrayIndex : undefined;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
const args = argsOrState;
|
|
58
|
+
if ((!args || args.key === undefined) && !opts.urn) {
|
|
59
|
+
throw new Error("Missing required property 'key'");
|
|
60
|
+
}
|
|
61
|
+
inputs["archiveBrowsingEnabled"] = args ? args.archiveBrowsingEnabled : undefined;
|
|
62
|
+
inputs["blackedOut"] = args ? args.blackedOut : undefined;
|
|
63
|
+
inputs["description"] = args ? args.description : undefined;
|
|
64
|
+
inputs["downloadDirect"] = args ? args.downloadDirect : undefined;
|
|
65
|
+
inputs["excludesPattern"] = args ? args.excludesPattern : undefined;
|
|
66
|
+
inputs["includesPattern"] = args ? args.includesPattern : undefined;
|
|
67
|
+
inputs["indexCompressionFormats"] = args ? args.indexCompressionFormats : undefined;
|
|
68
|
+
inputs["key"] = args ? args.key : undefined;
|
|
69
|
+
inputs["notes"] = args ? args.notes : undefined;
|
|
70
|
+
inputs["primaryKeypairRef"] = args ? args.primaryKeypairRef : undefined;
|
|
71
|
+
inputs["propertySets"] = args ? args.propertySets : undefined;
|
|
72
|
+
inputs["repoLayoutRef"] = args ? args.repoLayoutRef : undefined;
|
|
73
|
+
inputs["xrayIndex"] = args ? args.xrayIndex : undefined;
|
|
74
|
+
inputs["packageType"] = undefined /*out*/;
|
|
75
|
+
}
|
|
76
|
+
if (!opts.version) {
|
|
77
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
78
|
+
}
|
|
79
|
+
super(AlpineRepository.__pulumiType, name, inputs, opts);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Get an existing AlpineRepository resource's state with the given name, ID, and optional extra
|
|
83
|
+
* properties used to qualify the lookup.
|
|
84
|
+
*
|
|
85
|
+
* @param name The _unique_ name of the resulting resource.
|
|
86
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
87
|
+
* @param state Any extra arguments used during the lookup.
|
|
88
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
89
|
+
*/
|
|
90
|
+
static get(name, id, state, opts) {
|
|
91
|
+
return new AlpineRepository(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Returns true if the given object is an instance of AlpineRepository. This is designed to work even
|
|
95
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
96
|
+
*/
|
|
97
|
+
static isInstance(obj) {
|
|
98
|
+
if (obj === undefined || obj === null) {
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
return obj['__pulumiType'] === AlpineRepository.__pulumiType;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.AlpineRepository = AlpineRepository;
|
|
105
|
+
/** @internal */
|
|
106
|
+
AlpineRepository.__pulumiType = 'artifactory:index/alpineRepository:AlpineRepository';
|
|
107
|
+
//# sourceMappingURL=alpineRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alpineRepository.js","sourceRoot":"","sources":["../alpineRepository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IA8DvD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,MAAM,CAAC,wBAAwB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,MAAM,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,MAAM,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,MAAM,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,MAAM,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,MAAM,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,MAAM,CAAC,yB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I,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,MAAM,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IAxGD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,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,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;;AA1BL,4CA0GC;AA5FG,gBAAgB;AACO,6BAAY,GAAG,qDAAqD,CAAC"}
|
package/apiKey.d.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Import
|
|
4
|
+
*
|
|
5
|
+
* A user's API key can be imported using any identifier, e.g.
|
|
6
|
+
*
|
|
7
|
+
* ```sh
|
|
8
|
+
* $ pulumi import artifactory:index/apiKey:ApiKey test import
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export declare class ApiKey extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing ApiKey resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param state Any extra arguments used during the lookup.
|
|
19
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
|
+
*/
|
|
21
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApiKeyState, opts?: pulumi.CustomResourceOptions): ApiKey;
|
|
22
|
+
/**
|
|
23
|
+
* Returns true if the given object is an instance of ApiKey. This is designed to work even
|
|
24
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
25
|
+
*/
|
|
26
|
+
static isInstance(obj: any): obj is ApiKey;
|
|
27
|
+
/**
|
|
28
|
+
* The API key.
|
|
29
|
+
*/
|
|
30
|
+
readonly apiKey: pulumi.Output<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Create a ApiKey resource with the given unique name, arguments, and options.
|
|
33
|
+
*
|
|
34
|
+
* @param name The _unique_ name of the resource.
|
|
35
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
36
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
37
|
+
*/
|
|
38
|
+
constructor(name: string, args?: ApiKeyArgs, opts?: pulumi.CustomResourceOptions);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Input properties used for looking up and filtering ApiKey resources.
|
|
42
|
+
*/
|
|
43
|
+
export interface ApiKeyState {
|
|
44
|
+
/**
|
|
45
|
+
* The API key.
|
|
46
|
+
*/
|
|
47
|
+
apiKey?: pulumi.Input<string>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The set of arguments for constructing a ApiKey resource.
|
|
51
|
+
*/
|
|
52
|
+
export interface ApiKeyArgs {
|
|
53
|
+
}
|
package/apiKey.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ApiKey = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* A user's API key can be imported using any identifier, e.g.
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import artifactory:index/apiKey:ApiKey test import
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
class ApiKey extends pulumi.CustomResource {
|
|
18
|
+
constructor(name, argsOrState, opts) {
|
|
19
|
+
let inputs = {};
|
|
20
|
+
opts = opts || {};
|
|
21
|
+
if (opts.id) {
|
|
22
|
+
const state = argsOrState;
|
|
23
|
+
inputs["apiKey"] = state ? state.apiKey : undefined;
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
const args = argsOrState;
|
|
27
|
+
inputs["apiKey"] = undefined /*out*/;
|
|
28
|
+
}
|
|
29
|
+
if (!opts.version) {
|
|
30
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
31
|
+
}
|
|
32
|
+
super(ApiKey.__pulumiType, name, inputs, opts);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get an existing ApiKey resource's state with the given name, ID, and optional extra
|
|
36
|
+
* properties used to qualify the lookup.
|
|
37
|
+
*
|
|
38
|
+
* @param name The _unique_ name of the resulting resource.
|
|
39
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
40
|
+
* @param state Any extra arguments used during the lookup.
|
|
41
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
+
*/
|
|
43
|
+
static get(name, id, state, opts) {
|
|
44
|
+
return new ApiKey(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the given object is an instance of ApiKey. This is designed to work even
|
|
48
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
49
|
+
*/
|
|
50
|
+
static isInstance(obj) {
|
|
51
|
+
if (obj === undefined || obj === null) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
return obj['__pulumiType'] === ApiKey.__pulumiType;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.ApiKey = ApiKey;
|
|
58
|
+
/** @internal */
|
|
59
|
+
ApiKey.__pulumiType = 'artifactory:index/apiKey:ApiKey';
|
|
60
|
+
//# sourceMappingURL=apiKey.js.map
|
package/apiKey.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiKey.js","sourceRoot":"","sources":["../apiKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAyC7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SACvD;aAAM;YACH,MAAM,IAAI,GAAG,WAAqC,CAAC;YACnD,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACxC;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACnD,CAAC;IAtDD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;;AA1BL,wBAwDC;AA1CG,gBAAgB;AACO,mBAAY,GAAG,iCAAiC,CAAC"}
|
package/certificate.d.ts
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## # Artifactory Certificate Resource
|
|
4
|
+
*
|
|
5
|
+
* Provides an Artifactory certificate resource. This can be used to create and manage Artifactory certificates which can be used as client authentication against remote repositories.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
12
|
+
* import * as fs from "fs";
|
|
13
|
+
*
|
|
14
|
+
* // Create a new Artifactory certificate called my-cert
|
|
15
|
+
* const my_cert = new artifactory.Certificate("my-cert", {
|
|
16
|
+
* alias: "my-cert",
|
|
17
|
+
* content: fs.readFileSync("/path/to/bundle.pem", "utf-8"),
|
|
18
|
+
* });
|
|
19
|
+
* // This can then be used by a remote repository
|
|
20
|
+
* const my_remote = new artifactory.RemoteRepository("my-remote", {
|
|
21
|
+
* // more code
|
|
22
|
+
* clientTlsCertificate: my_cert.alias,
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* Certificates can be imported using their alias, e.g.
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import artifactory:index/certificate:Certificate my-cert my-cert
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare class Certificate extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing Certificate resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param state Any extra arguments used during the lookup.
|
|
42
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
43
|
+
*/
|
|
44
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CertificateState, opts?: pulumi.CustomResourceOptions): Certificate;
|
|
45
|
+
/**
|
|
46
|
+
* Returns true if the given object is an instance of Certificate. This is designed to work even
|
|
47
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
48
|
+
*/
|
|
49
|
+
static isInstance(obj: any): obj is Certificate;
|
|
50
|
+
/**
|
|
51
|
+
* Name of certificate.
|
|
52
|
+
*/
|
|
53
|
+
readonly alias: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* PEM-encoded client certificate and private key.
|
|
56
|
+
*/
|
|
57
|
+
readonly content: pulumi.Output<string | undefined>;
|
|
58
|
+
readonly file: pulumi.Output<string | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* SHA256 fingerprint of the certificate.
|
|
61
|
+
*/
|
|
62
|
+
readonly fingerprint: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Name of the certificate authority that issued the certificate.
|
|
65
|
+
*/
|
|
66
|
+
readonly issuedBy: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* The time & date when the certificate is valid from.
|
|
69
|
+
*/
|
|
70
|
+
readonly issuedOn: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Name of whom the certificate has been issued to.
|
|
73
|
+
*/
|
|
74
|
+
readonly issuedTo: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* The time & date when the certificate expires.
|
|
77
|
+
*/
|
|
78
|
+
readonly validUntil: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Create a Certificate resource with the given unique name, arguments, and options.
|
|
81
|
+
*
|
|
82
|
+
* @param name The _unique_ name of the resource.
|
|
83
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
84
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
85
|
+
*/
|
|
86
|
+
constructor(name: string, args: CertificateArgs, opts?: pulumi.CustomResourceOptions);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Input properties used for looking up and filtering Certificate resources.
|
|
90
|
+
*/
|
|
91
|
+
export interface CertificateState {
|
|
92
|
+
/**
|
|
93
|
+
* Name of certificate.
|
|
94
|
+
*/
|
|
95
|
+
alias?: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* PEM-encoded client certificate and private key.
|
|
98
|
+
*/
|
|
99
|
+
content?: pulumi.Input<string>;
|
|
100
|
+
file?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* SHA256 fingerprint of the certificate.
|
|
103
|
+
*/
|
|
104
|
+
fingerprint?: pulumi.Input<string>;
|
|
105
|
+
/**
|
|
106
|
+
* Name of the certificate authority that issued the certificate.
|
|
107
|
+
*/
|
|
108
|
+
issuedBy?: pulumi.Input<string>;
|
|
109
|
+
/**
|
|
110
|
+
* The time & date when the certificate is valid from.
|
|
111
|
+
*/
|
|
112
|
+
issuedOn?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* Name of whom the certificate has been issued to.
|
|
115
|
+
*/
|
|
116
|
+
issuedTo?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* The time & date when the certificate expires.
|
|
119
|
+
*/
|
|
120
|
+
validUntil?: pulumi.Input<string>;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* The set of arguments for constructing a Certificate resource.
|
|
124
|
+
*/
|
|
125
|
+
export interface CertificateArgs {
|
|
126
|
+
/**
|
|
127
|
+
* Name of certificate.
|
|
128
|
+
*/
|
|
129
|
+
alias: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* PEM-encoded client certificate and private key.
|
|
132
|
+
*/
|
|
133
|
+
content?: pulumi.Input<string>;
|
|
134
|
+
file?: pulumi.Input<string>;
|
|
135
|
+
}
|
package/certificate.js
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Certificate = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## # Artifactory Certificate Resource
|
|
10
|
+
*
|
|
11
|
+
* Provides an Artifactory certificate resource. This can be used to create and manage Artifactory certificates which can be used as client authentication against remote repositories.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
18
|
+
* import * as fs from "fs";
|
|
19
|
+
*
|
|
20
|
+
* // Create a new Artifactory certificate called my-cert
|
|
21
|
+
* const my_cert = new artifactory.Certificate("my-cert", {
|
|
22
|
+
* alias: "my-cert",
|
|
23
|
+
* content: fs.readFileSync("/path/to/bundle.pem", "utf-8"),
|
|
24
|
+
* });
|
|
25
|
+
* // This can then be used by a remote repository
|
|
26
|
+
* const my_remote = new artifactory.RemoteRepository("my-remote", {
|
|
27
|
+
* // more code
|
|
28
|
+
* clientTlsCertificate: my_cert.alias,
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* ## Import
|
|
33
|
+
*
|
|
34
|
+
* Certificates can be imported using their alias, e.g.
|
|
35
|
+
*
|
|
36
|
+
* ```sh
|
|
37
|
+
* $ pulumi import artifactory:index/certificate:Certificate my-cert my-cert
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
class Certificate extends pulumi.CustomResource {
|
|
41
|
+
constructor(name, argsOrState, opts) {
|
|
42
|
+
let inputs = {};
|
|
43
|
+
opts = opts || {};
|
|
44
|
+
if (opts.id) {
|
|
45
|
+
const state = argsOrState;
|
|
46
|
+
inputs["alias"] = state ? state.alias : undefined;
|
|
47
|
+
inputs["content"] = state ? state.content : undefined;
|
|
48
|
+
inputs["file"] = state ? state.file : undefined;
|
|
49
|
+
inputs["fingerprint"] = state ? state.fingerprint : undefined;
|
|
50
|
+
inputs["issuedBy"] = state ? state.issuedBy : undefined;
|
|
51
|
+
inputs["issuedOn"] = state ? state.issuedOn : undefined;
|
|
52
|
+
inputs["issuedTo"] = state ? state.issuedTo : undefined;
|
|
53
|
+
inputs["validUntil"] = state ? state.validUntil : undefined;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
const args = argsOrState;
|
|
57
|
+
if ((!args || args.alias === undefined) && !opts.urn) {
|
|
58
|
+
throw new Error("Missing required property 'alias'");
|
|
59
|
+
}
|
|
60
|
+
inputs["alias"] = args ? args.alias : undefined;
|
|
61
|
+
inputs["content"] = args ? args.content : undefined;
|
|
62
|
+
inputs["file"] = args ? args.file : undefined;
|
|
63
|
+
inputs["fingerprint"] = undefined /*out*/;
|
|
64
|
+
inputs["issuedBy"] = undefined /*out*/;
|
|
65
|
+
inputs["issuedOn"] = undefined /*out*/;
|
|
66
|
+
inputs["issuedTo"] = undefined /*out*/;
|
|
67
|
+
inputs["validUntil"] = undefined /*out*/;
|
|
68
|
+
}
|
|
69
|
+
if (!opts.version) {
|
|
70
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
71
|
+
}
|
|
72
|
+
super(Certificate.__pulumiType, name, inputs, opts);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Get an existing Certificate resource's state with the given name, ID, and optional extra
|
|
76
|
+
* properties used to qualify the lookup.
|
|
77
|
+
*
|
|
78
|
+
* @param name The _unique_ name of the resulting resource.
|
|
79
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
80
|
+
* @param state Any extra arguments used during the lookup.
|
|
81
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
82
|
+
*/
|
|
83
|
+
static get(name, id, state, opts) {
|
|
84
|
+
return new Certificate(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Returns true if the given object is an instance of Certificate. This is designed to work even
|
|
88
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
89
|
+
*/
|
|
90
|
+
static isInstance(obj) {
|
|
91
|
+
if (obj === undefined || obj === null) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
return obj['__pulumiType'] === Certificate.__pulumiType;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.Certificate = Certificate;
|
|
98
|
+
/** @internal */
|
|
99
|
+
Certificate.__pulumiType = 'artifactory:index/certificate:Certificate';
|
|
100
|
+
//# sourceMappingURL=certificate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"certificate.js","sourceRoot":"","sources":["../certificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;A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O,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AA1BL,kCAkGC;AApFG,gBAAgB;AACO,wBAAY,GAAG,2CAA2C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./vars";
|
package/config/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
7
|
+
}) : (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
o[k2] = m[k];
|
|
10
|
+
}));
|
|
11
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
12
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
// Export members:
|
|
16
|
+
__exportStar(require("./vars"), exports);
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
|
package/config/vars.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is a bearer token that can be given to you by your admin under `Identity and Access`
|
|
3
|
+
*/
|
|
4
|
+
export declare const accessToken: string | undefined;
|
|
5
|
+
export declare const apiKey: string | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* Insider note: You may actually use an api_key as the password. This will get your around xray limitations instead of a
|
|
8
|
+
* bearer token
|
|
9
|
+
*/
|
|
10
|
+
export declare const password: string | undefined;
|
|
11
|
+
export declare const url: string | undefined;
|
|
12
|
+
export declare const username: string | undefined;
|
package/config/vars.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const __config = new pulumi.Config("artifactory");
|
|
7
|
+
Object.defineProperty(exports, "accessToken", {
|
|
8
|
+
get() {
|
|
9
|
+
return __config.get("accessToken");
|
|
10
|
+
},
|
|
11
|
+
enumerable: true,
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "apiKey", {
|
|
14
|
+
get() {
|
|
15
|
+
return __config.get("apiKey");
|
|
16
|
+
},
|
|
17
|
+
enumerable: true,
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "password", {
|
|
20
|
+
get() {
|
|
21
|
+
return __config.get("password");
|
|
22
|
+
},
|
|
23
|
+
enumerable: true,
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "url", {
|
|
26
|
+
get() {
|
|
27
|
+
return __config.get("url");
|
|
28
|
+
},
|
|
29
|
+
enumerable: true,
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "username", {
|
|
32
|
+
get() {
|
|
33
|
+
return __config.get("username");
|
|
34
|
+
},
|
|
35
|
+
enumerable: true,
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=vars.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;AAMlD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,aAAa,EAAE;IAC1C,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IACvC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE;IAClC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|