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