@pulumi/hcloud 1.28.0 → 1.29.0-alpha.1763072013

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.
@@ -4,6 +4,24 @@ import * as outputs from "./types/output";
4
4
  * Provides a list of available Hetzner Cloud Datacenters.
5
5
  *
6
6
  * This resource may be useful to create highly available infrastructure, distributed across several Datacenters.
7
+ *
8
+ * ## Example Usage
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as hcloud from "@pulumi/hcloud";
13
+ *
14
+ * const all = hcloud.getDatacenters({});
15
+ * const workers: hcloud.Server[] = [];
16
+ * for (const range = {value: 0}; range.value < 5; range.value++) {
17
+ * workers.push(new hcloud.Server(`workers-${range.value}`, {
18
+ * name: `node${range.value}`,
19
+ * image: "debian-12",
20
+ * serverType: "cx23",
21
+ * datacenter: all.then(all => all.datacenters[range.value]).then(datacenters => datacenters.name),
22
+ * }));
23
+ * }
24
+ * ```
7
25
  */
8
26
  export declare function getDatacenters(opts?: pulumi.InvokeOptions): Promise<GetDatacentersResult>;
9
27
  /**
@@ -32,5 +50,23 @@ export interface GetDatacentersResult {
32
50
  * Provides a list of available Hetzner Cloud Datacenters.
33
51
  *
34
52
  * This resource may be useful to create highly available infrastructure, distributed across several Datacenters.
53
+ *
54
+ * ## Example Usage
55
+ *
56
+ * ```typescript
57
+ * import * as pulumi from "@pulumi/pulumi";
58
+ * import * as hcloud from "@pulumi/hcloud";
59
+ *
60
+ * const all = hcloud.getDatacenters({});
61
+ * const workers: hcloud.Server[] = [];
62
+ * for (const range = {value: 0}; range.value < 5; range.value++) {
63
+ * workers.push(new hcloud.Server(`workers-${range.value}`, {
64
+ * name: `node${range.value}`,
65
+ * image: "debian-12",
66
+ * serverType: "cx23",
67
+ * datacenter: all.then(all => all.datacenters[range.value]).then(datacenters => datacenters.name),
68
+ * }));
69
+ * }
70
+ * ```
35
71
  */
36
72
  export declare function getDatacentersOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatacentersResult>;
package/getDatacenters.js CHANGED
@@ -9,6 +9,24 @@ const utilities = require("./utilities");
9
9
  * Provides a list of available Hetzner Cloud Datacenters.
10
10
  *
11
11
  * This resource may be useful to create highly available infrastructure, distributed across several Datacenters.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as hcloud from "@pulumi/hcloud";
18
+ *
19
+ * const all = hcloud.getDatacenters({});
20
+ * const workers: hcloud.Server[] = [];
21
+ * for (const range = {value: 0}; range.value < 5; range.value++) {
22
+ * workers.push(new hcloud.Server(`workers-${range.value}`, {
23
+ * name: `node${range.value}`,
24
+ * image: "debian-12",
25
+ * serverType: "cx23",
26
+ * datacenter: all.then(all => all.datacenters[range.value]).then(datacenters => datacenters.name),
27
+ * }));
28
+ * }
29
+ * ```
12
30
  */
13
31
  function getDatacenters(opts) {
14
32
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -19,6 +37,24 @@ exports.getDatacenters = getDatacenters;
19
37
  * Provides a list of available Hetzner Cloud Datacenters.
20
38
  *
21
39
  * This resource may be useful to create highly available infrastructure, distributed across several Datacenters.
40
+ *
41
+ * ## Example Usage
42
+ *
43
+ * ```typescript
44
+ * import * as pulumi from "@pulumi/pulumi";
45
+ * import * as hcloud from "@pulumi/hcloud";
46
+ *
47
+ * const all = hcloud.getDatacenters({});
48
+ * const workers: hcloud.Server[] = [];
49
+ * for (const range = {value: 0}; range.value < 5; range.value++) {
50
+ * workers.push(new hcloud.Server(`workers-${range.value}`, {
51
+ * name: `node${range.value}`,
52
+ * image: "debian-12",
53
+ * serverType: "cx23",
54
+ * datacenter: all.then(all => all.datacenters[range.value]).then(datacenters => datacenters.name),
55
+ * }));
56
+ * }
57
+ * ```
22
58
  */
23
59
  function getDatacentersOutput(opts) {
24
60
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -1 +1 @@
1
- {"version":3,"file":"getDatacenters.js","sourceRoot":"","sources":["../getDatacenters.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,cAAc,CAAC,IAA2B;IACtD,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,EAC1E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,wCAIC;AAwBD;;;;GAIG;AACH,SAAgB,oBAAoB,CAAC,IAAiC;IAClE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,4CAA4C,EAAE,EAChF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,oDAIC"}
1
+ {"version":3,"file":"getDatacenters.js","sourceRoot":"","sources":["../getDatacenters.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,cAAc,CAAC,IAA2B;IACtD,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,EAC1E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,wCAIC;AAwBD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,oBAAoB,CAAC,IAAiC;IAClE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,4CAA4C,EAAE,EAChF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,oDAIC"}
package/getLocations.d.ts CHANGED
@@ -4,6 +4,24 @@ import * as outputs from "./types/output";
4
4
  * Provides a list of available Hetzner Cloud Locations.
5
5
  *
6
6
  * This resource may be useful to create highly available infrastructure, distributed across several locations.
7
+ *
8
+ * ## Example Usage
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as hcloud from "@pulumi/hcloud";
13
+ *
14
+ * const all = hcloud.getLocations({});
15
+ * const workers: hcloud.Server[] = [];
16
+ * for (const range = {value: 0}; range.value < 5; range.value++) {
17
+ * workers.push(new hcloud.Server(`workers-${range.value}`, {
18
+ * name: `node${range.value}`,
19
+ * image: "debian-12",
20
+ * serverType: "cx23",
21
+ * location: all.then(all => all.locations[range.value]).then(locations => locations.name),
22
+ * }));
23
+ * }
24
+ * ```
7
25
  */
8
26
  export declare function getLocations(opts?: pulumi.InvokeOptions): Promise<GetLocationsResult>;
9
27
  /**
@@ -32,5 +50,23 @@ export interface GetLocationsResult {
32
50
  * Provides a list of available Hetzner Cloud Locations.
33
51
  *
34
52
  * This resource may be useful to create highly available infrastructure, distributed across several locations.
53
+ *
54
+ * ## Example Usage
55
+ *
56
+ * ```typescript
57
+ * import * as pulumi from "@pulumi/pulumi";
58
+ * import * as hcloud from "@pulumi/hcloud";
59
+ *
60
+ * const all = hcloud.getLocations({});
61
+ * const workers: hcloud.Server[] = [];
62
+ * for (const range = {value: 0}; range.value < 5; range.value++) {
63
+ * workers.push(new hcloud.Server(`workers-${range.value}`, {
64
+ * name: `node${range.value}`,
65
+ * image: "debian-12",
66
+ * serverType: "cx23",
67
+ * location: all.then(all => all.locations[range.value]).then(locations => locations.name),
68
+ * }));
69
+ * }
70
+ * ```
35
71
  */
36
72
  export declare function getLocationsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLocationsResult>;
package/getLocations.js CHANGED
@@ -9,6 +9,24 @@ const utilities = require("./utilities");
9
9
  * Provides a list of available Hetzner Cloud Locations.
10
10
  *
11
11
  * This resource may be useful to create highly available infrastructure, distributed across several locations.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as hcloud from "@pulumi/hcloud";
18
+ *
19
+ * const all = hcloud.getLocations({});
20
+ * const workers: hcloud.Server[] = [];
21
+ * for (const range = {value: 0}; range.value < 5; range.value++) {
22
+ * workers.push(new hcloud.Server(`workers-${range.value}`, {
23
+ * name: `node${range.value}`,
24
+ * image: "debian-12",
25
+ * serverType: "cx23",
26
+ * location: all.then(all => all.locations[range.value]).then(locations => locations.name),
27
+ * }));
28
+ * }
29
+ * ```
12
30
  */
13
31
  function getLocations(opts) {
14
32
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -19,6 +37,24 @@ exports.getLocations = getLocations;
19
37
  * Provides a list of available Hetzner Cloud Locations.
20
38
  *
21
39
  * This resource may be useful to create highly available infrastructure, distributed across several locations.
40
+ *
41
+ * ## Example Usage
42
+ *
43
+ * ```typescript
44
+ * import * as pulumi from "@pulumi/pulumi";
45
+ * import * as hcloud from "@pulumi/hcloud";
46
+ *
47
+ * const all = hcloud.getLocations({});
48
+ * const workers: hcloud.Server[] = [];
49
+ * for (const range = {value: 0}; range.value < 5; range.value++) {
50
+ * workers.push(new hcloud.Server(`workers-${range.value}`, {
51
+ * name: `node${range.value}`,
52
+ * image: "debian-12",
53
+ * serverType: "cx23",
54
+ * location: all.then(all => all.locations[range.value]).then(locations => locations.name),
55
+ * }));
56
+ * }
57
+ * ```
22
58
  */
23
59
  function getLocationsOutput(opts) {
24
60
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -1 +1 @@
1
- {"version":3,"file":"getLocations.js","sourceRoot":"","sources":["../getLocations.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,YAAY,CAAC,IAA2B;IACpD,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,EACtE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,oCAIC;AAwBD;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,IAAiC;IAChE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,wCAAwC,EAAE,EAC5E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,gDAIC"}
1
+ {"version":3,"file":"getLocations.js","sourceRoot":"","sources":["../getLocations.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,YAAY,CAAC,IAA2B;IACpD,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,EACtE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,oCAIC;AAwBD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,kBAAkB,CAAC,IAAiC;IAChE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,wCAAwC,EAAE,EAC5E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,gDAIC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/hcloud",
3
- "version": "1.28.0",
3
+ "version": "1.29.0-alpha.1763072013",
4
4
  "description": "A Pulumi package for creating and managing hcloud cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -23,6 +23,6 @@
23
23
  "pulumi": {
24
24
  "resource": true,
25
25
  "name": "hcloud",
26
- "version": "1.28.0"
26
+ "version": "1.29.0-alpha.1763072013"
27
27
  }
28
28
  }