pulumi-hcloud 1.23.0a1747375245__py3-none-any.whl → 1.23.1a1753397873__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 +2 -2
- pulumi_hcloud/_inputs.py +348 -259
- pulumi_hcloud/_utilities.py +1 -1
- pulumi_hcloud/certificate.py +96 -97
- pulumi_hcloud/config/__init__.py +2 -2
- pulumi_hcloud/config/__init__.pyi +2 -3
- pulumi_hcloud/config/vars.py +6 -7
- pulumi_hcloud/firewall.py +42 -43
- pulumi_hcloud/firewall_attachment.py +53 -54
- pulumi_hcloud/floating_ip.py +139 -140
- pulumi_hcloud/floating_ip_assignment.py +36 -37
- pulumi_hcloud/get_certificate.py +36 -37
- pulumi_hcloud/get_certificates.py +11 -12
- pulumi_hcloud/get_datacenter.py +22 -23
- pulumi_hcloud/get_datacenters.py +11 -12
- pulumi_hcloud/get_firewall.py +34 -35
- pulumi_hcloud/get_firewalls.py +17 -18
- pulumi_hcloud/get_floating_ip.py +44 -45
- pulumi_hcloud/get_floating_ips.py +11 -12
- pulumi_hcloud/get_image.py +78 -75
- pulumi_hcloud/get_images.py +45 -40
- pulumi_hcloud/get_load_balancer.py +41 -42
- pulumi_hcloud/get_load_balancer_type.py +24 -25
- pulumi_hcloud/get_load_balancer_types.py +5 -6
- pulumi_hcloud/get_load_balancers.py +11 -12
- pulumi_hcloud/get_location.py +26 -27
- pulumi_hcloud/get_locations.py +11 -12
- pulumi_hcloud/get_network.py +38 -39
- pulumi_hcloud/get_networks.py +11 -12
- pulumi_hcloud/get_placement_group.py +40 -41
- pulumi_hcloud/get_placement_groups.py +17 -18
- pulumi_hcloud/get_primary_ip.py +46 -47
- pulumi_hcloud/get_primary_ips.py +11 -12
- pulumi_hcloud/get_server.py +93 -72
- pulumi_hcloud/get_server_type.py +36 -37
- pulumi_hcloud/get_server_types.py +11 -12
- pulumi_hcloud/get_servers.py +17 -18
- pulumi_hcloud/get_ssh_key.py +36 -37
- pulumi_hcloud/get_ssh_keys.py +15 -16
- pulumi_hcloud/get_volume.py +50 -51
- pulumi_hcloud/get_volumes.py +17 -18
- pulumi_hcloud/load_balancer.py +146 -147
- pulumi_hcloud/load_balancer_network.py +87 -88
- pulumi_hcloud/load_balancer_service.py +93 -94
- pulumi_hcloud/load_balancer_target.py +104 -105
- pulumi_hcloud/managed_certificate.py +105 -106
- pulumi_hcloud/network.py +87 -88
- pulumi_hcloud/network_route.py +53 -54
- pulumi_hcloud/network_subnet.py +94 -95
- pulumi_hcloud/outputs.py +913 -820
- pulumi_hcloud/placement_group.py +60 -61
- pulumi_hcloud/primary_ip.py +156 -157
- pulumi_hcloud/provider.py +43 -44
- pulumi_hcloud/pulumi-plugin.json +1 -1
- pulumi_hcloud/rdns.py +104 -105
- pulumi_hcloud/server.py +381 -382
- pulumi_hcloud/server_network.py +94 -95
- pulumi_hcloud/snapshot.py +53 -54
- pulumi_hcloud/ssh_key.py +62 -63
- pulumi_hcloud/uploaded_certificate.py +122 -123
- pulumi_hcloud/volume.py +147 -148
- pulumi_hcloud/volume_attachment.py +53 -54
- {pulumi_hcloud-1.23.0a1747375245.dist-info → pulumi_hcloud-1.23.1a1753397873.dist-info}/METADATA +1 -1
- pulumi_hcloud-1.23.1a1753397873.dist-info/RECORD +67 -0
- {pulumi_hcloud-1.23.0a1747375245.dist-info → pulumi_hcloud-1.23.1a1753397873.dist-info}/WHEEL +1 -1
- pulumi_hcloud-1.23.0a1747375245.dist-info/RECORD +0 -67
- {pulumi_hcloud-1.23.0a1747375245.dist-info → pulumi_hcloud-1.23.1a1753397873.dist-info}/top_level.txt +0 -0
pulumi_hcloud/get_server.py
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by
|
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
|
@@ -14,6 +13,8 @@ if sys.version_info >= (3, 11):
|
|
14
13
|
else:
|
15
14
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
16
15
|
from . import _utilities
|
16
|
+
from . import outputs
|
17
|
+
from ._inputs import *
|
17
18
|
|
18
19
|
__all__ = [
|
19
20
|
'GetServerResult',
|
@@ -27,7 +28,7 @@ class GetServerResult:
|
|
27
28
|
"""
|
28
29
|
A collection of values returned by getServer.
|
29
30
|
"""
|
30
|
-
def __init__(__self__, backup_window=None, backups=None, datacenter=None, delete_protection=None, firewall_ids=None, id=None, image=None, ipv4_address=None, ipv6_address=None, ipv6_network=None, iso=None, labels=None, location=None, name=None, placement_group_id=None, primary_disk_size=None, rebuild_protection=None, rescue=None, selector=None, server_type=None, status=None, with_selector=None, with_statuses=None):
|
31
|
+
def __init__(__self__, backup_window=None, backups=None, datacenter=None, delete_protection=None, firewall_ids=None, id=None, image=None, ipv4_address=None, ipv6_address=None, ipv6_network=None, iso=None, labels=None, location=None, name=None, networks=None, placement_group_id=None, primary_disk_size=None, rebuild_protection=None, rescue=None, selector=None, server_type=None, status=None, with_selector=None, with_statuses=None):
|
31
32
|
if backup_window and not isinstance(backup_window, str):
|
32
33
|
raise TypeError("Expected argument 'backup_window' to be a str")
|
33
34
|
pulumi.set(__self__, "backup_window", backup_window)
|
@@ -70,6 +71,9 @@ class GetServerResult:
|
|
70
71
|
if name and not isinstance(name, str):
|
71
72
|
raise TypeError("Expected argument 'name' to be a str")
|
72
73
|
pulumi.set(__self__, "name", name)
|
74
|
+
if networks and not isinstance(networks, list):
|
75
|
+
raise TypeError("Expected argument 'networks' to be a list")
|
76
|
+
pulumi.set(__self__, "networks", networks)
|
73
77
|
if placement_group_id and not isinstance(placement_group_id, int):
|
74
78
|
raise TypeError("Expected argument 'placement_group_id' to be a int")
|
75
79
|
pulumi.set(__self__, "placement_group_id", placement_group_id)
|
@@ -98,177 +102,185 @@ class GetServerResult:
|
|
98
102
|
raise TypeError("Expected argument 'with_statuses' to be a list")
|
99
103
|
pulumi.set(__self__, "with_statuses", with_statuses)
|
100
104
|
|
101
|
-
@property
|
105
|
+
@_builtins.property
|
102
106
|
@pulumi.getter(name="backupWindow")
|
103
|
-
def backup_window(self) ->
|
107
|
+
def backup_window(self) -> _builtins.str:
|
104
108
|
"""
|
105
109
|
(string) The backup window of the server, if enabled.
|
106
110
|
"""
|
107
111
|
return pulumi.get(self, "backup_window")
|
108
112
|
|
109
|
-
@property
|
113
|
+
@_builtins.property
|
110
114
|
@pulumi.getter
|
111
|
-
def backups(self) ->
|
115
|
+
def backups(self) -> _builtins.bool:
|
112
116
|
"""
|
113
117
|
(bool) Whether backups are enabled.
|
114
118
|
"""
|
115
119
|
return pulumi.get(self, "backups")
|
116
120
|
|
117
|
-
@property
|
121
|
+
@_builtins.property
|
118
122
|
@pulumi.getter
|
119
|
-
def datacenter(self) ->
|
123
|
+
def datacenter(self) -> _builtins.str:
|
120
124
|
"""
|
121
125
|
(string) The datacenter name. See the [Hetzner Docs](https://docs.hetzner.com/cloud/general/locations/#what-datacenters-are-there) for more details about datacenters.
|
122
126
|
"""
|
123
127
|
return pulumi.get(self, "datacenter")
|
124
128
|
|
125
|
-
@property
|
129
|
+
@_builtins.property
|
126
130
|
@pulumi.getter(name="deleteProtection")
|
127
|
-
def delete_protection(self) ->
|
131
|
+
def delete_protection(self) -> _builtins.bool:
|
128
132
|
"""
|
129
133
|
(bool) Whether delete protection is enabled.
|
130
134
|
"""
|
131
135
|
return pulumi.get(self, "delete_protection")
|
132
136
|
|
133
|
-
@property
|
137
|
+
@_builtins.property
|
134
138
|
@pulumi.getter(name="firewallIds")
|
135
|
-
def firewall_ids(self) -> Sequence[
|
139
|
+
def firewall_ids(self) -> Sequence[_builtins.int]:
|
136
140
|
"""
|
137
141
|
(Optional, list) Firewall IDs the server is attached to.
|
138
142
|
"""
|
139
143
|
return pulumi.get(self, "firewall_ids")
|
140
144
|
|
141
|
-
@property
|
145
|
+
@_builtins.property
|
142
146
|
@pulumi.getter
|
143
|
-
def id(self) ->
|
147
|
+
def id(self) -> _builtins.int:
|
144
148
|
"""
|
145
149
|
(int) Unique ID of the server.
|
146
150
|
"""
|
147
151
|
return pulumi.get(self, "id")
|
148
152
|
|
149
|
-
@property
|
153
|
+
@_builtins.property
|
150
154
|
@pulumi.getter
|
151
|
-
def image(self) ->
|
155
|
+
def image(self) -> _builtins.str:
|
152
156
|
"""
|
153
157
|
(string) Name or ID of the image the server was created from.
|
154
158
|
"""
|
155
159
|
return pulumi.get(self, "image")
|
156
160
|
|
157
|
-
@property
|
161
|
+
@_builtins.property
|
158
162
|
@pulumi.getter(name="ipv4Address")
|
159
|
-
def ipv4_address(self) ->
|
163
|
+
def ipv4_address(self) -> _builtins.str:
|
160
164
|
"""
|
161
165
|
(string) The IPv4 address.
|
162
166
|
"""
|
163
167
|
return pulumi.get(self, "ipv4_address")
|
164
168
|
|
165
|
-
@property
|
169
|
+
@_builtins.property
|
166
170
|
@pulumi.getter(name="ipv6Address")
|
167
|
-
def ipv6_address(self) ->
|
171
|
+
def ipv6_address(self) -> _builtins.str:
|
168
172
|
"""
|
169
173
|
(string) The first IPv6 address of the assigned network.
|
170
174
|
"""
|
171
175
|
return pulumi.get(self, "ipv6_address")
|
172
176
|
|
173
|
-
@property
|
177
|
+
@_builtins.property
|
174
178
|
@pulumi.getter(name="ipv6Network")
|
175
|
-
def ipv6_network(self) ->
|
179
|
+
def ipv6_network(self) -> _builtins.str:
|
176
180
|
"""
|
177
181
|
(string) The IPv6 network.
|
178
182
|
"""
|
179
183
|
return pulumi.get(self, "ipv6_network")
|
180
184
|
|
181
|
-
@property
|
185
|
+
@_builtins.property
|
182
186
|
@pulumi.getter
|
183
|
-
def iso(self) ->
|
187
|
+
def iso(self) -> _builtins.str:
|
184
188
|
"""
|
185
189
|
(string) ID or Name of the mounted ISO image. Architecture of ISO must equal the server (type) architecture.
|
186
190
|
"""
|
187
191
|
return pulumi.get(self, "iso")
|
188
192
|
|
189
|
-
@property
|
193
|
+
@_builtins.property
|
190
194
|
@pulumi.getter
|
191
|
-
def labels(self) -> Mapping[str,
|
195
|
+
def labels(self) -> Mapping[str, _builtins.str]:
|
192
196
|
"""
|
193
197
|
(map) User-defined labels (key-value pairs)
|
194
198
|
"""
|
195
199
|
return pulumi.get(self, "labels")
|
196
200
|
|
197
|
-
@property
|
201
|
+
@_builtins.property
|
198
202
|
@pulumi.getter
|
199
|
-
def location(self) ->
|
203
|
+
def location(self) -> _builtins.str:
|
200
204
|
"""
|
201
205
|
(string) The location name. See the [Hetzner Docs](https://docs.hetzner.com/cloud/general/locations/#what-locations-are-there) for more details about locations.
|
202
206
|
"""
|
203
207
|
return pulumi.get(self, "location")
|
204
208
|
|
205
|
-
@property
|
209
|
+
@_builtins.property
|
206
210
|
@pulumi.getter
|
207
|
-
def name(self) ->
|
211
|
+
def name(self) -> _builtins.str:
|
208
212
|
"""
|
209
213
|
(string) Name of the server.
|
210
214
|
"""
|
211
215
|
return pulumi.get(self, "name")
|
212
216
|
|
213
|
-
@property
|
217
|
+
@_builtins.property
|
218
|
+
@pulumi.getter
|
219
|
+
def networks(self) -> Optional[Sequence['outputs.GetServerNetworkResult']]:
|
220
|
+
"""
|
221
|
+
(map) Private Network the server is attached to.
|
222
|
+
"""
|
223
|
+
return pulumi.get(self, "networks")
|
224
|
+
|
225
|
+
@_builtins.property
|
214
226
|
@pulumi.getter(name="placementGroupId")
|
215
|
-
def placement_group_id(self) -> Optional[
|
227
|
+
def placement_group_id(self) -> Optional[_builtins.int]:
|
216
228
|
"""
|
217
229
|
(Optional, string) Placement Group ID the server is assigned to.
|
218
230
|
"""
|
219
231
|
return pulumi.get(self, "placement_group_id")
|
220
232
|
|
221
|
-
@property
|
233
|
+
@_builtins.property
|
222
234
|
@pulumi.getter(name="primaryDiskSize")
|
223
|
-
def primary_disk_size(self) ->
|
235
|
+
def primary_disk_size(self) -> _builtins.int:
|
224
236
|
"""
|
225
237
|
(int) The size of the primary disk in GB.
|
226
238
|
"""
|
227
239
|
return pulumi.get(self, "primary_disk_size")
|
228
240
|
|
229
|
-
@property
|
241
|
+
@_builtins.property
|
230
242
|
@pulumi.getter(name="rebuildProtection")
|
231
|
-
def rebuild_protection(self) ->
|
243
|
+
def rebuild_protection(self) -> _builtins.bool:
|
232
244
|
"""
|
233
245
|
(bool) Whether rebuild protection is enabled.
|
234
246
|
"""
|
235
247
|
return pulumi.get(self, "rebuild_protection")
|
236
248
|
|
237
|
-
@property
|
249
|
+
@_builtins.property
|
238
250
|
@pulumi.getter
|
239
|
-
def rescue(self) ->
|
251
|
+
def rescue(self) -> _builtins.str:
|
240
252
|
return pulumi.get(self, "rescue")
|
241
253
|
|
242
|
-
@property
|
254
|
+
@_builtins.property
|
243
255
|
@pulumi.getter
|
244
256
|
@_utilities.deprecated("""Please use the with_selector property instead.""")
|
245
|
-
def selector(self) -> Optional[
|
257
|
+
def selector(self) -> Optional[_builtins.str]:
|
246
258
|
return pulumi.get(self, "selector")
|
247
259
|
|
248
|
-
@property
|
260
|
+
@_builtins.property
|
249
261
|
@pulumi.getter(name="serverType")
|
250
|
-
def server_type(self) ->
|
262
|
+
def server_type(self) -> _builtins.str:
|
251
263
|
"""
|
252
264
|
(string) Name of the server type.
|
253
265
|
"""
|
254
266
|
return pulumi.get(self, "server_type")
|
255
267
|
|
256
|
-
@property
|
268
|
+
@_builtins.property
|
257
269
|
@pulumi.getter
|
258
|
-
def status(self) ->
|
270
|
+
def status(self) -> _builtins.str:
|
259
271
|
"""
|
260
272
|
(string) The status of the server.
|
261
273
|
"""
|
262
274
|
return pulumi.get(self, "status")
|
263
275
|
|
264
|
-
@property
|
276
|
+
@_builtins.property
|
265
277
|
@pulumi.getter(name="withSelector")
|
266
|
-
def with_selector(self) -> Optional[
|
278
|
+
def with_selector(self) -> Optional[_builtins.str]:
|
267
279
|
return pulumi.get(self, "with_selector")
|
268
280
|
|
269
|
-
@property
|
281
|
+
@_builtins.property
|
270
282
|
@pulumi.getter(name="withStatuses")
|
271
|
-
def with_statuses(self) -> Optional[Sequence[
|
283
|
+
def with_statuses(self) -> Optional[Sequence[_builtins.str]]:
|
272
284
|
return pulumi.get(self, "with_statuses")
|
273
285
|
|
274
286
|
|
@@ -292,6 +304,7 @@ class AwaitableGetServerResult(GetServerResult):
|
|
292
304
|
labels=self.labels,
|
293
305
|
location=self.location,
|
294
306
|
name=self.name,
|
307
|
+
networks=self.networks,
|
295
308
|
placement_group_id=self.placement_group_id,
|
296
309
|
primary_disk_size=self.primary_disk_size,
|
297
310
|
rebuild_protection=self.rebuild_protection,
|
@@ -303,12 +316,13 @@ class AwaitableGetServerResult(GetServerResult):
|
|
303
316
|
with_statuses=self.with_statuses)
|
304
317
|
|
305
318
|
|
306
|
-
def get_server(id: Optional[
|
307
|
-
name: Optional[
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
319
|
+
def get_server(id: Optional[_builtins.int] = None,
|
320
|
+
name: Optional[_builtins.str] = None,
|
321
|
+
networks: Optional[Sequence[Union['GetServerNetworkArgs', 'GetServerNetworkArgsDict']]] = None,
|
322
|
+
placement_group_id: Optional[_builtins.int] = None,
|
323
|
+
selector: Optional[_builtins.str] = None,
|
324
|
+
with_selector: Optional[_builtins.str] = None,
|
325
|
+
with_statuses: Optional[Sequence[_builtins.str]] = None,
|
312
326
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServerResult:
|
313
327
|
"""
|
314
328
|
## Example Usage
|
@@ -323,15 +337,17 @@ def get_server(id: Optional[builtins.int] = None,
|
|
323
337
|
```
|
324
338
|
|
325
339
|
|
326
|
-
:param
|
327
|
-
:param
|
328
|
-
:param
|
329
|
-
:param
|
330
|
-
:param
|
340
|
+
:param _builtins.int id: ID of the server.
|
341
|
+
:param _builtins.str name: Name of the server.
|
342
|
+
:param Sequence[Union['GetServerNetworkArgs', 'GetServerNetworkArgsDict']] networks: (map) Private Network the server is attached to.
|
343
|
+
:param _builtins.int placement_group_id: (Optional, string) Placement Group ID the server is assigned to.
|
344
|
+
: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).
|
345
|
+
:param Sequence[_builtins.str] with_statuses: List only servers with the specified status, could contain `initializing`, `starting`, `running`, `stopping`, `off`, `deleting`, `rebuilding`, `migrating`, `unknown`.
|
331
346
|
"""
|
332
347
|
__args__ = dict()
|
333
348
|
__args__['id'] = id
|
334
349
|
__args__['name'] = name
|
350
|
+
__args__['networks'] = networks
|
335
351
|
__args__['placementGroupId'] = placement_group_id
|
336
352
|
__args__['selector'] = selector
|
337
353
|
__args__['withSelector'] = with_selector
|
@@ -354,6 +370,7 @@ def get_server(id: Optional[builtins.int] = None,
|
|
354
370
|
labels=pulumi.get(__ret__, 'labels'),
|
355
371
|
location=pulumi.get(__ret__, 'location'),
|
356
372
|
name=pulumi.get(__ret__, 'name'),
|
373
|
+
networks=pulumi.get(__ret__, 'networks'),
|
357
374
|
placement_group_id=pulumi.get(__ret__, 'placement_group_id'),
|
358
375
|
primary_disk_size=pulumi.get(__ret__, 'primary_disk_size'),
|
359
376
|
rebuild_protection=pulumi.get(__ret__, 'rebuild_protection'),
|
@@ -363,12 +380,13 @@ def get_server(id: Optional[builtins.int] = None,
|
|
363
380
|
status=pulumi.get(__ret__, 'status'),
|
364
381
|
with_selector=pulumi.get(__ret__, 'with_selector'),
|
365
382
|
with_statuses=pulumi.get(__ret__, 'with_statuses'))
|
366
|
-
def get_server_output(id: Optional[pulumi.Input[Optional[
|
367
|
-
name: Optional[pulumi.Input[Optional[
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
383
|
+
def get_server_output(id: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
384
|
+
name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
385
|
+
networks: Optional[pulumi.Input[Optional[Sequence[Union['GetServerNetworkArgs', 'GetServerNetworkArgsDict']]]]] = None,
|
386
|
+
placement_group_id: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
387
|
+
selector: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
388
|
+
with_selector: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
389
|
+
with_statuses: Optional[pulumi.Input[Optional[Sequence[_builtins.str]]]] = None,
|
372
390
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServerResult]:
|
373
391
|
"""
|
374
392
|
## Example Usage
|
@@ -383,15 +401,17 @@ def get_server_output(id: Optional[pulumi.Input[Optional[builtins.int]]] = None,
|
|
383
401
|
```
|
384
402
|
|
385
403
|
|
386
|
-
:param
|
387
|
-
:param
|
388
|
-
:param
|
389
|
-
:param
|
390
|
-
:param
|
404
|
+
:param _builtins.int id: ID of the server.
|
405
|
+
:param _builtins.str name: Name of the server.
|
406
|
+
:param Sequence[Union['GetServerNetworkArgs', 'GetServerNetworkArgsDict']] networks: (map) Private Network the server is attached to.
|
407
|
+
:param _builtins.int placement_group_id: (Optional, string) Placement Group ID the server is assigned to.
|
408
|
+
: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).
|
409
|
+
:param Sequence[_builtins.str] with_statuses: List only servers with the specified status, could contain `initializing`, `starting`, `running`, `stopping`, `off`, `deleting`, `rebuilding`, `migrating`, `unknown`.
|
391
410
|
"""
|
392
411
|
__args__ = dict()
|
393
412
|
__args__['id'] = id
|
394
413
|
__args__['name'] = name
|
414
|
+
__args__['networks'] = networks
|
395
415
|
__args__['placementGroupId'] = placement_group_id
|
396
416
|
__args__['selector'] = selector
|
397
417
|
__args__['withSelector'] = with_selector
|
@@ -413,6 +433,7 @@ def get_server_output(id: Optional[pulumi.Input[Optional[builtins.int]]] = None,
|
|
413
433
|
labels=pulumi.get(__response__, 'labels'),
|
414
434
|
location=pulumi.get(__response__, 'location'),
|
415
435
|
name=pulumi.get(__response__, 'name'),
|
436
|
+
networks=pulumi.get(__response__, 'networks'),
|
416
437
|
placement_group_id=pulumi.get(__response__, 'placement_group_id'),
|
417
438
|
primary_disk_size=pulumi.get(__response__, 'primary_disk_size'),
|
418
439
|
rebuild_protection=pulumi.get(__response__, 'rebuild_protection'),
|
pulumi_hcloud/get_server_type.py
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by
|
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
|
@@ -68,103 +67,103 @@ class GetServerTypeResult:
|
|
68
67
|
raise TypeError("Expected argument 'unavailable_after' to be a str")
|
69
68
|
pulumi.set(__self__, "unavailable_after", unavailable_after)
|
70
69
|
|
71
|
-
@property
|
70
|
+
@_builtins.property
|
72
71
|
@pulumi.getter
|
73
|
-
def architecture(self) ->
|
72
|
+
def architecture(self) -> _builtins.str:
|
74
73
|
"""
|
75
74
|
Architecture of the cpu for a Server of this type.
|
76
75
|
"""
|
77
76
|
return pulumi.get(self, "architecture")
|
78
77
|
|
79
|
-
@property
|
78
|
+
@_builtins.property
|
80
79
|
@pulumi.getter
|
81
|
-
def cores(self) ->
|
80
|
+
def cores(self) -> _builtins.int:
|
82
81
|
"""
|
83
82
|
Number of cpu cores for a Server of this type.
|
84
83
|
"""
|
85
84
|
return pulumi.get(self, "cores")
|
86
85
|
|
87
|
-
@property
|
86
|
+
@_builtins.property
|
88
87
|
@pulumi.getter(name="cpuType")
|
89
|
-
def cpu_type(self) ->
|
88
|
+
def cpu_type(self) -> _builtins.str:
|
90
89
|
"""
|
91
90
|
Type of cpu for a Server of this type.
|
92
91
|
"""
|
93
92
|
return pulumi.get(self, "cpu_type")
|
94
93
|
|
95
|
-
@property
|
94
|
+
@_builtins.property
|
96
95
|
@pulumi.getter(name="deprecationAnnounced")
|
97
|
-
def deprecation_announced(self) ->
|
96
|
+
def deprecation_announced(self) -> _builtins.str:
|
98
97
|
"""
|
99
98
|
Date of the Server Type deprecation announcement.
|
100
99
|
"""
|
101
100
|
return pulumi.get(self, "deprecation_announced")
|
102
101
|
|
103
|
-
@property
|
102
|
+
@_builtins.property
|
104
103
|
@pulumi.getter
|
105
|
-
def description(self) ->
|
104
|
+
def description(self) -> _builtins.str:
|
106
105
|
"""
|
107
106
|
Description of the Server Type.
|
108
107
|
"""
|
109
108
|
return pulumi.get(self, "description")
|
110
109
|
|
111
|
-
@property
|
110
|
+
@_builtins.property
|
112
111
|
@pulumi.getter
|
113
|
-
def disk(self) ->
|
112
|
+
def disk(self) -> _builtins.int:
|
114
113
|
"""
|
115
114
|
Disk size in GB for a Server of this type.
|
116
115
|
"""
|
117
116
|
return pulumi.get(self, "disk")
|
118
117
|
|
119
|
-
@property
|
118
|
+
@_builtins.property
|
120
119
|
@pulumi.getter
|
121
|
-
def id(self) -> Optional[
|
120
|
+
def id(self) -> Optional[_builtins.int]:
|
122
121
|
"""
|
123
122
|
ID of the Server Type.
|
124
123
|
"""
|
125
124
|
return pulumi.get(self, "id")
|
126
125
|
|
127
|
-
@property
|
126
|
+
@_builtins.property
|
128
127
|
@pulumi.getter(name="includedTraffic")
|
129
128
|
@_utilities.deprecated("""The field is deprecated and will always report 0 after 2024-08-05.""")
|
130
|
-
def included_traffic(self) ->
|
129
|
+
def included_traffic(self) -> _builtins.int:
|
131
130
|
return pulumi.get(self, "included_traffic")
|
132
131
|
|
133
|
-
@property
|
132
|
+
@_builtins.property
|
134
133
|
@pulumi.getter(name="isDeprecated")
|
135
|
-
def is_deprecated(self) ->
|
134
|
+
def is_deprecated(self) -> _builtins.bool:
|
136
135
|
"""
|
137
136
|
Whether the Server Type is deprecated.
|
138
137
|
"""
|
139
138
|
return pulumi.get(self, "is_deprecated")
|
140
139
|
|
141
|
-
@property
|
140
|
+
@_builtins.property
|
142
141
|
@pulumi.getter
|
143
|
-
def memory(self) ->
|
142
|
+
def memory(self) -> _builtins.int:
|
144
143
|
"""
|
145
144
|
Memory in GB for a Server of this type.
|
146
145
|
"""
|
147
146
|
return pulumi.get(self, "memory")
|
148
147
|
|
149
|
-
@property
|
148
|
+
@_builtins.property
|
150
149
|
@pulumi.getter
|
151
|
-
def name(self) -> Optional[
|
150
|
+
def name(self) -> Optional[_builtins.str]:
|
152
151
|
"""
|
153
152
|
Name of the Server Type.
|
154
153
|
"""
|
155
154
|
return pulumi.get(self, "name")
|
156
155
|
|
157
|
-
@property
|
156
|
+
@_builtins.property
|
158
157
|
@pulumi.getter(name="storageType")
|
159
|
-
def storage_type(self) ->
|
158
|
+
def storage_type(self) -> _builtins.str:
|
160
159
|
"""
|
161
160
|
Type of boot drive for a Server of this type.
|
162
161
|
"""
|
163
162
|
return pulumi.get(self, "storage_type")
|
164
163
|
|
165
|
-
@property
|
164
|
+
@_builtins.property
|
166
165
|
@pulumi.getter(name="unavailableAfter")
|
167
|
-
def unavailable_after(self) ->
|
166
|
+
def unavailable_after(self) -> _builtins.str:
|
168
167
|
"""
|
169
168
|
Date of the Server Type removal. After this date, the Server Type cannot be used anymore.
|
170
169
|
"""
|
@@ -192,8 +191,8 @@ class AwaitableGetServerTypeResult(GetServerTypeResult):
|
|
192
191
|
unavailable_after=self.unavailable_after)
|
193
192
|
|
194
193
|
|
195
|
-
def get_server_type(id: Optional[
|
196
|
-
name: Optional[
|
194
|
+
def get_server_type(id: Optional[_builtins.int] = None,
|
195
|
+
name: Optional[_builtins.str] = None,
|
197
196
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServerTypeResult:
|
198
197
|
"""
|
199
198
|
Provides details about a specific Hetzner Cloud Server Type.
|
@@ -216,8 +215,8 @@ def get_server_type(id: Optional[builtins.int] = None,
|
|
216
215
|
```
|
217
216
|
|
218
217
|
|
219
|
-
:param
|
220
|
-
:param
|
218
|
+
:param _builtins.int id: ID of the Server Type.
|
219
|
+
:param _builtins.str name: Name of the Server Type.
|
221
220
|
"""
|
222
221
|
__args__ = dict()
|
223
222
|
__args__['id'] = id
|
@@ -239,8 +238,8 @@ def get_server_type(id: Optional[builtins.int] = None,
|
|
239
238
|
name=pulumi.get(__ret__, 'name'),
|
240
239
|
storage_type=pulumi.get(__ret__, 'storage_type'),
|
241
240
|
unavailable_after=pulumi.get(__ret__, 'unavailable_after'))
|
242
|
-
def get_server_type_output(id: Optional[pulumi.Input[Optional[
|
243
|
-
name: Optional[pulumi.Input[Optional[
|
241
|
+
def get_server_type_output(id: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
242
|
+
name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
244
243
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServerTypeResult]:
|
245
244
|
"""
|
246
245
|
Provides details about a specific Hetzner Cloud Server Type.
|
@@ -263,8 +262,8 @@ def get_server_type_output(id: Optional[pulumi.Input[Optional[builtins.int]]] =
|
|
263
262
|
```
|
264
263
|
|
265
264
|
|
266
|
-
:param
|
267
|
-
:param
|
265
|
+
:param _builtins.int id: ID of the Server Type.
|
266
|
+
:param _builtins.str name: Name of the Server Type.
|
268
267
|
"""
|
269
268
|
__args__ = dict()
|
270
269
|
__args__['id'] = id
|
@@ -1,9 +1,8 @@
|
|
1
1
|
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by
|
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
|
@@ -45,33 +44,33 @@ class GetServerTypesResult:
|
|
45
44
|
raise TypeError("Expected argument 'server_types' to be a list")
|
46
45
|
pulumi.set(__self__, "server_types", server_types)
|
47
46
|
|
48
|
-
@property
|
47
|
+
@_builtins.property
|
49
48
|
@pulumi.getter
|
50
49
|
@_utilities.deprecated("""Use server_types list instead""")
|
51
|
-
def descriptions(self) -> Sequence[
|
50
|
+
def descriptions(self) -> Sequence[_builtins.str]:
|
52
51
|
return pulumi.get(self, "descriptions")
|
53
52
|
|
54
|
-
@property
|
53
|
+
@_builtins.property
|
55
54
|
@pulumi.getter
|
56
|
-
def id(self) ->
|
55
|
+
def id(self) -> _builtins.str:
|
57
56
|
"""
|
58
57
|
The ID of this resource.
|
59
58
|
"""
|
60
59
|
return pulumi.get(self, "id")
|
61
60
|
|
62
|
-
@property
|
61
|
+
@_builtins.property
|
63
62
|
@pulumi.getter
|
64
63
|
@_utilities.deprecated("""Use server_types list instead""")
|
65
|
-
def names(self) -> Sequence[
|
64
|
+
def names(self) -> Sequence[_builtins.str]:
|
66
65
|
return pulumi.get(self, "names")
|
67
66
|
|
68
|
-
@property
|
67
|
+
@_builtins.property
|
69
68
|
@pulumi.getter(name="serverTypeIds")
|
70
69
|
@_utilities.deprecated("""Use server_types list instead""")
|
71
|
-
def server_type_ids(self) -> Sequence[
|
70
|
+
def server_type_ids(self) -> Sequence[_builtins.str]:
|
72
71
|
return pulumi.get(self, "server_type_ids")
|
73
72
|
|
74
|
-
@property
|
73
|
+
@_builtins.property
|
75
74
|
@pulumi.getter(name="serverTypes")
|
76
75
|
def server_types(self) -> Sequence['outputs.GetServerTypesServerTypeResult']:
|
77
76
|
return pulumi.get(self, "server_types")
|