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