@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
@@ -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 ds1 = pulumi.output(hcloud.getDatacenter({
12
+ * const ds1 = hcloud.getDatacenter({
13
13
  * name: "fsn1-dc8",
14
- * }));
15
- * const ds2 = pulumi.output(hcloud.getDatacenter({
14
+ * });
15
+ * const ds2 = hcloud.getDatacenter({
16
16
  * id: 4,
17
- * }));
17
+ * });
18
18
  * ```
19
19
  */
20
20
  export declare function getDatacenter(args?: GetDatacenterArgs, opts?: pulumi.InvokeOptions): Promise<GetDatacenterResult>;
@@ -62,6 +62,24 @@ export interface GetDatacenterResult {
62
62
  */
63
63
  readonly supportedServerTypeIds: number[];
64
64
  }
65
+ /**
66
+ * Provides details about a specific Hetzner Cloud Datacenter.
67
+ * Use this resource to get detailed information about specific datacenter.
68
+ *
69
+ * ## Example Usage
70
+ *
71
+ * ```typescript
72
+ * import * as pulumi from "@pulumi/pulumi";
73
+ * import * as hcloud from "@pulumi/hcloud";
74
+ *
75
+ * const ds1 = hcloud.getDatacenter({
76
+ * name: "fsn1-dc8",
77
+ * });
78
+ * const ds2 = hcloud.getDatacenter({
79
+ * id: 4,
80
+ * });
81
+ * ```
82
+ */
65
83
  export declare function getDatacenterOutput(args?: GetDatacenterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatacenterResult>;
66
84
  /**
67
85
  * A collection of arguments for invoking getDatacenter.
package/getDatacenter.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 ds1 = pulumi.output(hcloud.getDatacenter({
18
+ * const ds1 = hcloud.getDatacenter({
19
19
  * name: "fsn1-dc8",
20
- * }));
21
- * const ds2 = pulumi.output(hcloud.getDatacenter({
20
+ * });
21
+ * const ds2 = hcloud.getDatacenter({
22
22
  * id: 4,
23
- * }));
23
+ * });
24
24
  * ```
25
25
  */
26
26
  function getDatacenter(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/getDatacenter:getDatacenter", {
33
30
  "id": args.id,
34
31
  "name": args.name,
35
32
  }, opts);
36
33
  }
37
34
  exports.getDatacenter = getDatacenter;
35
+ /**
36
+ * Provides details about a specific Hetzner Cloud Datacenter.
37
+ * Use this resource to get detailed information about specific datacenter.
38
+ *
39
+ * ## Example Usage
40
+ *
41
+ * ```typescript
42
+ * import * as pulumi from "@pulumi/pulumi";
43
+ * import * as hcloud from "@pulumi/hcloud";
44
+ *
45
+ * const ds1 = hcloud.getDatacenter({
46
+ * name: "fsn1-dc8",
47
+ * });
48
+ * const ds2 = hcloud.getDatacenter({
49
+ * id: 4,
50
+ * });
51
+ * ```
52
+ */
38
53
  function getDatacenterOutput(args, opts) {
39
- return pulumi.output(args).apply(a => getDatacenter(a, opts));
54
+ return pulumi.output(args).apply((a) => getDatacenter(a, opts));
40
55
  }
41
56
  exports.getDatacenterOutput = getDatacenterOutput;
42
57
  //# sourceMappingURL=getDatacenter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDatacenter.js","sourceRoot":"","sources":["../getDatacenter.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA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;IAC3F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
@@ -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 Datacenters.
5
5
  * This resource may be useful to create highly available infrastructure, distributed across several datacenters.
@@ -47,6 +47,10 @@ export interface GetDatacentersResult {
47
47
  */
48
48
  readonly names: string[];
49
49
  }
50
+ /**
51
+ * Provides a list of available Hetzner Cloud Datacenters.
52
+ * This resource may be useful to create highly available infrastructure, distributed across several datacenters.
53
+ */
50
54
  export declare function getDatacentersOutput(args?: GetDatacentersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatacentersResult>;
51
55
  /**
52
56
  * A collection of arguments for invoking getDatacenters.
package/getDatacenters.js CHANGED
@@ -11,17 +11,18 @@ const utilities = require("./utilities");
11
11
  */
12
12
  function getDatacenters(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/getDatacenters:getDatacenters", {
19
16
  "datacenterIds": args.datacenterIds,
20
17
  }, opts);
21
18
  }
22
19
  exports.getDatacenters = getDatacenters;
20
+ /**
21
+ * Provides a list of available Hetzner Cloud Datacenters.
22
+ * This resource may be useful to create highly available infrastructure, distributed across several datacenters.
23
+ */
23
24
  function getDatacentersOutput(args, opts) {
24
- return pulumi.output(args).apply(a => getDatacenters(a, opts));
25
+ return pulumi.output(args).apply((a) => getDatacenters(a, opts));
25
26
  }
26
27
  exports.getDatacentersOutput = getDatacentersOutput;
27
28
  //# sourceMappingURL=getDatacenters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDatacenters.js","sourceRoot":"","sources":["../getDatacenters.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;GAGG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,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,4CAA4C,EAAE;QACvE,eAAe,EAAE,IAAI,CAAC,aAAa;KACtC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,wCAUC;AA8CD,SAAgB,oBAAoB,CAAC,IAA+B,EAAE,IAA2B;IAC7F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,oDAEC"}
1
+ {"version":3,"file":"getDatacenters.js","sourceRoot":"","sources":["../getDatacenters.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;GAGG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,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,4CAA4C,EAAE;QACvE,eAAe,EAAE,IAAI,CAAC,aAAa;KACtC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,wCAOC;AA6CD;;;GAGG;AACH,SAAgB,oBAAoB,CAAC,IAA+B,EAAE,IAA2B;IAC7F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACzE,CAAC;AAFD,oDAEC"}
package/getFirewall.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import { input as inputs, output as outputs } from "./types";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
3
4
  /**
4
5
  * Provides details about a specific Hetzner Cloud Firewall.
5
6
  *
@@ -7,12 +8,12 @@ import { input as inputs, output as outputs } from "./types";
7
8
  * import * as pulumi from "@pulumi/pulumi";
8
9
  * import * as hcloud from "@pulumi/hcloud";
9
10
  *
10
- * const sampleFirewall1 = pulumi.output(hcloud.getFirewall({
11
+ * const sampleFirewall1 = hcloud.getFirewall({
11
12
  * name: "sample-firewall-1",
12
- * }));
13
- * const sampleFirewall2 = pulumi.output(hcloud.getFirewall({
13
+ * });
14
+ * const sampleFirewall2 = hcloud.getFirewall({
14
15
  * id: 4711,
15
- * }));
16
+ * });
16
17
  * ```
17
18
  */
18
19
  export declare function getFirewall(args?: GetFirewallArgs, opts?: pulumi.InvokeOptions): Promise<GetFirewallResult>;
@@ -80,6 +81,21 @@ export interface GetFirewallResult {
80
81
  readonly rules?: outputs.GetFirewallRule[];
81
82
  readonly withSelector?: string;
82
83
  }
84
+ /**
85
+ * Provides details about a specific Hetzner Cloud Firewall.
86
+ *
87
+ * ```typescript
88
+ * import * as pulumi from "@pulumi/pulumi";
89
+ * import * as hcloud from "@pulumi/hcloud";
90
+ *
91
+ * const sampleFirewall1 = hcloud.getFirewall({
92
+ * name: "sample-firewall-1",
93
+ * });
94
+ * const sampleFirewall2 = hcloud.getFirewall({
95
+ * id: 4711,
96
+ * });
97
+ * ```
98
+ */
83
99
  export declare function getFirewallOutput(args?: GetFirewallOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFirewallResult>;
84
100
  /**
85
101
  * A collection of arguments for invoking getFirewall.
package/getFirewall.js CHANGED
@@ -12,20 +12,17 @@ const utilities = require("./utilities");
12
12
  * import * as pulumi from "@pulumi/pulumi";
13
13
  * import * as hcloud from "@pulumi/hcloud";
14
14
  *
15
- * const sampleFirewall1 = pulumi.output(hcloud.getFirewall({
15
+ * const sampleFirewall1 = hcloud.getFirewall({
16
16
  * name: "sample-firewall-1",
17
- * }));
18
- * const sampleFirewall2 = pulumi.output(hcloud.getFirewall({
17
+ * });
18
+ * const sampleFirewall2 = hcloud.getFirewall({
19
19
  * id: 4711,
20
- * }));
20
+ * });
21
21
  * ```
22
22
  */
23
23
  function getFirewall(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/getFirewall:getFirewall", {
30
27
  "applyTos": args.applyTos,
31
28
  "id": args.id,
@@ -37,8 +34,23 @@ function getFirewall(args, opts) {
37
34
  }, opts);
38
35
  }
39
36
  exports.getFirewall = getFirewall;
37
+ /**
38
+ * Provides details about a specific Hetzner Cloud Firewall.
39
+ *
40
+ * ```typescript
41
+ * import * as pulumi from "@pulumi/pulumi";
42
+ * import * as hcloud from "@pulumi/hcloud";
43
+ *
44
+ * const sampleFirewall1 = hcloud.getFirewall({
45
+ * name: "sample-firewall-1",
46
+ * });
47
+ * const sampleFirewall2 = hcloud.getFirewall({
48
+ * id: 4711,
49
+ * });
50
+ * ```
51
+ */
40
52
  function getFirewallOutput(args, opts) {
41
- return pulumi.output(args).apply(a => getFirewall(a, opts));
53
+ return pulumi.output(args).apply((a) => getFirewall(a, opts));
42
54
  }
43
55
  exports.getFirewallOutput = getFirewallOutput;
44
56
  //# sourceMappingURL=getFirewall.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getFirewall.js","sourceRoot":"","sources":["../getFirewall.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;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,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAhBD,kCAgBC;AAgED,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":"getFirewall.js","sourceRoot":"","sources":["../getFirewall.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;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,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,kCAaC;AA+DD;;;;;;;;;;;;;;GAcG;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/getFirewalls.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 Firewall.
5
5
  *
@@ -9,9 +9,9 @@ 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 sampleFirewall1 = pulumi.output(hcloud.getFirewalls({
12
+ * const sampleFirewall1 = hcloud.getFirewalls({
13
13
  * withSelector: "key=value",
14
- * }));
14
+ * });
15
15
  * ```
16
16
  */
17
17
  export declare function getFirewalls(args?: GetFirewallsArgs, opts?: pulumi.InvokeOptions): Promise<GetFirewallsResult>;
@@ -43,6 +43,20 @@ export interface GetFirewallsResult {
43
43
  readonly mostRecent?: boolean;
44
44
  readonly withSelector?: string;
45
45
  }
46
+ /**
47
+ * Provides details about multiple Hetzner Cloud Firewall.
48
+ *
49
+ * ## Example Usage
50
+ *
51
+ * ```typescript
52
+ * import * as pulumi from "@pulumi/pulumi";
53
+ * import * as hcloud from "@pulumi/hcloud";
54
+ *
55
+ * const sampleFirewall1 = hcloud.getFirewalls({
56
+ * withSelector: "key=value",
57
+ * });
58
+ * ```
59
+ */
46
60
  export declare function getFirewallsOutput(args?: GetFirewallsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFirewallsResult>;
47
61
  /**
48
62
  * A collection of arguments for invoking getFirewalls.
package/getFirewalls.js CHANGED
@@ -14,25 +14,36 @@ const utilities = require("./utilities");
14
14
  * import * as pulumi from "@pulumi/pulumi";
15
15
  * import * as hcloud from "@pulumi/hcloud";
16
16
  *
17
- * const sampleFirewall1 = pulumi.output(hcloud.getFirewalls({
17
+ * const sampleFirewall1 = hcloud.getFirewalls({
18
18
  * withSelector: "key=value",
19
- * }));
19
+ * });
20
20
  * ```
21
21
  */
22
22
  function getFirewalls(args, opts) {
23
23
  args = args || {};
24
- if (!opts) {
25
- opts = {};
26
- }
27
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
24
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
28
25
  return pulumi.runtime.invoke("hcloud:index/getFirewalls:getFirewalls", {
29
26
  "mostRecent": args.mostRecent,
30
27
  "withSelector": args.withSelector,
31
28
  }, opts);
32
29
  }
33
30
  exports.getFirewalls = getFirewalls;
31
+ /**
32
+ * Provides details about multiple Hetzner Cloud Firewall.
33
+ *
34
+ * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as hcloud from "@pulumi/hcloud";
39
+ *
40
+ * const sampleFirewall1 = hcloud.getFirewalls({
41
+ * withSelector: "key=value",
42
+ * });
43
+ * ```
44
+ */
34
45
  function getFirewallsOutput(args, opts) {
35
- return pulumi.output(args).apply(a => getFirewalls(a, opts));
46
+ return pulumi.output(args).apply((a) => getFirewalls(a, opts));
36
47
  }
37
48
  exports.getFirewallsOutput = getFirewallsOutput;
38
49
  //# sourceMappingURL=getFirewalls.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getFirewalls.js","sourceRoot":"","sources":["../getFirewalls.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,YAAY,CAAC,IAAuB,EAAE,IAA2B;IAC7E,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,wCAAwC,EAAE;QACnE,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,oCAWC;AAgCD,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChE,CAAC;AAFD,gDAEC"}
1
+ {"version":3,"file":"getFirewalls.js","sourceRoot":"","sources":["../getFirewalls.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,YAAY,CAAC,IAAuB,EAAE,IAA2B;IAC7E,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,wCAAwC,EAAE;QACnE,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,oCAQC;AA+BD;;;;;;;;;;;;;GAaG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,gDAEC"}
@@ -20,7 +20,7 @@ import * as pulumi from "@pulumi/pulumi";
20
20
  * const ip2 = hcloud.getFloatingIp({
21
21
  * withSelector: "key=value",
22
22
  * });
23
- * const main: hcloud.FloatingIpAssignment[];
23
+ * const main: hcloud.FloatingIpAssignment[] = [];
24
24
  * for (const range = {value: 0}; range.value < _var.counter; range.value++) {
25
25
  * main.push(new hcloud.FloatingIpAssignment(`main-${range.value}`, {
26
26
  * floatingIpId: ip1.then(ip1 => ip1.id),
@@ -60,7 +60,7 @@ export interface GetFloatingIpArgs {
60
60
  */
61
61
  export interface GetFloatingIpResult {
62
62
  /**
63
- * (boolean) Whether delete protection is enabled.
63
+ * (bool) Whether delete protection is enabled.
64
64
  */
65
65
  readonly deleteProtection: boolean;
66
66
  /**
@@ -107,6 +107,36 @@ export interface GetFloatingIpResult {
107
107
  readonly type: string;
108
108
  readonly withSelector?: string;
109
109
  }
110
+ /**
111
+ * Provides details about a Hetzner Cloud Floating IP.
112
+ *
113
+ * This resource can be useful when you need to determine a Floating IP ID based on the IP address.
114
+ *
115
+ * ## Example Usage
116
+ *
117
+ * # Data Source: hcloud.FloatingIp
118
+ * Provides details about a Hetzner Cloud Floating IP.
119
+ * This resource can be useful when you need to determine a Floating IP ID based on the IP address.
120
+ * ### Additional Examples
121
+ * ```typescript
122
+ * import * as pulumi from "@pulumi/pulumi";
123
+ * import * as hcloud from "@pulumi/hcloud";
124
+ *
125
+ * const ip1 = hcloud.getFloatingIp({
126
+ * ipAddress: "1.2.3.4",
127
+ * });
128
+ * const ip2 = hcloud.getFloatingIp({
129
+ * withSelector: "key=value",
130
+ * });
131
+ * const main: hcloud.FloatingIpAssignment[] = [];
132
+ * for (const range = {value: 0}; range.value < _var.counter; range.value++) {
133
+ * main.push(new hcloud.FloatingIpAssignment(`main-${range.value}`, {
134
+ * floatingIpId: ip1.then(ip1 => ip1.id),
135
+ * serverId: hcloud_server.main.id,
136
+ * }));
137
+ * }
138
+ * ```
139
+ */
110
140
  export declare function getFloatingIpOutput(args?: GetFloatingIpOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFloatingIpResult>;
111
141
  /**
112
142
  * A collection of arguments for invoking getFloatingIp.
package/getFloatingIp.js CHANGED
@@ -26,7 +26,7 @@ const utilities = require("./utilities");
26
26
  * const ip2 = hcloud.getFloatingIp({
27
27
  * withSelector: "key=value",
28
28
  * });
29
- * const main: hcloud.FloatingIpAssignment[];
29
+ * const main: hcloud.FloatingIpAssignment[] = [];
30
30
  * for (const range = {value: 0}; range.value < _var.counter; range.value++) {
31
31
  * main.push(new hcloud.FloatingIpAssignment(`main-${range.value}`, {
32
32
  * floatingIpId: ip1.then(ip1 => ip1.id),
@@ -37,10 +37,7 @@ const utilities = require("./utilities");
37
37
  */
38
38
  function getFloatingIp(args, opts) {
39
39
  args = args || {};
40
- if (!opts) {
41
- opts = {};
42
- }
43
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
40
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
44
41
  return pulumi.runtime.invoke("hcloud:index/getFloatingIp:getFloatingIp", {
45
42
  "id": args.id,
46
43
  "ipAddress": args.ipAddress,
@@ -50,8 +47,38 @@ function getFloatingIp(args, opts) {
50
47
  }, opts);
51
48
  }
52
49
  exports.getFloatingIp = getFloatingIp;
50
+ /**
51
+ * Provides details about a Hetzner Cloud Floating IP.
52
+ *
53
+ * This resource can be useful when you need to determine a Floating IP ID based on the IP address.
54
+ *
55
+ * ## Example Usage
56
+ *
57
+ * # Data Source: hcloud.FloatingIp
58
+ * Provides details about a Hetzner Cloud Floating IP.
59
+ * This resource can be useful when you need to determine a Floating IP ID based on the IP address.
60
+ * ### Additional Examples
61
+ * ```typescript
62
+ * import * as pulumi from "@pulumi/pulumi";
63
+ * import * as hcloud from "@pulumi/hcloud";
64
+ *
65
+ * const ip1 = hcloud.getFloatingIp({
66
+ * ipAddress: "1.2.3.4",
67
+ * });
68
+ * const ip2 = hcloud.getFloatingIp({
69
+ * withSelector: "key=value",
70
+ * });
71
+ * const main: hcloud.FloatingIpAssignment[] = [];
72
+ * for (const range = {value: 0}; range.value < _var.counter; range.value++) {
73
+ * main.push(new hcloud.FloatingIpAssignment(`main-${range.value}`, {
74
+ * floatingIpId: ip1.then(ip1 => ip1.id),
75
+ * serverId: hcloud_server.main.id,
76
+ * }));
77
+ * }
78
+ * ```
79
+ */
53
80
  function getFloatingIpOutput(args, opts) {
54
- return pulumi.output(args).apply(a => getFloatingIp(a, opts));
81
+ return pulumi.output(args).apply((a) => getFloatingIp(a, opts));
55
82
  }
56
83
  exports.getFloatingIpOutput = getFloatingIpOutput;
57
84
  //# sourceMappingURL=getFloatingIp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getFloatingIp.js","sourceRoot":"","sources":["../getFloatingIp.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF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M,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,sCAWC;AA8ED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
@@ -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 Floating IPs.
5
5
  *
@@ -9,9 +9,9 @@ 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 ip2 = pulumi.output(hcloud.getFloatingIps({
12
+ * const ip2 = hcloud.getFloatingIps({
13
13
  * withSelector: "key=value",
14
- * }));
14
+ * });
15
15
  * ```
16
16
  */
17
17
  export declare function getFloatingIps(args?: GetFloatingIpsArgs, opts?: pulumi.InvokeOptions): Promise<GetFloatingIpsResult>;
@@ -38,6 +38,20 @@ export interface GetFloatingIpsResult {
38
38
  readonly id: string;
39
39
  readonly withSelector?: string;
40
40
  }
41
+ /**
42
+ * Provides details about multiple Hetzner Cloud Floating IPs.
43
+ *
44
+ * ## Example Usage
45
+ *
46
+ * ```typescript
47
+ * import * as pulumi from "@pulumi/pulumi";
48
+ * import * as hcloud from "@pulumi/hcloud";
49
+ *
50
+ * const ip2 = hcloud.getFloatingIps({
51
+ * withSelector: "key=value",
52
+ * });
53
+ * ```
54
+ */
41
55
  export declare function getFloatingIpsOutput(args?: GetFloatingIpsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFloatingIpsResult>;
42
56
  /**
43
57
  * A collection of arguments for invoking getFloatingIps.
package/getFloatingIps.js CHANGED
@@ -14,24 +14,35 @@ const utilities = require("./utilities");
14
14
  * import * as pulumi from "@pulumi/pulumi";
15
15
  * import * as hcloud from "@pulumi/hcloud";
16
16
  *
17
- * const ip2 = pulumi.output(hcloud.getFloatingIps({
17
+ * const ip2 = hcloud.getFloatingIps({
18
18
  * withSelector: "key=value",
19
- * }));
19
+ * });
20
20
  * ```
21
21
  */
22
22
  function getFloatingIps(args, opts) {
23
23
  args = args || {};
24
- if (!opts) {
25
- opts = {};
26
- }
27
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
24
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
28
25
  return pulumi.runtime.invoke("hcloud:index/getFloatingIps:getFloatingIps", {
29
26
  "withSelector": args.withSelector,
30
27
  }, opts);
31
28
  }
32
29
  exports.getFloatingIps = getFloatingIps;
30
+ /**
31
+ * Provides details about multiple Hetzner Cloud Floating IPs.
32
+ *
33
+ * ## Example Usage
34
+ *
35
+ * ```typescript
36
+ * import * as pulumi from "@pulumi/pulumi";
37
+ * import * as hcloud from "@pulumi/hcloud";
38
+ *
39
+ * const ip2 = hcloud.getFloatingIps({
40
+ * withSelector: "key=value",
41
+ * });
42
+ * ```
43
+ */
33
44
  function getFloatingIpsOutput(args, opts) {
34
- return pulumi.output(args).apply(a => getFloatingIps(a, opts));
45
+ return pulumi.output(args).apply((a) => getFloatingIps(a, opts));
35
46
  }
36
47
  exports.getFloatingIpsOutput = getFloatingIpsOutput;
37
48
  //# sourceMappingURL=getFloatingIps.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getFloatingIps.js","sourceRoot":"","sources":["../getFloatingIps.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,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,4CAA4C,EAAE;QACvE,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,wCAUC;AA2BD,SAAgB,oBAAoB,CAAC,IAA+B,EAAE,IAA2B;IAC7F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,oDAEC"}
1
+ {"version":3,"file":"getFloatingIps.js","sourceRoot":"","sources":["../getFloatingIps.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,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,4CAA4C,EAAE;QACvE,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,wCAOC;AA0BD;;;;;;;;;;;;;GAaG;AACH,SAAgB,oBAAoB,CAAC,IAA+B,EAAE,IAA2B;IAC7F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACzE,CAAC;AAFD,oDAEC"}
package/getImage.d.ts CHANGED
@@ -99,6 +99,25 @@ export interface GetImageResult {
99
99
  readonly withSelector?: string;
100
100
  readonly withStatuses?: string[];
101
101
  }
102
+ /**
103
+ * ## Example Usage
104
+ *
105
+ * ```typescript
106
+ * import * as pulumi from "@pulumi/pulumi";
107
+ * import * as hcloud from "@pulumi/hcloud";
108
+ *
109
+ * const image1 = hcloud.getImage({
110
+ * id: 1234,
111
+ * });
112
+ * const image2 = hcloud.getImage({
113
+ * name: "ubuntu-18.04",
114
+ * });
115
+ * const image3 = hcloud.getImage({
116
+ * withSelector: "key=value",
117
+ * });
118
+ * const main = new hcloud.Server("main", {image: image1.then(image1 => image1.id)});
119
+ * ```
120
+ */
102
121
  export declare function getImageOutput(args?: GetImageOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetImageResult>;
103
122
  /**
104
123
  * A collection of arguments for invoking getImage.
package/getImage.js CHANGED
@@ -26,10 +26,7 @@ const utilities = require("./utilities");
26
26
  */
27
27
  function getImage(args, opts) {
28
28
  args = args || {};
29
- if (!opts) {
30
- opts = {};
31
- }
32
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
29
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
33
30
  return pulumi.runtime.invoke("hcloud:index/getImage:getImage", {
34
31
  "id": args.id,
35
32
  "mostRecent": args.mostRecent,
@@ -40,8 +37,27 @@ function getImage(args, opts) {
40
37
  }, opts);
41
38
  }
42
39
  exports.getImage = getImage;
40
+ /**
41
+ * ## Example Usage
42
+ *
43
+ * ```typescript
44
+ * import * as pulumi from "@pulumi/pulumi";
45
+ * import * as hcloud from "@pulumi/hcloud";
46
+ *
47
+ * const image1 = hcloud.getImage({
48
+ * id: 1234,
49
+ * });
50
+ * const image2 = hcloud.getImage({
51
+ * name: "ubuntu-18.04",
52
+ * });
53
+ * const image3 = hcloud.getImage({
54
+ * withSelector: "key=value",
55
+ * });
56
+ * const main = new hcloud.Server("main", {image: image1.then(image1 => image1.id)});
57
+ * ```
58
+ */
43
59
  function getImageOutput(args, opts) {
44
- return pulumi.output(args).apply(a => getImage(a, opts));
60
+ return pulumi.output(args).apply((a) => getImage(a, opts));
45
61
  }
46
62
  exports.getImageOutput = getImageOutput;
47
63
  //# sourceMappingURL=getImage.js.map
package/getImage.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getImage.js","sourceRoot":"","sources":["../getImage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,QAAQ,CAAC,IAAmB,EAAE,IAA2B;IACrE,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,gCAAgC,EAAE;QAC3D,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAfD,4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