@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/certificate.js
CHANGED
|
@@ -10,6 +10,28 @@ const utilities = require("./utilities");
|
|
|
10
10
|
* Deprecated.
|
|
11
11
|
*/
|
|
12
12
|
class Certificate extends pulumi.CustomResource {
|
|
13
|
+
/**
|
|
14
|
+
* Get an existing Certificate resource's state with the given name, ID, and optional extra
|
|
15
|
+
* properties used to qualify the lookup.
|
|
16
|
+
*
|
|
17
|
+
* @param name The _unique_ name of the resulting resource.
|
|
18
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
19
|
+
* @param state Any extra arguments used during the lookup.
|
|
20
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
21
|
+
*/
|
|
22
|
+
static get(name, id, state, opts) {
|
|
23
|
+
return new Certificate(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Returns true if the given object is an instance of Certificate. This is designed to work even
|
|
27
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
28
|
+
*/
|
|
29
|
+
static isInstance(obj) {
|
|
30
|
+
if (obj === undefined || obj === null) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
return obj['__pulumiType'] === Certificate.__pulumiType;
|
|
34
|
+
}
|
|
13
35
|
constructor(name, argsOrState, opts) {
|
|
14
36
|
let resourceInputs = {};
|
|
15
37
|
opts = opts || {};
|
|
@@ -37,7 +59,7 @@ class Certificate extends pulumi.CustomResource {
|
|
|
37
59
|
resourceInputs["certificate"] = args ? args.certificate : undefined;
|
|
38
60
|
resourceInputs["labels"] = args ? args.labels : undefined;
|
|
39
61
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
40
|
-
resourceInputs["privateKey"] = args ? args.privateKey : undefined;
|
|
62
|
+
resourceInputs["privateKey"] = (args === null || args === void 0 ? void 0 : args.privateKey) ? pulumi.secret(args.privateKey) : undefined;
|
|
41
63
|
resourceInputs["created"] = undefined /*out*/;
|
|
42
64
|
resourceInputs["domainNames"] = undefined /*out*/;
|
|
43
65
|
resourceInputs["fingerprint"] = undefined /*out*/;
|
|
@@ -46,30 +68,10 @@ class Certificate extends pulumi.CustomResource {
|
|
|
46
68
|
resourceInputs["type"] = undefined /*out*/;
|
|
47
69
|
}
|
|
48
70
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
71
|
+
const secretOpts = { additionalSecretOutputs: ["privateKey"] };
|
|
72
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
49
73
|
super(Certificate.__pulumiType, name, resourceInputs, opts);
|
|
50
74
|
}
|
|
51
|
-
/**
|
|
52
|
-
* Get an existing Certificate resource's state with the given name, ID, and optional extra
|
|
53
|
-
* properties used to qualify the lookup.
|
|
54
|
-
*
|
|
55
|
-
* @param name The _unique_ name of the resulting resource.
|
|
56
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
57
|
-
* @param state Any extra arguments used during the lookup.
|
|
58
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
59
|
-
*/
|
|
60
|
-
static get(name, id, state, opts) {
|
|
61
|
-
return new Certificate(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Returns true if the given object is an instance of Certificate. This is designed to work even
|
|
65
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
66
|
-
*/
|
|
67
|
-
static isInstance(obj) {
|
|
68
|
-
if (obj === undefined || obj === null) {
|
|
69
|
-
return false;
|
|
70
|
-
}
|
|
71
|
-
return obj['__pulumiType'] === Certificate.__pulumiType;
|
|
72
|
-
}
|
|
73
75
|
}
|
|
74
76
|
exports.Certificate = Certificate;
|
|
75
77
|
/** @internal */
|
package/certificate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certificate.js","sourceRoot":"","sources":["../certificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;GAGG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"certificate.js","sourceRoot":"","sources":["../certificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;GAGG;AACH,MAAa,WAAY,SAA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YAAY,CAAC,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,UAAU,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YAC7F,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;QAC/D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AArFL,kCAsFC;AAxEG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
|
package/firewall.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
3
4
|
/**
|
|
4
5
|
* Provides a Hetzner Cloud Firewall to represent a Firewall in the Hetzner Cloud.
|
|
5
6
|
*
|
|
@@ -40,7 +41,7 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
40
41
|
* Firewalls can be imported using its `id`
|
|
41
42
|
*
|
|
42
43
|
* ```sh
|
|
43
|
-
* $ pulumi import hcloud:index/firewall:Firewall myfirewall
|
|
44
|
+
* $ pulumi import hcloud:index/firewall:Firewall myfirewall id
|
|
44
45
|
* ```
|
|
45
46
|
*/
|
|
46
47
|
export declare class Firewall extends pulumi.CustomResource {
|
package/firewall.js
CHANGED
|
@@ -45,30 +45,10 @@ const utilities = require("./utilities");
|
|
|
45
45
|
* Firewalls can be imported using its `id`
|
|
46
46
|
*
|
|
47
47
|
* ```sh
|
|
48
|
-
* $ pulumi import hcloud:index/firewall:Firewall myfirewall
|
|
48
|
+
* $ pulumi import hcloud:index/firewall:Firewall myfirewall id
|
|
49
49
|
* ```
|
|
50
50
|
*/
|
|
51
51
|
class Firewall extends pulumi.CustomResource {
|
|
52
|
-
constructor(name, argsOrState, opts) {
|
|
53
|
-
let resourceInputs = {};
|
|
54
|
-
opts = opts || {};
|
|
55
|
-
if (opts.id) {
|
|
56
|
-
const state = argsOrState;
|
|
57
|
-
resourceInputs["applyTos"] = state ? state.applyTos : undefined;
|
|
58
|
-
resourceInputs["labels"] = state ? state.labels : undefined;
|
|
59
|
-
resourceInputs["name"] = state ? state.name : undefined;
|
|
60
|
-
resourceInputs["rules"] = state ? state.rules : undefined;
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
const args = argsOrState;
|
|
64
|
-
resourceInputs["applyTos"] = args ? args.applyTos : undefined;
|
|
65
|
-
resourceInputs["labels"] = args ? args.labels : undefined;
|
|
66
|
-
resourceInputs["name"] = args ? args.name : undefined;
|
|
67
|
-
resourceInputs["rules"] = args ? args.rules : undefined;
|
|
68
|
-
}
|
|
69
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
70
|
-
super(Firewall.__pulumiType, name, resourceInputs, opts);
|
|
71
|
-
}
|
|
72
52
|
/**
|
|
73
53
|
* Get an existing Firewall resource's state with the given name, ID, and optional extra
|
|
74
54
|
* properties used to qualify the lookup.
|
|
@@ -91,6 +71,26 @@ class Firewall extends pulumi.CustomResource {
|
|
|
91
71
|
}
|
|
92
72
|
return obj['__pulumiType'] === Firewall.__pulumiType;
|
|
93
73
|
}
|
|
74
|
+
constructor(name, argsOrState, opts) {
|
|
75
|
+
let resourceInputs = {};
|
|
76
|
+
opts = opts || {};
|
|
77
|
+
if (opts.id) {
|
|
78
|
+
const state = argsOrState;
|
|
79
|
+
resourceInputs["applyTos"] = state ? state.applyTos : undefined;
|
|
80
|
+
resourceInputs["labels"] = state ? state.labels : undefined;
|
|
81
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
82
|
+
resourceInputs["rules"] = state ? state.rules : undefined;
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
const args = argsOrState;
|
|
86
|
+
resourceInputs["applyTos"] = args ? args.applyTos : undefined;
|
|
87
|
+
resourceInputs["labels"] = args ? args.labels : undefined;
|
|
88
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
89
|
+
resourceInputs["rules"] = args ? args.rules : undefined;
|
|
90
|
+
}
|
|
91
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
92
|
+
super(Firewall.__pulumiType, name, resourceInputs, opts);
|
|
93
|
+
}
|
|
94
94
|
}
|
|
95
95
|
exports.Firewall = Firewall;
|
|
96
96
|
/** @internal */
|
package/firewall.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firewall.js","sourceRoot":"","sources":["../firewall.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"firewall.js","sourceRoot":"","sources":["../firewall.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,M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,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAvEL,4BAwEC;AA1DG,gBAAgB;AACO,qBAAY,GAAG,gCAAgC,CAAC"}
|
package/firewallAttachment.js
CHANGED
|
@@ -50,27 +50,6 @@ const utilities = require("./utilities");
|
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
52
|
class FirewallAttachment extends pulumi.CustomResource {
|
|
53
|
-
constructor(name, argsOrState, opts) {
|
|
54
|
-
let resourceInputs = {};
|
|
55
|
-
opts = opts || {};
|
|
56
|
-
if (opts.id) {
|
|
57
|
-
const state = argsOrState;
|
|
58
|
-
resourceInputs["firewallId"] = state ? state.firewallId : undefined;
|
|
59
|
-
resourceInputs["labelSelectors"] = state ? state.labelSelectors : undefined;
|
|
60
|
-
resourceInputs["serverIds"] = state ? state.serverIds : undefined;
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
const args = argsOrState;
|
|
64
|
-
if ((!args || args.firewallId === undefined) && !opts.urn) {
|
|
65
|
-
throw new Error("Missing required property 'firewallId'");
|
|
66
|
-
}
|
|
67
|
-
resourceInputs["firewallId"] = args ? args.firewallId : undefined;
|
|
68
|
-
resourceInputs["labelSelectors"] = args ? args.labelSelectors : undefined;
|
|
69
|
-
resourceInputs["serverIds"] = args ? args.serverIds : undefined;
|
|
70
|
-
}
|
|
71
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
72
|
-
super(FirewallAttachment.__pulumiType, name, resourceInputs, opts);
|
|
73
|
-
}
|
|
74
53
|
/**
|
|
75
54
|
* Get an existing FirewallAttachment resource's state with the given name, ID, and optional extra
|
|
76
55
|
* properties used to qualify the lookup.
|
|
@@ -93,6 +72,27 @@ class FirewallAttachment extends pulumi.CustomResource {
|
|
|
93
72
|
}
|
|
94
73
|
return obj['__pulumiType'] === FirewallAttachment.__pulumiType;
|
|
95
74
|
}
|
|
75
|
+
constructor(name, argsOrState, opts) {
|
|
76
|
+
let resourceInputs = {};
|
|
77
|
+
opts = opts || {};
|
|
78
|
+
if (opts.id) {
|
|
79
|
+
const state = argsOrState;
|
|
80
|
+
resourceInputs["firewallId"] = state ? state.firewallId : undefined;
|
|
81
|
+
resourceInputs["labelSelectors"] = state ? state.labelSelectors : undefined;
|
|
82
|
+
resourceInputs["serverIds"] = state ? state.serverIds : undefined;
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
const args = argsOrState;
|
|
86
|
+
if ((!args || args.firewallId === undefined) && !opts.urn) {
|
|
87
|
+
throw new Error("Missing required property 'firewallId'");
|
|
88
|
+
}
|
|
89
|
+
resourceInputs["firewallId"] = args ? args.firewallId : undefined;
|
|
90
|
+
resourceInputs["labelSelectors"] = args ? args.labelSelectors : undefined;
|
|
91
|
+
resourceInputs["serverIds"] = args ? args.serverIds : undefined;
|
|
92
|
+
}
|
|
93
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
94
|
+
super(FirewallAttachment.__pulumiType, name, resourceInputs, opts);
|
|
95
|
+
}
|
|
96
96
|
}
|
|
97
97
|
exports.FirewallAttachment = FirewallAttachment;
|
|
98
98
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firewallAttachment.js","sourceRoot":"","sources":["../firewallAttachment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"firewallAttachment.js","sourceRoot":"","sources":["../firewallAttachment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IA0BD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;aAAM;YACH,MAAM,IAAI,GAAG,WAAiD,CAAC;YAC/D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAvEL,gDAwEC;AA1DG,gBAAgB;AACO,+BAAY,GAAG,oDAAoD,CAAC"}
|
package/floatingIp.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
23
23
|
* Floating IPs can be imported using its `id`
|
|
24
24
|
*
|
|
25
25
|
* ```sh
|
|
26
|
-
* $ pulumi import hcloud:index/floatingIp:FloatingIp myip
|
|
26
|
+
* $ pulumi import hcloud:index/floatingIp:FloatingIp myip id
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
29
|
export declare class FloatingIp extends pulumi.CustomResource {
|
|
@@ -51,7 +51,7 @@ export declare class FloatingIp extends pulumi.CustomResource {
|
|
|
51
51
|
*/
|
|
52
52
|
readonly description: pulumi.Output<string | undefined>;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Name of home location (routing is optimized for that location). Optional if serverId argument is passed.
|
|
55
55
|
*/
|
|
56
56
|
readonly homeLocation: pulumi.Output<string>;
|
|
57
57
|
/**
|
|
@@ -102,7 +102,7 @@ export interface FloatingIpState {
|
|
|
102
102
|
*/
|
|
103
103
|
description?: pulumi.Input<string>;
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* Name of home location (routing is optimized for that location). Optional if serverId argument is passed.
|
|
106
106
|
*/
|
|
107
107
|
homeLocation?: pulumi.Input<string>;
|
|
108
108
|
/**
|
|
@@ -145,7 +145,7 @@ export interface FloatingIpArgs {
|
|
|
145
145
|
*/
|
|
146
146
|
description?: pulumi.Input<string>;
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
148
|
+
* Name of home location (routing is optimized for that location). Optional if serverId argument is passed.
|
|
149
149
|
*/
|
|
150
150
|
homeLocation?: pulumi.Input<string>;
|
|
151
151
|
/**
|
package/floatingIp.js
CHANGED
|
@@ -29,10 +29,32 @@ const utilities = require("./utilities");
|
|
|
29
29
|
* Floating IPs can be imported using its `id`
|
|
30
30
|
*
|
|
31
31
|
* ```sh
|
|
32
|
-
* $ pulumi import hcloud:index/floatingIp:FloatingIp myip
|
|
32
|
+
* $ pulumi import hcloud:index/floatingIp:FloatingIp myip id
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
class FloatingIp extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing FloatingIp resource's state with the given name, ID, and optional extra
|
|
38
|
+
* properties used to qualify the lookup.
|
|
39
|
+
*
|
|
40
|
+
* @param name The _unique_ name of the resulting resource.
|
|
41
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
42
|
+
* @param state Any extra arguments used during the lookup.
|
|
43
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
44
|
+
*/
|
|
45
|
+
static get(name, id, state, opts) {
|
|
46
|
+
return new FloatingIp(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of FloatingIp. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj) {
|
|
53
|
+
if (obj === undefined || obj === null) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return obj['__pulumiType'] === FloatingIp.__pulumiType;
|
|
57
|
+
}
|
|
36
58
|
constructor(name, argsOrState, opts) {
|
|
37
59
|
let resourceInputs = {};
|
|
38
60
|
opts = opts || {};
|
|
@@ -66,28 +88,6 @@ class FloatingIp extends pulumi.CustomResource {
|
|
|
66
88
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
67
89
|
super(FloatingIp.__pulumiType, name, resourceInputs, opts);
|
|
68
90
|
}
|
|
69
|
-
/**
|
|
70
|
-
* Get an existing FloatingIp resource's state with the given name, ID, and optional extra
|
|
71
|
-
* properties used to qualify the lookup.
|
|
72
|
-
*
|
|
73
|
-
* @param name The _unique_ name of the resulting resource.
|
|
74
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
75
|
-
* @param state Any extra arguments used during the lookup.
|
|
76
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
77
|
-
*/
|
|
78
|
-
static get(name, id, state, opts) {
|
|
79
|
-
return new FloatingIp(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Returns true if the given object is an instance of FloatingIp. This is designed to work even
|
|
83
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
84
|
-
*/
|
|
85
|
-
static isInstance(obj) {
|
|
86
|
-
if (obj === undefined || obj === null) {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
return obj['__pulumiType'] === FloatingIp.__pulumiType;
|
|
90
|
-
}
|
|
91
91
|
}
|
|
92
92
|
exports.FloatingIp = FloatingIp;
|
|
93
93
|
/** @internal */
|
package/floatingIp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floatingIp.js","sourceRoot":"","sources":["../floatingIp.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"floatingIp.js","sourceRoot":"","sources":["../floatingIp.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IA+CD,YAAY,IAAY,EA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,gCAyGC;AA3FG,gBAAgB;AACO,uBAAY,GAAG,oCAAoC,CAAC"}
|
package/floatingIpAssignment.js
CHANGED
|
@@ -38,28 +38,6 @@ const utilities = require("./utilities");
|
|
|
38
38
|
* ```
|
|
39
39
|
*/
|
|
40
40
|
class FloatingIpAssignment extends pulumi.CustomResource {
|
|
41
|
-
constructor(name, argsOrState, opts) {
|
|
42
|
-
let resourceInputs = {};
|
|
43
|
-
opts = opts || {};
|
|
44
|
-
if (opts.id) {
|
|
45
|
-
const state = argsOrState;
|
|
46
|
-
resourceInputs["floatingIpId"] = state ? state.floatingIpId : undefined;
|
|
47
|
-
resourceInputs["serverId"] = state ? state.serverId : undefined;
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
const args = argsOrState;
|
|
51
|
-
if ((!args || args.floatingIpId === undefined) && !opts.urn) {
|
|
52
|
-
throw new Error("Missing required property 'floatingIpId'");
|
|
53
|
-
}
|
|
54
|
-
if ((!args || args.serverId === undefined) && !opts.urn) {
|
|
55
|
-
throw new Error("Missing required property 'serverId'");
|
|
56
|
-
}
|
|
57
|
-
resourceInputs["floatingIpId"] = args ? args.floatingIpId : undefined;
|
|
58
|
-
resourceInputs["serverId"] = args ? args.serverId : undefined;
|
|
59
|
-
}
|
|
60
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
61
|
-
super(FloatingIpAssignment.__pulumiType, name, resourceInputs, opts);
|
|
62
|
-
}
|
|
63
41
|
/**
|
|
64
42
|
* Get an existing FloatingIpAssignment resource's state with the given name, ID, and optional extra
|
|
65
43
|
* properties used to qualify the lookup.
|
|
@@ -82,6 +60,28 @@ class FloatingIpAssignment extends pulumi.CustomResource {
|
|
|
82
60
|
}
|
|
83
61
|
return obj['__pulumiType'] === FloatingIpAssignment.__pulumiType;
|
|
84
62
|
}
|
|
63
|
+
constructor(name, argsOrState, opts) {
|
|
64
|
+
let resourceInputs = {};
|
|
65
|
+
opts = opts || {};
|
|
66
|
+
if (opts.id) {
|
|
67
|
+
const state = argsOrState;
|
|
68
|
+
resourceInputs["floatingIpId"] = state ? state.floatingIpId : undefined;
|
|
69
|
+
resourceInputs["serverId"] = state ? state.serverId : undefined;
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
const args = argsOrState;
|
|
73
|
+
if ((!args || args.floatingIpId === undefined) && !opts.urn) {
|
|
74
|
+
throw new Error("Missing required property 'floatingIpId'");
|
|
75
|
+
}
|
|
76
|
+
if ((!args || args.serverId === undefined) && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'serverId'");
|
|
78
|
+
}
|
|
79
|
+
resourceInputs["floatingIpId"] = args ? args.floatingIpId : undefined;
|
|
80
|
+
resourceInputs["serverId"] = args ? args.serverId : undefined;
|
|
81
|
+
}
|
|
82
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
83
|
+
super(FloatingIpAssignment.__pulumiType, name, resourceInputs, opts);
|
|
84
|
+
}
|
|
85
85
|
}
|
|
86
86
|
exports.FloatingIpAssignment = FloatingIpAssignment;
|
|
87
87
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floatingIpAssignment.js","sourceRoot":"","sources":["../floatingIpAssignment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"floatingIpAssignment.js","sourceRoot":"","sources":["../floatingIpAssignment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAA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AC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AAjEL,oDAkEC;AApDG,gBAAgB;AACO,iCAAY,GAAG,wDAAwD,CAAC"}
|
package/getCertificate.d.ts
CHANGED
|
@@ -6,12 +6,12 @@ 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 sampleCertificate1 =
|
|
9
|
+
* const sampleCertificate1 = hcloud.getCertificate({
|
|
10
10
|
* name: "sample-certificate-1",
|
|
11
|
-
* })
|
|
12
|
-
* const sampleCertificate2 =
|
|
11
|
+
* });
|
|
12
|
+
* const sampleCertificate2 = hcloud.getCertificate({
|
|
13
13
|
* id: 4711,
|
|
14
|
-
* })
|
|
14
|
+
* });
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
17
|
export declare function getCertificate(args?: GetCertificateArgs, opts?: pulumi.InvokeOptions): Promise<GetCertificateResult>;
|
|
@@ -77,6 +77,21 @@ export interface GetCertificateResult {
|
|
|
77
77
|
readonly type: string;
|
|
78
78
|
readonly withSelector?: string;
|
|
79
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Provides details about a specific Hetzner Cloud Certificate.
|
|
82
|
+
*
|
|
83
|
+
* ```typescript
|
|
84
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
85
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
86
|
+
*
|
|
87
|
+
* const sampleCertificate1 = hcloud.getCertificate({
|
|
88
|
+
* name: "sample-certificate-1",
|
|
89
|
+
* });
|
|
90
|
+
* const sampleCertificate2 = hcloud.getCertificate({
|
|
91
|
+
* id: 4711,
|
|
92
|
+
* });
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
80
95
|
export declare function getCertificateOutput(args?: GetCertificateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCertificateResult>;
|
|
81
96
|
/**
|
|
82
97
|
* A collection of arguments for invoking getCertificate.
|
package/getCertificate.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 sampleCertificate1 =
|
|
15
|
+
* const sampleCertificate1 = hcloud.getCertificate({
|
|
16
16
|
* name: "sample-certificate-1",
|
|
17
|
-
* })
|
|
18
|
-
* const sampleCertificate2 =
|
|
17
|
+
* });
|
|
18
|
+
* const sampleCertificate2 = hcloud.getCertificate({
|
|
19
19
|
* id: 4711,
|
|
20
|
-
* })
|
|
20
|
+
* });
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
function getCertificate(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/getCertificate:getCertificate", {
|
|
30
27
|
"id": args.id,
|
|
31
28
|
"name": args.name,
|
|
@@ -33,8 +30,23 @@ function getCertificate(args, opts) {
|
|
|
33
30
|
}, opts);
|
|
34
31
|
}
|
|
35
32
|
exports.getCertificate = getCertificate;
|
|
33
|
+
/**
|
|
34
|
+
* Provides details about a specific Hetzner Cloud Certificate.
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
39
|
+
*
|
|
40
|
+
* const sampleCertificate1 = hcloud.getCertificate({
|
|
41
|
+
* name: "sample-certificate-1",
|
|
42
|
+
* });
|
|
43
|
+
* const sampleCertificate2 = hcloud.getCertificate({
|
|
44
|
+
* id: 4711,
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
36
48
|
function getCertificateOutput(args, opts) {
|
|
37
|
-
return pulumi.output(args).apply(a => getCertificate(a, opts));
|
|
49
|
+
return pulumi.output(args).apply((a) => getCertificate(a, opts));
|
|
38
50
|
}
|
|
39
51
|
exports.getCertificateOutput = getCertificateOutput;
|
|
40
52
|
//# sourceMappingURL=getCertificate.js.map
|
package/getCertificate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCertificate.js","sourceRoot":"","sources":["../getCertificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"getCertificate.js","sourceRoot":"","sources":["../getCertificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;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,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,wCASC;AA+DD;;;;;;;;;;;;;;GAcG;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/getCertificates.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 Certificates.
|
|
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 sampleCertificate1 =
|
|
12
|
+
* const sampleCertificate1 = hcloud.getCertificates({
|
|
13
13
|
* withSelector: "key=value",
|
|
14
|
-
* })
|
|
14
|
+
* });
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
17
|
export declare function getCertificates(args?: GetCertificatesArgs, opts?: pulumi.InvokeOptions): Promise<GetCertificatesResult>;
|
|
@@ -38,6 +38,20 @@ export interface GetCertificatesResult {
|
|
|
38
38
|
readonly id: string;
|
|
39
39
|
readonly withSelector?: string;
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Provides details about multiple Hetzner Cloud Certificates.
|
|
43
|
+
*
|
|
44
|
+
* ## Example Usage
|
|
45
|
+
*
|
|
46
|
+
* ```typescript
|
|
47
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
48
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
49
|
+
*
|
|
50
|
+
* const sampleCertificate1 = hcloud.getCertificates({
|
|
51
|
+
* withSelector: "key=value",
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
41
55
|
export declare function getCertificatesOutput(args?: GetCertificatesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCertificatesResult>;
|
|
42
56
|
/**
|
|
43
57
|
* A collection of arguments for invoking getCertificates.
|
package/getCertificates.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 sampleCertificate1 =
|
|
17
|
+
* const sampleCertificate1 = hcloud.getCertificates({
|
|
18
18
|
* withSelector: "key=value",
|
|
19
|
-
* })
|
|
19
|
+
* });
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
22
|
function getCertificates(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/getCertificates:getCertificates", {
|
|
29
26
|
"withSelector": args.withSelector,
|
|
30
27
|
}, opts);
|
|
31
28
|
}
|
|
32
29
|
exports.getCertificates = getCertificates;
|
|
30
|
+
/**
|
|
31
|
+
* Provides details about multiple Hetzner Cloud Certificates.
|
|
32
|
+
*
|
|
33
|
+
* ## Example Usage
|
|
34
|
+
*
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
37
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
38
|
+
*
|
|
39
|
+
* const sampleCertificate1 = hcloud.getCertificates({
|
|
40
|
+
* withSelector: "key=value",
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
33
44
|
function getCertificatesOutput(args, opts) {
|
|
34
|
-
return pulumi.output(args).apply(a => getCertificates(a, opts));
|
|
45
|
+
return pulumi.output(args).apply((a) => getCertificates(a, opts));
|
|
35
46
|
}
|
|
36
47
|
exports.getCertificatesOutput = getCertificatesOutput;
|
|
37
48
|
//# sourceMappingURL=getCertificates.js.map
|
package/getCertificates.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCertificates.js","sourceRoot":"","sources":["../getCertificates.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getCertificates.js","sourceRoot":"","sources":["../getCertificates.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,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,8CAA8C,EAAE;QACzE,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0CAOC;AA0BD;;;;;;;;;;;;;GAaG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
|