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.
Files changed (67) hide show
  1. pulumi_hcloud/__init__.py +2 -2
  2. pulumi_hcloud/_inputs.py +348 -259
  3. pulumi_hcloud/_utilities.py +1 -1
  4. pulumi_hcloud/certificate.py +96 -97
  5. pulumi_hcloud/config/__init__.py +2 -2
  6. pulumi_hcloud/config/__init__.pyi +2 -3
  7. pulumi_hcloud/config/vars.py +6 -7
  8. pulumi_hcloud/firewall.py +42 -43
  9. pulumi_hcloud/firewall_attachment.py +53 -54
  10. pulumi_hcloud/floating_ip.py +139 -140
  11. pulumi_hcloud/floating_ip_assignment.py +36 -37
  12. pulumi_hcloud/get_certificate.py +36 -37
  13. pulumi_hcloud/get_certificates.py +11 -12
  14. pulumi_hcloud/get_datacenter.py +22 -23
  15. pulumi_hcloud/get_datacenters.py +11 -12
  16. pulumi_hcloud/get_firewall.py +34 -35
  17. pulumi_hcloud/get_firewalls.py +17 -18
  18. pulumi_hcloud/get_floating_ip.py +44 -45
  19. pulumi_hcloud/get_floating_ips.py +11 -12
  20. pulumi_hcloud/get_image.py +78 -75
  21. pulumi_hcloud/get_images.py +45 -40
  22. pulumi_hcloud/get_load_balancer.py +41 -42
  23. pulumi_hcloud/get_load_balancer_type.py +24 -25
  24. pulumi_hcloud/get_load_balancer_types.py +5 -6
  25. pulumi_hcloud/get_load_balancers.py +11 -12
  26. pulumi_hcloud/get_location.py +26 -27
  27. pulumi_hcloud/get_locations.py +11 -12
  28. pulumi_hcloud/get_network.py +38 -39
  29. pulumi_hcloud/get_networks.py +11 -12
  30. pulumi_hcloud/get_placement_group.py +40 -41
  31. pulumi_hcloud/get_placement_groups.py +17 -18
  32. pulumi_hcloud/get_primary_ip.py +46 -47
  33. pulumi_hcloud/get_primary_ips.py +11 -12
  34. pulumi_hcloud/get_server.py +93 -72
  35. pulumi_hcloud/get_server_type.py +36 -37
  36. pulumi_hcloud/get_server_types.py +11 -12
  37. pulumi_hcloud/get_servers.py +17 -18
  38. pulumi_hcloud/get_ssh_key.py +36 -37
  39. pulumi_hcloud/get_ssh_keys.py +15 -16
  40. pulumi_hcloud/get_volume.py +50 -51
  41. pulumi_hcloud/get_volumes.py +17 -18
  42. pulumi_hcloud/load_balancer.py +146 -147
  43. pulumi_hcloud/load_balancer_network.py +87 -88
  44. pulumi_hcloud/load_balancer_service.py +93 -94
  45. pulumi_hcloud/load_balancer_target.py +104 -105
  46. pulumi_hcloud/managed_certificate.py +105 -106
  47. pulumi_hcloud/network.py +87 -88
  48. pulumi_hcloud/network_route.py +53 -54
  49. pulumi_hcloud/network_subnet.py +94 -95
  50. pulumi_hcloud/outputs.py +913 -820
  51. pulumi_hcloud/placement_group.py +60 -61
  52. pulumi_hcloud/primary_ip.py +156 -157
  53. pulumi_hcloud/provider.py +43 -44
  54. pulumi_hcloud/pulumi-plugin.json +1 -1
  55. pulumi_hcloud/rdns.py +104 -105
  56. pulumi_hcloud/server.py +381 -382
  57. pulumi_hcloud/server_network.py +94 -95
  58. pulumi_hcloud/snapshot.py +53 -54
  59. pulumi_hcloud/ssh_key.py +62 -63
  60. pulumi_hcloud/uploaded_certificate.py +122 -123
  61. pulumi_hcloud/volume.py +147 -148
  62. pulumi_hcloud/volume_attachment.py +53 -54
  63. {pulumi_hcloud-1.23.0a1747375245.dist-info → pulumi_hcloud-1.23.1a1753397873.dist-info}/METADATA +1 -1
  64. pulumi_hcloud-1.23.1a1753397873.dist-info/RECORD +67 -0
  65. {pulumi_hcloud-1.23.0a1747375245.dist-info → pulumi_hcloud-1.23.1a1753397873.dist-info}/WHEEL +1 -1
  66. pulumi_hcloud-1.23.0a1747375245.dist-info/RECORD +0 -67
  67. {pulumi_hcloud-1.23.0a1747375245.dist-info → pulumi_hcloud-1.23.1a1753397873.dist-info}/top_level.txt +0 -0
@@ -1,9 +1,8 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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
@@ -80,120 +79,120 @@ class GetImageResult:
80
79
  raise TypeError("Expected argument 'with_statuses' to be a list")
81
80
  pulumi.set(__self__, "with_statuses", with_statuses)
82
81
 
83
- @property
82
+ @_builtins.property
84
83
  @pulumi.getter
85
- def architecture(self) -> builtins.str:
84
+ def architecture(self) -> _builtins.str:
86
85
  """
87
86
  (string) Architecture of the Image.
88
87
  """
89
88
  return pulumi.get(self, "architecture")
90
89
 
91
- @property
90
+ @_builtins.property
92
91
  @pulumi.getter
93
- def created(self) -> builtins.str:
92
+ def created(self) -> _builtins.str:
94
93
  """
95
94
  (string) Date when the Image was created (in ISO-8601 format).
96
95
  """
97
96
  return pulumi.get(self, "created")
98
97
 
99
- @property
98
+ @_builtins.property
100
99
  @pulumi.getter
101
- def deprecated(self) -> builtins.str:
100
+ def deprecated(self) -> _builtins.str:
102
101
  """
103
102
  (string) Point in time when the image is considered to be deprecated (in ISO-8601 format).
104
103
  """
105
104
  return pulumi.get(self, "deprecated")
106
105
 
107
- @property
106
+ @_builtins.property
108
107
  @pulumi.getter
109
- def description(self) -> builtins.str:
108
+ def description(self) -> _builtins.str:
110
109
  """
111
110
  (string) Description of the Image.
112
111
  """
113
112
  return pulumi.get(self, "description")
114
113
 
115
- @property
114
+ @_builtins.property
116
115
  @pulumi.getter
117
- def id(self) -> builtins.int:
116
+ def id(self) -> _builtins.int:
118
117
  """
119
118
  (int) Unique ID of the Image.
120
119
  """
121
120
  return pulumi.get(self, "id")
122
121
 
123
- @property
122
+ @_builtins.property
124
123
  @pulumi.getter(name="includeDeprecated")
125
- def include_deprecated(self) -> Optional[builtins.bool]:
124
+ def include_deprecated(self) -> Optional[_builtins.bool]:
126
125
  return pulumi.get(self, "include_deprecated")
127
126
 
128
- @property
127
+ @_builtins.property
129
128
  @pulumi.getter
130
- def labels(self) -> Mapping[str, builtins.str]:
129
+ def labels(self) -> Mapping[str, _builtins.str]:
131
130
  return pulumi.get(self, "labels")
132
131
 
133
- @property
132
+ @_builtins.property
134
133
  @pulumi.getter(name="mostRecent")
135
- def most_recent(self) -> Optional[builtins.bool]:
134
+ def most_recent(self) -> Optional[_builtins.bool]:
136
135
  return pulumi.get(self, "most_recent")
137
136
 
138
- @property
137
+ @_builtins.property
139
138
  @pulumi.getter
140
- def name(self) -> builtins.str:
139
+ def name(self) -> _builtins.str:
141
140
  """
142
141
  (string) Name of the Image, only present when the Image is of type `system`.
143
142
  """
144
143
  return pulumi.get(self, "name")
145
144
 
146
- @property
145
+ @_builtins.property
147
146
  @pulumi.getter(name="osFlavor")
148
- def os_flavor(self) -> builtins.str:
147
+ def os_flavor(self) -> _builtins.str:
149
148
  """
150
149
  (string) Flavor of operating system contained in the image, could be `ubuntu`, `centos`, `debian`, `fedora` or `unknown`.
151
150
  """
152
151
  return pulumi.get(self, "os_flavor")
153
152
 
154
- @property
153
+ @_builtins.property
155
154
  @pulumi.getter(name="osVersion")
156
- def os_version(self) -> builtins.str:
155
+ def os_version(self) -> _builtins.str:
157
156
  """
158
157
  (string) Operating system version.
159
158
  """
160
159
  return pulumi.get(self, "os_version")
161
160
 
162
- @property
161
+ @_builtins.property
163
162
  @pulumi.getter(name="rapidDeploy")
164
- def rapid_deploy(self) -> builtins.bool:
163
+ def rapid_deploy(self) -> _builtins.bool:
165
164
  """
166
165
  (bool) Indicates that rapid deploy of the image is available.
167
166
  """
168
167
  return pulumi.get(self, "rapid_deploy")
169
168
 
170
- @property
169
+ @_builtins.property
171
170
  @pulumi.getter
172
171
  @_utilities.deprecated("""Please use the with_selector property instead.""")
173
- def selector(self) -> Optional[builtins.str]:
172
+ def selector(self) -> Optional[_builtins.str]:
174
173
  return pulumi.get(self, "selector")
175
174
 
176
- @property
175
+ @_builtins.property
177
176
  @pulumi.getter
178
- def type(self) -> builtins.str:
177
+ def type(self) -> _builtins.str:
179
178
  """
180
179
  (string) Type of the Image, could be `system`, `backup` or `snapshot`.
181
180
  """
182
181
  return pulumi.get(self, "type")
183
182
 
184
- @property
183
+ @_builtins.property
185
184
  @pulumi.getter(name="withArchitecture")
186
- def with_architecture(self) -> Optional[builtins.str]:
185
+ def with_architecture(self) -> Optional[_builtins.str]:
187
186
  return pulumi.get(self, "with_architecture")
188
187
 
189
- @property
188
+ @_builtins.property
190
189
  @pulumi.getter(name="withSelector")
191
- def with_selector(self) -> Optional[builtins.str]:
190
+ def with_selector(self) -> Optional[_builtins.str]:
192
191
  return pulumi.get(self, "with_selector")
193
192
 
194
- @property
193
+ @_builtins.property
195
194
  @pulumi.getter(name="withStatuses")
196
- def with_statuses(self) -> Optional[Sequence[builtins.str]]:
195
+ def with_statuses(self) -> Optional[Sequence[_builtins.str]]:
197
196
  return pulumi.get(self, "with_statuses")
198
197
 
199
198
 
@@ -222,14 +221,14 @@ class AwaitableGetImageResult(GetImageResult):
222
221
  with_statuses=self.with_statuses)
223
222
 
224
223
 
225
- def get_image(id: Optional[builtins.int] = None,
226
- include_deprecated: Optional[builtins.bool] = None,
227
- most_recent: Optional[builtins.bool] = None,
228
- name: Optional[builtins.str] = None,
229
- selector: Optional[builtins.str] = None,
230
- with_architecture: Optional[builtins.str] = None,
231
- with_selector: Optional[builtins.str] = None,
232
- with_statuses: Optional[Sequence[builtins.str]] = None,
224
+ def get_image(id: Optional[_builtins.int] = None,
225
+ include_deprecated: Optional[_builtins.bool] = None,
226
+ most_recent: Optional[_builtins.bool] = None,
227
+ name: Optional[_builtins.str] = None,
228
+ selector: Optional[_builtins.str] = None,
229
+ with_architecture: Optional[_builtins.str] = None,
230
+ with_selector: Optional[_builtins.str] = None,
231
+ with_statuses: Optional[Sequence[_builtins.str]] = None,
233
232
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetImageResult:
234
233
  """
235
234
  ## Example Usage
@@ -238,21 +237,23 @@ def get_image(id: Optional[builtins.int] = None,
238
237
  import pulumi
239
238
  import pulumi_hcloud as hcloud
240
239
 
241
- image1 = hcloud.get_image(id=1234)
242
- image2 = hcloud.get_image(name="ubuntu-18.04",
240
+ by_id = hcloud.get_image(id=114690387)
241
+ by_name_x86 = hcloud.get_image(name="debian-12",
243
242
  with_architecture="x86")
244
- image3 = hcloud.get_image(with_selector="key=value")
245
- main = hcloud.Server("main", image=image1.id)
243
+ by_name_arm = hcloud.get_image(name="debian-12",
244
+ with_architecture="arm")
245
+ by_label = hcloud.get_image(with_selector="key=value")
246
+ main = hcloud.Server("main", image=by_name["id"])
246
247
  ```
247
248
 
248
249
 
249
- :param builtins.int id: ID of the Image.
250
- :param builtins.bool include_deprecated: Also return the image if it is marked as deprecated.
251
- :param builtins.bool most_recent: If more than one result is returned, use the most recent Image.
252
- :param builtins.str name: Name of the Image.
253
- :param builtins.str with_architecture: Select only images with this architecture, could be `x86` (default) or `arm`.
254
- :param builtins.str with_selector: [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
255
- :param Sequence[builtins.str] with_statuses: Select only images with the specified status, could contain `creating` or `available`.
250
+ :param _builtins.int id: ID of the Image.
251
+ :param _builtins.bool include_deprecated: Also return the image if it is marked as deprecated.
252
+ :param _builtins.bool most_recent: If more than one result is returned, use the most recent Image.
253
+ :param _builtins.str name: Name of the Image.
254
+ :param _builtins.str with_architecture: Select only images with this architecture, could be `x86` (default) or `arm`.
255
+ :param _builtins.str with_selector: [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
256
+ :param Sequence[_builtins.str] with_statuses: Select only images with the specified status, could contain `creating` or `available`.
256
257
  """
257
258
  __args__ = dict()
258
259
  __args__['id'] = id
@@ -284,14 +285,14 @@ def get_image(id: Optional[builtins.int] = None,
284
285
  with_architecture=pulumi.get(__ret__, 'with_architecture'),
285
286
  with_selector=pulumi.get(__ret__, 'with_selector'),
286
287
  with_statuses=pulumi.get(__ret__, 'with_statuses'))
287
- def get_image_output(id: Optional[pulumi.Input[Optional[builtins.int]]] = None,
288
- include_deprecated: Optional[pulumi.Input[Optional[builtins.bool]]] = None,
289
- most_recent: Optional[pulumi.Input[Optional[builtins.bool]]] = None,
290
- name: Optional[pulumi.Input[Optional[builtins.str]]] = None,
291
- selector: Optional[pulumi.Input[Optional[builtins.str]]] = None,
292
- with_architecture: Optional[pulumi.Input[Optional[builtins.str]]] = None,
293
- with_selector: Optional[pulumi.Input[Optional[builtins.str]]] = None,
294
- with_statuses: Optional[pulumi.Input[Optional[Sequence[builtins.str]]]] = None,
288
+ def get_image_output(id: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
289
+ include_deprecated: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
290
+ most_recent: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
291
+ name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
292
+ selector: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
293
+ with_architecture: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
294
+ with_selector: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
295
+ with_statuses: Optional[pulumi.Input[Optional[Sequence[_builtins.str]]]] = None,
295
296
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetImageResult]:
296
297
  """
297
298
  ## Example Usage
@@ -300,21 +301,23 @@ def get_image_output(id: Optional[pulumi.Input[Optional[builtins.int]]] = None,
300
301
  import pulumi
301
302
  import pulumi_hcloud as hcloud
302
303
 
303
- image1 = hcloud.get_image(id=1234)
304
- image2 = hcloud.get_image(name="ubuntu-18.04",
304
+ by_id = hcloud.get_image(id=114690387)
305
+ by_name_x86 = hcloud.get_image(name="debian-12",
305
306
  with_architecture="x86")
306
- image3 = hcloud.get_image(with_selector="key=value")
307
- main = hcloud.Server("main", image=image1.id)
307
+ by_name_arm = hcloud.get_image(name="debian-12",
308
+ with_architecture="arm")
309
+ by_label = hcloud.get_image(with_selector="key=value")
310
+ main = hcloud.Server("main", image=by_name["id"])
308
311
  ```
309
312
 
310
313
 
311
- :param builtins.int id: ID of the Image.
312
- :param builtins.bool include_deprecated: Also return the image if it is marked as deprecated.
313
- :param builtins.bool most_recent: If more than one result is returned, use the most recent Image.
314
- :param builtins.str name: Name of the Image.
315
- :param builtins.str with_architecture: Select only images with this architecture, could be `x86` (default) or `arm`.
316
- :param builtins.str with_selector: [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
317
- :param Sequence[builtins.str] with_statuses: Select only images with the specified status, could contain `creating` or `available`.
314
+ :param _builtins.int id: ID of the Image.
315
+ :param _builtins.bool include_deprecated: Also return the image if it is marked as deprecated.
316
+ :param _builtins.bool most_recent: If more than one result is returned, use the most recent Image.
317
+ :param _builtins.str name: Name of the Image.
318
+ :param _builtins.str with_architecture: Select only images with this architecture, could be `x86` (default) or `arm`.
319
+ :param _builtins.str with_selector: [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
320
+ :param Sequence[_builtins.str] with_statuses: Select only images with the specified status, could contain `creating` or `available`.
318
321
  """
319
322
  __args__ = dict()
320
323
  __args__['id'] = id
@@ -1,9 +1,8 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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
@@ -51,15 +50,15 @@ class GetImagesResult:
51
50
  raise TypeError("Expected argument 'with_statuses' to be a list")
52
51
  pulumi.set(__self__, "with_statuses", with_statuses)
53
52
 
54
- @property
53
+ @_builtins.property
55
54
  @pulumi.getter
56
- def id(self) -> builtins.str:
55
+ def id(self) -> _builtins.str:
57
56
  """
58
57
  The provider-assigned unique ID for this managed resource.
59
58
  """
60
59
  return pulumi.get(self, "id")
61
60
 
62
- @property
61
+ @_builtins.property
63
62
  @pulumi.getter
64
63
  def images(self) -> Sequence['outputs.GetImagesImageResult']:
65
64
  """
@@ -67,29 +66,29 @@ class GetImagesResult:
67
66
  """
68
67
  return pulumi.get(self, "images")
69
68
 
70
- @property
69
+ @_builtins.property
71
70
  @pulumi.getter(name="includeDeprecated")
72
- def include_deprecated(self) -> Optional[builtins.bool]:
71
+ def include_deprecated(self) -> Optional[_builtins.bool]:
73
72
  return pulumi.get(self, "include_deprecated")
74
73
 
75
- @property
74
+ @_builtins.property
76
75
  @pulumi.getter(name="mostRecent")
77
- def most_recent(self) -> Optional[builtins.bool]:
76
+ def most_recent(self) -> Optional[_builtins.bool]:
78
77
  return pulumi.get(self, "most_recent")
79
78
 
80
- @property
79
+ @_builtins.property
81
80
  @pulumi.getter(name="withArchitectures")
82
- def with_architectures(self) -> Optional[Sequence[builtins.str]]:
81
+ def with_architectures(self) -> Optional[Sequence[_builtins.str]]:
83
82
  return pulumi.get(self, "with_architectures")
84
83
 
85
- @property
84
+ @_builtins.property
86
85
  @pulumi.getter(name="withSelector")
87
- def with_selector(self) -> Optional[builtins.str]:
86
+ def with_selector(self) -> Optional[_builtins.str]:
88
87
  return pulumi.get(self, "with_selector")
89
88
 
90
- @property
89
+ @_builtins.property
91
90
  @pulumi.getter(name="withStatuses")
92
- def with_statuses(self) -> Optional[Sequence[builtins.str]]:
91
+ def with_statuses(self) -> Optional[Sequence[_builtins.str]]:
93
92
  return pulumi.get(self, "with_statuses")
94
93
 
95
94
 
@@ -108,31 +107,34 @@ class AwaitableGetImagesResult(GetImagesResult):
108
107
  with_statuses=self.with_statuses)
109
108
 
110
109
 
111
- def get_images(include_deprecated: Optional[builtins.bool] = None,
112
- most_recent: Optional[builtins.bool] = None,
113
- with_architectures: Optional[Sequence[builtins.str]] = None,
114
- with_selector: Optional[builtins.str] = None,
115
- with_statuses: Optional[Sequence[builtins.str]] = None,
110
+ def get_images(include_deprecated: Optional[_builtins.bool] = None,
111
+ most_recent: Optional[_builtins.bool] = None,
112
+ with_architectures: Optional[Sequence[_builtins.str]] = None,
113
+ with_selector: Optional[_builtins.str] = None,
114
+ with_statuses: Optional[Sequence[_builtins.str]] = None,
116
115
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetImagesResult:
117
116
  """
118
117
  Provides details about multiple Hetzner Cloud Images.
119
118
 
119
+ When relevant, it is recommended to always provide the image architecture
120
+ (`with_architecture`) when fetching images.
121
+
120
122
  ## Example Usage
121
123
 
122
124
  ```python
123
125
  import pulumi
124
126
  import pulumi_hcloud as hcloud
125
127
 
126
- image2 = hcloud.get_images(with_architectures=["x86"])
127
- image3 = hcloud.get_images(with_selector="key=value")
128
+ by_architecture = hcloud.get_images(with_architectures=["x86"])
129
+ by_label = hcloud.get_images(with_selector="key=value")
128
130
  ```
129
131
 
130
132
 
131
- :param builtins.bool include_deprecated: Also list images that are marked as deprecated.
132
- :param builtins.bool most_recent: Sorts list by date.
133
- :param Sequence[builtins.str] with_architectures: List only images with this architecture, could contain `x86` or `arm`.
134
- :param builtins.str with_selector: [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
135
- :param Sequence[builtins.str] with_statuses: List only images with the specified status, could contain `creating` or `available`.
133
+ :param _builtins.bool include_deprecated: Also list images that are marked as deprecated.
134
+ :param _builtins.bool most_recent: Sorts list by date.
135
+ :param Sequence[_builtins.str] with_architectures: List only images with this architecture, could contain `x86` or `arm`.
136
+ :param _builtins.str with_selector: [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
137
+ :param Sequence[_builtins.str] with_statuses: List only images with the specified status, could contain `creating` or `available`.
136
138
  """
137
139
  __args__ = dict()
138
140
  __args__['includeDeprecated'] = include_deprecated
@@ -151,31 +153,34 @@ def get_images(include_deprecated: Optional[builtins.bool] = None,
151
153
  with_architectures=pulumi.get(__ret__, 'with_architectures'),
152
154
  with_selector=pulumi.get(__ret__, 'with_selector'),
153
155
  with_statuses=pulumi.get(__ret__, 'with_statuses'))
154
- def get_images_output(include_deprecated: Optional[pulumi.Input[Optional[builtins.bool]]] = None,
155
- most_recent: Optional[pulumi.Input[Optional[builtins.bool]]] = None,
156
- with_architectures: Optional[pulumi.Input[Optional[Sequence[builtins.str]]]] = None,
157
- with_selector: Optional[pulumi.Input[Optional[builtins.str]]] = None,
158
- with_statuses: Optional[pulumi.Input[Optional[Sequence[builtins.str]]]] = None,
156
+ def get_images_output(include_deprecated: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
157
+ most_recent: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
158
+ with_architectures: Optional[pulumi.Input[Optional[Sequence[_builtins.str]]]] = None,
159
+ with_selector: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
160
+ with_statuses: Optional[pulumi.Input[Optional[Sequence[_builtins.str]]]] = None,
159
161
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetImagesResult]:
160
162
  """
161
163
  Provides details about multiple Hetzner Cloud Images.
162
164
 
165
+ When relevant, it is recommended to always provide the image architecture
166
+ (`with_architecture`) when fetching images.
167
+
163
168
  ## Example Usage
164
169
 
165
170
  ```python
166
171
  import pulumi
167
172
  import pulumi_hcloud as hcloud
168
173
 
169
- image2 = hcloud.get_images(with_architectures=["x86"])
170
- image3 = hcloud.get_images(with_selector="key=value")
174
+ by_architecture = hcloud.get_images(with_architectures=["x86"])
175
+ by_label = hcloud.get_images(with_selector="key=value")
171
176
  ```
172
177
 
173
178
 
174
- :param builtins.bool include_deprecated: Also list images that are marked as deprecated.
175
- :param builtins.bool most_recent: Sorts list by date.
176
- :param Sequence[builtins.str] with_architectures: List only images with this architecture, could contain `x86` or `arm`.
177
- :param builtins.str with_selector: [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
178
- :param Sequence[builtins.str] with_statuses: List only images with the specified status, could contain `creating` or `available`.
179
+ :param _builtins.bool include_deprecated: Also list images that are marked as deprecated.
180
+ :param _builtins.bool most_recent: Sorts list by date.
181
+ :param Sequence[_builtins.str] with_architectures: List only images with this architecture, could contain `x86` or `arm`.
182
+ :param _builtins.str with_selector: [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
183
+ :param Sequence[_builtins.str] with_statuses: List only images with the specified status, could contain `creating` or `available`.
179
184
  """
180
185
  __args__ = dict()
181
186
  __args__['includeDeprecated'] = include_deprecated
@@ -1,9 +1,8 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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
@@ -75,7 +74,7 @@ class GetLoadBalancerResult:
75
74
  raise TypeError("Expected argument 'with_selector' to be a str")
76
75
  pulumi.set(__self__, "with_selector", with_selector)
77
76
 
78
- @property
77
+ @_builtins.property
79
78
  @pulumi.getter
80
79
  def algorithms(self) -> Sequence['outputs.GetLoadBalancerAlgorithmResult']:
81
80
  """
@@ -83,92 +82,92 @@ class GetLoadBalancerResult:
83
82
  """
84
83
  return pulumi.get(self, "algorithms")
85
84
 
86
- @property
85
+ @_builtins.property
87
86
  @pulumi.getter(name="deleteProtection")
88
- def delete_protection(self) -> builtins.bool:
87
+ def delete_protection(self) -> _builtins.bool:
89
88
  """
90
89
  (bool) Whether delete protection is enabled.
91
90
  """
92
91
  return pulumi.get(self, "delete_protection")
93
92
 
94
- @property
93
+ @_builtins.property
95
94
  @pulumi.getter
96
- def id(self) -> builtins.int:
95
+ def id(self) -> _builtins.int:
97
96
  """
98
97
  (int) Unique ID of the Load Balancer.
99
98
  """
100
99
  return pulumi.get(self, "id")
101
100
 
102
- @property
101
+ @_builtins.property
103
102
  @pulumi.getter
104
- def ipv4(self) -> builtins.str:
103
+ def ipv4(self) -> _builtins.str:
105
104
  """
106
105
  (string) IPv4 Address of the Load Balancer.
107
106
  """
108
107
  return pulumi.get(self, "ipv4")
109
108
 
110
- @property
109
+ @_builtins.property
111
110
  @pulumi.getter
112
- def ipv6(self) -> builtins.str:
111
+ def ipv6(self) -> _builtins.str:
113
112
  """
114
113
  (string) IPv4 Address of the Load Balancer.
115
114
  """
116
115
  return pulumi.get(self, "ipv6")
117
116
 
118
- @property
117
+ @_builtins.property
119
118
  @pulumi.getter
120
- def labels(self) -> Mapping[str, builtins.str]:
119
+ def labels(self) -> Mapping[str, _builtins.str]:
121
120
  """
122
121
  (map) User-defined labels (key-value pairs) .
123
122
  """
124
123
  return pulumi.get(self, "labels")
125
124
 
126
- @property
125
+ @_builtins.property
127
126
  @pulumi.getter(name="loadBalancerType")
128
- def load_balancer_type(self) -> builtins.str:
127
+ def load_balancer_type(self) -> _builtins.str:
129
128
  """
130
129
  (string) Name of the Type of the Load Balancer.
131
130
  """
132
131
  return pulumi.get(self, "load_balancer_type")
133
132
 
134
- @property
133
+ @_builtins.property
135
134
  @pulumi.getter
136
- def location(self) -> builtins.str:
135
+ def location(self) -> _builtins.str:
137
136
  """
138
137
  (string) Name of the location the Load Balancer is in. See the [Hetzner Docs](https://docs.hetzner.com/cloud/general/locations/#what-locations-are-there) for more details about locations.
139
138
  """
140
139
  return pulumi.get(self, "location")
141
140
 
142
- @property
141
+ @_builtins.property
143
142
  @pulumi.getter
144
- def name(self) -> Optional[builtins.str]:
143
+ def name(self) -> Optional[_builtins.str]:
145
144
  """
146
145
  (string) Name of the Load Balancer.
147
146
  """
148
147
  return pulumi.get(self, "name")
149
148
 
150
- @property
149
+ @_builtins.property
151
150
  @pulumi.getter(name="networkId")
152
- def network_id(self) -> builtins.int:
151
+ def network_id(self) -> _builtins.int:
153
152
  """
154
153
  (int) ID of the first private network that this Load Balancer is connected to.
155
154
  """
156
155
  return pulumi.get(self, "network_id")
157
156
 
158
- @property
157
+ @_builtins.property
159
158
  @pulumi.getter(name="networkIp")
160
- def network_ip(self) -> builtins.str:
159
+ def network_ip(self) -> _builtins.str:
161
160
  """
162
161
  (string) IP of the Load Balancer in the first private network that it is connected to.
163
162
  """
164
163
  return pulumi.get(self, "network_ip")
165
164
 
166
- @property
165
+ @_builtins.property
167
166
  @pulumi.getter(name="networkZone")
168
- def network_zone(self) -> builtins.str:
167
+ def network_zone(self) -> _builtins.str:
169
168
  return pulumi.get(self, "network_zone")
170
169
 
171
- @property
170
+ @_builtins.property
172
171
  @pulumi.getter
173
172
  def services(self) -> Sequence['outputs.GetLoadBalancerServiceResult']:
174
173
  """
@@ -176,7 +175,7 @@ class GetLoadBalancerResult:
176
175
  """
177
176
  return pulumi.get(self, "services")
178
177
 
179
- @property
178
+ @_builtins.property
180
179
  @pulumi.getter
181
180
  def targets(self) -> Sequence['outputs.GetLoadBalancerTargetResult']:
182
181
  """
@@ -184,9 +183,9 @@ class GetLoadBalancerResult:
184
183
  """
185
184
  return pulumi.get(self, "targets")
186
185
 
187
- @property
186
+ @_builtins.property
188
187
  @pulumi.getter(name="withSelector")
189
- def with_selector(self) -> Optional[builtins.str]:
188
+ def with_selector(self) -> Optional[_builtins.str]:
190
189
  return pulumi.get(self, "with_selector")
191
190
 
192
191
 
@@ -213,9 +212,9 @@ class AwaitableGetLoadBalancerResult(GetLoadBalancerResult):
213
212
  with_selector=self.with_selector)
214
213
 
215
214
 
216
- def get_load_balancer(id: Optional[builtins.int] = None,
217
- name: Optional[builtins.str] = None,
218
- with_selector: Optional[builtins.str] = None,
215
+ def get_load_balancer(id: Optional[_builtins.int] = None,
216
+ name: Optional[_builtins.str] = None,
217
+ with_selector: Optional[_builtins.str] = None,
219
218
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetLoadBalancerResult:
220
219
  """
221
220
  Provides details about a specific Hetzner Cloud Load Balancer.
@@ -232,9 +231,9 @@ def get_load_balancer(id: Optional[builtins.int] = None,
232
231
  ```
233
232
 
234
233
 
235
- :param builtins.int id: ID of the Load Balancer.
236
- :param builtins.str name: Name of the Load Balancer.
237
- :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).
234
+ :param _builtins.int id: ID of the Load Balancer.
235
+ :param _builtins.str name: Name of the Load Balancer.
236
+ :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).
238
237
  """
239
238
  __args__ = dict()
240
239
  __args__['id'] = id
@@ -259,9 +258,9 @@ def get_load_balancer(id: Optional[builtins.int] = None,
259
258
  services=pulumi.get(__ret__, 'services'),
260
259
  targets=pulumi.get(__ret__, 'targets'),
261
260
  with_selector=pulumi.get(__ret__, 'with_selector'))
262
- def get_load_balancer_output(id: Optional[pulumi.Input[Optional[builtins.int]]] = None,
263
- name: Optional[pulumi.Input[Optional[builtins.str]]] = None,
264
- with_selector: Optional[pulumi.Input[Optional[builtins.str]]] = None,
261
+ def get_load_balancer_output(id: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
262
+ name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
263
+ with_selector: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
265
264
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetLoadBalancerResult]:
266
265
  """
267
266
  Provides details about a specific Hetzner Cloud Load Balancer.
@@ -278,9 +277,9 @@ def get_load_balancer_output(id: Optional[pulumi.Input[Optional[builtins.int]]]
278
277
  ```
279
278
 
280
279
 
281
- :param builtins.int id: ID of the Load Balancer.
282
- :param builtins.str name: Name of the Load Balancer.
283
- :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).
280
+ :param _builtins.int id: ID of the Load Balancer.
281
+ :param _builtins.str name: Name of the Load Balancer.
282
+ :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).
284
283
  """
285
284
  __args__ = dict()
286
285
  __args__['id'] = id