@pulumi/artifactory 2.2.0 → 2.3.1

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.
@@ -0,0 +1,229 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## Example Usage
4
+ *
5
+ * ```typescript
6
+ * import * as pulumi from "@pulumi/pulumi";
7
+ * import * as artifactory from "@pulumi/artifactory";
8
+ *
9
+ * const terraform_local_test_terraformbackend_repo = new artifactory.LocalTerraformBackendRepository("terraform-local-test-terraformbackend-repo", {
10
+ * key: "terraform-local-test-terraformbackend-repo",
11
+ * });
12
+ * ```
13
+ *
14
+ * ## Import
15
+ *
16
+ * Local repositories can be imported using their name, e.g.
17
+ *
18
+ * ```sh
19
+ * $ pulumi import artifactory:index/localTerraformBackendRepository:LocalTerraformBackendRepository terraform-local-test-terraformbackend-repo terraform-local-test-terraformbackend-repo
20
+ * ```
21
+ */
22
+ export declare class LocalTerraformBackendRepository extends pulumi.CustomResource {
23
+ /**
24
+ * Get an existing LocalTerraformBackendRepository resource's state with the given name, ID, and optional extra
25
+ * properties used to qualify the lookup.
26
+ *
27
+ * @param name The _unique_ name of the resulting resource.
28
+ * @param id The _unique_ provider ID of the resource to lookup.
29
+ * @param state Any extra arguments used during the lookup.
30
+ * @param opts Optional settings to control the behavior of the CustomResource.
31
+ */
32
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LocalTerraformBackendRepositoryState, opts?: pulumi.CustomResourceOptions): LocalTerraformBackendRepository;
33
+ /**
34
+ * Returns true if the given object is an instance of LocalTerraformBackendRepository. This is designed to work even
35
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
36
+ */
37
+ static isInstance(obj: any): obj is LocalTerraformBackendRepository;
38
+ /**
39
+ * When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and
40
+ * therefore requires strict content moderation to prevent malicious users from uploading content that may compromise
41
+ * security (e.g., cross-site scripting attacks).
42
+ */
43
+ readonly archiveBrowsingEnabled: pulumi.Output<boolean | undefined>;
44
+ /**
45
+ * When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
46
+ */
47
+ readonly blackedOut: pulumi.Output<boolean | undefined>;
48
+ readonly description: pulumi.Output<string | undefined>;
49
+ /**
50
+ * When set, download requests to this repository will redirect the client to download the artifact directly from the cloud
51
+ * storage provider. Available in Enterprise+ and Edge licenses only.
52
+ */
53
+ readonly downloadDirect: pulumi.Output<boolean | undefined>;
54
+ /**
55
+ * List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**&#47;z/*. By default no
56
+ * artifacts are excluded.
57
+ */
58
+ readonly excludesPattern: pulumi.Output<string>;
59
+ /**
60
+ * List of artifact patterns to include when evaluating artifact requests in the form of x/y/**&#47;z/*. When used, only
61
+ * artifacts matching one of the include patterns are served. By default, all artifacts are included (**&#47;*).
62
+ */
63
+ readonly includesPattern: pulumi.Output<string>;
64
+ /**
65
+ * the identity key of the repo.
66
+ */
67
+ readonly key: pulumi.Output<string>;
68
+ readonly notes: pulumi.Output<string | undefined>;
69
+ readonly packageType: pulumi.Output<string>;
70
+ /**
71
+ * Setting repositories with priority will cause metadata to be merged only from repositories set with this field
72
+ */
73
+ readonly priorityResolution: pulumi.Output<boolean | undefined>;
74
+ /**
75
+ * Project environment for assigning this repository to. Allow values: "DEV" or "PROD"
76
+ */
77
+ readonly projectEnvironments: pulumi.Output<string[] | undefined>;
78
+ /**
79
+ * Project key for assigning this repository to. When assigning repository to a project, repository key must be prefixed
80
+ * with project key, separated by a dash.
81
+ */
82
+ readonly projectKey: pulumi.Output<string | undefined>;
83
+ /**
84
+ * List of property set name
85
+ */
86
+ readonly propertySets: pulumi.Output<string[] | undefined>;
87
+ /**
88
+ * Repository layout key for the local repository
89
+ */
90
+ readonly repoLayoutRef: pulumi.Output<string | undefined>;
91
+ /**
92
+ * Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via
93
+ * Xray settings.
94
+ */
95
+ readonly xrayIndex: pulumi.Output<boolean | undefined>;
96
+ /**
97
+ * Create a LocalTerraformBackendRepository resource with the given unique name, arguments, and options.
98
+ *
99
+ * @param name The _unique_ name of the resource.
100
+ * @param args The arguments to use to populate this resource's properties.
101
+ * @param opts A bag of options that control this resource's behavior.
102
+ */
103
+ constructor(name: string, args: LocalTerraformBackendRepositoryArgs, opts?: pulumi.CustomResourceOptions);
104
+ }
105
+ /**
106
+ * Input properties used for looking up and filtering LocalTerraformBackendRepository resources.
107
+ */
108
+ export interface LocalTerraformBackendRepositoryState {
109
+ /**
110
+ * When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and
111
+ * therefore requires strict content moderation to prevent malicious users from uploading content that may compromise
112
+ * security (e.g., cross-site scripting attacks).
113
+ */
114
+ archiveBrowsingEnabled?: pulumi.Input<boolean>;
115
+ /**
116
+ * When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
117
+ */
118
+ blackedOut?: pulumi.Input<boolean>;
119
+ description?: pulumi.Input<string>;
120
+ /**
121
+ * When set, download requests to this repository will redirect the client to download the artifact directly from the cloud
122
+ * storage provider. Available in Enterprise+ and Edge licenses only.
123
+ */
124
+ downloadDirect?: pulumi.Input<boolean>;
125
+ /**
126
+ * List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**&#47;z/*. By default no
127
+ * artifacts are excluded.
128
+ */
129
+ excludesPattern?: pulumi.Input<string>;
130
+ /**
131
+ * List of artifact patterns to include when evaluating artifact requests in the form of x/y/**&#47;z/*. When used, only
132
+ * artifacts matching one of the include patterns are served. By default, all artifacts are included (**&#47;*).
133
+ */
134
+ includesPattern?: pulumi.Input<string>;
135
+ /**
136
+ * the identity key of the repo.
137
+ */
138
+ key?: pulumi.Input<string>;
139
+ notes?: pulumi.Input<string>;
140
+ packageType?: pulumi.Input<string>;
141
+ /**
142
+ * Setting repositories with priority will cause metadata to be merged only from repositories set with this field
143
+ */
144
+ priorityResolution?: pulumi.Input<boolean>;
145
+ /**
146
+ * Project environment for assigning this repository to. Allow values: "DEV" or "PROD"
147
+ */
148
+ projectEnvironments?: pulumi.Input<pulumi.Input<string>[]>;
149
+ /**
150
+ * Project key for assigning this repository to. When assigning repository to a project, repository key must be prefixed
151
+ * with project key, separated by a dash.
152
+ */
153
+ projectKey?: pulumi.Input<string>;
154
+ /**
155
+ * List of property set name
156
+ */
157
+ propertySets?: pulumi.Input<pulumi.Input<string>[]>;
158
+ /**
159
+ * Repository layout key for the local repository
160
+ */
161
+ repoLayoutRef?: pulumi.Input<string>;
162
+ /**
163
+ * Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via
164
+ * Xray settings.
165
+ */
166
+ xrayIndex?: pulumi.Input<boolean>;
167
+ }
168
+ /**
169
+ * The set of arguments for constructing a LocalTerraformBackendRepository resource.
170
+ */
171
+ export interface LocalTerraformBackendRepositoryArgs {
172
+ /**
173
+ * When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and
174
+ * therefore requires strict content moderation to prevent malicious users from uploading content that may compromise
175
+ * security (e.g., cross-site scripting attacks).
176
+ */
177
+ archiveBrowsingEnabled?: pulumi.Input<boolean>;
178
+ /**
179
+ * When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
180
+ */
181
+ blackedOut?: pulumi.Input<boolean>;
182
+ description?: pulumi.Input<string>;
183
+ /**
184
+ * When set, download requests to this repository will redirect the client to download the artifact directly from the cloud
185
+ * storage provider. Available in Enterprise+ and Edge licenses only.
186
+ */
187
+ downloadDirect?: pulumi.Input<boolean>;
188
+ /**
189
+ * List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**&#47;z/*. By default no
190
+ * artifacts are excluded.
191
+ */
192
+ excludesPattern?: pulumi.Input<string>;
193
+ /**
194
+ * List of artifact patterns to include when evaluating artifact requests in the form of x/y/**&#47;z/*. When used, only
195
+ * artifacts matching one of the include patterns are served. By default, all artifacts are included (**&#47;*).
196
+ */
197
+ includesPattern?: pulumi.Input<string>;
198
+ /**
199
+ * the identity key of the repo.
200
+ */
201
+ key: pulumi.Input<string>;
202
+ notes?: pulumi.Input<string>;
203
+ /**
204
+ * Setting repositories with priority will cause metadata to be merged only from repositories set with this field
205
+ */
206
+ priorityResolution?: pulumi.Input<boolean>;
207
+ /**
208
+ * Project environment for assigning this repository to. Allow values: "DEV" or "PROD"
209
+ */
210
+ projectEnvironments?: pulumi.Input<pulumi.Input<string>[]>;
211
+ /**
212
+ * Project key for assigning this repository to. When assigning repository to a project, repository key must be prefixed
213
+ * with project key, separated by a dash.
214
+ */
215
+ projectKey?: pulumi.Input<string>;
216
+ /**
217
+ * List of property set name
218
+ */
219
+ propertySets?: pulumi.Input<pulumi.Input<string>[]>;
220
+ /**
221
+ * Repository layout key for the local repository
222
+ */
223
+ repoLayoutRef?: pulumi.Input<string>;
224
+ /**
225
+ * Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via
226
+ * Xray settings.
227
+ */
228
+ xrayIndex?: pulumi.Input<boolean>;
229
+ }
@@ -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.LocalTerraformBackendRepository = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as artifactory from "@pulumi/artifactory";
14
+ *
15
+ * const terraform_local_test_terraformbackend_repo = new artifactory.LocalTerraformBackendRepository("terraform-local-test-terraformbackend-repo", {
16
+ * key: "terraform-local-test-terraformbackend-repo",
17
+ * });
18
+ * ```
19
+ *
20
+ * ## Import
21
+ *
22
+ * Local repositories can be imported using their name, e.g.
23
+ *
24
+ * ```sh
25
+ * $ pulumi import artifactory:index/localTerraformBackendRepository:LocalTerraformBackendRepository terraform-local-test-terraformbackend-repo terraform-local-test-terraformbackend-repo
26
+ * ```
27
+ */
28
+ class LocalTerraformBackendRepository extends pulumi.CustomResource {
29
+ constructor(name, argsOrState, opts) {
30
+ let resourceInputs = {};
31
+ opts = opts || {};
32
+ if (opts.id) {
33
+ const state = argsOrState;
34
+ resourceInputs["archiveBrowsingEnabled"] = state ? state.archiveBrowsingEnabled : undefined;
35
+ resourceInputs["blackedOut"] = state ? state.blackedOut : undefined;
36
+ resourceInputs["description"] = state ? state.description : undefined;
37
+ resourceInputs["downloadDirect"] = state ? state.downloadDirect : undefined;
38
+ resourceInputs["excludesPattern"] = state ? state.excludesPattern : undefined;
39
+ resourceInputs["includesPattern"] = state ? state.includesPattern : undefined;
40
+ resourceInputs["key"] = state ? state.key : undefined;
41
+ resourceInputs["notes"] = state ? state.notes : undefined;
42
+ resourceInputs["packageType"] = state ? state.packageType : undefined;
43
+ resourceInputs["priorityResolution"] = state ? state.priorityResolution : undefined;
44
+ resourceInputs["projectEnvironments"] = state ? state.projectEnvironments : undefined;
45
+ resourceInputs["projectKey"] = state ? state.projectKey : undefined;
46
+ resourceInputs["propertySets"] = state ? state.propertySets : undefined;
47
+ resourceInputs["repoLayoutRef"] = state ? state.repoLayoutRef : undefined;
48
+ resourceInputs["xrayIndex"] = state ? state.xrayIndex : undefined;
49
+ }
50
+ else {
51
+ const args = argsOrState;
52
+ if ((!args || args.key === undefined) && !opts.urn) {
53
+ throw new Error("Missing required property 'key'");
54
+ }
55
+ resourceInputs["archiveBrowsingEnabled"] = args ? args.archiveBrowsingEnabled : undefined;
56
+ resourceInputs["blackedOut"] = args ? args.blackedOut : undefined;
57
+ resourceInputs["description"] = args ? args.description : undefined;
58
+ resourceInputs["downloadDirect"] = args ? args.downloadDirect : undefined;
59
+ resourceInputs["excludesPattern"] = args ? args.excludesPattern : undefined;
60
+ resourceInputs["includesPattern"] = args ? args.includesPattern : undefined;
61
+ resourceInputs["key"] = args ? args.key : undefined;
62
+ resourceInputs["notes"] = args ? args.notes : undefined;
63
+ resourceInputs["priorityResolution"] = args ? args.priorityResolution : undefined;
64
+ resourceInputs["projectEnvironments"] = args ? args.projectEnvironments : undefined;
65
+ resourceInputs["projectKey"] = args ? args.projectKey : undefined;
66
+ resourceInputs["propertySets"] = args ? args.propertySets : undefined;
67
+ resourceInputs["repoLayoutRef"] = args ? args.repoLayoutRef : undefined;
68
+ resourceInputs["xrayIndex"] = args ? args.xrayIndex : undefined;
69
+ resourceInputs["packageType"] = undefined /*out*/;
70
+ }
71
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
72
+ super(LocalTerraformBackendRepository.__pulumiType, name, resourceInputs, opts);
73
+ }
74
+ /**
75
+ * Get an existing LocalTerraformBackendRepository 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 LocalTerraformBackendRepository(name, state, Object.assign(Object.assign({}, opts), { id: id }));
85
+ }
86
+ /**
87
+ * Returns true if the given object is an instance of LocalTerraformBackendRepository. 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'] === LocalTerraformBackendRepository.__pulumiType;
95
+ }
96
+ }
97
+ exports.LocalTerraformBackendRepository = LocalTerraformBackendRepository;
98
+ /** @internal */
99
+ LocalTerraformBackendRepository.__pulumiType = 'artifactory:index/localTerraformBackendRepository:LocalTerraformBackendRepository';
100
+ //# sourceMappingURL=localTerraformBackendRepository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localTerraformBackendRepository.js","sourceRoot":"","sources":["../localTerraformBackendRepository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFA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S,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,+BAA+B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpF,CAAC;IAzID;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4C,EAAE,IAAmC;QAC1I,OAAO,IAAI,+BAA+B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtF,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,+BAA+B,CAAC,YAAY,CAAC;IAChF,CAAC;;AA1BL,0EA2IC;AA7HG,gBAAgB;AACO,4CAAY,GAAG,mFAAmF,CAAC"}
@@ -0,0 +1,229 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## Example Usage
4
+ *
5
+ * ```typescript
6
+ * import * as pulumi from "@pulumi/pulumi";
7
+ * import * as artifactory from "@pulumi/artifactory";
8
+ *
9
+ * const terraform_local_test_terraform_module_repo = new artifactory.LocalTerraformModuleRepository("terraform-local-test-terraform-module-repo", {
10
+ * key: "terraform-local-test-terraform-module-repo",
11
+ * });
12
+ * ```
13
+ *
14
+ * ## Import
15
+ *
16
+ * Local repositories can be imported using their name, e.g.
17
+ *
18
+ * ```sh
19
+ * $ pulumi import artifactory:index/localTerraformModuleRepository:LocalTerraformModuleRepository terraform-local-test-terraform-module-repo terraform-local-test-terraform-module-repo
20
+ * ```
21
+ */
22
+ export declare class LocalTerraformModuleRepository extends pulumi.CustomResource {
23
+ /**
24
+ * Get an existing LocalTerraformModuleRepository resource's state with the given name, ID, and optional extra
25
+ * properties used to qualify the lookup.
26
+ *
27
+ * @param name The _unique_ name of the resulting resource.
28
+ * @param id The _unique_ provider ID of the resource to lookup.
29
+ * @param state Any extra arguments used during the lookup.
30
+ * @param opts Optional settings to control the behavior of the CustomResource.
31
+ */
32
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LocalTerraformModuleRepositoryState, opts?: pulumi.CustomResourceOptions): LocalTerraformModuleRepository;
33
+ /**
34
+ * Returns true if the given object is an instance of LocalTerraformModuleRepository. This is designed to work even
35
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
36
+ */
37
+ static isInstance(obj: any): obj is LocalTerraformModuleRepository;
38
+ /**
39
+ * When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and
40
+ * therefore requires strict content moderation to prevent malicious users from uploading content that may compromise
41
+ * security (e.g., cross-site scripting attacks).
42
+ */
43
+ readonly archiveBrowsingEnabled: pulumi.Output<boolean | undefined>;
44
+ /**
45
+ * When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
46
+ */
47
+ readonly blackedOut: pulumi.Output<boolean | undefined>;
48
+ readonly description: pulumi.Output<string | undefined>;
49
+ /**
50
+ * When set, download requests to this repository will redirect the client to download the artifact directly from the cloud
51
+ * storage provider. Available in Enterprise+ and Edge licenses only.
52
+ */
53
+ readonly downloadDirect: pulumi.Output<boolean | undefined>;
54
+ /**
55
+ * List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**&#47;z/*. By default no
56
+ * artifacts are excluded.
57
+ */
58
+ readonly excludesPattern: pulumi.Output<string>;
59
+ /**
60
+ * List of artifact patterns to include when evaluating artifact requests in the form of x/y/**&#47;z/*. When used, only
61
+ * artifacts matching one of the include patterns are served. By default, all artifacts are included (**&#47;*).
62
+ */
63
+ readonly includesPattern: pulumi.Output<string>;
64
+ /**
65
+ * the identity key of the repo.
66
+ */
67
+ readonly key: pulumi.Output<string>;
68
+ readonly notes: pulumi.Output<string | undefined>;
69
+ readonly packageType: pulumi.Output<string>;
70
+ /**
71
+ * Setting repositories with priority will cause metadata to be merged only from repositories set with this field
72
+ */
73
+ readonly priorityResolution: pulumi.Output<boolean | undefined>;
74
+ /**
75
+ * Project environment for assigning this repository to. Allow values: "DEV" or "PROD"
76
+ */
77
+ readonly projectEnvironments: pulumi.Output<string[] | undefined>;
78
+ /**
79
+ * Project key for assigning this repository to. When assigning repository to a project, repository key must be prefixed
80
+ * with project key, separated by a dash.
81
+ */
82
+ readonly projectKey: pulumi.Output<string | undefined>;
83
+ /**
84
+ * List of property set name
85
+ */
86
+ readonly propertySets: pulumi.Output<string[] | undefined>;
87
+ /**
88
+ * Repository layout key for the local repository
89
+ */
90
+ readonly repoLayoutRef: pulumi.Output<string | undefined>;
91
+ /**
92
+ * Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via
93
+ * Xray settings.
94
+ */
95
+ readonly xrayIndex: pulumi.Output<boolean | undefined>;
96
+ /**
97
+ * Create a LocalTerraformModuleRepository resource with the given unique name, arguments, and options.
98
+ *
99
+ * @param name The _unique_ name of the resource.
100
+ * @param args The arguments to use to populate this resource's properties.
101
+ * @param opts A bag of options that control this resource's behavior.
102
+ */
103
+ constructor(name: string, args: LocalTerraformModuleRepositoryArgs, opts?: pulumi.CustomResourceOptions);
104
+ }
105
+ /**
106
+ * Input properties used for looking up and filtering LocalTerraformModuleRepository resources.
107
+ */
108
+ export interface LocalTerraformModuleRepositoryState {
109
+ /**
110
+ * When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and
111
+ * therefore requires strict content moderation to prevent malicious users from uploading content that may compromise
112
+ * security (e.g., cross-site scripting attacks).
113
+ */
114
+ archiveBrowsingEnabled?: pulumi.Input<boolean>;
115
+ /**
116
+ * When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
117
+ */
118
+ blackedOut?: pulumi.Input<boolean>;
119
+ description?: pulumi.Input<string>;
120
+ /**
121
+ * When set, download requests to this repository will redirect the client to download the artifact directly from the cloud
122
+ * storage provider. Available in Enterprise+ and Edge licenses only.
123
+ */
124
+ downloadDirect?: pulumi.Input<boolean>;
125
+ /**
126
+ * List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**&#47;z/*. By default no
127
+ * artifacts are excluded.
128
+ */
129
+ excludesPattern?: pulumi.Input<string>;
130
+ /**
131
+ * List of artifact patterns to include when evaluating artifact requests in the form of x/y/**&#47;z/*. When used, only
132
+ * artifacts matching one of the include patterns are served. By default, all artifacts are included (**&#47;*).
133
+ */
134
+ includesPattern?: pulumi.Input<string>;
135
+ /**
136
+ * the identity key of the repo.
137
+ */
138
+ key?: pulumi.Input<string>;
139
+ notes?: pulumi.Input<string>;
140
+ packageType?: pulumi.Input<string>;
141
+ /**
142
+ * Setting repositories with priority will cause metadata to be merged only from repositories set with this field
143
+ */
144
+ priorityResolution?: pulumi.Input<boolean>;
145
+ /**
146
+ * Project environment for assigning this repository to. Allow values: "DEV" or "PROD"
147
+ */
148
+ projectEnvironments?: pulumi.Input<pulumi.Input<string>[]>;
149
+ /**
150
+ * Project key for assigning this repository to. When assigning repository to a project, repository key must be prefixed
151
+ * with project key, separated by a dash.
152
+ */
153
+ projectKey?: pulumi.Input<string>;
154
+ /**
155
+ * List of property set name
156
+ */
157
+ propertySets?: pulumi.Input<pulumi.Input<string>[]>;
158
+ /**
159
+ * Repository layout key for the local repository
160
+ */
161
+ repoLayoutRef?: pulumi.Input<string>;
162
+ /**
163
+ * Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via
164
+ * Xray settings.
165
+ */
166
+ xrayIndex?: pulumi.Input<boolean>;
167
+ }
168
+ /**
169
+ * The set of arguments for constructing a LocalTerraformModuleRepository resource.
170
+ */
171
+ export interface LocalTerraformModuleRepositoryArgs {
172
+ /**
173
+ * When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and
174
+ * therefore requires strict content moderation to prevent malicious users from uploading content that may compromise
175
+ * security (e.g., cross-site scripting attacks).
176
+ */
177
+ archiveBrowsingEnabled?: pulumi.Input<boolean>;
178
+ /**
179
+ * When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
180
+ */
181
+ blackedOut?: pulumi.Input<boolean>;
182
+ description?: pulumi.Input<string>;
183
+ /**
184
+ * When set, download requests to this repository will redirect the client to download the artifact directly from the cloud
185
+ * storage provider. Available in Enterprise+ and Edge licenses only.
186
+ */
187
+ downloadDirect?: pulumi.Input<boolean>;
188
+ /**
189
+ * List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**&#47;z/*. By default no
190
+ * artifacts are excluded.
191
+ */
192
+ excludesPattern?: pulumi.Input<string>;
193
+ /**
194
+ * List of artifact patterns to include when evaluating artifact requests in the form of x/y/**&#47;z/*. When used, only
195
+ * artifacts matching one of the include patterns are served. By default, all artifacts are included (**&#47;*).
196
+ */
197
+ includesPattern?: pulumi.Input<string>;
198
+ /**
199
+ * the identity key of the repo.
200
+ */
201
+ key: pulumi.Input<string>;
202
+ notes?: pulumi.Input<string>;
203
+ /**
204
+ * Setting repositories with priority will cause metadata to be merged only from repositories set with this field
205
+ */
206
+ priorityResolution?: pulumi.Input<boolean>;
207
+ /**
208
+ * Project environment for assigning this repository to. Allow values: "DEV" or "PROD"
209
+ */
210
+ projectEnvironments?: pulumi.Input<pulumi.Input<string>[]>;
211
+ /**
212
+ * Project key for assigning this repository to. When assigning repository to a project, repository key must be prefixed
213
+ * with project key, separated by a dash.
214
+ */
215
+ projectKey?: pulumi.Input<string>;
216
+ /**
217
+ * List of property set name
218
+ */
219
+ propertySets?: pulumi.Input<pulumi.Input<string>[]>;
220
+ /**
221
+ * Repository layout key for the local repository
222
+ */
223
+ repoLayoutRef?: pulumi.Input<string>;
224
+ /**
225
+ * Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via
226
+ * Xray settings.
227
+ */
228
+ xrayIndex?: pulumi.Input<boolean>;
229
+ }
@@ -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.LocalTerraformModuleRepository = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as artifactory from "@pulumi/artifactory";
14
+ *
15
+ * const terraform_local_test_terraform_module_repo = new artifactory.LocalTerraformModuleRepository("terraform-local-test-terraform-module-repo", {
16
+ * key: "terraform-local-test-terraform-module-repo",
17
+ * });
18
+ * ```
19
+ *
20
+ * ## Import
21
+ *
22
+ * Local repositories can be imported using their name, e.g.
23
+ *
24
+ * ```sh
25
+ * $ pulumi import artifactory:index/localTerraformModuleRepository:LocalTerraformModuleRepository terraform-local-test-terraform-module-repo terraform-local-test-terraform-module-repo
26
+ * ```
27
+ */
28
+ class LocalTerraformModuleRepository extends pulumi.CustomResource {
29
+ constructor(name, argsOrState, opts) {
30
+ let resourceInputs = {};
31
+ opts = opts || {};
32
+ if (opts.id) {
33
+ const state = argsOrState;
34
+ resourceInputs["archiveBrowsingEnabled"] = state ? state.archiveBrowsingEnabled : undefined;
35
+ resourceInputs["blackedOut"] = state ? state.blackedOut : undefined;
36
+ resourceInputs["description"] = state ? state.description : undefined;
37
+ resourceInputs["downloadDirect"] = state ? state.downloadDirect : undefined;
38
+ resourceInputs["excludesPattern"] = state ? state.excludesPattern : undefined;
39
+ resourceInputs["includesPattern"] = state ? state.includesPattern : undefined;
40
+ resourceInputs["key"] = state ? state.key : undefined;
41
+ resourceInputs["notes"] = state ? state.notes : undefined;
42
+ resourceInputs["packageType"] = state ? state.packageType : undefined;
43
+ resourceInputs["priorityResolution"] = state ? state.priorityResolution : undefined;
44
+ resourceInputs["projectEnvironments"] = state ? state.projectEnvironments : undefined;
45
+ resourceInputs["projectKey"] = state ? state.projectKey : undefined;
46
+ resourceInputs["propertySets"] = state ? state.propertySets : undefined;
47
+ resourceInputs["repoLayoutRef"] = state ? state.repoLayoutRef : undefined;
48
+ resourceInputs["xrayIndex"] = state ? state.xrayIndex : undefined;
49
+ }
50
+ else {
51
+ const args = argsOrState;
52
+ if ((!args || args.key === undefined) && !opts.urn) {
53
+ throw new Error("Missing required property 'key'");
54
+ }
55
+ resourceInputs["archiveBrowsingEnabled"] = args ? args.archiveBrowsingEnabled : undefined;
56
+ resourceInputs["blackedOut"] = args ? args.blackedOut : undefined;
57
+ resourceInputs["description"] = args ? args.description : undefined;
58
+ resourceInputs["downloadDirect"] = args ? args.downloadDirect : undefined;
59
+ resourceInputs["excludesPattern"] = args ? args.excludesPattern : undefined;
60
+ resourceInputs["includesPattern"] = args ? args.includesPattern : undefined;
61
+ resourceInputs["key"] = args ? args.key : undefined;
62
+ resourceInputs["notes"] = args ? args.notes : undefined;
63
+ resourceInputs["priorityResolution"] = args ? args.priorityResolution : undefined;
64
+ resourceInputs["projectEnvironments"] = args ? args.projectEnvironments : undefined;
65
+ resourceInputs["projectKey"] = args ? args.projectKey : undefined;
66
+ resourceInputs["propertySets"] = args ? args.propertySets : undefined;
67
+ resourceInputs["repoLayoutRef"] = args ? args.repoLayoutRef : undefined;
68
+ resourceInputs["xrayIndex"] = args ? args.xrayIndex : undefined;
69
+ resourceInputs["packageType"] = undefined /*out*/;
70
+ }
71
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
72
+ super(LocalTerraformModuleRepository.__pulumiType, name, resourceInputs, opts);
73
+ }
74
+ /**
75
+ * Get an existing LocalTerraformModuleRepository 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 LocalTerraformModuleRepository(name, state, Object.assign(Object.assign({}, opts), { id: id }));
85
+ }
86
+ /**
87
+ * Returns true if the given object is an instance of LocalTerraformModuleRepository. 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'] === LocalTerraformModuleRepository.__pulumiType;
95
+ }
96
+ }
97
+ exports.LocalTerraformModuleRepository = LocalTerraformModuleRepository;
98
+ /** @internal */
99
+ LocalTerraformModuleRepository.__pulumiType = 'artifactory:index/localTerraformModuleRepository:LocalTerraformModuleRepository';
100
+ //# sourceMappingURL=localTerraformModuleRepository.js.map