@pulumi/artifactory 0.4.0 → 0.5.0

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 (220) hide show
  1. package/alpineRepository.d.ts +27 -0
  2. package/alpineRepository.js +4 -0
  3. package/alpineRepository.js.map +1 -1
  4. package/artifactPropertyWebhook.d.ts +189 -0
  5. package/artifactPropertyWebhook.js +115 -0
  6. package/artifactPropertyWebhook.js.map +1 -0
  7. package/artifactWebhook.d.ts +191 -0
  8. package/artifactWebhook.js +117 -0
  9. package/artifactWebhook.js.map +1 -0
  10. package/artifactoryReleaseBundleWebhook.d.ts +186 -0
  11. package/artifactoryReleaseBundleWebhook.js +112 -0
  12. package/artifactoryReleaseBundleWebhook.js.map +1 -0
  13. package/buildWebhook.d.ts +186 -0
  14. package/buildWebhook.js +112 -0
  15. package/buildWebhook.js.map +1 -0
  16. package/debianRepository.d.ts +27 -0
  17. package/debianRepository.js +4 -0
  18. package/debianRepository.js.map +1 -1
  19. package/distributionWebhook.d.ts +190 -0
  20. package/distributionWebhook.js +116 -0
  21. package/distributionWebhook.js.map +1 -0
  22. package/dockerV1Repository.d.ts +27 -0
  23. package/dockerV1Repository.js +4 -0
  24. package/dockerV1Repository.js.map +1 -1
  25. package/dockerV2Repository.d.ts +27 -0
  26. package/dockerV2Repository.js +4 -0
  27. package/dockerV2Repository.js.map +1 -1
  28. package/dockerWebhook.d.ts +190 -0
  29. package/dockerWebhook.js +116 -0
  30. package/dockerWebhook.js.map +1 -0
  31. package/federatedAlpineRepository.d.ts +27 -0
  32. package/federatedAlpineRepository.js +4 -0
  33. package/federatedAlpineRepository.js.map +1 -1
  34. package/federatedBowerRepository.d.ts +27 -0
  35. package/federatedBowerRepository.js +4 -0
  36. package/federatedBowerRepository.js.map +1 -1
  37. package/federatedCargoRepository.d.ts +27 -0
  38. package/federatedCargoRepository.js +4 -0
  39. package/federatedCargoRepository.js.map +1 -1
  40. package/federatedChefRepository.d.ts +27 -0
  41. package/federatedChefRepository.js +4 -0
  42. package/federatedChefRepository.js.map +1 -1
  43. package/federatedCocoapodsRepository.d.ts +27 -0
  44. package/federatedCocoapodsRepository.js +4 -0
  45. package/federatedCocoapodsRepository.js.map +1 -1
  46. package/federatedComposerRepository.d.ts +27 -0
  47. package/federatedComposerRepository.js +4 -0
  48. package/federatedComposerRepository.js.map +1 -1
  49. package/federatedConanRepository.d.ts +27 -0
  50. package/federatedConanRepository.js +4 -0
  51. package/federatedConanRepository.js.map +1 -1
  52. package/federatedCondaRepository.d.ts +27 -0
  53. package/federatedCondaRepository.js +4 -0
  54. package/federatedCondaRepository.js.map +1 -1
  55. package/federatedCranRepository.d.ts +27 -0
  56. package/federatedCranRepository.js +4 -0
  57. package/federatedCranRepository.js.map +1 -1
  58. package/federatedDebianRepository.d.ts +27 -0
  59. package/federatedDebianRepository.js +4 -0
  60. package/federatedDebianRepository.js.map +1 -1
  61. package/federatedDockerRepository.d.ts +27 -0
  62. package/federatedDockerRepository.js +4 -0
  63. package/federatedDockerRepository.js.map +1 -1
  64. package/federatedGemsRepository.d.ts +27 -0
  65. package/federatedGemsRepository.js +4 -0
  66. package/federatedGemsRepository.js.map +1 -1
  67. package/federatedGenericRepository.d.ts +24 -0
  68. package/federatedGenericRepository.js +4 -0
  69. package/federatedGenericRepository.js.map +1 -1
  70. package/federatedGitltfsRepository.d.ts +27 -0
  71. package/federatedGitltfsRepository.js +4 -0
  72. package/federatedGitltfsRepository.js.map +1 -1
  73. package/federatedGoRepository.d.ts +27 -0
  74. package/federatedGoRepository.js +4 -0
  75. package/federatedGoRepository.js.map +1 -1
  76. package/federatedGradleRepository.d.ts +27 -0
  77. package/federatedGradleRepository.js +4 -0
  78. package/federatedGradleRepository.js.map +1 -1
  79. package/federatedHelmRepository.d.ts +27 -0
  80. package/federatedHelmRepository.js +4 -0
  81. package/federatedHelmRepository.js.map +1 -1
  82. package/federatedIvyRepository.d.ts +27 -0
  83. package/federatedIvyRepository.js +4 -0
  84. package/federatedIvyRepository.js.map +1 -1
  85. package/federatedMavenRepository.d.ts +27 -0
  86. package/federatedMavenRepository.js +4 -0
  87. package/federatedMavenRepository.js.map +1 -1
  88. package/federatedNpmRepository.d.ts +27 -0
  89. package/federatedNpmRepository.js +4 -0
  90. package/federatedNpmRepository.js.map +1 -1
  91. package/federatedNugetRepository.d.ts +27 -0
  92. package/federatedNugetRepository.js +4 -0
  93. package/federatedNugetRepository.js.map +1 -1
  94. package/federatedOpkgRepository.d.ts +27 -0
  95. package/federatedOpkgRepository.js +4 -0
  96. package/federatedOpkgRepository.js.map +1 -1
  97. package/federatedPuppetRepository.d.ts +27 -0
  98. package/federatedPuppetRepository.js +4 -0
  99. package/federatedPuppetRepository.js.map +1 -1
  100. package/federatedPypiRepository.d.ts +27 -0
  101. package/federatedPypiRepository.js +4 -0
  102. package/federatedPypiRepository.js.map +1 -1
  103. package/federatedRpmRepository.d.ts +27 -0
  104. package/federatedRpmRepository.js +4 -0
  105. package/federatedRpmRepository.js.map +1 -1
  106. package/federatedSbtRepository.d.ts +27 -0
  107. package/federatedSbtRepository.js +4 -0
  108. package/federatedSbtRepository.js.map +1 -1
  109. package/federatedVagrantRepository.d.ts +27 -0
  110. package/federatedVagrantRepository.js +4 -0
  111. package/federatedVagrantRepository.js.map +1 -1
  112. package/goRepository.d.ts +27 -0
  113. package/goRepository.js +4 -0
  114. package/goRepository.js.map +1 -1
  115. package/index.d.ts +8 -0
  116. package/index.js +40 -0
  117. package/index.js.map +1 -1
  118. package/localBowerRepository.d.ts +27 -0
  119. package/localBowerRepository.js +4 -0
  120. package/localBowerRepository.js.map +1 -1
  121. package/localChefRepository.d.ts +27 -0
  122. package/localChefRepository.js +4 -0
  123. package/localChefRepository.js.map +1 -1
  124. package/localCocoapodsRepository.d.ts +27 -0
  125. package/localCocoapodsRepository.js +4 -0
  126. package/localCocoapodsRepository.js.map +1 -1
  127. package/localComposerRepository.d.ts +27 -0
  128. package/localComposerRepository.js +4 -0
  129. package/localComposerRepository.js.map +1 -1
  130. package/localConanRepository.d.ts +27 -0
  131. package/localConanRepository.js +4 -0
  132. package/localConanRepository.js.map +1 -1
  133. package/localCranRepository.d.ts +27 -0
  134. package/localCranRepository.js +4 -0
  135. package/localCranRepository.js.map +1 -1
  136. package/localGemsRepository.d.ts +27 -0
  137. package/localGemsRepository.js +4 -0
  138. package/localGemsRepository.js.map +1 -1
  139. package/localGenericRepository.d.ts +24 -0
  140. package/localGenericRepository.js +4 -0
  141. package/localGenericRepository.js.map +1 -1
  142. package/localGitltfsRepository.d.ts +27 -0
  143. package/localGitltfsRepository.js +4 -0
  144. package/localGitltfsRepository.js.map +1 -1
  145. package/localGoRepository.d.ts +27 -0
  146. package/localGoRepository.js +4 -0
  147. package/localGoRepository.js.map +1 -1
  148. package/localGradleRepository.d.ts +27 -0
  149. package/localGradleRepository.js +4 -0
  150. package/localGradleRepository.js.map +1 -1
  151. package/localHelmRepository.d.ts +27 -0
  152. package/localHelmRepository.js +4 -0
  153. package/localHelmRepository.js.map +1 -1
  154. package/localIvyRepository.d.ts +27 -0
  155. package/localIvyRepository.js +4 -0
  156. package/localIvyRepository.js.map +1 -1
  157. package/localMavenRepository.d.ts +27 -0
  158. package/localMavenRepository.js +4 -0
  159. package/localMavenRepository.js.map +1 -1
  160. package/localNpmRepository.d.ts +27 -0
  161. package/localNpmRepository.js +4 -0
  162. package/localNpmRepository.js.map +1 -1
  163. package/localNugetRepository.d.ts +27 -0
  164. package/localNugetRepository.js +4 -0
  165. package/localNugetRepository.js.map +1 -1
  166. package/localOpkgRepository.d.ts +27 -0
  167. package/localOpkgRepository.js +4 -0
  168. package/localOpkgRepository.js.map +1 -1
  169. package/localPuppetRepository.d.ts +27 -0
  170. package/localPuppetRepository.js +4 -0
  171. package/localPuppetRepository.js.map +1 -1
  172. package/localPypiRepository.d.ts +27 -0
  173. package/localPypiRepository.js +4 -0
  174. package/localPypiRepository.js.map +1 -1
  175. package/localRpmRepository.d.ts +27 -0
  176. package/localRpmRepository.js +4 -0
  177. package/localRpmRepository.js.map +1 -1
  178. package/localSbtRepository.d.ts +27 -0
  179. package/localSbtRepository.js +4 -0
  180. package/localSbtRepository.js.map +1 -1
  181. package/localVagrantRepository.d.ts +27 -0
  182. package/localVagrantRepository.js +4 -0
  183. package/localVagrantRepository.js.map +1 -1
  184. package/mavenRepository.d.ts +27 -0
  185. package/mavenRepository.js +4 -0
  186. package/mavenRepository.js.map +1 -1
  187. package/package.json +2 -2
  188. package/package.json.dev +2 -2
  189. package/releaseBundleWebhook.d.ts +186 -0
  190. package/releaseBundleWebhook.js +112 -0
  191. package/releaseBundleWebhook.js.map +1 -0
  192. package/remoteCargoRepository.d.ts +24 -0
  193. package/remoteCargoRepository.js +4 -0
  194. package/remoteCargoRepository.js.map +1 -1
  195. package/remoteDockerRepository.d.ts +24 -0
  196. package/remoteDockerRepository.js +4 -0
  197. package/remoteDockerRepository.js.map +1 -1
  198. package/remoteHelmRepository.d.ts +24 -0
  199. package/remoteHelmRepository.js +4 -0
  200. package/remoteHelmRepository.js.map +1 -1
  201. package/remoteNpmRepository.d.ts +24 -0
  202. package/remoteNpmRepository.js +4 -0
  203. package/remoteNpmRepository.js.map +1 -1
  204. package/remotePypiRepository.d.ts +24 -0
  205. package/remotePypiRepository.js +4 -0
  206. package/remotePypiRepository.js.map +1 -1
  207. package/types/input.d.ts +138 -0
  208. package/types/output.d.ts +138 -0
  209. package/virtualConanRepository.d.ts +27 -0
  210. package/virtualConanRepository.js +4 -0
  211. package/virtualConanRepository.js.map +1 -1
  212. package/virtualGenericRepository.d.ts +24 -0
  213. package/virtualGenericRepository.js +4 -0
  214. package/virtualGenericRepository.js.map +1 -1
  215. package/virtualHelmRepository.d.ts +252 -0
  216. package/virtualHelmRepository.js +103 -0
  217. package/virtualHelmRepository.js.map +1 -0
  218. package/virtualRpmRepository.d.ts +27 -0
  219. package/virtualRpmRepository.js +4 -0
  220. package/virtualRpmRepository.js.map +1 -1
@@ -0,0 +1,117 @@
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.ArtifactWebhook = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## # Artifactory Artifact Webhook Resource
10
+ *
11
+ * Provides an Artifactory webhook resource. This can be used to register and manage Artifactory webhook subscription which enables you to be notified or notify other users when such events take place in Artifactory.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * .
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as artifactory from "@pulumi/artifactory";
19
+ *
20
+ * const my_generic_local = new artifactory.LocalGenericRepository("my-generic-local", {key: "my-generic-local"});
21
+ * const artifact_webhook = new artifactory.ArtifactWebhook("artifact-webhook", {
22
+ * key: "artifact-webhook",
23
+ * eventTypes: [
24
+ * "deployed",
25
+ * "deleted",
26
+ * "moved",
27
+ * "copied",
28
+ * ],
29
+ * criteria: {
30
+ * anyLocal: true,
31
+ * anyRemote: false,
32
+ * repoKeys: [my_generic_local.key],
33
+ * includePatterns: ["foo/**"],
34
+ * excludePatterns: ["bar/**"],
35
+ * },
36
+ * url: "http://tempurl.org/webhook",
37
+ * secret: "some-secret",
38
+ * proxy: "proxy-key",
39
+ * customHttpHeaders: {
40
+ * "header-1": "value-1",
41
+ * "header-2": "value-2",
42
+ * },
43
+ * }, {
44
+ * dependsOn: [my_generic_local],
45
+ * });
46
+ * ```
47
+ */
48
+ class ArtifactWebhook extends pulumi.CustomResource {
49
+ constructor(name, argsOrState, opts) {
50
+ let resourceInputs = {};
51
+ opts = opts || {};
52
+ if (opts.id) {
53
+ const state = argsOrState;
54
+ resourceInputs["criteria"] = state ? state.criteria : undefined;
55
+ resourceInputs["customHttpHeaders"] = state ? state.customHttpHeaders : undefined;
56
+ resourceInputs["description"] = state ? state.description : undefined;
57
+ resourceInputs["enabled"] = state ? state.enabled : undefined;
58
+ resourceInputs["eventTypes"] = state ? state.eventTypes : undefined;
59
+ resourceInputs["key"] = state ? state.key : undefined;
60
+ resourceInputs["proxy"] = state ? state.proxy : undefined;
61
+ resourceInputs["secret"] = state ? state.secret : undefined;
62
+ resourceInputs["url"] = state ? state.url : undefined;
63
+ }
64
+ else {
65
+ const args = argsOrState;
66
+ if ((!args || args.criteria === undefined) && !opts.urn) {
67
+ throw new Error("Missing required property 'criteria'");
68
+ }
69
+ if ((!args || args.eventTypes === undefined) && !opts.urn) {
70
+ throw new Error("Missing required property 'eventTypes'");
71
+ }
72
+ if ((!args || args.key === undefined) && !opts.urn) {
73
+ throw new Error("Missing required property 'key'");
74
+ }
75
+ if ((!args || args.url === undefined) && !opts.urn) {
76
+ throw new Error("Missing required property 'url'");
77
+ }
78
+ resourceInputs["criteria"] = args ? args.criteria : undefined;
79
+ resourceInputs["customHttpHeaders"] = args ? args.customHttpHeaders : undefined;
80
+ resourceInputs["description"] = args ? args.description : undefined;
81
+ resourceInputs["enabled"] = args ? args.enabled : undefined;
82
+ resourceInputs["eventTypes"] = args ? args.eventTypes : undefined;
83
+ resourceInputs["key"] = args ? args.key : undefined;
84
+ resourceInputs["proxy"] = args ? args.proxy : undefined;
85
+ resourceInputs["secret"] = args ? args.secret : undefined;
86
+ resourceInputs["url"] = args ? args.url : undefined;
87
+ }
88
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
89
+ super(ArtifactWebhook.__pulumiType, name, resourceInputs, opts);
90
+ }
91
+ /**
92
+ * Get an existing ArtifactWebhook resource's state with the given name, ID, and optional extra
93
+ * properties used to qualify the lookup.
94
+ *
95
+ * @param name The _unique_ name of the resulting resource.
96
+ * @param id The _unique_ provider ID of the resource to lookup.
97
+ * @param state Any extra arguments used during the lookup.
98
+ * @param opts Optional settings to control the behavior of the CustomResource.
99
+ */
100
+ static get(name, id, state, opts) {
101
+ return new ArtifactWebhook(name, state, Object.assign(Object.assign({}, opts), { id: id }));
102
+ }
103
+ /**
104
+ * Returns true if the given object is an instance of ArtifactWebhook. This is designed to work even
105
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
106
+ */
107
+ static isInstance(obj) {
108
+ if (obj === undefined || obj === null) {
109
+ return false;
110
+ }
111
+ return obj['__pulumiType'] === ArtifactWebhook.__pulumiType;
112
+ }
113
+ }
114
+ exports.ArtifactWebhook = ArtifactWebhook;
115
+ /** @internal */
116
+ ArtifactWebhook.__pulumiType = 'artifactory:index/artifactWebhook:ArtifactWebhook';
117
+ //# sourceMappingURL=artifactWebhook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifactWebhook.js","sourceRoot":"","sources":["../artifactWebhook.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IAyEtD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAA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CAAC;IACpE,CAAC;IAhHD;;;;;;;;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,0CAkHC;AApGG,gBAAgB;AACO,4BAAY,GAAG,mDAAmD,CAAC"}
@@ -0,0 +1,186 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "./types";
3
+ /**
4
+ * ## # Artifactory Release Bundle Webhook Resource
5
+ *
6
+ * Provides an Artifactory webhook resource. This can be used to register and manage Artifactory webhook subscription which enables you to be notified or notify other users when such events take place in Artifactory.
7
+ *
8
+ * ## Example Usage
9
+ *
10
+ * .
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as artifactory from "@pulumi/artifactory";
14
+ *
15
+ * const release_bundle_webhook = new artifactory.ReleaseBundleWebhook("release-bundle-webhook", {
16
+ * criteria: {
17
+ * anyReleaseBundle: false,
18
+ * excludePatterns: ["bar/**"],
19
+ * includePatterns: ["foo/**"],
20
+ * registeredReleaseBundleNames: ["bundle-name"],
21
+ * },
22
+ * customHttpHeaders: {
23
+ * "header-1": "value-1",
24
+ * "header-2": "value-2",
25
+ * },
26
+ * eventTypes: [
27
+ * "created",
28
+ * "signed",
29
+ * "deleted",
30
+ * ],
31
+ * key: "release-bundle-webhook",
32
+ * proxy: "proxy-key",
33
+ * secret: "some-secret",
34
+ * url: "http://tempurl.org/webhook",
35
+ * });
36
+ * ```
37
+ */
38
+ export declare class ArtifactoryReleaseBundleWebhook extends pulumi.CustomResource {
39
+ /**
40
+ * Get an existing ArtifactoryReleaseBundleWebhook resource's state with the given name, ID, and optional extra
41
+ * properties used to qualify the lookup.
42
+ *
43
+ * @param name The _unique_ name of the resulting resource.
44
+ * @param id The _unique_ provider ID of the resource to lookup.
45
+ * @param state Any extra arguments used during the lookup.
46
+ * @param opts Optional settings to control the behavior of the CustomResource.
47
+ */
48
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ArtifactoryReleaseBundleWebhookState, opts?: pulumi.CustomResourceOptions): ArtifactoryReleaseBundleWebhook;
49
+ /**
50
+ * Returns true if the given object is an instance of ArtifactoryReleaseBundleWebhook. This is designed to work even
51
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
52
+ */
53
+ static isInstance(obj: any): obj is ArtifactoryReleaseBundleWebhook;
54
+ /**
55
+ * Specifies where the webhook will be applied on which repositories.
56
+ */
57
+ readonly criteria: pulumi.Output<outputs.ArtifactoryReleaseBundleWebhookCriteria>;
58
+ /**
59
+ * Custom HTTP headers you wish to use to invoke the Webhook, comprise of key/value pair.
60
+ */
61
+ readonly customHttpHeaders: pulumi.Output<{
62
+ [key: string]: string;
63
+ } | undefined>;
64
+ /**
65
+ * Webhook description. Max length 1000 characters.
66
+ */
67
+ readonly description: pulumi.Output<string | undefined>;
68
+ /**
69
+ * Status of webhook. Default to 'true'
70
+ */
71
+ readonly enabled: pulumi.Output<boolean | undefined>;
72
+ /**
73
+ * List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values: "created", "signed", "deleted"
74
+ */
75
+ readonly eventTypes: pulumi.Output<string[]>;
76
+ /**
77
+ * The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
78
+ */
79
+ readonly key: pulumi.Output<string>;
80
+ /**
81
+ * Proxy key from Artifactory Proxies setting
82
+ */
83
+ readonly proxy: pulumi.Output<string | undefined>;
84
+ /**
85
+ * Secret authentication token that will be sent to the configured URL
86
+ */
87
+ readonly secret: pulumi.Output<string | undefined>;
88
+ /**
89
+ * Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.
90
+ */
91
+ readonly url: pulumi.Output<string>;
92
+ /**
93
+ * Create a ArtifactoryReleaseBundleWebhook resource with the given unique name, arguments, and options.
94
+ *
95
+ * @param name The _unique_ name of the resource.
96
+ * @param args The arguments to use to populate this resource's properties.
97
+ * @param opts A bag of options that control this resource's behavior.
98
+ */
99
+ constructor(name: string, args: ArtifactoryReleaseBundleWebhookArgs, opts?: pulumi.CustomResourceOptions);
100
+ }
101
+ /**
102
+ * Input properties used for looking up and filtering ArtifactoryReleaseBundleWebhook resources.
103
+ */
104
+ export interface ArtifactoryReleaseBundleWebhookState {
105
+ /**
106
+ * Specifies where the webhook will be applied on which repositories.
107
+ */
108
+ criteria?: pulumi.Input<inputs.ArtifactoryReleaseBundleWebhookCriteria>;
109
+ /**
110
+ * Custom HTTP headers you wish to use to invoke the Webhook, comprise of key/value pair.
111
+ */
112
+ customHttpHeaders?: pulumi.Input<{
113
+ [key: string]: pulumi.Input<string>;
114
+ }>;
115
+ /**
116
+ * Webhook description. Max length 1000 characters.
117
+ */
118
+ description?: pulumi.Input<string>;
119
+ /**
120
+ * Status of webhook. Default to 'true'
121
+ */
122
+ enabled?: pulumi.Input<boolean>;
123
+ /**
124
+ * List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values: "created", "signed", "deleted"
125
+ */
126
+ eventTypes?: pulumi.Input<pulumi.Input<string>[]>;
127
+ /**
128
+ * The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
129
+ */
130
+ key?: pulumi.Input<string>;
131
+ /**
132
+ * Proxy key from Artifactory Proxies setting
133
+ */
134
+ proxy?: pulumi.Input<string>;
135
+ /**
136
+ * Secret authentication token that will be sent to the configured URL
137
+ */
138
+ secret?: pulumi.Input<string>;
139
+ /**
140
+ * Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.
141
+ */
142
+ url?: pulumi.Input<string>;
143
+ }
144
+ /**
145
+ * The set of arguments for constructing a ArtifactoryReleaseBundleWebhook resource.
146
+ */
147
+ export interface ArtifactoryReleaseBundleWebhookArgs {
148
+ /**
149
+ * Specifies where the webhook will be applied on which repositories.
150
+ */
151
+ criteria: pulumi.Input<inputs.ArtifactoryReleaseBundleWebhookCriteria>;
152
+ /**
153
+ * Custom HTTP headers you wish to use to invoke the Webhook, comprise of key/value pair.
154
+ */
155
+ customHttpHeaders?: pulumi.Input<{
156
+ [key: string]: pulumi.Input<string>;
157
+ }>;
158
+ /**
159
+ * Webhook description. Max length 1000 characters.
160
+ */
161
+ description?: pulumi.Input<string>;
162
+ /**
163
+ * Status of webhook. Default to 'true'
164
+ */
165
+ enabled?: pulumi.Input<boolean>;
166
+ /**
167
+ * List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values: "created", "signed", "deleted"
168
+ */
169
+ eventTypes: pulumi.Input<pulumi.Input<string>[]>;
170
+ /**
171
+ * The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
172
+ */
173
+ key: pulumi.Input<string>;
174
+ /**
175
+ * Proxy key from Artifactory Proxies setting
176
+ */
177
+ proxy?: pulumi.Input<string>;
178
+ /**
179
+ * Secret authentication token that will be sent to the configured URL
180
+ */
181
+ secret?: pulumi.Input<string>;
182
+ /**
183
+ * Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.
184
+ */
185
+ url: pulumi.Input<string>;
186
+ }
@@ -0,0 +1,112 @@
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.ArtifactoryReleaseBundleWebhook = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## # Artifactory Release Bundle Webhook Resource
10
+ *
11
+ * Provides an Artifactory webhook resource. This can be used to register and manage Artifactory webhook subscription which enables you to be notified or notify other users when such events take place in Artifactory.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * .
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as artifactory from "@pulumi/artifactory";
19
+ *
20
+ * const release_bundle_webhook = new artifactory.ReleaseBundleWebhook("release-bundle-webhook", {
21
+ * criteria: {
22
+ * anyReleaseBundle: false,
23
+ * excludePatterns: ["bar/**"],
24
+ * includePatterns: ["foo/**"],
25
+ * registeredReleaseBundleNames: ["bundle-name"],
26
+ * },
27
+ * customHttpHeaders: {
28
+ * "header-1": "value-1",
29
+ * "header-2": "value-2",
30
+ * },
31
+ * eventTypes: [
32
+ * "created",
33
+ * "signed",
34
+ * "deleted",
35
+ * ],
36
+ * key: "release-bundle-webhook",
37
+ * proxy: "proxy-key",
38
+ * secret: "some-secret",
39
+ * url: "http://tempurl.org/webhook",
40
+ * });
41
+ * ```
42
+ */
43
+ class ArtifactoryReleaseBundleWebhook extends pulumi.CustomResource {
44
+ constructor(name, argsOrState, opts) {
45
+ let resourceInputs = {};
46
+ opts = opts || {};
47
+ if (opts.id) {
48
+ const state = argsOrState;
49
+ resourceInputs["criteria"] = state ? state.criteria : undefined;
50
+ resourceInputs["customHttpHeaders"] = state ? state.customHttpHeaders : undefined;
51
+ resourceInputs["description"] = state ? state.description : undefined;
52
+ resourceInputs["enabled"] = state ? state.enabled : undefined;
53
+ resourceInputs["eventTypes"] = state ? state.eventTypes : undefined;
54
+ resourceInputs["key"] = state ? state.key : undefined;
55
+ resourceInputs["proxy"] = state ? state.proxy : undefined;
56
+ resourceInputs["secret"] = state ? state.secret : undefined;
57
+ resourceInputs["url"] = state ? state.url : undefined;
58
+ }
59
+ else {
60
+ const args = argsOrState;
61
+ if ((!args || args.criteria === undefined) && !opts.urn) {
62
+ throw new Error("Missing required property 'criteria'");
63
+ }
64
+ if ((!args || args.eventTypes === undefined) && !opts.urn) {
65
+ throw new Error("Missing required property 'eventTypes'");
66
+ }
67
+ if ((!args || args.key === undefined) && !opts.urn) {
68
+ throw new Error("Missing required property 'key'");
69
+ }
70
+ if ((!args || args.url === undefined) && !opts.urn) {
71
+ throw new Error("Missing required property 'url'");
72
+ }
73
+ resourceInputs["criteria"] = args ? args.criteria : undefined;
74
+ resourceInputs["customHttpHeaders"] = args ? args.customHttpHeaders : undefined;
75
+ resourceInputs["description"] = args ? args.description : undefined;
76
+ resourceInputs["enabled"] = args ? args.enabled : undefined;
77
+ resourceInputs["eventTypes"] = args ? args.eventTypes : undefined;
78
+ resourceInputs["key"] = args ? args.key : undefined;
79
+ resourceInputs["proxy"] = args ? args.proxy : undefined;
80
+ resourceInputs["secret"] = args ? args.secret : undefined;
81
+ resourceInputs["url"] = args ? args.url : undefined;
82
+ }
83
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
84
+ super(ArtifactoryReleaseBundleWebhook.__pulumiType, name, resourceInputs, opts);
85
+ }
86
+ /**
87
+ * Get an existing ArtifactoryReleaseBundleWebhook resource's state with the given name, ID, and optional extra
88
+ * properties used to qualify the lookup.
89
+ *
90
+ * @param name The _unique_ name of the resulting resource.
91
+ * @param id The _unique_ provider ID of the resource to lookup.
92
+ * @param state Any extra arguments used during the lookup.
93
+ * @param opts Optional settings to control the behavior of the CustomResource.
94
+ */
95
+ static get(name, id, state, opts) {
96
+ return new ArtifactoryReleaseBundleWebhook(name, state, Object.assign(Object.assign({}, opts), { id: id }));
97
+ }
98
+ /**
99
+ * Returns true if the given object is an instance of ArtifactoryReleaseBundleWebhook. This is designed to work even
100
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
101
+ */
102
+ static isInstance(obj) {
103
+ if (obj === undefined || obj === null) {
104
+ return false;
105
+ }
106
+ return obj['__pulumiType'] === ArtifactoryReleaseBundleWebhook.__pulumiType;
107
+ }
108
+ }
109
+ exports.ArtifactoryReleaseBundleWebhook = ArtifactoryReleaseBundleWebhook;
110
+ /** @internal */
111
+ ArtifactoryReleaseBundleWebhook.__pulumiType = 'artifactory:index/artifactoryReleaseBundleWebhook:ArtifactoryReleaseBundleWebhook';
112
+ //# sourceMappingURL=artifactoryReleaseBundleWebhook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifactoryReleaseBundleWebhook.js","sourceRoot":"","sources":["../artifactoryReleaseBundleWebhook.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,+BAAgC,SAAQ,MAAM,CAAC,cAAc;IAyEtE,YAAY,IAAY,EAAE,WAAwF,EAAE,IAAmC;QACnJ,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+D,CAAC;YAC9E,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACp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AAO,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,0EAkHC;AApGG,gBAAgB;AACO,4CAAY,GAAG,mFAAmF,CAAC"}
@@ -0,0 +1,186 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "./types";
3
+ /**
4
+ * ## # Artifactory Build Webhook Resource
5
+ *
6
+ * Provides an Artifactory webhook resource. This can be used to register and manage Artifactory webhook subscription which enables you to be notified or notify other users when such events take place in Artifactory.
7
+ *
8
+ * ## Example Usage
9
+ *
10
+ * .
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as artifactory from "@pulumi/artifactory";
14
+ *
15
+ * const build_webhook = new artifactory.BuildWebhook("build-webhook", {
16
+ * criteria: {
17
+ * anyBuild: true,
18
+ * excludePatterns: ["bar/**"],
19
+ * includePatterns: ["foo/**"],
20
+ * selectedBuilds: ["build-id"],
21
+ * },
22
+ * customHttpHeaders: {
23
+ * "header-1": "value-1",
24
+ * "header-2": "value-2",
25
+ * },
26
+ * eventTypes: [
27
+ * "uploaded",
28
+ * "deleted",
29
+ * "promoted",
30
+ * ],
31
+ * key: "build-webhook",
32
+ * proxy: "proxy-key",
33
+ * secret: "some-secret",
34
+ * url: "http://tempurl.org/webhook",
35
+ * });
36
+ * ```
37
+ */
38
+ export declare class BuildWebhook extends pulumi.CustomResource {
39
+ /**
40
+ * Get an existing BuildWebhook resource's state with the given name, ID, and optional extra
41
+ * properties used to qualify the lookup.
42
+ *
43
+ * @param name The _unique_ name of the resulting resource.
44
+ * @param id The _unique_ provider ID of the resource to lookup.
45
+ * @param state Any extra arguments used during the lookup.
46
+ * @param opts Optional settings to control the behavior of the CustomResource.
47
+ */
48
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BuildWebhookState, opts?: pulumi.CustomResourceOptions): BuildWebhook;
49
+ /**
50
+ * Returns true if the given object is an instance of BuildWebhook. This is designed to work even
51
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
52
+ */
53
+ static isInstance(obj: any): obj is BuildWebhook;
54
+ /**
55
+ * Specifies where the webhook will be applied on which repositories.
56
+ */
57
+ readonly criteria: pulumi.Output<outputs.BuildWebhookCriteria>;
58
+ /**
59
+ * Custom HTTP headers you wish to use to invoke the Webhook, comprise of key/value pair.
60
+ */
61
+ readonly customHttpHeaders: pulumi.Output<{
62
+ [key: string]: string;
63
+ } | undefined>;
64
+ /**
65
+ * Webhook description. Max length 1000 characters.
66
+ */
67
+ readonly description: pulumi.Output<string | undefined>;
68
+ /**
69
+ * Status of webhook. Default to 'true'
70
+ */
71
+ readonly enabled: pulumi.Output<boolean | undefined>;
72
+ /**
73
+ * List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values: "uploaded", "deleted", "promoted"
74
+ */
75
+ readonly eventTypes: pulumi.Output<string[]>;
76
+ /**
77
+ * The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
78
+ */
79
+ readonly key: pulumi.Output<string>;
80
+ /**
81
+ * Proxy key from Artifactory Proxies setting
82
+ */
83
+ readonly proxy: pulumi.Output<string | undefined>;
84
+ /**
85
+ * Secret authentication token that will be sent to the configured URL
86
+ */
87
+ readonly secret: pulumi.Output<string | undefined>;
88
+ /**
89
+ * Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.
90
+ */
91
+ readonly url: pulumi.Output<string>;
92
+ /**
93
+ * Create a BuildWebhook resource with the given unique name, arguments, and options.
94
+ *
95
+ * @param name The _unique_ name of the resource.
96
+ * @param args The arguments to use to populate this resource's properties.
97
+ * @param opts A bag of options that control this resource's behavior.
98
+ */
99
+ constructor(name: string, args: BuildWebhookArgs, opts?: pulumi.CustomResourceOptions);
100
+ }
101
+ /**
102
+ * Input properties used for looking up and filtering BuildWebhook resources.
103
+ */
104
+ export interface BuildWebhookState {
105
+ /**
106
+ * Specifies where the webhook will be applied on which repositories.
107
+ */
108
+ criteria?: pulumi.Input<inputs.BuildWebhookCriteria>;
109
+ /**
110
+ * Custom HTTP headers you wish to use to invoke the Webhook, comprise of key/value pair.
111
+ */
112
+ customHttpHeaders?: pulumi.Input<{
113
+ [key: string]: pulumi.Input<string>;
114
+ }>;
115
+ /**
116
+ * Webhook description. Max length 1000 characters.
117
+ */
118
+ description?: pulumi.Input<string>;
119
+ /**
120
+ * Status of webhook. Default to 'true'
121
+ */
122
+ enabled?: pulumi.Input<boolean>;
123
+ /**
124
+ * List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values: "uploaded", "deleted", "promoted"
125
+ */
126
+ eventTypes?: pulumi.Input<pulumi.Input<string>[]>;
127
+ /**
128
+ * The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
129
+ */
130
+ key?: pulumi.Input<string>;
131
+ /**
132
+ * Proxy key from Artifactory Proxies setting
133
+ */
134
+ proxy?: pulumi.Input<string>;
135
+ /**
136
+ * Secret authentication token that will be sent to the configured URL
137
+ */
138
+ secret?: pulumi.Input<string>;
139
+ /**
140
+ * Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.
141
+ */
142
+ url?: pulumi.Input<string>;
143
+ }
144
+ /**
145
+ * The set of arguments for constructing a BuildWebhook resource.
146
+ */
147
+ export interface BuildWebhookArgs {
148
+ /**
149
+ * Specifies where the webhook will be applied on which repositories.
150
+ */
151
+ criteria: pulumi.Input<inputs.BuildWebhookCriteria>;
152
+ /**
153
+ * Custom HTTP headers you wish to use to invoke the Webhook, comprise of key/value pair.
154
+ */
155
+ customHttpHeaders?: pulumi.Input<{
156
+ [key: string]: pulumi.Input<string>;
157
+ }>;
158
+ /**
159
+ * Webhook description. Max length 1000 characters.
160
+ */
161
+ description?: pulumi.Input<string>;
162
+ /**
163
+ * Status of webhook. Default to 'true'
164
+ */
165
+ enabled?: pulumi.Input<boolean>;
166
+ /**
167
+ * List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values: "uploaded", "deleted", "promoted"
168
+ */
169
+ eventTypes: pulumi.Input<pulumi.Input<string>[]>;
170
+ /**
171
+ * The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
172
+ */
173
+ key: pulumi.Input<string>;
174
+ /**
175
+ * Proxy key from Artifactory Proxies setting
176
+ */
177
+ proxy?: pulumi.Input<string>;
178
+ /**
179
+ * Secret authentication token that will be sent to the configured URL
180
+ */
181
+ secret?: pulumi.Input<string>;
182
+ /**
183
+ * Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.
184
+ */
185
+ url: pulumi.Input<string>;
186
+ }