pulumi-dnsimple 3.5.0a1710156168__py3-none-any.whl → 4.3.0a1736832784__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-dnsimple might be problematic. Click here for more details.

@@ -0,0 +1,321 @@
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
+ from . import outputs
17
+ from ._enums import *
18
+
19
+ __all__ = [
20
+ 'RegisteredDomainDomainRegistration',
21
+ 'RegisteredDomainRegistrantChange',
22
+ 'RegisteredDomainTimeouts',
23
+ 'GetCertificateTimeoutsResult',
24
+ 'GetRegistrantChangeCheckExtendedAttributeResult',
25
+ 'GetRegistrantChangeCheckExtendedAttributeOptionResult',
26
+ ]
27
+
28
+ @pulumi.output_type
29
+ class RegisteredDomainDomainRegistration(dict):
30
+ def __init__(__self__, *,
31
+ id: Optional[int] = None,
32
+ period: Optional[int] = None,
33
+ state: Optional[str] = None):
34
+ """
35
+ :param int id: The ID of this resource.
36
+ :param int period: The registration period in years.
37
+ :param str state: The state of the domain.
38
+ """
39
+ if id is not None:
40
+ pulumi.set(__self__, "id", id)
41
+ if period is not None:
42
+ pulumi.set(__self__, "period", period)
43
+ if state is not None:
44
+ pulumi.set(__self__, "state", state)
45
+
46
+ @property
47
+ @pulumi.getter
48
+ def id(self) -> Optional[int]:
49
+ """
50
+ The ID of this resource.
51
+ """
52
+ return pulumi.get(self, "id")
53
+
54
+ @property
55
+ @pulumi.getter
56
+ def period(self) -> Optional[int]:
57
+ """
58
+ The registration period in years.
59
+ """
60
+ return pulumi.get(self, "period")
61
+
62
+ @property
63
+ @pulumi.getter
64
+ def state(self) -> Optional[str]:
65
+ """
66
+ The state of the domain.
67
+ """
68
+ return pulumi.get(self, "state")
69
+
70
+
71
+ @pulumi.output_type
72
+ class RegisteredDomainRegistrantChange(dict):
73
+ @staticmethod
74
+ def __key_warning(key: str):
75
+ suggest = None
76
+ if key == "accountId":
77
+ suggest = "account_id"
78
+ elif key == "contactId":
79
+ suggest = "contact_id"
80
+ elif key == "domainId":
81
+ suggest = "domain_id"
82
+ elif key == "extendedAttributes":
83
+ suggest = "extended_attributes"
84
+ elif key == "irtLockLiftedBy":
85
+ suggest = "irt_lock_lifted_by"
86
+ elif key == "registryOwnerChange":
87
+ suggest = "registry_owner_change"
88
+
89
+ if suggest:
90
+ pulumi.log.warn(f"Key '{key}' not found in RegisteredDomainRegistrantChange. Access the value via the '{suggest}' property getter instead.")
91
+
92
+ def __getitem__(self, key: str) -> Any:
93
+ RegisteredDomainRegistrantChange.__key_warning(key)
94
+ return super().__getitem__(key)
95
+
96
+ def get(self, key: str, default = None) -> Any:
97
+ RegisteredDomainRegistrantChange.__key_warning(key)
98
+ return super().get(key, default)
99
+
100
+ def __init__(__self__, *,
101
+ account_id: Optional[int] = None,
102
+ contact_id: Optional[int] = None,
103
+ domain_id: Optional[str] = None,
104
+ extended_attributes: Optional[Mapping[str, str]] = None,
105
+ id: Optional[int] = None,
106
+ irt_lock_lifted_by: Optional[str] = None,
107
+ registry_owner_change: Optional[bool] = None,
108
+ state: Optional[str] = None):
109
+ """
110
+ :param int account_id: DNSimple Account ID to which the registrant change belongs to
111
+ :param int contact_id: The ID of the contact to be used for the domain registration. The contact ID can be changed after the domain has been registered. The change will result in a new registrant change this may result in a [60-day lock](https://support.dnsimple.com/articles/icann-60-day-lock-registrant-change/).
112
+ :param str domain_id: DNSimple domain ID for which the registrant change is being performed
113
+ :param Mapping[str, str] extended_attributes: A map of extended attributes to be set for the domain registration. To see if there are any required extended attributes for any TLD use our [Lists the TLD Extended Attributes API](https://developer.dnsimple.com/v2/tlds/#getTldExtendedAttributes). The values provided in the `extended_attributes` will also be sent when a registrant change is initiated as part of changing the `contact_id`.
114
+ :param int id: The ID of this resource.
115
+ :param str irt_lock_lifted_by: Date when the registrant change lock was lifted for the domain
116
+ :param bool registry_owner_change: True if the registrant change will result in a registry owner change
117
+ :param str state: The state of the domain.
118
+ """
119
+ if account_id is not None:
120
+ pulumi.set(__self__, "account_id", account_id)
121
+ if contact_id is not None:
122
+ pulumi.set(__self__, "contact_id", contact_id)
123
+ if domain_id is not None:
124
+ pulumi.set(__self__, "domain_id", domain_id)
125
+ if extended_attributes is not None:
126
+ pulumi.set(__self__, "extended_attributes", extended_attributes)
127
+ if id is not None:
128
+ pulumi.set(__self__, "id", id)
129
+ if irt_lock_lifted_by is not None:
130
+ pulumi.set(__self__, "irt_lock_lifted_by", irt_lock_lifted_by)
131
+ if registry_owner_change is not None:
132
+ pulumi.set(__self__, "registry_owner_change", registry_owner_change)
133
+ if state is not None:
134
+ pulumi.set(__self__, "state", state)
135
+
136
+ @property
137
+ @pulumi.getter(name="accountId")
138
+ def account_id(self) -> Optional[int]:
139
+ """
140
+ DNSimple Account ID to which the registrant change belongs to
141
+ """
142
+ return pulumi.get(self, "account_id")
143
+
144
+ @property
145
+ @pulumi.getter(name="contactId")
146
+ def contact_id(self) -> Optional[int]:
147
+ """
148
+ The ID of the contact to be used for the domain registration. The contact ID can be changed after the domain has been registered. The change will result in a new registrant change this may result in a [60-day lock](https://support.dnsimple.com/articles/icann-60-day-lock-registrant-change/).
149
+ """
150
+ return pulumi.get(self, "contact_id")
151
+
152
+ @property
153
+ @pulumi.getter(name="domainId")
154
+ def domain_id(self) -> Optional[str]:
155
+ """
156
+ DNSimple domain ID for which the registrant change is being performed
157
+ """
158
+ return pulumi.get(self, "domain_id")
159
+
160
+ @property
161
+ @pulumi.getter(name="extendedAttributes")
162
+ def extended_attributes(self) -> Optional[Mapping[str, str]]:
163
+ """
164
+ A map of extended attributes to be set for the domain registration. To see if there are any required extended attributes for any TLD use our [Lists the TLD Extended Attributes API](https://developer.dnsimple.com/v2/tlds/#getTldExtendedAttributes). The values provided in the `extended_attributes` will also be sent when a registrant change is initiated as part of changing the `contact_id`.
165
+ """
166
+ return pulumi.get(self, "extended_attributes")
167
+
168
+ @property
169
+ @pulumi.getter
170
+ def id(self) -> Optional[int]:
171
+ """
172
+ The ID of this resource.
173
+ """
174
+ return pulumi.get(self, "id")
175
+
176
+ @property
177
+ @pulumi.getter(name="irtLockLiftedBy")
178
+ def irt_lock_lifted_by(self) -> Optional[str]:
179
+ """
180
+ Date when the registrant change lock was lifted for the domain
181
+ """
182
+ return pulumi.get(self, "irt_lock_lifted_by")
183
+
184
+ @property
185
+ @pulumi.getter(name="registryOwnerChange")
186
+ def registry_owner_change(self) -> Optional[bool]:
187
+ """
188
+ True if the registrant change will result in a registry owner change
189
+ """
190
+ return pulumi.get(self, "registry_owner_change")
191
+
192
+ @property
193
+ @pulumi.getter
194
+ def state(self) -> Optional[str]:
195
+ """
196
+ The state of the domain.
197
+ """
198
+ return pulumi.get(self, "state")
199
+
200
+
201
+ @pulumi.output_type
202
+ class RegisteredDomainTimeouts(dict):
203
+ def __init__(__self__, *,
204
+ create: Optional[str] = None,
205
+ delete: Optional[str] = None,
206
+ update: Optional[str] = None):
207
+ """
208
+ :param str create: Create timeout.
209
+ :param str delete: Delete timeout (currently unused).
210
+ :param str update: Update timeout.
211
+ """
212
+ if create is not None:
213
+ pulumi.set(__self__, "create", create)
214
+ if delete is not None:
215
+ pulumi.set(__self__, "delete", delete)
216
+ if update is not None:
217
+ pulumi.set(__self__, "update", update)
218
+
219
+ @property
220
+ @pulumi.getter
221
+ def create(self) -> Optional[str]:
222
+ """
223
+ Create timeout.
224
+ """
225
+ return pulumi.get(self, "create")
226
+
227
+ @property
228
+ @pulumi.getter
229
+ def delete(self) -> Optional[str]:
230
+ """
231
+ Delete timeout (currently unused).
232
+ """
233
+ return pulumi.get(self, "delete")
234
+
235
+ @property
236
+ @pulumi.getter
237
+ def update(self) -> Optional[str]:
238
+ """
239
+ Update timeout.
240
+ """
241
+ return pulumi.get(self, "update")
242
+
243
+
244
+ @pulumi.output_type
245
+ class GetCertificateTimeoutsResult(dict):
246
+ def __init__(__self__, *,
247
+ read: Optional[str] = None):
248
+ """
249
+ :param str read: (String) - The timeout for the read operation e.g. `5m`
250
+ """
251
+ if read is not None:
252
+ pulumi.set(__self__, "read", read)
253
+
254
+ @property
255
+ @pulumi.getter
256
+ def read(self) -> Optional[str]:
257
+ """
258
+ (String) - The timeout for the read operation e.g. `5m`
259
+ """
260
+ return pulumi.get(self, "read")
261
+
262
+
263
+ @pulumi.output_type
264
+ class GetRegistrantChangeCheckExtendedAttributeResult(dict):
265
+ def __init__(__self__, *,
266
+ description: str,
267
+ name: str,
268
+ options: Sequence['outputs.GetRegistrantChangeCheckExtendedAttributeOptionResult'],
269
+ required: bool):
270
+ pulumi.set(__self__, "description", description)
271
+ pulumi.set(__self__, "name", name)
272
+ pulumi.set(__self__, "options", options)
273
+ pulumi.set(__self__, "required", required)
274
+
275
+ @property
276
+ @pulumi.getter
277
+ def description(self) -> str:
278
+ return pulumi.get(self, "description")
279
+
280
+ @property
281
+ @pulumi.getter
282
+ def name(self) -> str:
283
+ return pulumi.get(self, "name")
284
+
285
+ @property
286
+ @pulumi.getter
287
+ def options(self) -> Sequence['outputs.GetRegistrantChangeCheckExtendedAttributeOptionResult']:
288
+ return pulumi.get(self, "options")
289
+
290
+ @property
291
+ @pulumi.getter
292
+ def required(self) -> bool:
293
+ return pulumi.get(self, "required")
294
+
295
+
296
+ @pulumi.output_type
297
+ class GetRegistrantChangeCheckExtendedAttributeOptionResult(dict):
298
+ def __init__(__self__, *,
299
+ description: str,
300
+ title: str,
301
+ value: str):
302
+ pulumi.set(__self__, "description", description)
303
+ pulumi.set(__self__, "title", title)
304
+ pulumi.set(__self__, "value", value)
305
+
306
+ @property
307
+ @pulumi.getter
308
+ def description(self) -> str:
309
+ return pulumi.get(self, "description")
310
+
311
+ @property
312
+ @pulumi.getter
313
+ def title(self) -> str:
314
+ return pulumi.get(self, "title")
315
+
316
+ @property
317
+ @pulumi.getter
318
+ def value(self) -> str:
319
+ return pulumi.get(self, "value")
320
+
321
+
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
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
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = ['ProviderArgs', 'Provider']
@@ -14,52 +19,42 @@ __all__ = ['ProviderArgs', 'Provider']
14
19
  @pulumi.input_type
15
20
  class ProviderArgs:
16
21
  def __init__(__self__, *,
17
- account: pulumi.Input[str],
18
- token: pulumi.Input[str],
22
+ account: Optional[pulumi.Input[str]] = None,
19
23
  prefetch: Optional[pulumi.Input[bool]] = None,
20
24
  sandbox: Optional[pulumi.Input[bool]] = None,
25
+ token: Optional[pulumi.Input[str]] = None,
21
26
  user_agent: Optional[pulumi.Input[str]] = None):
22
27
  """
23
28
  The set of arguments for constructing a Provider resource.
24
29
  :param pulumi.Input[str] account: The account for API operations.
25
- :param pulumi.Input[str] token: The API v2 token for API operations.
26
30
  :param pulumi.Input[bool] prefetch: Flag to enable the prefetch of zone records.
27
31
  :param pulumi.Input[bool] sandbox: Flag to enable the sandbox API.
32
+ :param pulumi.Input[str] token: The API v2 token for API operations.
28
33
  :param pulumi.Input[str] user_agent: Custom string to append to the user agent used for sending HTTP requests to the API.
29
34
  """
30
- pulumi.set(__self__, "account", account)
31
- pulumi.set(__self__, "token", token)
35
+ if account is not None:
36
+ pulumi.set(__self__, "account", account)
32
37
  if prefetch is not None:
33
38
  pulumi.set(__self__, "prefetch", prefetch)
34
39
  if sandbox is not None:
35
40
  pulumi.set(__self__, "sandbox", sandbox)
41
+ if token is not None:
42
+ pulumi.set(__self__, "token", token)
36
43
  if user_agent is not None:
37
44
  pulumi.set(__self__, "user_agent", user_agent)
38
45
 
39
46
  @property
40
47
  @pulumi.getter
41
- def account(self) -> pulumi.Input[str]:
48
+ def account(self) -> Optional[pulumi.Input[str]]:
42
49
  """
43
50
  The account for API operations.
44
51
  """
45
52
  return pulumi.get(self, "account")
46
53
 
47
54
  @account.setter
48
- def account(self, value: pulumi.Input[str]):
55
+ def account(self, value: Optional[pulumi.Input[str]]):
49
56
  pulumi.set(self, "account", value)
50
57
 
51
- @property
52
- @pulumi.getter
53
- def token(self) -> pulumi.Input[str]:
54
- """
55
- The API v2 token for API operations.
56
- """
57
- return pulumi.get(self, "token")
58
-
59
- @token.setter
60
- def token(self, value: pulumi.Input[str]):
61
- pulumi.set(self, "token", value)
62
-
63
58
  @property
64
59
  @pulumi.getter
65
60
  def prefetch(self) -> Optional[pulumi.Input[bool]]:
@@ -84,6 +79,18 @@ class ProviderArgs:
84
79
  def sandbox(self, value: Optional[pulumi.Input[bool]]):
85
80
  pulumi.set(self, "sandbox", value)
86
81
 
82
+ @property
83
+ @pulumi.getter
84
+ def token(self) -> Optional[pulumi.Input[str]]:
85
+ """
86
+ The API v2 token for API operations.
87
+ """
88
+ return pulumi.get(self, "token")
89
+
90
+ @token.setter
91
+ def token(self, value: Optional[pulumi.Input[str]]):
92
+ pulumi.set(self, "token", value)
93
+
87
94
  @property
88
95
  @pulumi.getter(name="userAgent")
89
96
  def user_agent(self) -> Optional[pulumi.Input[str]]:
@@ -126,7 +133,7 @@ class Provider(pulumi.ProviderResource):
126
133
  @overload
127
134
  def __init__(__self__,
128
135
  resource_name: str,
129
- args: ProviderArgs,
136
+ args: Optional[ProviderArgs] = None,
130
137
  opts: Optional[pulumi.ResourceOptions] = None):
131
138
  """
132
139
  The provider type for the dnsimple package. By default, resources use package-wide configuration
@@ -163,13 +170,9 @@ class Provider(pulumi.ProviderResource):
163
170
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
164
171
  __props__ = ProviderArgs.__new__(ProviderArgs)
165
172
 
166
- if account is None and not opts.urn:
167
- raise TypeError("Missing required property 'account'")
168
173
  __props__.__dict__["account"] = account
169
174
  __props__.__dict__["prefetch"] = pulumi.Output.from_input(prefetch).apply(pulumi.runtime.to_json) if prefetch is not None else None
170
175
  __props__.__dict__["sandbox"] = pulumi.Output.from_input(sandbox).apply(pulumi.runtime.to_json) if sandbox is not None else None
171
- if token is None and not opts.urn:
172
- raise TypeError("Missing required property 'token'")
173
176
  __props__.__dict__["token"] = None if token is None else pulumi.Output.secret(token)
174
177
  __props__.__dict__["user_agent"] = user_agent
175
178
  secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["token"])
@@ -182,7 +185,7 @@ class Provider(pulumi.ProviderResource):
182
185
 
183
186
  @property
184
187
  @pulumi.getter
185
- def account(self) -> pulumi.Output[str]:
188
+ def account(self) -> pulumi.Output[Optional[str]]:
186
189
  """
187
190
  The account for API operations.
188
191
  """
@@ -190,7 +193,7 @@ class Provider(pulumi.ProviderResource):
190
193
 
191
194
  @property
192
195
  @pulumi.getter
193
- def token(self) -> pulumi.Output[str]:
196
+ def token(self) -> pulumi.Output[Optional[str]]:
194
197
  """
195
198
  The API v2 token for API operations.
196
199
  """
@@ -1,4 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
- "name": "dnsimple"
3
+ "name": "dnsimple",
4
+ "version": "4.3.0-alpha.1736832784"
4
5
  }