pulumi-dnsimple 3.5.0a1709211875__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.

pulumi_dnsimple/domain.py CHANGED
@@ -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__ = ['DomainArgs', 'Domain']
@@ -18,6 +23,8 @@ class DomainArgs:
18
23
  """
19
24
  The set of arguments for constructing a Domain resource.
20
25
  :param pulumi.Input[str] name: The domain name to be created
26
+
27
+ # Attributes Reference
21
28
  """
22
29
  pulumi.set(__self__, "name", name)
23
30
 
@@ -26,6 +33,8 @@ class DomainArgs:
26
33
  def name(self) -> pulumi.Input[str]:
27
34
  """
28
35
  The domain name to be created
36
+
37
+ # Attributes Reference
29
38
  """
30
39
  return pulumi.get(self, "name")
31
40
 
@@ -46,7 +55,15 @@ class _DomainState:
46
55
  unicode_name: Optional[pulumi.Input[str]] = None):
47
56
  """
48
57
  Input properties used for looking up and filtering Domain resources.
58
+ :param pulumi.Input[int] account_id: The account ID for the domain.
59
+ :param pulumi.Input[bool] auto_renew: Whether the domain is set to auto-renew.
49
60
  :param pulumi.Input[str] name: The domain name to be created
61
+
62
+ # Attributes Reference
63
+ :param pulumi.Input[bool] private_whois: Whether the domain has WhoIs privacy enabled.
64
+ :param pulumi.Input[int] registrant_id: The ID of the registrant (contact) for the domain.
65
+ :param pulumi.Input[str] state: The state of the domain.
66
+ :param pulumi.Input[str] unicode_name: The domain name in Unicode format.
50
67
  """
51
68
  if account_id is not None:
52
69
  pulumi.set(__self__, "account_id", account_id)
@@ -66,6 +83,9 @@ class _DomainState:
66
83
  @property
67
84
  @pulumi.getter(name="accountId")
68
85
  def account_id(self) -> Optional[pulumi.Input[int]]:
86
+ """
87
+ The account ID for the domain.
88
+ """
69
89
  return pulumi.get(self, "account_id")
70
90
 
71
91
  @account_id.setter
@@ -75,6 +95,9 @@ class _DomainState:
75
95
  @property
76
96
  @pulumi.getter(name="autoRenew")
77
97
  def auto_renew(self) -> Optional[pulumi.Input[bool]]:
98
+ """
99
+ Whether the domain is set to auto-renew.
100
+ """
78
101
  return pulumi.get(self, "auto_renew")
79
102
 
80
103
  @auto_renew.setter
@@ -86,6 +109,8 @@ class _DomainState:
86
109
  def name(self) -> Optional[pulumi.Input[str]]:
87
110
  """
88
111
  The domain name to be created
112
+
113
+ # Attributes Reference
89
114
  """
90
115
  return pulumi.get(self, "name")
91
116
 
@@ -96,6 +121,9 @@ class _DomainState:
96
121
  @property
97
122
  @pulumi.getter(name="privateWhois")
98
123
  def private_whois(self) -> Optional[pulumi.Input[bool]]:
124
+ """
125
+ Whether the domain has WhoIs privacy enabled.
126
+ """
99
127
  return pulumi.get(self, "private_whois")
100
128
 
101
129
  @private_whois.setter
@@ -105,6 +133,9 @@ class _DomainState:
105
133
  @property
106
134
  @pulumi.getter(name="registrantId")
107
135
  def registrant_id(self) -> Optional[pulumi.Input[int]]:
136
+ """
137
+ The ID of the registrant (contact) for the domain.
138
+ """
108
139
  return pulumi.get(self, "registrant_id")
109
140
 
110
141
  @registrant_id.setter
@@ -114,6 +145,9 @@ class _DomainState:
114
145
  @property
115
146
  @pulumi.getter
116
147
  def state(self) -> Optional[pulumi.Input[str]]:
148
+ """
149
+ The state of the domain.
150
+ """
117
151
  return pulumi.get(self, "state")
118
152
 
119
153
  @state.setter
@@ -123,6 +157,9 @@ class _DomainState:
123
157
  @property
124
158
  @pulumi.getter(name="unicodeName")
125
159
  def unicode_name(self) -> Optional[pulumi.Input[str]]:
160
+ """
161
+ The domain name in Unicode format.
162
+ """
126
163
  return pulumi.get(self, "unicode_name")
127
164
 
128
165
  @unicode_name.setter
@@ -147,72 +184,78 @@ class Domain(pulumi.CustomResource):
147
184
  import pulumi_dnsimple as dnsimple
148
185
 
149
186
  # Create a domain
150
- foobar = dnsimple.Domain("foobar", name=var["dnsimple"]["domain"])
187
+ foobar = dnsimple.Domain("foobar", name=dnsimple["domain"])
151
188
  ```
152
189
 
153
190
  ## Import
154
191
 
155
192
  DNSimple domains can be imported using their numeric record ID.
156
193
 
194
+ bash
195
+
157
196
  ```sh
158
197
  $ pulumi import dnsimple:index/domain:Domain resource_name 5678
159
198
  ```
160
199
 
161
- The record ID can be found within [DNSimple Domains API](https://developer.dnsimple.com/v2/domains/#listDomains). Check out [Authentication](https://developer.dnsimple.com/v2/#authentication) in API Overview for available options.
162
-
163
- $ curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq
164
-
165
- {
166
-
167
- "data": [
168
-
169
- {
170
-
171
- "id": 5678,
172
-
173
- "account_id": 1234,
174
-
175
- "registrant_id": null,
176
-
177
- "name": "example.com",
178
-
179
- "unicode_name": "example.com",
180
-
181
- "state": "hosted",
182
-
183
- "auto_renew": false,
184
-
185
- "private_whois": false,
186
-
187
- "expires_on": null,
188
-
189
- "expires_at": null,
190
-
191
- "created_at": "2021-10-01T00:00:00Z",
192
-
193
- "updated_at": "2021-10-01T00:00:00Z"
194
-
195
- }
196
-
197
- ],
198
-
199
- "pagination": {
200
-
201
- "current_page": 1,
202
-
203
- "per_page": 30,
204
-
205
- "total_entries": 1,
206
-
207
- "total_pages": 1
208
-
209
- }
210
-
211
- }
200
+ The record ID can be found within [DNSimple Domains API](https://developer.dnsimple.com/v2/domains/#listDomains). Check out [Authentication](https://developer.dnsimple.com/v2/#authentication) in API Overview for available options.
201
+
202
+ bash
203
+
204
+ curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq
205
+
206
+ {
207
+
208
+ "data": [
209
+
210
+ {
211
+
212
+ "id": 5678,
213
+
214
+ "account_id": 1234,
215
+
216
+ "registrant_id": null,
217
+
218
+ "name": "example.com",
219
+
220
+ "unicode_name": "example.com",
221
+
222
+ "state": "hosted",
223
+
224
+ "auto_renew": false,
225
+
226
+ "private_whois": false,
227
+
228
+ "expires_on": null,
229
+
230
+ "expires_at": null,
231
+
232
+ "created_at": "2021-10-01T00:00:00Z",
233
+
234
+ "updated_at": "2021-10-01T00:00:00Z"
235
+
236
+ }
237
+
238
+ ],
239
+
240
+ "pagination": {
241
+
242
+ "current_page": 1,
243
+
244
+ "per_page": 30,
245
+
246
+ "total_entries": 1,
247
+
248
+ "total_pages": 1
249
+
250
+ }
251
+
252
+ }
212
253
 
213
254
  :param str resource_name: The name of the resource.
214
255
  :param pulumi.ResourceOptions opts: Options for the resource.
215
256
  :param pulumi.Input[str] name: The domain name to be created
257
+
258
+ # Attributes Reference
216
259
  """
217
260
  ...
218
261
  @overload
@@ -230,68 +273,72 @@ class Domain(pulumi.CustomResource):
230
273
  import pulumi_dnsimple as dnsimple
231
274
 
232
275
  # Create a domain
233
- foobar = dnsimple.Domain("foobar", name=var["dnsimple"]["domain"])
276
+ foobar = dnsimple.Domain("foobar", name=dnsimple["domain"])
234
277
  ```
235
278
 
236
279
  ## Import
237
280
 
238
281
  DNSimple domains can be imported using their numeric record ID.
239
282
 
283
+ bash
284
+
240
285
  ```sh
241
286
  $ pulumi import dnsimple:index/domain:Domain resource_name 5678
242
287
  ```
243
288
 
244
- The record ID can be found within [DNSimple Domains API](https://developer.dnsimple.com/v2/domains/#listDomains). Check out [Authentication](https://developer.dnsimple.com/v2/#authentication) in API Overview for available options.
245
-
246
- $ curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq
247
-
248
- {
249
-
250
- "data": [
251
-
252
- {
253
-
254
- "id": 5678,
255
-
256
- "account_id": 1234,
257
-
258
- "registrant_id": null,
259
-
260
- "name": "example.com",
261
-
262
- "unicode_name": "example.com",
263
-
264
- "state": "hosted",
265
-
266
- "auto_renew": false,
267
-
268
- "private_whois": false,
269
-
270
- "expires_on": null,
271
-
272
- "expires_at": null,
273
-
274
- "created_at": "2021-10-01T00:00:00Z",
275
-
276
- "updated_at": "2021-10-01T00:00:00Z"
277
-
278
- }
279
-
280
- ],
281
-
282
- "pagination": {
283
-
284
- "current_page": 1,
285
-
286
- "per_page": 30,
287
-
288
- "total_entries": 1,
289
-
290
- "total_pages": 1
291
-
292
- }
293
-
294
- }
289
+ The record ID can be found within [DNSimple Domains API](https://developer.dnsimple.com/v2/domains/#listDomains). Check out [Authentication](https://developer.dnsimple.com/v2/#authentication) in API Overview for available options.
290
+
291
+ bash
292
+
293
+ curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq
294
+
295
+ {
296
+
297
+ "data": [
298
+
299
+ {
300
+
301
+ "id": 5678,
302
+
303
+ "account_id": 1234,
304
+
305
+ "registrant_id": null,
306
+
307
+ "name": "example.com",
308
+
309
+ "unicode_name": "example.com",
310
+
311
+ "state": "hosted",
312
+
313
+ "auto_renew": false,
314
+
315
+ "private_whois": false,
316
+
317
+ "expires_on": null,
318
+
319
+ "expires_at": null,
320
+
321
+ "created_at": "2021-10-01T00:00:00Z",
322
+
323
+ "updated_at": "2021-10-01T00:00:00Z"
324
+
325
+ }
326
+
327
+ ],
328
+
329
+ "pagination": {
330
+
331
+ "current_page": 1,
332
+
333
+ "per_page": 30,
334
+
335
+ "total_entries": 1,
336
+
337
+ "total_pages": 1
338
+
339
+ }
340
+
341
+ }
295
342
 
296
343
  :param str resource_name: The name of the resource.
297
344
  :param DomainArgs args: The arguments to use to populate this resource's properties.
@@ -351,7 +398,15 @@ class Domain(pulumi.CustomResource):
351
398
  :param str resource_name: The unique name of the resulting resource.
352
399
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
353
400
  :param pulumi.ResourceOptions opts: Options for the resource.
401
+ :param pulumi.Input[int] account_id: The account ID for the domain.
402
+ :param pulumi.Input[bool] auto_renew: Whether the domain is set to auto-renew.
354
403
  :param pulumi.Input[str] name: The domain name to be created
404
+
405
+ # Attributes Reference
406
+ :param pulumi.Input[bool] private_whois: Whether the domain has WhoIs privacy enabled.
407
+ :param pulumi.Input[int] registrant_id: The ID of the registrant (contact) for the domain.
408
+ :param pulumi.Input[str] state: The state of the domain.
409
+ :param pulumi.Input[str] unicode_name: The domain name in Unicode format.
355
410
  """
356
411
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
357
412
 
@@ -369,11 +424,17 @@ class Domain(pulumi.CustomResource):
369
424
  @property
370
425
  @pulumi.getter(name="accountId")
371
426
  def account_id(self) -> pulumi.Output[int]:
427
+ """
428
+ The account ID for the domain.
429
+ """
372
430
  return pulumi.get(self, "account_id")
373
431
 
374
432
  @property
375
433
  @pulumi.getter(name="autoRenew")
376
434
  def auto_renew(self) -> pulumi.Output[bool]:
435
+ """
436
+ Whether the domain is set to auto-renew.
437
+ """
377
438
  return pulumi.get(self, "auto_renew")
378
439
 
379
440
  @property
@@ -381,26 +442,40 @@ class Domain(pulumi.CustomResource):
381
442
  def name(self) -> pulumi.Output[str]:
382
443
  """
383
444
  The domain name to be created
445
+
446
+ # Attributes Reference
384
447
  """
385
448
  return pulumi.get(self, "name")
386
449
 
387
450
  @property
388
451
  @pulumi.getter(name="privateWhois")
389
452
  def private_whois(self) -> pulumi.Output[bool]:
453
+ """
454
+ Whether the domain has WhoIs privacy enabled.
455
+ """
390
456
  return pulumi.get(self, "private_whois")
391
457
 
392
458
  @property
393
459
  @pulumi.getter(name="registrantId")
394
460
  def registrant_id(self) -> pulumi.Output[int]:
461
+ """
462
+ The ID of the registrant (contact) for the domain.
463
+ """
395
464
  return pulumi.get(self, "registrant_id")
396
465
 
397
466
  @property
398
467
  @pulumi.getter
399
468
  def state(self) -> pulumi.Output[str]:
469
+ """
470
+ The state of the domain.
471
+ """
400
472
  return pulumi.get(self, "state")
401
473
 
402
474
  @property
403
475
  @pulumi.getter(name="unicodeName")
404
476
  def unicode_name(self) -> pulumi.Output[str]:
477
+ """
478
+ The domain name in Unicode format.
479
+ """
405
480
  return pulumi.get(self, "unicode_name")
406
481