pulumi-hcloud 1.24.0a1753336797__py3-none-any.whl → 1.24.0a1753760751__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 -1
- pulumi_hcloud/_inputs.py +281 -282
- pulumi_hcloud/certificate.py +95 -96
- pulumi_hcloud/config/__init__.py +1 -1
- pulumi_hcloud/config/__init__.pyi +1 -2
- pulumi_hcloud/config/vars.py +5 -6
- pulumi_hcloud/firewall.py +41 -42
- pulumi_hcloud/firewall_attachment.py +52 -53
- pulumi_hcloud/floating_ip.py +138 -139
- pulumi_hcloud/floating_ip_assignment.py +35 -36
- pulumi_hcloud/get_certificate.py +35 -36
- pulumi_hcloud/get_certificates.py +10 -11
- pulumi_hcloud/get_datacenter.py +21 -22
- pulumi_hcloud/get_datacenters.py +10 -11
- pulumi_hcloud/get_firewall.py +33 -34
- pulumi_hcloud/get_firewalls.py +16 -17
- pulumi_hcloud/get_floating_ip.py +43 -44
- pulumi_hcloud/get_floating_ips.py +10 -11
- pulumi_hcloud/get_image.py +65 -66
- pulumi_hcloud/get_images.py +34 -35
- pulumi_hcloud/get_load_balancer.py +40 -41
- pulumi_hcloud/get_load_balancer_type.py +23 -24
- pulumi_hcloud/get_load_balancer_types.py +4 -5
- pulumi_hcloud/get_load_balancers.py +10 -11
- pulumi_hcloud/get_location.py +25 -26
- pulumi_hcloud/get_locations.py +10 -11
- pulumi_hcloud/get_network.py +37 -38
- pulumi_hcloud/get_networks.py +10 -11
- pulumi_hcloud/get_placement_group.py +39 -40
- pulumi_hcloud/get_placement_groups.py +16 -17
- pulumi_hcloud/get_primary_ip.py +45 -46
- pulumi_hcloud/get_primary_ips.py +10 -11
- pulumi_hcloud/get_server.py +70 -71
- pulumi_hcloud/get_server_type.py +35 -36
- pulumi_hcloud/get_server_types.py +10 -11
- pulumi_hcloud/get_servers.py +16 -17
- pulumi_hcloud/get_ssh_key.py +38 -39
- pulumi_hcloud/get_ssh_keys.py +15 -16
- pulumi_hcloud/get_volume.py +49 -50
- pulumi_hcloud/get_volumes.py +16 -17
- pulumi_hcloud/load_balancer.py +145 -146
- pulumi_hcloud/load_balancer_network.py +86 -87
- pulumi_hcloud/load_balancer_service.py +92 -93
- pulumi_hcloud/load_balancer_target.py +103 -104
- pulumi_hcloud/managed_certificate.py +104 -105
- pulumi_hcloud/network.py +86 -87
- pulumi_hcloud/network_route.py +52 -53
- pulumi_hcloud/network_subnet.py +93 -94
- pulumi_hcloud/outputs.py +848 -849
- pulumi_hcloud/placement_group.py +59 -60
- pulumi_hcloud/primary_ip.py +155 -156
- pulumi_hcloud/provider.py +42 -43
- pulumi_hcloud/pulumi-plugin.json +1 -1
- pulumi_hcloud/rdns.py +103 -104
- pulumi_hcloud/server.py +380 -381
- pulumi_hcloud/server_network.py +93 -94
- pulumi_hcloud/snapshot.py +52 -53
- pulumi_hcloud/ssh_key.py +92 -65
- pulumi_hcloud/uploaded_certificate.py +121 -122
- pulumi_hcloud/volume.py +146 -147
- pulumi_hcloud/volume_attachment.py +52 -53
- {pulumi_hcloud-1.24.0a1753336797.dist-info → pulumi_hcloud-1.24.0a1753760751.dist-info}/METADATA +1 -1
- pulumi_hcloud-1.24.0a1753760751.dist-info/RECORD +67 -0
- pulumi_hcloud-1.24.0a1753336797.dist-info/RECORD +0 -67
- {pulumi_hcloud-1.24.0a1753336797.dist-info → pulumi_hcloud-1.24.0a1753760751.dist-info}/WHEEL +0 -0
- {pulumi_hcloud-1.24.0a1753336797.dist-info → pulumi_hcloud-1.24.0a1753760751.dist-info}/top_level.txt +0 -0
pulumi_hcloud/get_ssh_key.py
CHANGED
@@ -2,8 +2,7 @@
|
|
2
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
|
@@ -50,60 +49,60 @@ class GetSshKeyResult:
|
|
50
49
|
raise TypeError("Expected argument 'with_selector' to be a str")
|
51
50
|
pulumi.set(__self__, "with_selector", with_selector)
|
52
51
|
|
53
|
-
@property
|
52
|
+
@_builtins.property
|
54
53
|
@pulumi.getter
|
55
|
-
def fingerprint(self) -> Optional[
|
54
|
+
def fingerprint(self) -> Optional[_builtins.str]:
|
56
55
|
"""
|
57
56
|
Fingerprint of the SSH Key.
|
58
57
|
"""
|
59
58
|
return pulumi.get(self, "fingerprint")
|
60
59
|
|
61
|
-
@property
|
60
|
+
@_builtins.property
|
62
61
|
@pulumi.getter
|
63
|
-
def id(self) -> Optional[
|
62
|
+
def id(self) -> Optional[_builtins.int]:
|
64
63
|
"""
|
65
64
|
ID of the SSH Key.
|
66
65
|
"""
|
67
66
|
return pulumi.get(self, "id")
|
68
67
|
|
69
|
-
@property
|
68
|
+
@_builtins.property
|
70
69
|
@pulumi.getter
|
71
|
-
def labels(self) -> Mapping[str,
|
70
|
+
def labels(self) -> Mapping[str, _builtins.str]:
|
72
71
|
"""
|
73
|
-
User-defined [labels](https://docs.hetzner.cloud
|
72
|
+
User-defined [labels](https://docs.hetzner.cloud/reference/cloud#labels) (key-value pairs) for the resource.
|
74
73
|
"""
|
75
74
|
return pulumi.get(self, "labels")
|
76
75
|
|
77
|
-
@property
|
76
|
+
@_builtins.property
|
78
77
|
@pulumi.getter
|
79
|
-
def name(self) -> Optional[
|
78
|
+
def name(self) -> Optional[_builtins.str]:
|
80
79
|
"""
|
81
80
|
Name of the SSH Key.
|
82
81
|
"""
|
83
82
|
return pulumi.get(self, "name")
|
84
83
|
|
85
|
-
@property
|
84
|
+
@_builtins.property
|
86
85
|
@pulumi.getter(name="publicKey")
|
87
|
-
def public_key(self) ->
|
86
|
+
def public_key(self) -> _builtins.str:
|
88
87
|
"""
|
89
88
|
Public key of the SSH Key pair.
|
90
89
|
"""
|
91
90
|
return pulumi.get(self, "public_key")
|
92
91
|
|
93
|
-
@property
|
92
|
+
@_builtins.property
|
94
93
|
@pulumi.getter
|
95
94
|
@_utilities.deprecated("""Please use the with_selector property instead.""")
|
96
|
-
def selector(self) -> Optional[
|
95
|
+
def selector(self) -> Optional[_builtins.str]:
|
97
96
|
"""
|
98
|
-
Filter results using a [Label Selector](https://docs.hetzner.cloud
|
97
|
+
Filter results using a [Label Selector](https://docs.hetzner.cloud/reference/cloud#label-selector).
|
99
98
|
"""
|
100
99
|
return pulumi.get(self, "selector")
|
101
100
|
|
102
|
-
@property
|
101
|
+
@_builtins.property
|
103
102
|
@pulumi.getter(name="withSelector")
|
104
|
-
def with_selector(self) -> Optional[
|
103
|
+
def with_selector(self) -> Optional[_builtins.str]:
|
105
104
|
"""
|
106
|
-
Filter results using a [Label Selector](https://docs.hetzner.cloud
|
105
|
+
Filter results using a [Label Selector](https://docs.hetzner.cloud/reference/cloud#label-selector).
|
107
106
|
"""
|
108
107
|
return pulumi.get(self, "with_selector")
|
109
108
|
|
@@ -123,11 +122,11 @@ class AwaitableGetSshKeyResult(GetSshKeyResult):
|
|
123
122
|
with_selector=self.with_selector)
|
124
123
|
|
125
124
|
|
126
|
-
def get_ssh_key(fingerprint: Optional[
|
127
|
-
id: Optional[
|
128
|
-
name: Optional[
|
129
|
-
selector: Optional[
|
130
|
-
with_selector: Optional[
|
125
|
+
def get_ssh_key(fingerprint: Optional[_builtins.str] = None,
|
126
|
+
id: Optional[_builtins.int] = None,
|
127
|
+
name: Optional[_builtins.str] = None,
|
128
|
+
selector: Optional[_builtins.str] = None,
|
129
|
+
with_selector: Optional[_builtins.str] = None,
|
131
130
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSshKeyResult:
|
132
131
|
"""
|
133
132
|
## Example Usage
|
@@ -148,11 +147,11 @@ def get_ssh_key(fingerprint: Optional[builtins.str] = None,
|
|
148
147
|
```
|
149
148
|
|
150
149
|
|
151
|
-
:param
|
152
|
-
:param
|
153
|
-
:param
|
154
|
-
:param
|
155
|
-
:param
|
150
|
+
:param _builtins.str fingerprint: Fingerprint of the SSH Key.
|
151
|
+
:param _builtins.int id: ID of the SSH Key.
|
152
|
+
:param _builtins.str name: Name of the SSH Key.
|
153
|
+
:param _builtins.str selector: Filter results using a [Label Selector](https://docs.hetzner.cloud/reference/cloud#label-selector).
|
154
|
+
:param _builtins.str with_selector: Filter results using a [Label Selector](https://docs.hetzner.cloud/reference/cloud#label-selector).
|
156
155
|
"""
|
157
156
|
__args__ = dict()
|
158
157
|
__args__['fingerprint'] = fingerprint
|
@@ -171,11 +170,11 @@ def get_ssh_key(fingerprint: Optional[builtins.str] = None,
|
|
171
170
|
public_key=pulumi.get(__ret__, 'public_key'),
|
172
171
|
selector=pulumi.get(__ret__, 'selector'),
|
173
172
|
with_selector=pulumi.get(__ret__, 'with_selector'))
|
174
|
-
def get_ssh_key_output(fingerprint: Optional[pulumi.Input[Optional[
|
175
|
-
id: Optional[pulumi.Input[Optional[
|
176
|
-
name: Optional[pulumi.Input[Optional[
|
177
|
-
selector: Optional[pulumi.Input[Optional[
|
178
|
-
with_selector: Optional[pulumi.Input[Optional[
|
173
|
+
def get_ssh_key_output(fingerprint: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
174
|
+
id: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
175
|
+
name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
176
|
+
selector: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
177
|
+
with_selector: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
179
178
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSshKeyResult]:
|
180
179
|
"""
|
181
180
|
## Example Usage
|
@@ -196,11 +195,11 @@ def get_ssh_key_output(fingerprint: Optional[pulumi.Input[Optional[builtins.str]
|
|
196
195
|
```
|
197
196
|
|
198
197
|
|
199
|
-
:param
|
200
|
-
:param
|
201
|
-
:param
|
202
|
-
:param
|
203
|
-
:param
|
198
|
+
:param _builtins.str fingerprint: Fingerprint of the SSH Key.
|
199
|
+
:param _builtins.int id: ID of the SSH Key.
|
200
|
+
:param _builtins.str name: Name of the SSH Key.
|
201
|
+
:param _builtins.str selector: Filter results using a [Label Selector](https://docs.hetzner.cloud/reference/cloud#label-selector).
|
202
|
+
:param _builtins.str with_selector: Filter results using a [Label Selector](https://docs.hetzner.cloud/reference/cloud#label-selector).
|
204
203
|
"""
|
205
204
|
__args__ = dict()
|
206
205
|
__args__['fingerprint'] = fingerprint
|
pulumi_hcloud/get_ssh_keys.py
CHANGED
@@ -2,8 +2,7 @@
|
|
2
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
|
@@ -39,24 +38,24 @@ class GetSshKeysResult:
|
|
39
38
|
raise TypeError("Expected argument 'with_selector' to be a str")
|
40
39
|
pulumi.set(__self__, "with_selector", with_selector)
|
41
40
|
|
42
|
-
@property
|
41
|
+
@_builtins.property
|
43
42
|
@pulumi.getter
|
44
|
-
def id(self) -> Optional[
|
43
|
+
def id(self) -> Optional[_builtins.str]:
|
45
44
|
"""
|
46
45
|
The ID of this resource.
|
47
46
|
"""
|
48
47
|
return pulumi.get(self, "id")
|
49
48
|
|
50
|
-
@property
|
49
|
+
@_builtins.property
|
51
50
|
@pulumi.getter(name="sshKeys")
|
52
51
|
def ssh_keys(self) -> Sequence['outputs.GetSshKeysSshKeyResult']:
|
53
52
|
return pulumi.get(self, "ssh_keys")
|
54
53
|
|
55
|
-
@property
|
54
|
+
@_builtins.property
|
56
55
|
@pulumi.getter(name="withSelector")
|
57
|
-
def with_selector(self) -> Optional[
|
56
|
+
def with_selector(self) -> Optional[_builtins.str]:
|
58
57
|
"""
|
59
|
-
Filter results using a [Label Selector](https://docs.hetzner.cloud
|
58
|
+
Filter results using a [Label Selector](https://docs.hetzner.cloud/reference/cloud#label-selector)
|
60
59
|
"""
|
61
60
|
return pulumi.get(self, "with_selector")
|
62
61
|
|
@@ -72,8 +71,8 @@ class AwaitableGetSshKeysResult(GetSshKeysResult):
|
|
72
71
|
with_selector=self.with_selector)
|
73
72
|
|
74
73
|
|
75
|
-
def get_ssh_keys(id: Optional[
|
76
|
-
with_selector: Optional[
|
74
|
+
def get_ssh_keys(id: Optional[_builtins.str] = None,
|
75
|
+
with_selector: Optional[_builtins.str] = None,
|
77
76
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSshKeysResult:
|
78
77
|
"""
|
79
78
|
## Example Usage
|
@@ -88,8 +87,8 @@ def get_ssh_keys(id: Optional[builtins.str] = None,
|
|
88
87
|
```
|
89
88
|
|
90
89
|
|
91
|
-
:param
|
92
|
-
:param
|
90
|
+
:param _builtins.str id: The ID of this resource.
|
91
|
+
:param _builtins.str with_selector: Filter results using a [Label Selector](https://docs.hetzner.cloud/reference/cloud#label-selector)
|
93
92
|
"""
|
94
93
|
__args__ = dict()
|
95
94
|
__args__['id'] = id
|
@@ -101,8 +100,8 @@ def get_ssh_keys(id: Optional[builtins.str] = None,
|
|
101
100
|
id=pulumi.get(__ret__, 'id'),
|
102
101
|
ssh_keys=pulumi.get(__ret__, 'ssh_keys'),
|
103
102
|
with_selector=pulumi.get(__ret__, 'with_selector'))
|
104
|
-
def get_ssh_keys_output(id: Optional[pulumi.Input[Optional[
|
105
|
-
with_selector: Optional[pulumi.Input[Optional[
|
103
|
+
def get_ssh_keys_output(id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
104
|
+
with_selector: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
106
105
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSshKeysResult]:
|
107
106
|
"""
|
108
107
|
## Example Usage
|
@@ -117,8 +116,8 @@ def get_ssh_keys_output(id: Optional[pulumi.Input[Optional[builtins.str]]] = Non
|
|
117
116
|
```
|
118
117
|
|
119
118
|
|
120
|
-
:param
|
121
|
-
:param
|
119
|
+
:param _builtins.str id: The ID of this resource.
|
120
|
+
:param _builtins.str with_selector: Filter results using a [Label Selector](https://docs.hetzner.cloud/reference/cloud#label-selector)
|
122
121
|
"""
|
123
122
|
__args__ = dict()
|
124
123
|
__args__['id'] = id
|
pulumi_hcloud/get_volume.py
CHANGED
@@ -2,8 +2,7 @@
|
|
2
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
|
@@ -62,84 +61,84 @@ class GetVolumeResult:
|
|
62
61
|
raise TypeError("Expected argument 'with_statuses' to be a list")
|
63
62
|
pulumi.set(__self__, "with_statuses", with_statuses)
|
64
63
|
|
65
|
-
@property
|
64
|
+
@_builtins.property
|
66
65
|
@pulumi.getter(name="deleteProtection")
|
67
|
-
def delete_protection(self) ->
|
66
|
+
def delete_protection(self) -> _builtins.bool:
|
68
67
|
"""
|
69
68
|
(bool) Whether delete protection is enabled.
|
70
69
|
"""
|
71
70
|
return pulumi.get(self, "delete_protection")
|
72
71
|
|
73
|
-
@property
|
72
|
+
@_builtins.property
|
74
73
|
@pulumi.getter
|
75
|
-
def id(self) ->
|
74
|
+
def id(self) -> _builtins.int:
|
76
75
|
"""
|
77
76
|
(int) Unique ID of the volume.
|
78
77
|
"""
|
79
78
|
return pulumi.get(self, "id")
|
80
79
|
|
81
|
-
@property
|
80
|
+
@_builtins.property
|
82
81
|
@pulumi.getter
|
83
|
-
def labels(self) -> Mapping[str,
|
82
|
+
def labels(self) -> Mapping[str, _builtins.str]:
|
84
83
|
"""
|
85
84
|
(map) User-defined labels (key-value pairs).
|
86
85
|
"""
|
87
86
|
return pulumi.get(self, "labels")
|
88
87
|
|
89
|
-
@property
|
88
|
+
@_builtins.property
|
90
89
|
@pulumi.getter(name="linuxDevice")
|
91
|
-
def linux_device(self) ->
|
90
|
+
def linux_device(self) -> _builtins.str:
|
92
91
|
"""
|
93
92
|
(string) Device path on the file system for the Volume.
|
94
93
|
"""
|
95
94
|
return pulumi.get(self, "linux_device")
|
96
95
|
|
97
|
-
@property
|
96
|
+
@_builtins.property
|
98
97
|
@pulumi.getter
|
99
|
-
def location(self) -> Optional[
|
98
|
+
def location(self) -> Optional[_builtins.str]:
|
100
99
|
"""
|
101
100
|
(string) The location name. See the [Hetzner Docs](https://docs.hetzner.com/cloud/general/locations/#what-locations-are-there) for more details about locations.
|
102
101
|
"""
|
103
102
|
return pulumi.get(self, "location")
|
104
103
|
|
105
|
-
@property
|
104
|
+
@_builtins.property
|
106
105
|
@pulumi.getter
|
107
|
-
def name(self) ->
|
106
|
+
def name(self) -> _builtins.str:
|
108
107
|
"""
|
109
108
|
(string) Name of the volume.
|
110
109
|
"""
|
111
110
|
return pulumi.get(self, "name")
|
112
111
|
|
113
|
-
@property
|
112
|
+
@_builtins.property
|
114
113
|
@pulumi.getter
|
115
114
|
@_utilities.deprecated("""Please use the with_selector property instead.""")
|
116
|
-
def selector(self) -> Optional[
|
115
|
+
def selector(self) -> Optional[_builtins.str]:
|
117
116
|
return pulumi.get(self, "selector")
|
118
117
|
|
119
|
-
@property
|
118
|
+
@_builtins.property
|
120
119
|
@pulumi.getter(name="serverId")
|
121
|
-
def server_id(self) -> Optional[
|
120
|
+
def server_id(self) -> Optional[_builtins.int]:
|
122
121
|
"""
|
123
122
|
(Optional, int) Server ID the volume is attached to
|
124
123
|
"""
|
125
124
|
return pulumi.get(self, "server_id")
|
126
125
|
|
127
|
-
@property
|
126
|
+
@_builtins.property
|
128
127
|
@pulumi.getter
|
129
|
-
def size(self) ->
|
128
|
+
def size(self) -> _builtins.int:
|
130
129
|
"""
|
131
130
|
(int) Size of the volume.
|
132
131
|
"""
|
133
132
|
return pulumi.get(self, "size")
|
134
133
|
|
135
|
-
@property
|
134
|
+
@_builtins.property
|
136
135
|
@pulumi.getter(name="withSelector")
|
137
|
-
def with_selector(self) -> Optional[
|
136
|
+
def with_selector(self) -> Optional[_builtins.str]:
|
138
137
|
return pulumi.get(self, "with_selector")
|
139
138
|
|
140
|
-
@property
|
139
|
+
@_builtins.property
|
141
140
|
@pulumi.getter(name="withStatuses")
|
142
|
-
def with_statuses(self) -> Optional[Sequence[
|
141
|
+
def with_statuses(self) -> Optional[Sequence[_builtins.str]]:
|
143
142
|
return pulumi.get(self, "with_statuses")
|
144
143
|
|
145
144
|
|
@@ -162,13 +161,13 @@ class AwaitableGetVolumeResult(GetVolumeResult):
|
|
162
161
|
with_statuses=self.with_statuses)
|
163
162
|
|
164
163
|
|
165
|
-
def get_volume(id: Optional[
|
166
|
-
location: Optional[
|
167
|
-
name: Optional[
|
168
|
-
selector: Optional[
|
169
|
-
server_id: Optional[
|
170
|
-
with_selector: Optional[
|
171
|
-
with_statuses: Optional[Sequence[
|
164
|
+
def get_volume(id: Optional[_builtins.int] = None,
|
165
|
+
location: Optional[_builtins.str] = None,
|
166
|
+
name: Optional[_builtins.str] = None,
|
167
|
+
selector: Optional[_builtins.str] = None,
|
168
|
+
server_id: Optional[_builtins.int] = None,
|
169
|
+
with_selector: Optional[_builtins.str] = None,
|
170
|
+
with_statuses: Optional[Sequence[_builtins.str]] = None,
|
172
171
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVolumeResult:
|
173
172
|
"""
|
174
173
|
## Example Usage
|
@@ -183,12 +182,12 @@ def get_volume(id: Optional[builtins.int] = None,
|
|
183
182
|
```
|
184
183
|
|
185
184
|
|
186
|
-
:param
|
187
|
-
:param
|
188
|
-
:param
|
189
|
-
:param
|
190
|
-
:param
|
191
|
-
:param Sequence[
|
185
|
+
:param _builtins.int id: ID of the volume.
|
186
|
+
:param _builtins.str location: (string) The location name. See the [Hetzner Docs](https://docs.hetzner.com/cloud/general/locations/#what-locations-are-there) for more details about locations.
|
187
|
+
:param _builtins.str name: Name of the volume.
|
188
|
+
:param _builtins.int server_id: (Optional, int) Server ID the volume is attached to
|
189
|
+
:param _builtins.str with_selector: Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/reference/cloud#label-selector).
|
190
|
+
:param Sequence[_builtins.str] with_statuses: List only volumes with the specified status, could contain `creating` or `available`.
|
192
191
|
"""
|
193
192
|
__args__ = dict()
|
194
193
|
__args__['id'] = id
|
@@ -213,13 +212,13 @@ def get_volume(id: Optional[builtins.int] = None,
|
|
213
212
|
size=pulumi.get(__ret__, 'size'),
|
214
213
|
with_selector=pulumi.get(__ret__, 'with_selector'),
|
215
214
|
with_statuses=pulumi.get(__ret__, 'with_statuses'))
|
216
|
-
def get_volume_output(id: Optional[pulumi.Input[Optional[
|
217
|
-
location: Optional[pulumi.Input[Optional[
|
218
|
-
name: Optional[pulumi.Input[Optional[
|
219
|
-
selector: Optional[pulumi.Input[Optional[
|
220
|
-
server_id: Optional[pulumi.Input[Optional[
|
221
|
-
with_selector: Optional[pulumi.Input[Optional[
|
222
|
-
with_statuses: Optional[pulumi.Input[Optional[Sequence[
|
215
|
+
def get_volume_output(id: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
216
|
+
location: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
217
|
+
name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
218
|
+
selector: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
219
|
+
server_id: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
220
|
+
with_selector: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
221
|
+
with_statuses: Optional[pulumi.Input[Optional[Sequence[_builtins.str]]]] = None,
|
223
222
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVolumeResult]:
|
224
223
|
"""
|
225
224
|
## Example Usage
|
@@ -234,12 +233,12 @@ def get_volume_output(id: Optional[pulumi.Input[Optional[builtins.int]]] = None,
|
|
234
233
|
```
|
235
234
|
|
236
235
|
|
237
|
-
:param
|
238
|
-
:param
|
239
|
-
:param
|
240
|
-
:param
|
241
|
-
:param
|
242
|
-
:param Sequence[
|
236
|
+
:param _builtins.int id: ID of the volume.
|
237
|
+
:param _builtins.str location: (string) The location name. See the [Hetzner Docs](https://docs.hetzner.com/cloud/general/locations/#what-locations-are-there) for more details about locations.
|
238
|
+
:param _builtins.str name: Name of the volume.
|
239
|
+
:param _builtins.int server_id: (Optional, int) Server ID the volume is attached to
|
240
|
+
:param _builtins.str with_selector: Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/reference/cloud#label-selector).
|
241
|
+
:param Sequence[_builtins.str] with_statuses: List only volumes with the specified status, could contain `creating` or `available`.
|
243
242
|
"""
|
244
243
|
__args__ = dict()
|
245
244
|
__args__['id'] = id
|
pulumi_hcloud/get_volumes.py
CHANGED
@@ -2,8 +2,7 @@
|
|
2
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
|
@@ -42,15 +41,15 @@ class GetVolumesResult:
|
|
42
41
|
raise TypeError("Expected argument 'with_statuses' to be a list")
|
43
42
|
pulumi.set(__self__, "with_statuses", with_statuses)
|
44
43
|
|
45
|
-
@property
|
44
|
+
@_builtins.property
|
46
45
|
@pulumi.getter
|
47
|
-
def id(self) ->
|
46
|
+
def id(self) -> _builtins.str:
|
48
47
|
"""
|
49
48
|
The provider-assigned unique ID for this managed resource.
|
50
49
|
"""
|
51
50
|
return pulumi.get(self, "id")
|
52
51
|
|
53
|
-
@property
|
52
|
+
@_builtins.property
|
54
53
|
@pulumi.getter
|
55
54
|
def volumes(self) -> Sequence['outputs.GetVolumesVolumeResult']:
|
56
55
|
"""
|
@@ -58,14 +57,14 @@ class GetVolumesResult:
|
|
58
57
|
"""
|
59
58
|
return pulumi.get(self, "volumes")
|
60
59
|
|
61
|
-
@property
|
60
|
+
@_builtins.property
|
62
61
|
@pulumi.getter(name="withSelector")
|
63
|
-
def with_selector(self) -> Optional[
|
62
|
+
def with_selector(self) -> Optional[_builtins.str]:
|
64
63
|
return pulumi.get(self, "with_selector")
|
65
64
|
|
66
|
-
@property
|
65
|
+
@_builtins.property
|
67
66
|
@pulumi.getter(name="withStatuses")
|
68
|
-
def with_statuses(self) -> Optional[Sequence[
|
67
|
+
def with_statuses(self) -> Optional[Sequence[_builtins.str]]:
|
69
68
|
return pulumi.get(self, "with_statuses")
|
70
69
|
|
71
70
|
|
@@ -81,8 +80,8 @@ class AwaitableGetVolumesResult(GetVolumesResult):
|
|
81
80
|
with_statuses=self.with_statuses)
|
82
81
|
|
83
82
|
|
84
|
-
def get_volumes(with_selector: Optional[
|
85
|
-
with_statuses: Optional[Sequence[
|
83
|
+
def get_volumes(with_selector: Optional[_builtins.str] = None,
|
84
|
+
with_statuses: Optional[Sequence[_builtins.str]] = None,
|
86
85
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVolumesResult:
|
87
86
|
"""
|
88
87
|
Provides details about multiple Hetzner Cloud Volumes.
|
@@ -98,8 +97,8 @@ def get_volumes(with_selector: Optional[builtins.str] = None,
|
|
98
97
|
```
|
99
98
|
|
100
99
|
|
101
|
-
:param
|
102
|
-
:param Sequence[
|
100
|
+
:param _builtins.str with_selector: [Label selector](https://docs.hetzner.cloud/reference/cloud#label-selector)
|
101
|
+
:param Sequence[_builtins.str] with_statuses: List only volumes with the specified status, could contain `creating` or `available`.
|
103
102
|
"""
|
104
103
|
__args__ = dict()
|
105
104
|
__args__['withSelector'] = with_selector
|
@@ -112,8 +111,8 @@ def get_volumes(with_selector: Optional[builtins.str] = None,
|
|
112
111
|
volumes=pulumi.get(__ret__, 'volumes'),
|
113
112
|
with_selector=pulumi.get(__ret__, 'with_selector'),
|
114
113
|
with_statuses=pulumi.get(__ret__, 'with_statuses'))
|
115
|
-
def get_volumes_output(with_selector: Optional[pulumi.Input[Optional[
|
116
|
-
with_statuses: Optional[pulumi.Input[Optional[Sequence[
|
114
|
+
def get_volumes_output(with_selector: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
115
|
+
with_statuses: Optional[pulumi.Input[Optional[Sequence[_builtins.str]]]] = None,
|
117
116
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVolumesResult]:
|
118
117
|
"""
|
119
118
|
Provides details about multiple Hetzner Cloud Volumes.
|
@@ -129,8 +128,8 @@ def get_volumes_output(with_selector: Optional[pulumi.Input[Optional[builtins.st
|
|
129
128
|
```
|
130
129
|
|
131
130
|
|
132
|
-
:param
|
133
|
-
:param Sequence[
|
131
|
+
:param _builtins.str with_selector: [Label selector](https://docs.hetzner.cloud/reference/cloud#label-selector)
|
132
|
+
:param Sequence[_builtins.str] with_statuses: List only volumes with the specified status, could contain `creating` or `available`.
|
134
133
|
"""
|
135
134
|
__args__ = dict()
|
136
135
|
__args__['withSelector'] = with_selector
|