@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.
Files changed (117) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +63 -0
  3. package/accessToken.d.ts +142 -0
  4. package/accessToken.js +75 -0
  5. package/accessToken.js.map +1 -0
  6. package/alpineRepository.d.ts +137 -0
  7. package/alpineRepository.js +107 -0
  8. package/alpineRepository.js.map +1 -0
  9. package/apiKey.d.ts +53 -0
  10. package/apiKey.js +60 -0
  11. package/apiKey.js.map +1 -0
  12. package/certificate.d.ts +135 -0
  13. package/certificate.js +100 -0
  14. package/certificate.js.map +1 -0
  15. package/config/index.d.ts +1 -0
  16. package/config/index.js +17 -0
  17. package/config/index.js.map +1 -0
  18. package/config/vars.d.ts +12 -0
  19. package/config/vars.js +37 -0
  20. package/config/vars.js.map +1 -0
  21. package/debianRepository.d.ts +193 -0
  22. package/debianRepository.js +128 -0
  23. package/debianRepository.js.map +1 -0
  24. package/dockerV1Repository.d.ts +155 -0
  25. package/dockerV1Repository.js +100 -0
  26. package/dockerV1Repository.js.map +1 -0
  27. package/dockerV2Repository.d.ts +163 -0
  28. package/dockerV2Repository.js +102 -0
  29. package/dockerV2Repository.js.map +1 -0
  30. package/generalSecurity.d.ts +66 -0
  31. package/generalSecurity.js +78 -0
  32. package/generalSecurity.js.map +1 -0
  33. package/getFile.d.ts +121 -0
  34. package/getFile.js +46 -0
  35. package/getFile.js.map +1 -0
  36. package/getFileinfo.d.ts +102 -0
  37. package/getFileinfo.js +43 -0
  38. package/getFileinfo.js.map +1 -0
  39. package/goRepository.d.ts +149 -0
  40. package/goRepository.js +115 -0
  41. package/goRepository.js.map +1 -0
  42. package/group.d.ts +141 -0
  43. package/group.js +74 -0
  44. package/group.js.map +1 -0
  45. package/index.d.ts +33 -0
  46. package/index.js +182 -0
  47. package/index.js.map +1 -0
  48. package/keypair.d.ts +139 -0
  49. package/keypair.js +101 -0
  50. package/keypair.js.map +1 -0
  51. package/localRepository.d.ts +134 -0
  52. package/localRepository.js +126 -0
  53. package/localRepository.js.map +1 -0
  54. package/mavenRepository.d.ts +172 -0
  55. package/mavenRepository.js +128 -0
  56. package/mavenRepository.js.map +1 -0
  57. package/oauthSettings.d.ts +124 -0
  58. package/oauthSettings.js +99 -0
  59. package/oauthSettings.js.map +1 -0
  60. package/package.json +27 -0
  61. package/package.json.bak +26 -0
  62. package/package.json.dev +26 -0
  63. package/permissionTarget.d.ts +150 -0
  64. package/permissionTarget.js +131 -0
  65. package/permissionTarget.js.map +1 -0
  66. package/permissionTargets.d.ts +49 -0
  67. package/permissionTargets.js +57 -0
  68. package/permissionTargets.js.map +1 -0
  69. package/provider.d.ts +67 -0
  70. package/provider.js +51 -0
  71. package/provider.js.map +1 -0
  72. package/remoteCargoRepository.d.ts +323 -0
  73. package/remoteCargoRepository.js +156 -0
  74. package/remoteCargoRepository.js.map +1 -0
  75. package/remoteDockerRepository.d.ts +363 -0
  76. package/remoteDockerRepository.js +158 -0
  77. package/remoteDockerRepository.js.map +1 -0
  78. package/remoteHelmRepository.d.ts +306 -0
  79. package/remoteHelmRepository.js +149 -0
  80. package/remoteHelmRepository.js.map +1 -0
  81. package/remoteRepository.d.ts +208 -0
  82. package/remoteRepository.js +160 -0
  83. package/remoteRepository.js.map +1 -0
  84. package/replicationConfig.d.ts +58 -0
  85. package/replicationConfig.js +72 -0
  86. package/replicationConfig.js.map +1 -0
  87. package/samlSettings.d.ts +218 -0
  88. package/samlSettings.js +120 -0
  89. package/samlSettings.js.map +1 -0
  90. package/scripts/install-pulumi-plugin.js +21 -0
  91. package/singleReplicationConfig.d.ts +90 -0
  92. package/singleReplicationConfig.js +88 -0
  93. package/singleReplicationConfig.js.map +1 -0
  94. package/types/index.d.ts +3 -0
  95. package/types/index.js +11 -0
  96. package/types/index.js.map +1 -0
  97. package/types/input.d.ts +369 -0
  98. package/types/input.js +5 -0
  99. package/types/input.js.map +1 -0
  100. package/types/output.d.ts +368 -0
  101. package/types/output.js +5 -0
  102. package/types/output.js.map +1 -0
  103. package/user.d.ts +132 -0
  104. package/user.js +77 -0
  105. package/user.js.map +1 -0
  106. package/utilities.d.ts +4 -0
  107. package/utilities.js +52 -0
  108. package/utilities.js.map +1 -0
  109. package/virtualRepository.d.ts +115 -0
  110. package/virtualRepository.js +123 -0
  111. package/virtualRepository.js.map +1 -0
  112. package/xrayPolicy.d.ts +122 -0
  113. package/xrayPolicy.js +82 -0
  114. package/xrayPolicy.js.map +1 -0
  115. package/xrayWatch.d.ts +113 -0
  116. package/xrayWatch.js +80 -0
  117. package/xrayWatch.js.map +1 -0
@@ -0,0 +1,126 @@
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.LocalRepository = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## # Artifactory Local Repository Resource
10
+ *
11
+ * Provides an Artifactory local repository resource. This can be used to create and manage Artifactory local repositories.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as artifactory from "@pulumi/artifactory";
18
+ *
19
+ * // Create a new Artifactory local repository called my-local
20
+ * const my_local = new artifactory.LocalRepository("my-local", {
21
+ * key: "my-local",
22
+ * packageType: "npm",
23
+ * });
24
+ * ```
25
+ *
26
+ * ## Import
27
+ *
28
+ * Local repositories can be imported using their name, e.g.
29
+ *
30
+ * ```sh
31
+ * $ pulumi import artifactory:index/localRepository:LocalRepository my-local my-local
32
+ * ```
33
+ */
34
+ class LocalRepository extends pulumi.CustomResource {
35
+ constructor(name, argsOrState, opts) {
36
+ let inputs = {};
37
+ opts = opts || {};
38
+ if (opts.id) {
39
+ const state = argsOrState;
40
+ inputs["archiveBrowsingEnabled"] = state ? state.archiveBrowsingEnabled : undefined;
41
+ inputs["blackedOut"] = state ? state.blackedOut : undefined;
42
+ inputs["calculateYumMetadata"] = state ? state.calculateYumMetadata : undefined;
43
+ inputs["checksumPolicyType"] = state ? state.checksumPolicyType : undefined;
44
+ inputs["debianTrivialLayout"] = state ? state.debianTrivialLayout : undefined;
45
+ inputs["description"] = state ? state.description : undefined;
46
+ inputs["dockerApiVersion"] = state ? state.dockerApiVersion : undefined;
47
+ inputs["enableFileListsIndexing"] = state ? state.enableFileListsIndexing : undefined;
48
+ inputs["excludesPattern"] = state ? state.excludesPattern : undefined;
49
+ inputs["forceNugetAuthentication"] = state ? state.forceNugetAuthentication : undefined;
50
+ inputs["handleReleases"] = state ? state.handleReleases : undefined;
51
+ inputs["handleSnapshots"] = state ? state.handleSnapshots : undefined;
52
+ inputs["includesPattern"] = state ? state.includesPattern : undefined;
53
+ inputs["key"] = state ? state.key : undefined;
54
+ inputs["maxUniqueSnapshots"] = state ? state.maxUniqueSnapshots : undefined;
55
+ inputs["maxUniqueTags"] = state ? state.maxUniqueTags : undefined;
56
+ inputs["notes"] = state ? state.notes : undefined;
57
+ inputs["packageType"] = state ? state.packageType : undefined;
58
+ inputs["propertySets"] = state ? state.propertySets : undefined;
59
+ inputs["repoLayoutRef"] = state ? state.repoLayoutRef : undefined;
60
+ inputs["snapshotVersionBehavior"] = state ? state.snapshotVersionBehavior : undefined;
61
+ inputs["suppressPomConsistencyChecks"] = state ? state.suppressPomConsistencyChecks : undefined;
62
+ inputs["xrayIndex"] = state ? state.xrayIndex : undefined;
63
+ inputs["yumRootDepth"] = state ? state.yumRootDepth : undefined;
64
+ }
65
+ else {
66
+ const args = argsOrState;
67
+ if ((!args || args.key === undefined) && !opts.urn) {
68
+ throw new Error("Missing required property 'key'");
69
+ }
70
+ inputs["archiveBrowsingEnabled"] = args ? args.archiveBrowsingEnabled : undefined;
71
+ inputs["blackedOut"] = args ? args.blackedOut : undefined;
72
+ inputs["calculateYumMetadata"] = args ? args.calculateYumMetadata : undefined;
73
+ inputs["checksumPolicyType"] = args ? args.checksumPolicyType : undefined;
74
+ inputs["debianTrivialLayout"] = args ? args.debianTrivialLayout : undefined;
75
+ inputs["description"] = args ? args.description : undefined;
76
+ inputs["dockerApiVersion"] = args ? args.dockerApiVersion : undefined;
77
+ inputs["enableFileListsIndexing"] = args ? args.enableFileListsIndexing : undefined;
78
+ inputs["excludesPattern"] = args ? args.excludesPattern : undefined;
79
+ inputs["forceNugetAuthentication"] = args ? args.forceNugetAuthentication : undefined;
80
+ inputs["handleReleases"] = args ? args.handleReleases : undefined;
81
+ inputs["handleSnapshots"] = args ? args.handleSnapshots : undefined;
82
+ inputs["includesPattern"] = args ? args.includesPattern : undefined;
83
+ inputs["key"] = args ? args.key : undefined;
84
+ inputs["maxUniqueSnapshots"] = args ? args.maxUniqueSnapshots : undefined;
85
+ inputs["maxUniqueTags"] = args ? args.maxUniqueTags : undefined;
86
+ inputs["notes"] = args ? args.notes : undefined;
87
+ inputs["packageType"] = args ? args.packageType : undefined;
88
+ inputs["propertySets"] = args ? args.propertySets : undefined;
89
+ inputs["repoLayoutRef"] = args ? args.repoLayoutRef : undefined;
90
+ inputs["snapshotVersionBehavior"] = args ? args.snapshotVersionBehavior : undefined;
91
+ inputs["suppressPomConsistencyChecks"] = args ? args.suppressPomConsistencyChecks : undefined;
92
+ inputs["xrayIndex"] = args ? args.xrayIndex : undefined;
93
+ inputs["yumRootDepth"] = args ? args.yumRootDepth : undefined;
94
+ }
95
+ if (!opts.version) {
96
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
97
+ }
98
+ super(LocalRepository.__pulumiType, name, inputs, opts);
99
+ }
100
+ /**
101
+ * Get an existing LocalRepository resource's state with the given name, ID, and optional extra
102
+ * properties used to qualify the lookup.
103
+ *
104
+ * @param name The _unique_ name of the resulting resource.
105
+ * @param id The _unique_ provider ID of the resource to lookup.
106
+ * @param state Any extra arguments used during the lookup.
107
+ * @param opts Optional settings to control the behavior of the CustomResource.
108
+ */
109
+ static get(name, id, state, opts) {
110
+ return new LocalRepository(name, state, Object.assign(Object.assign({}, opts), { id: id }));
111
+ }
112
+ /**
113
+ * Returns true if the given object is an instance of LocalRepository. This is designed to work even
114
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
115
+ */
116
+ static isInstance(obj) {
117
+ if (obj === undefined || obj === null) {
118
+ return false;
119
+ }
120
+ return obj['__pulumiType'] === LocalRepository.__pulumiType;
121
+ }
122
+ }
123
+ exports.LocalRepository = LocalRepository;
124
+ /** @internal */
125
+ LocalRepository.__pulumiType = 'artifactory:index/localRepository:LocalRepository';
126
+ //# sourceMappingURL=localRepository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localRepository.js","sourceRoot":"","sources":["../localRepository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IA6DtD,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,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,sBAAsB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,MAAM,CAAC,oBAAoB,CAAC,GAAG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CAAC,CAAC,CAAC,SAAS,CAAC;YAC9F,MAAM,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,MAAM,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;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;IA3HD;;;;;;;;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,0CA6HC;AA/GG,gBAAgB;AACO,4BAAY,GAAG,mDAAmD,CAAC"}
@@ -0,0 +1,172 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## # Artifactory Virtual Maven Repository Resource
4
+ *
5
+ * Provides an Artifactory virtual repository resource, but with specific maven feature. This should be preferred over the original
6
+ * one-size-fits-all `artifactory.VirtualRepository`.
7
+ *
8
+ * ## Example Usage
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as artifactory from "@pulumi/artifactory";
13
+ *
14
+ * const bar = new artifactory.LocalRepository("bar", {
15
+ * key: "bar",
16
+ * packageType: "maven",
17
+ * repoLayoutRef: "maven-2-default",
18
+ * });
19
+ * const baz = new artifactory.RemoteRepository("baz", {
20
+ * key: "baz",
21
+ * packageType: "maven",
22
+ * repoLayoutRef: "maven-2-default",
23
+ * url: "https://search.maven.com/",
24
+ * });
25
+ * const foo = new artifactory.MavenRepository("foo", {
26
+ * description: "A test virtual repo",
27
+ * excludesPattern: "com/google/**",
28
+ * forceMavenAuthentication: true,
29
+ * includesPattern: "com/jfrog/**,cloud/jfrog/**",
30
+ * key: "maven-virt-repo",
31
+ * notes: "Internal description",
32
+ * pomRepositoryReferencesCleanupPolicy: "discard_active_reference",
33
+ * repoLayoutRef: "maven-2-default",
34
+ * repositories: [
35
+ * bar.key,
36
+ * artifactory_local_repository_baz.key,
37
+ * ],
38
+ * });
39
+ * ```
40
+ *
41
+ * ## Import
42
+ *
43
+ * Virtual repositories can be imported using their name, e.g.
44
+ *
45
+ * ```sh
46
+ * $ pulumi import artifactory:index/mavenRepository:MavenRepository foo foo
47
+ * ```
48
+ */
49
+ export declare class MavenRepository extends pulumi.CustomResource {
50
+ /**
51
+ * Get an existing MavenRepository resource's state with the given name, ID, and optional extra
52
+ * properties used to qualify the lookup.
53
+ *
54
+ * @param name The _unique_ name of the resulting resource.
55
+ * @param id The _unique_ provider ID of the resource to lookup.
56
+ * @param state Any extra arguments used during the lookup.
57
+ * @param opts Optional settings to control the behavior of the CustomResource.
58
+ */
59
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MavenRepositoryState, opts?: pulumi.CustomResourceOptions): MavenRepository;
60
+ /**
61
+ * Returns true if the given object is an instance of MavenRepository. This is designed to work even
62
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
63
+ */
64
+ static isInstance(obj: any): obj is MavenRepository;
65
+ readonly artifactoryRequestsCanRetrieveRemoteArtifacts: pulumi.Output<boolean | undefined>;
66
+ readonly defaultDeploymentRepo: pulumi.Output<string | undefined>;
67
+ readonly description: pulumi.Output<string | undefined>;
68
+ /**
69
+ * List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**&#47;z/*.By default no
70
+ * artifacts are excluded.
71
+ */
72
+ readonly excludesPattern: pulumi.Output<string | undefined>;
73
+ /**
74
+ * - forces authentication when fetching from remote repos
75
+ */
76
+ readonly forceMavenAuthentication: pulumi.Output<boolean>;
77
+ /**
78
+ * List of artifact patterns to include when evaluating artifact requests in the form of x/y/**&#47;z/*. When used, only
79
+ * artifacts matching one of the include patterns are served. By default, all artifacts are included (**&#47;*).
80
+ */
81
+ readonly includesPattern: pulumi.Output<string | undefined>;
82
+ readonly key: pulumi.Output<string>;
83
+ /**
84
+ * - Key pair to use for... well, I'm not sure. Maybe ssh auth to remote repo?
85
+ */
86
+ readonly keyPair: pulumi.Output<string | undefined>;
87
+ readonly notes: pulumi.Output<string | undefined>;
88
+ readonly packageType: pulumi.Output<string>;
89
+ /**
90
+ * . One of: `"discardActiveReference", "discardAnyReference", "nothing"`
91
+ */
92
+ readonly pomRepositoryReferencesCleanupPolicy: pulumi.Output<string>;
93
+ readonly repoLayoutRef: pulumi.Output<string>;
94
+ readonly repositories: pulumi.Output<string[]>;
95
+ /**
96
+ * Create a MavenRepository resource with the given unique name, arguments, and options.
97
+ *
98
+ * @param name The _unique_ name of the resource.
99
+ * @param args The arguments to use to populate this resource's properties.
100
+ * @param opts A bag of options that control this resource's behavior.
101
+ */
102
+ constructor(name: string, args: MavenRepositoryArgs, opts?: pulumi.CustomResourceOptions);
103
+ }
104
+ /**
105
+ * Input properties used for looking up and filtering MavenRepository resources.
106
+ */
107
+ export interface MavenRepositoryState {
108
+ artifactoryRequestsCanRetrieveRemoteArtifacts?: pulumi.Input<boolean>;
109
+ defaultDeploymentRepo?: pulumi.Input<string>;
110
+ description?: pulumi.Input<string>;
111
+ /**
112
+ * List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**&#47;z/*.By default no
113
+ * artifacts are excluded.
114
+ */
115
+ excludesPattern?: pulumi.Input<string>;
116
+ /**
117
+ * - forces authentication when fetching from remote repos
118
+ */
119
+ forceMavenAuthentication?: pulumi.Input<boolean>;
120
+ /**
121
+ * List of artifact patterns to include when evaluating artifact requests in the form of x/y/**&#47;z/*. When used, only
122
+ * artifacts matching one of the include patterns are served. By default, all artifacts are included (**&#47;*).
123
+ */
124
+ includesPattern?: pulumi.Input<string>;
125
+ key?: pulumi.Input<string>;
126
+ /**
127
+ * - Key pair to use for... well, I'm not sure. Maybe ssh auth to remote repo?
128
+ */
129
+ keyPair?: pulumi.Input<string>;
130
+ notes?: pulumi.Input<string>;
131
+ packageType?: pulumi.Input<string>;
132
+ /**
133
+ * . One of: `"discardActiveReference", "discardAnyReference", "nothing"`
134
+ */
135
+ pomRepositoryReferencesCleanupPolicy?: pulumi.Input<string>;
136
+ repoLayoutRef?: pulumi.Input<string>;
137
+ repositories?: pulumi.Input<pulumi.Input<string>[]>;
138
+ }
139
+ /**
140
+ * The set of arguments for constructing a MavenRepository resource.
141
+ */
142
+ export interface MavenRepositoryArgs {
143
+ artifactoryRequestsCanRetrieveRemoteArtifacts?: pulumi.Input<boolean>;
144
+ defaultDeploymentRepo?: pulumi.Input<string>;
145
+ description?: pulumi.Input<string>;
146
+ /**
147
+ * List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**&#47;z/*.By default no
148
+ * artifacts are excluded.
149
+ */
150
+ excludesPattern?: pulumi.Input<string>;
151
+ /**
152
+ * - forces authentication when fetching from remote repos
153
+ */
154
+ forceMavenAuthentication?: pulumi.Input<boolean>;
155
+ /**
156
+ * List of artifact patterns to include when evaluating artifact requests in the form of x/y/**&#47;z/*. When used, only
157
+ * artifacts matching one of the include patterns are served. By default, all artifacts are included (**&#47;*).
158
+ */
159
+ includesPattern?: pulumi.Input<string>;
160
+ key: pulumi.Input<string>;
161
+ /**
162
+ * - Key pair to use for... well, I'm not sure. Maybe ssh auth to remote repo?
163
+ */
164
+ keyPair?: pulumi.Input<string>;
165
+ notes?: pulumi.Input<string>;
166
+ /**
167
+ * . One of: `"discardActiveReference", "discardAnyReference", "nothing"`
168
+ */
169
+ pomRepositoryReferencesCleanupPolicy?: pulumi.Input<string>;
170
+ repoLayoutRef?: pulumi.Input<string>;
171
+ repositories: pulumi.Input<pulumi.Input<string>[]>;
172
+ }
@@ -0,0 +1,128 @@
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.MavenRepository = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## # Artifactory Virtual Maven Repository Resource
10
+ *
11
+ * Provides an Artifactory virtual repository resource, but with specific maven feature. This should be preferred over the original
12
+ * one-size-fits-all `artifactory.VirtualRepository`.
13
+ *
14
+ * ## Example Usage
15
+ *
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as artifactory from "@pulumi/artifactory";
19
+ *
20
+ * const bar = new artifactory.LocalRepository("bar", {
21
+ * key: "bar",
22
+ * packageType: "maven",
23
+ * repoLayoutRef: "maven-2-default",
24
+ * });
25
+ * const baz = new artifactory.RemoteRepository("baz", {
26
+ * key: "baz",
27
+ * packageType: "maven",
28
+ * repoLayoutRef: "maven-2-default",
29
+ * url: "https://search.maven.com/",
30
+ * });
31
+ * const foo = new artifactory.MavenRepository("foo", {
32
+ * description: "A test virtual repo",
33
+ * excludesPattern: "com/google/**",
34
+ * forceMavenAuthentication: true,
35
+ * includesPattern: "com/jfrog/**,cloud/jfrog/**",
36
+ * key: "maven-virt-repo",
37
+ * notes: "Internal description",
38
+ * pomRepositoryReferencesCleanupPolicy: "discard_active_reference",
39
+ * repoLayoutRef: "maven-2-default",
40
+ * repositories: [
41
+ * bar.key,
42
+ * artifactory_local_repository_baz.key,
43
+ * ],
44
+ * });
45
+ * ```
46
+ *
47
+ * ## Import
48
+ *
49
+ * Virtual repositories can be imported using their name, e.g.
50
+ *
51
+ * ```sh
52
+ * $ pulumi import artifactory:index/mavenRepository:MavenRepository foo foo
53
+ * ```
54
+ */
55
+ class MavenRepository extends pulumi.CustomResource {
56
+ constructor(name, argsOrState, opts) {
57
+ let inputs = {};
58
+ opts = opts || {};
59
+ if (opts.id) {
60
+ const state = argsOrState;
61
+ inputs["artifactoryRequestsCanRetrieveRemoteArtifacts"] = state ? state.artifactoryRequestsCanRetrieveRemoteArtifacts : undefined;
62
+ inputs["defaultDeploymentRepo"] = state ? state.defaultDeploymentRepo : undefined;
63
+ inputs["description"] = state ? state.description : undefined;
64
+ inputs["excludesPattern"] = state ? state.excludesPattern : undefined;
65
+ inputs["forceMavenAuthentication"] = state ? state.forceMavenAuthentication : undefined;
66
+ inputs["includesPattern"] = state ? state.includesPattern : undefined;
67
+ inputs["key"] = state ? state.key : undefined;
68
+ inputs["keyPair"] = state ? state.keyPair : undefined;
69
+ inputs["notes"] = state ? state.notes : undefined;
70
+ inputs["packageType"] = state ? state.packageType : undefined;
71
+ inputs["pomRepositoryReferencesCleanupPolicy"] = state ? state.pomRepositoryReferencesCleanupPolicy : undefined;
72
+ inputs["repoLayoutRef"] = state ? state.repoLayoutRef : undefined;
73
+ inputs["repositories"] = state ? state.repositories : undefined;
74
+ }
75
+ else {
76
+ const args = argsOrState;
77
+ if ((!args || args.key === undefined) && !opts.urn) {
78
+ throw new Error("Missing required property 'key'");
79
+ }
80
+ if ((!args || args.repositories === undefined) && !opts.urn) {
81
+ throw new Error("Missing required property 'repositories'");
82
+ }
83
+ inputs["artifactoryRequestsCanRetrieveRemoteArtifacts"] = args ? args.artifactoryRequestsCanRetrieveRemoteArtifacts : undefined;
84
+ inputs["defaultDeploymentRepo"] = args ? args.defaultDeploymentRepo : undefined;
85
+ inputs["description"] = args ? args.description : undefined;
86
+ inputs["excludesPattern"] = args ? args.excludesPattern : undefined;
87
+ inputs["forceMavenAuthentication"] = args ? args.forceMavenAuthentication : undefined;
88
+ inputs["includesPattern"] = args ? args.includesPattern : undefined;
89
+ inputs["key"] = args ? args.key : undefined;
90
+ inputs["keyPair"] = args ? args.keyPair : undefined;
91
+ inputs["notes"] = args ? args.notes : undefined;
92
+ inputs["pomRepositoryReferencesCleanupPolicy"] = args ? args.pomRepositoryReferencesCleanupPolicy : undefined;
93
+ inputs["repoLayoutRef"] = args ? args.repoLayoutRef : undefined;
94
+ inputs["repositories"] = args ? args.repositories : undefined;
95
+ inputs["packageType"] = undefined /*out*/;
96
+ }
97
+ if (!opts.version) {
98
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
99
+ }
100
+ super(MavenRepository.__pulumiType, name, inputs, opts);
101
+ }
102
+ /**
103
+ * Get an existing MavenRepository resource's state with the given name, ID, and optional extra
104
+ * properties used to qualify the lookup.
105
+ *
106
+ * @param name The _unique_ name of the resulting resource.
107
+ * @param id The _unique_ provider ID of the resource to lookup.
108
+ * @param state Any extra arguments used during the lookup.
109
+ * @param opts Optional settings to control the behavior of the CustomResource.
110
+ */
111
+ static get(name, id, state, opts) {
112
+ return new MavenRepository(name, state, Object.assign(Object.assign({}, opts), { id: id }));
113
+ }
114
+ /**
115
+ * Returns true if the given object is an instance of MavenRepository. This is designed to work even
116
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
117
+ */
118
+ static isInstance(obj) {
119
+ if (obj === undefined || obj === null) {
120
+ return false;
121
+ }
122
+ return obj['__pulumiType'] === MavenRepository.__pulumiType;
123
+ }
124
+ }
125
+ exports.MavenRepository = MavenRepository;
126
+ /** @internal */
127
+ MavenRepository.__pulumiType = 'artifactory:index/mavenRepository:MavenRepository';
128
+ //# sourceMappingURL=mavenRepository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mavenRepository.js","sourceRoot":"","sources":["../mavenRepository.ts"],"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,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;IA9GD;;;;;;;;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,0CAgHC;AAlGG,gBAAgB;AACO,4BAAY,GAAG,mDAAmD,CAAC"}
@@ -0,0 +1,124 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "./types";
3
+ /**
4
+ * ## # Artifactory OAuth SSO Settings Resource
5
+ *
6
+ * This resource can be used to manage Artifactory's OAuth SSO settings.
7
+ *
8
+ * Only a single `artifactory.OauthSettings` resource is meant to be defined.
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as artifactory from "@pulumi/artifactory";
15
+ *
16
+ * // Configure Artifactory OAuth SSO settings
17
+ * const oauth = new artifactory.OauthSettings("oauth", {
18
+ * allowUserToAccessProfile: true,
19
+ * enable: true,
20
+ * oauthProviders: [{
21
+ * apiUrl: "https://organization.okta.com/oauth2/v1/userinfo",
22
+ * authUrl: "https://organization.okta.com/oauth2/v1/authorize",
23
+ * clientId: "foo",
24
+ * clientSecret: "bar",
25
+ * enabled: false,
26
+ * name: "okta",
27
+ * tokenUrl: "https://organization.okta.com/oauth2/v1/token",
28
+ * type: "openId",
29
+ * }],
30
+ * persistUsers: true,
31
+ * });
32
+ * ```
33
+ *
34
+ * ## Import
35
+ *
36
+ * Current OAuth SSO settings can be imported using `oauth_settings` as the `ID`, e.g.
37
+ *
38
+ * ```sh
39
+ * $ pulumi import artifactory:index/oauthSettings:OauthSettings oauth oauth_settings
40
+ * ```
41
+ */
42
+ export declare class OauthSettings extends pulumi.CustomResource {
43
+ /**
44
+ * Get an existing OauthSettings resource's state with the given name, ID, and optional extra
45
+ * properties used to qualify the lookup.
46
+ *
47
+ * @param name The _unique_ name of the resulting resource.
48
+ * @param id The _unique_ provider ID of the resource to lookup.
49
+ * @param state Any extra arguments used during the lookup.
50
+ * @param opts Optional settings to control the behavior of the CustomResource.
51
+ */
52
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: OauthSettingsState, opts?: pulumi.CustomResourceOptions): OauthSettings;
53
+ /**
54
+ * Returns true if the given object is an instance of OauthSettings. This is designed to work even
55
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
56
+ */
57
+ static isInstance(obj: any): obj is OauthSettings;
58
+ /**
59
+ * Allow persisted users to access their profile. Default value is `false`.
60
+ */
61
+ readonly allowUserToAccessProfile: pulumi.Output<boolean | undefined>;
62
+ /**
63
+ * Enable OAuth SSO. Default value is `true`.
64
+ */
65
+ readonly enable: pulumi.Output<boolean | undefined>;
66
+ /**
67
+ * OAuth provider settings block. Multiple blocks can be defined, at least one is required.
68
+ */
69
+ readonly oauthProviders: pulumi.Output<outputs.OauthSettingsOauthProvider[]>;
70
+ /**
71
+ * Enable the creation of local Artifactory users. Default value is `false`.
72
+ */
73
+ readonly persistUsers: pulumi.Output<boolean | undefined>;
74
+ /**
75
+ * Create a OauthSettings 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: OauthSettingsArgs, opts?: pulumi.CustomResourceOptions);
82
+ }
83
+ /**
84
+ * Input properties used for looking up and filtering OauthSettings resources.
85
+ */
86
+ export interface OauthSettingsState {
87
+ /**
88
+ * Allow persisted users to access their profile. Default value is `false`.
89
+ */
90
+ allowUserToAccessProfile?: pulumi.Input<boolean>;
91
+ /**
92
+ * Enable OAuth SSO. Default value is `true`.
93
+ */
94
+ enable?: pulumi.Input<boolean>;
95
+ /**
96
+ * OAuth provider settings block. Multiple blocks can be defined, at least one is required.
97
+ */
98
+ oauthProviders?: pulumi.Input<pulumi.Input<inputs.OauthSettingsOauthProvider>[]>;
99
+ /**
100
+ * Enable the creation of local Artifactory users. Default value is `false`.
101
+ */
102
+ persistUsers?: pulumi.Input<boolean>;
103
+ }
104
+ /**
105
+ * The set of arguments for constructing a OauthSettings resource.
106
+ */
107
+ export interface OauthSettingsArgs {
108
+ /**
109
+ * Allow persisted users to access their profile. Default value is `false`.
110
+ */
111
+ allowUserToAccessProfile?: pulumi.Input<boolean>;
112
+ /**
113
+ * Enable OAuth SSO. Default value is `true`.
114
+ */
115
+ enable?: pulumi.Input<boolean>;
116
+ /**
117
+ * OAuth provider settings block. Multiple blocks can be defined, at least one is required.
118
+ */
119
+ oauthProviders: pulumi.Input<pulumi.Input<inputs.OauthSettingsOauthProvider>[]>;
120
+ /**
121
+ * Enable the creation of local Artifactory users. Default value is `false`.
122
+ */
123
+ persistUsers?: pulumi.Input<boolean>;
124
+ }