pulumi-hcloud 1.21.1__py3-none-any.whl → 1.22.0a1731650142__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 (38) hide show
  1. pulumi_hcloud/firewall.py +2 -2
  2. pulumi_hcloud/floating_ip.py +2 -2
  3. pulumi_hcloud/floating_ip_assignment.py +2 -2
  4. pulumi_hcloud/get_datacenter.py +18 -20
  5. pulumi_hcloud/get_datacenters.py +44 -11
  6. pulumi_hcloud/get_load_balancer_type.py +19 -21
  7. pulumi_hcloud/get_load_balancer_types.py +3 -3
  8. pulumi_hcloud/get_location.py +20 -22
  9. pulumi_hcloud/get_locations.py +44 -11
  10. pulumi_hcloud/get_server_type.py +37 -40
  11. pulumi_hcloud/get_server_types.py +25 -27
  12. pulumi_hcloud/get_ssh_key.py +33 -34
  13. pulumi_hcloud/get_ssh_keys.py +11 -16
  14. pulumi_hcloud/load_balancer.py +2 -2
  15. pulumi_hcloud/load_balancer_network.py +2 -2
  16. pulumi_hcloud/load_balancer_service.py +2 -2
  17. pulumi_hcloud/load_balancer_target.py +6 -6
  18. pulumi_hcloud/managed_certificate.py +6 -38
  19. pulumi_hcloud/network.py +2 -2
  20. pulumi_hcloud/network_route.py +2 -2
  21. pulumi_hcloud/network_subnet.py +2 -2
  22. pulumi_hcloud/outputs.py +8 -148
  23. pulumi_hcloud/placement_group.py +2 -2
  24. pulumi_hcloud/primary_ip.py +2 -2
  25. pulumi_hcloud/pulumi-plugin.json +1 -1
  26. pulumi_hcloud/rdns.py +0 -8
  27. pulumi_hcloud/server.py +2 -2
  28. pulumi_hcloud/server_network.py +2 -2
  29. pulumi_hcloud/snapshot.py +2 -2
  30. pulumi_hcloud/ssh_key.py +41 -35
  31. pulumi_hcloud/uploaded_certificate.py +6 -54
  32. pulumi_hcloud/volume.py +2 -2
  33. pulumi_hcloud/volume_attachment.py +2 -2
  34. {pulumi_hcloud-1.21.1.dist-info → pulumi_hcloud-1.22.0a1731650142.dist-info}/METADATA +5 -5
  35. pulumi_hcloud-1.22.0a1731650142.dist-info/RECORD +67 -0
  36. {pulumi_hcloud-1.21.1.dist-info → pulumi_hcloud-1.22.0a1731650142.dist-info}/WHEEL +1 -1
  37. pulumi_hcloud-1.21.1.dist-info/RECORD +0 -67
  38. {pulumi_hcloud-1.21.1.dist-info → pulumi_hcloud-1.22.0a1731650142.dist-info}/top_level.txt +0 -0
pulumi_hcloud/firewall.py CHANGED
@@ -214,7 +214,7 @@ class Firewall(pulumi.CustomResource):
214
214
  Firewalls can be imported using its `id`:
215
215
 
216
216
  ```sh
217
- $ pulumi import hcloud:index/firewall:Firewall example "$FIREWALL_ID"
217
+ $ pulumi import hcloud:index/firewall:Firewall myfirewall id
218
218
  ```
219
219
 
220
220
  :param str resource_name: The name of the resource.
@@ -272,7 +272,7 @@ class Firewall(pulumi.CustomResource):
272
272
  Firewalls can be imported using its `id`:
273
273
 
274
274
  ```sh
275
- $ pulumi import hcloud:index/firewall:Firewall example "$FIREWALL_ID"
275
+ $ pulumi import hcloud:index/firewall:Firewall myfirewall id
276
276
  ```
277
277
 
278
278
  :param str resource_name: The name of the resource.
@@ -323,7 +323,7 @@ class FloatingIp(pulumi.CustomResource):
323
323
  Floating IPs can be imported using its `id`:
324
324
 
325
325
  ```sh
326
- $ pulumi import hcloud:index/floatingIp:FloatingIp example "$FLOATING_IP_ID"
326
+ $ pulumi import hcloud:index/floatingIp:FloatingIp myip id
327
327
  ```
328
328
 
329
329
  :param str resource_name: The name of the resource.
@@ -365,7 +365,7 @@ class FloatingIp(pulumi.CustomResource):
365
365
  Floating IPs can be imported using its `id`:
366
366
 
367
367
  ```sh
368
- $ pulumi import hcloud:index/floatingIp:FloatingIp example "$FLOATING_IP_ID"
368
+ $ pulumi import hcloud:index/floatingIp:FloatingIp myip id
369
369
  ```
370
370
 
371
371
  :param str resource_name: The name of the resource.
@@ -129,7 +129,7 @@ class FloatingIpAssignment(pulumi.CustomResource):
129
129
  Floating IP Assignments can be imported using the `floating_ip_id`:
130
130
 
131
131
  ```sh
132
- $ pulumi import hcloud:index/floatingIpAssignment:FloatingIpAssignment example "$FLOATING_IP_ID"
132
+ $ pulumi import hcloud:index/floatingIpAssignment:FloatingIpAssignment myfloatingipassignment <floating_ip_id>
133
133
  ```
134
134
 
135
135
  :param str resource_name: The name of the resource.
@@ -170,7 +170,7 @@ class FloatingIpAssignment(pulumi.CustomResource):
170
170
  Floating IP Assignments can be imported using the `floating_ip_id`:
171
171
 
172
172
  ```sh
173
- $ pulumi import hcloud:index/floatingIpAssignment:FloatingIpAssignment example "$FLOATING_IP_ID"
173
+ $ pulumi import hcloud:index/floatingIpAssignment:FloatingIpAssignment myfloatingipassignment <floating_ip_id>
174
174
  ```
175
175
 
176
176
  :param str resource_name: The name of the resource.
@@ -50,7 +50,7 @@ class GetDatacenterResult:
50
50
  @pulumi.getter(name="availableServerTypeIds")
51
51
  def available_server_type_ids(self) -> Sequence[int]:
52
52
  """
53
- List of currently available Server Types in the Datacenter.
53
+ (list) List of available server types.
54
54
  """
55
55
  return pulumi.get(self, "available_server_type_ids")
56
56
 
@@ -58,15 +58,15 @@ class GetDatacenterResult:
58
58
  @pulumi.getter
59
59
  def description(self) -> str:
60
60
  """
61
- Description of the Datacenter.
61
+ (string) Description of the datacenter.
62
62
  """
63
63
  return pulumi.get(self, "description")
64
64
 
65
65
  @property
66
66
  @pulumi.getter
67
- def id(self) -> Optional[int]:
67
+ def id(self) -> int:
68
68
  """
69
- ID of the Datacenter.
69
+ (int) Unique ID of the datacenter.
70
70
  """
71
71
  return pulumi.get(self, "id")
72
72
 
@@ -74,15 +74,15 @@ class GetDatacenterResult:
74
74
  @pulumi.getter
75
75
  def location(self) -> Mapping[str, str]:
76
76
  """
77
- Location of the Datacenter. See the [Hetzner Docs](https://docs.hetzner.com/cloud/general/locations/#what-locations-are-there) for more details about locations.
77
+ (map) Location details of the datacenter. See the [Hetzner Docs](https://docs.hetzner.com/cloud/general/locations/#what-locations-are-there) for more details about locations.
78
78
  """
79
79
  return pulumi.get(self, "location")
80
80
 
81
81
  @property
82
82
  @pulumi.getter
83
- def name(self) -> Optional[str]:
83
+ def name(self) -> str:
84
84
  """
85
- Name of the Datacenter.
85
+ (string) Name of the datacenter.
86
86
  """
87
87
  return pulumi.get(self, "name")
88
88
 
@@ -90,7 +90,7 @@ class GetDatacenterResult:
90
90
  @pulumi.getter(name="supportedServerTypeIds")
91
91
  def supported_server_type_ids(self) -> Sequence[int]:
92
92
  """
93
- List of supported Server Types in the Datacenter.
93
+ (list) List of server types supported by the datacenter.
94
94
  """
95
95
  return pulumi.get(self, "supported_server_type_ids")
96
96
 
@@ -114,8 +114,7 @@ def get_datacenter(id: Optional[int] = None,
114
114
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatacenterResult:
115
115
  """
116
116
  Provides details about a specific Hetzner Cloud Datacenter.
117
-
118
- Use this resource to get detailed information about a specific Datacenter.
117
+ Use this resource to get detailed information about specific datacenter.
119
118
 
120
119
  ## Example Usage
121
120
 
@@ -123,13 +122,13 @@ def get_datacenter(id: Optional[int] = None,
123
122
  import pulumi
124
123
  import pulumi_hcloud as hcloud
125
124
 
126
- by_id = hcloud.get_datacenter(id=4)
127
- by_name = hcloud.get_datacenter(name="fsn1-dc14")
125
+ ds1 = hcloud.get_datacenter(name="fsn1-dc8")
126
+ ds2 = hcloud.get_datacenter(id=4)
128
127
  ```
129
128
 
130
129
 
131
- :param int id: ID of the Datacenter.
132
- :param str name: Name of the Datacenter.
130
+ :param int id: ID of the datacenter.
131
+ :param str name: Name of the datacenter.
133
132
  """
134
133
  __args__ = dict()
135
134
  __args__['id'] = id
@@ -149,8 +148,7 @@ def get_datacenter_output(id: Optional[pulumi.Input[Optional[int]]] = None,
149
148
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatacenterResult]:
150
149
  """
151
150
  Provides details about a specific Hetzner Cloud Datacenter.
152
-
153
- Use this resource to get detailed information about a specific Datacenter.
151
+ Use this resource to get detailed information about specific datacenter.
154
152
 
155
153
  ## Example Usage
156
154
 
@@ -158,13 +156,13 @@ def get_datacenter_output(id: Optional[pulumi.Input[Optional[int]]] = None,
158
156
  import pulumi
159
157
  import pulumi_hcloud as hcloud
160
158
 
161
- by_id = hcloud.get_datacenter(id=4)
162
- by_name = hcloud.get_datacenter(name="fsn1-dc14")
159
+ ds1 = hcloud.get_datacenter(name="fsn1-dc8")
160
+ ds2 = hcloud.get_datacenter(id=4)
163
161
  ```
164
162
 
165
163
 
166
- :param int id: ID of the Datacenter.
167
- :param str name: Name of the Datacenter.
164
+ :param int id: ID of the datacenter.
165
+ :param str name: Name of the datacenter.
168
166
  """
169
167
  __args__ = dict()
170
168
  __args__['id'] = id
@@ -47,32 +47,41 @@ class GetDatacentersResult:
47
47
  @property
48
48
  @pulumi.getter(name="datacenterIds")
49
49
  @_utilities.deprecated("""Use datacenters list instead""")
50
- def datacenter_ids(self) -> Sequence[str]:
50
+ def datacenter_ids(self) -> Optional[Sequence[str]]:
51
+ """
52
+ (list) List of unique datacenter identifiers. **Deprecated**: Use `datacenters` attribute instead.
53
+ """
51
54
  return pulumi.get(self, "datacenter_ids")
52
55
 
53
56
  @property
54
57
  @pulumi.getter
55
58
  def datacenters(self) -> Sequence['outputs.GetDatacentersDatacenterResult']:
59
+ """
60
+ (list) List of all datacenters. See `data.hcloud_datacenter` for schema.
61
+ """
56
62
  return pulumi.get(self, "datacenters")
57
63
 
58
64
  @property
59
65
  @pulumi.getter
60
66
  @_utilities.deprecated("""Use datacenters list instead""")
61
- def descriptions(self) -> Sequence[str]:
67
+ def descriptions(self) -> Optional[Sequence[str]]:
68
+ """
69
+ (list) List of all datacenter descriptions. **Deprecated**: Use `datacenters` attribute instead.
70
+ """
62
71
  return pulumi.get(self, "descriptions")
63
72
 
64
73
  @property
65
74
  @pulumi.getter
66
- def id(self) -> str:
67
- """
68
- The ID of this resource.
69
- """
75
+ def id(self) -> Optional[str]:
70
76
  return pulumi.get(self, "id")
71
77
 
72
78
  @property
73
79
  @pulumi.getter
74
80
  @_utilities.deprecated("""Use datacenters list instead""")
75
- def names(self) -> Sequence[str]:
81
+ def names(self) -> Optional[Sequence[str]]:
82
+ """
83
+ (list) List of datacenter names. **Deprecated**: Use `datacenters` attribute instead.
84
+ """
76
85
  return pulumi.get(self, "names")
77
86
 
78
87
 
@@ -89,13 +98,25 @@ class AwaitableGetDatacentersResult(GetDatacentersResult):
89
98
  names=self.names)
90
99
 
91
100
 
92
- def get_datacenters(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatacentersResult:
101
+ def get_datacenters(datacenter_ids: Optional[Sequence[str]] = None,
102
+ descriptions: Optional[Sequence[str]] = None,
103
+ id: Optional[str] = None,
104
+ names: Optional[Sequence[str]] = None,
105
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatacentersResult:
93
106
  """
94
107
  Provides a list of available Hetzner Cloud Datacenters.
108
+ This resource may be useful to create highly available infrastructure, distributed across several datacenters.
109
+
95
110
 
96
- This resource may be useful to create highly available infrastructure, distributed across several Datacenters.
111
+ :param Sequence[str] datacenter_ids: (list) List of unique datacenter identifiers. **Deprecated**: Use `datacenters` attribute instead.
112
+ :param Sequence[str] descriptions: (list) List of all datacenter descriptions. **Deprecated**: Use `datacenters` attribute instead.
113
+ :param Sequence[str] names: (list) List of datacenter names. **Deprecated**: Use `datacenters` attribute instead.
97
114
  """
98
115
  __args__ = dict()
116
+ __args__['datacenterIds'] = datacenter_ids
117
+ __args__['descriptions'] = descriptions
118
+ __args__['id'] = id
119
+ __args__['names'] = names
99
120
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
100
121
  __ret__ = pulumi.runtime.invoke('hcloud:index/getDatacenters:getDatacenters', __args__, opts=opts, typ=GetDatacentersResult).value
101
122
 
@@ -105,13 +126,25 @@ def get_datacenters(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGet
105
126
  descriptions=pulumi.get(__ret__, 'descriptions'),
106
127
  id=pulumi.get(__ret__, 'id'),
107
128
  names=pulumi.get(__ret__, 'names'))
108
- def get_datacenters_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatacentersResult]:
129
+ def get_datacenters_output(datacenter_ids: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
130
+ descriptions: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
131
+ id: Optional[pulumi.Input[Optional[str]]] = None,
132
+ names: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
133
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatacentersResult]:
109
134
  """
110
135
  Provides a list of available Hetzner Cloud Datacenters.
136
+ This resource may be useful to create highly available infrastructure, distributed across several datacenters.
137
+
111
138
 
112
- This resource may be useful to create highly available infrastructure, distributed across several Datacenters.
139
+ :param Sequence[str] datacenter_ids: (list) List of unique datacenter identifiers. **Deprecated**: Use `datacenters` attribute instead.
140
+ :param Sequence[str] descriptions: (list) List of all datacenter descriptions. **Deprecated**: Use `datacenters` attribute instead.
141
+ :param Sequence[str] names: (list) List of datacenter names. **Deprecated**: Use `datacenters` attribute instead.
113
142
  """
114
143
  __args__ = dict()
144
+ __args__['datacenterIds'] = datacenter_ids
145
+ __args__['descriptions'] = descriptions
146
+ __args__['id'] = id
147
+ __args__['names'] = names
115
148
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
116
149
  __ret__ = pulumi.runtime.invoke_output('hcloud:index/getDatacenters:getDatacenters', __args__, opts=opts, typ=GetDatacentersResult)
117
150
  return __ret__.apply(lambda __response__: GetDatacentersResult(
@@ -53,7 +53,7 @@ class GetLoadBalancerTypeResult:
53
53
  @pulumi.getter
54
54
  def description(self) -> str:
55
55
  """
56
- Description of the Load Balancer Type.
56
+ (string) Description of the load_balancer_type.
57
57
  """
58
58
  return pulumi.get(self, "description")
59
59
 
@@ -61,7 +61,7 @@ class GetLoadBalancerTypeResult:
61
61
  @pulumi.getter
62
62
  def id(self) -> int:
63
63
  """
64
- ID of the Load Balancer Type.
64
+ (int) Unique ID of the load_balancer_type.
65
65
  """
66
66
  return pulumi.get(self, "id")
67
67
 
@@ -69,7 +69,7 @@ class GetLoadBalancerTypeResult:
69
69
  @pulumi.getter(name="maxAssignedCertificates")
70
70
  def max_assigned_certificates(self) -> int:
71
71
  """
72
- Maximum number of certificates that can be assigned for the Load Balancer of this type.
72
+ (int) Maximum number of SSL Certificates that can be assigned to the Load Balancer of this type.
73
73
  """
74
74
  return pulumi.get(self, "max_assigned_certificates")
75
75
 
@@ -77,7 +77,7 @@ class GetLoadBalancerTypeResult:
77
77
  @pulumi.getter(name="maxConnections")
78
78
  def max_connections(self) -> int:
79
79
  """
80
- Maximum number of simultaneous open connections for the Load Balancer of this type.
80
+ (int) Maximum number of simultaneous open connections for the Load Balancer of this type.
81
81
  """
82
82
  return pulumi.get(self, "max_connections")
83
83
 
@@ -85,7 +85,7 @@ class GetLoadBalancerTypeResult:
85
85
  @pulumi.getter(name="maxServices")
86
86
  def max_services(self) -> int:
87
87
  """
88
- Maximum number of services for the Load Balancer of this type.
88
+ (int) Maximum number of services for the Load Balancer of this type.
89
89
  """
90
90
  return pulumi.get(self, "max_services")
91
91
 
@@ -93,7 +93,7 @@ class GetLoadBalancerTypeResult:
93
93
  @pulumi.getter(name="maxTargets")
94
94
  def max_targets(self) -> int:
95
95
  """
96
- Maximum number of targets for the Load Balancer of this type.
96
+ (int) Maximum number of targets for the Load Balancer of this type.
97
97
  """
98
98
  return pulumi.get(self, "max_targets")
99
99
 
@@ -101,7 +101,7 @@ class GetLoadBalancerTypeResult:
101
101
  @pulumi.getter
102
102
  def name(self) -> str:
103
103
  """
104
- Name of the Load Balancer Type.
104
+ (string) Name of the load_balancer_type.
105
105
  """
106
106
  return pulumi.get(self, "name")
107
107
 
@@ -126,8 +126,7 @@ def get_load_balancer_type(id: Optional[int] = None,
126
126
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetLoadBalancerTypeResult:
127
127
  """
128
128
  Provides details about a specific Hetzner Cloud Load Balancer Type.
129
-
130
- Use this resource to get detailed information about a specific Load Balancer Type.
129
+ Use this resource to get detailed information about specific Load Balancer Type.
131
130
 
132
131
  ## Example Usage
133
132
 
@@ -135,17 +134,17 @@ def get_load_balancer_type(id: Optional[int] = None,
135
134
  import pulumi
136
135
  import pulumi_hcloud as hcloud
137
136
 
137
+ by_name = hcloud.get_load_balancer_type(name="cx22")
138
138
  by_id = hcloud.get_load_balancer_type(id=1)
139
- by_name = hcloud.get_load_balancer_type(name="lb11")
140
- main = hcloud.LoadBalancer("main",
139
+ load_balancer = hcloud.LoadBalancer("load_balancer",
141
140
  name="my-load-balancer",
142
141
  load_balancer_type=name,
143
- location="fsn1")
142
+ location="nbg1")
144
143
  ```
145
144
 
146
145
 
147
- :param int id: ID of the Load Balancer Type.
148
- :param str name: Name of the Load Balancer Type.
146
+ :param int id: ID of the load_balancer_type.
147
+ :param str name: Name of the load_balancer_type.
149
148
  """
150
149
  __args__ = dict()
151
150
  __args__['id'] = id
@@ -166,8 +165,7 @@ def get_load_balancer_type_output(id: Optional[pulumi.Input[Optional[int]]] = No
166
165
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetLoadBalancerTypeResult]:
167
166
  """
168
167
  Provides details about a specific Hetzner Cloud Load Balancer Type.
169
-
170
- Use this resource to get detailed information about a specific Load Balancer Type.
168
+ Use this resource to get detailed information about specific Load Balancer Type.
171
169
 
172
170
  ## Example Usage
173
171
 
@@ -175,17 +173,17 @@ def get_load_balancer_type_output(id: Optional[pulumi.Input[Optional[int]]] = No
175
173
  import pulumi
176
174
  import pulumi_hcloud as hcloud
177
175
 
176
+ by_name = hcloud.get_load_balancer_type(name="cx22")
178
177
  by_id = hcloud.get_load_balancer_type(id=1)
179
- by_name = hcloud.get_load_balancer_type(name="lb11")
180
- main = hcloud.LoadBalancer("main",
178
+ load_balancer = hcloud.LoadBalancer("load_balancer",
181
179
  name="my-load-balancer",
182
180
  load_balancer_type=name,
183
- location="fsn1")
181
+ location="nbg1")
184
182
  ```
185
183
 
186
184
 
187
- :param int id: ID of the Load Balancer Type.
188
- :param str name: Name of the Load Balancer Type.
185
+ :param int id: ID of the load_balancer_type.
186
+ :param str name: Name of the load_balancer_type.
189
187
  """
190
188
  __args__ = dict()
191
189
  __args__['id'] = id
@@ -38,14 +38,14 @@ class GetLoadBalancerTypesResult:
38
38
  @property
39
39
  @pulumi.getter
40
40
  def id(self) -> str:
41
- """
42
- The ID of this resource.
43
- """
44
41
  return pulumi.get(self, "id")
45
42
 
46
43
  @property
47
44
  @pulumi.getter(name="loadBalancerTypes")
48
45
  def load_balancer_types(self) -> Sequence['outputs.GetLoadBalancerTypesLoadBalancerTypeResult']:
46
+ """
47
+ (list) List of all load balancer types. See `data.hcloud_load_balancer_type` for the schema.
48
+ """
49
49
  return pulumi.get(self, "load_balancer_types")
50
50
 
51
51
 
@@ -56,7 +56,7 @@ class GetLocationResult:
56
56
  @pulumi.getter
57
57
  def city(self) -> str:
58
58
  """
59
- Name of the closest city to the Location. City name and optionally state in short form.
59
+ (string) City of the location.
60
60
  """
61
61
  return pulumi.get(self, "city")
62
62
 
@@ -64,7 +64,7 @@ class GetLocationResult:
64
64
  @pulumi.getter
65
65
  def country(self) -> str:
66
66
  """
67
- Country the Location resides in. ISO 3166-1 alpha-2 code of the country.
67
+ (string) Country of the location.
68
68
  """
69
69
  return pulumi.get(self, "country")
70
70
 
@@ -72,15 +72,15 @@ class GetLocationResult:
72
72
  @pulumi.getter
73
73
  def description(self) -> str:
74
74
  """
75
- Description of the Location.
75
+ (string) Description of the location.
76
76
  """
77
77
  return pulumi.get(self, "description")
78
78
 
79
79
  @property
80
80
  @pulumi.getter
81
- def id(self) -> Optional[int]:
81
+ def id(self) -> int:
82
82
  """
83
- ID of the Location.
83
+ (int) Unique ID of the location.
84
84
  """
85
85
  return pulumi.get(self, "id")
86
86
 
@@ -88,7 +88,7 @@ class GetLocationResult:
88
88
  @pulumi.getter
89
89
  def latitude(self) -> float:
90
90
  """
91
- Latitude of the city closest to the Location.
91
+ (float) Latitude of the city.
92
92
  """
93
93
  return pulumi.get(self, "latitude")
94
94
 
@@ -96,15 +96,15 @@ class GetLocationResult:
96
96
  @pulumi.getter
97
97
  def longitude(self) -> float:
98
98
  """
99
- Longitude of the city closest to the Location.
99
+ (float) Longitude of the city.
100
100
  """
101
101
  return pulumi.get(self, "longitude")
102
102
 
103
103
  @property
104
104
  @pulumi.getter
105
- def name(self) -> Optional[str]:
105
+ def name(self) -> str:
106
106
  """
107
- Name of the Location.
107
+ (string) Name of the location.
108
108
  """
109
109
  return pulumi.get(self, "name")
110
110
 
@@ -112,7 +112,7 @@ class GetLocationResult:
112
112
  @pulumi.getter(name="networkZone")
113
113
  def network_zone(self) -> str:
114
114
  """
115
- Name of the Network Zone this Location resides in.
115
+ (string) Network Zone of the location.
116
116
  """
117
117
  return pulumi.get(self, "network_zone")
118
118
 
@@ -138,8 +138,7 @@ def get_location(id: Optional[int] = None,
138
138
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetLocationResult:
139
139
  """
140
140
  Provides details about a specific Hetzner Cloud Location.
141
-
142
- Use this resource to get detailed information about a specific Location.
141
+ Use this resource to get detailed information about specific location.
143
142
 
144
143
  ## Example Usage
145
144
 
@@ -147,13 +146,13 @@ def get_location(id: Optional[int] = None,
147
146
  import pulumi
148
147
  import pulumi_hcloud as hcloud
149
148
 
150
- by_id = hcloud.get_location(id=1)
151
- by_name = hcloud.get_location(name="fsn1")
149
+ l1 = hcloud.get_location(name="fsn1")
150
+ l2 = hcloud.get_location(id=1)
152
151
  ```
153
152
 
154
153
 
155
- :param int id: ID of the Location.
156
- :param str name: Name of the Location.
154
+ :param int id: ID of the location.
155
+ :param str name: Name of the location.
157
156
  """
158
157
  __args__ = dict()
159
158
  __args__['id'] = id
@@ -175,8 +174,7 @@ def get_location_output(id: Optional[pulumi.Input[Optional[int]]] = None,
175
174
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetLocationResult]:
176
175
  """
177
176
  Provides details about a specific Hetzner Cloud Location.
178
-
179
- Use this resource to get detailed information about a specific Location.
177
+ Use this resource to get detailed information about specific location.
180
178
 
181
179
  ## Example Usage
182
180
 
@@ -184,13 +182,13 @@ def get_location_output(id: Optional[pulumi.Input[Optional[int]]] = None,
184
182
  import pulumi
185
183
  import pulumi_hcloud as hcloud
186
184
 
187
- by_id = hcloud.get_location(id=1)
188
- by_name = hcloud.get_location(name="fsn1")
185
+ l1 = hcloud.get_location(name="fsn1")
186
+ l2 = hcloud.get_location(id=1)
189
187
  ```
190
188
 
191
189
 
192
- :param int id: ID of the Location.
193
- :param str name: Name of the Location.
190
+ :param int id: ID of the location.
191
+ :param str name: Name of the location.
194
192
  """
195
193
  __args__ = dict()
196
194
  __args__['id'] = id
@@ -47,32 +47,41 @@ class GetLocationsResult:
47
47
  @property
48
48
  @pulumi.getter
49
49
  @_utilities.deprecated("""Use locations list instead""")
50
- def descriptions(self) -> Sequence[str]:
50
+ def descriptions(self) -> Optional[Sequence[str]]:
51
+ """
52
+ (list) List of all location descriptions. **Deprecated**: Use `locations` attribute instead.
53
+ """
51
54
  return pulumi.get(self, "descriptions")
52
55
 
53
56
  @property
54
57
  @pulumi.getter
55
- def id(self) -> str:
56
- """
57
- The ID of this resource.
58
- """
58
+ def id(self) -> Optional[str]:
59
59
  return pulumi.get(self, "id")
60
60
 
61
61
  @property
62
62
  @pulumi.getter(name="locationIds")
63
63
  @_utilities.deprecated("""Use locations list instead""")
64
- def location_ids(self) -> Sequence[str]:
64
+ def location_ids(self) -> Optional[Sequence[str]]:
65
+ """
66
+ (list) List of unique location identifiers. **Deprecated**: Use `locations` attribute instead.
67
+ """
65
68
  return pulumi.get(self, "location_ids")
66
69
 
67
70
  @property
68
71
  @pulumi.getter
69
72
  def locations(self) -> Sequence['outputs.GetLocationsLocationResult']:
73
+ """
74
+ (list) List of all locations. See `data.hcloud_location` for schema.
75
+ """
70
76
  return pulumi.get(self, "locations")
71
77
 
72
78
  @property
73
79
  @pulumi.getter
74
80
  @_utilities.deprecated("""Use locations list instead""")
75
- def names(self) -> Sequence[str]:
81
+ def names(self) -> Optional[Sequence[str]]:
82
+ """
83
+ (list) List of location names. **Deprecated**: Use `locations` attribute instead.
84
+ """
76
85
  return pulumi.get(self, "names")
77
86
 
78
87
 
@@ -89,13 +98,25 @@ class AwaitableGetLocationsResult(GetLocationsResult):
89
98
  names=self.names)
90
99
 
91
100
 
92
- def get_locations(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetLocationsResult:
101
+ def get_locations(descriptions: Optional[Sequence[str]] = None,
102
+ id: Optional[str] = None,
103
+ location_ids: Optional[Sequence[str]] = None,
104
+ names: Optional[Sequence[str]] = None,
105
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetLocationsResult:
93
106
  """
94
107
  Provides a list of available Hetzner Cloud Locations.
95
-
96
108
  This resource may be useful to create highly available infrastructure, distributed across several locations.
109
+
110
+
111
+ :param Sequence[str] descriptions: (list) List of all location descriptions. **Deprecated**: Use `locations` attribute instead.
112
+ :param Sequence[str] location_ids: (list) List of unique location identifiers. **Deprecated**: Use `locations` attribute instead.
113
+ :param Sequence[str] names: (list) List of location names. **Deprecated**: Use `locations` attribute instead.
97
114
  """
98
115
  __args__ = dict()
116
+ __args__['descriptions'] = descriptions
117
+ __args__['id'] = id
118
+ __args__['locationIds'] = location_ids
119
+ __args__['names'] = names
99
120
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
100
121
  __ret__ = pulumi.runtime.invoke('hcloud:index/getLocations:getLocations', __args__, opts=opts, typ=GetLocationsResult).value
101
122
 
@@ -105,13 +126,25 @@ def get_locations(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetLo
105
126
  location_ids=pulumi.get(__ret__, 'location_ids'),
106
127
  locations=pulumi.get(__ret__, 'locations'),
107
128
  names=pulumi.get(__ret__, 'names'))
108
- def get_locations_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetLocationsResult]:
129
+ def get_locations_output(descriptions: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
130
+ id: Optional[pulumi.Input[Optional[str]]] = None,
131
+ location_ids: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
132
+ names: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
133
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetLocationsResult]:
109
134
  """
110
135
  Provides a list of available Hetzner Cloud Locations.
111
-
112
136
  This resource may be useful to create highly available infrastructure, distributed across several locations.
137
+
138
+
139
+ :param Sequence[str] descriptions: (list) List of all location descriptions. **Deprecated**: Use `locations` attribute instead.
140
+ :param Sequence[str] location_ids: (list) List of unique location identifiers. **Deprecated**: Use `locations` attribute instead.
141
+ :param Sequence[str] names: (list) List of location names. **Deprecated**: Use `locations` attribute instead.
113
142
  """
114
143
  __args__ = dict()
144
+ __args__['descriptions'] = descriptions
145
+ __args__['id'] = id
146
+ __args__['locationIds'] = location_ids
147
+ __args__['names'] = names
115
148
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
116
149
  __ret__ = pulumi.runtime.invoke_output('hcloud:index/getLocations:getLocations', __args__, opts=opts, typ=GetLocationsResult)
117
150
  return __ret__.apply(lambda __response__: GetLocationsResult(