pulumi-hcloud 1.23.0a1743573250__py3-none-any.whl → 1.23.0a1744264383__py3-none-any.whl
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.
- pulumi_hcloud/__init__.py +1 -0
- pulumi_hcloud/_inputs.py +213 -212
- pulumi_hcloud/certificate.py +71 -70
- pulumi_hcloud/config/__init__.py +1 -0
- pulumi_hcloud/config/__init__.pyi +1 -0
- pulumi_hcloud/config/vars.py +1 -0
- pulumi_hcloud/firewall.py +29 -28
- pulumi_hcloud/firewall_attachment.py +43 -42
- pulumi_hcloud/floating_ip.py +113 -112
- pulumi_hcloud/floating_ip_assignment.py +29 -28
- pulumi_hcloud/get_certificate.py +24 -23
- pulumi_hcloud/get_certificates.py +7 -6
- pulumi_hcloud/get_datacenter.py +15 -14
- pulumi_hcloud/get_datacenters.py +5 -4
- pulumi_hcloud/get_firewall.py +26 -25
- pulumi_hcloud/get_firewalls.py +12 -11
- pulumi_hcloud/get_floating_ip.py +31 -30
- pulumi_hcloud/get_floating_ips.py +7 -6
- pulumi_hcloud/get_image.py +48 -47
- pulumi_hcloud/get_images.py +27 -26
- pulumi_hcloud/get_load_balancer.py +25 -24
- pulumi_hcloud/get_load_balancer_type.py +16 -15
- pulumi_hcloud/get_load_balancer_types.py +2 -1
- pulumi_hcloud/get_load_balancers.py +7 -6
- pulumi_hcloud/get_location.py +17 -16
- pulumi_hcloud/get_locations.py +5 -4
- pulumi_hcloud/get_network.py +29 -28
- pulumi_hcloud/get_networks.py +7 -6
- pulumi_hcloud/get_placement_group.py +32 -31
- pulumi_hcloud/get_placement_groups.py +12 -11
- pulumi_hcloud/get_primary_ip.py +33 -32
- pulumi_hcloud/get_primary_ips.py +7 -6
- pulumi_hcloud/get_server.py +46 -45
- pulumi_hcloud/get_server_type.py +22 -21
- pulumi_hcloud/get_server_types.py +5 -4
- pulumi_hcloud/get_servers.py +12 -11
- pulumi_hcloud/get_ssh_key.py +28 -27
- pulumi_hcloud/get_ssh_keys.py +11 -10
- pulumi_hcloud/get_volume.py +38 -37
- pulumi_hcloud/get_volumes.py +12 -11
- pulumi_hcloud/load_balancer.py +113 -112
- pulumi_hcloud/load_balancer_network.py +71 -70
- pulumi_hcloud/load_balancer_service.py +71 -70
- pulumi_hcloud/load_balancer_target.py +85 -84
- pulumi_hcloud/managed_certificate.py +83 -82
- pulumi_hcloud/network.py +71 -70
- pulumi_hcloud/network_route.py +43 -42
- pulumi_hcloud/network_subnet.py +76 -75
- pulumi_hcloud/outputs.py +574 -573
- pulumi_hcloud/placement_group.py +48 -47
- pulumi_hcloud/primary_ip.py +127 -126
- pulumi_hcloud/provider.py +33 -32
- pulumi_hcloud/pulumi-plugin.json +1 -1
- pulumi_hcloud/rdns.py +85 -84
- pulumi_hcloud/server.py +305 -304
- pulumi_hcloud/server_network.py +76 -75
- pulumi_hcloud/snapshot.py +43 -42
- pulumi_hcloud/ssh_key.py +50 -49
- pulumi_hcloud/uploaded_certificate.py +97 -96
- pulumi_hcloud/volume.py +120 -119
- pulumi_hcloud/volume_attachment.py +43 -42
- {pulumi_hcloud-1.23.0a1743573250.dist-info → pulumi_hcloud-1.23.0a1744264383.dist-info}/METADATA +1 -1
- pulumi_hcloud-1.23.0a1744264383.dist-info/RECORD +67 -0
- pulumi_hcloud-1.23.0a1743573250.dist-info/RECORD +0 -67
- {pulumi_hcloud-1.23.0a1743573250.dist-info → pulumi_hcloud-1.23.0a1744264383.dist-info}/WHEEL +0 -0
- {pulumi_hcloud-1.23.0a1743573250.dist-info → pulumi_hcloud-1.23.0a1744264383.dist-info}/top_level.txt +0 -0
pulumi_hcloud/server_network.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import builtins
|
5
6
|
import copy
|
6
7
|
import warnings
|
7
8
|
import sys
|
@@ -19,20 +20,20 @@ __all__ = ['ServerNetworkInitArgs', 'ServerNetwork']
|
|
19
20
|
@pulumi.input_type
|
20
21
|
class ServerNetworkInitArgs:
|
21
22
|
def __init__(__self__, *,
|
22
|
-
server_id: pulumi.Input[int],
|
23
|
-
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
24
|
-
ip: Optional[pulumi.Input[str]] = None,
|
25
|
-
network_id: Optional[pulumi.Input[int]] = None,
|
26
|
-
subnet_id: Optional[pulumi.Input[str]] = None):
|
23
|
+
server_id: pulumi.Input[builtins.int],
|
24
|
+
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
25
|
+
ip: Optional[pulumi.Input[builtins.str]] = None,
|
26
|
+
network_id: Optional[pulumi.Input[builtins.int]] = None,
|
27
|
+
subnet_id: Optional[pulumi.Input[builtins.str]] = None):
|
27
28
|
"""
|
28
29
|
The set of arguments for constructing a ServerNetwork resource.
|
29
|
-
:param pulumi.Input[int] server_id: ID of the server.
|
30
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] alias_ips: Additional IPs to be assigned
|
30
|
+
:param pulumi.Input[builtins.int] server_id: ID of the server.
|
31
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] alias_ips: Additional IPs to be assigned
|
31
32
|
to this server.
|
32
|
-
:param pulumi.Input[str] ip: IP to request to be assigned to this server.
|
33
|
+
:param pulumi.Input[builtins.str] ip: IP to request to be assigned to this server.
|
33
34
|
If you do not provide this then you will be auto assigned an IP
|
34
35
|
address.
|
35
|
-
:param pulumi.Input[int] network_id: ID of the network which should be added
|
36
|
+
:param pulumi.Input[builtins.int] network_id: ID of the network which should be added
|
36
37
|
to the server. Required if `subnet_id` is not set. Successful creation
|
37
38
|
of the resource depends on the existence of a subnet in the Hetzner
|
38
39
|
Cloud Backend. Using `network_id` will not create an explicit
|
@@ -40,7 +41,7 @@ class ServerNetworkInitArgs:
|
|
40
41
|
to be used. Alternatively the `subnet_id` property can be used, which
|
41
42
|
will create an explicit dependency between `ServerNetwork` and
|
42
43
|
the existence of a subnet.
|
43
|
-
:param pulumi.Input[str] subnet_id: ID of the sub-network which should be
|
44
|
+
:param pulumi.Input[builtins.str] subnet_id: ID of the sub-network which should be
|
44
45
|
added to the Server. Required if `network_id` is not set.
|
45
46
|
_Note_: if the `ip` property is missing, the Server is currently added
|
46
47
|
to the last created subnet.
|
@@ -57,19 +58,19 @@ class ServerNetworkInitArgs:
|
|
57
58
|
|
58
59
|
@property
|
59
60
|
@pulumi.getter(name="serverId")
|
60
|
-
def server_id(self) -> pulumi.Input[int]:
|
61
|
+
def server_id(self) -> pulumi.Input[builtins.int]:
|
61
62
|
"""
|
62
63
|
ID of the server.
|
63
64
|
"""
|
64
65
|
return pulumi.get(self, "server_id")
|
65
66
|
|
66
67
|
@server_id.setter
|
67
|
-
def server_id(self, value: pulumi.Input[int]):
|
68
|
+
def server_id(self, value: pulumi.Input[builtins.int]):
|
68
69
|
pulumi.set(self, "server_id", value)
|
69
70
|
|
70
71
|
@property
|
71
72
|
@pulumi.getter(name="aliasIps")
|
72
|
-
def alias_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
73
|
+
def alias_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
73
74
|
"""
|
74
75
|
Additional IPs to be assigned
|
75
76
|
to this server.
|
@@ -77,12 +78,12 @@ class ServerNetworkInitArgs:
|
|
77
78
|
return pulumi.get(self, "alias_ips")
|
78
79
|
|
79
80
|
@alias_ips.setter
|
80
|
-
def alias_ips(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
81
|
+
def alias_ips(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
81
82
|
pulumi.set(self, "alias_ips", value)
|
82
83
|
|
83
84
|
@property
|
84
85
|
@pulumi.getter
|
85
|
-
def ip(self) -> Optional[pulumi.Input[str]]:
|
86
|
+
def ip(self) -> Optional[pulumi.Input[builtins.str]]:
|
86
87
|
"""
|
87
88
|
IP to request to be assigned to this server.
|
88
89
|
If you do not provide this then you will be auto assigned an IP
|
@@ -91,12 +92,12 @@ class ServerNetworkInitArgs:
|
|
91
92
|
return pulumi.get(self, "ip")
|
92
93
|
|
93
94
|
@ip.setter
|
94
|
-
def ip(self, value: Optional[pulumi.Input[str]]):
|
95
|
+
def ip(self, value: Optional[pulumi.Input[builtins.str]]):
|
95
96
|
pulumi.set(self, "ip", value)
|
96
97
|
|
97
98
|
@property
|
98
99
|
@pulumi.getter(name="networkId")
|
99
|
-
def network_id(self) -> Optional[pulumi.Input[int]]:
|
100
|
+
def network_id(self) -> Optional[pulumi.Input[builtins.int]]:
|
100
101
|
"""
|
101
102
|
ID of the network which should be added
|
102
103
|
to the server. Required if `subnet_id` is not set. Successful creation
|
@@ -110,12 +111,12 @@ class ServerNetworkInitArgs:
|
|
110
111
|
return pulumi.get(self, "network_id")
|
111
112
|
|
112
113
|
@network_id.setter
|
113
|
-
def network_id(self, value: Optional[pulumi.Input[int]]):
|
114
|
+
def network_id(self, value: Optional[pulumi.Input[builtins.int]]):
|
114
115
|
pulumi.set(self, "network_id", value)
|
115
116
|
|
116
117
|
@property
|
117
118
|
@pulumi.getter(name="subnetId")
|
118
|
-
def subnet_id(self) -> Optional[pulumi.Input[str]]:
|
119
|
+
def subnet_id(self) -> Optional[pulumi.Input[builtins.str]]:
|
119
120
|
"""
|
120
121
|
ID of the sub-network which should be
|
121
122
|
added to the Server. Required if `network_id` is not set.
|
@@ -125,27 +126,27 @@ class ServerNetworkInitArgs:
|
|
125
126
|
return pulumi.get(self, "subnet_id")
|
126
127
|
|
127
128
|
@subnet_id.setter
|
128
|
-
def subnet_id(self, value: Optional[pulumi.Input[str]]):
|
129
|
+
def subnet_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
129
130
|
pulumi.set(self, "subnet_id", value)
|
130
131
|
|
131
132
|
|
132
133
|
@pulumi.input_type
|
133
134
|
class _ServerNetworkState:
|
134
135
|
def __init__(__self__, *,
|
135
|
-
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
136
|
-
ip: Optional[pulumi.Input[str]] = None,
|
137
|
-
mac_address: Optional[pulumi.Input[str]] = None,
|
138
|
-
network_id: Optional[pulumi.Input[int]] = None,
|
139
|
-
server_id: Optional[pulumi.Input[int]] = None,
|
140
|
-
subnet_id: Optional[pulumi.Input[str]] = None):
|
136
|
+
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
137
|
+
ip: Optional[pulumi.Input[builtins.str]] = None,
|
138
|
+
mac_address: Optional[pulumi.Input[builtins.str]] = None,
|
139
|
+
network_id: Optional[pulumi.Input[builtins.int]] = None,
|
140
|
+
server_id: Optional[pulumi.Input[builtins.int]] = None,
|
141
|
+
subnet_id: Optional[pulumi.Input[builtins.str]] = None):
|
141
142
|
"""
|
142
143
|
Input properties used for looking up and filtering ServerNetwork resources.
|
143
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] alias_ips: Additional IPs to be assigned
|
144
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] alias_ips: Additional IPs to be assigned
|
144
145
|
to this server.
|
145
|
-
:param pulumi.Input[str] ip: IP to request to be assigned to this server.
|
146
|
+
:param pulumi.Input[builtins.str] ip: IP to request to be assigned to this server.
|
146
147
|
If you do not provide this then you will be auto assigned an IP
|
147
148
|
address.
|
148
|
-
:param pulumi.Input[int] network_id: ID of the network which should be added
|
149
|
+
:param pulumi.Input[builtins.int] network_id: ID of the network which should be added
|
149
150
|
to the server. Required if `subnet_id` is not set. Successful creation
|
150
151
|
of the resource depends on the existence of a subnet in the Hetzner
|
151
152
|
Cloud Backend. Using `network_id` will not create an explicit
|
@@ -153,8 +154,8 @@ class _ServerNetworkState:
|
|
153
154
|
to be used. Alternatively the `subnet_id` property can be used, which
|
154
155
|
will create an explicit dependency between `ServerNetwork` and
|
155
156
|
the existence of a subnet.
|
156
|
-
:param pulumi.Input[int] server_id: ID of the server.
|
157
|
-
:param pulumi.Input[str] subnet_id: ID of the sub-network which should be
|
157
|
+
:param pulumi.Input[builtins.int] server_id: ID of the server.
|
158
|
+
:param pulumi.Input[builtins.str] subnet_id: ID of the sub-network which should be
|
158
159
|
added to the Server. Required if `network_id` is not set.
|
159
160
|
_Note_: if the `ip` property is missing, the Server is currently added
|
160
161
|
to the last created subnet.
|
@@ -174,7 +175,7 @@ class _ServerNetworkState:
|
|
174
175
|
|
175
176
|
@property
|
176
177
|
@pulumi.getter(name="aliasIps")
|
177
|
-
def alias_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
178
|
+
def alias_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
178
179
|
"""
|
179
180
|
Additional IPs to be assigned
|
180
181
|
to this server.
|
@@ -182,12 +183,12 @@ class _ServerNetworkState:
|
|
182
183
|
return pulumi.get(self, "alias_ips")
|
183
184
|
|
184
185
|
@alias_ips.setter
|
185
|
-
def alias_ips(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
186
|
+
def alias_ips(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
186
187
|
pulumi.set(self, "alias_ips", value)
|
187
188
|
|
188
189
|
@property
|
189
190
|
@pulumi.getter
|
190
|
-
def ip(self) -> Optional[pulumi.Input[str]]:
|
191
|
+
def ip(self) -> Optional[pulumi.Input[builtins.str]]:
|
191
192
|
"""
|
192
193
|
IP to request to be assigned to this server.
|
193
194
|
If you do not provide this then you will be auto assigned an IP
|
@@ -196,21 +197,21 @@ class _ServerNetworkState:
|
|
196
197
|
return pulumi.get(self, "ip")
|
197
198
|
|
198
199
|
@ip.setter
|
199
|
-
def ip(self, value: Optional[pulumi.Input[str]]):
|
200
|
+
def ip(self, value: Optional[pulumi.Input[builtins.str]]):
|
200
201
|
pulumi.set(self, "ip", value)
|
201
202
|
|
202
203
|
@property
|
203
204
|
@pulumi.getter(name="macAddress")
|
204
|
-
def mac_address(self) -> Optional[pulumi.Input[str]]:
|
205
|
+
def mac_address(self) -> Optional[pulumi.Input[builtins.str]]:
|
205
206
|
return pulumi.get(self, "mac_address")
|
206
207
|
|
207
208
|
@mac_address.setter
|
208
|
-
def mac_address(self, value: Optional[pulumi.Input[str]]):
|
209
|
+
def mac_address(self, value: Optional[pulumi.Input[builtins.str]]):
|
209
210
|
pulumi.set(self, "mac_address", value)
|
210
211
|
|
211
212
|
@property
|
212
213
|
@pulumi.getter(name="networkId")
|
213
|
-
def network_id(self) -> Optional[pulumi.Input[int]]:
|
214
|
+
def network_id(self) -> Optional[pulumi.Input[builtins.int]]:
|
214
215
|
"""
|
215
216
|
ID of the network which should be added
|
216
217
|
to the server. Required if `subnet_id` is not set. Successful creation
|
@@ -224,24 +225,24 @@ class _ServerNetworkState:
|
|
224
225
|
return pulumi.get(self, "network_id")
|
225
226
|
|
226
227
|
@network_id.setter
|
227
|
-
def network_id(self, value: Optional[pulumi.Input[int]]):
|
228
|
+
def network_id(self, value: Optional[pulumi.Input[builtins.int]]):
|
228
229
|
pulumi.set(self, "network_id", value)
|
229
230
|
|
230
231
|
@property
|
231
232
|
@pulumi.getter(name="serverId")
|
232
|
-
def server_id(self) -> Optional[pulumi.Input[int]]:
|
233
|
+
def server_id(self) -> Optional[pulumi.Input[builtins.int]]:
|
233
234
|
"""
|
234
235
|
ID of the server.
|
235
236
|
"""
|
236
237
|
return pulumi.get(self, "server_id")
|
237
238
|
|
238
239
|
@server_id.setter
|
239
|
-
def server_id(self, value: Optional[pulumi.Input[int]]):
|
240
|
+
def server_id(self, value: Optional[pulumi.Input[builtins.int]]):
|
240
241
|
pulumi.set(self, "server_id", value)
|
241
242
|
|
242
243
|
@property
|
243
244
|
@pulumi.getter(name="subnetId")
|
244
|
-
def subnet_id(self) -> Optional[pulumi.Input[str]]:
|
245
|
+
def subnet_id(self) -> Optional[pulumi.Input[builtins.str]]:
|
245
246
|
"""
|
246
247
|
ID of the sub-network which should be
|
247
248
|
added to the Server. Required if `network_id` is not set.
|
@@ -251,7 +252,7 @@ class _ServerNetworkState:
|
|
251
252
|
return pulumi.get(self, "subnet_id")
|
252
253
|
|
253
254
|
@subnet_id.setter
|
254
|
-
def subnet_id(self, value: Optional[pulumi.Input[str]]):
|
255
|
+
def subnet_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
255
256
|
pulumi.set(self, "subnet_id", value)
|
256
257
|
|
257
258
|
|
@@ -260,11 +261,11 @@ class ServerNetwork(pulumi.CustomResource):
|
|
260
261
|
def __init__(__self__,
|
261
262
|
resource_name: str,
|
262
263
|
opts: Optional[pulumi.ResourceOptions] = None,
|
263
|
-
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
264
|
-
ip: Optional[pulumi.Input[str]] = None,
|
265
|
-
network_id: Optional[pulumi.Input[int]] = None,
|
266
|
-
server_id: Optional[pulumi.Input[int]] = None,
|
267
|
-
subnet_id: Optional[pulumi.Input[str]] = None,
|
264
|
+
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
265
|
+
ip: Optional[pulumi.Input[builtins.str]] = None,
|
266
|
+
network_id: Optional[pulumi.Input[builtins.int]] = None,
|
267
|
+
server_id: Optional[pulumi.Input[builtins.int]] = None,
|
268
|
+
subnet_id: Optional[pulumi.Input[builtins.str]] = None,
|
268
269
|
__props__=None):
|
269
270
|
"""
|
270
271
|
Provides a Hetzner Cloud Server Network to represent a private network on a server in the Hetzner Cloud.
|
@@ -305,12 +306,12 @@ class ServerNetwork(pulumi.CustomResource):
|
|
305
306
|
|
306
307
|
:param str resource_name: The name of the resource.
|
307
308
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
308
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] alias_ips: Additional IPs to be assigned
|
309
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] alias_ips: Additional IPs to be assigned
|
309
310
|
to this server.
|
310
|
-
:param pulumi.Input[str] ip: IP to request to be assigned to this server.
|
311
|
+
:param pulumi.Input[builtins.str] ip: IP to request to be assigned to this server.
|
311
312
|
If you do not provide this then you will be auto assigned an IP
|
312
313
|
address.
|
313
|
-
:param pulumi.Input[int] network_id: ID of the network which should be added
|
314
|
+
:param pulumi.Input[builtins.int] network_id: ID of the network which should be added
|
314
315
|
to the server. Required if `subnet_id` is not set. Successful creation
|
315
316
|
of the resource depends on the existence of a subnet in the Hetzner
|
316
317
|
Cloud Backend. Using `network_id` will not create an explicit
|
@@ -318,8 +319,8 @@ class ServerNetwork(pulumi.CustomResource):
|
|
318
319
|
to be used. Alternatively the `subnet_id` property can be used, which
|
319
320
|
will create an explicit dependency between `ServerNetwork` and
|
320
321
|
the existence of a subnet.
|
321
|
-
:param pulumi.Input[int] server_id: ID of the server.
|
322
|
-
:param pulumi.Input[str] subnet_id: ID of the sub-network which should be
|
322
|
+
:param pulumi.Input[builtins.int] server_id: ID of the server.
|
323
|
+
:param pulumi.Input[builtins.str] subnet_id: ID of the sub-network which should be
|
323
324
|
added to the Server. Required if `network_id` is not set.
|
324
325
|
_Note_: if the `ip` property is missing, the Server is currently added
|
325
326
|
to the last created subnet.
|
@@ -382,11 +383,11 @@ class ServerNetwork(pulumi.CustomResource):
|
|
382
383
|
def _internal_init(__self__,
|
383
384
|
resource_name: str,
|
384
385
|
opts: Optional[pulumi.ResourceOptions] = None,
|
385
|
-
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
386
|
-
ip: Optional[pulumi.Input[str]] = None,
|
387
|
-
network_id: Optional[pulumi.Input[int]] = None,
|
388
|
-
server_id: Optional[pulumi.Input[int]] = None,
|
389
|
-
subnet_id: Optional[pulumi.Input[str]] = None,
|
386
|
+
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
387
|
+
ip: Optional[pulumi.Input[builtins.str]] = None,
|
388
|
+
network_id: Optional[pulumi.Input[builtins.int]] = None,
|
389
|
+
server_id: Optional[pulumi.Input[builtins.int]] = None,
|
390
|
+
subnet_id: Optional[pulumi.Input[builtins.str]] = None,
|
390
391
|
__props__=None):
|
391
392
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
392
393
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -414,12 +415,12 @@ class ServerNetwork(pulumi.CustomResource):
|
|
414
415
|
def get(resource_name: str,
|
415
416
|
id: pulumi.Input[str],
|
416
417
|
opts: Optional[pulumi.ResourceOptions] = None,
|
417
|
-
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
418
|
-
ip: Optional[pulumi.Input[str]] = None,
|
419
|
-
mac_address: Optional[pulumi.Input[str]] = None,
|
420
|
-
network_id: Optional[pulumi.Input[int]] = None,
|
421
|
-
server_id: Optional[pulumi.Input[int]] = None,
|
422
|
-
subnet_id: Optional[pulumi.Input[str]] = None) -> 'ServerNetwork':
|
418
|
+
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
419
|
+
ip: Optional[pulumi.Input[builtins.str]] = None,
|
420
|
+
mac_address: Optional[pulumi.Input[builtins.str]] = None,
|
421
|
+
network_id: Optional[pulumi.Input[builtins.int]] = None,
|
422
|
+
server_id: Optional[pulumi.Input[builtins.int]] = None,
|
423
|
+
subnet_id: Optional[pulumi.Input[builtins.str]] = None) -> 'ServerNetwork':
|
423
424
|
"""
|
424
425
|
Get an existing ServerNetwork resource's state with the given name, id, and optional extra
|
425
426
|
properties used to qualify the lookup.
|
@@ -427,12 +428,12 @@ class ServerNetwork(pulumi.CustomResource):
|
|
427
428
|
:param str resource_name: The unique name of the resulting resource.
|
428
429
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
429
430
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
430
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] alias_ips: Additional IPs to be assigned
|
431
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] alias_ips: Additional IPs to be assigned
|
431
432
|
to this server.
|
432
|
-
:param pulumi.Input[str] ip: IP to request to be assigned to this server.
|
433
|
+
:param pulumi.Input[builtins.str] ip: IP to request to be assigned to this server.
|
433
434
|
If you do not provide this then you will be auto assigned an IP
|
434
435
|
address.
|
435
|
-
:param pulumi.Input[int] network_id: ID of the network which should be added
|
436
|
+
:param pulumi.Input[builtins.int] network_id: ID of the network which should be added
|
436
437
|
to the server. Required if `subnet_id` is not set. Successful creation
|
437
438
|
of the resource depends on the existence of a subnet in the Hetzner
|
438
439
|
Cloud Backend. Using `network_id` will not create an explicit
|
@@ -440,8 +441,8 @@ class ServerNetwork(pulumi.CustomResource):
|
|
440
441
|
to be used. Alternatively the `subnet_id` property can be used, which
|
441
442
|
will create an explicit dependency between `ServerNetwork` and
|
442
443
|
the existence of a subnet.
|
443
|
-
:param pulumi.Input[int] server_id: ID of the server.
|
444
|
-
:param pulumi.Input[str] subnet_id: ID of the sub-network which should be
|
444
|
+
:param pulumi.Input[builtins.int] server_id: ID of the server.
|
445
|
+
:param pulumi.Input[builtins.str] subnet_id: ID of the sub-network which should be
|
445
446
|
added to the Server. Required if `network_id` is not set.
|
446
447
|
_Note_: if the `ip` property is missing, the Server is currently added
|
447
448
|
to the last created subnet.
|
@@ -460,7 +461,7 @@ class ServerNetwork(pulumi.CustomResource):
|
|
460
461
|
|
461
462
|
@property
|
462
463
|
@pulumi.getter(name="aliasIps")
|
463
|
-
def alias_ips(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
464
|
+
def alias_ips(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
464
465
|
"""
|
465
466
|
Additional IPs to be assigned
|
466
467
|
to this server.
|
@@ -469,7 +470,7 @@ class ServerNetwork(pulumi.CustomResource):
|
|
469
470
|
|
470
471
|
@property
|
471
472
|
@pulumi.getter
|
472
|
-
def ip(self) -> pulumi.Output[str]:
|
473
|
+
def ip(self) -> pulumi.Output[builtins.str]:
|
473
474
|
"""
|
474
475
|
IP to request to be assigned to this server.
|
475
476
|
If you do not provide this then you will be auto assigned an IP
|
@@ -479,12 +480,12 @@ class ServerNetwork(pulumi.CustomResource):
|
|
479
480
|
|
480
481
|
@property
|
481
482
|
@pulumi.getter(name="macAddress")
|
482
|
-
def mac_address(self) -> pulumi.Output[str]:
|
483
|
+
def mac_address(self) -> pulumi.Output[builtins.str]:
|
483
484
|
return pulumi.get(self, "mac_address")
|
484
485
|
|
485
486
|
@property
|
486
487
|
@pulumi.getter(name="networkId")
|
487
|
-
def network_id(self) -> pulumi.Output[Optional[int]]:
|
488
|
+
def network_id(self) -> pulumi.Output[Optional[builtins.int]]:
|
488
489
|
"""
|
489
490
|
ID of the network which should be added
|
490
491
|
to the server. Required if `subnet_id` is not set. Successful creation
|
@@ -499,7 +500,7 @@ class ServerNetwork(pulumi.CustomResource):
|
|
499
500
|
|
500
501
|
@property
|
501
502
|
@pulumi.getter(name="serverId")
|
502
|
-
def server_id(self) -> pulumi.Output[int]:
|
503
|
+
def server_id(self) -> pulumi.Output[builtins.int]:
|
503
504
|
"""
|
504
505
|
ID of the server.
|
505
506
|
"""
|
@@ -507,7 +508,7 @@ class ServerNetwork(pulumi.CustomResource):
|
|
507
508
|
|
508
509
|
@property
|
509
510
|
@pulumi.getter(name="subnetId")
|
510
|
-
def subnet_id(self) -> pulumi.Output[Optional[str]]:
|
511
|
+
def subnet_id(self) -> pulumi.Output[Optional[builtins.str]]:
|
511
512
|
"""
|
512
513
|
ID of the sub-network which should be
|
513
514
|
added to the Server. Required if `network_id` is not set.
|
pulumi_hcloud/snapshot.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import builtins
|
5
6
|
import copy
|
6
7
|
import warnings
|
7
8
|
import sys
|
@@ -19,14 +20,14 @@ __all__ = ['SnapshotArgs', 'Snapshot']
|
|
19
20
|
@pulumi.input_type
|
20
21
|
class SnapshotArgs:
|
21
22
|
def __init__(__self__, *,
|
22
|
-
server_id: pulumi.Input[int],
|
23
|
-
description: Optional[pulumi.Input[str]] = None,
|
24
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
|
23
|
+
server_id: pulumi.Input[builtins.int],
|
24
|
+
description: Optional[pulumi.Input[builtins.str]] = None,
|
25
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None):
|
25
26
|
"""
|
26
27
|
The set of arguments for constructing a Snapshot resource.
|
27
|
-
:param pulumi.Input[int] server_id: Server to the snapshot should be created from.
|
28
|
-
:param pulumi.Input[str] description: Description of the snapshot.
|
29
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: User-defined labels (key-value pairs) should be created with.
|
28
|
+
:param pulumi.Input[builtins.int] server_id: Server to the snapshot should be created from.
|
29
|
+
:param pulumi.Input[builtins.str] description: Description of the snapshot.
|
30
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] labels: User-defined labels (key-value pairs) should be created with.
|
30
31
|
"""
|
31
32
|
pulumi.set(__self__, "server_id", server_id)
|
32
33
|
if description is not None:
|
@@ -36,52 +37,52 @@ class SnapshotArgs:
|
|
36
37
|
|
37
38
|
@property
|
38
39
|
@pulumi.getter(name="serverId")
|
39
|
-
def server_id(self) -> pulumi.Input[int]:
|
40
|
+
def server_id(self) -> pulumi.Input[builtins.int]:
|
40
41
|
"""
|
41
42
|
Server to the snapshot should be created from.
|
42
43
|
"""
|
43
44
|
return pulumi.get(self, "server_id")
|
44
45
|
|
45
46
|
@server_id.setter
|
46
|
-
def server_id(self, value: pulumi.Input[int]):
|
47
|
+
def server_id(self, value: pulumi.Input[builtins.int]):
|
47
48
|
pulumi.set(self, "server_id", value)
|
48
49
|
|
49
50
|
@property
|
50
51
|
@pulumi.getter
|
51
|
-
def description(self) -> Optional[pulumi.Input[str]]:
|
52
|
+
def description(self) -> Optional[pulumi.Input[builtins.str]]:
|
52
53
|
"""
|
53
54
|
Description of the snapshot.
|
54
55
|
"""
|
55
56
|
return pulumi.get(self, "description")
|
56
57
|
|
57
58
|
@description.setter
|
58
|
-
def description(self, value: Optional[pulumi.Input[str]]):
|
59
|
+
def description(self, value: Optional[pulumi.Input[builtins.str]]):
|
59
60
|
pulumi.set(self, "description", value)
|
60
61
|
|
61
62
|
@property
|
62
63
|
@pulumi.getter
|
63
|
-
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
64
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]:
|
64
65
|
"""
|
65
66
|
User-defined labels (key-value pairs) should be created with.
|
66
67
|
"""
|
67
68
|
return pulumi.get(self, "labels")
|
68
69
|
|
69
70
|
@labels.setter
|
70
|
-
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
71
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]):
|
71
72
|
pulumi.set(self, "labels", value)
|
72
73
|
|
73
74
|
|
74
75
|
@pulumi.input_type
|
75
76
|
class _SnapshotState:
|
76
77
|
def __init__(__self__, *,
|
77
|
-
description: Optional[pulumi.Input[str]] = None,
|
78
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
79
|
-
server_id: Optional[pulumi.Input[int]] = None):
|
78
|
+
description: Optional[pulumi.Input[builtins.str]] = None,
|
79
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
80
|
+
server_id: Optional[pulumi.Input[builtins.int]] = None):
|
80
81
|
"""
|
81
82
|
Input properties used for looking up and filtering Snapshot resources.
|
82
|
-
:param pulumi.Input[str] description: Description of the snapshot.
|
83
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: User-defined labels (key-value pairs) should be created with.
|
84
|
-
:param pulumi.Input[int] server_id: Server to the snapshot should be created from.
|
83
|
+
:param pulumi.Input[builtins.str] description: Description of the snapshot.
|
84
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] labels: User-defined labels (key-value pairs) should be created with.
|
85
|
+
:param pulumi.Input[builtins.int] server_id: Server to the snapshot should be created from.
|
85
86
|
"""
|
86
87
|
if description is not None:
|
87
88
|
pulumi.set(__self__, "description", description)
|
@@ -92,38 +93,38 @@ class _SnapshotState:
|
|
92
93
|
|
93
94
|
@property
|
94
95
|
@pulumi.getter
|
95
|
-
def description(self) -> Optional[pulumi.Input[str]]:
|
96
|
+
def description(self) -> Optional[pulumi.Input[builtins.str]]:
|
96
97
|
"""
|
97
98
|
Description of the snapshot.
|
98
99
|
"""
|
99
100
|
return pulumi.get(self, "description")
|
100
101
|
|
101
102
|
@description.setter
|
102
|
-
def description(self, value: Optional[pulumi.Input[str]]):
|
103
|
+
def description(self, value: Optional[pulumi.Input[builtins.str]]):
|
103
104
|
pulumi.set(self, "description", value)
|
104
105
|
|
105
106
|
@property
|
106
107
|
@pulumi.getter
|
107
|
-
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
108
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]:
|
108
109
|
"""
|
109
110
|
User-defined labels (key-value pairs) should be created with.
|
110
111
|
"""
|
111
112
|
return pulumi.get(self, "labels")
|
112
113
|
|
113
114
|
@labels.setter
|
114
|
-
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
115
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]):
|
115
116
|
pulumi.set(self, "labels", value)
|
116
117
|
|
117
118
|
@property
|
118
119
|
@pulumi.getter(name="serverId")
|
119
|
-
def server_id(self) -> Optional[pulumi.Input[int]]:
|
120
|
+
def server_id(self) -> Optional[pulumi.Input[builtins.int]]:
|
120
121
|
"""
|
121
122
|
Server to the snapshot should be created from.
|
122
123
|
"""
|
123
124
|
return pulumi.get(self, "server_id")
|
124
125
|
|
125
126
|
@server_id.setter
|
126
|
-
def server_id(self, value: Optional[pulumi.Input[int]]):
|
127
|
+
def server_id(self, value: Optional[pulumi.Input[builtins.int]]):
|
127
128
|
pulumi.set(self, "server_id", value)
|
128
129
|
|
129
130
|
|
@@ -132,9 +133,9 @@ class Snapshot(pulumi.CustomResource):
|
|
132
133
|
def __init__(__self__,
|
133
134
|
resource_name: str,
|
134
135
|
opts: Optional[pulumi.ResourceOptions] = None,
|
135
|
-
description: Optional[pulumi.Input[str]] = None,
|
136
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
137
|
-
server_id: Optional[pulumi.Input[int]] = None,
|
136
|
+
description: Optional[pulumi.Input[builtins.str]] = None,
|
137
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
138
|
+
server_id: Optional[pulumi.Input[builtins.int]] = None,
|
138
139
|
__props__=None):
|
139
140
|
"""
|
140
141
|
Provides a Hetzner Cloud snapshot to represent an image with type snapshot in the Hetzner Cloud. This resource makes it easy to create a snapshot of your server.
|
@@ -162,9 +163,9 @@ class Snapshot(pulumi.CustomResource):
|
|
162
163
|
|
163
164
|
:param str resource_name: The name of the resource.
|
164
165
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
165
|
-
:param pulumi.Input[str] description: Description of the snapshot.
|
166
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: User-defined labels (key-value pairs) should be created with.
|
167
|
-
:param pulumi.Input[int] server_id: Server to the snapshot should be created from.
|
166
|
+
:param pulumi.Input[builtins.str] description: Description of the snapshot.
|
167
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] labels: User-defined labels (key-value pairs) should be created with.
|
168
|
+
:param pulumi.Input[builtins.int] server_id: Server to the snapshot should be created from.
|
168
169
|
"""
|
169
170
|
...
|
170
171
|
@overload
|
@@ -211,9 +212,9 @@ class Snapshot(pulumi.CustomResource):
|
|
211
212
|
def _internal_init(__self__,
|
212
213
|
resource_name: str,
|
213
214
|
opts: Optional[pulumi.ResourceOptions] = None,
|
214
|
-
description: Optional[pulumi.Input[str]] = None,
|
215
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
216
|
-
server_id: Optional[pulumi.Input[int]] = None,
|
215
|
+
description: Optional[pulumi.Input[builtins.str]] = None,
|
216
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
217
|
+
server_id: Optional[pulumi.Input[builtins.int]] = None,
|
217
218
|
__props__=None):
|
218
219
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
219
220
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -238,9 +239,9 @@ class Snapshot(pulumi.CustomResource):
|
|
238
239
|
def get(resource_name: str,
|
239
240
|
id: pulumi.Input[str],
|
240
241
|
opts: Optional[pulumi.ResourceOptions] = None,
|
241
|
-
description: Optional[pulumi.Input[str]] = None,
|
242
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
243
|
-
server_id: Optional[pulumi.Input[int]] = None) -> 'Snapshot':
|
242
|
+
description: Optional[pulumi.Input[builtins.str]] = None,
|
243
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
244
|
+
server_id: Optional[pulumi.Input[builtins.int]] = None) -> 'Snapshot':
|
244
245
|
"""
|
245
246
|
Get an existing Snapshot resource's state with the given name, id, and optional extra
|
246
247
|
properties used to qualify the lookup.
|
@@ -248,9 +249,9 @@ class Snapshot(pulumi.CustomResource):
|
|
248
249
|
:param str resource_name: The unique name of the resulting resource.
|
249
250
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
250
251
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
251
|
-
:param pulumi.Input[str] description: Description of the snapshot.
|
252
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: User-defined labels (key-value pairs) should be created with.
|
253
|
-
:param pulumi.Input[int] server_id: Server to the snapshot should be created from.
|
252
|
+
:param pulumi.Input[builtins.str] description: Description of the snapshot.
|
253
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] labels: User-defined labels (key-value pairs) should be created with.
|
254
|
+
:param pulumi.Input[builtins.int] server_id: Server to the snapshot should be created from.
|
254
255
|
"""
|
255
256
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
256
257
|
|
@@ -263,7 +264,7 @@ class Snapshot(pulumi.CustomResource):
|
|
263
264
|
|
264
265
|
@property
|
265
266
|
@pulumi.getter
|
266
|
-
def description(self) -> pulumi.Output[Optional[str]]:
|
267
|
+
def description(self) -> pulumi.Output[Optional[builtins.str]]:
|
267
268
|
"""
|
268
269
|
Description of the snapshot.
|
269
270
|
"""
|
@@ -271,7 +272,7 @@ class Snapshot(pulumi.CustomResource):
|
|
271
272
|
|
272
273
|
@property
|
273
274
|
@pulumi.getter
|
274
|
-
def labels(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
275
|
+
def labels(self) -> pulumi.Output[Optional[Mapping[str, builtins.str]]]:
|
275
276
|
"""
|
276
277
|
User-defined labels (key-value pairs) should be created with.
|
277
278
|
"""
|
@@ -279,7 +280,7 @@ class Snapshot(pulumi.CustomResource):
|
|
279
280
|
|
280
281
|
@property
|
281
282
|
@pulumi.getter(name="serverId")
|
282
|
-
def server_id(self) -> pulumi.Output[int]:
|
283
|
+
def server_id(self) -> pulumi.Output[builtins.int]:
|
283
284
|
"""
|
284
285
|
Server to the snapshot should be created from.
|
285
286
|
"""
|