@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.
- package/certificate.js +25 -23
- package/certificate.js.map +1 -1
- package/firewall.d.ts +3 -2
- package/firewall.js +21 -21
- package/firewall.js.map +1 -1
- package/firewallAttachment.js +21 -21
- package/firewallAttachment.js.map +1 -1
- package/floatingIp.d.ts +4 -4
- package/floatingIp.js +23 -23
- package/floatingIp.js.map +1 -1
- package/floatingIpAssignment.js +22 -22
- package/floatingIpAssignment.js.map +1 -1
- package/getCertificate.d.ts +19 -4
- package/getCertificate.js +21 -9
- package/getCertificate.js.map +1 -1
- package/getCertificates.d.ts +17 -3
- package/getCertificates.js +18 -7
- package/getCertificates.js.map +1 -1
- package/getDatacenter.d.ts +22 -4
- package/getDatacenter.js +24 -9
- package/getDatacenter.js.map +1 -1
- package/getDatacenters.d.ts +5 -1
- package/getDatacenters.js +6 -5
- package/getDatacenters.js.map +1 -1
- package/getFirewall.d.ts +21 -5
- package/getFirewall.js +21 -9
- package/getFirewall.js.map +1 -1
- package/getFirewalls.d.ts +17 -3
- package/getFirewalls.js +18 -7
- package/getFirewalls.js.map +1 -1
- package/getFloatingIp.d.ts +32 -2
- package/getFloatingIp.js +33 -6
- package/getFloatingIp.js.map +1 -1
- package/getFloatingIps.d.ts +17 -3
- package/getFloatingIps.js +18 -7
- package/getFloatingIps.js.map +1 -1
- package/getImage.d.ts +19 -0
- package/getImage.js +21 -5
- package/getImage.js.map +1 -1
- package/getImages.d.ts +19 -4
- package/getImages.js +20 -8
- package/getImages.js.map +1 -1
- package/getLoadBalancer.d.ts +36 -8
- package/getLoadBalancer.js +28 -11
- package/getLoadBalancer.js.map +1 -1
- package/getLoadBalancers.d.ts +19 -4
- package/getLoadBalancers.js +20 -8
- package/getLoadBalancers.js.map +1 -1
- package/getLocation.d.ts +22 -4
- package/getLocation.js +24 -9
- package/getLocation.js.map +1 -1
- package/getLocations.d.ts +5 -1
- package/getLocations.js +6 -5
- package/getLocations.js.map +1 -1
- package/getNetwork.d.ts +25 -7
- package/getNetwork.js +26 -11
- package/getNetwork.js.map +1 -1
- package/getNetworks.d.ts +19 -4
- package/getNetworks.js +20 -8
- package/getNetworks.js.map +1 -1
- package/getPlacementGroup.d.ts +19 -4
- package/getPlacementGroup.js +21 -9
- package/getPlacementGroup.js.map +1 -1
- package/getPlacementGroups.d.ts +19 -4
- package/getPlacementGroups.js +20 -8
- package/getPlacementGroups.js.map +1 -1
- package/getPrimaryIp.d.ts +55 -5
- package/getPrimaryIp.js +49 -5
- package/getPrimaryIp.js.map +1 -1
- package/getPrimaryIps.d.ts +17 -3
- package/getPrimaryIps.js +18 -7
- package/getPrimaryIps.js.map +1 -1
- package/getServer.d.ts +27 -9
- package/getServer.js +26 -11
- package/getServer.js.map +1 -1
- package/getServerType.d.ts +22 -4
- package/getServerType.js +24 -9
- package/getServerType.js.map +1 -1
- package/getServerTypes.d.ts +4 -1
- package/getServerTypes.js +5 -5
- package/getServerTypes.js.map +1 -1
- package/getServers.d.ts +15 -3
- package/getServers.js +16 -7
- package/getServers.js.map +1 -1
- package/getSshKey.d.ts +26 -0
- package/getSshKey.js +28 -5
- package/getSshKey.js.map +1 -1
- package/getSshKeys.d.ts +15 -1
- package/getSshKeys.js +16 -5
- package/getSshKeys.js.map +1 -1
- package/getVolume.d.ts +25 -7
- package/getVolume.js +26 -11
- package/getVolume.js.map +1 -1
- package/getVolumes.d.ts +19 -4
- package/getVolumes.js +20 -8
- package/getVolumes.js.map +1 -1
- package/index.d.ts +156 -52
- package/index.js +158 -117
- package/index.js.map +1 -1
- package/loadBalancer.d.ts +21 -8
- package/loadBalancer.js +23 -23
- package/loadBalancer.js.map +1 -1
- package/loadBalancerNetwork.js +22 -22
- package/loadBalancerNetwork.js.map +1 -1
- package/loadBalancerService.d.ts +2 -1
- package/loadBalancerService.js +22 -22
- package/loadBalancerService.js.map +1 -1
- package/loadBalancerTarget.d.ts +16 -0
- package/loadBalancerTarget.js +38 -22
- package/loadBalancerTarget.js.map +1 -1
- package/managedCertificate.d.ts +1 -1
- package/managedCertificate.js +23 -23
- package/managedCertificate.js.map +1 -1
- package/network.d.ts +2 -4
- package/network.js +24 -26
- package/network.js.map +1 -1
- package/networkRoute.js +22 -22
- package/networkRoute.js.map +1 -1
- package/networkSubnet.js +22 -22
- package/networkSubnet.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +2 -1
- package/package.json.dev +4 -3
- package/placementGroup.d.ts +1 -1
- package/placementGroup.js +23 -23
- package/placementGroup.js.map +1 -1
- package/primaryIp.d.ts +16 -7
- package/primaryIp.js +23 -23
- package/primaryIp.js.map +1 -1
- package/provider.js +13 -11
- package/provider.js.map +1 -1
- package/rdns.d.ts +8 -8
- package/rdns.js +30 -30
- package/rdns.js.map +1 -1
- package/server.d.ts +23 -2
- package/server.js +43 -23
- package/server.js.map +1 -1
- package/serverNetwork.js +22 -22
- package/serverNetwork.js.map +1 -1
- package/snapshot.d.ts +1 -1
- package/snapshot.js +22 -22
- package/snapshot.js.map +1 -1
- package/sshKey.d.ts +2 -2
- package/sshKey.js +24 -24
- package/sshKey.js.map +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +15 -15
- package/types/output.d.ts +4 -2
- package/uploadedCertificate.d.ts +1 -1
- package/uploadedCertificate.js +26 -24
- package/uploadedCertificate.js.map +1 -1
- package/utilities.js +13 -1
- package/utilities.js.map +1 -1
- package/volume.d.ts +4 -4
- package/volume.js +23 -23
- package/volume.js.map +1 -1
- package/volumeAttachment.js +22 -22
- package/volumeAttachment.js.map +1 -1
package/getServerType.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 ds1 =
|
|
12
|
+
* const ds1 = hcloud.getServerType({
|
|
13
13
|
* name: "cx11",
|
|
14
|
-
* })
|
|
15
|
-
* const ds2 =
|
|
14
|
+
* });
|
|
15
|
+
* const ds2 = hcloud.getServerType({
|
|
16
16
|
* id: 1,
|
|
17
|
-
* })
|
|
17
|
+
* });
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
export declare function getServerType(args?: GetServerTypeArgs, opts?: pulumi.InvokeOptions): Promise<GetServerTypeResult>;
|
|
@@ -62,6 +62,24 @@ export interface GetServerTypeResult {
|
|
|
62
62
|
readonly name: string;
|
|
63
63
|
readonly storageType: string;
|
|
64
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Provides details about a specific Hetzner Cloud Server Type.
|
|
67
|
+
* Use this resource to get detailed information about specific Server Type.
|
|
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.getServerType({
|
|
76
|
+
* name: "cx11",
|
|
77
|
+
* });
|
|
78
|
+
* const ds2 = hcloud.getServerType({
|
|
79
|
+
* id: 1,
|
|
80
|
+
* });
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
65
83
|
export declare function getServerTypeOutput(args?: GetServerTypeOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetServerTypeResult>;
|
|
66
84
|
/**
|
|
67
85
|
* A collection of arguments for invoking getServerType.
|
package/getServerType.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 =
|
|
18
|
+
* const ds1 = hcloud.getServerType({
|
|
19
19
|
* name: "cx11",
|
|
20
|
-
* })
|
|
21
|
-
* const ds2 =
|
|
20
|
+
* });
|
|
21
|
+
* const ds2 = hcloud.getServerType({
|
|
22
22
|
* id: 1,
|
|
23
|
-
* })
|
|
23
|
+
* });
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
26
|
function getServerType(args, opts) {
|
|
27
27
|
args = args || {};
|
|
28
|
-
|
|
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/getServerType:getServerType", {
|
|
33
30
|
"id": args.id,
|
|
34
31
|
"name": args.name,
|
|
35
32
|
}, opts);
|
|
36
33
|
}
|
|
37
34
|
exports.getServerType = getServerType;
|
|
35
|
+
/**
|
|
36
|
+
* Provides details about a specific Hetzner Cloud Server Type.
|
|
37
|
+
* Use this resource to get detailed information about specific Server Type.
|
|
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.getServerType({
|
|
46
|
+
* name: "cx11",
|
|
47
|
+
* });
|
|
48
|
+
* const ds2 = hcloud.getServerType({
|
|
49
|
+
* id: 1,
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
38
53
|
function getServerTypeOutput(args, opts) {
|
|
39
|
-
return pulumi.output(args).apply(a => getServerType(a, opts));
|
|
54
|
+
return pulumi.output(args).apply((a) => getServerType(a, opts));
|
|
40
55
|
}
|
|
41
56
|
exports.getServerTypeOutput = getServerTypeOutput;
|
|
42
57
|
//# sourceMappingURL=getServerType.js.map
|
package/getServerType.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getServerType.js","sourceRoot":"","sources":["../getServerType.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"getServerType.js","sourceRoot":"","sources":["../getServerType.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,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,0CAA0C,EAAE;QACrE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sCAQC;AA+CD;;;;;;;;;;;;;;;;;GAiBG;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"}
|
package/getServerTypes.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
3
|
/**
|
|
4
4
|
* Provides a list of available Hetzner Cloud Server Types.
|
|
5
5
|
*/
|
|
@@ -38,6 +38,9 @@ export interface GetServerTypesResult {
|
|
|
38
38
|
*/
|
|
39
39
|
readonly serverTypes: outputs.GetServerTypesServerType[];
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Provides a list of available Hetzner Cloud Server Types.
|
|
43
|
+
*/
|
|
41
44
|
export declare function getServerTypesOutput(args?: GetServerTypesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetServerTypesResult>;
|
|
42
45
|
/**
|
|
43
46
|
* A collection of arguments for invoking getServerTypes.
|
package/getServerTypes.js
CHANGED
|
@@ -10,17 +10,17 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*/
|
|
11
11
|
function getServerTypes(args, opts) {
|
|
12
12
|
args = args || {};
|
|
13
|
-
|
|
14
|
-
opts = {};
|
|
15
|
-
}
|
|
16
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
13
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
17
14
|
return pulumi.runtime.invoke("hcloud:index/getServerTypes:getServerTypes", {
|
|
18
15
|
"serverTypeIds": args.serverTypeIds,
|
|
19
16
|
}, opts);
|
|
20
17
|
}
|
|
21
18
|
exports.getServerTypes = getServerTypes;
|
|
19
|
+
/**
|
|
20
|
+
* Provides a list of available Hetzner Cloud Server Types.
|
|
21
|
+
*/
|
|
22
22
|
function getServerTypesOutput(args, opts) {
|
|
23
|
-
return pulumi.output(args).apply(a => getServerTypes(a, opts));
|
|
23
|
+
return pulumi.output(args).apply((a) => getServerTypes(a, opts));
|
|
24
24
|
}
|
|
25
25
|
exports.getServerTypesOutput = getServerTypesOutput;
|
|
26
26
|
//# sourceMappingURL=getServerTypes.js.map
|
package/getServerTypes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getServerTypes.js","sourceRoot":"","sources":["../getServerTypes.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getServerTypes.js","sourceRoot":"","sources":["../getServerTypes.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;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;AAqCD;;GAEG;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/getServers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
3
|
/**
|
|
4
4
|
* ## Example Usage
|
|
5
5
|
*
|
|
@@ -7,9 +7,9 @@ import { output as outputs } from "./types";
|
|
|
7
7
|
* import * as pulumi from "@pulumi/pulumi";
|
|
8
8
|
* import * as hcloud from "@pulumi/hcloud";
|
|
9
9
|
*
|
|
10
|
-
* const s3 =
|
|
10
|
+
* const s3 = hcloud.getServers({
|
|
11
11
|
* withSelector: "key=value",
|
|
12
|
-
* })
|
|
12
|
+
* });
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
15
|
export declare function getServers(args?: GetServersArgs, opts?: pulumi.InvokeOptions): Promise<GetServersResult>;
|
|
@@ -41,6 +41,18 @@ export interface GetServersResult {
|
|
|
41
41
|
readonly withSelector?: string;
|
|
42
42
|
readonly withStatuses?: string[];
|
|
43
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* ## Example Usage
|
|
46
|
+
*
|
|
47
|
+
* ```typescript
|
|
48
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
49
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
50
|
+
*
|
|
51
|
+
* const s3 = hcloud.getServers({
|
|
52
|
+
* withSelector: "key=value",
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
44
56
|
export declare function getServersOutput(args?: GetServersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetServersResult>;
|
|
45
57
|
/**
|
|
46
58
|
* A collection of arguments for invoking getServers.
|
package/getServers.js
CHANGED
|
@@ -12,25 +12,34 @@ const utilities = require("./utilities");
|
|
|
12
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
13
|
* import * as hcloud from "@pulumi/hcloud";
|
|
14
14
|
*
|
|
15
|
-
* const s3 =
|
|
15
|
+
* const s3 = hcloud.getServers({
|
|
16
16
|
* withSelector: "key=value",
|
|
17
|
-
* })
|
|
17
|
+
* });
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
function getServers(args, opts) {
|
|
21
21
|
args = args || {};
|
|
22
|
-
|
|
23
|
-
opts = {};
|
|
24
|
-
}
|
|
25
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
22
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
26
23
|
return pulumi.runtime.invoke("hcloud:index/getServers:getServers", {
|
|
27
24
|
"withSelector": args.withSelector,
|
|
28
25
|
"withStatuses": args.withStatuses,
|
|
29
26
|
}, opts);
|
|
30
27
|
}
|
|
31
28
|
exports.getServers = getServers;
|
|
29
|
+
/**
|
|
30
|
+
* ## Example Usage
|
|
31
|
+
*
|
|
32
|
+
* ```typescript
|
|
33
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
34
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
35
|
+
*
|
|
36
|
+
* const s3 = hcloud.getServers({
|
|
37
|
+
* withSelector: "key=value",
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
32
41
|
function getServersOutput(args, opts) {
|
|
33
|
-
return pulumi.output(args).apply(a => getServers(a, opts));
|
|
42
|
+
return pulumi.output(args).apply((a) => getServers(a, opts));
|
|
34
43
|
}
|
|
35
44
|
exports.getServersOutput = getServersOutput;
|
|
36
45
|
//# sourceMappingURL=getServers.js.map
|
package/getServers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getServers.js","sourceRoot":"","sources":["../getServers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getServers.js","sourceRoot":"","sources":["../getServers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;GAWG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,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,oCAAoC,EAAE;QAC/D,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gCAQC;AA+BD;;;;;;;;;;;GAWG;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/getSshKey.d.ts
CHANGED
|
@@ -80,6 +80,32 @@ export interface GetSshKeyResult {
|
|
|
80
80
|
readonly selector?: string;
|
|
81
81
|
readonly withSelector?: string;
|
|
82
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* ## Example Usage
|
|
85
|
+
*
|
|
86
|
+
* ```typescript
|
|
87
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
88
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
89
|
+
*
|
|
90
|
+
* const sshKey1 = hcloud.getSshKey({
|
|
91
|
+
* id: 1234,
|
|
92
|
+
* });
|
|
93
|
+
* const sshKey2 = hcloud.getSshKey({
|
|
94
|
+
* name: "my-ssh-key",
|
|
95
|
+
* });
|
|
96
|
+
* const sshKey3 = hcloud.getSshKey({
|
|
97
|
+
* fingerprint: "43:51:43:a1:b5:fc:8b:b7:0a:3a:a9:b1:0f:66:73:a8",
|
|
98
|
+
* });
|
|
99
|
+
* const sshKey4 = hcloud.getSshKey({
|
|
100
|
+
* withSelector: "key=value",
|
|
101
|
+
* });
|
|
102
|
+
* const main = new hcloud.Server("main", {sshKeys: [
|
|
103
|
+
* sshKey1.then(sshKey1 => sshKey1.id),
|
|
104
|
+
* sshKey2.then(sshKey2 => sshKey2.id),
|
|
105
|
+
* sshKey3.then(sshKey3 => sshKey3.id),
|
|
106
|
+
* ]});
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
83
109
|
export declare function getSshKeyOutput(args?: GetSshKeyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSshKeyResult>;
|
|
84
110
|
/**
|
|
85
111
|
* A collection of arguments for invoking getSshKey.
|
package/getSshKey.js
CHANGED
|
@@ -33,10 +33,7 @@ const utilities = require("./utilities");
|
|
|
33
33
|
*/
|
|
34
34
|
function getSshKey(args, opts) {
|
|
35
35
|
args = args || {};
|
|
36
|
-
|
|
37
|
-
opts = {};
|
|
38
|
-
}
|
|
39
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
36
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
40
37
|
return pulumi.runtime.invoke("hcloud:index/getSshKey:getSshKey", {
|
|
41
38
|
"fingerprint": args.fingerprint,
|
|
42
39
|
"id": args.id,
|
|
@@ -46,8 +43,34 @@ function getSshKey(args, opts) {
|
|
|
46
43
|
}, opts);
|
|
47
44
|
}
|
|
48
45
|
exports.getSshKey = getSshKey;
|
|
46
|
+
/**
|
|
47
|
+
* ## Example Usage
|
|
48
|
+
*
|
|
49
|
+
* ```typescript
|
|
50
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
51
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
52
|
+
*
|
|
53
|
+
* const sshKey1 = hcloud.getSshKey({
|
|
54
|
+
* id: 1234,
|
|
55
|
+
* });
|
|
56
|
+
* const sshKey2 = hcloud.getSshKey({
|
|
57
|
+
* name: "my-ssh-key",
|
|
58
|
+
* });
|
|
59
|
+
* const sshKey3 = hcloud.getSshKey({
|
|
60
|
+
* fingerprint: "43:51:43:a1:b5:fc:8b:b7:0a:3a:a9:b1:0f:66:73:a8",
|
|
61
|
+
* });
|
|
62
|
+
* const sshKey4 = hcloud.getSshKey({
|
|
63
|
+
* withSelector: "key=value",
|
|
64
|
+
* });
|
|
65
|
+
* const main = new hcloud.Server("main", {sshKeys: [
|
|
66
|
+
* sshKey1.then(sshKey1 => sshKey1.id),
|
|
67
|
+
* sshKey2.then(sshKey2 => sshKey2.id),
|
|
68
|
+
* sshKey3.then(sshKey3 => sshKey3.id),
|
|
69
|
+
* ]});
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
49
72
|
function getSshKeyOutput(args, opts) {
|
|
50
|
-
return pulumi.output(args).apply(a => getSshKey(a, opts));
|
|
73
|
+
return pulumi.output(args).apply((a) => getSshKey(a, opts));
|
|
51
74
|
}
|
|
52
75
|
exports.getSshKeyOutput = getSshKeyOutput;
|
|
53
76
|
//# sourceMappingURL=getSshKey.js.map
|
package/getSshKey.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSshKey.js","sourceRoot":"","sources":["../getSshKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"getSshKey.js","sourceRoot":"","sources":["../getSshKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,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,kCAAkC,EAAE;QAC7D,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,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,8BAWC;AAuDD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,0CAEC"}
|
package/getSshKeys.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
3
|
/**
|
|
4
4
|
* ## Example Usage
|
|
5
5
|
*
|
|
@@ -38,6 +38,20 @@ export interface GetSshKeysResult {
|
|
|
38
38
|
readonly sshKeys: outputs.GetSshKeysSshKey[];
|
|
39
39
|
readonly withSelector?: string;
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* ## Example Usage
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
47
|
+
*
|
|
48
|
+
* const allKeys = hcloud.getSshKeys({});
|
|
49
|
+
* const keysBySelector = hcloud.getSshKeys({
|
|
50
|
+
* withSelector: "foo=bar",
|
|
51
|
+
* });
|
|
52
|
+
* const main = new hcloud.Server("main", {sshKeys: [allKeys.then(allKeys => allKeys.sshKeys)].map(__item => __item?.name)});
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
41
55
|
export declare function getSshKeysOutput(args?: GetSshKeysOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSshKeysResult>;
|
|
42
56
|
/**
|
|
43
57
|
* A collection of arguments for invoking getSshKeys.
|
package/getSshKeys.js
CHANGED
|
@@ -21,17 +21,28 @@ const utilities = require("./utilities");
|
|
|
21
21
|
*/
|
|
22
22
|
function getSshKeys(args, opts) {
|
|
23
23
|
args = args || {};
|
|
24
|
-
|
|
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/getSshKeys:getSshKeys", {
|
|
29
26
|
"withSelector": args.withSelector,
|
|
30
27
|
}, opts);
|
|
31
28
|
}
|
|
32
29
|
exports.getSshKeys = getSshKeys;
|
|
30
|
+
/**
|
|
31
|
+
* ## Example Usage
|
|
32
|
+
*
|
|
33
|
+
* ```typescript
|
|
34
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
35
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
36
|
+
*
|
|
37
|
+
* const allKeys = hcloud.getSshKeys({});
|
|
38
|
+
* const keysBySelector = hcloud.getSshKeys({
|
|
39
|
+
* withSelector: "foo=bar",
|
|
40
|
+
* });
|
|
41
|
+
* const main = new hcloud.Server("main", {sshKeys: [allKeys.then(allKeys => allKeys.sshKeys)].map(__item => __item?.name)});
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
33
44
|
function getSshKeysOutput(args, opts) {
|
|
34
|
-
return pulumi.output(args).apply(a => getSshKeys(a, opts));
|
|
45
|
+
return pulumi.output(args).apply((a) => getSshKeys(a, opts));
|
|
35
46
|
}
|
|
36
47
|
exports.getSshKeysOutput = getSshKeysOutput;
|
|
37
48
|
//# sourceMappingURL=getSshKeys.js.map
|
package/getSshKeys.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSshKeys.js","sourceRoot":"","sources":["../getSshKeys.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getSshKeys.js","sourceRoot":"","sources":["../getSshKeys.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,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,oCAAoC,EAAE;QAC/D,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,gCAOC;AA0BD;;;;;;;;;;;;;GAaG;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/getVolume.d.ts
CHANGED
|
@@ -6,15 +6,15 @@ 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 volume1 =
|
|
9
|
+
* const volume1 = hcloud.getVolume({
|
|
10
10
|
* id: 1234,
|
|
11
|
-
* })
|
|
12
|
-
* const volume2 =
|
|
11
|
+
* });
|
|
12
|
+
* const volume2 = hcloud.getVolume({
|
|
13
13
|
* name: "my-volume",
|
|
14
|
-
* })
|
|
15
|
-
* const volume3 =
|
|
14
|
+
* });
|
|
15
|
+
* const volume3 = hcloud.getVolume({
|
|
16
16
|
* withSelector: "key=value",
|
|
17
|
-
* })
|
|
17
|
+
* });
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
export declare function getVolume(args?: GetVolumeArgs, opts?: pulumi.InvokeOptions): Promise<GetVolumeResult>;
|
|
@@ -56,7 +56,7 @@ export interface GetVolumeArgs {
|
|
|
56
56
|
*/
|
|
57
57
|
export interface GetVolumeResult {
|
|
58
58
|
/**
|
|
59
|
-
* (
|
|
59
|
+
* (bool) Whether delete protection is enabled.
|
|
60
60
|
*/
|
|
61
61
|
readonly deleteProtection: boolean;
|
|
62
62
|
/**
|
|
@@ -96,6 +96,24 @@ export interface GetVolumeResult {
|
|
|
96
96
|
readonly withSelector?: string;
|
|
97
97
|
readonly withStatuses?: string[];
|
|
98
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* ## Example Usage
|
|
101
|
+
*
|
|
102
|
+
* ```typescript
|
|
103
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
104
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
105
|
+
*
|
|
106
|
+
* const volume1 = hcloud.getVolume({
|
|
107
|
+
* id: 1234,
|
|
108
|
+
* });
|
|
109
|
+
* const volume2 = hcloud.getVolume({
|
|
110
|
+
* name: "my-volume",
|
|
111
|
+
* });
|
|
112
|
+
* const volume3 = hcloud.getVolume({
|
|
113
|
+
* withSelector: "key=value",
|
|
114
|
+
* });
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
99
117
|
export declare function getVolumeOutput(args?: GetVolumeOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetVolumeResult>;
|
|
100
118
|
/**
|
|
101
119
|
* A collection of arguments for invoking getVolume.
|
package/getVolume.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 volume1 =
|
|
15
|
+
* const volume1 = hcloud.getVolume({
|
|
16
16
|
* id: 1234,
|
|
17
|
-
* })
|
|
18
|
-
* const volume2 =
|
|
17
|
+
* });
|
|
18
|
+
* const volume2 = hcloud.getVolume({
|
|
19
19
|
* name: "my-volume",
|
|
20
|
-
* })
|
|
21
|
-
* const volume3 =
|
|
20
|
+
* });
|
|
21
|
+
* const volume3 = hcloud.getVolume({
|
|
22
22
|
* withSelector: "key=value",
|
|
23
|
-
* })
|
|
23
|
+
* });
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
26
|
function getVolume(args, opts) {
|
|
27
27
|
args = args || {};
|
|
28
|
-
|
|
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/getVolume:getVolume", {
|
|
33
30
|
"id": args.id,
|
|
34
31
|
"location": args.location,
|
|
@@ -40,8 +37,26 @@ function getVolume(args, opts) {
|
|
|
40
37
|
}, opts);
|
|
41
38
|
}
|
|
42
39
|
exports.getVolume = getVolume;
|
|
40
|
+
/**
|
|
41
|
+
* ## Example Usage
|
|
42
|
+
*
|
|
43
|
+
* ```typescript
|
|
44
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
45
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
46
|
+
*
|
|
47
|
+
* const volume1 = hcloud.getVolume({
|
|
48
|
+
* id: 1234,
|
|
49
|
+
* });
|
|
50
|
+
* const volume2 = hcloud.getVolume({
|
|
51
|
+
* name: "my-volume",
|
|
52
|
+
* });
|
|
53
|
+
* const volume3 = hcloud.getVolume({
|
|
54
|
+
* withSelector: "key=value",
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
43
58
|
function getVolumeOutput(args, opts) {
|
|
44
|
-
return pulumi.output(args).apply(a => getVolume(a, opts));
|
|
59
|
+
return pulumi.output(args).apply((a) => getVolume(a, opts));
|
|
45
60
|
}
|
|
46
61
|
exports.getVolumeOutput = getVolumeOutput;
|
|
47
62
|
//# sourceMappingURL=getVolume.js.map
|
package/getVolume.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getVolume.js","sourceRoot":"","sources":["../getVolume.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"getVolume.js","sourceRoot":"","sources":["../getVolume.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,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,kCAAkC,EAAE;QAC7D,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,8BAaC;AA+ED;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,0CAEC"}
|
package/getVolumes.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
3
|
/**
|
|
4
4
|
* Provides details about multiple Hetzner Cloud volumes.
|
|
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 volume_ =
|
|
13
|
-
* const volume3 =
|
|
12
|
+
* const volume_ = hcloud.getVolumes({});
|
|
13
|
+
* const volume3 = hcloud.getVolumes({
|
|
14
14
|
* withSelector: "key=value",
|
|
15
|
-
* })
|
|
15
|
+
* });
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
18
|
export declare function getVolumes(args?: GetVolumesArgs, opts?: pulumi.InvokeOptions): Promise<GetVolumesResult>;
|
|
@@ -44,6 +44,21 @@ export interface GetVolumesResult {
|
|
|
44
44
|
readonly withSelector?: string;
|
|
45
45
|
readonly withStatuses?: string[];
|
|
46
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Provides details about multiple Hetzner Cloud volumes.
|
|
49
|
+
*
|
|
50
|
+
* ## Example Usage
|
|
51
|
+
*
|
|
52
|
+
* ```typescript
|
|
53
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
54
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
55
|
+
*
|
|
56
|
+
* const volume_ = hcloud.getVolumes({});
|
|
57
|
+
* const volume3 = hcloud.getVolumes({
|
|
58
|
+
* withSelector: "key=value",
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
47
62
|
export declare function getVolumesOutput(args?: GetVolumesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetVolumesResult>;
|
|
48
63
|
/**
|
|
49
64
|
* A collection of arguments for invoking getVolumes.
|
package/getVolumes.js
CHANGED
|
@@ -14,26 +14,38 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as hcloud from "@pulumi/hcloud";
|
|
16
16
|
*
|
|
17
|
-
* const volume_ =
|
|
18
|
-
* const volume3 =
|
|
17
|
+
* const volume_ = hcloud.getVolumes({});
|
|
18
|
+
* const volume3 = hcloud.getVolumes({
|
|
19
19
|
* withSelector: "key=value",
|
|
20
|
-
* })
|
|
20
|
+
* });
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
function getVolumes(args, opts) {
|
|
24
24
|
args = args || {};
|
|
25
|
-
|
|
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/getVolumes:getVolumes", {
|
|
30
27
|
"withSelector": args.withSelector,
|
|
31
28
|
"withStatuses": args.withStatuses,
|
|
32
29
|
}, opts);
|
|
33
30
|
}
|
|
34
31
|
exports.getVolumes = getVolumes;
|
|
32
|
+
/**
|
|
33
|
+
* Provides details about multiple Hetzner Cloud volumes.
|
|
34
|
+
*
|
|
35
|
+
* ## Example Usage
|
|
36
|
+
*
|
|
37
|
+
* ```typescript
|
|
38
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
39
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
40
|
+
*
|
|
41
|
+
* const volume_ = hcloud.getVolumes({});
|
|
42
|
+
* const volume3 = hcloud.getVolumes({
|
|
43
|
+
* withSelector: "key=value",
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
35
47
|
function getVolumesOutput(args, opts) {
|
|
36
|
-
return pulumi.output(args).apply(a => getVolumes(a, opts));
|
|
48
|
+
return pulumi.output(args).apply((a) => getVolumes(a, opts));
|
|
37
49
|
}
|
|
38
50
|
exports.getVolumesOutput = getVolumesOutput;
|
|
39
51
|
//# sourceMappingURL=getVolumes.js.map
|
package/getVolumes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getVolumes.js","sourceRoot":"","sources":["../getVolumes.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getVolumes.js","sourceRoot":"","sources":["../getVolumes.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,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,oCAAoC,EAAE;QAC/D,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gCAQC;AA+BD;;;;;;;;;;;;;;GAcG;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"}
|