@pulumi/artifactory 8.11.0-alpha.1766173037 → 8.11.0-alpha.1766207602
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/artifactoryReleaseBundleCustomWebhook.d.ts +0 -1
- package/artifactoryReleaseBundleCustomWebhook.js +0 -1
- package/artifactoryReleaseBundleCustomWebhook.js.map +1 -1
- package/artifactoryReleaseBundleWebhook.d.ts +0 -1
- package/artifactoryReleaseBundleWebhook.js +0 -1
- package/artifactoryReleaseBundleWebhook.js.map +1 -1
- package/buildCustomWebhook.d.ts +1 -1
- package/buildCustomWebhook.js +1 -1
- package/buildWebhook.d.ts +1 -2
- package/buildWebhook.js +1 -2
- package/buildWebhook.js.map +1 -1
- package/getLocalHexRepository.d.ts +78 -0
- package/getLocalHexRepository.js +50 -0
- package/getLocalHexRepository.js.map +1 -0
- package/getRemoteHexRepository.d.ts +105 -0
- package/getRemoteHexRepository.js +50 -0
- package/getRemoteHexRepository.js.map +1 -0
- package/getVirtualHexRepository.d.ts +71 -0
- package/getVirtualHexRepository.js +50 -0
- package/getVirtualHexRepository.js.map +1 -0
- package/index.d.ts +18 -0
- package/index.js +32 -7
- package/index.js.map +1 -1
- package/localHexRepository.d.ts +261 -0
- package/localHexRepository.js +124 -0
- package/localHexRepository.js.map +1 -0
- package/package.json +2 -2
- package/releaseBundleV2CleanupPolicy.d.ts +0 -41
- package/releaseBundleV2CleanupPolicy.js +0 -41
- package/releaseBundleV2CleanupPolicy.js.map +1 -1
- package/releaseBundleV2CustomWebhook.d.ts +0 -2
- package/releaseBundleV2CustomWebhook.js +0 -2
- package/releaseBundleV2CustomWebhook.js.map +1 -1
- package/releaseBundleV2Webhook.d.ts +0 -2
- package/releaseBundleV2Webhook.js +0 -2
- package/releaseBundleV2Webhook.js.map +1 -1
- package/remoteHexRepository.d.ts +590 -0
- package/remoteHexRepository.js +196 -0
- package/remoteHexRepository.js.map +1 -0
- package/types/input.d.ts +55 -29
- package/types/output.d.ts +55 -29
- package/virtualHexRepository.d.ts +232 -0
- package/virtualHexRepository.js +138 -0
- package/virtualHexRepository.js.map +1 -0
package/types/output.d.ts
CHANGED
|
@@ -345,17 +345,17 @@ export interface ArtifactoryReleaseBundleCustomWebhookCriteria {
|
|
|
345
345
|
*/
|
|
346
346
|
anyReleaseBundle: boolean;
|
|
347
347
|
/**
|
|
348
|
-
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: `org/apache
|
|
348
|
+
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: `org/apache/**`. **Cannot be set if `anyReleaseBundle` is set to `true`.**
|
|
349
349
|
*/
|
|
350
350
|
excludePatterns?: string[];
|
|
351
351
|
/**
|
|
352
|
-
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: `org/apache
|
|
352
|
+
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: `org/apache/**`. **Cannot be set if `anyReleaseBundle` is set to `true`.** Either this or `registeredReleaseBundleNames` must be set when `anyReleaseBundle` is `false`.
|
|
353
353
|
*/
|
|
354
354
|
includePatterns?: string[];
|
|
355
355
|
/**
|
|
356
356
|
* Trigger on this list of release bundle names
|
|
357
357
|
*/
|
|
358
|
-
registeredReleaseBundleNames
|
|
358
|
+
registeredReleaseBundleNames?: string[];
|
|
359
359
|
}
|
|
360
360
|
export interface ArtifactoryReleaseBundleCustomWebhookHandler {
|
|
361
361
|
/**
|
|
@@ -393,17 +393,17 @@ export interface ArtifactoryReleaseBundleWebhookCriteria {
|
|
|
393
393
|
*/
|
|
394
394
|
anyReleaseBundle: boolean;
|
|
395
395
|
/**
|
|
396
|
-
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: `org/apache
|
|
396
|
+
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: `org/apache/**`. **Cannot be set if `anyReleaseBundle` is set to `true`.**
|
|
397
397
|
*/
|
|
398
398
|
excludePatterns?: string[];
|
|
399
399
|
/**
|
|
400
|
-
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: `org/apache
|
|
400
|
+
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: `org/apache/**`. **Cannot be set if `anyReleaseBundle` is set to `true`.** Either this or `registeredReleaseBundleNames` must be set when `anyReleaseBundle` is `false`.
|
|
401
401
|
*/
|
|
402
402
|
includePatterns?: string[];
|
|
403
403
|
/**
|
|
404
|
-
* Trigger on this list of release bundle names
|
|
404
|
+
* Trigger on this list of release bundle names. Either this or `includePatterns` must be set when `anyReleaseBundle` is `false`.
|
|
405
405
|
*/
|
|
406
|
-
registeredReleaseBundleNames
|
|
406
|
+
registeredReleaseBundleNames?: string[];
|
|
407
407
|
}
|
|
408
408
|
export interface ArtifactoryReleaseBundleWebhookHandler {
|
|
409
409
|
/**
|
|
@@ -435,17 +435,17 @@ export interface BuildCustomWebhookCriteria {
|
|
|
435
435
|
*/
|
|
436
436
|
anyBuild: boolean;
|
|
437
437
|
/**
|
|
438
|
-
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: `org/apache/**`.
|
|
438
|
+
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: `org/apache/**`. **Cannot be set if `anyBuild` is set to `true`.**
|
|
439
439
|
*/
|
|
440
440
|
excludePatterns?: string[];
|
|
441
441
|
/**
|
|
442
|
-
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: `org/apache/**`.
|
|
442
|
+
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: `org/apache/**`. **Cannot be set if `anyBuild` is set to `true`.**
|
|
443
443
|
*/
|
|
444
444
|
includePatterns?: string[];
|
|
445
445
|
/**
|
|
446
446
|
* Trigger on this list of build names.
|
|
447
447
|
*/
|
|
448
|
-
selectedBuilds
|
|
448
|
+
selectedBuilds?: string[];
|
|
449
449
|
}
|
|
450
450
|
export interface BuildCustomWebhookHandler {
|
|
451
451
|
/**
|
|
@@ -483,17 +483,17 @@ export interface BuildWebhookCriteria {
|
|
|
483
483
|
*/
|
|
484
484
|
anyBuild: boolean;
|
|
485
485
|
/**
|
|
486
|
-
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: `org/apache/**`.
|
|
486
|
+
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: `org/apache/**`. **Cannot be set if `anyBuild` is set to `true`.**
|
|
487
487
|
*/
|
|
488
488
|
excludePatterns?: string[];
|
|
489
489
|
/**
|
|
490
|
-
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: `org/apache/**`.
|
|
490
|
+
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: `org/apache/**`. **Cannot be set if `anyBuild` is set to `true`.**
|
|
491
491
|
*/
|
|
492
492
|
includePatterns?: string[];
|
|
493
493
|
/**
|
|
494
494
|
* Trigger on this list of build names.
|
|
495
495
|
*/
|
|
496
|
-
selectedBuilds
|
|
496
|
+
selectedBuilds?: string[];
|
|
497
497
|
}
|
|
498
498
|
export interface BuildWebhookHandler {
|
|
499
499
|
/**
|
|
@@ -535,7 +535,7 @@ export interface DestinationCustomWebhookCriteria {
|
|
|
535
535
|
/**
|
|
536
536
|
* Trigger on this list of release bundle names
|
|
537
537
|
*/
|
|
538
|
-
registeredReleaseBundleNames
|
|
538
|
+
registeredReleaseBundleNames?: string[];
|
|
539
539
|
}
|
|
540
540
|
export interface DestinationCustomWebhookHandler {
|
|
541
541
|
/**
|
|
@@ -583,7 +583,7 @@ export interface DestinationWebhookCriteria {
|
|
|
583
583
|
/**
|
|
584
584
|
* Trigger on this list of release bundle names
|
|
585
585
|
*/
|
|
586
|
-
registeredReleaseBundleNames
|
|
586
|
+
registeredReleaseBundleNames?: string[];
|
|
587
587
|
}
|
|
588
588
|
export interface DestinationWebhookHandler {
|
|
589
589
|
/**
|
|
@@ -625,7 +625,7 @@ export interface DistributionCustomWebhookCriteria {
|
|
|
625
625
|
/**
|
|
626
626
|
* Trigger on this list of release bundle names.
|
|
627
627
|
*/
|
|
628
|
-
registeredReleaseBundleNames
|
|
628
|
+
registeredReleaseBundleNames?: string[];
|
|
629
629
|
}
|
|
630
630
|
export interface DistributionCustomWebhookHandler {
|
|
631
631
|
/**
|
|
@@ -673,7 +673,7 @@ export interface DistributionWebhookCriteria {
|
|
|
673
673
|
/**
|
|
674
674
|
* Trigger on this list of release bundle names.
|
|
675
675
|
*/
|
|
676
|
-
registeredReleaseBundleNames
|
|
676
|
+
registeredReleaseBundleNames?: string[];
|
|
677
677
|
}
|
|
678
678
|
export interface DistributionWebhookHandler {
|
|
679
679
|
/**
|
|
@@ -3058,17 +3058,17 @@ export interface ReleaseBundleCustomWebhookCriteria {
|
|
|
3058
3058
|
*/
|
|
3059
3059
|
anyReleaseBundle: boolean;
|
|
3060
3060
|
/**
|
|
3061
|
-
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: "org/apache/**".
|
|
3061
|
+
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: "org/apache/**". **Cannot be set if `anyReleaseBundle` is set to `true`.**
|
|
3062
3062
|
*/
|
|
3063
3063
|
excludePatterns?: string[];
|
|
3064
3064
|
/**
|
|
3065
|
-
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: "org/apache/**".
|
|
3065
|
+
* Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, *\*, ?). For example: "org/apache/**". **Cannot be set if `anyReleaseBundle` is set to `true`.** Either this or `registeredReleaseBundleNames` must be set when `anyReleaseBundle` is `false`.
|
|
3066
3066
|
*/
|
|
3067
3067
|
includePatterns?: string[];
|
|
3068
3068
|
/**
|
|
3069
|
-
* Trigger on this list of release bundle names.
|
|
3069
|
+
* Trigger on this list of release bundle names. Either this or `includePatterns` must be set when `anyReleaseBundle` is `false`.
|
|
3070
3070
|
*/
|
|
3071
|
-
registeredReleaseBundleNames
|
|
3071
|
+
registeredReleaseBundleNames?: string[];
|
|
3072
3072
|
}
|
|
3073
3073
|
export interface ReleaseBundleCustomWebhookHandler {
|
|
3074
3074
|
/**
|
|
@@ -3102,7 +3102,7 @@ export interface ReleaseBundleCustomWebhookHandler {
|
|
|
3102
3102
|
}
|
|
3103
3103
|
export interface ReleaseBundleV2CleanupPolicySearchCriteria {
|
|
3104
3104
|
/**
|
|
3105
|
-
*
|
|
3105
|
+
* Specifies the time frame for filtering based on item creation date (for example, 24 months). Defaults to `24`.
|
|
3106
3106
|
*/
|
|
3107
3107
|
createdBeforeInMonths: number;
|
|
3108
3108
|
/**
|
|
@@ -3140,17 +3140,21 @@ export interface ReleaseBundleV2CustomWebhookCriteria {
|
|
|
3140
3140
|
*/
|
|
3141
3141
|
anyReleaseBundle: boolean;
|
|
3142
3142
|
/**
|
|
3143
|
-
* Simple
|
|
3143
|
+
* Simple wildcard patterns for Release Bundle names.
|
|
3144
|
+
* Ant-style path expressions are supported (*, **, ?).
|
|
3145
|
+
* For example: `product_*`
|
|
3144
3146
|
*/
|
|
3145
3147
|
excludePatterns?: string[];
|
|
3146
3148
|
/**
|
|
3147
|
-
* Simple
|
|
3149
|
+
* Simple wildcard patterns for Release Bundle names.
|
|
3150
|
+
* Ant-style path expressions are supported (*, **, ?).
|
|
3151
|
+
* For example: `product_*`
|
|
3148
3152
|
*/
|
|
3149
3153
|
includePatterns?: string[];
|
|
3150
3154
|
/**
|
|
3151
3155
|
* Trigger on this list of release bundle names.
|
|
3152
3156
|
*/
|
|
3153
|
-
selectedReleaseBundles
|
|
3157
|
+
selectedReleaseBundles?: string[];
|
|
3154
3158
|
}
|
|
3155
3159
|
export interface ReleaseBundleV2CustomWebhookHandler {
|
|
3156
3160
|
/**
|
|
@@ -3326,17 +3330,21 @@ export interface ReleaseBundleV2WebhookCriteria {
|
|
|
3326
3330
|
*/
|
|
3327
3331
|
anyReleaseBundle: boolean;
|
|
3328
3332
|
/**
|
|
3329
|
-
* Simple
|
|
3333
|
+
* Simple wildcard patterns for Release Bundle names.
|
|
3334
|
+
* Ant-style path expressions are supported (*, **, ?).
|
|
3335
|
+
* For example: `product_*`
|
|
3330
3336
|
*/
|
|
3331
3337
|
excludePatterns?: string[];
|
|
3332
3338
|
/**
|
|
3333
|
-
* Simple
|
|
3339
|
+
* Simple wildcard patterns for Release Bundle names.
|
|
3340
|
+
* Ant-style path expressions are supported (*, **, ?).
|
|
3341
|
+
* For example: `product_*`
|
|
3334
3342
|
*/
|
|
3335
3343
|
includePatterns?: string[];
|
|
3336
3344
|
/**
|
|
3337
3345
|
* Trigger on this list of release bundle names.
|
|
3338
3346
|
*/
|
|
3339
|
-
selectedReleaseBundles
|
|
3347
|
+
selectedReleaseBundles?: string[];
|
|
3340
3348
|
}
|
|
3341
3349
|
export interface ReleaseBundleV2WebhookHandler {
|
|
3342
3350
|
/**
|
|
@@ -3378,7 +3386,7 @@ export interface ReleaseBundleWebhookCriteria {
|
|
|
3378
3386
|
/**
|
|
3379
3387
|
* Trigger on this list of release bundle names.
|
|
3380
3388
|
*/
|
|
3381
|
-
registeredReleaseBundleNames
|
|
3389
|
+
registeredReleaseBundleNames?: string[];
|
|
3382
3390
|
}
|
|
3383
3391
|
export interface ReleaseBundleWebhookHandler {
|
|
3384
3392
|
/**
|
|
@@ -3746,6 +3754,24 @@ export interface RemoteHelmociRepositoryContentSynchronisation {
|
|
|
3746
3754
|
*/
|
|
3747
3755
|
statisticsEnabled: boolean;
|
|
3748
3756
|
}
|
|
3757
|
+
export interface RemoteHexRepositoryContentSynchronisation {
|
|
3758
|
+
/**
|
|
3759
|
+
* If set, Remote repository proxies a local or remote repository from another instance of Artifactory. Default value is 'false'.
|
|
3760
|
+
*/
|
|
3761
|
+
enabled: boolean;
|
|
3762
|
+
/**
|
|
3763
|
+
* If set, properties for artifacts that have been cached in this repository will be updated if they are modified in the artifact hosted at the remote Artifactory instance. The trigger to synchronize the properties is download of the artifact from the remote repository cache of the local Artifactory instance. Default value is 'false'.
|
|
3764
|
+
*/
|
|
3765
|
+
propertiesEnabled: boolean;
|
|
3766
|
+
/**
|
|
3767
|
+
* If set, Artifactory displays an indication on cached items if they have been deleted from the corresponding repository in the remote Artifactory instance. Default value is 'false'
|
|
3768
|
+
*/
|
|
3769
|
+
sourceOriginAbsenceDetection: boolean;
|
|
3770
|
+
/**
|
|
3771
|
+
* If set, Artifactory will notify the remote instance whenever an artifact in the Smart Remote Repository is downloaded locally so that it can update its download counter. Note that if this option is not set, there may be a discrepancy between the number of artifacts reported to have been downloaded in the different Artifactory instances of the proxy chain. Default value is 'false'.
|
|
3772
|
+
*/
|
|
3773
|
+
statisticsEnabled: boolean;
|
|
3774
|
+
}
|
|
3749
3775
|
export interface RemoteHuggingfacemlRepositoryContentSynchronisation {
|
|
3750
3776
|
/**
|
|
3751
3777
|
* If set, Remote repository proxies a local or remote repository from another instance of Artifactory. Default value is 'false'.
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Creates a virtual Hex repository that aggregates local and remote Hex repositories.
|
|
4
|
+
*
|
|
5
|
+
* Official documentation can be found [here](https://www.jfrog.com/confluence/display/JFROG/Hex+Registry#HexRegistry-VirtualRepositories).
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
12
|
+
* import * as std from "@pulumi/std";
|
|
13
|
+
*
|
|
14
|
+
* const some_keypairRSA = new artifactory.Keypair("some-keypairRSA", {
|
|
15
|
+
* pairName: `some-keypair${randid.id}`,
|
|
16
|
+
* pairType: "RSA",
|
|
17
|
+
* alias: "foo-alias",
|
|
18
|
+
* privateKey: std.file({
|
|
19
|
+
* input: "samples/rsa.priv",
|
|
20
|
+
* }).then(invoke => invoke.result),
|
|
21
|
+
* publicKey: std.file({
|
|
22
|
+
* input: "samples/rsa.pub",
|
|
23
|
+
* }).then(invoke => invoke.result),
|
|
24
|
+
* });
|
|
25
|
+
* const local_hex = new artifactory.LocalHexRepository("local-hex", {
|
|
26
|
+
* key: "local-hex",
|
|
27
|
+
* hexPrimaryKeypairRef: some_keypairRSA.pairName,
|
|
28
|
+
* });
|
|
29
|
+
* const remote_hex = new artifactory.RemoteHexRepository("remote-hex", {
|
|
30
|
+
* key: "remote-hex",
|
|
31
|
+
* url: "https://repo.hex.pm",
|
|
32
|
+
* hexPrimaryKeypairRef: some_keypairRSA.pairName,
|
|
33
|
+
* publicKey: std.file({
|
|
34
|
+
* input: "samples/rsa.pub",
|
|
35
|
+
* }).then(invoke => invoke.result),
|
|
36
|
+
* });
|
|
37
|
+
* const my_virtual_hex = new artifactory.VirtualHexRepository("my-virtual-hex", {
|
|
38
|
+
* key: "my-virtual-hex",
|
|
39
|
+
* hexPrimaryKeypairRef: some_keypairRSA.pairName,
|
|
40
|
+
* repositories: [
|
|
41
|
+
* local_hex.key,
|
|
42
|
+
* remote_hex.key,
|
|
43
|
+
* ],
|
|
44
|
+
* description: "Virtual Hex repository aggregating local and remote",
|
|
45
|
+
* notes: "Internal repository",
|
|
46
|
+
* }, {
|
|
47
|
+
* dependsOn: [
|
|
48
|
+
* some_keypairRSA,
|
|
49
|
+
* local_hex,
|
|
50
|
+
* remote_hex,
|
|
51
|
+
* ],
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* ## Import
|
|
56
|
+
*
|
|
57
|
+
* Virtual repositories can be imported using their name, e.g.
|
|
58
|
+
*
|
|
59
|
+
* ```sh
|
|
60
|
+
* $ pulumi import artifactory:index/virtualHexRepository:VirtualHexRepository my-virtual-hex my-virtual-hex
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
export declare class VirtualHexRepository extends pulumi.CustomResource {
|
|
64
|
+
/**
|
|
65
|
+
* Get an existing VirtualHexRepository resource's state with the given name, ID, and optional extra
|
|
66
|
+
* properties used to qualify the lookup.
|
|
67
|
+
*
|
|
68
|
+
* @param name The _unique_ name of the resulting resource.
|
|
69
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
70
|
+
* @param state Any extra arguments used during the lookup.
|
|
71
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
72
|
+
*/
|
|
73
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VirtualHexRepositoryState, opts?: pulumi.CustomResourceOptions): VirtualHexRepository;
|
|
74
|
+
/**
|
|
75
|
+
* Returns true if the given object is an instance of VirtualHexRepository. This is designed to work even
|
|
76
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
77
|
+
*/
|
|
78
|
+
static isInstance(obj: any): obj is VirtualHexRepository;
|
|
79
|
+
/**
|
|
80
|
+
* Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
|
|
81
|
+
*/
|
|
82
|
+
readonly artifactoryRequestsCanRetrieveRemoteArtifacts: pulumi.Output<boolean>;
|
|
83
|
+
/**
|
|
84
|
+
* Default repository to deploy artifacts.
|
|
85
|
+
*/
|
|
86
|
+
readonly defaultDeploymentRepo: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Public description.
|
|
89
|
+
*/
|
|
90
|
+
readonly description: pulumi.Output<string>;
|
|
91
|
+
/**
|
|
92
|
+
* List of artifact patterns to exclude when evaluating artifact requests, in the form of `x/y/**/z/*`.By default no artifacts are excluded.
|
|
93
|
+
*/
|
|
94
|
+
readonly excludesPattern: pulumi.Output<string>;
|
|
95
|
+
/**
|
|
96
|
+
* Select the RSA key pair to sign and encrypt content for secure communication between Artifactory and the Mix client.
|
|
97
|
+
*/
|
|
98
|
+
readonly hexPrimaryKeypairRef: pulumi.Output<string>;
|
|
99
|
+
/**
|
|
100
|
+
* List of comma-separated artifact patterns to include when evaluating artifact requests in the form of `x/y/**/z/*`. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (`**/*`).
|
|
101
|
+
*/
|
|
102
|
+
readonly includesPattern: pulumi.Output<string>;
|
|
103
|
+
/**
|
|
104
|
+
* A mandatory identifier for the repository that must be unique. It cannot begin with a number or contain spaces or special characters.
|
|
105
|
+
*/
|
|
106
|
+
readonly key: pulumi.Output<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Internal description.
|
|
109
|
+
*/
|
|
110
|
+
readonly notes: pulumi.Output<string>;
|
|
111
|
+
readonly projectEnvironments: pulumi.Output<string[]>;
|
|
112
|
+
/**
|
|
113
|
+
* Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
|
|
114
|
+
*/
|
|
115
|
+
readonly projectKey: pulumi.Output<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Sets the layout that the repository should use for storing and identifying modules. A recommended layout that corresponds to the package type defined is suggested, and index packages uploaded and calculate metadata accordingly.
|
|
118
|
+
*/
|
|
119
|
+
readonly repoLayoutRef: pulumi.Output<string>;
|
|
120
|
+
/**
|
|
121
|
+
* The effective list of actual repositories included in this virtual repository.
|
|
122
|
+
*/
|
|
123
|
+
readonly repositories: pulumi.Output<string[]>;
|
|
124
|
+
/**
|
|
125
|
+
* Create a VirtualHexRepository resource with the given unique name, arguments, and options.
|
|
126
|
+
*
|
|
127
|
+
* @param name The _unique_ name of the resource.
|
|
128
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
129
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
130
|
+
*/
|
|
131
|
+
constructor(name: string, args: VirtualHexRepositoryArgs, opts?: pulumi.CustomResourceOptions);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Input properties used for looking up and filtering VirtualHexRepository resources.
|
|
135
|
+
*/
|
|
136
|
+
export interface VirtualHexRepositoryState {
|
|
137
|
+
/**
|
|
138
|
+
* Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
|
|
139
|
+
*/
|
|
140
|
+
artifactoryRequestsCanRetrieveRemoteArtifacts?: pulumi.Input<boolean>;
|
|
141
|
+
/**
|
|
142
|
+
* Default repository to deploy artifacts.
|
|
143
|
+
*/
|
|
144
|
+
defaultDeploymentRepo?: pulumi.Input<string>;
|
|
145
|
+
/**
|
|
146
|
+
* Public description.
|
|
147
|
+
*/
|
|
148
|
+
description?: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* List of artifact patterns to exclude when evaluating artifact requests, in the form of `x/y/**/z/*`.By default no artifacts are excluded.
|
|
151
|
+
*/
|
|
152
|
+
excludesPattern?: pulumi.Input<string>;
|
|
153
|
+
/**
|
|
154
|
+
* Select the RSA key pair to sign and encrypt content for secure communication between Artifactory and the Mix client.
|
|
155
|
+
*/
|
|
156
|
+
hexPrimaryKeypairRef?: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* List of comma-separated artifact patterns to include when evaluating artifact requests in the form of `x/y/**/z/*`. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (`**/*`).
|
|
159
|
+
*/
|
|
160
|
+
includesPattern?: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* A mandatory identifier for the repository that must be unique. It cannot begin with a number or contain spaces or special characters.
|
|
163
|
+
*/
|
|
164
|
+
key?: pulumi.Input<string>;
|
|
165
|
+
/**
|
|
166
|
+
* Internal description.
|
|
167
|
+
*/
|
|
168
|
+
notes?: pulumi.Input<string>;
|
|
169
|
+
projectEnvironments?: pulumi.Input<pulumi.Input<string>[]>;
|
|
170
|
+
/**
|
|
171
|
+
* Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
|
|
172
|
+
*/
|
|
173
|
+
projectKey?: pulumi.Input<string>;
|
|
174
|
+
/**
|
|
175
|
+
* Sets the layout that the repository should use for storing and identifying modules. A recommended layout that corresponds to the package type defined is suggested, and index packages uploaded and calculate metadata accordingly.
|
|
176
|
+
*/
|
|
177
|
+
repoLayoutRef?: pulumi.Input<string>;
|
|
178
|
+
/**
|
|
179
|
+
* The effective list of actual repositories included in this virtual repository.
|
|
180
|
+
*/
|
|
181
|
+
repositories?: pulumi.Input<pulumi.Input<string>[]>;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* The set of arguments for constructing a VirtualHexRepository resource.
|
|
185
|
+
*/
|
|
186
|
+
export interface VirtualHexRepositoryArgs {
|
|
187
|
+
/**
|
|
188
|
+
* Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
|
|
189
|
+
*/
|
|
190
|
+
artifactoryRequestsCanRetrieveRemoteArtifacts?: pulumi.Input<boolean>;
|
|
191
|
+
/**
|
|
192
|
+
* Default repository to deploy artifacts.
|
|
193
|
+
*/
|
|
194
|
+
defaultDeploymentRepo?: pulumi.Input<string>;
|
|
195
|
+
/**
|
|
196
|
+
* Public description.
|
|
197
|
+
*/
|
|
198
|
+
description?: pulumi.Input<string>;
|
|
199
|
+
/**
|
|
200
|
+
* List of artifact patterns to exclude when evaluating artifact requests, in the form of `x/y/**/z/*`.By default no artifacts are excluded.
|
|
201
|
+
*/
|
|
202
|
+
excludesPattern?: pulumi.Input<string>;
|
|
203
|
+
/**
|
|
204
|
+
* Select the RSA key pair to sign and encrypt content for secure communication between Artifactory and the Mix client.
|
|
205
|
+
*/
|
|
206
|
+
hexPrimaryKeypairRef: pulumi.Input<string>;
|
|
207
|
+
/**
|
|
208
|
+
* List of comma-separated artifact patterns to include when evaluating artifact requests in the form of `x/y/**/z/*`. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (`**/*`).
|
|
209
|
+
*/
|
|
210
|
+
includesPattern?: pulumi.Input<string>;
|
|
211
|
+
/**
|
|
212
|
+
* A mandatory identifier for the repository that must be unique. It cannot begin with a number or contain spaces or special characters.
|
|
213
|
+
*/
|
|
214
|
+
key: pulumi.Input<string>;
|
|
215
|
+
/**
|
|
216
|
+
* Internal description.
|
|
217
|
+
*/
|
|
218
|
+
notes?: pulumi.Input<string>;
|
|
219
|
+
projectEnvironments?: pulumi.Input<pulumi.Input<string>[]>;
|
|
220
|
+
/**
|
|
221
|
+
* Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
|
|
222
|
+
*/
|
|
223
|
+
projectKey?: pulumi.Input<string>;
|
|
224
|
+
/**
|
|
225
|
+
* Sets the layout that the repository should use for storing and identifying modules. A recommended layout that corresponds to the package type defined is suggested, and index packages uploaded and calculate metadata accordingly.
|
|
226
|
+
*/
|
|
227
|
+
repoLayoutRef?: pulumi.Input<string>;
|
|
228
|
+
/**
|
|
229
|
+
* The effective list of actual repositories included in this virtual repository.
|
|
230
|
+
*/
|
|
231
|
+
repositories?: pulumi.Input<pulumi.Input<string>[]>;
|
|
232
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.VirtualHexRepository = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Creates a virtual Hex repository that aggregates local and remote Hex repositories.
|
|
10
|
+
*
|
|
11
|
+
* Official documentation can be found [here](https://www.jfrog.com/confluence/display/JFROG/Hex+Registry#HexRegistry-VirtualRepositories).
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
18
|
+
* import * as std from "@pulumi/std";
|
|
19
|
+
*
|
|
20
|
+
* const some_keypairRSA = new artifactory.Keypair("some-keypairRSA", {
|
|
21
|
+
* pairName: `some-keypair${randid.id}`,
|
|
22
|
+
* pairType: "RSA",
|
|
23
|
+
* alias: "foo-alias",
|
|
24
|
+
* privateKey: std.file({
|
|
25
|
+
* input: "samples/rsa.priv",
|
|
26
|
+
* }).then(invoke => invoke.result),
|
|
27
|
+
* publicKey: std.file({
|
|
28
|
+
* input: "samples/rsa.pub",
|
|
29
|
+
* }).then(invoke => invoke.result),
|
|
30
|
+
* });
|
|
31
|
+
* const local_hex = new artifactory.LocalHexRepository("local-hex", {
|
|
32
|
+
* key: "local-hex",
|
|
33
|
+
* hexPrimaryKeypairRef: some_keypairRSA.pairName,
|
|
34
|
+
* });
|
|
35
|
+
* const remote_hex = new artifactory.RemoteHexRepository("remote-hex", {
|
|
36
|
+
* key: "remote-hex",
|
|
37
|
+
* url: "https://repo.hex.pm",
|
|
38
|
+
* hexPrimaryKeypairRef: some_keypairRSA.pairName,
|
|
39
|
+
* publicKey: std.file({
|
|
40
|
+
* input: "samples/rsa.pub",
|
|
41
|
+
* }).then(invoke => invoke.result),
|
|
42
|
+
* });
|
|
43
|
+
* const my_virtual_hex = new artifactory.VirtualHexRepository("my-virtual-hex", {
|
|
44
|
+
* key: "my-virtual-hex",
|
|
45
|
+
* hexPrimaryKeypairRef: some_keypairRSA.pairName,
|
|
46
|
+
* repositories: [
|
|
47
|
+
* local_hex.key,
|
|
48
|
+
* remote_hex.key,
|
|
49
|
+
* ],
|
|
50
|
+
* description: "Virtual Hex repository aggregating local and remote",
|
|
51
|
+
* notes: "Internal repository",
|
|
52
|
+
* }, {
|
|
53
|
+
* dependsOn: [
|
|
54
|
+
* some_keypairRSA,
|
|
55
|
+
* local_hex,
|
|
56
|
+
* remote_hex,
|
|
57
|
+
* ],
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* ## Import
|
|
62
|
+
*
|
|
63
|
+
* Virtual repositories can be imported using their name, e.g.
|
|
64
|
+
*
|
|
65
|
+
* ```sh
|
|
66
|
+
* $ pulumi import artifactory:index/virtualHexRepository:VirtualHexRepository my-virtual-hex my-virtual-hex
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
class VirtualHexRepository extends pulumi.CustomResource {
|
|
70
|
+
/**
|
|
71
|
+
* Get an existing VirtualHexRepository resource's state with the given name, ID, and optional extra
|
|
72
|
+
* properties used to qualify the lookup.
|
|
73
|
+
*
|
|
74
|
+
* @param name The _unique_ name of the resulting resource.
|
|
75
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
76
|
+
* @param state Any extra arguments used during the lookup.
|
|
77
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
78
|
+
*/
|
|
79
|
+
static get(name, id, state, opts) {
|
|
80
|
+
return new VirtualHexRepository(name, state, { ...opts, id: id });
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Returns true if the given object is an instance of VirtualHexRepository. This is designed to work even
|
|
84
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
85
|
+
*/
|
|
86
|
+
static isInstance(obj) {
|
|
87
|
+
if (obj === undefined || obj === null) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
return obj['__pulumiType'] === VirtualHexRepository.__pulumiType;
|
|
91
|
+
}
|
|
92
|
+
constructor(name, argsOrState, opts) {
|
|
93
|
+
let resourceInputs = {};
|
|
94
|
+
opts = opts || {};
|
|
95
|
+
if (opts.id) {
|
|
96
|
+
const state = argsOrState;
|
|
97
|
+
resourceInputs["artifactoryRequestsCanRetrieveRemoteArtifacts"] = state?.artifactoryRequestsCanRetrieveRemoteArtifacts;
|
|
98
|
+
resourceInputs["defaultDeploymentRepo"] = state?.defaultDeploymentRepo;
|
|
99
|
+
resourceInputs["description"] = state?.description;
|
|
100
|
+
resourceInputs["excludesPattern"] = state?.excludesPattern;
|
|
101
|
+
resourceInputs["hexPrimaryKeypairRef"] = state?.hexPrimaryKeypairRef;
|
|
102
|
+
resourceInputs["includesPattern"] = state?.includesPattern;
|
|
103
|
+
resourceInputs["key"] = state?.key;
|
|
104
|
+
resourceInputs["notes"] = state?.notes;
|
|
105
|
+
resourceInputs["projectEnvironments"] = state?.projectEnvironments;
|
|
106
|
+
resourceInputs["projectKey"] = state?.projectKey;
|
|
107
|
+
resourceInputs["repoLayoutRef"] = state?.repoLayoutRef;
|
|
108
|
+
resourceInputs["repositories"] = state?.repositories;
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
const args = argsOrState;
|
|
112
|
+
if (args?.hexPrimaryKeypairRef === undefined && !opts.urn) {
|
|
113
|
+
throw new Error("Missing required property 'hexPrimaryKeypairRef'");
|
|
114
|
+
}
|
|
115
|
+
if (args?.key === undefined && !opts.urn) {
|
|
116
|
+
throw new Error("Missing required property 'key'");
|
|
117
|
+
}
|
|
118
|
+
resourceInputs["artifactoryRequestsCanRetrieveRemoteArtifacts"] = args?.artifactoryRequestsCanRetrieveRemoteArtifacts;
|
|
119
|
+
resourceInputs["defaultDeploymentRepo"] = args?.defaultDeploymentRepo;
|
|
120
|
+
resourceInputs["description"] = args?.description;
|
|
121
|
+
resourceInputs["excludesPattern"] = args?.excludesPattern;
|
|
122
|
+
resourceInputs["hexPrimaryKeypairRef"] = args?.hexPrimaryKeypairRef;
|
|
123
|
+
resourceInputs["includesPattern"] = args?.includesPattern;
|
|
124
|
+
resourceInputs["key"] = args?.key;
|
|
125
|
+
resourceInputs["notes"] = args?.notes;
|
|
126
|
+
resourceInputs["projectEnvironments"] = args?.projectEnvironments;
|
|
127
|
+
resourceInputs["projectKey"] = args?.projectKey;
|
|
128
|
+
resourceInputs["repoLayoutRef"] = args?.repoLayoutRef;
|
|
129
|
+
resourceInputs["repositories"] = args?.repositories;
|
|
130
|
+
}
|
|
131
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
132
|
+
super(VirtualHexRepository.__pulumiType, name, resourceInputs, opts);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
exports.VirtualHexRepository = VirtualHexRepository;
|
|
136
|
+
/** @internal */
|
|
137
|
+
VirtualHexRepository.__pulumiType = 'artifactory:index/virtualHexRepository:VirtualHexRepository';
|
|
138
|
+
//# sourceMappingURL=virtualHexRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"virtualHexRepository.js","sourceRoot":"","sources":["../virtualHexRepository.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC;IAwDD,YAAY,IAAY,EAAE,WAAkE,EAAE,IAAmC;QAC7H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoD,CAAC;YACnE,cAAc,CAAC,+CAA+C,CAAC,GAAG,KAAK,EAAE,6CAA6C,CAAC;YACvH,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,EAAE,qBAAqB,CAAC;YACvE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,EAAE,eAAe,CAAC;YAC3D,cAAc,CAAC,sBAAsB,CAAC,GAAG,KAAK,EAAE,oBAAoB,CAAC;YACrE,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,EAAE,eAAe,CAAC;YAC3D,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,EAAE,GAAG,CAAC;YACnC,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC;YACvC,cAAc,CAAC,qBAAqB,CAAC,GAAG,KAAK,EAAE,mBAAmB,CAAC;YACnE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,EAAE,aAAa,CAAC;YACvD,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,EAAE,YAAY,CAAC;SACxD;aAAM;YACH,MAAM,IAAI,GAAG,WAAmD,CAAC;YACjE,IAAI,IAAI,EAAE,oBAAoB,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;aACvE;YACD,IAAI,IAAI,EAAE,GAAG,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;aACtD;YACD,cAAc,CAAC,+CAA+C,CAAC,GAAG,IAAI,EAAE,6CAA6C,CAAC;YACtH,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,EAAE,qBAAqB,CAAC;YACtE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,EAAE,oBAAoB,CAAC;YACpE,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC;YAClC,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,qBAAqB,CAAC,GAAG,IAAI,EAAE,mBAAmB,CAAC;YAClE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;SACvD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AA1HL,oDA2HC;AA7GG,gBAAgB;AACO,iCAAY,GAAG,6DAA6D,CAAC"}
|