@pulumi/kong 4.5.0 → 4.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/certificate.js +25 -23
- package/certificate.js.map +1 -1
- package/consumer.js +18 -18
- package/consumer.js.map +1 -1
- package/consumerAcl.d.ts +5 -6
- package/consumerAcl.js +27 -28
- package/consumerAcl.js.map +1 -1
- package/consumerBasicAuth.d.ts +3 -3
- package/consumerBasicAuth.js +25 -25
- package/consumerBasicAuth.js.map +1 -1
- package/consumerJwtAuth.d.ts +5 -6
- package/consumerJwtAuth.js +27 -28
- package/consumerJwtAuth.js.map +1 -1
- package/consumerKeyAuth.js +23 -21
- package/consumerKeyAuth.js.map +1 -1
- package/consumerOauth2.d.ts +5 -6
- package/consumerOauth2.js +27 -28
- package/consumerOauth2.js.map +1 -1
- package/index.d.ts +39 -13
- package/index.js +40 -56
- package/index.js.map +1 -1
- package/package.json +4 -4
- package/package.json.bak +3 -3
- package/plugin.d.ts +10 -8
- package/plugin.js +32 -30
- package/plugin.js.map +1 -1
- package/provider.js +10 -10
- package/provider.js.map +1 -1
- package/route.d.ts +2 -1
- package/route.js +22 -22
- package/route.js.map +1 -1
- package/service.js +22 -22
- package/service.js.map +1 -1
- package/target.d.ts +1 -1
- package/target.js +23 -23
- package/target.js.map +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +1 -1
- package/types/output.d.ts +1 -1
- package/upstream.d.ts +2 -1
- package/upstream.js +22 -22
- package/upstream.js.map +1 -1
- package/utilities.d.ts +4 -0
- package/utilities.js +45 -1
- package/utilities.js.map +1 -1
- package/package.json.dev +0 -27
- package/scripts/install-pulumi-plugin.js +0 -21
package/consumerOauth2.js
CHANGED
|
@@ -16,21 +16,20 @@ const utilities = require("./utilities");
|
|
|
16
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
17
17
|
* import * as kong from "@pulumi/kong";
|
|
18
18
|
*
|
|
19
|
-
* const myConsumer = new kong.Consumer("
|
|
19
|
+
* const myConsumer = new kong.Consumer("myConsumer", {
|
|
20
20
|
* customId: "123",
|
|
21
21
|
* username: "User1",
|
|
22
22
|
* });
|
|
23
|
-
* const oauth2Plugin = new kong.Plugin("
|
|
24
|
-
* configJson: ` {
|
|
23
|
+
* const oauth2Plugin = new kong.Plugin("oauth2Plugin", {configJson: ` {
|
|
25
24
|
* "global_credentials": true,
|
|
26
25
|
* "enable_password_grant": true,
|
|
27
26
|
* "token_expiration": 180,
|
|
28
27
|
* "refresh_token_ttl": 180,
|
|
29
28
|
* "provision_key": "testprovisionkey"
|
|
30
29
|
* }
|
|
31
|
-
*
|
|
32
|
-
* });
|
|
33
|
-
* const consumerOauth2 = new kong.ConsumerOauth2("
|
|
30
|
+
*
|
|
31
|
+
* `});
|
|
32
|
+
* const consumerOauth2 = new kong.ConsumerOauth2("consumerOauth2", {
|
|
34
33
|
* clientId: "client_id",
|
|
35
34
|
* clientSecret: "client_secret",
|
|
36
35
|
* consumerId: myConsumer.id,
|
|
@@ -43,6 +42,28 @@ const utilities = require("./utilities");
|
|
|
43
42
|
* ```
|
|
44
43
|
*/
|
|
45
44
|
class ConsumerOauth2 extends pulumi.CustomResource {
|
|
45
|
+
/**
|
|
46
|
+
* Get an existing ConsumerOauth2 resource's state with the given name, ID, and optional extra
|
|
47
|
+
* properties used to qualify the lookup.
|
|
48
|
+
*
|
|
49
|
+
* @param name The _unique_ name of the resulting resource.
|
|
50
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
51
|
+
* @param state Any extra arguments used during the lookup.
|
|
52
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
53
|
+
*/
|
|
54
|
+
static get(name, id, state, opts) {
|
|
55
|
+
return new ConsumerOauth2(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Returns true if the given object is an instance of ConsumerOauth2. This is designed to work even
|
|
59
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
60
|
+
*/
|
|
61
|
+
static isInstance(obj) {
|
|
62
|
+
if (obj === undefined || obj === null) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
return obj['__pulumiType'] === ConsumerOauth2.__pulumiType;
|
|
66
|
+
}
|
|
46
67
|
constructor(name, argsOrState, opts) {
|
|
47
68
|
let resourceInputs = {};
|
|
48
69
|
opts = opts || {};
|
|
@@ -75,28 +96,6 @@ class ConsumerOauth2 extends pulumi.CustomResource {
|
|
|
75
96
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
76
97
|
super(ConsumerOauth2.__pulumiType, name, resourceInputs, opts);
|
|
77
98
|
}
|
|
78
|
-
/**
|
|
79
|
-
* Get an existing ConsumerOauth2 resource's state with the given name, ID, and optional extra
|
|
80
|
-
* properties used to qualify the lookup.
|
|
81
|
-
*
|
|
82
|
-
* @param name The _unique_ name of the resulting resource.
|
|
83
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
84
|
-
* @param state Any extra arguments used during the lookup.
|
|
85
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
86
|
-
*/
|
|
87
|
-
static get(name, id, state, opts) {
|
|
88
|
-
return new ConsumerOauth2(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Returns true if the given object is an instance of ConsumerOauth2. This is designed to work even
|
|
92
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
93
|
-
*/
|
|
94
|
-
static isInstance(obj) {
|
|
95
|
-
if (obj === undefined || obj === null) {
|
|
96
|
-
return false;
|
|
97
|
-
}
|
|
98
|
-
return obj['__pulumiType'] === ConsumerOauth2.__pulumiType;
|
|
99
|
-
}
|
|
100
99
|
}
|
|
101
100
|
exports.ConsumerOauth2 = ConsumerOauth2;
|
|
102
101
|
/** @internal */
|
package/consumerOauth2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumerOauth2.js","sourceRoot":"","sources":["../consumerOauth2.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"consumerOauth2.js","sourceRoot":"","sources":["../consumerOauth2.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IAuCD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,YA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AClE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AA/FL,wCAgGC;AAlFG,gBAAgB;AACO,2BAAY,GAAG,0CAA0C,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -1,16 +1,42 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
1
|
+
export { CertificateArgs, CertificateState } from "./certificate";
|
|
2
|
+
export type Certificate = import("./certificate").Certificate;
|
|
3
|
+
export declare const Certificate: typeof import("./certificate").Certificate;
|
|
4
|
+
export { ConsumerArgs, ConsumerState } from "./consumer";
|
|
5
|
+
export type Consumer = import("./consumer").Consumer;
|
|
6
|
+
export declare const Consumer: typeof import("./consumer").Consumer;
|
|
7
|
+
export { ConsumerAclArgs, ConsumerAclState } from "./consumerAcl";
|
|
8
|
+
export type ConsumerAcl = import("./consumerAcl").ConsumerAcl;
|
|
9
|
+
export declare const ConsumerAcl: typeof import("./consumerAcl").ConsumerAcl;
|
|
10
|
+
export { ConsumerBasicAuthArgs, ConsumerBasicAuthState } from "./consumerBasicAuth";
|
|
11
|
+
export type ConsumerBasicAuth = import("./consumerBasicAuth").ConsumerBasicAuth;
|
|
12
|
+
export declare const ConsumerBasicAuth: typeof import("./consumerBasicAuth").ConsumerBasicAuth;
|
|
13
|
+
export { ConsumerJwtAuthArgs, ConsumerJwtAuthState } from "./consumerJwtAuth";
|
|
14
|
+
export type ConsumerJwtAuth = import("./consumerJwtAuth").ConsumerJwtAuth;
|
|
15
|
+
export declare const ConsumerJwtAuth: typeof import("./consumerJwtAuth").ConsumerJwtAuth;
|
|
16
|
+
export { ConsumerKeyAuthArgs, ConsumerKeyAuthState } from "./consumerKeyAuth";
|
|
17
|
+
export type ConsumerKeyAuth = import("./consumerKeyAuth").ConsumerKeyAuth;
|
|
18
|
+
export declare const ConsumerKeyAuth: typeof import("./consumerKeyAuth").ConsumerKeyAuth;
|
|
19
|
+
export { ConsumerOauth2Args, ConsumerOauth2State } from "./consumerOauth2";
|
|
20
|
+
export type ConsumerOauth2 = import("./consumerOauth2").ConsumerOauth2;
|
|
21
|
+
export declare const ConsumerOauth2: typeof import("./consumerOauth2").ConsumerOauth2;
|
|
22
|
+
export { PluginArgs, PluginState } from "./plugin";
|
|
23
|
+
export type Plugin = import("./plugin").Plugin;
|
|
24
|
+
export declare const Plugin: typeof import("./plugin").Plugin;
|
|
25
|
+
export { ProviderArgs } from "./provider";
|
|
26
|
+
export type Provider = import("./provider").Provider;
|
|
27
|
+
export declare const Provider: typeof import("./provider").Provider;
|
|
28
|
+
export { RouteArgs, RouteState } from "./route";
|
|
29
|
+
export type Route = import("./route").Route;
|
|
30
|
+
export declare const Route: typeof import("./route").Route;
|
|
31
|
+
export { ServiceArgs, ServiceState } from "./service";
|
|
32
|
+
export type Service = import("./service").Service;
|
|
33
|
+
export declare const Service: typeof import("./service").Service;
|
|
34
|
+
export { TargetArgs, TargetState } from "./target";
|
|
35
|
+
export type Target = import("./target").Target;
|
|
36
|
+
export declare const Target: typeof import("./target").Target;
|
|
37
|
+
export { UpstreamArgs, UpstreamState } from "./upstream";
|
|
38
|
+
export type Upstream = import("./upstream").Upstream;
|
|
39
|
+
export declare const Upstream: typeof import("./upstream").Upstream;
|
|
14
40
|
import * as config from "./config";
|
|
15
41
|
import * as types from "./types";
|
|
16
42
|
export { config, types, };
|
package/index.js
CHANGED
|
@@ -1,84 +1,69 @@
|
|
|
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
-
if (k2 === undefined) k2 = k;
|
|
6
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
-
}
|
|
10
|
-
Object.defineProperty(o, k2, desc);
|
|
11
|
-
}) : (function(o, m, k, k2) {
|
|
12
|
-
if (k2 === undefined) k2 = k;
|
|
13
|
-
o[k2] = m[k];
|
|
14
|
-
}));
|
|
15
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
-
};
|
|
18
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.types = exports.config = void 0;
|
|
5
|
+
exports.types = exports.config = exports.Upstream = exports.Target = exports.Service = exports.Route = exports.Provider = exports.Plugin = exports.ConsumerOauth2 = exports.ConsumerKeyAuth = exports.ConsumerJwtAuth = exports.ConsumerBasicAuth = exports.ConsumerAcl = exports.Consumer = exports.Certificate = void 0;
|
|
20
6
|
const pulumi = require("@pulumi/pulumi");
|
|
21
7
|
const utilities = require("./utilities");
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
8
|
+
exports.Certificate = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["Certificate"], () => require("./certificate"));
|
|
10
|
+
exports.Consumer = null;
|
|
11
|
+
utilities.lazyLoad(exports, ["Consumer"], () => require("./consumer"));
|
|
12
|
+
exports.ConsumerAcl = null;
|
|
13
|
+
utilities.lazyLoad(exports, ["ConsumerAcl"], () => require("./consumerAcl"));
|
|
14
|
+
exports.ConsumerBasicAuth = null;
|
|
15
|
+
utilities.lazyLoad(exports, ["ConsumerBasicAuth"], () => require("./consumerBasicAuth"));
|
|
16
|
+
exports.ConsumerJwtAuth = null;
|
|
17
|
+
utilities.lazyLoad(exports, ["ConsumerJwtAuth"], () => require("./consumerJwtAuth"));
|
|
18
|
+
exports.ConsumerKeyAuth = null;
|
|
19
|
+
utilities.lazyLoad(exports, ["ConsumerKeyAuth"], () => require("./consumerKeyAuth"));
|
|
20
|
+
exports.ConsumerOauth2 = null;
|
|
21
|
+
utilities.lazyLoad(exports, ["ConsumerOauth2"], () => require("./consumerOauth2"));
|
|
22
|
+
exports.Plugin = null;
|
|
23
|
+
utilities.lazyLoad(exports, ["Plugin"], () => require("./plugin"));
|
|
24
|
+
exports.Provider = null;
|
|
25
|
+
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
|
26
|
+
exports.Route = null;
|
|
27
|
+
utilities.lazyLoad(exports, ["Route"], () => require("./route"));
|
|
28
|
+
exports.Service = null;
|
|
29
|
+
utilities.lazyLoad(exports, ["Service"], () => require("./service"));
|
|
30
|
+
exports.Target = null;
|
|
31
|
+
utilities.lazyLoad(exports, ["Target"], () => require("./target"));
|
|
32
|
+
exports.Upstream = null;
|
|
33
|
+
utilities.lazyLoad(exports, ["Upstream"], () => require("./upstream"));
|
|
36
34
|
// Export sub-modules:
|
|
37
35
|
const config = require("./config");
|
|
38
36
|
exports.config = config;
|
|
39
37
|
const types = require("./types");
|
|
40
38
|
exports.types = types;
|
|
41
|
-
// Import resources to register:
|
|
42
|
-
const certificate_1 = require("./certificate");
|
|
43
|
-
const consumer_1 = require("./consumer");
|
|
44
|
-
const consumerAcl_1 = require("./consumerAcl");
|
|
45
|
-
const consumerBasicAuth_1 = require("./consumerBasicAuth");
|
|
46
|
-
const consumerJwtAuth_1 = require("./consumerJwtAuth");
|
|
47
|
-
const consumerKeyAuth_1 = require("./consumerKeyAuth");
|
|
48
|
-
const consumerOauth2_1 = require("./consumerOauth2");
|
|
49
|
-
const plugin_1 = require("./plugin");
|
|
50
|
-
const route_1 = require("./route");
|
|
51
|
-
const service_1 = require("./service");
|
|
52
|
-
const target_1 = require("./target");
|
|
53
|
-
const upstream_1 = require("./upstream");
|
|
54
39
|
const _module = {
|
|
55
40
|
version: utilities.getVersion(),
|
|
56
41
|
construct: (name, type, urn) => {
|
|
57
42
|
switch (type) {
|
|
58
43
|
case "kong:index/certificate:Certificate":
|
|
59
|
-
return new
|
|
44
|
+
return new exports.Certificate(name, undefined, { urn });
|
|
60
45
|
case "kong:index/consumer:Consumer":
|
|
61
|
-
return new
|
|
46
|
+
return new exports.Consumer(name, undefined, { urn });
|
|
62
47
|
case "kong:index/consumerAcl:ConsumerAcl":
|
|
63
|
-
return new
|
|
48
|
+
return new exports.ConsumerAcl(name, undefined, { urn });
|
|
64
49
|
case "kong:index/consumerBasicAuth:ConsumerBasicAuth":
|
|
65
|
-
return new
|
|
50
|
+
return new exports.ConsumerBasicAuth(name, undefined, { urn });
|
|
66
51
|
case "kong:index/consumerJwtAuth:ConsumerJwtAuth":
|
|
67
|
-
return new
|
|
52
|
+
return new exports.ConsumerJwtAuth(name, undefined, { urn });
|
|
68
53
|
case "kong:index/consumerKeyAuth:ConsumerKeyAuth":
|
|
69
|
-
return new
|
|
54
|
+
return new exports.ConsumerKeyAuth(name, undefined, { urn });
|
|
70
55
|
case "kong:index/consumerOauth2:ConsumerOauth2":
|
|
71
|
-
return new
|
|
56
|
+
return new exports.ConsumerOauth2(name, undefined, { urn });
|
|
72
57
|
case "kong:index/plugin:Plugin":
|
|
73
|
-
return new
|
|
58
|
+
return new exports.Plugin(name, undefined, { urn });
|
|
74
59
|
case "kong:index/route:Route":
|
|
75
|
-
return new
|
|
60
|
+
return new exports.Route(name, undefined, { urn });
|
|
76
61
|
case "kong:index/service:Service":
|
|
77
|
-
return new
|
|
62
|
+
return new exports.Service(name, undefined, { urn });
|
|
78
63
|
case "kong:index/target:Target":
|
|
79
|
-
return new
|
|
64
|
+
return new exports.Target(name, undefined, { urn });
|
|
80
65
|
case "kong:index/upstream:Upstream":
|
|
81
|
-
return new
|
|
66
|
+
return new exports.Upstream(name, undefined, { urn });
|
|
82
67
|
default:
|
|
83
68
|
throw new Error(`unknown resource type ${type}`);
|
|
84
69
|
}
|
|
@@ -96,14 +81,13 @@ pulumi.runtime.registerResourceModule("kong", "index/route", _module);
|
|
|
96
81
|
pulumi.runtime.registerResourceModule("kong", "index/service", _module);
|
|
97
82
|
pulumi.runtime.registerResourceModule("kong", "index/target", _module);
|
|
98
83
|
pulumi.runtime.registerResourceModule("kong", "index/upstream", _module);
|
|
99
|
-
const provider_1 = require("./provider");
|
|
100
84
|
pulumi.runtime.registerResourcePackage("kong", {
|
|
101
85
|
version: utilities.getVersion(),
|
|
102
86
|
constructProvider: (name, type, urn) => {
|
|
103
87
|
if (type !== "pulumi:providers:kong") {
|
|
104
88
|
throw new Error(`unknown provider type ${type}`);
|
|
105
89
|
}
|
|
106
|
-
return new
|
|
90
|
+
return new exports.Provider(name, undefined, { urn });
|
|
107
91
|
},
|
|
108
92
|
});
|
|
109
93
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAK5B,QAAA,WAAW,GAA+C,IAAW,CAAC;AACnF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;AAIhE,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAI1D,QAAA,WAAW,GAA+C,IAAW,CAAC;AACnF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;AAIhE,QAAA,iBAAiB,GAA2D,IAAW,CAAC;AACrG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,mBAAmB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC;AAI5E,QAAA,eAAe,GAAuD,IAAW,CAAC;AAC/F,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,iBAAiB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAIxE,QAAA,eAAe,GAAuD,IAAW,CAAC;AAC/F,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,iBAAiB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,mBAAmB,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AAsB,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,CAAC,CAAA;AACtE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAA;AACxE,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,MAAM,EAAE;IAC3C,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,uBAAuB,EAAE;YAClC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/kong",
|
|
3
|
-
"version": "v4.5.
|
|
3
|
+
"version": "v4.5.1",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Kong resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
"repository": "https://github.com/pulumi/pulumi-kong",
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsc"
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource kong v4.5.0"
|
|
13
|
+
"build": "tsc"
|
|
15
14
|
},
|
|
16
15
|
"dependencies": {
|
|
17
16
|
"@pulumi/pulumi": "^3.0.0"
|
|
@@ -22,6 +21,7 @@
|
|
|
22
21
|
"typescript": "^4.3.5"
|
|
23
22
|
},
|
|
24
23
|
"pulumi": {
|
|
25
|
-
"resource": true
|
|
24
|
+
"resource": true,
|
|
25
|
+
"name": "kong"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/package.json.bak
CHANGED
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
"repository": "https://github.com/pulumi/pulumi-kong",
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsc"
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource kong ${VERSION}"
|
|
13
|
+
"build": "tsc"
|
|
15
14
|
},
|
|
16
15
|
"dependencies": {
|
|
17
16
|
"@pulumi/pulumi": "^3.0.0"
|
|
@@ -22,6 +21,7 @@
|
|
|
22
21
|
"typescript": "^4.3.5"
|
|
23
22
|
},
|
|
24
23
|
"pulumi": {
|
|
25
|
-
"resource": true
|
|
24
|
+
"resource": true,
|
|
25
|
+
"name": "kong"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/plugin.d.ts
CHANGED
|
@@ -11,13 +11,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
11
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
12
|
* import * as kong from "@pulumi/kong";
|
|
13
13
|
*
|
|
14
|
-
* const rateLimit = new kong.Plugin("
|
|
15
|
-
* configJson: ` {
|
|
14
|
+
* const rateLimit = new kong.Plugin("rateLimit", {configJson: ` {
|
|
16
15
|
* "second": 5,
|
|
17
16
|
* "hour" : 1000
|
|
18
17
|
* }
|
|
19
|
-
*
|
|
20
|
-
* });
|
|
18
|
+
*
|
|
19
|
+
* `});
|
|
21
20
|
* ```
|
|
22
21
|
* To apply a plugin to a consumer use the `consumerId` property, for example:
|
|
23
22
|
*
|
|
@@ -25,15 +24,16 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
25
24
|
* import * as pulumi from "@pulumi/pulumi";
|
|
26
25
|
* import * as kong from "@pulumi/kong";
|
|
27
26
|
*
|
|
28
|
-
* const pluginConsumer = new kong.Consumer("
|
|
27
|
+
* const pluginConsumer = new kong.Consumer("pluginConsumer", {
|
|
29
28
|
* customId: "567",
|
|
30
29
|
* username: "PluginUser",
|
|
31
30
|
* });
|
|
32
|
-
* const rateLimit = new kong.Plugin("
|
|
31
|
+
* const rateLimit = new kong.Plugin("rateLimit", {
|
|
33
32
|
* configJson: ` {
|
|
34
33
|
* "second": 5,
|
|
35
34
|
* "hour" : 1000
|
|
36
35
|
* }
|
|
36
|
+
*
|
|
37
37
|
* `,
|
|
38
38
|
* consumerId: pluginConsumer.id,
|
|
39
39
|
* });
|
|
@@ -49,11 +49,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
49
49
|
* host: "test.org",
|
|
50
50
|
* protocol: "http",
|
|
51
51
|
* });
|
|
52
|
-
* const rateLimit = new kong.Plugin("
|
|
52
|
+
* const rateLimit = new kong.Plugin("rateLimit", {
|
|
53
53
|
* configJson: ` {
|
|
54
54
|
* "second": 10,
|
|
55
55
|
* "hour" : 2000
|
|
56
56
|
* }
|
|
57
|
+
*
|
|
57
58
|
* `,
|
|
58
59
|
* serviceId: service.id,
|
|
59
60
|
* });
|
|
@@ -69,11 +70,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
69
70
|
* host: "test.org",
|
|
70
71
|
* protocol: "http",
|
|
71
72
|
* });
|
|
72
|
-
* const rateLimit = new kong.Plugin("
|
|
73
|
+
* const rateLimit = new kong.Plugin("rateLimit", {
|
|
73
74
|
* configJson: ` {
|
|
74
75
|
* "second": 11,
|
|
75
76
|
* "hour" : 4000
|
|
76
77
|
* }
|
|
78
|
+
*
|
|
77
79
|
* `,
|
|
78
80
|
* enabled: true,
|
|
79
81
|
* serviceId: service.id,
|
package/plugin.js
CHANGED
|
@@ -17,13 +17,12 @@ const utilities = require("./utilities");
|
|
|
17
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
18
18
|
* import * as kong from "@pulumi/kong";
|
|
19
19
|
*
|
|
20
|
-
* const rateLimit = new kong.Plugin("
|
|
21
|
-
* configJson: ` {
|
|
20
|
+
* const rateLimit = new kong.Plugin("rateLimit", {configJson: ` {
|
|
22
21
|
* "second": 5,
|
|
23
22
|
* "hour" : 1000
|
|
24
23
|
* }
|
|
25
|
-
*
|
|
26
|
-
* });
|
|
24
|
+
*
|
|
25
|
+
* `});
|
|
27
26
|
* ```
|
|
28
27
|
* To apply a plugin to a consumer use the `consumerId` property, for example:
|
|
29
28
|
*
|
|
@@ -31,15 +30,16 @@ const utilities = require("./utilities");
|
|
|
31
30
|
* import * as pulumi from "@pulumi/pulumi";
|
|
32
31
|
* import * as kong from "@pulumi/kong";
|
|
33
32
|
*
|
|
34
|
-
* const pluginConsumer = new kong.Consumer("
|
|
33
|
+
* const pluginConsumer = new kong.Consumer("pluginConsumer", {
|
|
35
34
|
* customId: "567",
|
|
36
35
|
* username: "PluginUser",
|
|
37
36
|
* });
|
|
38
|
-
* const rateLimit = new kong.Plugin("
|
|
37
|
+
* const rateLimit = new kong.Plugin("rateLimit", {
|
|
39
38
|
* configJson: ` {
|
|
40
39
|
* "second": 5,
|
|
41
40
|
* "hour" : 1000
|
|
42
41
|
* }
|
|
42
|
+
*
|
|
43
43
|
* `,
|
|
44
44
|
* consumerId: pluginConsumer.id,
|
|
45
45
|
* });
|
|
@@ -55,11 +55,12 @@ const utilities = require("./utilities");
|
|
|
55
55
|
* host: "test.org",
|
|
56
56
|
* protocol: "http",
|
|
57
57
|
* });
|
|
58
|
-
* const rateLimit = new kong.Plugin("
|
|
58
|
+
* const rateLimit = new kong.Plugin("rateLimit", {
|
|
59
59
|
* configJson: ` {
|
|
60
60
|
* "second": 10,
|
|
61
61
|
* "hour" : 2000
|
|
62
62
|
* }
|
|
63
|
+
*
|
|
63
64
|
* `,
|
|
64
65
|
* serviceId: service.id,
|
|
65
66
|
* });
|
|
@@ -75,11 +76,12 @@ const utilities = require("./utilities");
|
|
|
75
76
|
* host: "test.org",
|
|
76
77
|
* protocol: "http",
|
|
77
78
|
* });
|
|
78
|
-
* const rateLimit = new kong.Plugin("
|
|
79
|
+
* const rateLimit = new kong.Plugin("rateLimit", {
|
|
79
80
|
* configJson: ` {
|
|
80
81
|
* "second": 11,
|
|
81
82
|
* "hour" : 4000
|
|
82
83
|
* }
|
|
84
|
+
*
|
|
83
85
|
* `,
|
|
84
86
|
* enabled: true,
|
|
85
87
|
* serviceId: service.id,
|
|
@@ -95,6 +97,28 @@ const utilities = require("./utilities");
|
|
|
95
97
|
* ```
|
|
96
98
|
*/
|
|
97
99
|
class Plugin extends pulumi.CustomResource {
|
|
100
|
+
/**
|
|
101
|
+
* Get an existing Plugin 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 Plugin(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Returns true if the given object is an instance of Plugin. 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'] === Plugin.__pulumiType;
|
|
121
|
+
}
|
|
98
122
|
constructor(name, argsOrState, opts) {
|
|
99
123
|
let resourceInputs = {};
|
|
100
124
|
opts = opts || {};
|
|
@@ -125,28 +149,6 @@ class Plugin extends pulumi.CustomResource {
|
|
|
125
149
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
126
150
|
super(Plugin.__pulumiType, name, resourceInputs, opts);
|
|
127
151
|
}
|
|
128
|
-
/**
|
|
129
|
-
* Get an existing Plugin resource's state with the given name, ID, and optional extra
|
|
130
|
-
* properties used to qualify the lookup.
|
|
131
|
-
*
|
|
132
|
-
* @param name The _unique_ name of the resulting resource.
|
|
133
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
134
|
-
* @param state Any extra arguments used during the lookup.
|
|
135
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
136
|
-
*/
|
|
137
|
-
static get(name, id, state, opts) {
|
|
138
|
-
return new Plugin(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Returns true if the given object is an instance of Plugin. This is designed to work even
|
|
142
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
143
|
-
*/
|
|
144
|
-
static isInstance(obj) {
|
|
145
|
-
if (obj === undefined || obj === null) {
|
|
146
|
-
return false;
|
|
147
|
-
}
|
|
148
|
-
return obj['__pulumiType'] === Plugin.__pulumiType;
|
|
149
|
-
}
|
|
150
152
|
}
|
|
151
153
|
exports.Plugin = Plugin;
|
|
152
154
|
/** @internal */
|
package/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../plugin.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../plugin.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE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BAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AA7FL,wBA8FC;AAhFG,gBAAgB;AACO,mBAAY,GAAG,0BAA0B,CAAC"}
|
package/provider.js
CHANGED
|
@@ -12,6 +12,16 @@ const utilities = require("./utilities");
|
|
|
12
12
|
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
13
13
|
*/
|
|
14
14
|
class Provider extends pulumi.ProviderResource {
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj) {
|
|
20
|
+
if (obj === undefined || obj === null) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
24
|
+
}
|
|
15
25
|
/**
|
|
16
26
|
* Create a Provider resource with the given unique name, arguments, and options.
|
|
17
27
|
*
|
|
@@ -39,16 +49,6 @@ class Provider extends pulumi.ProviderResource {
|
|
|
39
49
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
40
50
|
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
41
51
|
}
|
|
42
|
-
/**
|
|
43
|
-
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
44
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
45
|
-
*/
|
|
46
|
-
static isInstance(obj) {
|
|
47
|
-
if (obj === undefined || obj === null) {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
return obj['__pulumiType'] === Provider.__pulumiType;
|
|
51
|
-
}
|
|
52
52
|
}
|
|
53
53
|
exports.Provider = Provider;
|
|
54
54
|
/** @internal */
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;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,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IA2BD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAA6B;;QACvE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,YAAY,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzD,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;aAC/D;YACD,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC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