pulumi-digitalocean 4.37.0__py3-none-any.whl → 4.37.0a1733788015__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.
Potentially problematic release.
This version of pulumi-digitalocean might be problematic. Click here for more details.
- pulumi_digitalocean/__init__.py +0 -29
- pulumi_digitalocean/_inputs.py +0 -413
- pulumi_digitalocean/load_balancer.py +21 -14
- pulumi_digitalocean/outputs.py +0 -520
- pulumi_digitalocean/pulumi-plugin.json +1 -1
- {pulumi_digitalocean-4.37.0.dist-info → pulumi_digitalocean-4.37.0a1733788015.dist-info}/METADATA +1 -1
- {pulumi_digitalocean-4.37.0.dist-info → pulumi_digitalocean-4.37.0a1733788015.dist-info}/RECORD +9 -14
- pulumi_digitalocean/droplet_autoscale.py +0 -474
- pulumi_digitalocean/get_droplet_autoscale.py +0 -197
- pulumi_digitalocean/get_reserved_ipv6.py +0 -118
- pulumi_digitalocean/reserved_ipv6.py +0 -232
- pulumi_digitalocean/reserved_ipv6_assignment.py +0 -171
- {pulumi_digitalocean-4.37.0.dist-info → pulumi_digitalocean-4.37.0a1733788015.dist-info}/WHEEL +0 -0
- {pulumi_digitalocean-4.37.0.dist-info → pulumi_digitalocean-4.37.0a1733788015.dist-info}/top_level.txt +0 -0
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
-
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
|
|
5
|
-
import copy
|
|
6
|
-
import warnings
|
|
7
|
-
import sys
|
|
8
|
-
import pulumi
|
|
9
|
-
import pulumi.runtime
|
|
10
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
-
if sys.version_info >= (3, 11):
|
|
12
|
-
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
-
else:
|
|
14
|
-
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
-
from . import _utilities
|
|
16
|
-
|
|
17
|
-
__all__ = [
|
|
18
|
-
'GetReservedIpv6Result',
|
|
19
|
-
'AwaitableGetReservedIpv6Result',
|
|
20
|
-
'get_reserved_ipv6',
|
|
21
|
-
'get_reserved_ipv6_output',
|
|
22
|
-
]
|
|
23
|
-
|
|
24
|
-
@pulumi.output_type
|
|
25
|
-
class GetReservedIpv6Result:
|
|
26
|
-
"""
|
|
27
|
-
A collection of values returned by getReservedIpv6.
|
|
28
|
-
"""
|
|
29
|
-
def __init__(__self__, droplet_id=None, id=None, ip=None, region_slug=None, urn=None):
|
|
30
|
-
if droplet_id and not isinstance(droplet_id, int):
|
|
31
|
-
raise TypeError("Expected argument 'droplet_id' to be a int")
|
|
32
|
-
pulumi.set(__self__, "droplet_id", droplet_id)
|
|
33
|
-
if id and not isinstance(id, str):
|
|
34
|
-
raise TypeError("Expected argument 'id' to be a str")
|
|
35
|
-
pulumi.set(__self__, "id", id)
|
|
36
|
-
if ip and not isinstance(ip, str):
|
|
37
|
-
raise TypeError("Expected argument 'ip' to be a str")
|
|
38
|
-
pulumi.set(__self__, "ip", ip)
|
|
39
|
-
if region_slug and not isinstance(region_slug, str):
|
|
40
|
-
raise TypeError("Expected argument 'region_slug' to be a str")
|
|
41
|
-
pulumi.set(__self__, "region_slug", region_slug)
|
|
42
|
-
if urn and not isinstance(urn, str):
|
|
43
|
-
raise TypeError("Expected argument 'urn' to be a str")
|
|
44
|
-
pulumi.set(__self__, "urn", urn)
|
|
45
|
-
|
|
46
|
-
@property
|
|
47
|
-
@pulumi.getter(name="dropletId")
|
|
48
|
-
def droplet_id(self) -> int:
|
|
49
|
-
return pulumi.get(self, "droplet_id")
|
|
50
|
-
|
|
51
|
-
@property
|
|
52
|
-
@pulumi.getter
|
|
53
|
-
def id(self) -> str:
|
|
54
|
-
"""
|
|
55
|
-
The provider-assigned unique ID for this managed resource.
|
|
56
|
-
"""
|
|
57
|
-
return pulumi.get(self, "id")
|
|
58
|
-
|
|
59
|
-
@property
|
|
60
|
-
@pulumi.getter
|
|
61
|
-
def ip(self) -> str:
|
|
62
|
-
return pulumi.get(self, "ip")
|
|
63
|
-
|
|
64
|
-
@property
|
|
65
|
-
@pulumi.getter(name="regionSlug")
|
|
66
|
-
def region_slug(self) -> str:
|
|
67
|
-
return pulumi.get(self, "region_slug")
|
|
68
|
-
|
|
69
|
-
@property
|
|
70
|
-
@pulumi.getter
|
|
71
|
-
def urn(self) -> str:
|
|
72
|
-
return pulumi.get(self, "urn")
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
class AwaitableGetReservedIpv6Result(GetReservedIpv6Result):
|
|
76
|
-
# pylint: disable=using-constant-test
|
|
77
|
-
def __await__(self):
|
|
78
|
-
if False:
|
|
79
|
-
yield self
|
|
80
|
-
return GetReservedIpv6Result(
|
|
81
|
-
droplet_id=self.droplet_id,
|
|
82
|
-
id=self.id,
|
|
83
|
-
ip=self.ip,
|
|
84
|
-
region_slug=self.region_slug,
|
|
85
|
-
urn=self.urn)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
def get_reserved_ipv6(ip: Optional[str] = None,
|
|
89
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetReservedIpv6Result:
|
|
90
|
-
"""
|
|
91
|
-
Use this data source to access information about an existing resource.
|
|
92
|
-
"""
|
|
93
|
-
__args__ = dict()
|
|
94
|
-
__args__['ip'] = ip
|
|
95
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
96
|
-
__ret__ = pulumi.runtime.invoke('digitalocean:index/getReservedIpv6:getReservedIpv6', __args__, opts=opts, typ=GetReservedIpv6Result).value
|
|
97
|
-
|
|
98
|
-
return AwaitableGetReservedIpv6Result(
|
|
99
|
-
droplet_id=pulumi.get(__ret__, 'droplet_id'),
|
|
100
|
-
id=pulumi.get(__ret__, 'id'),
|
|
101
|
-
ip=pulumi.get(__ret__, 'ip'),
|
|
102
|
-
region_slug=pulumi.get(__ret__, 'region_slug'),
|
|
103
|
-
urn=pulumi.get(__ret__, 'urn'))
|
|
104
|
-
def get_reserved_ipv6_output(ip: Optional[pulumi.Input[str]] = None,
|
|
105
|
-
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetReservedIpv6Result]:
|
|
106
|
-
"""
|
|
107
|
-
Use this data source to access information about an existing resource.
|
|
108
|
-
"""
|
|
109
|
-
__args__ = dict()
|
|
110
|
-
__args__['ip'] = ip
|
|
111
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
112
|
-
__ret__ = pulumi.runtime.invoke_output('digitalocean:index/getReservedIpv6:getReservedIpv6', __args__, opts=opts, typ=GetReservedIpv6Result)
|
|
113
|
-
return __ret__.apply(lambda __response__: GetReservedIpv6Result(
|
|
114
|
-
droplet_id=pulumi.get(__response__, 'droplet_id'),
|
|
115
|
-
id=pulumi.get(__response__, 'id'),
|
|
116
|
-
ip=pulumi.get(__response__, 'ip'),
|
|
117
|
-
region_slug=pulumi.get(__response__, 'region_slug'),
|
|
118
|
-
urn=pulumi.get(__response__, 'urn')))
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
-
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
|
|
5
|
-
import copy
|
|
6
|
-
import warnings
|
|
7
|
-
import sys
|
|
8
|
-
import pulumi
|
|
9
|
-
import pulumi.runtime
|
|
10
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
-
if sys.version_info >= (3, 11):
|
|
12
|
-
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
-
else:
|
|
14
|
-
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
-
from . import _utilities
|
|
16
|
-
|
|
17
|
-
__all__ = ['ReservedIpv6Args', 'ReservedIpv6']
|
|
18
|
-
|
|
19
|
-
@pulumi.input_type
|
|
20
|
-
class ReservedIpv6Args:
|
|
21
|
-
def __init__(__self__, *,
|
|
22
|
-
region_slug: pulumi.Input[str],
|
|
23
|
-
droplet_id: Optional[pulumi.Input[int]] = None,
|
|
24
|
-
ip: Optional[pulumi.Input[str]] = None):
|
|
25
|
-
"""
|
|
26
|
-
The set of arguments for constructing a ReservedIpv6 resource.
|
|
27
|
-
"""
|
|
28
|
-
pulumi.set(__self__, "region_slug", region_slug)
|
|
29
|
-
if droplet_id is not None:
|
|
30
|
-
pulumi.set(__self__, "droplet_id", droplet_id)
|
|
31
|
-
if ip is not None:
|
|
32
|
-
pulumi.set(__self__, "ip", ip)
|
|
33
|
-
|
|
34
|
-
@property
|
|
35
|
-
@pulumi.getter(name="regionSlug")
|
|
36
|
-
def region_slug(self) -> pulumi.Input[str]:
|
|
37
|
-
return pulumi.get(self, "region_slug")
|
|
38
|
-
|
|
39
|
-
@region_slug.setter
|
|
40
|
-
def region_slug(self, value: pulumi.Input[str]):
|
|
41
|
-
pulumi.set(self, "region_slug", value)
|
|
42
|
-
|
|
43
|
-
@property
|
|
44
|
-
@pulumi.getter(name="dropletId")
|
|
45
|
-
def droplet_id(self) -> Optional[pulumi.Input[int]]:
|
|
46
|
-
return pulumi.get(self, "droplet_id")
|
|
47
|
-
|
|
48
|
-
@droplet_id.setter
|
|
49
|
-
def droplet_id(self, value: Optional[pulumi.Input[int]]):
|
|
50
|
-
pulumi.set(self, "droplet_id", value)
|
|
51
|
-
|
|
52
|
-
@property
|
|
53
|
-
@pulumi.getter
|
|
54
|
-
def ip(self) -> Optional[pulumi.Input[str]]:
|
|
55
|
-
return pulumi.get(self, "ip")
|
|
56
|
-
|
|
57
|
-
@ip.setter
|
|
58
|
-
def ip(self, value: Optional[pulumi.Input[str]]):
|
|
59
|
-
pulumi.set(self, "ip", value)
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
@pulumi.input_type
|
|
63
|
-
class _ReservedIpv6State:
|
|
64
|
-
def __init__(__self__, *,
|
|
65
|
-
droplet_id: Optional[pulumi.Input[int]] = None,
|
|
66
|
-
ip: Optional[pulumi.Input[str]] = None,
|
|
67
|
-
region_slug: Optional[pulumi.Input[str]] = None,
|
|
68
|
-
urn: Optional[pulumi.Input[str]] = None):
|
|
69
|
-
"""
|
|
70
|
-
Input properties used for looking up and filtering ReservedIpv6 resources.
|
|
71
|
-
:param pulumi.Input[str] urn: the uniform resource name for the reserved ipv6
|
|
72
|
-
"""
|
|
73
|
-
if droplet_id is not None:
|
|
74
|
-
pulumi.set(__self__, "droplet_id", droplet_id)
|
|
75
|
-
if ip is not None:
|
|
76
|
-
pulumi.set(__self__, "ip", ip)
|
|
77
|
-
if region_slug is not None:
|
|
78
|
-
pulumi.set(__self__, "region_slug", region_slug)
|
|
79
|
-
if urn is not None:
|
|
80
|
-
pulumi.set(__self__, "urn", urn)
|
|
81
|
-
|
|
82
|
-
@property
|
|
83
|
-
@pulumi.getter(name="dropletId")
|
|
84
|
-
def droplet_id(self) -> Optional[pulumi.Input[int]]:
|
|
85
|
-
return pulumi.get(self, "droplet_id")
|
|
86
|
-
|
|
87
|
-
@droplet_id.setter
|
|
88
|
-
def droplet_id(self, value: Optional[pulumi.Input[int]]):
|
|
89
|
-
pulumi.set(self, "droplet_id", value)
|
|
90
|
-
|
|
91
|
-
@property
|
|
92
|
-
@pulumi.getter
|
|
93
|
-
def ip(self) -> Optional[pulumi.Input[str]]:
|
|
94
|
-
return pulumi.get(self, "ip")
|
|
95
|
-
|
|
96
|
-
@ip.setter
|
|
97
|
-
def ip(self, value: Optional[pulumi.Input[str]]):
|
|
98
|
-
pulumi.set(self, "ip", value)
|
|
99
|
-
|
|
100
|
-
@property
|
|
101
|
-
@pulumi.getter(name="regionSlug")
|
|
102
|
-
def region_slug(self) -> Optional[pulumi.Input[str]]:
|
|
103
|
-
return pulumi.get(self, "region_slug")
|
|
104
|
-
|
|
105
|
-
@region_slug.setter
|
|
106
|
-
def region_slug(self, value: Optional[pulumi.Input[str]]):
|
|
107
|
-
pulumi.set(self, "region_slug", value)
|
|
108
|
-
|
|
109
|
-
@property
|
|
110
|
-
@pulumi.getter
|
|
111
|
-
def urn(self) -> Optional[pulumi.Input[str]]:
|
|
112
|
-
"""
|
|
113
|
-
the uniform resource name for the reserved ipv6
|
|
114
|
-
"""
|
|
115
|
-
return pulumi.get(self, "urn")
|
|
116
|
-
|
|
117
|
-
@urn.setter
|
|
118
|
-
def urn(self, value: Optional[pulumi.Input[str]]):
|
|
119
|
-
pulumi.set(self, "urn", value)
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
class ReservedIpv6(pulumi.CustomResource):
|
|
123
|
-
@overload
|
|
124
|
-
def __init__(__self__,
|
|
125
|
-
resource_name: str,
|
|
126
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
127
|
-
droplet_id: Optional[pulumi.Input[int]] = None,
|
|
128
|
-
ip: Optional[pulumi.Input[str]] = None,
|
|
129
|
-
region_slug: Optional[pulumi.Input[str]] = None,
|
|
130
|
-
__props__=None):
|
|
131
|
-
"""
|
|
132
|
-
Create a ReservedIpv6 resource with the given unique name, props, and options.
|
|
133
|
-
:param str resource_name: The name of the resource.
|
|
134
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
135
|
-
"""
|
|
136
|
-
...
|
|
137
|
-
@overload
|
|
138
|
-
def __init__(__self__,
|
|
139
|
-
resource_name: str,
|
|
140
|
-
args: ReservedIpv6Args,
|
|
141
|
-
opts: Optional[pulumi.ResourceOptions] = None):
|
|
142
|
-
"""
|
|
143
|
-
Create a ReservedIpv6 resource with the given unique name, props, and options.
|
|
144
|
-
:param str resource_name: The name of the resource.
|
|
145
|
-
:param ReservedIpv6Args args: The arguments to use to populate this resource's properties.
|
|
146
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
147
|
-
"""
|
|
148
|
-
...
|
|
149
|
-
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
150
|
-
resource_args, opts = _utilities.get_resource_args_opts(ReservedIpv6Args, pulumi.ResourceOptions, *args, **kwargs)
|
|
151
|
-
if resource_args is not None:
|
|
152
|
-
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
153
|
-
else:
|
|
154
|
-
__self__._internal_init(resource_name, *args, **kwargs)
|
|
155
|
-
|
|
156
|
-
def _internal_init(__self__,
|
|
157
|
-
resource_name: str,
|
|
158
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
159
|
-
droplet_id: Optional[pulumi.Input[int]] = None,
|
|
160
|
-
ip: Optional[pulumi.Input[str]] = None,
|
|
161
|
-
region_slug: Optional[pulumi.Input[str]] = None,
|
|
162
|
-
__props__=None):
|
|
163
|
-
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
164
|
-
if not isinstance(opts, pulumi.ResourceOptions):
|
|
165
|
-
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
166
|
-
if opts.id is None:
|
|
167
|
-
if __props__ is not None:
|
|
168
|
-
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
169
|
-
__props__ = ReservedIpv6Args.__new__(ReservedIpv6Args)
|
|
170
|
-
|
|
171
|
-
__props__.__dict__["droplet_id"] = droplet_id
|
|
172
|
-
__props__.__dict__["ip"] = ip
|
|
173
|
-
if region_slug is None and not opts.urn:
|
|
174
|
-
raise TypeError("Missing required property 'region_slug'")
|
|
175
|
-
__props__.__dict__["region_slug"] = region_slug
|
|
176
|
-
__props__.__dict__["urn"] = None
|
|
177
|
-
super(ReservedIpv6, __self__).__init__(
|
|
178
|
-
'digitalocean:index/reservedIpv6:ReservedIpv6',
|
|
179
|
-
resource_name,
|
|
180
|
-
__props__,
|
|
181
|
-
opts)
|
|
182
|
-
|
|
183
|
-
@staticmethod
|
|
184
|
-
def get(resource_name: str,
|
|
185
|
-
id: pulumi.Input[str],
|
|
186
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
187
|
-
droplet_id: Optional[pulumi.Input[int]] = None,
|
|
188
|
-
ip: Optional[pulumi.Input[str]] = None,
|
|
189
|
-
region_slug: Optional[pulumi.Input[str]] = None,
|
|
190
|
-
urn: Optional[pulumi.Input[str]] = None) -> 'ReservedIpv6':
|
|
191
|
-
"""
|
|
192
|
-
Get an existing ReservedIpv6 resource's state with the given name, id, and optional extra
|
|
193
|
-
properties used to qualify the lookup.
|
|
194
|
-
|
|
195
|
-
:param str resource_name: The unique name of the resulting resource.
|
|
196
|
-
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
197
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
198
|
-
:param pulumi.Input[str] urn: the uniform resource name for the reserved ipv6
|
|
199
|
-
"""
|
|
200
|
-
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
201
|
-
|
|
202
|
-
__props__ = _ReservedIpv6State.__new__(_ReservedIpv6State)
|
|
203
|
-
|
|
204
|
-
__props__.__dict__["droplet_id"] = droplet_id
|
|
205
|
-
__props__.__dict__["ip"] = ip
|
|
206
|
-
__props__.__dict__["region_slug"] = region_slug
|
|
207
|
-
__props__.__dict__["urn"] = urn
|
|
208
|
-
return ReservedIpv6(resource_name, opts=opts, __props__=__props__)
|
|
209
|
-
|
|
210
|
-
@property
|
|
211
|
-
@pulumi.getter(name="dropletId")
|
|
212
|
-
def droplet_id(self) -> pulumi.Output[int]:
|
|
213
|
-
return pulumi.get(self, "droplet_id")
|
|
214
|
-
|
|
215
|
-
@property
|
|
216
|
-
@pulumi.getter
|
|
217
|
-
def ip(self) -> pulumi.Output[str]:
|
|
218
|
-
return pulumi.get(self, "ip")
|
|
219
|
-
|
|
220
|
-
@property
|
|
221
|
-
@pulumi.getter(name="regionSlug")
|
|
222
|
-
def region_slug(self) -> pulumi.Output[str]:
|
|
223
|
-
return pulumi.get(self, "region_slug")
|
|
224
|
-
|
|
225
|
-
@property
|
|
226
|
-
@pulumi.getter
|
|
227
|
-
def urn(self) -> pulumi.Output[str]:
|
|
228
|
-
"""
|
|
229
|
-
the uniform resource name for the reserved ipv6
|
|
230
|
-
"""
|
|
231
|
-
return pulumi.get(self, "urn")
|
|
232
|
-
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
-
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
|
|
5
|
-
import copy
|
|
6
|
-
import warnings
|
|
7
|
-
import sys
|
|
8
|
-
import pulumi
|
|
9
|
-
import pulumi.runtime
|
|
10
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
-
if sys.version_info >= (3, 11):
|
|
12
|
-
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
-
else:
|
|
14
|
-
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
-
from . import _utilities
|
|
16
|
-
|
|
17
|
-
__all__ = ['ReservedIpv6AssignmentArgs', 'ReservedIpv6Assignment']
|
|
18
|
-
|
|
19
|
-
@pulumi.input_type
|
|
20
|
-
class ReservedIpv6AssignmentArgs:
|
|
21
|
-
def __init__(__self__, *,
|
|
22
|
-
droplet_id: pulumi.Input[int],
|
|
23
|
-
ip: pulumi.Input[str]):
|
|
24
|
-
"""
|
|
25
|
-
The set of arguments for constructing a ReservedIpv6Assignment resource.
|
|
26
|
-
"""
|
|
27
|
-
pulumi.set(__self__, "droplet_id", droplet_id)
|
|
28
|
-
pulumi.set(__self__, "ip", ip)
|
|
29
|
-
|
|
30
|
-
@property
|
|
31
|
-
@pulumi.getter(name="dropletId")
|
|
32
|
-
def droplet_id(self) -> pulumi.Input[int]:
|
|
33
|
-
return pulumi.get(self, "droplet_id")
|
|
34
|
-
|
|
35
|
-
@droplet_id.setter
|
|
36
|
-
def droplet_id(self, value: pulumi.Input[int]):
|
|
37
|
-
pulumi.set(self, "droplet_id", value)
|
|
38
|
-
|
|
39
|
-
@property
|
|
40
|
-
@pulumi.getter
|
|
41
|
-
def ip(self) -> pulumi.Input[str]:
|
|
42
|
-
return pulumi.get(self, "ip")
|
|
43
|
-
|
|
44
|
-
@ip.setter
|
|
45
|
-
def ip(self, value: pulumi.Input[str]):
|
|
46
|
-
pulumi.set(self, "ip", value)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
@pulumi.input_type
|
|
50
|
-
class _ReservedIpv6AssignmentState:
|
|
51
|
-
def __init__(__self__, *,
|
|
52
|
-
droplet_id: Optional[pulumi.Input[int]] = None,
|
|
53
|
-
ip: Optional[pulumi.Input[str]] = None):
|
|
54
|
-
"""
|
|
55
|
-
Input properties used for looking up and filtering ReservedIpv6Assignment resources.
|
|
56
|
-
"""
|
|
57
|
-
if droplet_id is not None:
|
|
58
|
-
pulumi.set(__self__, "droplet_id", droplet_id)
|
|
59
|
-
if ip is not None:
|
|
60
|
-
pulumi.set(__self__, "ip", ip)
|
|
61
|
-
|
|
62
|
-
@property
|
|
63
|
-
@pulumi.getter(name="dropletId")
|
|
64
|
-
def droplet_id(self) -> Optional[pulumi.Input[int]]:
|
|
65
|
-
return pulumi.get(self, "droplet_id")
|
|
66
|
-
|
|
67
|
-
@droplet_id.setter
|
|
68
|
-
def droplet_id(self, value: Optional[pulumi.Input[int]]):
|
|
69
|
-
pulumi.set(self, "droplet_id", value)
|
|
70
|
-
|
|
71
|
-
@property
|
|
72
|
-
@pulumi.getter
|
|
73
|
-
def ip(self) -> Optional[pulumi.Input[str]]:
|
|
74
|
-
return pulumi.get(self, "ip")
|
|
75
|
-
|
|
76
|
-
@ip.setter
|
|
77
|
-
def ip(self, value: Optional[pulumi.Input[str]]):
|
|
78
|
-
pulumi.set(self, "ip", value)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
class ReservedIpv6Assignment(pulumi.CustomResource):
|
|
82
|
-
@overload
|
|
83
|
-
def __init__(__self__,
|
|
84
|
-
resource_name: str,
|
|
85
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
86
|
-
droplet_id: Optional[pulumi.Input[int]] = None,
|
|
87
|
-
ip: Optional[pulumi.Input[str]] = None,
|
|
88
|
-
__props__=None):
|
|
89
|
-
"""
|
|
90
|
-
Create a ReservedIpv6Assignment resource with the given unique name, props, and options.
|
|
91
|
-
:param str resource_name: The name of the resource.
|
|
92
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
93
|
-
"""
|
|
94
|
-
...
|
|
95
|
-
@overload
|
|
96
|
-
def __init__(__self__,
|
|
97
|
-
resource_name: str,
|
|
98
|
-
args: ReservedIpv6AssignmentArgs,
|
|
99
|
-
opts: Optional[pulumi.ResourceOptions] = None):
|
|
100
|
-
"""
|
|
101
|
-
Create a ReservedIpv6Assignment resource with the given unique name, props, and options.
|
|
102
|
-
:param str resource_name: The name of the resource.
|
|
103
|
-
:param ReservedIpv6AssignmentArgs args: The arguments to use to populate this resource's properties.
|
|
104
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
105
|
-
"""
|
|
106
|
-
...
|
|
107
|
-
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
108
|
-
resource_args, opts = _utilities.get_resource_args_opts(ReservedIpv6AssignmentArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
109
|
-
if resource_args is not None:
|
|
110
|
-
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
111
|
-
else:
|
|
112
|
-
__self__._internal_init(resource_name, *args, **kwargs)
|
|
113
|
-
|
|
114
|
-
def _internal_init(__self__,
|
|
115
|
-
resource_name: str,
|
|
116
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
117
|
-
droplet_id: Optional[pulumi.Input[int]] = None,
|
|
118
|
-
ip: Optional[pulumi.Input[str]] = None,
|
|
119
|
-
__props__=None):
|
|
120
|
-
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
121
|
-
if not isinstance(opts, pulumi.ResourceOptions):
|
|
122
|
-
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
123
|
-
if opts.id is None:
|
|
124
|
-
if __props__ is not None:
|
|
125
|
-
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
126
|
-
__props__ = ReservedIpv6AssignmentArgs.__new__(ReservedIpv6AssignmentArgs)
|
|
127
|
-
|
|
128
|
-
if droplet_id is None and not opts.urn:
|
|
129
|
-
raise TypeError("Missing required property 'droplet_id'")
|
|
130
|
-
__props__.__dict__["droplet_id"] = droplet_id
|
|
131
|
-
if ip is None and not opts.urn:
|
|
132
|
-
raise TypeError("Missing required property 'ip'")
|
|
133
|
-
__props__.__dict__["ip"] = ip
|
|
134
|
-
super(ReservedIpv6Assignment, __self__).__init__(
|
|
135
|
-
'digitalocean:index/reservedIpv6Assignment:ReservedIpv6Assignment',
|
|
136
|
-
resource_name,
|
|
137
|
-
__props__,
|
|
138
|
-
opts)
|
|
139
|
-
|
|
140
|
-
@staticmethod
|
|
141
|
-
def get(resource_name: str,
|
|
142
|
-
id: pulumi.Input[str],
|
|
143
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
144
|
-
droplet_id: Optional[pulumi.Input[int]] = None,
|
|
145
|
-
ip: Optional[pulumi.Input[str]] = None) -> 'ReservedIpv6Assignment':
|
|
146
|
-
"""
|
|
147
|
-
Get an existing ReservedIpv6Assignment resource's state with the given name, id, and optional extra
|
|
148
|
-
properties used to qualify the lookup.
|
|
149
|
-
|
|
150
|
-
:param str resource_name: The unique name of the resulting resource.
|
|
151
|
-
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
152
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
153
|
-
"""
|
|
154
|
-
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
155
|
-
|
|
156
|
-
__props__ = _ReservedIpv6AssignmentState.__new__(_ReservedIpv6AssignmentState)
|
|
157
|
-
|
|
158
|
-
__props__.__dict__["droplet_id"] = droplet_id
|
|
159
|
-
__props__.__dict__["ip"] = ip
|
|
160
|
-
return ReservedIpv6Assignment(resource_name, opts=opts, __props__=__props__)
|
|
161
|
-
|
|
162
|
-
@property
|
|
163
|
-
@pulumi.getter(name="dropletId")
|
|
164
|
-
def droplet_id(self) -> pulumi.Output[int]:
|
|
165
|
-
return pulumi.get(self, "droplet_id")
|
|
166
|
-
|
|
167
|
-
@property
|
|
168
|
-
@pulumi.getter
|
|
169
|
-
def ip(self) -> pulumi.Output[str]:
|
|
170
|
-
return pulumi.get(self, "ip")
|
|
171
|
-
|
{pulumi_digitalocean-4.37.0.dist-info → pulumi_digitalocean-4.37.0a1733788015.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|