@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,163 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## # Artifactory Local Docker V2 Repository Resource
|
|
4
|
+
*
|
|
5
|
+
* Creates a local docker v2 repository
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
12
|
+
*
|
|
13
|
+
* const foo = new artifactory.DockerV2Repository("foo", {
|
|
14
|
+
* key: "foo",
|
|
15
|
+
* maxUniqueTags: 5,
|
|
16
|
+
* tagRetention: 3,
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare class DockerV2Repository extends pulumi.CustomResource {
|
|
21
|
+
/**
|
|
22
|
+
* Get an existing DockerV2Repository resource's state with the given name, ID, and optional extra
|
|
23
|
+
* properties used to qualify the lookup.
|
|
24
|
+
*
|
|
25
|
+
* @param name The _unique_ name of the resulting resource.
|
|
26
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
27
|
+
* @param state Any extra arguments used during the lookup.
|
|
28
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
29
|
+
*/
|
|
30
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DockerV2RepositoryState, opts?: pulumi.CustomResourceOptions): DockerV2Repository;
|
|
31
|
+
/**
|
|
32
|
+
* Returns true if the given object is an instance of DockerV2Repository. This is designed to work even
|
|
33
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
34
|
+
*/
|
|
35
|
+
static isInstance(obj: any): obj is DockerV2Repository;
|
|
36
|
+
/**
|
|
37
|
+
* The Docker API version to use. This cannot be set
|
|
38
|
+
*/
|
|
39
|
+
readonly apiVersion: pulumi.Output<string>;
|
|
40
|
+
/**
|
|
41
|
+
* When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and
|
|
42
|
+
* therefore requires strict content moderation to prevent malicious users from uploading content that may compromise
|
|
43
|
+
* security (e.g., cross-site scripting attacks).
|
|
44
|
+
*/
|
|
45
|
+
readonly archiveBrowsingEnabled: pulumi.Output<boolean | undefined>;
|
|
46
|
+
readonly blackedOut: pulumi.Output<boolean | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* - When set, Artifactory will block the pushing of Docker images with manifest v2 schema 1 to this repository.
|
|
49
|
+
*/
|
|
50
|
+
readonly blockPushingSchema1: pulumi.Output<boolean>;
|
|
51
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
52
|
+
readonly downloadDirect: pulumi.Output<boolean | undefined>;
|
|
53
|
+
readonly excludesPattern: pulumi.Output<string>;
|
|
54
|
+
readonly includesPattern: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* - the identity key of the repo
|
|
57
|
+
*/
|
|
58
|
+
readonly key: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* - The maximum number of unique tags of a single Docker image to store in this repository.\n" +
|
|
61
|
+
* Once the number tags for an image exceeds this setting, older tags are removed. A value of 0 (default) indicates there is no limit.
|
|
62
|
+
* This only applies to manifest v2
|
|
63
|
+
*/
|
|
64
|
+
readonly maxUniqueTags: pulumi.Output<number | undefined>;
|
|
65
|
+
readonly notes: pulumi.Output<string | undefined>;
|
|
66
|
+
readonly packageType: pulumi.Output<string>;
|
|
67
|
+
readonly propertySets: pulumi.Output<string[] | undefined>;
|
|
68
|
+
readonly repoLayoutRef: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* - If greater than 1, overwritten tags will be saved by their digest, up to the set up number. This only applies to manifest V2
|
|
71
|
+
*/
|
|
72
|
+
readonly tagRetention: pulumi.Output<number | undefined>;
|
|
73
|
+
readonly xrayIndex: pulumi.Output<boolean>;
|
|
74
|
+
/**
|
|
75
|
+
* Create a DockerV2Repository resource with the given unique name, arguments, and options.
|
|
76
|
+
*
|
|
77
|
+
* @param name The _unique_ name of the resource.
|
|
78
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
79
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
80
|
+
*/
|
|
81
|
+
constructor(name: string, args: DockerV2RepositoryArgs, opts?: pulumi.CustomResourceOptions);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Input properties used for looking up and filtering DockerV2Repository resources.
|
|
85
|
+
*/
|
|
86
|
+
export interface DockerV2RepositoryState {
|
|
87
|
+
/**
|
|
88
|
+
* The Docker API version to use. This cannot be set
|
|
89
|
+
*/
|
|
90
|
+
apiVersion?: pulumi.Input<string>;
|
|
91
|
+
/**
|
|
92
|
+
* When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and
|
|
93
|
+
* therefore requires strict content moderation to prevent malicious users from uploading content that may compromise
|
|
94
|
+
* security (e.g., cross-site scripting attacks).
|
|
95
|
+
*/
|
|
96
|
+
archiveBrowsingEnabled?: pulumi.Input<boolean>;
|
|
97
|
+
blackedOut?: pulumi.Input<boolean>;
|
|
98
|
+
/**
|
|
99
|
+
* - When set, Artifactory will block the pushing of Docker images with manifest v2 schema 1 to this repository.
|
|
100
|
+
*/
|
|
101
|
+
blockPushingSchema1?: pulumi.Input<boolean>;
|
|
102
|
+
description?: pulumi.Input<string>;
|
|
103
|
+
downloadDirect?: pulumi.Input<boolean>;
|
|
104
|
+
excludesPattern?: pulumi.Input<string>;
|
|
105
|
+
includesPattern?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* - the identity key of the repo
|
|
108
|
+
*/
|
|
109
|
+
key?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* - The maximum number of unique tags of a single Docker image to store in this repository.\n" +
|
|
112
|
+
* Once the number tags for an image exceeds this setting, older tags are removed. A value of 0 (default) indicates there is no limit.
|
|
113
|
+
* This only applies to manifest v2
|
|
114
|
+
*/
|
|
115
|
+
maxUniqueTags?: pulumi.Input<number>;
|
|
116
|
+
notes?: pulumi.Input<string>;
|
|
117
|
+
packageType?: pulumi.Input<string>;
|
|
118
|
+
propertySets?: pulumi.Input<pulumi.Input<string>[]>;
|
|
119
|
+
repoLayoutRef?: pulumi.Input<string>;
|
|
120
|
+
/**
|
|
121
|
+
* - If greater than 1, overwritten tags will be saved by their digest, up to the set up number. This only applies to manifest V2
|
|
122
|
+
*/
|
|
123
|
+
tagRetention?: pulumi.Input<number>;
|
|
124
|
+
xrayIndex?: pulumi.Input<boolean>;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* The set of arguments for constructing a DockerV2Repository resource.
|
|
128
|
+
*/
|
|
129
|
+
export interface DockerV2RepositoryArgs {
|
|
130
|
+
/**
|
|
131
|
+
* When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and
|
|
132
|
+
* therefore requires strict content moderation to prevent malicious users from uploading content that may compromise
|
|
133
|
+
* security (e.g., cross-site scripting attacks).
|
|
134
|
+
*/
|
|
135
|
+
archiveBrowsingEnabled?: pulumi.Input<boolean>;
|
|
136
|
+
blackedOut?: pulumi.Input<boolean>;
|
|
137
|
+
/**
|
|
138
|
+
* - When set, Artifactory will block the pushing of Docker images with manifest v2 schema 1 to this repository.
|
|
139
|
+
*/
|
|
140
|
+
blockPushingSchema1?: pulumi.Input<boolean>;
|
|
141
|
+
description?: pulumi.Input<string>;
|
|
142
|
+
downloadDirect?: pulumi.Input<boolean>;
|
|
143
|
+
excludesPattern?: pulumi.Input<string>;
|
|
144
|
+
includesPattern?: pulumi.Input<string>;
|
|
145
|
+
/**
|
|
146
|
+
* - the identity key of the repo
|
|
147
|
+
*/
|
|
148
|
+
key: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* - The maximum number of unique tags of a single Docker image to store in this repository.\n" +
|
|
151
|
+
* Once the number tags for an image exceeds this setting, older tags are removed. A value of 0 (default) indicates there is no limit.
|
|
152
|
+
* This only applies to manifest v2
|
|
153
|
+
*/
|
|
154
|
+
maxUniqueTags?: pulumi.Input<number>;
|
|
155
|
+
notes?: pulumi.Input<string>;
|
|
156
|
+
propertySets?: pulumi.Input<pulumi.Input<string>[]>;
|
|
157
|
+
repoLayoutRef?: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* - If greater than 1, overwritten tags will be saved by their digest, up to the set up number. This only applies to manifest V2
|
|
160
|
+
*/
|
|
161
|
+
tagRetention?: pulumi.Input<number>;
|
|
162
|
+
xrayIndex?: pulumi.Input<boolean>;
|
|
163
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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.DockerV2Repository = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## # Artifactory Local Docker V2 Repository Resource
|
|
10
|
+
*
|
|
11
|
+
* Creates a local docker v2 repository
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
18
|
+
*
|
|
19
|
+
* const foo = new artifactory.DockerV2Repository("foo", {
|
|
20
|
+
* key: "foo",
|
|
21
|
+
* maxUniqueTags: 5,
|
|
22
|
+
* tagRetention: 3,
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
class DockerV2Repository extends pulumi.CustomResource {
|
|
27
|
+
constructor(name, argsOrState, opts) {
|
|
28
|
+
let inputs = {};
|
|
29
|
+
opts = opts || {};
|
|
30
|
+
if (opts.id) {
|
|
31
|
+
const state = argsOrState;
|
|
32
|
+
inputs["apiVersion"] = state ? state.apiVersion : undefined;
|
|
33
|
+
inputs["archiveBrowsingEnabled"] = state ? state.archiveBrowsingEnabled : undefined;
|
|
34
|
+
inputs["blackedOut"] = state ? state.blackedOut : undefined;
|
|
35
|
+
inputs["blockPushingSchema1"] = state ? state.blockPushingSchema1 : undefined;
|
|
36
|
+
inputs["description"] = state ? state.description : undefined;
|
|
37
|
+
inputs["downloadDirect"] = state ? state.downloadDirect : undefined;
|
|
38
|
+
inputs["excludesPattern"] = state ? state.excludesPattern : undefined;
|
|
39
|
+
inputs["includesPattern"] = state ? state.includesPattern : undefined;
|
|
40
|
+
inputs["key"] = state ? state.key : undefined;
|
|
41
|
+
inputs["maxUniqueTags"] = state ? state.maxUniqueTags : undefined;
|
|
42
|
+
inputs["notes"] = state ? state.notes : undefined;
|
|
43
|
+
inputs["packageType"] = state ? state.packageType : undefined;
|
|
44
|
+
inputs["propertySets"] = state ? state.propertySets : undefined;
|
|
45
|
+
inputs["repoLayoutRef"] = state ? state.repoLayoutRef : undefined;
|
|
46
|
+
inputs["tagRetention"] = state ? state.tagRetention : undefined;
|
|
47
|
+
inputs["xrayIndex"] = state ? state.xrayIndex : undefined;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
const args = argsOrState;
|
|
51
|
+
if ((!args || args.key === undefined) && !opts.urn) {
|
|
52
|
+
throw new Error("Missing required property 'key'");
|
|
53
|
+
}
|
|
54
|
+
inputs["archiveBrowsingEnabled"] = args ? args.archiveBrowsingEnabled : undefined;
|
|
55
|
+
inputs["blackedOut"] = args ? args.blackedOut : undefined;
|
|
56
|
+
inputs["blockPushingSchema1"] = args ? args.blockPushingSchema1 : undefined;
|
|
57
|
+
inputs["description"] = args ? args.description : undefined;
|
|
58
|
+
inputs["downloadDirect"] = args ? args.downloadDirect : undefined;
|
|
59
|
+
inputs["excludesPattern"] = args ? args.excludesPattern : undefined;
|
|
60
|
+
inputs["includesPattern"] = args ? args.includesPattern : undefined;
|
|
61
|
+
inputs["key"] = args ? args.key : undefined;
|
|
62
|
+
inputs["maxUniqueTags"] = args ? args.maxUniqueTags : undefined;
|
|
63
|
+
inputs["notes"] = args ? args.notes : undefined;
|
|
64
|
+
inputs["propertySets"] = args ? args.propertySets : undefined;
|
|
65
|
+
inputs["repoLayoutRef"] = args ? args.repoLayoutRef : undefined;
|
|
66
|
+
inputs["tagRetention"] = args ? args.tagRetention : undefined;
|
|
67
|
+
inputs["xrayIndex"] = args ? args.xrayIndex : undefined;
|
|
68
|
+
inputs["apiVersion"] = undefined /*out*/;
|
|
69
|
+
inputs["packageType"] = undefined /*out*/;
|
|
70
|
+
}
|
|
71
|
+
if (!opts.version) {
|
|
72
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
73
|
+
}
|
|
74
|
+
super(DockerV2Repository.__pulumiType, name, inputs, opts);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Get an existing DockerV2Repository resource's state with the given name, ID, and optional extra
|
|
78
|
+
* properties used to qualify the lookup.
|
|
79
|
+
*
|
|
80
|
+
* @param name The _unique_ name of the resulting resource.
|
|
81
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
82
|
+
* @param state Any extra arguments used during the lookup.
|
|
83
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
84
|
+
*/
|
|
85
|
+
static get(name, id, state, opts) {
|
|
86
|
+
return new DockerV2Repository(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Returns true if the given object is an instance of DockerV2Repository. 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) {
|
|
93
|
+
if (obj === undefined || obj === null) {
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
return obj['__pulumiType'] === DockerV2Repository.__pulumiType;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.DockerV2Repository = DockerV2Repository;
|
|
100
|
+
/** @internal */
|
|
101
|
+
DockerV2Repository.__pulumiType = 'artifactory:index/dockerV2Repository:DockerV2Repository';
|
|
102
|
+
//# sourceMappingURL=dockerV2Repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dockerV2Repository.js","sourceRoot":"","sources":["../dockerV2Repository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IA2EzD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,MAAM,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,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,qBAAqB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,MAAM,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC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KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;;AA1BL,gDA2HC;AA7GG,gBAAgB;AACO,+BAAY,GAAG,yDAAyD,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## # Artifactory General Security Resource
|
|
4
|
+
*
|
|
5
|
+
* This resource can be used to manage Artifactory's general security settings.
|
|
6
|
+
*
|
|
7
|
+
* Only a single `artifactory.GeneralSecurity` resource is meant to be defined.
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
14
|
+
*
|
|
15
|
+
* // Configure Artifactory general security settings
|
|
16
|
+
* const security = new artifactory.GeneralSecurity("security", {
|
|
17
|
+
* enableAnonymousAccess: true,
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* ## Import
|
|
22
|
+
*
|
|
23
|
+
* Current general security settings can be imported using `security` as the `ID`, e.g.
|
|
24
|
+
*
|
|
25
|
+
* ```sh
|
|
26
|
+
* $ pulumi import artifactory:index/generalSecurity:GeneralSecurity security security
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare class GeneralSecurity extends pulumi.CustomResource {
|
|
30
|
+
/**
|
|
31
|
+
* Get an existing GeneralSecurity resource's state with the given name, ID, and optional extra
|
|
32
|
+
* properties used to qualify the lookup.
|
|
33
|
+
*
|
|
34
|
+
* @param name The _unique_ name of the resulting resource.
|
|
35
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
36
|
+
* @param state Any extra arguments used during the lookup.
|
|
37
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
38
|
+
*/
|
|
39
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GeneralSecurityState, opts?: pulumi.CustomResourceOptions): GeneralSecurity;
|
|
40
|
+
/**
|
|
41
|
+
* Returns true if the given object is an instance of GeneralSecurity. This is designed to work even
|
|
42
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
43
|
+
*/
|
|
44
|
+
static isInstance(obj: any): obj is GeneralSecurity;
|
|
45
|
+
readonly enableAnonymousAccess: pulumi.Output<boolean | undefined>;
|
|
46
|
+
/**
|
|
47
|
+
* Create a GeneralSecurity resource with the given unique name, arguments, and options.
|
|
48
|
+
*
|
|
49
|
+
* @param name The _unique_ name of the resource.
|
|
50
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
51
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
52
|
+
*/
|
|
53
|
+
constructor(name: string, args?: GeneralSecurityArgs, opts?: pulumi.CustomResourceOptions);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Input properties used for looking up and filtering GeneralSecurity resources.
|
|
57
|
+
*/
|
|
58
|
+
export interface GeneralSecurityState {
|
|
59
|
+
enableAnonymousAccess?: pulumi.Input<boolean>;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* The set of arguments for constructing a GeneralSecurity resource.
|
|
63
|
+
*/
|
|
64
|
+
export interface GeneralSecurityArgs {
|
|
65
|
+
enableAnonymousAccess?: pulumi.Input<boolean>;
|
|
66
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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.GeneralSecurity = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## # Artifactory General Security Resource
|
|
10
|
+
*
|
|
11
|
+
* This resource can be used to manage Artifactory's general security settings.
|
|
12
|
+
*
|
|
13
|
+
* Only a single `artifactory.GeneralSecurity` resource is meant to be defined.
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
20
|
+
*
|
|
21
|
+
* // Configure Artifactory general security settings
|
|
22
|
+
* const security = new artifactory.GeneralSecurity("security", {
|
|
23
|
+
* enableAnonymousAccess: true,
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ## Import
|
|
28
|
+
*
|
|
29
|
+
* Current general security settings can be imported using `security` as the `ID`, e.g.
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import artifactory:index/generalSecurity:GeneralSecurity security security
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
class GeneralSecurity extends pulumi.CustomResource {
|
|
36
|
+
constructor(name, argsOrState, opts) {
|
|
37
|
+
let inputs = {};
|
|
38
|
+
opts = opts || {};
|
|
39
|
+
if (opts.id) {
|
|
40
|
+
const state = argsOrState;
|
|
41
|
+
inputs["enableAnonymousAccess"] = state ? state.enableAnonymousAccess : undefined;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
const args = argsOrState;
|
|
45
|
+
inputs["enableAnonymousAccess"] = args ? args.enableAnonymousAccess : undefined;
|
|
46
|
+
}
|
|
47
|
+
if (!opts.version) {
|
|
48
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
49
|
+
}
|
|
50
|
+
super(GeneralSecurity.__pulumiType, name, inputs, opts);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Get an existing GeneralSecurity resource's state with the given name, ID, and optional extra
|
|
54
|
+
* properties used to qualify the lookup.
|
|
55
|
+
*
|
|
56
|
+
* @param name The _unique_ name of the resulting resource.
|
|
57
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
58
|
+
* @param state Any extra arguments used during the lookup.
|
|
59
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
60
|
+
*/
|
|
61
|
+
static get(name, id, state, opts) {
|
|
62
|
+
return new GeneralSecurity(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Returns true if the given object is an instance of GeneralSecurity. This is designed to work even
|
|
66
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
67
|
+
*/
|
|
68
|
+
static isInstance(obj) {
|
|
69
|
+
if (obj === undefined || obj === null) {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
return obj['__pulumiType'] === GeneralSecurity.__pulumiType;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.GeneralSecurity = GeneralSecurity;
|
|
76
|
+
/** @internal */
|
|
77
|
+
GeneralSecurity.__pulumiType = 'artifactory:index/generalSecurity:GeneralSecurity';
|
|
78
|
+
//# sourceMappingURL=generalSecurity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generalSecurity.js","sourceRoot":"","sources":["../generalSecurity.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IAsCtD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,MAAM,CAAC,uBAAuB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;SACrF;aAAM;YACH,MAAM,IAAI,GAAG,WAA8C,CAAC;YAC5D,MAAM,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;SACnF;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,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IAnDD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,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,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;;AA1BL,0CAqDC;AAvCG,gBAAgB;AACO,4BAAY,GAAG,mDAAmD,CAAC"}
|
package/getFile.d.ts
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## # Artifactory File Data Source
|
|
4
|
+
*
|
|
5
|
+
* Provides an Artifactory file datasource. This can be used to download a file from a given Artifactory repository.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
12
|
+
*
|
|
13
|
+
* //
|
|
14
|
+
* const my_file = pulumi.output(artifactory.getFile({
|
|
15
|
+
* outputPath: "tmp/artifact.zip",
|
|
16
|
+
* path: "/path/to/the/artifact.zip",
|
|
17
|
+
* repository: "repo-key",
|
|
18
|
+
* }));
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function getFile(args: GetFileArgs, opts?: pulumi.InvokeOptions): Promise<GetFileResult>;
|
|
22
|
+
/**
|
|
23
|
+
* A collection of arguments for invoking getFile.
|
|
24
|
+
*/
|
|
25
|
+
export interface GetFileArgs {
|
|
26
|
+
/**
|
|
27
|
+
* If set to true, an existing file in the outputPath will be overwritten. Default: false
|
|
28
|
+
*/
|
|
29
|
+
forceOverwrite?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The local path the file should be downloaded to.
|
|
32
|
+
*/
|
|
33
|
+
outputPath: string;
|
|
34
|
+
/**
|
|
35
|
+
* The path to the file within the repository.
|
|
36
|
+
*/
|
|
37
|
+
path: string;
|
|
38
|
+
/**
|
|
39
|
+
* Name of the repository where the file is stored.
|
|
40
|
+
*/
|
|
41
|
+
repository: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A collection of values returned by getFile.
|
|
45
|
+
*/
|
|
46
|
+
export interface GetFileResult {
|
|
47
|
+
/**
|
|
48
|
+
* The time & date when the file was created.
|
|
49
|
+
*/
|
|
50
|
+
readonly created: string;
|
|
51
|
+
/**
|
|
52
|
+
* The user who created the file.
|
|
53
|
+
*/
|
|
54
|
+
readonly createdBy: string;
|
|
55
|
+
/**
|
|
56
|
+
* The URI that can be used to download the file.
|
|
57
|
+
*/
|
|
58
|
+
readonly downloadUri: string;
|
|
59
|
+
readonly forceOverwrite?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* The provider-assigned unique ID for this managed resource.
|
|
62
|
+
*/
|
|
63
|
+
readonly id: string;
|
|
64
|
+
/**
|
|
65
|
+
* The time & date when the file was last modified.
|
|
66
|
+
*/
|
|
67
|
+
readonly lastModified: string;
|
|
68
|
+
/**
|
|
69
|
+
* The time & date when the file was last updated.
|
|
70
|
+
*/
|
|
71
|
+
readonly lastUpdated: string;
|
|
72
|
+
/**
|
|
73
|
+
* MD5 checksum of the file.
|
|
74
|
+
*/
|
|
75
|
+
readonly md5: string;
|
|
76
|
+
/**
|
|
77
|
+
* The mimetype of the file.
|
|
78
|
+
*/
|
|
79
|
+
readonly mimetype: string;
|
|
80
|
+
/**
|
|
81
|
+
* The user who last modified the file.
|
|
82
|
+
*/
|
|
83
|
+
readonly modifiedBy: string;
|
|
84
|
+
readonly outputPath: string;
|
|
85
|
+
readonly path: string;
|
|
86
|
+
readonly repository: string;
|
|
87
|
+
/**
|
|
88
|
+
* SHA1 checksum of the file.
|
|
89
|
+
*/
|
|
90
|
+
readonly sha1: string;
|
|
91
|
+
/**
|
|
92
|
+
* SHA256 checksum of the file.
|
|
93
|
+
*/
|
|
94
|
+
readonly sha256: string;
|
|
95
|
+
/**
|
|
96
|
+
* The size of the file.
|
|
97
|
+
*/
|
|
98
|
+
readonly size: number;
|
|
99
|
+
}
|
|
100
|
+
export declare function getFileOutput(args: GetFileOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFileResult>;
|
|
101
|
+
/**
|
|
102
|
+
* A collection of arguments for invoking getFile.
|
|
103
|
+
*/
|
|
104
|
+
export interface GetFileOutputArgs {
|
|
105
|
+
/**
|
|
106
|
+
* If set to true, an existing file in the outputPath will be overwritten. Default: false
|
|
107
|
+
*/
|
|
108
|
+
forceOverwrite?: pulumi.Input<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* The local path the file should be downloaded to.
|
|
111
|
+
*/
|
|
112
|
+
outputPath: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* The path to the file within the repository.
|
|
115
|
+
*/
|
|
116
|
+
path: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Name of the repository where the file is stored.
|
|
119
|
+
*/
|
|
120
|
+
repository: pulumi.Input<string>;
|
|
121
|
+
}
|
package/getFile.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
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.getFileOutput = exports.getFile = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## # Artifactory File Data Source
|
|
10
|
+
*
|
|
11
|
+
* Provides an Artifactory file datasource. This can be used to download a file from a given Artifactory repository.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
18
|
+
*
|
|
19
|
+
* //
|
|
20
|
+
* const my_file = pulumi.output(artifactory.getFile({
|
|
21
|
+
* outputPath: "tmp/artifact.zip",
|
|
22
|
+
* path: "/path/to/the/artifact.zip",
|
|
23
|
+
* repository: "repo-key",
|
|
24
|
+
* }));
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
function getFile(args, opts) {
|
|
28
|
+
if (!opts) {
|
|
29
|
+
opts = {};
|
|
30
|
+
}
|
|
31
|
+
if (!opts.version) {
|
|
32
|
+
opts.version = utilities.getVersion();
|
|
33
|
+
}
|
|
34
|
+
return pulumi.runtime.invoke("artifactory:index/getFile:getFile", {
|
|
35
|
+
"forceOverwrite": args.forceOverwrite,
|
|
36
|
+
"outputPath": args.outputPath,
|
|
37
|
+
"path": args.path,
|
|
38
|
+
"repository": args.repository,
|
|
39
|
+
}, opts);
|
|
40
|
+
}
|
|
41
|
+
exports.getFile = getFile;
|
|
42
|
+
function getFileOutput(args, opts) {
|
|
43
|
+
return pulumi.output(args).apply(a => getFile(a, opts));
|
|
44
|
+
}
|
|
45
|
+
exports.getFileOutput = getFileOutput;
|
|
46
|
+
//# sourceMappingURL=getFile.js.map
|
package/getFile.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFile.js","sourceRoot":"","sources":["../getFile.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,OAAO,CAAC,IAAiB,EAAE,IAA2B;IAClE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mCAAmC,EAAE;QAC9D,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAdD,0BAcC;AAkFD,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAC9E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC3D,CAAC;AAFD,sCAEC"}
|