@pulumi/hcloud 1.10.1 → 1.10.3

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 (158) hide show
  1. package/certificate.js +25 -23
  2. package/certificate.js.map +1 -1
  3. package/firewall.d.ts +3 -2
  4. package/firewall.js +21 -21
  5. package/firewall.js.map +1 -1
  6. package/firewallAttachment.js +21 -21
  7. package/firewallAttachment.js.map +1 -1
  8. package/floatingIp.d.ts +4 -4
  9. package/floatingIp.js +23 -23
  10. package/floatingIp.js.map +1 -1
  11. package/floatingIpAssignment.js +22 -22
  12. package/floatingIpAssignment.js.map +1 -1
  13. package/getCertificate.d.ts +19 -4
  14. package/getCertificate.js +21 -9
  15. package/getCertificate.js.map +1 -1
  16. package/getCertificates.d.ts +17 -3
  17. package/getCertificates.js +18 -7
  18. package/getCertificates.js.map +1 -1
  19. package/getDatacenter.d.ts +22 -4
  20. package/getDatacenter.js +24 -9
  21. package/getDatacenter.js.map +1 -1
  22. package/getDatacenters.d.ts +5 -1
  23. package/getDatacenters.js +6 -5
  24. package/getDatacenters.js.map +1 -1
  25. package/getFirewall.d.ts +21 -5
  26. package/getFirewall.js +21 -9
  27. package/getFirewall.js.map +1 -1
  28. package/getFirewalls.d.ts +17 -3
  29. package/getFirewalls.js +18 -7
  30. package/getFirewalls.js.map +1 -1
  31. package/getFloatingIp.d.ts +32 -2
  32. package/getFloatingIp.js +33 -6
  33. package/getFloatingIp.js.map +1 -1
  34. package/getFloatingIps.d.ts +17 -3
  35. package/getFloatingIps.js +18 -7
  36. package/getFloatingIps.js.map +1 -1
  37. package/getImage.d.ts +19 -0
  38. package/getImage.js +21 -5
  39. package/getImage.js.map +1 -1
  40. package/getImages.d.ts +19 -4
  41. package/getImages.js +20 -8
  42. package/getImages.js.map +1 -1
  43. package/getLoadBalancer.d.ts +36 -8
  44. package/getLoadBalancer.js +28 -11
  45. package/getLoadBalancer.js.map +1 -1
  46. package/getLoadBalancers.d.ts +19 -4
  47. package/getLoadBalancers.js +20 -8
  48. package/getLoadBalancers.js.map +1 -1
  49. package/getLocation.d.ts +22 -4
  50. package/getLocation.js +24 -9
  51. package/getLocation.js.map +1 -1
  52. package/getLocations.d.ts +5 -1
  53. package/getLocations.js +6 -5
  54. package/getLocations.js.map +1 -1
  55. package/getNetwork.d.ts +25 -7
  56. package/getNetwork.js +26 -11
  57. package/getNetwork.js.map +1 -1
  58. package/getNetworks.d.ts +19 -4
  59. package/getNetworks.js +20 -8
  60. package/getNetworks.js.map +1 -1
  61. package/getPlacementGroup.d.ts +19 -4
  62. package/getPlacementGroup.js +21 -9
  63. package/getPlacementGroup.js.map +1 -1
  64. package/getPlacementGroups.d.ts +19 -4
  65. package/getPlacementGroups.js +20 -8
  66. package/getPlacementGroups.js.map +1 -1
  67. package/getPrimaryIp.d.ts +55 -5
  68. package/getPrimaryIp.js +49 -5
  69. package/getPrimaryIp.js.map +1 -1
  70. package/getPrimaryIps.d.ts +17 -3
  71. package/getPrimaryIps.js +18 -7
  72. package/getPrimaryIps.js.map +1 -1
  73. package/getServer.d.ts +27 -9
  74. package/getServer.js +26 -11
  75. package/getServer.js.map +1 -1
  76. package/getServerType.d.ts +22 -4
  77. package/getServerType.js +24 -9
  78. package/getServerType.js.map +1 -1
  79. package/getServerTypes.d.ts +4 -1
  80. package/getServerTypes.js +5 -5
  81. package/getServerTypes.js.map +1 -1
  82. package/getServers.d.ts +15 -3
  83. package/getServers.js +16 -7
  84. package/getServers.js.map +1 -1
  85. package/getSshKey.d.ts +26 -0
  86. package/getSshKey.js +28 -5
  87. package/getSshKey.js.map +1 -1
  88. package/getSshKeys.d.ts +15 -1
  89. package/getSshKeys.js +16 -5
  90. package/getSshKeys.js.map +1 -1
  91. package/getVolume.d.ts +25 -7
  92. package/getVolume.js +26 -11
  93. package/getVolume.js.map +1 -1
  94. package/getVolumes.d.ts +19 -4
  95. package/getVolumes.js +20 -8
  96. package/getVolumes.js.map +1 -1
  97. package/index.d.ts +156 -52
  98. package/index.js +158 -117
  99. package/index.js.map +1 -1
  100. package/loadBalancer.d.ts +21 -8
  101. package/loadBalancer.js +23 -23
  102. package/loadBalancer.js.map +1 -1
  103. package/loadBalancerNetwork.js +22 -22
  104. package/loadBalancerNetwork.js.map +1 -1
  105. package/loadBalancerService.d.ts +2 -1
  106. package/loadBalancerService.js +22 -22
  107. package/loadBalancerService.js.map +1 -1
  108. package/loadBalancerTarget.d.ts +16 -0
  109. package/loadBalancerTarget.js +38 -22
  110. package/loadBalancerTarget.js.map +1 -1
  111. package/managedCertificate.d.ts +1 -1
  112. package/managedCertificate.js +23 -23
  113. package/managedCertificate.js.map +1 -1
  114. package/network.d.ts +2 -4
  115. package/network.js +24 -26
  116. package/network.js.map +1 -1
  117. package/networkRoute.js +22 -22
  118. package/networkRoute.js.map +1 -1
  119. package/networkSubnet.js +22 -22
  120. package/networkSubnet.js.map +1 -1
  121. package/package.json +4 -3
  122. package/package.json.bak +2 -1
  123. package/package.json.dev +4 -3
  124. package/placementGroup.d.ts +1 -1
  125. package/placementGroup.js +23 -23
  126. package/placementGroup.js.map +1 -1
  127. package/primaryIp.d.ts +16 -7
  128. package/primaryIp.js +23 -23
  129. package/primaryIp.js.map +1 -1
  130. package/provider.js +13 -11
  131. package/provider.js.map +1 -1
  132. package/rdns.d.ts +8 -8
  133. package/rdns.js +30 -30
  134. package/rdns.js.map +1 -1
  135. package/server.d.ts +23 -2
  136. package/server.js +43 -23
  137. package/server.js.map +1 -1
  138. package/serverNetwork.js +22 -22
  139. package/serverNetwork.js.map +1 -1
  140. package/snapshot.d.ts +1 -1
  141. package/snapshot.js +22 -22
  142. package/snapshot.js.map +1 -1
  143. package/sshKey.d.ts +2 -2
  144. package/sshKey.js +24 -24
  145. package/sshKey.js.map +1 -1
  146. package/types/index.js.map +1 -1
  147. package/types/input.d.ts +15 -15
  148. package/types/output.d.ts +4 -2
  149. package/uploadedCertificate.d.ts +1 -1
  150. package/uploadedCertificate.js +26 -24
  151. package/uploadedCertificate.js.map +1 -1
  152. package/utilities.js +13 -1
  153. package/utilities.js.map +1 -1
  154. package/volume.d.ts +4 -4
  155. package/volume.js +23 -23
  156. package/volume.js.map +1 -1
  157. package/volumeAttachment.js +22 -22
  158. package/volumeAttachment.js.map +1 -1
package/getImages.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import { output as outputs } from "./types";
2
+ import * as outputs from "./types/output";
3
3
  /**
4
4
  * Provides details about multiple Hetzner Cloud Images.
5
5
  *
@@ -9,10 +9,10 @@ import { output as outputs } from "./types";
9
9
  * import * as pulumi from "@pulumi/pulumi";
10
10
  * import * as hcloud from "@pulumi/hcloud";
11
11
  *
12
- * const image2 = pulumi.output(hcloud.getImages());
13
- * const image3 = pulumi.output(hcloud.getImages({
12
+ * const image2 = hcloud.getImages({});
13
+ * const image3 = hcloud.getImages({
14
14
  * withSelector: "key=value",
15
- * }));
15
+ * });
16
16
  * ```
17
17
  */
18
18
  export declare function getImages(args?: GetImagesArgs, opts?: pulumi.InvokeOptions): Promise<GetImagesResult>;
@@ -49,6 +49,21 @@ export interface GetImagesResult {
49
49
  readonly withSelector?: string;
50
50
  readonly withStatuses?: string[];
51
51
  }
52
+ /**
53
+ * Provides details about multiple Hetzner Cloud Images.
54
+ *
55
+ * ## Example Usage
56
+ *
57
+ * ```typescript
58
+ * import * as pulumi from "@pulumi/pulumi";
59
+ * import * as hcloud from "@pulumi/hcloud";
60
+ *
61
+ * const image2 = hcloud.getImages({});
62
+ * const image3 = hcloud.getImages({
63
+ * withSelector: "key=value",
64
+ * });
65
+ * ```
66
+ */
52
67
  export declare function getImagesOutput(args?: GetImagesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetImagesResult>;
53
68
  /**
54
69
  * A collection of arguments for invoking getImages.
package/getImages.js CHANGED
@@ -14,18 +14,15 @@ const utilities = require("./utilities");
14
14
  * import * as pulumi from "@pulumi/pulumi";
15
15
  * import * as hcloud from "@pulumi/hcloud";
16
16
  *
17
- * const image2 = pulumi.output(hcloud.getImages());
18
- * const image3 = pulumi.output(hcloud.getImages({
17
+ * const image2 = hcloud.getImages({});
18
+ * const image3 = hcloud.getImages({
19
19
  * withSelector: "key=value",
20
- * }));
20
+ * });
21
21
  * ```
22
22
  */
23
23
  function getImages(args, opts) {
24
24
  args = args || {};
25
- if (!opts) {
26
- opts = {};
27
- }
28
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
25
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
29
26
  return pulumi.runtime.invoke("hcloud:index/getImages:getImages", {
30
27
  "mostRecent": args.mostRecent,
31
28
  "withSelector": args.withSelector,
@@ -33,8 +30,23 @@ function getImages(args, opts) {
33
30
  }, opts);
34
31
  }
35
32
  exports.getImages = getImages;
33
+ /**
34
+ * Provides details about multiple Hetzner Cloud Images.
35
+ *
36
+ * ## Example Usage
37
+ *
38
+ * ```typescript
39
+ * import * as pulumi from "@pulumi/pulumi";
40
+ * import * as hcloud from "@pulumi/hcloud";
41
+ *
42
+ * const image2 = hcloud.getImages({});
43
+ * const image3 = hcloud.getImages({
44
+ * withSelector: "key=value",
45
+ * });
46
+ * ```
47
+ */
36
48
  function getImagesOutput(args, opts) {
37
- return pulumi.output(args).apply(a => getImages(a, opts));
49
+ return pulumi.output(args).apply((a) => getImages(a, opts));
38
50
  }
39
51
  exports.getImagesOutput = getImagesOutput;
40
52
  //# sourceMappingURL=getImages.js.map
package/getImages.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getImages.js","sourceRoot":"","sources":["../getImages.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QAC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C,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,0CAEC"}
@@ -1,5 +1,5 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import { output as outputs } from "./types";
2
+ import * as outputs from "./types/output";
3
3
  /**
4
4
  * Provides details about a specific Hetzner Cloud Load Balancer.
5
5
  *
@@ -9,15 +9,15 @@ import { output as outputs } from "./types";
9
9
  * import * as pulumi from "@pulumi/pulumi";
10
10
  * import * as hcloud from "@pulumi/hcloud";
11
11
  *
12
- * const lb1 = pulumi.output(hcloud.getLoadBalancer({
12
+ * const lb1 = hcloud.getLoadBalancer({
13
13
  * name: "my-load-balancer",
14
- * }));
15
- * const lb2 = pulumi.output(hcloud.getLoadBalancer({
14
+ * });
15
+ * const lb2 = hcloud.getLoadBalancer({
16
16
  * id: 123,
17
- * }));
18
- * const lb3 = pulumi.output(hcloud.getLoadBalancer({
17
+ * });
18
+ * const lb3 = hcloud.getLoadBalancer({
19
19
  * withSelector: "key=value",
20
- * }));
20
+ * });
21
21
  * ```
22
22
  */
23
23
  export declare function getLoadBalancer(args?: GetLoadBalancerArgs, opts?: pulumi.InvokeOptions): Promise<GetLoadBalancerResult>;
@@ -47,7 +47,7 @@ export interface GetLoadBalancerResult {
47
47
  */
48
48
  readonly algorithms: outputs.GetLoadBalancerAlgorithm[];
49
49
  /**
50
- * (boolean) Whether delete protection is enabled.
50
+ * (bool) Whether delete protection is enabled.
51
51
  */
52
52
  readonly deleteProtection: boolean;
53
53
  /**
@@ -80,6 +80,14 @@ export interface GetLoadBalancerResult {
80
80
  * (string) Name of the Load Balancer.
81
81
  */
82
82
  readonly name?: string;
83
+ /**
84
+ * (int) ID of the first private network that this Load Balancer is connected to.
85
+ */
86
+ readonly networkId: number;
87
+ /**
88
+ * (string) IP of the Load Balancer in the first private network that it is connected to.
89
+ */
90
+ readonly networkIp: string;
83
91
  readonly networkZone: string;
84
92
  /**
85
93
  * (list) List of services a Load Balancer provides.
@@ -91,6 +99,26 @@ export interface GetLoadBalancerResult {
91
99
  readonly targets: outputs.GetLoadBalancerTarget[];
92
100
  readonly withSelector?: string;
93
101
  }
102
+ /**
103
+ * Provides details about a specific Hetzner Cloud Load Balancer.
104
+ *
105
+ * ## Example Usage
106
+ *
107
+ * ```typescript
108
+ * import * as pulumi from "@pulumi/pulumi";
109
+ * import * as hcloud from "@pulumi/hcloud";
110
+ *
111
+ * const lb1 = hcloud.getLoadBalancer({
112
+ * name: "my-load-balancer",
113
+ * });
114
+ * const lb2 = hcloud.getLoadBalancer({
115
+ * id: 123,
116
+ * });
117
+ * const lb3 = hcloud.getLoadBalancer({
118
+ * withSelector: "key=value",
119
+ * });
120
+ * ```
121
+ */
94
122
  export declare function getLoadBalancerOutput(args?: GetLoadBalancerOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetLoadBalancerResult>;
95
123
  /**
96
124
  * A collection of arguments for invoking getLoadBalancer.
@@ -14,23 +14,20 @@ const utilities = require("./utilities");
14
14
  * import * as pulumi from "@pulumi/pulumi";
15
15
  * import * as hcloud from "@pulumi/hcloud";
16
16
  *
17
- * const lb1 = pulumi.output(hcloud.getLoadBalancer({
17
+ * const lb1 = hcloud.getLoadBalancer({
18
18
  * name: "my-load-balancer",
19
- * }));
20
- * const lb2 = pulumi.output(hcloud.getLoadBalancer({
19
+ * });
20
+ * const lb2 = hcloud.getLoadBalancer({
21
21
  * id: 123,
22
- * }));
23
- * const lb3 = pulumi.output(hcloud.getLoadBalancer({
22
+ * });
23
+ * const lb3 = hcloud.getLoadBalancer({
24
24
  * withSelector: "key=value",
25
- * }));
25
+ * });
26
26
  * ```
27
27
  */
28
28
  function getLoadBalancer(args, opts) {
29
29
  args = args || {};
30
- if (!opts) {
31
- opts = {};
32
- }
33
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
30
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
34
31
  return pulumi.runtime.invoke("hcloud:index/getLoadBalancer:getLoadBalancer", {
35
32
  "id": args.id,
36
33
  "name": args.name,
@@ -38,8 +35,28 @@ function getLoadBalancer(args, opts) {
38
35
  }, opts);
39
36
  }
40
37
  exports.getLoadBalancer = getLoadBalancer;
38
+ /**
39
+ * Provides details about a specific Hetzner Cloud Load Balancer.
40
+ *
41
+ * ## Example Usage
42
+ *
43
+ * ```typescript
44
+ * import * as pulumi from "@pulumi/pulumi";
45
+ * import * as hcloud from "@pulumi/hcloud";
46
+ *
47
+ * const lb1 = hcloud.getLoadBalancer({
48
+ * name: "my-load-balancer",
49
+ * });
50
+ * const lb2 = hcloud.getLoadBalancer({
51
+ * id: 123,
52
+ * });
53
+ * const lb3 = hcloud.getLoadBalancer({
54
+ * withSelector: "key=value",
55
+ * });
56
+ * ```
57
+ */
41
58
  function getLoadBalancerOutput(args, opts) {
42
- return pulumi.output(args).apply(a => getLoadBalancer(a, opts));
59
+ return pulumi.output(args).apply((a) => getLoadBalancer(a, opts));
43
60
  }
44
61
  exports.getLoadBalancerOutput = getLoadBalancerOutput;
45
62
  //# sourceMappingURL=getLoadBalancer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getLoadBalancer.js","sourceRoot":"","sources":["../getLoadBalancer.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,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sDAEC"}
@@ -1,5 +1,5 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import { output as outputs } from "./types";
2
+ import * as outputs from "./types/output";
3
3
  /**
4
4
  * Provides details about multiple Hetzner Cloud Load Balancers.
5
5
  *
@@ -9,10 +9,10 @@ import { output as outputs } from "./types";
9
9
  * import * as pulumi from "@pulumi/pulumi";
10
10
  * import * as hcloud from "@pulumi/hcloud";
11
11
  *
12
- * const lb2 = pulumi.output(hcloud.getLoadBalancers());
13
- * const lb3 = pulumi.output(hcloud.getLoadBalancers({
12
+ * const lb2 = hcloud.getLoadBalancers({});
13
+ * const lb3 = hcloud.getLoadBalancers({
14
14
  * withSelector: "key=value",
15
- * }));
15
+ * });
16
16
  * ```
17
17
  */
18
18
  export declare function getLoadBalancers(args?: GetLoadBalancersArgs, opts?: pulumi.InvokeOptions): Promise<GetLoadBalancersResult>;
@@ -39,6 +39,21 @@ export interface GetLoadBalancersResult {
39
39
  readonly loadBalancers: outputs.GetLoadBalancersLoadBalancer[];
40
40
  readonly withSelector?: string;
41
41
  }
42
+ /**
43
+ * Provides details about multiple Hetzner Cloud Load Balancers.
44
+ *
45
+ * ## Example Usage
46
+ *
47
+ * ```typescript
48
+ * import * as pulumi from "@pulumi/pulumi";
49
+ * import * as hcloud from "@pulumi/hcloud";
50
+ *
51
+ * const lb2 = hcloud.getLoadBalancers({});
52
+ * const lb3 = hcloud.getLoadBalancers({
53
+ * withSelector: "key=value",
54
+ * });
55
+ * ```
56
+ */
42
57
  export declare function getLoadBalancersOutput(args?: GetLoadBalancersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetLoadBalancersResult>;
43
58
  /**
44
59
  * A collection of arguments for invoking getLoadBalancers.
@@ -14,25 +14,37 @@ const utilities = require("./utilities");
14
14
  * import * as pulumi from "@pulumi/pulumi";
15
15
  * import * as hcloud from "@pulumi/hcloud";
16
16
  *
17
- * const lb2 = pulumi.output(hcloud.getLoadBalancers());
18
- * const lb3 = pulumi.output(hcloud.getLoadBalancers({
17
+ * const lb2 = hcloud.getLoadBalancers({});
18
+ * const lb3 = hcloud.getLoadBalancers({
19
19
  * withSelector: "key=value",
20
- * }));
20
+ * });
21
21
  * ```
22
22
  */
23
23
  function getLoadBalancers(args, opts) {
24
24
  args = args || {};
25
- if (!opts) {
26
- opts = {};
27
- }
28
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
25
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
29
26
  return pulumi.runtime.invoke("hcloud:index/getLoadBalancers:getLoadBalancers", {
30
27
  "withSelector": args.withSelector,
31
28
  }, opts);
32
29
  }
33
30
  exports.getLoadBalancers = getLoadBalancers;
31
+ /**
32
+ * Provides details about multiple Hetzner Cloud Load Balancers.
33
+ *
34
+ * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as hcloud from "@pulumi/hcloud";
39
+ *
40
+ * const lb2 = hcloud.getLoadBalancers({});
41
+ * const lb3 = hcloud.getLoadBalancers({
42
+ * withSelector: "key=value",
43
+ * });
44
+ * ```
45
+ */
34
46
  function getLoadBalancersOutput(args, opts) {
35
- return pulumi.output(args).apply(a => getLoadBalancers(a, opts));
47
+ return pulumi.output(args).apply((a) => getLoadBalancers(a, opts));
36
48
  }
37
49
  exports.getLoadBalancersOutput = getLoadBalancersOutput;
38
50
  //# sourceMappingURL=getLoadBalancers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getLoadBalancers.js","sourceRoot":"","sources":["../getLoadBalancers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;I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Location.d.ts CHANGED
@@ -9,12 +9,12 @@ import * as pulumi from "@pulumi/pulumi";
9
9
  * import * as pulumi from "@pulumi/pulumi";
10
10
  * import * as hcloud from "@pulumi/hcloud";
11
11
  *
12
- * const l1 = pulumi.output(hcloud.getLocation({
12
+ * const l1 = hcloud.getLocation({
13
13
  * name: "fsn1",
14
- * }));
15
- * const l2 = pulumi.output(hcloud.getLocation({
14
+ * });
15
+ * const l2 = hcloud.getLocation({
16
16
  * id: 1,
17
- * }));
17
+ * });
18
18
  * ```
19
19
  */
20
20
  export declare function getLocation(args?: GetLocationArgs, opts?: pulumi.InvokeOptions): Promise<GetLocationResult>;
@@ -68,6 +68,24 @@ export interface GetLocationResult {
68
68
  */
69
69
  readonly networkZone: string;
70
70
  }
71
+ /**
72
+ * Provides details about a specific Hetzner Cloud Location.
73
+ * Use this resource to get detailed information about specific location.
74
+ *
75
+ * ## Example Usage
76
+ *
77
+ * ```typescript
78
+ * import * as pulumi from "@pulumi/pulumi";
79
+ * import * as hcloud from "@pulumi/hcloud";
80
+ *
81
+ * const l1 = hcloud.getLocation({
82
+ * name: "fsn1",
83
+ * });
84
+ * const l2 = hcloud.getLocation({
85
+ * id: 1,
86
+ * });
87
+ * ```
88
+ */
71
89
  export declare function getLocationOutput(args?: GetLocationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetLocationResult>;
72
90
  /**
73
91
  * A collection of arguments for invoking getLocation.
package/getLocation.js CHANGED
@@ -15,28 +15,43 @@ const utilities = require("./utilities");
15
15
  * import * as pulumi from "@pulumi/pulumi";
16
16
  * import * as hcloud from "@pulumi/hcloud";
17
17
  *
18
- * const l1 = pulumi.output(hcloud.getLocation({
18
+ * const l1 = hcloud.getLocation({
19
19
  * name: "fsn1",
20
- * }));
21
- * const l2 = pulumi.output(hcloud.getLocation({
20
+ * });
21
+ * const l2 = hcloud.getLocation({
22
22
  * id: 1,
23
- * }));
23
+ * });
24
24
  * ```
25
25
  */
26
26
  function getLocation(args, opts) {
27
27
  args = args || {};
28
- if (!opts) {
29
- opts = {};
30
- }
31
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
28
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
32
29
  return pulumi.runtime.invoke("hcloud:index/getLocation:getLocation", {
33
30
  "id": args.id,
34
31
  "name": args.name,
35
32
  }, opts);
36
33
  }
37
34
  exports.getLocation = getLocation;
35
+ /**
36
+ * Provides details about a specific Hetzner Cloud Location.
37
+ * Use this resource to get detailed information about specific location.
38
+ *
39
+ * ## Example Usage
40
+ *
41
+ * ```typescript
42
+ * import * as pulumi from "@pulumi/pulumi";
43
+ * import * as hcloud from "@pulumi/hcloud";
44
+ *
45
+ * const l1 = hcloud.getLocation({
46
+ * name: "fsn1",
47
+ * });
48
+ * const l2 = hcloud.getLocation({
49
+ * id: 1,
50
+ * });
51
+ * ```
52
+ */
38
53
  function getLocationOutput(args, opts) {
39
- return pulumi.output(args).apply(a => getLocation(a, opts));
54
+ return pulumi.output(args).apply((a) => getLocation(a, opts));
40
55
  }
41
56
  exports.getLocationOutput = getLocationOutput;
42
57
  //# sourceMappingURL=getLocation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getLocation.js","sourceRoot":"","sources":["../getLocation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,WAAW,CAAC,IAAsB,EAAE,IAA2B;IAC3E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE;QACjE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,kCAWC;AAsDD,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC/D,CAAC;AAFD,8CAEC"}
1
+ {"version":3,"file":"getLocation.js","sourceRoot":"","sources":["../getLocation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,WAAW,CAAC,IAAsB,EAAE,IAA2B;IAC3E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE;QACjE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,kCAQC;AAqDD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,8CAEC"}
package/getLocations.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import { output as outputs } from "./types";
2
+ import * as outputs from "./types/output";
3
3
  /**
4
4
  * Provides a list of available Hetzner Cloud Locations.
5
5
  * This resource may be useful to create highly available infrastructure, distributed across several locations.
@@ -47,6 +47,10 @@ export interface GetLocationsResult {
47
47
  */
48
48
  readonly names: string[];
49
49
  }
50
+ /**
51
+ * Provides a list of available Hetzner Cloud Locations.
52
+ * This resource may be useful to create highly available infrastructure, distributed across several locations.
53
+ */
50
54
  export declare function getLocationsOutput(args?: GetLocationsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetLocationsResult>;
51
55
  /**
52
56
  * A collection of arguments for invoking getLocations.
package/getLocations.js CHANGED
@@ -11,17 +11,18 @@ const utilities = require("./utilities");
11
11
  */
12
12
  function getLocations(args, opts) {
13
13
  args = args || {};
14
- if (!opts) {
15
- opts = {};
16
- }
17
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
14
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
18
15
  return pulumi.runtime.invoke("hcloud:index/getLocations:getLocations", {
19
16
  "locationIds": args.locationIds,
20
17
  }, opts);
21
18
  }
22
19
  exports.getLocations = getLocations;
20
+ /**
21
+ * Provides a list of available Hetzner Cloud Locations.
22
+ * This resource may be useful to create highly available infrastructure, distributed across several locations.
23
+ */
23
24
  function getLocationsOutput(args, opts) {
24
- return pulumi.output(args).apply(a => getLocations(a, opts));
25
+ return pulumi.output(args).apply((a) => getLocations(a, opts));
25
26
  }
26
27
  exports.getLocationsOutput = getLocationsOutput;
27
28
  //# sourceMappingURL=getLocations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getLocations.js","sourceRoot":"","sources":["../getLocations.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;GAGG;AACH,SAAgB,YAAY,CAAC,IAAuB,EAAE,IAA2B;IAC7E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,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 @@ import * as pulumi from "@pulumi/pulumi";
6
6
  * import * as pulumi from "@pulumi/pulumi";
7
7
  * import * as hcloud from "@pulumi/hcloud";
8
8
  *
9
- * const network1 = pulumi.output(hcloud.getNetwork({
9
+ * const network1 = hcloud.getNetwork({
10
10
  * id: 1234,
11
- * }));
12
- * const network2 = pulumi.output(hcloud.getNetwork({
11
+ * });
12
+ * const network2 = hcloud.getNetwork({
13
13
  * name: "my-network",
14
- * }));
15
- * const network3 = pulumi.output(hcloud.getNetwork({
14
+ * });
15
+ * const network3 = hcloud.getNetwork({
16
16
  * withSelector: "key=value",
17
- * }));
17
+ * });
18
18
  * ```
19
19
  */
20
20
  export declare function getNetwork(args?: GetNetworkArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkResult>;
@@ -48,7 +48,7 @@ export interface GetNetworkArgs {
48
48
  */
49
49
  export interface GetNetworkResult {
50
50
  /**
51
- * (boolean) Whether delete protection is enabled.
51
+ * (bool) Whether delete protection is enabled.
52
52
  */
53
53
  readonly deleteProtection: boolean;
54
54
  /**
@@ -69,6 +69,24 @@ export interface GetNetworkResult {
69
69
  readonly name?: string;
70
70
  readonly withSelector?: string;
71
71
  }
72
+ /**
73
+ * ## Example Usage
74
+ *
75
+ * ```typescript
76
+ * import * as pulumi from "@pulumi/pulumi";
77
+ * import * as hcloud from "@pulumi/hcloud";
78
+ *
79
+ * const network1 = hcloud.getNetwork({
80
+ * id: 1234,
81
+ * });
82
+ * const network2 = hcloud.getNetwork({
83
+ * name: "my-network",
84
+ * });
85
+ * const network3 = hcloud.getNetwork({
86
+ * withSelector: "key=value",
87
+ * });
88
+ * ```
89
+ */
72
90
  export declare function getNetworkOutput(args?: GetNetworkOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetNetworkResult>;
73
91
  /**
74
92
  * A collection of arguments for invoking getNetwork.
package/getNetwork.js CHANGED
@@ -12,23 +12,20 @@ const utilities = require("./utilities");
12
12
  * import * as pulumi from "@pulumi/pulumi";
13
13
  * import * as hcloud from "@pulumi/hcloud";
14
14
  *
15
- * const network1 = pulumi.output(hcloud.getNetwork({
15
+ * const network1 = hcloud.getNetwork({
16
16
  * id: 1234,
17
- * }));
18
- * const network2 = pulumi.output(hcloud.getNetwork({
17
+ * });
18
+ * const network2 = hcloud.getNetwork({
19
19
  * name: "my-network",
20
- * }));
21
- * const network3 = pulumi.output(hcloud.getNetwork({
20
+ * });
21
+ * const network3 = hcloud.getNetwork({
22
22
  * withSelector: "key=value",
23
- * }));
23
+ * });
24
24
  * ```
25
25
  */
26
26
  function getNetwork(args, opts) {
27
27
  args = args || {};
28
- if (!opts) {
29
- opts = {};
30
- }
31
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
28
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
32
29
  return pulumi.runtime.invoke("hcloud:index/getNetwork:getNetwork", {
33
30
  "id": args.id,
34
31
  "ipRange": args.ipRange,
@@ -39,8 +36,26 @@ function getNetwork(args, opts) {
39
36
  }, opts);
40
37
  }
41
38
  exports.getNetwork = getNetwork;
39
+ /**
40
+ * ## Example Usage
41
+ *
42
+ * ```typescript
43
+ * import * as pulumi from "@pulumi/pulumi";
44
+ * import * as hcloud from "@pulumi/hcloud";
45
+ *
46
+ * const network1 = hcloud.getNetwork({
47
+ * id: 1234,
48
+ * });
49
+ * const network2 = hcloud.getNetwork({
50
+ * name: "my-network",
51
+ * });
52
+ * const network3 = hcloud.getNetwork({
53
+ * withSelector: "key=value",
54
+ * });
55
+ * ```
56
+ */
42
57
  function getNetworkOutput(args, opts) {
43
- return pulumi.output(args).apply(a => getNetwork(a, opts));
58
+ return pulumi.output(args).apply((a) => getNetwork(a, opts));
44
59
  }
45
60
  exports.getNetworkOutput = getNetworkOutput;
46
61
  //# sourceMappingURL=getNetwork.js.map
package/getNetwork.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getNetwork.js","sourceRoot":"","sources":["../getNetwork.ts"],"names":[],"mappings":";AAA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AC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oCAAoC,EAAE;QAC/D,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,gCAYC;AAkDD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
package/getNetworks.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import { output as outputs } from "./types";
2
+ import * as outputs from "./types/output";
3
3
  /**
4
4
  * Provides details about multiple Hetzner Cloud Networks.
5
5
  *
@@ -9,10 +9,10 @@ import { output as outputs } from "./types";
9
9
  * import * as pulumi from "@pulumi/pulumi";
10
10
  * import * as hcloud from "@pulumi/hcloud";
11
11
  *
12
- * const network2 = pulumi.output(hcloud.getNetwork());
13
- * const network3 = pulumi.output(hcloud.getNetwork({
12
+ * const network2 = hcloud.getNetwork({});
13
+ * const network3 = hcloud.getNetwork({
14
14
  * withSelector: "key=value",
15
- * }));
15
+ * });
16
16
  * ```
17
17
  */
18
18
  export declare function getNetworks(args?: GetNetworksArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworksResult>;
@@ -39,6 +39,21 @@ export interface GetNetworksResult {
39
39
  readonly networks: outputs.GetNetworksNetwork[];
40
40
  readonly withSelector?: string;
41
41
  }
42
+ /**
43
+ * Provides details about multiple Hetzner Cloud Networks.
44
+ *
45
+ * ## Example Usage
46
+ *
47
+ * ```typescript
48
+ * import * as pulumi from "@pulumi/pulumi";
49
+ * import * as hcloud from "@pulumi/hcloud";
50
+ *
51
+ * const network2 = hcloud.getNetwork({});
52
+ * const network3 = hcloud.getNetwork({
53
+ * withSelector: "key=value",
54
+ * });
55
+ * ```
56
+ */
42
57
  export declare function getNetworksOutput(args?: GetNetworksOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetNetworksResult>;
43
58
  /**
44
59
  * A collection of arguments for invoking getNetworks.