@pulumi/artifactory 5.5.1 → 5.5.2

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.
@@ -13,8 +13,8 @@ import * as pulumi from "@pulumi/pulumi";
13
13
  * pairName: "some-keypair",
14
14
  * pairType: "RSA",
15
15
  * alias: "foo-alias",
16
- * privateKey: fs.readFileSync("samples/rsa.priv"),
17
- * publicKey: fs.readFileSync("samples/rsa.pub"),
16
+ * privateKey: fs.readFileSync("samples/rsa.priv", "utf8"),
17
+ * publicKey: fs.readFileSync("samples/rsa.pub", "utf8"),
18
18
  * });
19
19
  * const terraform_local_test_alpine_repo_basic = new artifactory.AlpineRepository("terraform-local-test-alpine-repo-basic", {
20
20
  * key: "terraform-local-test-alpine-repo-basic",
@@ -19,8 +19,8 @@ const utilities = require("./utilities");
19
19
  * pairName: "some-keypair",
20
20
  * pairType: "RSA",
21
21
  * alias: "foo-alias",
22
- * privateKey: fs.readFileSync("samples/rsa.priv"),
23
- * publicKey: fs.readFileSync("samples/rsa.pub"),
22
+ * privateKey: fs.readFileSync("samples/rsa.priv", "utf8"),
23
+ * publicKey: fs.readFileSync("samples/rsa.pub", "utf8"),
24
24
  * });
25
25
  * const terraform_local_test_alpine_repo_basic = new artifactory.AlpineRepository("terraform-local-test-alpine-repo-basic", {
26
26
  * key: "terraform-local-test-alpine-repo-basic",
package/certificate.d.ts CHANGED
@@ -12,7 +12,7 @@ import * as pulumi from "@pulumi/pulumi";
12
12
  * // Create a new Artifactory certificate called my-cert
13
13
  * const my_cert = new artifactory.Certificate("my-cert", {
14
14
  * alias: "my-cert",
15
- * content: fs.readFileSync("/path/to/bundle.pem"),
15
+ * content: fs.readFileSync("/path/to/bundle.pem", "utf8"),
16
16
  * });
17
17
  * // This can then be used by a remote repository
18
18
  * const my_remote = new artifactory.RemoteMavenRepository("my-remote", {clientTlsCertificate: my_cert.alias});
package/certificate.js CHANGED
@@ -18,7 +18,7 @@ const utilities = require("./utilities");
18
18
  * // Create a new Artifactory certificate called my-cert
19
19
  * const my_cert = new artifactory.Certificate("my-cert", {
20
20
  * alias: "my-cert",
21
- * content: fs.readFileSync("/path/to/bundle.pem"),
21
+ * content: fs.readFileSync("/path/to/bundle.pem", "utf8"),
22
22
  * });
23
23
  * // This can then be used by a remote repository
24
24
  * const my_remote = new artifactory.RemoteMavenRepository("my-remote", {clientTlsCertificate: my_cert.alias});
@@ -13,15 +13,15 @@ import * as pulumi from "@pulumi/pulumi";
13
13
  * pairName: `some-keypair${random_id.randid.id}`,
14
14
  * pairType: "GPG",
15
15
  * alias: "foo-alias1",
16
- * privateKey: fs.readFileSync("samples/gpg.priv"),
17
- * publicKey: fs.readFileSync("samples/gpg.pub"),
16
+ * privateKey: fs.readFileSync("samples/gpg.priv", "utf8"),
17
+ * publicKey: fs.readFileSync("samples/gpg.pub", "utf8"),
18
18
  * });
19
19
  * const some_keypairGPG2 = new artifactory.Keypair("some-keypairGPG2", {
20
20
  * pairName: `some-keypair4${random_id.randid.id}`,
21
21
  * pairType: "GPG",
22
22
  * alias: "foo-alias2",
23
- * privateKey: fs.readFileSync("samples/gpg.priv"),
24
- * publicKey: fs.readFileSync("samples/gpg.pub"),
23
+ * privateKey: fs.readFileSync("samples/gpg.priv", "utf8"),
24
+ * publicKey: fs.readFileSync("samples/gpg.pub", "utf8"),
25
25
  * });
26
26
  * const my_debian_repo = new artifactory.DebianRepository("my-debian-repo", {
27
27
  * key: "my-debian-repo",
@@ -19,15 +19,15 @@ const utilities = require("./utilities");
19
19
  * pairName: `some-keypair${random_id.randid.id}`,
20
20
  * pairType: "GPG",
21
21
  * alias: "foo-alias1",
22
- * privateKey: fs.readFileSync("samples/gpg.priv"),
23
- * publicKey: fs.readFileSync("samples/gpg.pub"),
22
+ * privateKey: fs.readFileSync("samples/gpg.priv", "utf8"),
23
+ * publicKey: fs.readFileSync("samples/gpg.pub", "utf8"),
24
24
  * });
25
25
  * const some_keypairGPG2 = new artifactory.Keypair("some-keypairGPG2", {
26
26
  * pairName: `some-keypair4${random_id.randid.id}`,
27
27
  * pairType: "GPG",
28
28
  * alias: "foo-alias2",
29
- * privateKey: fs.readFileSync("samples/gpg.priv"),
30
- * publicKey: fs.readFileSync("samples/gpg.pub"),
29
+ * privateKey: fs.readFileSync("samples/gpg.priv", "utf8"),
30
+ * publicKey: fs.readFileSync("samples/gpg.pub", "utf8"),
31
31
  * });
32
32
  * const my_debian_repo = new artifactory.DebianRepository("my-debian-repo", {
33
33
  * key: "my-debian-repo",
@@ -13,7 +13,7 @@ import * as pulumi from "@pulumi/pulumi";
13
13
  *
14
14
  * const my_key = new artifactory.DistributionPublicKey("my-key", {
15
15
  * alias: "my-key",
16
- * publicKey: fs.readFileSync("samples/rsa.pub"),
16
+ * publicKey: fs.readFileSync("samples/rsa.pub", "utf8"),
17
17
  * });
18
18
  * ```
19
19
  *
@@ -19,7 +19,7 @@ const utilities = require("./utilities");
19
19
  *
20
20
  * const my_key = new artifactory.DistributionPublicKey("my-key", {
21
21
  * alias: "my-key",
22
- * publicKey: fs.readFileSync("samples/rsa.pub"),
22
+ * publicKey: fs.readFileSync("samples/rsa.pub", "utf8"),
23
23
  * });
24
24
  * ```
25
25
  *
package/keypair.d.ts CHANGED
@@ -14,8 +14,8 @@ import * as pulumi from "@pulumi/pulumi";
14
14
  * pairName: "some-keypair-6543461672124900137",
15
15
  * pairType: "RSA",
16
16
  * alias: "some-alias-6543461672124900137",
17
- * privateKey: fs.readFileSync("samples/rsa.priv"),
18
- * publicKey: fs.readFileSync("samples/rsa.pub"),
17
+ * privateKey: fs.readFileSync("samples/rsa.priv", "utf8"),
18
+ * publicKey: fs.readFileSync("samples/rsa.pub", "utf8"),
19
19
  * passphrase: "PASSPHRASE",
20
20
  * });
21
21
  * ```
package/keypair.js CHANGED
@@ -20,8 +20,8 @@ const utilities = require("./utilities");
20
20
  * pairName: "some-keypair-6543461672124900137",
21
21
  * pairType: "RSA",
22
22
  * alias: "some-alias-6543461672124900137",
23
- * privateKey: fs.readFileSync("samples/rsa.priv"),
24
- * publicKey: fs.readFileSync("samples/rsa.pub"),
23
+ * privateKey: fs.readFileSync("samples/rsa.priv", "utf8"),
24
+ * publicKey: fs.readFileSync("samples/rsa.pub", "utf8"),
25
25
  * passphrase: "PASSPHRASE",
26
26
  * });
27
27
  * ```
@@ -13,15 +13,15 @@ import * as pulumi from "@pulumi/pulumi";
13
13
  * pairName: `some-keypair${random_id.randid.id}`,
14
14
  * pairType: "GPG",
15
15
  * alias: "foo-alias1",
16
- * privateKey: fs.readFileSync("samples/gpg.priv"),
17
- * publicKey: fs.readFileSync("samples/gpg.pub"),
16
+ * privateKey: fs.readFileSync("samples/gpg.priv", "utf8"),
17
+ * publicKey: fs.readFileSync("samples/gpg.pub", "utf8"),
18
18
  * });
19
19
  * const some_keypair_gpg_2 = new artifactory.Keypair("some-keypair-gpg-2", {
20
20
  * pairName: `some-keypair${random_id.randid.id}`,
21
21
  * pairType: "GPG",
22
22
  * alias: "foo-alias2",
23
- * privateKey: fs.readFileSync("samples/gpg.priv"),
24
- * publicKey: fs.readFileSync("samples/gpg.pub"),
23
+ * privateKey: fs.readFileSync("samples/gpg.priv", "utf8"),
24
+ * publicKey: fs.readFileSync("samples/gpg.pub", "utf8"),
25
25
  * });
26
26
  * const terraform_local_test_rpm_repo_basic = new artifactory.LocalRpmRepository("terraform-local-test-rpm-repo-basic", {
27
27
  * key: "terraform-local-test-rpm-repo-basic",
@@ -19,15 +19,15 @@ const utilities = require("./utilities");
19
19
  * pairName: `some-keypair${random_id.randid.id}`,
20
20
  * pairType: "GPG",
21
21
  * alias: "foo-alias1",
22
- * privateKey: fs.readFileSync("samples/gpg.priv"),
23
- * publicKey: fs.readFileSync("samples/gpg.pub"),
22
+ * privateKey: fs.readFileSync("samples/gpg.priv", "utf8"),
23
+ * publicKey: fs.readFileSync("samples/gpg.pub", "utf8"),
24
24
  * });
25
25
  * const some_keypair_gpg_2 = new artifactory.Keypair("some-keypair-gpg-2", {
26
26
  * pairName: `some-keypair${random_id.randid.id}`,
27
27
  * pairType: "GPG",
28
28
  * alias: "foo-alias2",
29
- * privateKey: fs.readFileSync("samples/gpg.priv"),
30
- * publicKey: fs.readFileSync("samples/gpg.pub"),
29
+ * privateKey: fs.readFileSync("samples/gpg.priv", "utf8"),
30
+ * publicKey: fs.readFileSync("samples/gpg.pub", "utf8"),
31
31
  * });
32
32
  * const terraform_local_test_rpm_repo_basic = new artifactory.LocalRpmRepository("terraform-local-test-rpm-repo-basic", {
33
33
  * key: "terraform-local-test-rpm-repo-basic",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/artifactory",
3
- "version": "v5.5.1",
3
+ "version": "v5.5.2",
4
4
  "description": "A Pulumi package for creating and managing artifactory cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
package/utilities.d.ts CHANGED
@@ -1,4 +1,8 @@
1
+ import * as pulumi from "@pulumi/pulumi";
1
2
  export declare function getEnv(...vars: string[]): string | undefined;
2
3
  export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
3
4
  export declare function getEnvNumber(...vars: string[]): number | undefined;
4
5
  export declare function getVersion(): string;
6
+ export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
7
+ property?: string;
8
+ }): Promise<T>;
package/utilities.js CHANGED
@@ -1,8 +1,18 @@
1
1
  "use strict";
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
4
13
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
14
+ exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
15
+ const runtime = require("@pulumi/pulumi/runtime");
6
16
  function getEnv(...vars) {
7
17
  for (const v of vars) {
8
18
  const value = process.env[v];
@@ -66,4 +76,26 @@ function lazyLoad(exports, props, loadModule) {
66
76
  }
67
77
  }
68
78
  exports.lazyLoad = lazyLoad;
79
+ function callAsync(tok, props, res, opts) {
80
+ return __awaiter(this, void 0, void 0, function* () {
81
+ const o = runtime.call(tok, props, res);
82
+ const value = yield o.promise(true /*withUnknowns*/);
83
+ const isKnown = yield o.isKnown;
84
+ const isSecret = yield o.isSecret;
85
+ const problem = !isKnown ? "an unknown value"
86
+ : isSecret ? "a secret value"
87
+ : undefined;
88
+ // Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
89
+ if (problem) {
90
+ throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
91
+ "This is an error in the provider, please report this to the provider developer.");
92
+ }
93
+ // Extract a single property if requested.
94
+ if (opts && opts.property) {
95
+ return value[opts.property];
96
+ }
97
+ return value;
98
+ });
99
+ }
100
+ exports.callAsync = callAsync;
69
101
  //# sourceMappingURL=utilities.js.map
package/utilities.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAGjF,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,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EAAE;YACrC,UAAU,EAAE,IAAI;YAChB,GAAG,EAAE;gBACD,OAAO,UAAU,EAAE,CAAC,QAAQ,CAAC,CAAC;YAClC,CAAC;SACJ,CAAC,CAAC;KACN;AACL,CAAC;AATD,4BASC;AAED,SAAsB,SAAS,CAC3B,GAAW,EACX,KAAoB,EACpB,GAAqB,EACrB,IAA0B;;QAE1B,MAAM,CAAC,GAAQ,OAAO,CAAC,IAAI,CAAI,GAAG,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;QAChD,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACrD,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,OAAO,CAAC;QAChC,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,QAAQ,CAAC;QAClC,MAAM,OAAO,GACT,CAAC,OAAO,CAAC,CAAC,CAAC,kBAAkB;YAC7B,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB;gBAC7B,CAAC,CAAC,SAAS,CAAC;QAChB,sGAAsG;QACtG,IAAI,OAAO,EAAE;YACT,MAAM,IAAI,KAAK,CAAC,0BAA0B,GAAG,0BAA0B,OAAO,IAAI;gBAC9E,iFAAiF,CAAC,CAAC;SAC1F;QACD,0CAA0C;QAC1C,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE;YACvB,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SAC/B;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;CAAA;AAxBD,8BAwBC"}
@@ -14,15 +14,15 @@ import * as pulumi from "@pulumi/pulumi";
14
14
  * pairName: "primary-keypair",
15
15
  * pairType: "GPG",
16
16
  * alias: "foo-alias-1",
17
- * privateKey: fs.readFileSync("samples/gpg.priv"),
18
- * publicKey: fs.readFileSync("samples/gpg.pub"),
17
+ * privateKey: fs.readFileSync("samples/gpg.priv", "utf8"),
18
+ * publicKey: fs.readFileSync("samples/gpg.pub", "utf8"),
19
19
  * });
20
20
  * const secondary_keypair = new artifactory.Keypair("secondary-keypair", {
21
21
  * pairName: "secondary-keypair",
22
22
  * pairType: "GPG",
23
23
  * alias: "foo-alias-2",
24
- * privateKey: fs.readFileSync("samples/gpg.priv"),
25
- * publicKey: fs.readFileSync("samples/gpg.pub"),
24
+ * privateKey: fs.readFileSync("samples/gpg.priv", "utf8"),
25
+ * publicKey: fs.readFileSync("samples/gpg.pub", "utf8"),
26
26
  * });
27
27
  * const foo_rpm_virtual = new artifactory.VirtualRpmRepository("foo-rpm-virtual", {
28
28
  * key: "foo-rpm-virtual",
@@ -20,15 +20,15 @@ const utilities = require("./utilities");
20
20
  * pairName: "primary-keypair",
21
21
  * pairType: "GPG",
22
22
  * alias: "foo-alias-1",
23
- * privateKey: fs.readFileSync("samples/gpg.priv"),
24
- * publicKey: fs.readFileSync("samples/gpg.pub"),
23
+ * privateKey: fs.readFileSync("samples/gpg.priv", "utf8"),
24
+ * publicKey: fs.readFileSync("samples/gpg.pub", "utf8"),
25
25
  * });
26
26
  * const secondary_keypair = new artifactory.Keypair("secondary-keypair", {
27
27
  * pairName: "secondary-keypair",
28
28
  * pairType: "GPG",
29
29
  * alias: "foo-alias-2",
30
- * privateKey: fs.readFileSync("samples/gpg.priv"),
31
- * publicKey: fs.readFileSync("samples/gpg.pub"),
30
+ * privateKey: fs.readFileSync("samples/gpg.priv", "utf8"),
31
+ * publicKey: fs.readFileSync("samples/gpg.pub", "utf8"),
32
32
  * });
33
33
  * const foo_rpm_virtual = new artifactory.VirtualRpmRepository("foo-rpm-virtual", {
34
34
  * key: "foo-rpm-virtual",