pulumi-hcloud 1.24.0a1752904698__py3-none-any.whl → 1.24.0a1753509442__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 -1
- pulumi_hcloud/_inputs.py +281 -282
- pulumi_hcloud/certificate.py +95 -96
- pulumi_hcloud/config/__init__.py +1 -1
- pulumi_hcloud/config/__init__.pyi +1 -2
- pulumi_hcloud/config/vars.py +5 -6
- pulumi_hcloud/firewall.py +41 -42
- pulumi_hcloud/firewall_attachment.py +52 -53
- pulumi_hcloud/floating_ip.py +138 -139
- pulumi_hcloud/floating_ip_assignment.py +35 -36
- pulumi_hcloud/get_certificate.py +35 -36
- pulumi_hcloud/get_certificates.py +10 -11
- pulumi_hcloud/get_datacenter.py +21 -22
- pulumi_hcloud/get_datacenters.py +10 -11
- pulumi_hcloud/get_firewall.py +33 -34
- pulumi_hcloud/get_firewalls.py +16 -17
- pulumi_hcloud/get_floating_ip.py +43 -44
- pulumi_hcloud/get_floating_ips.py +10 -11
- pulumi_hcloud/get_image.py +65 -66
- pulumi_hcloud/get_images.py +34 -35
- pulumi_hcloud/get_load_balancer.py +40 -41
- pulumi_hcloud/get_load_balancer_type.py +23 -24
- pulumi_hcloud/get_load_balancer_types.py +4 -5
- pulumi_hcloud/get_load_balancers.py +10 -11
- pulumi_hcloud/get_location.py +25 -26
- pulumi_hcloud/get_locations.py +10 -11
- pulumi_hcloud/get_network.py +37 -38
- pulumi_hcloud/get_networks.py +10 -11
- pulumi_hcloud/get_placement_group.py +39 -40
- pulumi_hcloud/get_placement_groups.py +16 -17
- pulumi_hcloud/get_primary_ip.py +45 -46
- pulumi_hcloud/get_primary_ips.py +10 -11
- pulumi_hcloud/get_server.py +70 -71
- pulumi_hcloud/get_server_type.py +35 -36
- pulumi_hcloud/get_server_types.py +10 -11
- pulumi_hcloud/get_servers.py +16 -17
- pulumi_hcloud/get_ssh_key.py +35 -36
- pulumi_hcloud/get_ssh_keys.py +14 -15
- pulumi_hcloud/get_volume.py +49 -50
- pulumi_hcloud/get_volumes.py +16 -17
- pulumi_hcloud/load_balancer.py +145 -146
- pulumi_hcloud/load_balancer_network.py +86 -87
- pulumi_hcloud/load_balancer_service.py +92 -93
- pulumi_hcloud/load_balancer_target.py +103 -104
- pulumi_hcloud/managed_certificate.py +104 -105
- pulumi_hcloud/network.py +86 -87
- pulumi_hcloud/network_route.py +52 -53
- pulumi_hcloud/network_subnet.py +93 -94
- pulumi_hcloud/outputs.py +847 -848
- pulumi_hcloud/placement_group.py +59 -60
- pulumi_hcloud/primary_ip.py +155 -156
- pulumi_hcloud/provider.py +42 -43
- pulumi_hcloud/pulumi-plugin.json +1 -1
- pulumi_hcloud/rdns.py +103 -104
- pulumi_hcloud/server.py +380 -381
- pulumi_hcloud/server_network.py +93 -94
- pulumi_hcloud/snapshot.py +52 -53
- pulumi_hcloud/ssh_key.py +61 -62
- pulumi_hcloud/uploaded_certificate.py +121 -122
- pulumi_hcloud/volume.py +146 -147
- pulumi_hcloud/volume_attachment.py +52 -53
- {pulumi_hcloud-1.24.0a1752904698.dist-info → pulumi_hcloud-1.24.0a1753509442.dist-info}/METADATA +1 -1
- pulumi_hcloud-1.24.0a1753509442.dist-info/RECORD +67 -0
- pulumi_hcloud-1.24.0a1752904698.dist-info/RECORD +0 -67
- {pulumi_hcloud-1.24.0a1752904698.dist-info → pulumi_hcloud-1.24.0a1753509442.dist-info}/WHEEL +0 -0
- {pulumi_hcloud-1.24.0a1752904698.dist-info → pulumi_hcloud-1.24.0a1753509442.dist-info}/top_level.txt +0 -0
pulumi_hcloud/network.py
CHANGED
@@ -2,8 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
-
import builtins
|
6
|
-
import copy
|
5
|
+
import builtins as _builtins
|
7
6
|
import warnings
|
8
7
|
import sys
|
9
8
|
import pulumi
|
@@ -20,18 +19,18 @@ __all__ = ['NetworkArgs', 'Network']
|
|
20
19
|
@pulumi.input_type
|
21
20
|
class NetworkArgs:
|
22
21
|
def __init__(__self__, *,
|
23
|
-
ip_range: pulumi.Input[
|
24
|
-
delete_protection: Optional[pulumi.Input[
|
25
|
-
expose_routes_to_vswitch: Optional[pulumi.Input[
|
26
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
27
|
-
name: Optional[pulumi.Input[
|
22
|
+
ip_range: pulumi.Input[_builtins.str],
|
23
|
+
delete_protection: Optional[pulumi.Input[_builtins.bool]] = None,
|
24
|
+
expose_routes_to_vswitch: Optional[pulumi.Input[_builtins.bool]] = None,
|
25
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
26
|
+
name: Optional[pulumi.Input[_builtins.str]] = None):
|
28
27
|
"""
|
29
28
|
The set of arguments for constructing a Network resource.
|
30
|
-
:param pulumi.Input[
|
31
|
-
:param pulumi.Input[
|
32
|
-
:param pulumi.Input[
|
33
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
34
|
-
:param pulumi.Input[
|
29
|
+
:param pulumi.Input[_builtins.str] ip_range: IP Range of the whole Network which must span all included subnets and route destinations. Must be one of the private ipv4 ranges of RFC1918.
|
30
|
+
:param pulumi.Input[_builtins.bool] delete_protection: Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
|
31
|
+
:param pulumi.Input[_builtins.bool] expose_routes_to_vswitch: Enable or disable exposing the routes to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active.
|
32
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] labels: User-defined labels (key-value pairs) should be created with.
|
33
|
+
:param pulumi.Input[_builtins.str] name: Name of the Network to create (must be unique per project).
|
35
34
|
"""
|
36
35
|
pulumi.set(__self__, "ip_range", ip_range)
|
37
36
|
if delete_protection is not None:
|
@@ -43,82 +42,82 @@ class NetworkArgs:
|
|
43
42
|
if name is not None:
|
44
43
|
pulumi.set(__self__, "name", name)
|
45
44
|
|
46
|
-
@property
|
45
|
+
@_builtins.property
|
47
46
|
@pulumi.getter(name="ipRange")
|
48
|
-
def ip_range(self) -> pulumi.Input[
|
47
|
+
def ip_range(self) -> pulumi.Input[_builtins.str]:
|
49
48
|
"""
|
50
49
|
IP Range of the whole Network which must span all included subnets and route destinations. Must be one of the private ipv4 ranges of RFC1918.
|
51
50
|
"""
|
52
51
|
return pulumi.get(self, "ip_range")
|
53
52
|
|
54
53
|
@ip_range.setter
|
55
|
-
def ip_range(self, value: pulumi.Input[
|
54
|
+
def ip_range(self, value: pulumi.Input[_builtins.str]):
|
56
55
|
pulumi.set(self, "ip_range", value)
|
57
56
|
|
58
|
-
@property
|
57
|
+
@_builtins.property
|
59
58
|
@pulumi.getter(name="deleteProtection")
|
60
|
-
def delete_protection(self) -> Optional[pulumi.Input[
|
59
|
+
def delete_protection(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
61
60
|
"""
|
62
61
|
Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
|
63
62
|
"""
|
64
63
|
return pulumi.get(self, "delete_protection")
|
65
64
|
|
66
65
|
@delete_protection.setter
|
67
|
-
def delete_protection(self, value: Optional[pulumi.Input[
|
66
|
+
def delete_protection(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
68
67
|
pulumi.set(self, "delete_protection", value)
|
69
68
|
|
70
|
-
@property
|
69
|
+
@_builtins.property
|
71
70
|
@pulumi.getter(name="exposeRoutesToVswitch")
|
72
|
-
def expose_routes_to_vswitch(self) -> Optional[pulumi.Input[
|
71
|
+
def expose_routes_to_vswitch(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
73
72
|
"""
|
74
73
|
Enable or disable exposing the routes to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active.
|
75
74
|
"""
|
76
75
|
return pulumi.get(self, "expose_routes_to_vswitch")
|
77
76
|
|
78
77
|
@expose_routes_to_vswitch.setter
|
79
|
-
def expose_routes_to_vswitch(self, value: Optional[pulumi.Input[
|
78
|
+
def expose_routes_to_vswitch(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
80
79
|
pulumi.set(self, "expose_routes_to_vswitch", value)
|
81
80
|
|
82
|
-
@property
|
81
|
+
@_builtins.property
|
83
82
|
@pulumi.getter
|
84
|
-
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
83
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
85
84
|
"""
|
86
85
|
User-defined labels (key-value pairs) should be created with.
|
87
86
|
"""
|
88
87
|
return pulumi.get(self, "labels")
|
89
88
|
|
90
89
|
@labels.setter
|
91
|
-
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
90
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
92
91
|
pulumi.set(self, "labels", value)
|
93
92
|
|
94
|
-
@property
|
93
|
+
@_builtins.property
|
95
94
|
@pulumi.getter
|
96
|
-
def name(self) -> Optional[pulumi.Input[
|
95
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
97
96
|
"""
|
98
97
|
Name of the Network to create (must be unique per project).
|
99
98
|
"""
|
100
99
|
return pulumi.get(self, "name")
|
101
100
|
|
102
101
|
@name.setter
|
103
|
-
def name(self, value: Optional[pulumi.Input[
|
102
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
104
103
|
pulumi.set(self, "name", value)
|
105
104
|
|
106
105
|
|
107
106
|
@pulumi.input_type
|
108
107
|
class _NetworkState:
|
109
108
|
def __init__(__self__, *,
|
110
|
-
delete_protection: Optional[pulumi.Input[
|
111
|
-
expose_routes_to_vswitch: Optional[pulumi.Input[
|
112
|
-
ip_range: Optional[pulumi.Input[
|
113
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
114
|
-
name: Optional[pulumi.Input[
|
109
|
+
delete_protection: Optional[pulumi.Input[_builtins.bool]] = None,
|
110
|
+
expose_routes_to_vswitch: Optional[pulumi.Input[_builtins.bool]] = None,
|
111
|
+
ip_range: Optional[pulumi.Input[_builtins.str]] = None,
|
112
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
113
|
+
name: Optional[pulumi.Input[_builtins.str]] = None):
|
115
114
|
"""
|
116
115
|
Input properties used for looking up and filtering Network resources.
|
117
|
-
:param pulumi.Input[
|
118
|
-
:param pulumi.Input[
|
119
|
-
:param pulumi.Input[
|
120
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
121
|
-
:param pulumi.Input[
|
116
|
+
:param pulumi.Input[_builtins.bool] delete_protection: Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
|
117
|
+
:param pulumi.Input[_builtins.bool] expose_routes_to_vswitch: Enable or disable exposing the routes to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active.
|
118
|
+
:param pulumi.Input[_builtins.str] ip_range: IP Range of the whole Network which must span all included subnets and route destinations. Must be one of the private ipv4 ranges of RFC1918.
|
119
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] labels: User-defined labels (key-value pairs) should be created with.
|
120
|
+
:param pulumi.Input[_builtins.str] name: Name of the Network to create (must be unique per project).
|
122
121
|
"""
|
123
122
|
if delete_protection is not None:
|
124
123
|
pulumi.set(__self__, "delete_protection", delete_protection)
|
@@ -131,64 +130,64 @@ class _NetworkState:
|
|
131
130
|
if name is not None:
|
132
131
|
pulumi.set(__self__, "name", name)
|
133
132
|
|
134
|
-
@property
|
133
|
+
@_builtins.property
|
135
134
|
@pulumi.getter(name="deleteProtection")
|
136
|
-
def delete_protection(self) -> Optional[pulumi.Input[
|
135
|
+
def delete_protection(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
137
136
|
"""
|
138
137
|
Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
|
139
138
|
"""
|
140
139
|
return pulumi.get(self, "delete_protection")
|
141
140
|
|
142
141
|
@delete_protection.setter
|
143
|
-
def delete_protection(self, value: Optional[pulumi.Input[
|
142
|
+
def delete_protection(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
144
143
|
pulumi.set(self, "delete_protection", value)
|
145
144
|
|
146
|
-
@property
|
145
|
+
@_builtins.property
|
147
146
|
@pulumi.getter(name="exposeRoutesToVswitch")
|
148
|
-
def expose_routes_to_vswitch(self) -> Optional[pulumi.Input[
|
147
|
+
def expose_routes_to_vswitch(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
149
148
|
"""
|
150
149
|
Enable or disable exposing the routes to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active.
|
151
150
|
"""
|
152
151
|
return pulumi.get(self, "expose_routes_to_vswitch")
|
153
152
|
|
154
153
|
@expose_routes_to_vswitch.setter
|
155
|
-
def expose_routes_to_vswitch(self, value: Optional[pulumi.Input[
|
154
|
+
def expose_routes_to_vswitch(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
156
155
|
pulumi.set(self, "expose_routes_to_vswitch", value)
|
157
156
|
|
158
|
-
@property
|
157
|
+
@_builtins.property
|
159
158
|
@pulumi.getter(name="ipRange")
|
160
|
-
def ip_range(self) -> Optional[pulumi.Input[
|
159
|
+
def ip_range(self) -> Optional[pulumi.Input[_builtins.str]]:
|
161
160
|
"""
|
162
161
|
IP Range of the whole Network which must span all included subnets and route destinations. Must be one of the private ipv4 ranges of RFC1918.
|
163
162
|
"""
|
164
163
|
return pulumi.get(self, "ip_range")
|
165
164
|
|
166
165
|
@ip_range.setter
|
167
|
-
def ip_range(self, value: Optional[pulumi.Input[
|
166
|
+
def ip_range(self, value: Optional[pulumi.Input[_builtins.str]]):
|
168
167
|
pulumi.set(self, "ip_range", value)
|
169
168
|
|
170
|
-
@property
|
169
|
+
@_builtins.property
|
171
170
|
@pulumi.getter
|
172
|
-
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
171
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
173
172
|
"""
|
174
173
|
User-defined labels (key-value pairs) should be created with.
|
175
174
|
"""
|
176
175
|
return pulumi.get(self, "labels")
|
177
176
|
|
178
177
|
@labels.setter
|
179
|
-
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
178
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
180
179
|
pulumi.set(self, "labels", value)
|
181
180
|
|
182
|
-
@property
|
181
|
+
@_builtins.property
|
183
182
|
@pulumi.getter
|
184
|
-
def name(self) -> Optional[pulumi.Input[
|
183
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
185
184
|
"""
|
186
185
|
Name of the Network to create (must be unique per project).
|
187
186
|
"""
|
188
187
|
return pulumi.get(self, "name")
|
189
188
|
|
190
189
|
@name.setter
|
191
|
-
def name(self, value: Optional[pulumi.Input[
|
190
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
192
191
|
pulumi.set(self, "name", value)
|
193
192
|
|
194
193
|
|
@@ -198,11 +197,11 @@ class Network(pulumi.CustomResource):
|
|
198
197
|
def __init__(__self__,
|
199
198
|
resource_name: str,
|
200
199
|
opts: Optional[pulumi.ResourceOptions] = None,
|
201
|
-
delete_protection: Optional[pulumi.Input[
|
202
|
-
expose_routes_to_vswitch: Optional[pulumi.Input[
|
203
|
-
ip_range: Optional[pulumi.Input[
|
204
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
205
|
-
name: Optional[pulumi.Input[
|
200
|
+
delete_protection: Optional[pulumi.Input[_builtins.bool]] = None,
|
201
|
+
expose_routes_to_vswitch: Optional[pulumi.Input[_builtins.bool]] = None,
|
202
|
+
ip_range: Optional[pulumi.Input[_builtins.str]] = None,
|
203
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
204
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
206
205
|
__props__=None):
|
207
206
|
"""
|
208
207
|
Provides a Hetzner Cloud Network to represent a Network in the Hetzner Cloud.
|
@@ -228,11 +227,11 @@ class Network(pulumi.CustomResource):
|
|
228
227
|
|
229
228
|
:param str resource_name: The name of the resource.
|
230
229
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
231
|
-
:param pulumi.Input[
|
232
|
-
:param pulumi.Input[
|
233
|
-
:param pulumi.Input[
|
234
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
235
|
-
:param pulumi.Input[
|
230
|
+
:param pulumi.Input[_builtins.bool] delete_protection: Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
|
231
|
+
:param pulumi.Input[_builtins.bool] expose_routes_to_vswitch: Enable or disable exposing the routes to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active.
|
232
|
+
:param pulumi.Input[_builtins.str] ip_range: IP Range of the whole Network which must span all included subnets and route destinations. Must be one of the private ipv4 ranges of RFC1918.
|
233
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] labels: User-defined labels (key-value pairs) should be created with.
|
234
|
+
:param pulumi.Input[_builtins.str] name: Name of the Network to create (must be unique per project).
|
236
235
|
"""
|
237
236
|
...
|
238
237
|
@overload
|
@@ -277,11 +276,11 @@ class Network(pulumi.CustomResource):
|
|
277
276
|
def _internal_init(__self__,
|
278
277
|
resource_name: str,
|
279
278
|
opts: Optional[pulumi.ResourceOptions] = None,
|
280
|
-
delete_protection: Optional[pulumi.Input[
|
281
|
-
expose_routes_to_vswitch: Optional[pulumi.Input[
|
282
|
-
ip_range: Optional[pulumi.Input[
|
283
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
284
|
-
name: Optional[pulumi.Input[
|
279
|
+
delete_protection: Optional[pulumi.Input[_builtins.bool]] = None,
|
280
|
+
expose_routes_to_vswitch: Optional[pulumi.Input[_builtins.bool]] = None,
|
281
|
+
ip_range: Optional[pulumi.Input[_builtins.str]] = None,
|
282
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
283
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
285
284
|
__props__=None):
|
286
285
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
287
286
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -308,11 +307,11 @@ class Network(pulumi.CustomResource):
|
|
308
307
|
def get(resource_name: str,
|
309
308
|
id: pulumi.Input[str],
|
310
309
|
opts: Optional[pulumi.ResourceOptions] = None,
|
311
|
-
delete_protection: Optional[pulumi.Input[
|
312
|
-
expose_routes_to_vswitch: Optional[pulumi.Input[
|
313
|
-
ip_range: Optional[pulumi.Input[
|
314
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
315
|
-
name: Optional[pulumi.Input[
|
310
|
+
delete_protection: Optional[pulumi.Input[_builtins.bool]] = None,
|
311
|
+
expose_routes_to_vswitch: Optional[pulumi.Input[_builtins.bool]] = None,
|
312
|
+
ip_range: Optional[pulumi.Input[_builtins.str]] = None,
|
313
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
314
|
+
name: Optional[pulumi.Input[_builtins.str]] = None) -> 'Network':
|
316
315
|
"""
|
317
316
|
Get an existing Network resource's state with the given name, id, and optional extra
|
318
317
|
properties used to qualify the lookup.
|
@@ -320,11 +319,11 @@ class Network(pulumi.CustomResource):
|
|
320
319
|
:param str resource_name: The unique name of the resulting resource.
|
321
320
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
322
321
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
323
|
-
:param pulumi.Input[
|
324
|
-
:param pulumi.Input[
|
325
|
-
:param pulumi.Input[
|
326
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
327
|
-
:param pulumi.Input[
|
322
|
+
:param pulumi.Input[_builtins.bool] delete_protection: Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
|
323
|
+
:param pulumi.Input[_builtins.bool] expose_routes_to_vswitch: Enable or disable exposing the routes to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active.
|
324
|
+
:param pulumi.Input[_builtins.str] ip_range: IP Range of the whole Network which must span all included subnets and route destinations. Must be one of the private ipv4 ranges of RFC1918.
|
325
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] labels: User-defined labels (key-value pairs) should be created with.
|
326
|
+
:param pulumi.Input[_builtins.str] name: Name of the Network to create (must be unique per project).
|
328
327
|
"""
|
329
328
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
330
329
|
|
@@ -337,41 +336,41 @@ class Network(pulumi.CustomResource):
|
|
337
336
|
__props__.__dict__["name"] = name
|
338
337
|
return Network(resource_name, opts=opts, __props__=__props__)
|
339
338
|
|
340
|
-
@property
|
339
|
+
@_builtins.property
|
341
340
|
@pulumi.getter(name="deleteProtection")
|
342
|
-
def delete_protection(self) -> pulumi.Output[Optional[
|
341
|
+
def delete_protection(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
343
342
|
"""
|
344
343
|
Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
|
345
344
|
"""
|
346
345
|
return pulumi.get(self, "delete_protection")
|
347
346
|
|
348
|
-
@property
|
347
|
+
@_builtins.property
|
349
348
|
@pulumi.getter(name="exposeRoutesToVswitch")
|
350
|
-
def expose_routes_to_vswitch(self) -> pulumi.Output[Optional[
|
349
|
+
def expose_routes_to_vswitch(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
351
350
|
"""
|
352
351
|
Enable or disable exposing the routes to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active.
|
353
352
|
"""
|
354
353
|
return pulumi.get(self, "expose_routes_to_vswitch")
|
355
354
|
|
356
|
-
@property
|
355
|
+
@_builtins.property
|
357
356
|
@pulumi.getter(name="ipRange")
|
358
|
-
def ip_range(self) -> pulumi.Output[
|
357
|
+
def ip_range(self) -> pulumi.Output[_builtins.str]:
|
359
358
|
"""
|
360
359
|
IP Range of the whole Network which must span all included subnets and route destinations. Must be one of the private ipv4 ranges of RFC1918.
|
361
360
|
"""
|
362
361
|
return pulumi.get(self, "ip_range")
|
363
362
|
|
364
|
-
@property
|
363
|
+
@_builtins.property
|
365
364
|
@pulumi.getter
|
366
|
-
def labels(self) -> pulumi.Output[Optional[Mapping[str,
|
365
|
+
def labels(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
|
367
366
|
"""
|
368
367
|
User-defined labels (key-value pairs) should be created with.
|
369
368
|
"""
|
370
369
|
return pulumi.get(self, "labels")
|
371
370
|
|
372
|
-
@property
|
371
|
+
@_builtins.property
|
373
372
|
@pulumi.getter
|
374
|
-
def name(self) -> pulumi.Output[
|
373
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
375
374
|
"""
|
376
375
|
Name of the Network to create (must be unique per project).
|
377
376
|
"""
|
pulumi_hcloud/network_route.py
CHANGED
@@ -2,8 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
-
import builtins
|
6
|
-
import copy
|
5
|
+
import builtins as _builtins
|
7
6
|
import warnings
|
8
7
|
import sys
|
9
8
|
import pulumi
|
@@ -20,67 +19,67 @@ __all__ = ['NetworkRouteArgs', 'NetworkRoute']
|
|
20
19
|
@pulumi.input_type
|
21
20
|
class NetworkRouteArgs:
|
22
21
|
def __init__(__self__, *,
|
23
|
-
destination: pulumi.Input[
|
24
|
-
gateway: pulumi.Input[
|
25
|
-
network_id: pulumi.Input[
|
22
|
+
destination: pulumi.Input[_builtins.str],
|
23
|
+
gateway: pulumi.Input[_builtins.str],
|
24
|
+
network_id: pulumi.Input[_builtins.int]):
|
26
25
|
"""
|
27
26
|
The set of arguments for constructing a NetworkRoute resource.
|
28
|
-
:param pulumi.Input[
|
29
|
-
:param pulumi.Input[
|
30
|
-
:param pulumi.Input[
|
27
|
+
:param pulumi.Input[_builtins.str] destination: Destination network or host of this route. Must be a subnet of the ip_range of the Network. Must not overlap with an existing ip_range in any subnets or with any destinations in other routes or with the first ip of the networks ip_range or with 172.31.1.1.
|
28
|
+
:param pulumi.Input[_builtins.str] gateway: Gateway for the route. Cannot be the first ip of the networks ip_range and also cannot be 172.31.1.1 as this IP is being used as a gateway for the public network interface of servers.
|
29
|
+
:param pulumi.Input[_builtins.int] network_id: ID of the Network the route should be added to.
|
31
30
|
"""
|
32
31
|
pulumi.set(__self__, "destination", destination)
|
33
32
|
pulumi.set(__self__, "gateway", gateway)
|
34
33
|
pulumi.set(__self__, "network_id", network_id)
|
35
34
|
|
36
|
-
@property
|
35
|
+
@_builtins.property
|
37
36
|
@pulumi.getter
|
38
|
-
def destination(self) -> pulumi.Input[
|
37
|
+
def destination(self) -> pulumi.Input[_builtins.str]:
|
39
38
|
"""
|
40
39
|
Destination network or host of this route. Must be a subnet of the ip_range of the Network. Must not overlap with an existing ip_range in any subnets or with any destinations in other routes or with the first ip of the networks ip_range or with 172.31.1.1.
|
41
40
|
"""
|
42
41
|
return pulumi.get(self, "destination")
|
43
42
|
|
44
43
|
@destination.setter
|
45
|
-
def destination(self, value: pulumi.Input[
|
44
|
+
def destination(self, value: pulumi.Input[_builtins.str]):
|
46
45
|
pulumi.set(self, "destination", value)
|
47
46
|
|
48
|
-
@property
|
47
|
+
@_builtins.property
|
49
48
|
@pulumi.getter
|
50
|
-
def gateway(self) -> pulumi.Input[
|
49
|
+
def gateway(self) -> pulumi.Input[_builtins.str]:
|
51
50
|
"""
|
52
51
|
Gateway for the route. Cannot be the first ip of the networks ip_range and also cannot be 172.31.1.1 as this IP is being used as a gateway for the public network interface of servers.
|
53
52
|
"""
|
54
53
|
return pulumi.get(self, "gateway")
|
55
54
|
|
56
55
|
@gateway.setter
|
57
|
-
def gateway(self, value: pulumi.Input[
|
56
|
+
def gateway(self, value: pulumi.Input[_builtins.str]):
|
58
57
|
pulumi.set(self, "gateway", value)
|
59
58
|
|
60
|
-
@property
|
59
|
+
@_builtins.property
|
61
60
|
@pulumi.getter(name="networkId")
|
62
|
-
def network_id(self) -> pulumi.Input[
|
61
|
+
def network_id(self) -> pulumi.Input[_builtins.int]:
|
63
62
|
"""
|
64
63
|
ID of the Network the route should be added to.
|
65
64
|
"""
|
66
65
|
return pulumi.get(self, "network_id")
|
67
66
|
|
68
67
|
@network_id.setter
|
69
|
-
def network_id(self, value: pulumi.Input[
|
68
|
+
def network_id(self, value: pulumi.Input[_builtins.int]):
|
70
69
|
pulumi.set(self, "network_id", value)
|
71
70
|
|
72
71
|
|
73
72
|
@pulumi.input_type
|
74
73
|
class _NetworkRouteState:
|
75
74
|
def __init__(__self__, *,
|
76
|
-
destination: Optional[pulumi.Input[
|
77
|
-
gateway: Optional[pulumi.Input[
|
78
|
-
network_id: Optional[pulumi.Input[
|
75
|
+
destination: Optional[pulumi.Input[_builtins.str]] = None,
|
76
|
+
gateway: Optional[pulumi.Input[_builtins.str]] = None,
|
77
|
+
network_id: Optional[pulumi.Input[_builtins.int]] = None):
|
79
78
|
"""
|
80
79
|
Input properties used for looking up and filtering NetworkRoute resources.
|
81
|
-
:param pulumi.Input[
|
82
|
-
:param pulumi.Input[
|
83
|
-
:param pulumi.Input[
|
80
|
+
:param pulumi.Input[_builtins.str] destination: Destination network or host of this route. Must be a subnet of the ip_range of the Network. Must not overlap with an existing ip_range in any subnets or with any destinations in other routes or with the first ip of the networks ip_range or with 172.31.1.1.
|
81
|
+
:param pulumi.Input[_builtins.str] gateway: Gateway for the route. Cannot be the first ip of the networks ip_range and also cannot be 172.31.1.1 as this IP is being used as a gateway for the public network interface of servers.
|
82
|
+
:param pulumi.Input[_builtins.int] network_id: ID of the Network the route should be added to.
|
84
83
|
"""
|
85
84
|
if destination is not None:
|
86
85
|
pulumi.set(__self__, "destination", destination)
|
@@ -89,40 +88,40 @@ class _NetworkRouteState:
|
|
89
88
|
if network_id is not None:
|
90
89
|
pulumi.set(__self__, "network_id", network_id)
|
91
90
|
|
92
|
-
@property
|
91
|
+
@_builtins.property
|
93
92
|
@pulumi.getter
|
94
|
-
def destination(self) -> Optional[pulumi.Input[
|
93
|
+
def destination(self) -> Optional[pulumi.Input[_builtins.str]]:
|
95
94
|
"""
|
96
95
|
Destination network or host of this route. Must be a subnet of the ip_range of the Network. Must not overlap with an existing ip_range in any subnets or with any destinations in other routes or with the first ip of the networks ip_range or with 172.31.1.1.
|
97
96
|
"""
|
98
97
|
return pulumi.get(self, "destination")
|
99
98
|
|
100
99
|
@destination.setter
|
101
|
-
def destination(self, value: Optional[pulumi.Input[
|
100
|
+
def destination(self, value: Optional[pulumi.Input[_builtins.str]]):
|
102
101
|
pulumi.set(self, "destination", value)
|
103
102
|
|
104
|
-
@property
|
103
|
+
@_builtins.property
|
105
104
|
@pulumi.getter
|
106
|
-
def gateway(self) -> Optional[pulumi.Input[
|
105
|
+
def gateway(self) -> Optional[pulumi.Input[_builtins.str]]:
|
107
106
|
"""
|
108
107
|
Gateway for the route. Cannot be the first ip of the networks ip_range and also cannot be 172.31.1.1 as this IP is being used as a gateway for the public network interface of servers.
|
109
108
|
"""
|
110
109
|
return pulumi.get(self, "gateway")
|
111
110
|
|
112
111
|
@gateway.setter
|
113
|
-
def gateway(self, value: Optional[pulumi.Input[
|
112
|
+
def gateway(self, value: Optional[pulumi.Input[_builtins.str]]):
|
114
113
|
pulumi.set(self, "gateway", value)
|
115
114
|
|
116
|
-
@property
|
115
|
+
@_builtins.property
|
117
116
|
@pulumi.getter(name="networkId")
|
118
|
-
def network_id(self) -> Optional[pulumi.Input[
|
117
|
+
def network_id(self) -> Optional[pulumi.Input[_builtins.int]]:
|
119
118
|
"""
|
120
119
|
ID of the Network the route should be added to.
|
121
120
|
"""
|
122
121
|
return pulumi.get(self, "network_id")
|
123
122
|
|
124
123
|
@network_id.setter
|
125
|
-
def network_id(self, value: Optional[pulumi.Input[
|
124
|
+
def network_id(self, value: Optional[pulumi.Input[_builtins.int]]):
|
126
125
|
pulumi.set(self, "network_id", value)
|
127
126
|
|
128
127
|
|
@@ -132,9 +131,9 @@ class NetworkRoute(pulumi.CustomResource):
|
|
132
131
|
def __init__(__self__,
|
133
132
|
resource_name: str,
|
134
133
|
opts: Optional[pulumi.ResourceOptions] = None,
|
135
|
-
destination: Optional[pulumi.Input[
|
136
|
-
gateway: Optional[pulumi.Input[
|
137
|
-
network_id: Optional[pulumi.Input[
|
134
|
+
destination: Optional[pulumi.Input[_builtins.str]] = None,
|
135
|
+
gateway: Optional[pulumi.Input[_builtins.str]] = None,
|
136
|
+
network_id: Optional[pulumi.Input[_builtins.int]] = None,
|
138
137
|
__props__=None):
|
139
138
|
"""
|
140
139
|
Provides a Hetzner Cloud Network Route to represent a Network route in the Hetzner Cloud.
|
@@ -166,9 +165,9 @@ class NetworkRoute(pulumi.CustomResource):
|
|
166
165
|
|
167
166
|
:param str resource_name: The name of the resource.
|
168
167
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
169
|
-
:param pulumi.Input[
|
170
|
-
:param pulumi.Input[
|
171
|
-
:param pulumi.Input[
|
168
|
+
:param pulumi.Input[_builtins.str] destination: Destination network or host of this route. Must be a subnet of the ip_range of the Network. Must not overlap with an existing ip_range in any subnets or with any destinations in other routes or with the first ip of the networks ip_range or with 172.31.1.1.
|
169
|
+
:param pulumi.Input[_builtins.str] gateway: Gateway for the route. Cannot be the first ip of the networks ip_range and also cannot be 172.31.1.1 as this IP is being used as a gateway for the public network interface of servers.
|
170
|
+
:param pulumi.Input[_builtins.int] network_id: ID of the Network the route should be added to.
|
172
171
|
"""
|
173
172
|
...
|
174
173
|
@overload
|
@@ -219,9 +218,9 @@ class NetworkRoute(pulumi.CustomResource):
|
|
219
218
|
def _internal_init(__self__,
|
220
219
|
resource_name: str,
|
221
220
|
opts: Optional[pulumi.ResourceOptions] = None,
|
222
|
-
destination: Optional[pulumi.Input[
|
223
|
-
gateway: Optional[pulumi.Input[
|
224
|
-
network_id: Optional[pulumi.Input[
|
221
|
+
destination: Optional[pulumi.Input[_builtins.str]] = None,
|
222
|
+
gateway: Optional[pulumi.Input[_builtins.str]] = None,
|
223
|
+
network_id: Optional[pulumi.Input[_builtins.int]] = None,
|
225
224
|
__props__=None):
|
226
225
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
227
226
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -250,9 +249,9 @@ class NetworkRoute(pulumi.CustomResource):
|
|
250
249
|
def get(resource_name: str,
|
251
250
|
id: pulumi.Input[str],
|
252
251
|
opts: Optional[pulumi.ResourceOptions] = None,
|
253
|
-
destination: Optional[pulumi.Input[
|
254
|
-
gateway: Optional[pulumi.Input[
|
255
|
-
network_id: Optional[pulumi.Input[
|
252
|
+
destination: Optional[pulumi.Input[_builtins.str]] = None,
|
253
|
+
gateway: Optional[pulumi.Input[_builtins.str]] = None,
|
254
|
+
network_id: Optional[pulumi.Input[_builtins.int]] = None) -> 'NetworkRoute':
|
256
255
|
"""
|
257
256
|
Get an existing NetworkRoute resource's state with the given name, id, and optional extra
|
258
257
|
properties used to qualify the lookup.
|
@@ -260,9 +259,9 @@ class NetworkRoute(pulumi.CustomResource):
|
|
260
259
|
:param str resource_name: The unique name of the resulting resource.
|
261
260
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
262
261
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
263
|
-
:param pulumi.Input[
|
264
|
-
:param pulumi.Input[
|
265
|
-
:param pulumi.Input[
|
262
|
+
:param pulumi.Input[_builtins.str] destination: Destination network or host of this route. Must be a subnet of the ip_range of the Network. Must not overlap with an existing ip_range in any subnets or with any destinations in other routes or with the first ip of the networks ip_range or with 172.31.1.1.
|
263
|
+
:param pulumi.Input[_builtins.str] gateway: Gateway for the route. Cannot be the first ip of the networks ip_range and also cannot be 172.31.1.1 as this IP is being used as a gateway for the public network interface of servers.
|
264
|
+
:param pulumi.Input[_builtins.int] network_id: ID of the Network the route should be added to.
|
266
265
|
"""
|
267
266
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
268
267
|
|
@@ -273,25 +272,25 @@ class NetworkRoute(pulumi.CustomResource):
|
|
273
272
|
__props__.__dict__["network_id"] = network_id
|
274
273
|
return NetworkRoute(resource_name, opts=opts, __props__=__props__)
|
275
274
|
|
276
|
-
@property
|
275
|
+
@_builtins.property
|
277
276
|
@pulumi.getter
|
278
|
-
def destination(self) -> pulumi.Output[
|
277
|
+
def destination(self) -> pulumi.Output[_builtins.str]:
|
279
278
|
"""
|
280
279
|
Destination network or host of this route. Must be a subnet of the ip_range of the Network. Must not overlap with an existing ip_range in any subnets or with any destinations in other routes or with the first ip of the networks ip_range or with 172.31.1.1.
|
281
280
|
"""
|
282
281
|
return pulumi.get(self, "destination")
|
283
282
|
|
284
|
-
@property
|
283
|
+
@_builtins.property
|
285
284
|
@pulumi.getter
|
286
|
-
def gateway(self) -> pulumi.Output[
|
285
|
+
def gateway(self) -> pulumi.Output[_builtins.str]:
|
287
286
|
"""
|
288
287
|
Gateway for the route. Cannot be the first ip of the networks ip_range and also cannot be 172.31.1.1 as this IP is being used as a gateway for the public network interface of servers.
|
289
288
|
"""
|
290
289
|
return pulumi.get(self, "gateway")
|
291
290
|
|
292
|
-
@property
|
291
|
+
@_builtins.property
|
293
292
|
@pulumi.getter(name="networkId")
|
294
|
-
def network_id(self) -> pulumi.Output[
|
293
|
+
def network_id(self) -> pulumi.Output[_builtins.int]:
|
295
294
|
"""
|
296
295
|
ID of the Network the route should be added to.
|
297
296
|
"""
|