@highstate/gateway-api 0.4.5

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 (210) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +14 -0
  3. package/bin/gateway/index.d.ts +5 -0
  4. package/bin/gateway/index.js +15 -0
  5. package/bin/gateway/index.js.map +1 -0
  6. package/bin/gateway/v1/gateway.d.ts +64 -0
  7. package/bin/gateway/v1/gateway.js +67 -0
  8. package/bin/gateway/v1/gateway.js.map +1 -0
  9. package/bin/gateway/v1/gatewayClass.d.ts +79 -0
  10. package/bin/gateway/v1/gatewayClass.js +82 -0
  11. package/bin/gateway/v1/gatewayClass.js.map +1 -0
  12. package/bin/gateway/v1/gatewayClassList.d.ts +67 -0
  13. package/bin/gateway/v1/gatewayClassList.js +65 -0
  14. package/bin/gateway/v1/gatewayClassList.js.map +1 -0
  15. package/bin/gateway/v1/gatewayClassPatch.d.ts +85 -0
  16. package/bin/gateway/v1/gatewayClassPatch.js +88 -0
  17. package/bin/gateway/v1/gatewayClassPatch.js.map +1 -0
  18. package/bin/gateway/v1/gatewayList.d.ts +67 -0
  19. package/bin/gateway/v1/gatewayList.js +65 -0
  20. package/bin/gateway/v1/gatewayList.js.map +1 -0
  21. package/bin/gateway/v1/gatewayPatch.d.ts +70 -0
  22. package/bin/gateway/v1/gatewayPatch.js +73 -0
  23. package/bin/gateway/v1/gatewayPatch.js.map +1 -0
  24. package/bin/gateway/v1/grpcroute.d.ts +89 -0
  25. package/bin/gateway/v1/grpcroute.js +90 -0
  26. package/bin/gateway/v1/grpcroute.js.map +1 -0
  27. package/bin/gateway/v1/grpcrouteList.d.ts +67 -0
  28. package/bin/gateway/v1/grpcrouteList.js +65 -0
  29. package/bin/gateway/v1/grpcrouteList.js.map +1 -0
  30. package/bin/gateway/v1/grpcroutePatch.d.ts +95 -0
  31. package/bin/gateway/v1/grpcroutePatch.js +96 -0
  32. package/bin/gateway/v1/grpcroutePatch.js.map +1 -0
  33. package/bin/gateway/v1/httproute.d.ts +66 -0
  34. package/bin/gateway/v1/httproute.js +69 -0
  35. package/bin/gateway/v1/httproute.js.map +1 -0
  36. package/bin/gateway/v1/httprouteList.d.ts +67 -0
  37. package/bin/gateway/v1/httprouteList.js +65 -0
  38. package/bin/gateway/v1/httprouteList.js.map +1 -0
  39. package/bin/gateway/v1/httproutePatch.d.ts +72 -0
  40. package/bin/gateway/v1/httproutePatch.js +75 -0
  41. package/bin/gateway/v1/httproutePatch.js.map +1 -0
  42. package/bin/gateway/v1/index.d.ts +36 -0
  43. package/bin/gateway/v1/index.js +66 -0
  44. package/bin/gateway/v1/index.js.map +1 -0
  45. package/bin/gateway/v1alpha2/backendLBPolicy.d.ts +64 -0
  46. package/bin/gateway/v1alpha2/backendLBPolicy.js +65 -0
  47. package/bin/gateway/v1alpha2/backendLBPolicy.js.map +1 -0
  48. package/bin/gateway/v1alpha2/backendLBPolicyList.d.ts +67 -0
  49. package/bin/gateway/v1alpha2/backendLBPolicyList.js +65 -0
  50. package/bin/gateway/v1alpha2/backendLBPolicyList.js.map +1 -0
  51. package/bin/gateway/v1alpha2/backendLBPolicyPatch.d.ts +70 -0
  52. package/bin/gateway/v1alpha2/backendLBPolicyPatch.js +71 -0
  53. package/bin/gateway/v1alpha2/backendLBPolicyPatch.js.map +1 -0
  54. package/bin/gateway/v1alpha2/index.d.ts +36 -0
  55. package/bin/gateway/v1alpha2/index.js +66 -0
  56. package/bin/gateway/v1alpha2/index.js.map +1 -0
  57. package/bin/gateway/v1alpha2/tcproute.d.ts +65 -0
  58. package/bin/gateway/v1alpha2/tcproute.js +66 -0
  59. package/bin/gateway/v1alpha2/tcproute.js.map +1 -0
  60. package/bin/gateway/v1alpha2/tcprouteList.d.ts +67 -0
  61. package/bin/gateway/v1alpha2/tcprouteList.js +65 -0
  62. package/bin/gateway/v1alpha2/tcprouteList.js.map +1 -0
  63. package/bin/gateway/v1alpha2/tcproutePatch.d.ts +71 -0
  64. package/bin/gateway/v1alpha2/tcproutePatch.js +72 -0
  65. package/bin/gateway/v1alpha2/tcproutePatch.js.map +1 -0
  66. package/bin/gateway/v1alpha2/tlsroute.d.ts +68 -0
  67. package/bin/gateway/v1alpha2/tlsroute.js +69 -0
  68. package/bin/gateway/v1alpha2/tlsroute.js.map +1 -0
  69. package/bin/gateway/v1alpha2/tlsrouteList.d.ts +67 -0
  70. package/bin/gateway/v1alpha2/tlsrouteList.js +65 -0
  71. package/bin/gateway/v1alpha2/tlsrouteList.js.map +1 -0
  72. package/bin/gateway/v1alpha2/tlsroutePatch.d.ts +74 -0
  73. package/bin/gateway/v1alpha2/tlsroutePatch.js +75 -0
  74. package/bin/gateway/v1alpha2/tlsroutePatch.js.map +1 -0
  75. package/bin/gateway/v1alpha2/udproute.d.ts +65 -0
  76. package/bin/gateway/v1alpha2/udproute.js +66 -0
  77. package/bin/gateway/v1alpha2/udproute.js.map +1 -0
  78. package/bin/gateway/v1alpha2/udprouteList.d.ts +67 -0
  79. package/bin/gateway/v1alpha2/udprouteList.js +65 -0
  80. package/bin/gateway/v1alpha2/udprouteList.js.map +1 -0
  81. package/bin/gateway/v1alpha2/udproutePatch.d.ts +71 -0
  82. package/bin/gateway/v1alpha2/udproutePatch.js +72 -0
  83. package/bin/gateway/v1alpha2/udproutePatch.js.map +1 -0
  84. package/bin/gateway/v1alpha3/backendTLSPolicy.d.ts +64 -0
  85. package/bin/gateway/v1alpha3/backendTLSPolicy.js +65 -0
  86. package/bin/gateway/v1alpha3/backendTLSPolicy.js.map +1 -0
  87. package/bin/gateway/v1alpha3/backendTLSPolicyList.d.ts +67 -0
  88. package/bin/gateway/v1alpha3/backendTLSPolicyList.js +65 -0
  89. package/bin/gateway/v1alpha3/backendTLSPolicyList.js.map +1 -0
  90. package/bin/gateway/v1alpha3/backendTLSPolicyPatch.d.ts +70 -0
  91. package/bin/gateway/v1alpha3/backendTLSPolicyPatch.js +71 -0
  92. package/bin/gateway/v1alpha3/backendTLSPolicyPatch.js.map +1 -0
  93. package/bin/gateway/v1alpha3/index.d.ts +9 -0
  94. package/bin/gateway/v1alpha3/index.js +30 -0
  95. package/bin/gateway/v1alpha3/index.js.map +1 -0
  96. package/bin/gateway/v1beta1/gateway.d.ts +64 -0
  97. package/bin/gateway/v1beta1/gateway.js +67 -0
  98. package/bin/gateway/v1beta1/gateway.js.map +1 -0
  99. package/bin/gateway/v1beta1/gatewayClass.d.ts +79 -0
  100. package/bin/gateway/v1beta1/gatewayClass.js +82 -0
  101. package/bin/gateway/v1beta1/gatewayClass.js.map +1 -0
  102. package/bin/gateway/v1beta1/gatewayClassList.d.ts +67 -0
  103. package/bin/gateway/v1beta1/gatewayClassList.js +65 -0
  104. package/bin/gateway/v1beta1/gatewayClassList.js.map +1 -0
  105. package/bin/gateway/v1beta1/gatewayClassPatch.d.ts +85 -0
  106. package/bin/gateway/v1beta1/gatewayClassPatch.js +88 -0
  107. package/bin/gateway/v1beta1/gatewayClassPatch.js.map +1 -0
  108. package/bin/gateway/v1beta1/gatewayList.d.ts +67 -0
  109. package/bin/gateway/v1beta1/gatewayList.js +65 -0
  110. package/bin/gateway/v1beta1/gatewayList.js.map +1 -0
  111. package/bin/gateway/v1beta1/gatewayPatch.d.ts +70 -0
  112. package/bin/gateway/v1beta1/gatewayPatch.js +73 -0
  113. package/bin/gateway/v1beta1/gatewayPatch.js.map +1 -0
  114. package/bin/gateway/v1beta1/httproute.d.ts +66 -0
  115. package/bin/gateway/v1beta1/httproute.js +69 -0
  116. package/bin/gateway/v1beta1/httproute.js.map +1 -0
  117. package/bin/gateway/v1beta1/httprouteList.d.ts +67 -0
  118. package/bin/gateway/v1beta1/httprouteList.js +65 -0
  119. package/bin/gateway/v1beta1/httprouteList.js.map +1 -0
  120. package/bin/gateway/v1beta1/httproutePatch.d.ts +72 -0
  121. package/bin/gateway/v1beta1/httproutePatch.js +75 -0
  122. package/bin/gateway/v1beta1/httproutePatch.js.map +1 -0
  123. package/bin/gateway/v1beta1/index.d.ts +36 -0
  124. package/bin/gateway/v1beta1/index.js +66 -0
  125. package/bin/gateway/v1beta1/index.js.map +1 -0
  126. package/bin/gateway/v1beta1/referenceGrant.d.ts +77 -0
  127. package/bin/gateway/v1beta1/referenceGrant.js +77 -0
  128. package/bin/gateway/v1beta1/referenceGrant.js.map +1 -0
  129. package/bin/gateway/v1beta1/referenceGrantList.d.ts +67 -0
  130. package/bin/gateway/v1beta1/referenceGrantList.js +65 -0
  131. package/bin/gateway/v1beta1/referenceGrantList.js.map +1 -0
  132. package/bin/gateway/v1beta1/referenceGrantPatch.d.ts +83 -0
  133. package/bin/gateway/v1beta1/referenceGrantPatch.js +83 -0
  134. package/bin/gateway/v1beta1/referenceGrantPatch.js.map +1 -0
  135. package/bin/index.d.ts +6 -0
  136. package/bin/index.js +24 -0
  137. package/bin/index.js.map +1 -0
  138. package/bin/meta/v1.d.ts +3 -0
  139. package/bin/meta/v1.js +3 -0
  140. package/bin/meta/v1.js.map +1 -0
  141. package/bin/package.json +42 -0
  142. package/bin/provider.d.ts +21 -0
  143. package/bin/provider.js +38 -0
  144. package/bin/provider.js.map +1 -0
  145. package/bin/types/index.d.ts +3 -0
  146. package/bin/types/index.js +11 -0
  147. package/bin/types/index.js.map +1 -0
  148. package/bin/types/input.d.ts +19026 -0
  149. package/bin/types/input.js +5 -0
  150. package/bin/types/input.js.map +1 -0
  151. package/bin/types/output.d.ts +21341 -0
  152. package/bin/types/output.js +5 -0
  153. package/bin/types/output.js.map +1 -0
  154. package/bin/utilities.d.ts +8 -0
  155. package/bin/utilities.js +102 -0
  156. package/bin/utilities.js.map +1 -0
  157. package/gateway/index.ts +17 -0
  158. package/gateway/v1/gateway.ts +104 -0
  159. package/gateway/v1/gatewayClass.ts +119 -0
  160. package/gateway/v1/gatewayClassList.ts +107 -0
  161. package/gateway/v1/gatewayClassPatch.ts +125 -0
  162. package/gateway/v1/gatewayList.ts +107 -0
  163. package/gateway/v1/gatewayPatch.ts +110 -0
  164. package/gateway/v1/grpcroute.ts +127 -0
  165. package/gateway/v1/grpcrouteList.ts +107 -0
  166. package/gateway/v1/grpcroutePatch.ts +133 -0
  167. package/gateway/v1/httproute.ts +106 -0
  168. package/gateway/v1/httprouteList.ts +107 -0
  169. package/gateway/v1/httproutePatch.ts +112 -0
  170. package/gateway/v1/index.ts +102 -0
  171. package/gateway/v1alpha2/backendLBPolicy.ts +102 -0
  172. package/gateway/v1alpha2/backendLBPolicyList.ts +107 -0
  173. package/gateway/v1alpha2/backendLBPolicyPatch.ts +108 -0
  174. package/gateway/v1alpha2/index.ts +102 -0
  175. package/gateway/v1alpha2/tcproute.ts +103 -0
  176. package/gateway/v1alpha2/tcprouteList.ts +107 -0
  177. package/gateway/v1alpha2/tcproutePatch.ts +109 -0
  178. package/gateway/v1alpha2/tlsroute.ts +106 -0
  179. package/gateway/v1alpha2/tlsrouteList.ts +107 -0
  180. package/gateway/v1alpha2/tlsroutePatch.ts +112 -0
  181. package/gateway/v1alpha2/udproute.ts +103 -0
  182. package/gateway/v1alpha2/udprouteList.ts +107 -0
  183. package/gateway/v1alpha2/udproutePatch.ts +109 -0
  184. package/gateway/v1alpha3/backendTLSPolicy.ts +102 -0
  185. package/gateway/v1alpha3/backendTLSPolicyList.ts +107 -0
  186. package/gateway/v1alpha3/backendTLSPolicyPatch.ts +108 -0
  187. package/gateway/v1alpha3/index.ts +39 -0
  188. package/gateway/v1beta1/gateway.ts +104 -0
  189. package/gateway/v1beta1/gatewayClass.ts +119 -0
  190. package/gateway/v1beta1/gatewayClassList.ts +107 -0
  191. package/gateway/v1beta1/gatewayClassPatch.ts +125 -0
  192. package/gateway/v1beta1/gatewayList.ts +107 -0
  193. package/gateway/v1beta1/gatewayPatch.ts +110 -0
  194. package/gateway/v1beta1/httproute.ts +106 -0
  195. package/gateway/v1beta1/httprouteList.ts +107 -0
  196. package/gateway/v1beta1/httproutePatch.ts +112 -0
  197. package/gateway/v1beta1/index.ts +102 -0
  198. package/gateway/v1beta1/referenceGrant.ts +113 -0
  199. package/gateway/v1beta1/referenceGrantList.ts +107 -0
  200. package/gateway/v1beta1/referenceGrantPatch.ts +119 -0
  201. package/index.ts +30 -0
  202. package/meta/v1.ts +4 -0
  203. package/package.json +43 -0
  204. package/provider.ts +44 -0
  205. package/scripts/postinstall.js +13 -0
  206. package/tsconfig.json +67 -0
  207. package/types/index.ts +13 -0
  208. package/types/input.ts +19413 -0
  209. package/types/output.ts +21780 -0
  210. package/utilities.ts +97 -0
package/utilities.ts ADDED
@@ -0,0 +1,97 @@
1
+ // *** WARNING: this file was generated by crd2pulumi. ***
2
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
+
4
+
5
+ import * as runtime from "@pulumi/pulumi/runtime";
6
+ import * as pulumi from "@pulumi/pulumi";
7
+
8
+ export function getEnv(...vars: string[]): string | undefined {
9
+ for (const v of vars) {
10
+ const value = process.env[v];
11
+ if (value) {
12
+ return value;
13
+ }
14
+ }
15
+ return undefined;
16
+ }
17
+
18
+ export function getEnvBoolean(...vars: string[]): boolean | undefined {
19
+ const s = getEnv(...vars);
20
+ if (s !== undefined) {
21
+ // NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
22
+ // Terraform uses internally when parsing boolean values.
23
+ if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
24
+ return true;
25
+ }
26
+ if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
27
+ return false;
28
+ }
29
+ }
30
+ return undefined;
31
+ }
32
+
33
+ export function getEnvNumber(...vars: string[]): number | undefined {
34
+ const s = getEnv(...vars);
35
+ if (s !== undefined) {
36
+ const f = parseFloat(s);
37
+ if (!isNaN(f)) {
38
+ return f;
39
+ }
40
+ }
41
+ return undefined;
42
+ }
43
+
44
+ export const getVersion: () => string = () => "4.18.0"
45
+
46
+ function unusedGetVersion(): string {
47
+ let version = require('./package.json').version;
48
+ // Node allows for the version to be prefixed by a "v", while semver doesn't.
49
+ // If there is a v, strip it off.
50
+ if (version.indexOf('v') === 0) {
51
+ version = version.slice(1);
52
+ }
53
+ return version;
54
+ }
55
+
56
+ /** @internal */
57
+ export function resourceOptsDefaults(): any {
58
+ return { version: getVersion() };
59
+ }
60
+
61
+ /** @internal */
62
+ export function lazyLoad(exports: any, props: string[], loadModule: any) {
63
+ for (let property of props) {
64
+ Object.defineProperty(exports, property, {
65
+ enumerable: true,
66
+ get: function() {
67
+ return loadModule()[property];
68
+ },
69
+ });
70
+ }
71
+ }
72
+
73
+ export async function callAsync<T>(
74
+ tok: string,
75
+ props: pulumi.Inputs,
76
+ res?: pulumi.Resource,
77
+ opts?: {property?: string},
78
+ ): Promise<T> {
79
+ const o: any = runtime.call<T>(tok, props, res);
80
+ const value = await o.promise(true /*withUnknowns*/);
81
+ const isKnown = await o.isKnown;
82
+ const isSecret = await o.isSecret;
83
+ const problem: string|undefined =
84
+ !isKnown ? "an unknown value"
85
+ : isSecret ? "a secret value"
86
+ : undefined;
87
+ // Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
88
+ if (problem) {
89
+ throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
90
+ "This is an error in the provider, please report this to the provider developer.");
91
+ }
92
+ // Extract a single property if requested.
93
+ if (opts && opts.property) {
94
+ return value[opts.property];
95
+ }
96
+ return value;
97
+ }