@pulumi/kong 4.4.0 → 4.4.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 +11 -13
- package/certificate.js.map +1 -1
- package/config/vars.js.map +1 -1
- package/consumer.js +9 -11
- package/consumer.js.map +1 -1
- package/consumerAcl.js +9 -11
- package/consumerAcl.js.map +1 -1
- package/consumerBasicAuth.js +11 -13
- package/consumerBasicAuth.js.map +1 -1
- package/consumerJwtAuth.js +15 -17
- package/consumerJwtAuth.js.map +1 -1
- package/consumerKeyAuth.js +9 -11
- package/consumerKeyAuth.js.map +1 -1
- package/package.json +2 -2
- package/package.json.bak +2 -1
- package/package.json.dev +3 -2
- package/plugin.d.ts +51 -13
- package/plugin.js +21 -33
- package/plugin.js.map +1 -1
- package/provider.js +11 -13
- package/provider.js.map +1 -1
- package/route.js +39 -41
- package/route.js.map +1 -1
- package/service.d.ts +126 -16
- package/service.js +31 -49
- package/service.js.map +1 -1
- package/target.js +11 -13
- package/target.js.map +1 -1
- package/upstream.js +27 -29
- package/upstream.js.map +1 -1
- package/utilities.js +6 -1
- package/utilities.js.map +1 -1
package/certificate.js
CHANGED
|
@@ -37,29 +37,27 @@ const utilities = require("./utilities");
|
|
|
37
37
|
*/
|
|
38
38
|
class Certificate extends pulumi.CustomResource {
|
|
39
39
|
constructor(name, argsOrState, opts) {
|
|
40
|
-
let
|
|
40
|
+
let resourceInputs = {};
|
|
41
41
|
opts = opts || {};
|
|
42
42
|
if (opts.id) {
|
|
43
43
|
const state = argsOrState;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
resourceInputs["certificate"] = state ? state.certificate : undefined;
|
|
45
|
+
resourceInputs["privateKey"] = state ? state.privateKey : undefined;
|
|
46
|
+
resourceInputs["snis"] = state ? state.snis : undefined;
|
|
47
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
48
48
|
}
|
|
49
49
|
else {
|
|
50
50
|
const args = argsOrState;
|
|
51
51
|
if ((!args || args.certificate === undefined) && !opts.urn) {
|
|
52
52
|
throw new Error("Missing required property 'certificate'");
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
resourceInputs["certificate"] = args ? args.certificate : undefined;
|
|
55
|
+
resourceInputs["privateKey"] = args ? args.privateKey : undefined;
|
|
56
|
+
resourceInputs["snis"] = args ? args.snis : undefined;
|
|
57
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
58
58
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
super(Certificate.__pulumiType, name, inputs, opts);
|
|
59
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
60
|
+
super(Certificate.__pulumiType, name, resourceInputs, opts);
|
|
63
61
|
}
|
|
64
62
|
/**
|
|
65
63
|
* Get an existing Certificate resource's state with the given name, ID, and optional extra
|
package/certificate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certificate.js","sourceRoot":"","sources":["../certificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAkDlD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,
|
|
1
|
+
{"version":3,"file":"certificate.js","sourceRoot":"","sources":["../certificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAkDlD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CA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S,CAAU,eAAe,CAAC,mCAAI,CAAC,SAAS,CAAC,aAAa,CAAC,iBAAiB,CAAC,IAAI,KAAK,CAAC,CAAC;IACjH,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
package/consumer.js
CHANGED
|
@@ -33,24 +33,22 @@ const utilities = require("./utilities");
|
|
|
33
33
|
*/
|
|
34
34
|
class Consumer extends pulumi.CustomResource {
|
|
35
35
|
constructor(name, argsOrState, opts) {
|
|
36
|
-
let
|
|
36
|
+
let resourceInputs = {};
|
|
37
37
|
opts = opts || {};
|
|
38
38
|
if (opts.id) {
|
|
39
39
|
const state = argsOrState;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
resourceInputs["customId"] = state ? state.customId : undefined;
|
|
41
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
42
|
+
resourceInputs["username"] = state ? state.username : undefined;
|
|
43
43
|
}
|
|
44
44
|
else {
|
|
45
45
|
const args = argsOrState;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
resourceInputs["customId"] = args ? args.customId : undefined;
|
|
47
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
48
|
+
resourceInputs["username"] = args ? args.username : undefined;
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
super(Consumer.__pulumiType, name, inputs, opts);
|
|
50
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
51
|
+
super(Consumer.__pulumiType, name, resourceInputs, opts);
|
|
54
52
|
}
|
|
55
53
|
/**
|
|
56
54
|
* Get an existing Consumer resource's state with the given name, ID, and optional extra
|
package/consumer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumer.js","sourceRoot":"","sources":["../consumer.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;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C,CAAC,SAAS,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IAhED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AA1BL,4BAkEC;AApDG,gBAAgB;AACO,qBAAY,GAAG,8BAA8B,CAAC"}
|
package/consumerAcl.js
CHANGED
|
@@ -38,13 +38,13 @@ const utilities = require("./utilities");
|
|
|
38
38
|
*/
|
|
39
39
|
class ConsumerAcl extends pulumi.CustomResource {
|
|
40
40
|
constructor(name, argsOrState, opts) {
|
|
41
|
-
let
|
|
41
|
+
let resourceInputs = {};
|
|
42
42
|
opts = opts || {};
|
|
43
43
|
if (opts.id) {
|
|
44
44
|
const state = argsOrState;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
resourceInputs["consumerId"] = state ? state.consumerId : undefined;
|
|
46
|
+
resourceInputs["group"] = state ? state.group : undefined;
|
|
47
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
48
48
|
}
|
|
49
49
|
else {
|
|
50
50
|
const args = argsOrState;
|
|
@@ -54,14 +54,12 @@ class ConsumerAcl extends pulumi.CustomResource {
|
|
|
54
54
|
if ((!args || args.group === undefined) && !opts.urn) {
|
|
55
55
|
throw new Error("Missing required property 'group'");
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
resourceInputs["consumerId"] = args ? args.consumerId : undefined;
|
|
58
|
+
resourceInputs["group"] = args ? args.group : undefined;
|
|
59
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
60
60
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
super(ConsumerAcl.__pulumiType, name, inputs, opts);
|
|
61
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
62
|
+
super(ConsumerAcl.__pulumiType, name, resourceInputs, opts);
|
|
65
63
|
}
|
|
66
64
|
/**
|
|
67
65
|
* Get an existing ConsumerAcl resource's state with the given name, ID, and optional extra
|
package/consumerAcl.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumerAcl.js","sourceRoot":"","sources":["../consumerAcl.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAiDlD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,
|
|
1
|
+
{"version":3,"file":"consumerAcl.js","sourceRoot":"","sources":["../consumerAcl.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAiDlD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EA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AW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;IAtED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AA1BL,kCAwEC;AA1DG,gBAAgB;AACO,wBAAY,GAAG,oCAAoC,CAAC"}
|
package/consumerBasicAuth.js
CHANGED
|
@@ -34,14 +34,14 @@ const utilities = require("./utilities");
|
|
|
34
34
|
*/
|
|
35
35
|
class ConsumerBasicAuth extends pulumi.CustomResource {
|
|
36
36
|
constructor(name, argsOrState, opts) {
|
|
37
|
-
let
|
|
37
|
+
let resourceInputs = {};
|
|
38
38
|
opts = opts || {};
|
|
39
39
|
if (opts.id) {
|
|
40
40
|
const state = argsOrState;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
resourceInputs["consumerId"] = state ? state.consumerId : undefined;
|
|
42
|
+
resourceInputs["password"] = state ? state.password : undefined;
|
|
43
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
44
|
+
resourceInputs["username"] = state ? state.username : undefined;
|
|
45
45
|
}
|
|
46
46
|
else {
|
|
47
47
|
const args = argsOrState;
|
|
@@ -54,15 +54,13 @@ class ConsumerBasicAuth extends pulumi.CustomResource {
|
|
|
54
54
|
if ((!args || args.username === undefined) && !opts.urn) {
|
|
55
55
|
throw new Error("Missing required property 'username'");
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
resourceInputs["consumerId"] = args ? args.consumerId : undefined;
|
|
58
|
+
resourceInputs["password"] = args ? args.password : undefined;
|
|
59
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
60
|
+
resourceInputs["username"] = args ? args.username : undefined;
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
super(ConsumerBasicAuth.__pulumiType, name, inputs, opts);
|
|
62
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
63
|
+
super(ConsumerBasicAuth.__pulumiType, name, resourceInputs, opts);
|
|
66
64
|
}
|
|
67
65
|
/**
|
|
68
66
|
* Get an existing ConsumerBasicAuth resource's state with the given name, ID, and optional extra
|
package/consumerBasicAuth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumerBasicAuth.js","sourceRoot":"","sources":["../consumerBasicAuth.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IAqDxD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,
|
|
1
|
+
{"version":3,"file":"consumerBasicAuth.js","sourceRoot":"","sources":["../consumerBasicAuth.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IAqDxD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CA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AI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;IA/ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;;AA1BL,8CAiFC;AAnEG,gBAAgB;AACO,8BAAY,GAAG,gDAAgD,CAAC"}
|
package/consumerJwtAuth.js
CHANGED
|
@@ -37,16 +37,16 @@ const utilities = require("./utilities");
|
|
|
37
37
|
*/
|
|
38
38
|
class ConsumerJwtAuth extends pulumi.CustomResource {
|
|
39
39
|
constructor(name, argsOrState, opts) {
|
|
40
|
-
let
|
|
40
|
+
let resourceInputs = {};
|
|
41
41
|
opts = opts || {};
|
|
42
42
|
if (opts.id) {
|
|
43
43
|
const state = argsOrState;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
resourceInputs["algorithm"] = state ? state.algorithm : undefined;
|
|
45
|
+
resourceInputs["consumerId"] = state ? state.consumerId : undefined;
|
|
46
|
+
resourceInputs["key"] = state ? state.key : undefined;
|
|
47
|
+
resourceInputs["rsaPublicKey"] = state ? state.rsaPublicKey : undefined;
|
|
48
|
+
resourceInputs["secret"] = state ? state.secret : undefined;
|
|
49
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
50
50
|
}
|
|
51
51
|
else {
|
|
52
52
|
const args = argsOrState;
|
|
@@ -56,17 +56,15 @@ class ConsumerJwtAuth extends pulumi.CustomResource {
|
|
|
56
56
|
if ((!args || args.rsaPublicKey === undefined) && !opts.urn) {
|
|
57
57
|
throw new Error("Missing required property 'rsaPublicKey'");
|
|
58
58
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
resourceInputs["algorithm"] = args ? args.algorithm : undefined;
|
|
60
|
+
resourceInputs["consumerId"] = args ? args.consumerId : undefined;
|
|
61
|
+
resourceInputs["key"] = args ? args.key : undefined;
|
|
62
|
+
resourceInputs["rsaPublicKey"] = args ? args.rsaPublicKey : undefined;
|
|
63
|
+
resourceInputs["secret"] = args ? args.secret : undefined;
|
|
64
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
super(ConsumerJwtAuth.__pulumiType, name, inputs, opts);
|
|
66
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
67
|
+
super(ConsumerJwtAuth.__pulumiType, name, resourceInputs, opts);
|
|
70
68
|
}
|
|
71
69
|
/**
|
|
72
70
|
* Get an existing ConsumerJwtAuth resource's state with the given name, ID, and optional extra
|
package/consumerJwtAuth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumerJwtAuth.js","sourceRoot":"","sources":["../consumerJwtAuth.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IA6DtD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,
|
|
1
|
+
{"version":3,"file":"consumerJwtAuth.js","sourceRoot":"","sources":["../consumerJwtAuth.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IA6DtD,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,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC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M,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;IAxFD;;;;;;;;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,0CA0FC;AA5EG,gBAAgB;AACO,4BAAY,GAAG,4CAA4C,CAAC"}
|
package/consumerKeyAuth.js
CHANGED
|
@@ -33,27 +33,25 @@ const utilities = require("./utilities");
|
|
|
33
33
|
*/
|
|
34
34
|
class ConsumerKeyAuth extends pulumi.CustomResource {
|
|
35
35
|
constructor(name, argsOrState, opts) {
|
|
36
|
-
let
|
|
36
|
+
let resourceInputs = {};
|
|
37
37
|
opts = opts || {};
|
|
38
38
|
if (opts.id) {
|
|
39
39
|
const state = argsOrState;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
resourceInputs["consumerId"] = state ? state.consumerId : undefined;
|
|
41
|
+
resourceInputs["key"] = state ? state.key : undefined;
|
|
42
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
43
43
|
}
|
|
44
44
|
else {
|
|
45
45
|
const args = argsOrState;
|
|
46
46
|
if ((!args || args.consumerId === undefined) && !opts.urn) {
|
|
47
47
|
throw new Error("Missing required property 'consumerId'");
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
resourceInputs["consumerId"] = args ? args.consumerId : undefined;
|
|
50
|
+
resourceInputs["key"] = args ? args.key : undefined;
|
|
51
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
super(ConsumerKeyAuth.__pulumiType, name, inputs, opts);
|
|
53
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
54
|
+
super(ConsumerKeyAuth.__pulumiType, name, resourceInputs, opts);
|
|
57
55
|
}
|
|
58
56
|
/**
|
|
59
57
|
* Get an existing ConsumerKeyAuth resource's state with the given name, ID, and optional extra
|
package/consumerKeyAuth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumerKeyAuth.js","sourceRoot":"","sources":["../consumerKeyAuth.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IAiDtD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,
|
|
1
|
+
{"version":3,"file":"consumerKeyAuth.js","sourceRoot":"","sources":["../consumerKeyAuth.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IAiDtD,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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E,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,0CAqEC;AAvDG,gBAAgB;AACO,4BAAY,GAAG,4CAA4C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/kong",
|
|
3
|
-
"version": "v4.4.
|
|
3
|
+
"version": "v4.4.1",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Kong resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource kong v4.4.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource kong v4.4.1"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.bak
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"repository": "https://github.com/pulumi/pulumi-kong",
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsc"
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource kong ${VERSION}"
|
|
14
15
|
},
|
|
15
16
|
"dependencies": {
|
|
16
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/kong",
|
|
3
|
-
"version": "v4.4.
|
|
3
|
+
"version": "v4.4.1",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Kong resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"repository": "https://github.com/pulumi/pulumi-kong",
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsc"
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource kong v4.4.1"
|
|
14
15
|
},
|
|
15
16
|
"dependencies": {
|
|
16
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/plugin.d.ts
CHANGED
|
@@ -79,16 +79,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
79
79
|
* serviceId: service.id,
|
|
80
80
|
* });
|
|
81
81
|
* ```
|
|
82
|
-
* ## Argument reference
|
|
83
|
-
*
|
|
84
|
-
* * `pluginName` - (Required) the name of the plugin you want to configure
|
|
85
|
-
* * `consumerId` - (Optional) the consumer id you want to configure the plugin for
|
|
86
|
-
* * `serviceId` - (Optional) the service id that you want to configure the plugin for
|
|
87
|
-
* * `routeId` - (Optional) the route id that you want to configure the plugin for
|
|
88
|
-
* * `enabled` - (Optional) whether the plugin is enabled or not, use if you want to keep the plugin installed but disable it
|
|
89
|
-
* * `configJson` - (Optional) this is the configuration json for how you want to configure the plugin. The json is passed straight through to kong as is. You can get the json config from the Kong documentation
|
|
90
|
-
* page of the plugin you are configuring
|
|
91
|
-
* * `tags` - (Optional) A list of strings associated with the Plugin for grouping and filtering
|
|
92
82
|
*
|
|
93
83
|
* ## Import
|
|
94
84
|
*
|
|
@@ -116,15 +106,31 @@ export declare class Plugin extends pulumi.CustomResource {
|
|
|
116
106
|
static isInstance(obj: any): obj is Plugin;
|
|
117
107
|
readonly computedConfig: pulumi.Output<string>;
|
|
118
108
|
/**
|
|
119
|
-
*
|
|
109
|
+
* this is the configuration json for how you want to configure the plugin. The json is passed straight through to kong as is. You can get the json config from the Kong documentation
|
|
110
|
+
* page of the plugin you are configuring
|
|
120
111
|
*/
|
|
121
112
|
readonly configJson: pulumi.Output<string | undefined>;
|
|
113
|
+
/**
|
|
114
|
+
* the consumer id you want to configure the plugin for
|
|
115
|
+
*/
|
|
122
116
|
readonly consumerId: pulumi.Output<string | undefined>;
|
|
117
|
+
/**
|
|
118
|
+
* whether the plugin is enabled or not, use if you want to keep the plugin installed but disable it
|
|
119
|
+
*/
|
|
123
120
|
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
124
121
|
readonly name: pulumi.Output<string>;
|
|
122
|
+
/**
|
|
123
|
+
* the route id that you want to configure the plugin for
|
|
124
|
+
*/
|
|
125
125
|
readonly routeId: pulumi.Output<string | undefined>;
|
|
126
|
+
/**
|
|
127
|
+
* the service id that you want to configure the plugin for
|
|
128
|
+
*/
|
|
126
129
|
readonly serviceId: pulumi.Output<string | undefined>;
|
|
127
130
|
readonly strictMatch: pulumi.Output<boolean | undefined>;
|
|
131
|
+
/**
|
|
132
|
+
* A list of strings associated with the Plugin for grouping and filtering
|
|
133
|
+
*/
|
|
128
134
|
readonly tags: pulumi.Output<string[] | undefined>;
|
|
129
135
|
/**
|
|
130
136
|
* Create a Plugin resource with the given unique name, arguments, and options.
|
|
@@ -141,15 +147,31 @@ export declare class Plugin extends pulumi.CustomResource {
|
|
|
141
147
|
export interface PluginState {
|
|
142
148
|
computedConfig?: pulumi.Input<string>;
|
|
143
149
|
/**
|
|
144
|
-
*
|
|
150
|
+
* this is the configuration json for how you want to configure the plugin. The json is passed straight through to kong as is. You can get the json config from the Kong documentation
|
|
151
|
+
* page of the plugin you are configuring
|
|
145
152
|
*/
|
|
146
153
|
configJson?: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* the consumer id you want to configure the plugin for
|
|
156
|
+
*/
|
|
147
157
|
consumerId?: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* whether the plugin is enabled or not, use if you want to keep the plugin installed but disable it
|
|
160
|
+
*/
|
|
148
161
|
enabled?: pulumi.Input<boolean>;
|
|
149
162
|
name?: pulumi.Input<string>;
|
|
163
|
+
/**
|
|
164
|
+
* the route id that you want to configure the plugin for
|
|
165
|
+
*/
|
|
150
166
|
routeId?: pulumi.Input<string>;
|
|
167
|
+
/**
|
|
168
|
+
* the service id that you want to configure the plugin for
|
|
169
|
+
*/
|
|
151
170
|
serviceId?: pulumi.Input<string>;
|
|
152
171
|
strictMatch?: pulumi.Input<boolean>;
|
|
172
|
+
/**
|
|
173
|
+
* A list of strings associated with the Plugin for grouping and filtering
|
|
174
|
+
*/
|
|
153
175
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
154
176
|
}
|
|
155
177
|
/**
|
|
@@ -157,14 +179,30 @@ export interface PluginState {
|
|
|
157
179
|
*/
|
|
158
180
|
export interface PluginArgs {
|
|
159
181
|
/**
|
|
160
|
-
*
|
|
182
|
+
* this is the configuration json for how you want to configure the plugin. The json is passed straight through to kong as is. You can get the json config from the Kong documentation
|
|
183
|
+
* page of the plugin you are configuring
|
|
161
184
|
*/
|
|
162
185
|
configJson?: pulumi.Input<string>;
|
|
186
|
+
/**
|
|
187
|
+
* the consumer id you want to configure the plugin for
|
|
188
|
+
*/
|
|
163
189
|
consumerId?: pulumi.Input<string>;
|
|
190
|
+
/**
|
|
191
|
+
* whether the plugin is enabled or not, use if you want to keep the plugin installed but disable it
|
|
192
|
+
*/
|
|
164
193
|
enabled?: pulumi.Input<boolean>;
|
|
165
194
|
name?: pulumi.Input<string>;
|
|
195
|
+
/**
|
|
196
|
+
* the route id that you want to configure the plugin for
|
|
197
|
+
*/
|
|
166
198
|
routeId?: pulumi.Input<string>;
|
|
199
|
+
/**
|
|
200
|
+
* the service id that you want to configure the plugin for
|
|
201
|
+
*/
|
|
167
202
|
serviceId?: pulumi.Input<string>;
|
|
168
203
|
strictMatch?: pulumi.Input<boolean>;
|
|
204
|
+
/**
|
|
205
|
+
* A list of strings associated with the Plugin for grouping and filtering
|
|
206
|
+
*/
|
|
169
207
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
170
208
|
}
|
package/plugin.js
CHANGED
|
@@ -85,16 +85,6 @@ const utilities = require("./utilities");
|
|
|
85
85
|
* serviceId: service.id,
|
|
86
86
|
* });
|
|
87
87
|
* ```
|
|
88
|
-
* ## Argument reference
|
|
89
|
-
*
|
|
90
|
-
* * `pluginName` - (Required) the name of the plugin you want to configure
|
|
91
|
-
* * `consumerId` - (Optional) the consumer id you want to configure the plugin for
|
|
92
|
-
* * `serviceId` - (Optional) the service id that you want to configure the plugin for
|
|
93
|
-
* * `routeId` - (Optional) the route id that you want to configure the plugin for
|
|
94
|
-
* * `enabled` - (Optional) whether the plugin is enabled or not, use if you want to keep the plugin installed but disable it
|
|
95
|
-
* * `configJson` - (Optional) this is the configuration json for how you want to configure the plugin. The json is passed straight through to kong as is. You can get the json config from the Kong documentation
|
|
96
|
-
* page of the plugin you are configuring
|
|
97
|
-
* * `tags` - (Optional) A list of strings associated with the Plugin for grouping and filtering
|
|
98
88
|
*
|
|
99
89
|
* ## Import
|
|
100
90
|
*
|
|
@@ -106,36 +96,34 @@ const utilities = require("./utilities");
|
|
|
106
96
|
*/
|
|
107
97
|
class Plugin extends pulumi.CustomResource {
|
|
108
98
|
constructor(name, argsOrState, opts) {
|
|
109
|
-
let
|
|
99
|
+
let resourceInputs = {};
|
|
110
100
|
opts = opts || {};
|
|
111
101
|
if (opts.id) {
|
|
112
102
|
const state = argsOrState;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
103
|
+
resourceInputs["computedConfig"] = state ? state.computedConfig : undefined;
|
|
104
|
+
resourceInputs["configJson"] = state ? state.configJson : undefined;
|
|
105
|
+
resourceInputs["consumerId"] = state ? state.consumerId : undefined;
|
|
106
|
+
resourceInputs["enabled"] = state ? state.enabled : undefined;
|
|
107
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
108
|
+
resourceInputs["routeId"] = state ? state.routeId : undefined;
|
|
109
|
+
resourceInputs["serviceId"] = state ? state.serviceId : undefined;
|
|
110
|
+
resourceInputs["strictMatch"] = state ? state.strictMatch : undefined;
|
|
111
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
122
112
|
}
|
|
123
113
|
else {
|
|
124
114
|
const args = argsOrState;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
135
|
-
if (!opts.version) {
|
|
136
|
-
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
115
|
+
resourceInputs["configJson"] = args ? args.configJson : undefined;
|
|
116
|
+
resourceInputs["consumerId"] = args ? args.consumerId : undefined;
|
|
117
|
+
resourceInputs["enabled"] = args ? args.enabled : undefined;
|
|
118
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
119
|
+
resourceInputs["routeId"] = args ? args.routeId : undefined;
|
|
120
|
+
resourceInputs["serviceId"] = args ? args.serviceId : undefined;
|
|
121
|
+
resourceInputs["strictMatch"] = args ? args.strictMatch : undefined;
|
|
122
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
123
|
+
resourceInputs["computedConfig"] = undefined /*out*/;
|
|
137
124
|
}
|
|
138
|
-
|
|
125
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
126
|
+
super(Plugin.__pulumiType, name, resourceInputs, opts);
|
|
139
127
|
}
|
|
140
128
|
/**
|
|
141
129
|
* Get an existing Plugin resource's state with the given name, ID, and optional extra
|
package/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../plugin.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF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