pulumi-hcloud 1.23.0a1743487182__py3-none-any.whl → 1.23.0a1744183178__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.0a1743487182.dist-info → pulumi_hcloud-1.23.0a1744183178.dist-info}/METADATA +1 -1
- pulumi_hcloud-1.23.0a1744183178.dist-info/RECORD +67 -0
- pulumi_hcloud-1.23.0a1743487182.dist-info/RECORD +0 -67
- {pulumi_hcloud-1.23.0a1743487182.dist-info → pulumi_hcloud-1.23.0a1744183178.dist-info}/WHEEL +0 -0
- {pulumi_hcloud-1.23.0a1743487182.dist-info → pulumi_hcloud-1.23.0a1744183178.dist-info}/top_level.txt +0 -0
pulumi_hcloud/get_server.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
|
@@ -99,7 +100,7 @@ class GetServerResult:
|
|
99
100
|
|
100
101
|
@property
|
101
102
|
@pulumi.getter(name="backupWindow")
|
102
|
-
def backup_window(self) -> str:
|
103
|
+
def backup_window(self) -> builtins.str:
|
103
104
|
"""
|
104
105
|
(string) The backup window of the server, if enabled.
|
105
106
|
"""
|
@@ -107,7 +108,7 @@ class GetServerResult:
|
|
107
108
|
|
108
109
|
@property
|
109
110
|
@pulumi.getter
|
110
|
-
def backups(self) -> bool:
|
111
|
+
def backups(self) -> builtins.bool:
|
111
112
|
"""
|
112
113
|
(bool) Whether backups are enabled.
|
113
114
|
"""
|
@@ -115,7 +116,7 @@ class GetServerResult:
|
|
115
116
|
|
116
117
|
@property
|
117
118
|
@pulumi.getter
|
118
|
-
def datacenter(self) -> str:
|
119
|
+
def datacenter(self) -> builtins.str:
|
119
120
|
"""
|
120
121
|
(string) The datacenter name. See the [Hetzner Docs](https://docs.hetzner.com/cloud/general/locations/#what-datacenters-are-there) for more details about datacenters.
|
121
122
|
"""
|
@@ -123,7 +124,7 @@ class GetServerResult:
|
|
123
124
|
|
124
125
|
@property
|
125
126
|
@pulumi.getter(name="deleteProtection")
|
126
|
-
def delete_protection(self) -> bool:
|
127
|
+
def delete_protection(self) -> builtins.bool:
|
127
128
|
"""
|
128
129
|
(bool) Whether delete protection is enabled.
|
129
130
|
"""
|
@@ -131,7 +132,7 @@ class GetServerResult:
|
|
131
132
|
|
132
133
|
@property
|
133
134
|
@pulumi.getter(name="firewallIds")
|
134
|
-
def firewall_ids(self) -> Sequence[int]:
|
135
|
+
def firewall_ids(self) -> Sequence[builtins.int]:
|
135
136
|
"""
|
136
137
|
(Optional, list) Firewall IDs the server is attached to.
|
137
138
|
"""
|
@@ -139,7 +140,7 @@ class GetServerResult:
|
|
139
140
|
|
140
141
|
@property
|
141
142
|
@pulumi.getter
|
142
|
-
def id(self) -> int:
|
143
|
+
def id(self) -> builtins.int:
|
143
144
|
"""
|
144
145
|
(int) Unique ID of the server.
|
145
146
|
"""
|
@@ -147,7 +148,7 @@ class GetServerResult:
|
|
147
148
|
|
148
149
|
@property
|
149
150
|
@pulumi.getter
|
150
|
-
def image(self) -> str:
|
151
|
+
def image(self) -> builtins.str:
|
151
152
|
"""
|
152
153
|
(string) Name or ID of the image the server was created from.
|
153
154
|
"""
|
@@ -155,7 +156,7 @@ class GetServerResult:
|
|
155
156
|
|
156
157
|
@property
|
157
158
|
@pulumi.getter(name="ipv4Address")
|
158
|
-
def ipv4_address(self) -> str:
|
159
|
+
def ipv4_address(self) -> builtins.str:
|
159
160
|
"""
|
160
161
|
(string) The IPv4 address.
|
161
162
|
"""
|
@@ -163,7 +164,7 @@ class GetServerResult:
|
|
163
164
|
|
164
165
|
@property
|
165
166
|
@pulumi.getter(name="ipv6Address")
|
166
|
-
def ipv6_address(self) -> str:
|
167
|
+
def ipv6_address(self) -> builtins.str:
|
167
168
|
"""
|
168
169
|
(string) The first IPv6 address of the assigned network.
|
169
170
|
"""
|
@@ -171,7 +172,7 @@ class GetServerResult:
|
|
171
172
|
|
172
173
|
@property
|
173
174
|
@pulumi.getter(name="ipv6Network")
|
174
|
-
def ipv6_network(self) -> str:
|
175
|
+
def ipv6_network(self) -> builtins.str:
|
175
176
|
"""
|
176
177
|
(string) The IPv6 network.
|
177
178
|
"""
|
@@ -179,7 +180,7 @@ class GetServerResult:
|
|
179
180
|
|
180
181
|
@property
|
181
182
|
@pulumi.getter
|
182
|
-
def iso(self) -> str:
|
183
|
+
def iso(self) -> builtins.str:
|
183
184
|
"""
|
184
185
|
(string) ID or Name of the mounted ISO image. Architecture of ISO must equal the server (type) architecture.
|
185
186
|
"""
|
@@ -187,7 +188,7 @@ class GetServerResult:
|
|
187
188
|
|
188
189
|
@property
|
189
190
|
@pulumi.getter
|
190
|
-
def labels(self) -> Mapping[str, str]:
|
191
|
+
def labels(self) -> Mapping[str, builtins.str]:
|
191
192
|
"""
|
192
193
|
(map) User-defined labels (key-value pairs)
|
193
194
|
"""
|
@@ -195,7 +196,7 @@ class GetServerResult:
|
|
195
196
|
|
196
197
|
@property
|
197
198
|
@pulumi.getter
|
198
|
-
def location(self) -> str:
|
199
|
+
def location(self) -> builtins.str:
|
199
200
|
"""
|
200
201
|
(string) The location name. See the [Hetzner Docs](https://docs.hetzner.com/cloud/general/locations/#what-locations-are-there) for more details about locations.
|
201
202
|
"""
|
@@ -203,7 +204,7 @@ class GetServerResult:
|
|
203
204
|
|
204
205
|
@property
|
205
206
|
@pulumi.getter
|
206
|
-
def name(self) -> str:
|
207
|
+
def name(self) -> builtins.str:
|
207
208
|
"""
|
208
209
|
(string) Name of the server.
|
209
210
|
"""
|
@@ -211,7 +212,7 @@ class GetServerResult:
|
|
211
212
|
|
212
213
|
@property
|
213
214
|
@pulumi.getter(name="placementGroupId")
|
214
|
-
def placement_group_id(self) -> Optional[int]:
|
215
|
+
def placement_group_id(self) -> Optional[builtins.int]:
|
215
216
|
"""
|
216
217
|
(Optional, string) Placement Group ID the server is assigned to.
|
217
218
|
"""
|
@@ -219,7 +220,7 @@ class GetServerResult:
|
|
219
220
|
|
220
221
|
@property
|
221
222
|
@pulumi.getter(name="primaryDiskSize")
|
222
|
-
def primary_disk_size(self) -> int:
|
223
|
+
def primary_disk_size(self) -> builtins.int:
|
223
224
|
"""
|
224
225
|
(int) The size of the primary disk in GB.
|
225
226
|
"""
|
@@ -227,7 +228,7 @@ class GetServerResult:
|
|
227
228
|
|
228
229
|
@property
|
229
230
|
@pulumi.getter(name="rebuildProtection")
|
230
|
-
def rebuild_protection(self) -> bool:
|
231
|
+
def rebuild_protection(self) -> builtins.bool:
|
231
232
|
"""
|
232
233
|
(bool) Whether rebuild protection is enabled.
|
233
234
|
"""
|
@@ -235,18 +236,18 @@ class GetServerResult:
|
|
235
236
|
|
236
237
|
@property
|
237
238
|
@pulumi.getter
|
238
|
-
def rescue(self) -> str:
|
239
|
+
def rescue(self) -> builtins.str:
|
239
240
|
return pulumi.get(self, "rescue")
|
240
241
|
|
241
242
|
@property
|
242
243
|
@pulumi.getter
|
243
244
|
@_utilities.deprecated("""Please use the with_selector property instead.""")
|
244
|
-
def selector(self) -> Optional[str]:
|
245
|
+
def selector(self) -> Optional[builtins.str]:
|
245
246
|
return pulumi.get(self, "selector")
|
246
247
|
|
247
248
|
@property
|
248
249
|
@pulumi.getter(name="serverType")
|
249
|
-
def server_type(self) -> str:
|
250
|
+
def server_type(self) -> builtins.str:
|
250
251
|
"""
|
251
252
|
(string) Name of the server type.
|
252
253
|
"""
|
@@ -254,7 +255,7 @@ class GetServerResult:
|
|
254
255
|
|
255
256
|
@property
|
256
257
|
@pulumi.getter
|
257
|
-
def status(self) -> str:
|
258
|
+
def status(self) -> builtins.str:
|
258
259
|
"""
|
259
260
|
(string) The status of the server.
|
260
261
|
"""
|
@@ -262,12 +263,12 @@ class GetServerResult:
|
|
262
263
|
|
263
264
|
@property
|
264
265
|
@pulumi.getter(name="withSelector")
|
265
|
-
def with_selector(self) -> Optional[str]:
|
266
|
+
def with_selector(self) -> Optional[builtins.str]:
|
266
267
|
return pulumi.get(self, "with_selector")
|
267
268
|
|
268
269
|
@property
|
269
270
|
@pulumi.getter(name="withStatuses")
|
270
|
-
def with_statuses(self) -> Optional[Sequence[str]]:
|
271
|
+
def with_statuses(self) -> Optional[Sequence[builtins.str]]:
|
271
272
|
return pulumi.get(self, "with_statuses")
|
272
273
|
|
273
274
|
|
@@ -302,12 +303,12 @@ class AwaitableGetServerResult(GetServerResult):
|
|
302
303
|
with_statuses=self.with_statuses)
|
303
304
|
|
304
305
|
|
305
|
-
def get_server(id: Optional[int] = None,
|
306
|
-
name: Optional[str] = None,
|
307
|
-
placement_group_id: Optional[int] = None,
|
308
|
-
selector: Optional[str] = None,
|
309
|
-
with_selector: Optional[str] = None,
|
310
|
-
with_statuses: Optional[Sequence[str]] = None,
|
306
|
+
def get_server(id: Optional[builtins.int] = None,
|
307
|
+
name: Optional[builtins.str] = None,
|
308
|
+
placement_group_id: Optional[builtins.int] = None,
|
309
|
+
selector: Optional[builtins.str] = None,
|
310
|
+
with_selector: Optional[builtins.str] = None,
|
311
|
+
with_statuses: Optional[Sequence[builtins.str]] = None,
|
311
312
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServerResult:
|
312
313
|
"""
|
313
314
|
## Example Usage
|
@@ -322,11 +323,11 @@ def get_server(id: Optional[int] = None,
|
|
322
323
|
```
|
323
324
|
|
324
325
|
|
325
|
-
:param int id: ID of the server.
|
326
|
-
:param str name: Name of the server.
|
327
|
-
:param int placement_group_id: (Optional, string) Placement Group ID the server is assigned to.
|
328
|
-
:param str with_selector: Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector).
|
329
|
-
:param Sequence[str] with_statuses: List only servers with the specified status, could contain `initializing`, `starting`, `running`, `stopping`, `off`, `deleting`, `rebuilding`, `migrating`, `unknown`.
|
326
|
+
:param builtins.int id: ID of the server.
|
327
|
+
:param builtins.str name: Name of the server.
|
328
|
+
:param builtins.int placement_group_id: (Optional, string) Placement Group ID the server is assigned to.
|
329
|
+
:param builtins.str with_selector: Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector).
|
330
|
+
:param Sequence[builtins.str] with_statuses: List only servers with the specified status, could contain `initializing`, `starting`, `running`, `stopping`, `off`, `deleting`, `rebuilding`, `migrating`, `unknown`.
|
330
331
|
"""
|
331
332
|
__args__ = dict()
|
332
333
|
__args__['id'] = id
|
@@ -362,12 +363,12 @@ def get_server(id: Optional[int] = None,
|
|
362
363
|
status=pulumi.get(__ret__, 'status'),
|
363
364
|
with_selector=pulumi.get(__ret__, 'with_selector'),
|
364
365
|
with_statuses=pulumi.get(__ret__, 'with_statuses'))
|
365
|
-
def get_server_output(id: Optional[pulumi.Input[Optional[int]]] = None,
|
366
|
-
name: Optional[pulumi.Input[Optional[str]]] = None,
|
367
|
-
placement_group_id: Optional[pulumi.Input[Optional[int]]] = None,
|
368
|
-
selector: Optional[pulumi.Input[Optional[str]]] = None,
|
369
|
-
with_selector: Optional[pulumi.Input[Optional[str]]] = None,
|
370
|
-
with_statuses: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
366
|
+
def get_server_output(id: Optional[pulumi.Input[Optional[builtins.int]]] = None,
|
367
|
+
name: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
368
|
+
placement_group_id: Optional[pulumi.Input[Optional[builtins.int]]] = None,
|
369
|
+
selector: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
370
|
+
with_selector: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
371
|
+
with_statuses: Optional[pulumi.Input[Optional[Sequence[builtins.str]]]] = None,
|
371
372
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServerResult]:
|
372
373
|
"""
|
373
374
|
## Example Usage
|
@@ -382,11 +383,11 @@ def get_server_output(id: Optional[pulumi.Input[Optional[int]]] = None,
|
|
382
383
|
```
|
383
384
|
|
384
385
|
|
385
|
-
:param int id: ID of the server.
|
386
|
-
:param str name: Name of the server.
|
387
|
-
:param int placement_group_id: (Optional, string) Placement Group ID the server is assigned to.
|
388
|
-
:param str with_selector: Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector).
|
389
|
-
:param Sequence[str] with_statuses: List only servers with the specified status, could contain `initializing`, `starting`, `running`, `stopping`, `off`, `deleting`, `rebuilding`, `migrating`, `unknown`.
|
386
|
+
:param builtins.int id: ID of the server.
|
387
|
+
:param builtins.str name: Name of the server.
|
388
|
+
:param builtins.int placement_group_id: (Optional, string) Placement Group ID the server is assigned to.
|
389
|
+
:param builtins.str with_selector: Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector).
|
390
|
+
:param Sequence[builtins.str] with_statuses: List only servers with the specified status, could contain `initializing`, `starting`, `running`, `stopping`, `off`, `deleting`, `rebuilding`, `migrating`, `unknown`.
|
390
391
|
"""
|
391
392
|
__args__ = dict()
|
392
393
|
__args__['id'] = id
|
pulumi_hcloud/get_server_type.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
|
@@ -69,7 +70,7 @@ class GetServerTypeResult:
|
|
69
70
|
|
70
71
|
@property
|
71
72
|
@pulumi.getter
|
72
|
-
def architecture(self) -> str:
|
73
|
+
def architecture(self) -> builtins.str:
|
73
74
|
"""
|
74
75
|
Architecture of the cpu for a Server of this type.
|
75
76
|
"""
|
@@ -77,7 +78,7 @@ class GetServerTypeResult:
|
|
77
78
|
|
78
79
|
@property
|
79
80
|
@pulumi.getter
|
80
|
-
def cores(self) -> int:
|
81
|
+
def cores(self) -> builtins.int:
|
81
82
|
"""
|
82
83
|
Number of cpu cores for a Server of this type.
|
83
84
|
"""
|
@@ -85,7 +86,7 @@ class GetServerTypeResult:
|
|
85
86
|
|
86
87
|
@property
|
87
88
|
@pulumi.getter(name="cpuType")
|
88
|
-
def cpu_type(self) -> str:
|
89
|
+
def cpu_type(self) -> builtins.str:
|
89
90
|
"""
|
90
91
|
Type of cpu for a Server of this type.
|
91
92
|
"""
|
@@ -93,7 +94,7 @@ class GetServerTypeResult:
|
|
93
94
|
|
94
95
|
@property
|
95
96
|
@pulumi.getter(name="deprecationAnnounced")
|
96
|
-
def deprecation_announced(self) -> str:
|
97
|
+
def deprecation_announced(self) -> builtins.str:
|
97
98
|
"""
|
98
99
|
Date of the Server Type deprecation announcement.
|
99
100
|
"""
|
@@ -101,7 +102,7 @@ class GetServerTypeResult:
|
|
101
102
|
|
102
103
|
@property
|
103
104
|
@pulumi.getter
|
104
|
-
def description(self) -> str:
|
105
|
+
def description(self) -> builtins.str:
|
105
106
|
"""
|
106
107
|
Description of the Server Type.
|
107
108
|
"""
|
@@ -109,7 +110,7 @@ class GetServerTypeResult:
|
|
109
110
|
|
110
111
|
@property
|
111
112
|
@pulumi.getter
|
112
|
-
def disk(self) -> int:
|
113
|
+
def disk(self) -> builtins.int:
|
113
114
|
"""
|
114
115
|
Disk size in GB for a Server of this type.
|
115
116
|
"""
|
@@ -117,7 +118,7 @@ class GetServerTypeResult:
|
|
117
118
|
|
118
119
|
@property
|
119
120
|
@pulumi.getter
|
120
|
-
def id(self) -> Optional[int]:
|
121
|
+
def id(self) -> Optional[builtins.int]:
|
121
122
|
"""
|
122
123
|
ID of the Server Type.
|
123
124
|
"""
|
@@ -126,12 +127,12 @@ class GetServerTypeResult:
|
|
126
127
|
@property
|
127
128
|
@pulumi.getter(name="includedTraffic")
|
128
129
|
@_utilities.deprecated("""The field is deprecated and will always report 0 after 2024-08-05.""")
|
129
|
-
def included_traffic(self) -> int:
|
130
|
+
def included_traffic(self) -> builtins.int:
|
130
131
|
return pulumi.get(self, "included_traffic")
|
131
132
|
|
132
133
|
@property
|
133
134
|
@pulumi.getter(name="isDeprecated")
|
134
|
-
def is_deprecated(self) -> bool:
|
135
|
+
def is_deprecated(self) -> builtins.bool:
|
135
136
|
"""
|
136
137
|
Whether the Server Type is deprecated.
|
137
138
|
"""
|
@@ -139,7 +140,7 @@ class GetServerTypeResult:
|
|
139
140
|
|
140
141
|
@property
|
141
142
|
@pulumi.getter
|
142
|
-
def memory(self) -> int:
|
143
|
+
def memory(self) -> builtins.int:
|
143
144
|
"""
|
144
145
|
Memory in GB for a Server of this type.
|
145
146
|
"""
|
@@ -147,7 +148,7 @@ class GetServerTypeResult:
|
|
147
148
|
|
148
149
|
@property
|
149
150
|
@pulumi.getter
|
150
|
-
def name(self) -> Optional[str]:
|
151
|
+
def name(self) -> Optional[builtins.str]:
|
151
152
|
"""
|
152
153
|
Name of the Server Type.
|
153
154
|
"""
|
@@ -155,7 +156,7 @@ class GetServerTypeResult:
|
|
155
156
|
|
156
157
|
@property
|
157
158
|
@pulumi.getter(name="storageType")
|
158
|
-
def storage_type(self) -> str:
|
159
|
+
def storage_type(self) -> builtins.str:
|
159
160
|
"""
|
160
161
|
Type of boot drive for a Server of this type.
|
161
162
|
"""
|
@@ -163,7 +164,7 @@ class GetServerTypeResult:
|
|
163
164
|
|
164
165
|
@property
|
165
166
|
@pulumi.getter(name="unavailableAfter")
|
166
|
-
def unavailable_after(self) -> str:
|
167
|
+
def unavailable_after(self) -> builtins.str:
|
167
168
|
"""
|
168
169
|
Date of the Server Type removal. After this date, the Server Type cannot be used anymore.
|
169
170
|
"""
|
@@ -191,8 +192,8 @@ class AwaitableGetServerTypeResult(GetServerTypeResult):
|
|
191
192
|
unavailable_after=self.unavailable_after)
|
192
193
|
|
193
194
|
|
194
|
-
def get_server_type(id: Optional[int] = None,
|
195
|
-
name: Optional[str] = None,
|
195
|
+
def get_server_type(id: Optional[builtins.int] = None,
|
196
|
+
name: Optional[builtins.str] = None,
|
196
197
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServerTypeResult:
|
197
198
|
"""
|
198
199
|
Provides details about a specific Hetzner Cloud Server Type.
|
@@ -215,8 +216,8 @@ def get_server_type(id: Optional[int] = None,
|
|
215
216
|
```
|
216
217
|
|
217
218
|
|
218
|
-
:param int id: ID of the Server Type.
|
219
|
-
:param str name: Name of the Server Type.
|
219
|
+
:param builtins.int id: ID of the Server Type.
|
220
|
+
:param builtins.str name: Name of the Server Type.
|
220
221
|
"""
|
221
222
|
__args__ = dict()
|
222
223
|
__args__['id'] = id
|
@@ -238,8 +239,8 @@ def get_server_type(id: Optional[int] = None,
|
|
238
239
|
name=pulumi.get(__ret__, 'name'),
|
239
240
|
storage_type=pulumi.get(__ret__, 'storage_type'),
|
240
241
|
unavailable_after=pulumi.get(__ret__, 'unavailable_after'))
|
241
|
-
def get_server_type_output(id: Optional[pulumi.Input[Optional[int]]] = None,
|
242
|
-
name: Optional[pulumi.Input[Optional[str]]] = None,
|
242
|
+
def get_server_type_output(id: Optional[pulumi.Input[Optional[builtins.int]]] = None,
|
243
|
+
name: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
243
244
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServerTypeResult]:
|
244
245
|
"""
|
245
246
|
Provides details about a specific Hetzner Cloud Server Type.
|
@@ -262,8 +263,8 @@ def get_server_type_output(id: Optional[pulumi.Input[Optional[int]]] = None,
|
|
262
263
|
```
|
263
264
|
|
264
265
|
|
265
|
-
:param int id: ID of the Server Type.
|
266
|
-
:param str name: Name of the Server Type.
|
266
|
+
:param builtins.int id: ID of the Server Type.
|
267
|
+
:param builtins.str name: Name of the Server Type.
|
267
268
|
"""
|
268
269
|
__args__ = dict()
|
269
270
|
__args__['id'] = id
|
@@ -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
|
@@ -47,12 +48,12 @@ class GetServerTypesResult:
|
|
47
48
|
@property
|
48
49
|
@pulumi.getter
|
49
50
|
@_utilities.deprecated("""Use server_types list instead""")
|
50
|
-
def descriptions(self) -> Sequence[str]:
|
51
|
+
def descriptions(self) -> Sequence[builtins.str]:
|
51
52
|
return pulumi.get(self, "descriptions")
|
52
53
|
|
53
54
|
@property
|
54
55
|
@pulumi.getter
|
55
|
-
def id(self) -> str:
|
56
|
+
def id(self) -> builtins.str:
|
56
57
|
"""
|
57
58
|
The ID of this resource.
|
58
59
|
"""
|
@@ -61,13 +62,13 @@ class GetServerTypesResult:
|
|
61
62
|
@property
|
62
63
|
@pulumi.getter
|
63
64
|
@_utilities.deprecated("""Use server_types list instead""")
|
64
|
-
def names(self) -> Sequence[str]:
|
65
|
+
def names(self) -> Sequence[builtins.str]:
|
65
66
|
return pulumi.get(self, "names")
|
66
67
|
|
67
68
|
@property
|
68
69
|
@pulumi.getter(name="serverTypeIds")
|
69
70
|
@_utilities.deprecated("""Use server_types list instead""")
|
70
|
-
def server_type_ids(self) -> Sequence[str]:
|
71
|
+
def server_type_ids(self) -> Sequence[builtins.str]:
|
71
72
|
return pulumi.get(self, "server_type_ids")
|
72
73
|
|
73
74
|
@property
|
pulumi_hcloud/get_servers.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
|
@@ -43,7 +44,7 @@ class GetServersResult:
|
|
43
44
|
|
44
45
|
@property
|
45
46
|
@pulumi.getter
|
46
|
-
def id(self) -> str:
|
47
|
+
def id(self) -> builtins.str:
|
47
48
|
"""
|
48
49
|
The provider-assigned unique ID for this managed resource.
|
49
50
|
"""
|
@@ -59,12 +60,12 @@ class GetServersResult:
|
|
59
60
|
|
60
61
|
@property
|
61
62
|
@pulumi.getter(name="withSelector")
|
62
|
-
def with_selector(self) -> Optional[str]:
|
63
|
+
def with_selector(self) -> Optional[builtins.str]:
|
63
64
|
return pulumi.get(self, "with_selector")
|
64
65
|
|
65
66
|
@property
|
66
67
|
@pulumi.getter(name="withStatuses")
|
67
|
-
def with_statuses(self) -> Optional[Sequence[str]]:
|
68
|
+
def with_statuses(self) -> Optional[Sequence[builtins.str]]:
|
68
69
|
return pulumi.get(self, "with_statuses")
|
69
70
|
|
70
71
|
|
@@ -80,8 +81,8 @@ class AwaitableGetServersResult(GetServersResult):
|
|
80
81
|
with_statuses=self.with_statuses)
|
81
82
|
|
82
83
|
|
83
|
-
def get_servers(with_selector: Optional[str] = None,
|
84
|
-
with_statuses: Optional[Sequence[str]] = None,
|
84
|
+
def get_servers(with_selector: Optional[builtins.str] = None,
|
85
|
+
with_statuses: Optional[Sequence[builtins.str]] = None,
|
85
86
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServersResult:
|
86
87
|
"""
|
87
88
|
## Example Usage
|
@@ -94,8 +95,8 @@ def get_servers(with_selector: Optional[str] = None,
|
|
94
95
|
```
|
95
96
|
|
96
97
|
|
97
|
-
:param str with_selector: Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector).
|
98
|
-
:param Sequence[str] with_statuses: List only servers with the specified status, could contain `initializing`, `starting`, `running`, `stopping`, `off`, `deleting`, `rebuilding`, `migrating`, `unknown`.
|
98
|
+
:param builtins.str with_selector: Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector).
|
99
|
+
:param Sequence[builtins.str] with_statuses: List only servers with the specified status, could contain `initializing`, `starting`, `running`, `stopping`, `off`, `deleting`, `rebuilding`, `migrating`, `unknown`.
|
99
100
|
"""
|
100
101
|
__args__ = dict()
|
101
102
|
__args__['withSelector'] = with_selector
|
@@ -108,8 +109,8 @@ def get_servers(with_selector: Optional[str] = None,
|
|
108
109
|
servers=pulumi.get(__ret__, 'servers'),
|
109
110
|
with_selector=pulumi.get(__ret__, 'with_selector'),
|
110
111
|
with_statuses=pulumi.get(__ret__, 'with_statuses'))
|
111
|
-
def get_servers_output(with_selector: Optional[pulumi.Input[Optional[str]]] = None,
|
112
|
-
with_statuses: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
112
|
+
def get_servers_output(with_selector: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
113
|
+
with_statuses: Optional[pulumi.Input[Optional[Sequence[builtins.str]]]] = None,
|
113
114
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServersResult]:
|
114
115
|
"""
|
115
116
|
## Example Usage
|
@@ -122,8 +123,8 @@ def get_servers_output(with_selector: Optional[pulumi.Input[Optional[str]]] = No
|
|
122
123
|
```
|
123
124
|
|
124
125
|
|
125
|
-
:param str with_selector: Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector).
|
126
|
-
:param Sequence[str] with_statuses: List only servers with the specified status, could contain `initializing`, `starting`, `running`, `stopping`, `off`, `deleting`, `rebuilding`, `migrating`, `unknown`.
|
126
|
+
:param builtins.str with_selector: Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/#overview-label-selector).
|
127
|
+
:param Sequence[builtins.str] with_statuses: List only servers with the specified status, could contain `initializing`, `starting`, `running`, `stopping`, `off`, `deleting`, `rebuilding`, `migrating`, `unknown`.
|
127
128
|
"""
|
128
129
|
__args__ = dict()
|
129
130
|
__args__['withSelector'] = with_selector
|