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/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,18 +20,18 @@ __all__ = ['NetworkArgs', 'Network']
|
|
19
20
|
@pulumi.input_type
|
20
21
|
class NetworkArgs:
|
21
22
|
def __init__(__self__, *,
|
22
|
-
ip_range: pulumi.Input[str],
|
23
|
-
delete_protection: Optional[pulumi.Input[bool]] = None,
|
24
|
-
expose_routes_to_vswitch: Optional[pulumi.Input[bool]] = None,
|
25
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
26
|
-
name: Optional[pulumi.Input[str]] = None):
|
23
|
+
ip_range: pulumi.Input[builtins.str],
|
24
|
+
delete_protection: Optional[pulumi.Input[builtins.bool]] = None,
|
25
|
+
expose_routes_to_vswitch: Optional[pulumi.Input[builtins.bool]] = None,
|
26
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
27
|
+
name: Optional[pulumi.Input[builtins.str]] = None):
|
27
28
|
"""
|
28
29
|
The set of arguments for constructing a Network resource.
|
29
|
-
:param pulumi.Input[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[bool] delete_protection: Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
|
31
|
-
:param pulumi.Input[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[str]]] labels: User-defined labels (key-value pairs) should be created with.
|
33
|
-
:param pulumi.Input[str] name: Name of the Network to create (must be unique per project).
|
30
|
+
: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.
|
31
|
+
:param pulumi.Input[builtins.bool] delete_protection: Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
|
32
|
+
: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.
|
33
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] labels: User-defined labels (key-value pairs) should be created with.
|
34
|
+
:param pulumi.Input[builtins.str] name: Name of the Network to create (must be unique per project).
|
34
35
|
"""
|
35
36
|
pulumi.set(__self__, "ip_range", ip_range)
|
36
37
|
if delete_protection is not None:
|
@@ -44,80 +45,80 @@ class NetworkArgs:
|
|
44
45
|
|
45
46
|
@property
|
46
47
|
@pulumi.getter(name="ipRange")
|
47
|
-
def ip_range(self) -> pulumi.Input[str]:
|
48
|
+
def ip_range(self) -> pulumi.Input[builtins.str]:
|
48
49
|
"""
|
49
50
|
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.
|
50
51
|
"""
|
51
52
|
return pulumi.get(self, "ip_range")
|
52
53
|
|
53
54
|
@ip_range.setter
|
54
|
-
def ip_range(self, value: pulumi.Input[str]):
|
55
|
+
def ip_range(self, value: pulumi.Input[builtins.str]):
|
55
56
|
pulumi.set(self, "ip_range", value)
|
56
57
|
|
57
58
|
@property
|
58
59
|
@pulumi.getter(name="deleteProtection")
|
59
|
-
def delete_protection(self) -> Optional[pulumi.Input[bool]]:
|
60
|
+
def delete_protection(self) -> Optional[pulumi.Input[builtins.bool]]:
|
60
61
|
"""
|
61
62
|
Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
|
62
63
|
"""
|
63
64
|
return pulumi.get(self, "delete_protection")
|
64
65
|
|
65
66
|
@delete_protection.setter
|
66
|
-
def delete_protection(self, value: Optional[pulumi.Input[bool]]):
|
67
|
+
def delete_protection(self, value: Optional[pulumi.Input[builtins.bool]]):
|
67
68
|
pulumi.set(self, "delete_protection", value)
|
68
69
|
|
69
70
|
@property
|
70
71
|
@pulumi.getter(name="exposeRoutesToVswitch")
|
71
|
-
def expose_routes_to_vswitch(self) -> Optional[pulumi.Input[bool]]:
|
72
|
+
def expose_routes_to_vswitch(self) -> Optional[pulumi.Input[builtins.bool]]:
|
72
73
|
"""
|
73
74
|
Enable or disable exposing the routes to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active.
|
74
75
|
"""
|
75
76
|
return pulumi.get(self, "expose_routes_to_vswitch")
|
76
77
|
|
77
78
|
@expose_routes_to_vswitch.setter
|
78
|
-
def expose_routes_to_vswitch(self, value: Optional[pulumi.Input[bool]]):
|
79
|
+
def expose_routes_to_vswitch(self, value: Optional[pulumi.Input[builtins.bool]]):
|
79
80
|
pulumi.set(self, "expose_routes_to_vswitch", value)
|
80
81
|
|
81
82
|
@property
|
82
83
|
@pulumi.getter
|
83
|
-
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
84
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]:
|
84
85
|
"""
|
85
86
|
User-defined labels (key-value pairs) should be created with.
|
86
87
|
"""
|
87
88
|
return pulumi.get(self, "labels")
|
88
89
|
|
89
90
|
@labels.setter
|
90
|
-
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
91
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]):
|
91
92
|
pulumi.set(self, "labels", value)
|
92
93
|
|
93
94
|
@property
|
94
95
|
@pulumi.getter
|
95
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
96
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
96
97
|
"""
|
97
98
|
Name of the Network to create (must be unique per project).
|
98
99
|
"""
|
99
100
|
return pulumi.get(self, "name")
|
100
101
|
|
101
102
|
@name.setter
|
102
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
103
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
103
104
|
pulumi.set(self, "name", value)
|
104
105
|
|
105
106
|
|
106
107
|
@pulumi.input_type
|
107
108
|
class _NetworkState:
|
108
109
|
def __init__(__self__, *,
|
109
|
-
delete_protection: Optional[pulumi.Input[bool]] = None,
|
110
|
-
expose_routes_to_vswitch: Optional[pulumi.Input[bool]] = None,
|
111
|
-
ip_range: Optional[pulumi.Input[str]] = None,
|
112
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
113
|
-
name: Optional[pulumi.Input[str]] = None):
|
110
|
+
delete_protection: Optional[pulumi.Input[builtins.bool]] = None,
|
111
|
+
expose_routes_to_vswitch: Optional[pulumi.Input[builtins.bool]] = None,
|
112
|
+
ip_range: Optional[pulumi.Input[builtins.str]] = None,
|
113
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
114
|
+
name: Optional[pulumi.Input[builtins.str]] = None):
|
114
115
|
"""
|
115
116
|
Input properties used for looking up and filtering Network resources.
|
116
|
-
:param pulumi.Input[bool] delete_protection: Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
|
117
|
-
:param pulumi.Input[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[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[str]]] labels: User-defined labels (key-value pairs) should be created with.
|
120
|
-
:param pulumi.Input[str] name: Name of the Network to create (must be unique per project).
|
117
|
+
:param pulumi.Input[builtins.bool] delete_protection: Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
|
118
|
+
: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.
|
119
|
+
: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.
|
120
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] labels: User-defined labels (key-value pairs) should be created with.
|
121
|
+
:param pulumi.Input[builtins.str] name: Name of the Network to create (must be unique per project).
|
121
122
|
"""
|
122
123
|
if delete_protection is not None:
|
123
124
|
pulumi.set(__self__, "delete_protection", delete_protection)
|
@@ -132,62 +133,62 @@ class _NetworkState:
|
|
132
133
|
|
133
134
|
@property
|
134
135
|
@pulumi.getter(name="deleteProtection")
|
135
|
-
def delete_protection(self) -> Optional[pulumi.Input[bool]]:
|
136
|
+
def delete_protection(self) -> Optional[pulumi.Input[builtins.bool]]:
|
136
137
|
"""
|
137
138
|
Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
|
138
139
|
"""
|
139
140
|
return pulumi.get(self, "delete_protection")
|
140
141
|
|
141
142
|
@delete_protection.setter
|
142
|
-
def delete_protection(self, value: Optional[pulumi.Input[bool]]):
|
143
|
+
def delete_protection(self, value: Optional[pulumi.Input[builtins.bool]]):
|
143
144
|
pulumi.set(self, "delete_protection", value)
|
144
145
|
|
145
146
|
@property
|
146
147
|
@pulumi.getter(name="exposeRoutesToVswitch")
|
147
|
-
def expose_routes_to_vswitch(self) -> Optional[pulumi.Input[bool]]:
|
148
|
+
def expose_routes_to_vswitch(self) -> Optional[pulumi.Input[builtins.bool]]:
|
148
149
|
"""
|
149
150
|
Enable or disable exposing the routes to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active.
|
150
151
|
"""
|
151
152
|
return pulumi.get(self, "expose_routes_to_vswitch")
|
152
153
|
|
153
154
|
@expose_routes_to_vswitch.setter
|
154
|
-
def expose_routes_to_vswitch(self, value: Optional[pulumi.Input[bool]]):
|
155
|
+
def expose_routes_to_vswitch(self, value: Optional[pulumi.Input[builtins.bool]]):
|
155
156
|
pulumi.set(self, "expose_routes_to_vswitch", value)
|
156
157
|
|
157
158
|
@property
|
158
159
|
@pulumi.getter(name="ipRange")
|
159
|
-
def ip_range(self) -> Optional[pulumi.Input[str]]:
|
160
|
+
def ip_range(self) -> Optional[pulumi.Input[builtins.str]]:
|
160
161
|
"""
|
161
162
|
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.
|
162
163
|
"""
|
163
164
|
return pulumi.get(self, "ip_range")
|
164
165
|
|
165
166
|
@ip_range.setter
|
166
|
-
def ip_range(self, value: Optional[pulumi.Input[str]]):
|
167
|
+
def ip_range(self, value: Optional[pulumi.Input[builtins.str]]):
|
167
168
|
pulumi.set(self, "ip_range", value)
|
168
169
|
|
169
170
|
@property
|
170
171
|
@pulumi.getter
|
171
|
-
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
172
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]:
|
172
173
|
"""
|
173
174
|
User-defined labels (key-value pairs) should be created with.
|
174
175
|
"""
|
175
176
|
return pulumi.get(self, "labels")
|
176
177
|
|
177
178
|
@labels.setter
|
178
|
-
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
179
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]):
|
179
180
|
pulumi.set(self, "labels", value)
|
180
181
|
|
181
182
|
@property
|
182
183
|
@pulumi.getter
|
183
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
184
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
184
185
|
"""
|
185
186
|
Name of the Network to create (must be unique per project).
|
186
187
|
"""
|
187
188
|
return pulumi.get(self, "name")
|
188
189
|
|
189
190
|
@name.setter
|
190
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
191
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
191
192
|
pulumi.set(self, "name", value)
|
192
193
|
|
193
194
|
|
@@ -196,11 +197,11 @@ class Network(pulumi.CustomResource):
|
|
196
197
|
def __init__(__self__,
|
197
198
|
resource_name: str,
|
198
199
|
opts: Optional[pulumi.ResourceOptions] = None,
|
199
|
-
delete_protection: Optional[pulumi.Input[bool]] = None,
|
200
|
-
expose_routes_to_vswitch: Optional[pulumi.Input[bool]] = None,
|
201
|
-
ip_range: Optional[pulumi.Input[str]] = None,
|
202
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
203
|
-
name: Optional[pulumi.Input[str]] = None,
|
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,
|
204
205
|
__props__=None):
|
205
206
|
"""
|
206
207
|
Provides a Hetzner Cloud Network to represent a Network in the Hetzner Cloud.
|
@@ -226,11 +227,11 @@ class Network(pulumi.CustomResource):
|
|
226
227
|
|
227
228
|
:param str resource_name: The name of the resource.
|
228
229
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
229
|
-
:param pulumi.Input[bool] delete_protection: Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
|
230
|
-
:param pulumi.Input[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.
|
231
|
-
:param pulumi.Input[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.
|
232
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: User-defined labels (key-value pairs) should be created with.
|
233
|
-
:param pulumi.Input[str] name: Name of the Network to create (must be unique per project).
|
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).
|
234
235
|
"""
|
235
236
|
...
|
236
237
|
@overload
|
@@ -275,11 +276,11 @@ class Network(pulumi.CustomResource):
|
|
275
276
|
def _internal_init(__self__,
|
276
277
|
resource_name: str,
|
277
278
|
opts: Optional[pulumi.ResourceOptions] = None,
|
278
|
-
delete_protection: Optional[pulumi.Input[bool]] = None,
|
279
|
-
expose_routes_to_vswitch: Optional[pulumi.Input[bool]] = None,
|
280
|
-
ip_range: Optional[pulumi.Input[str]] = None,
|
281
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
282
|
-
name: Optional[pulumi.Input[str]] = None,
|
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,
|
283
284
|
__props__=None):
|
284
285
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
285
286
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -306,11 +307,11 @@ class Network(pulumi.CustomResource):
|
|
306
307
|
def get(resource_name: str,
|
307
308
|
id: pulumi.Input[str],
|
308
309
|
opts: Optional[pulumi.ResourceOptions] = None,
|
309
|
-
delete_protection: Optional[pulumi.Input[bool]] = None,
|
310
|
-
expose_routes_to_vswitch: Optional[pulumi.Input[bool]] = None,
|
311
|
-
ip_range: Optional[pulumi.Input[str]] = None,
|
312
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
313
|
-
name: Optional[pulumi.Input[str]] = None) -> 'Network':
|
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':
|
314
315
|
"""
|
315
316
|
Get an existing Network resource's state with the given name, id, and optional extra
|
316
317
|
properties used to qualify the lookup.
|
@@ -318,11 +319,11 @@ class Network(pulumi.CustomResource):
|
|
318
319
|
:param str resource_name: The unique name of the resulting resource.
|
319
320
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
320
321
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
321
|
-
:param pulumi.Input[bool] delete_protection: Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
|
322
|
-
:param pulumi.Input[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.
|
323
|
-
:param pulumi.Input[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.
|
324
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: User-defined labels (key-value pairs) should be created with.
|
325
|
-
:param pulumi.Input[str] name: Name of the Network to create (must be unique per project).
|
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).
|
326
327
|
"""
|
327
328
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
328
329
|
|
@@ -337,7 +338,7 @@ class Network(pulumi.CustomResource):
|
|
337
338
|
|
338
339
|
@property
|
339
340
|
@pulumi.getter(name="deleteProtection")
|
340
|
-
def delete_protection(self) -> pulumi.Output[Optional[bool]]:
|
341
|
+
def delete_protection(self) -> pulumi.Output[Optional[builtins.bool]]:
|
341
342
|
"""
|
342
343
|
Enable or disable delete protection. See "Delete Protection" in the Provider Docs for details.
|
343
344
|
"""
|
@@ -345,7 +346,7 @@ class Network(pulumi.CustomResource):
|
|
345
346
|
|
346
347
|
@property
|
347
348
|
@pulumi.getter(name="exposeRoutesToVswitch")
|
348
|
-
def expose_routes_to_vswitch(self) -> pulumi.Output[Optional[bool]]:
|
349
|
+
def expose_routes_to_vswitch(self) -> pulumi.Output[Optional[builtins.bool]]:
|
349
350
|
"""
|
350
351
|
Enable or disable exposing the routes to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active.
|
351
352
|
"""
|
@@ -353,7 +354,7 @@ class Network(pulumi.CustomResource):
|
|
353
354
|
|
354
355
|
@property
|
355
356
|
@pulumi.getter(name="ipRange")
|
356
|
-
def ip_range(self) -> pulumi.Output[str]:
|
357
|
+
def ip_range(self) -> pulumi.Output[builtins.str]:
|
357
358
|
"""
|
358
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.
|
359
360
|
"""
|
@@ -361,7 +362,7 @@ class Network(pulumi.CustomResource):
|
|
361
362
|
|
362
363
|
@property
|
363
364
|
@pulumi.getter
|
364
|
-
def labels(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
365
|
+
def labels(self) -> pulumi.Output[Optional[Mapping[str, builtins.str]]]:
|
365
366
|
"""
|
366
367
|
User-defined labels (key-value pairs) should be created with.
|
367
368
|
"""
|
@@ -369,7 +370,7 @@ class Network(pulumi.CustomResource):
|
|
369
370
|
|
370
371
|
@property
|
371
372
|
@pulumi.getter
|
372
|
-
def name(self) -> pulumi.Output[str]:
|
373
|
+
def name(self) -> pulumi.Output[builtins.str]:
|
373
374
|
"""
|
374
375
|
Name of the Network to create (must be unique per project).
|
375
376
|
"""
|
pulumi_hcloud/network_route.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__ = ['NetworkRouteArgs', 'NetworkRoute']
|
|
19
20
|
@pulumi.input_type
|
20
21
|
class NetworkRouteArgs:
|
21
22
|
def __init__(__self__, *,
|
22
|
-
destination: pulumi.Input[str],
|
23
|
-
gateway: pulumi.Input[str],
|
24
|
-
network_id: pulumi.Input[int]):
|
23
|
+
destination: pulumi.Input[builtins.str],
|
24
|
+
gateway: pulumi.Input[builtins.str],
|
25
|
+
network_id: pulumi.Input[builtins.int]):
|
25
26
|
"""
|
26
27
|
The set of arguments for constructing a NetworkRoute resource.
|
27
|
-
:param pulumi.Input[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[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[int] network_id: ID of the Network the route should be added to.
|
28
|
+
: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.
|
29
|
+
: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.
|
30
|
+
:param pulumi.Input[builtins.int] network_id: ID of the Network the route should be added to.
|
30
31
|
"""
|
31
32
|
pulumi.set(__self__, "destination", destination)
|
32
33
|
pulumi.set(__self__, "gateway", gateway)
|
@@ -34,52 +35,52 @@ class NetworkRouteArgs:
|
|
34
35
|
|
35
36
|
@property
|
36
37
|
@pulumi.getter
|
37
|
-
def destination(self) -> pulumi.Input[str]:
|
38
|
+
def destination(self) -> pulumi.Input[builtins.str]:
|
38
39
|
"""
|
39
40
|
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.
|
40
41
|
"""
|
41
42
|
return pulumi.get(self, "destination")
|
42
43
|
|
43
44
|
@destination.setter
|
44
|
-
def destination(self, value: pulumi.Input[str]):
|
45
|
+
def destination(self, value: pulumi.Input[builtins.str]):
|
45
46
|
pulumi.set(self, "destination", value)
|
46
47
|
|
47
48
|
@property
|
48
49
|
@pulumi.getter
|
49
|
-
def gateway(self) -> pulumi.Input[str]:
|
50
|
+
def gateway(self) -> pulumi.Input[builtins.str]:
|
50
51
|
"""
|
51
52
|
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.
|
52
53
|
"""
|
53
54
|
return pulumi.get(self, "gateway")
|
54
55
|
|
55
56
|
@gateway.setter
|
56
|
-
def gateway(self, value: pulumi.Input[str]):
|
57
|
+
def gateway(self, value: pulumi.Input[builtins.str]):
|
57
58
|
pulumi.set(self, "gateway", value)
|
58
59
|
|
59
60
|
@property
|
60
61
|
@pulumi.getter(name="networkId")
|
61
|
-
def network_id(self) -> pulumi.Input[int]:
|
62
|
+
def network_id(self) -> pulumi.Input[builtins.int]:
|
62
63
|
"""
|
63
64
|
ID of the Network the route should be added to.
|
64
65
|
"""
|
65
66
|
return pulumi.get(self, "network_id")
|
66
67
|
|
67
68
|
@network_id.setter
|
68
|
-
def network_id(self, value: pulumi.Input[int]):
|
69
|
+
def network_id(self, value: pulumi.Input[builtins.int]):
|
69
70
|
pulumi.set(self, "network_id", value)
|
70
71
|
|
71
72
|
|
72
73
|
@pulumi.input_type
|
73
74
|
class _NetworkRouteState:
|
74
75
|
def __init__(__self__, *,
|
75
|
-
destination: Optional[pulumi.Input[str]] = None,
|
76
|
-
gateway: Optional[pulumi.Input[str]] = None,
|
77
|
-
network_id: Optional[pulumi.Input[int]] = None):
|
76
|
+
destination: Optional[pulumi.Input[builtins.str]] = None,
|
77
|
+
gateway: Optional[pulumi.Input[builtins.str]] = None,
|
78
|
+
network_id: Optional[pulumi.Input[builtins.int]] = None):
|
78
79
|
"""
|
79
80
|
Input properties used for looking up and filtering NetworkRoute resources.
|
80
|
-
:param pulumi.Input[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[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[int] network_id: ID of the Network the route should be added to.
|
81
|
+
: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.
|
82
|
+
: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.
|
83
|
+
:param pulumi.Input[builtins.int] network_id: ID of the Network the route should be added to.
|
83
84
|
"""
|
84
85
|
if destination is not None:
|
85
86
|
pulumi.set(__self__, "destination", destination)
|
@@ -90,38 +91,38 @@ class _NetworkRouteState:
|
|
90
91
|
|
91
92
|
@property
|
92
93
|
@pulumi.getter
|
93
|
-
def destination(self) -> Optional[pulumi.Input[str]]:
|
94
|
+
def destination(self) -> Optional[pulumi.Input[builtins.str]]:
|
94
95
|
"""
|
95
96
|
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.
|
96
97
|
"""
|
97
98
|
return pulumi.get(self, "destination")
|
98
99
|
|
99
100
|
@destination.setter
|
100
|
-
def destination(self, value: Optional[pulumi.Input[str]]):
|
101
|
+
def destination(self, value: Optional[pulumi.Input[builtins.str]]):
|
101
102
|
pulumi.set(self, "destination", value)
|
102
103
|
|
103
104
|
@property
|
104
105
|
@pulumi.getter
|
105
|
-
def gateway(self) -> Optional[pulumi.Input[str]]:
|
106
|
+
def gateway(self) -> Optional[pulumi.Input[builtins.str]]:
|
106
107
|
"""
|
107
108
|
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.
|
108
109
|
"""
|
109
110
|
return pulumi.get(self, "gateway")
|
110
111
|
|
111
112
|
@gateway.setter
|
112
|
-
def gateway(self, value: Optional[pulumi.Input[str]]):
|
113
|
+
def gateway(self, value: Optional[pulumi.Input[builtins.str]]):
|
113
114
|
pulumi.set(self, "gateway", value)
|
114
115
|
|
115
116
|
@property
|
116
117
|
@pulumi.getter(name="networkId")
|
117
|
-
def network_id(self) -> Optional[pulumi.Input[int]]:
|
118
|
+
def network_id(self) -> Optional[pulumi.Input[builtins.int]]:
|
118
119
|
"""
|
119
120
|
ID of the Network the route should be added to.
|
120
121
|
"""
|
121
122
|
return pulumi.get(self, "network_id")
|
122
123
|
|
123
124
|
@network_id.setter
|
124
|
-
def network_id(self, value: Optional[pulumi.Input[int]]):
|
125
|
+
def network_id(self, value: Optional[pulumi.Input[builtins.int]]):
|
125
126
|
pulumi.set(self, "network_id", value)
|
126
127
|
|
127
128
|
|
@@ -130,9 +131,9 @@ class NetworkRoute(pulumi.CustomResource):
|
|
130
131
|
def __init__(__self__,
|
131
132
|
resource_name: str,
|
132
133
|
opts: Optional[pulumi.ResourceOptions] = None,
|
133
|
-
destination: Optional[pulumi.Input[str]] = None,
|
134
|
-
gateway: Optional[pulumi.Input[str]] = None,
|
135
|
-
network_id: Optional[pulumi.Input[int]] = None,
|
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,
|
136
137
|
__props__=None):
|
137
138
|
"""
|
138
139
|
Provides a Hetzner Cloud Network Route to represent a Network route in the Hetzner Cloud.
|
@@ -164,9 +165,9 @@ class NetworkRoute(pulumi.CustomResource):
|
|
164
165
|
|
165
166
|
:param str resource_name: The name of the resource.
|
166
167
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
167
|
-
:param pulumi.Input[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.
|
168
|
-
:param pulumi.Input[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.
|
169
|
-
:param pulumi.Input[int] network_id: ID of the Network the route should be added to.
|
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.
|
170
171
|
"""
|
171
172
|
...
|
172
173
|
@overload
|
@@ -217,9 +218,9 @@ class NetworkRoute(pulumi.CustomResource):
|
|
217
218
|
def _internal_init(__self__,
|
218
219
|
resource_name: str,
|
219
220
|
opts: Optional[pulumi.ResourceOptions] = None,
|
220
|
-
destination: Optional[pulumi.Input[str]] = None,
|
221
|
-
gateway: Optional[pulumi.Input[str]] = None,
|
222
|
-
network_id: Optional[pulumi.Input[int]] = None,
|
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,
|
223
224
|
__props__=None):
|
224
225
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
225
226
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -248,9 +249,9 @@ class NetworkRoute(pulumi.CustomResource):
|
|
248
249
|
def get(resource_name: str,
|
249
250
|
id: pulumi.Input[str],
|
250
251
|
opts: Optional[pulumi.ResourceOptions] = None,
|
251
|
-
destination: Optional[pulumi.Input[str]] = None,
|
252
|
-
gateway: Optional[pulumi.Input[str]] = None,
|
253
|
-
network_id: Optional[pulumi.Input[int]] = None) -> 'NetworkRoute':
|
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':
|
254
255
|
"""
|
255
256
|
Get an existing NetworkRoute resource's state with the given name, id, and optional extra
|
256
257
|
properties used to qualify the lookup.
|
@@ -258,9 +259,9 @@ class NetworkRoute(pulumi.CustomResource):
|
|
258
259
|
:param str resource_name: The unique name of the resulting resource.
|
259
260
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
260
261
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
261
|
-
:param pulumi.Input[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.
|
262
|
-
:param pulumi.Input[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.
|
263
|
-
:param pulumi.Input[int] network_id: ID of the Network the route should be added to.
|
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.
|
264
265
|
"""
|
265
266
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
266
267
|
|
@@ -273,7 +274,7 @@ class NetworkRoute(pulumi.CustomResource):
|
|
273
274
|
|
274
275
|
@property
|
275
276
|
@pulumi.getter
|
276
|
-
def destination(self) -> pulumi.Output[str]:
|
277
|
+
def destination(self) -> pulumi.Output[builtins.str]:
|
277
278
|
"""
|
278
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.
|
279
280
|
"""
|
@@ -281,7 +282,7 @@ class NetworkRoute(pulumi.CustomResource):
|
|
281
282
|
|
282
283
|
@property
|
283
284
|
@pulumi.getter
|
284
|
-
def gateway(self) -> pulumi.Output[str]:
|
285
|
+
def gateway(self) -> pulumi.Output[builtins.str]:
|
285
286
|
"""
|
286
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.
|
287
288
|
"""
|
@@ -289,7 +290,7 @@ class NetworkRoute(pulumi.CustomResource):
|
|
289
290
|
|
290
291
|
@property
|
291
292
|
@pulumi.getter(name="networkId")
|
292
|
-
def network_id(self) -> pulumi.Output[int]:
|
293
|
+
def network_id(self) -> pulumi.Output[builtins.int]:
|
293
294
|
"""
|
294
295
|
ID of the Network the route should be added to.
|
295
296
|
"""
|