pulumi-dnsimple 3.4.1__tar.gz → 3.4.3__tar.gz

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.

Files changed (25) hide show
  1. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/PKG-INFO +2 -2
  2. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pulumi_dnsimple/_utilities.py +2 -2
  3. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pulumi_dnsimple/domain.py +106 -94
  4. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pulumi_dnsimple/email_forward.py +4 -4
  5. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pulumi_dnsimple/get_certificate.py +4 -4
  6. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pulumi_dnsimple/lets_encrypt_certificate.py +2 -2
  7. pulumi_dnsimple-3.4.3/pulumi_dnsimple/pulumi-plugin.json +5 -0
  8. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pulumi_dnsimple/zone_record.py +20 -20
  9. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pulumi_dnsimple.egg-info/PKG-INFO +2 -2
  10. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pyproject.toml +2 -2
  11. pulumi_dnsimple-3.4.1/pulumi_dnsimple/pulumi-plugin.json +0 -4
  12. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/README.md +0 -0
  13. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pulumi_dnsimple/__init__.py +0 -0
  14. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pulumi_dnsimple/config/__init__.py +0 -0
  15. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pulumi_dnsimple/config/__init__.pyi +0 -0
  16. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pulumi_dnsimple/config/vars.py +0 -0
  17. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pulumi_dnsimple/get_zone.py +0 -0
  18. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pulumi_dnsimple/provider.py +0 -0
  19. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pulumi_dnsimple/py.typed +0 -0
  20. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pulumi_dnsimple/record.py +0 -0
  21. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pulumi_dnsimple.egg-info/SOURCES.txt +0 -0
  22. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pulumi_dnsimple.egg-info/dependency_links.txt +0 -0
  23. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pulumi_dnsimple.egg-info/requires.txt +0 -0
  24. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/pulumi_dnsimple.egg-info/top_level.txt +0 -0
  25. {pulumi_dnsimple-3.4.1 → pulumi_dnsimple-3.4.3}/setup.cfg +0 -0
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_dnsimple
3
- Version: 3.4.1
3
+ Version: 3.4.3
4
4
  Summary: A Pulumi package for creating and managing dnsimple cloud resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
7
7
  Project-URL: Repository, https://github.com/pulumi/pulumi-dnsimple
8
8
  Keywords: pulumi,dnsimple
9
- Requires-Python: >=3.7
9
+ Requires-Python: >=3.8
10
10
  Description-Content-Type: text/markdown
11
11
  Requires-Dist: parver>=0.2.1
12
12
  Requires-Dist: pulumi<4.0.0,>=3.0.0
@@ -4,11 +4,11 @@
4
4
 
5
5
 
6
6
  import asyncio
7
+ import importlib.metadata
7
8
  import importlib.util
8
9
  import inspect
9
10
  import json
10
11
  import os
11
- import pkg_resources
12
12
  import sys
13
13
  import typing
14
14
 
@@ -72,7 +72,7 @@ def _get_semver_version():
72
72
  # to receive a valid semver string when receiving requests from the language host, so it's our
73
73
  # responsibility as the library to convert our own PEP440 version into a valid semver string.
74
74
 
75
- pep440_version_string = pkg_resources.require(root_package)[0].version
75
+ pep440_version_string = importlib.metadata.version(root_package)
76
76
  pep440_version = PEP440Version.parse(pep440_version_string)
77
77
  (major, minor, patch) = pep440_version.release
78
78
  prerelease = None
@@ -147,7 +147,7 @@ class Domain(pulumi.CustomResource):
147
147
  import pulumi_dnsimple as dnsimple
148
148
 
149
149
  # Create a domain
150
- foobar = dnsimple.Domain("foobar", name=var["dnsimple"]["domain"])
150
+ foobar = dnsimple.Domain("foobar", name=dnsimple["domain"])
151
151
  ```
152
152
 
153
153
  ## Import
@@ -155,54 +155,60 @@ class Domain(pulumi.CustomResource):
155
155
  DNSimple domains can be imported using their numeric record ID.
156
156
 
157
157
  ```sh
158
- $ pulumi import dnsimple:index/domain:Domain resource_name 5678
158
+ $ pulumi import dnsimple:index/domain:Domain resource_name 5678
159
159
  ```
160
160
 
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. $ curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq {
162
-
163
- "data"[
164
-
165
- {
166
-
167
- "id"5678,
168
-
169
- "account_id"1234,
170
-
171
- "registrant_id"null,
172
-
173
- "name""example.com",
174
-
175
- "unicode_name""example.com",
176
-
177
- "state""hosted",
178
-
179
- "auto_renew"false,
180
-
181
- "private_whois"false,
182
-
183
- "expires_on"null,
184
-
185
- "expires_at"null,
186
-
187
- "created_at""2021-10-01T00:00:00Z",
188
-
189
- "updated_at""2021-10-01T00:00:00Z"
190
-
191
- }
192
-
193
- ],
194
-
195
- "pagination"{
196
-
197
- "current_page"1,
198
-
199
- "per_page"30,
200
-
201
- "total_entries"1,
202
-
203
- "total_pages"1
204
-
205
- } }
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
+ }
206
212
 
207
213
  :param str resource_name: The name of the resource.
208
214
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -224,7 +230,7 @@ class Domain(pulumi.CustomResource):
224
230
  import pulumi_dnsimple as dnsimple
225
231
 
226
232
  # Create a domain
227
- foobar = dnsimple.Domain("foobar", name=var["dnsimple"]["domain"])
233
+ foobar = dnsimple.Domain("foobar", name=dnsimple["domain"])
228
234
  ```
229
235
 
230
236
  ## Import
@@ -232,54 +238,60 @@ class Domain(pulumi.CustomResource):
232
238
  DNSimple domains can be imported using their numeric record ID.
233
239
 
234
240
  ```sh
235
- $ pulumi import dnsimple:index/domain:Domain resource_name 5678
241
+ $ pulumi import dnsimple:index/domain:Domain resource_name 5678
236
242
  ```
237
243
 
238
- 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. $ curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq {
239
-
240
- "data"[
241
-
242
- {
243
-
244
- "id"5678,
245
-
246
- "account_id"1234,
247
-
248
- "registrant_id"null,
249
-
250
- "name""example.com",
251
-
252
- "unicode_name""example.com",
253
-
254
- "state""hosted",
255
-
256
- "auto_renew"false,
257
-
258
- "private_whois"false,
259
-
260
- "expires_on"null,
261
-
262
- "expires_at"null,
263
-
264
- "created_at""2021-10-01T00:00:00Z",
265
-
266
- "updated_at""2021-10-01T00:00:00Z"
267
-
268
- }
269
-
270
- ],
271
-
272
- "pagination"{
273
-
274
- "current_page"1,
275
-
276
- "per_page"30,
277
-
278
- "total_entries"1,
279
-
280
- "total_pages"1
281
-
282
- } }
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
+ }
283
295
 
284
296
  :param str resource_name: The name of the resource.
285
297
  :param DomainArgs args: The arguments to use to populate this resource's properties.
@@ -156,9 +156,9 @@ class EmailForward(pulumi.CustomResource):
156
156
 
157
157
  # Add an email forwarding rule to the domain
158
158
  foobar = dnsimple.EmailForward("foobar",
159
+ domain=dnsimple_domain,
159
160
  alias_name="sales",
160
- destination_email="jane.doe@example.com",
161
- domain=var["dnsimple_domain"])
161
+ destination_email="jane.doe@example.com")
162
162
  ```
163
163
 
164
164
  :param str resource_name: The name of the resource.
@@ -184,9 +184,9 @@ class EmailForward(pulumi.CustomResource):
184
184
 
185
185
  # Add an email forwarding rule to the domain
186
186
  foobar = dnsimple.EmailForward("foobar",
187
+ domain=dnsimple_domain,
187
188
  alias_name="sales",
188
- destination_email="jane.doe@example.com",
189
- domain=var["dnsimple_domain"])
189
+ destination_email="jane.doe@example.com")
190
190
  ```
191
191
 
192
192
  :param str resource_name: The name of the resource.
@@ -122,8 +122,8 @@ def get_certificate(certificate_id: Optional[str] = None,
122
122
  import pulumi
123
123
  import pulumi_dnsimple as dnsimple
124
124
 
125
- foobar = dnsimple.get_certificate(certificate_id=var["dnsimple_certificate_id"],
126
- domain=var["dnsimple_domain"])
125
+ foobar = dnsimple.get_certificate(domain=dnsimple_domain,
126
+ certificate_id=dnsimple_certificate_id)
127
127
  ```
128
128
 
129
129
 
@@ -159,8 +159,8 @@ def get_certificate_output(certificate_id: Optional[pulumi.Input[str]] = None,
159
159
  import pulumi
160
160
  import pulumi_dnsimple as dnsimple
161
161
 
162
- foobar = dnsimple.get_certificate(certificate_id=var["dnsimple_certificate_id"],
163
- domain=var["dnsimple_domain"])
162
+ foobar = dnsimple.get_certificate(domain=dnsimple_domain,
163
+ certificate_id=dnsimple_certificate_id)
164
164
  ```
165
165
 
166
166
 
@@ -285,7 +285,7 @@ class LetsEncryptCertificate(pulumi.CustomResource):
285
285
  import pulumi_dnsimple as dnsimple
286
286
 
287
287
  foobar = dnsimple.LetsEncryptCertificate("foobar",
288
- domain_id=var["dnsimple"]["domain_id"],
288
+ domain_id=dnsimple["domainId"],
289
289
  auto_renew=False,
290
290
  name="www")
291
291
  ```
@@ -313,7 +313,7 @@ class LetsEncryptCertificate(pulumi.CustomResource):
313
313
  import pulumi_dnsimple as dnsimple
314
314
 
315
315
  foobar = dnsimple.LetsEncryptCertificate("foobar",
316
- domain_id=var["dnsimple"]["domain_id"],
316
+ domain_id=dnsimple["domainId"],
317
317
  auto_renew=False,
318
318
  name="www")
319
319
  ```
@@ -0,0 +1,5 @@
1
+ {
2
+ "resource": true,
3
+ "name": "dnsimple",
4
+ "version": "3.4.3"
5
+ }
@@ -275,11 +275,11 @@ class ZoneRecord(pulumi.CustomResource):
275
275
 
276
276
  # Add a record to the root domain
277
277
  foobar = dnsimple.ZoneRecord("foobar",
278
+ zone_name=dnsimple_domain,
278
279
  name="",
279
- ttl="3600",
280
- type="A",
281
280
  value="192.168.0.11",
282
- zone_name=var["dnsimple_domain"])
281
+ type="A",
282
+ ttl="3600")
283
283
  ```
284
284
 
285
285
  ```python
@@ -288,11 +288,11 @@ class ZoneRecord(pulumi.CustomResource):
288
288
 
289
289
  # Add a record to a sub-domain
290
290
  foobar = dnsimple.ZoneRecord("foobar",
291
+ zone_name=dnsimple_domain,
291
292
  name="terraform",
292
- ttl="3600",
293
- type="A",
294
293
  value="192.168.0.11",
295
- zone_name=var["dnsimple_domain"])
294
+ type="A",
295
+ ttl="3600")
296
296
  ```
297
297
 
298
298
  ## Import
@@ -302,14 +302,14 @@ class ZoneRecord(pulumi.CustomResource):
302
302
  __Importing record example.com with record ID 1234__
303
303
 
304
304
  ```sh
305
- $ pulumi import dnsimple:index/zoneRecord:ZoneRecord resource_name example.com_1234
305
+ $ pulumi import dnsimple:index/zoneRecord:ZoneRecord resource_name example.com_1234
306
306
  ```
307
- __Importing record www.example.com with record ID 1234__
307
+ __Importing record www.example.com with record ID 1234__
308
308
 
309
309
  ```sh
310
- $ pulumi import dnsimple:index/zoneRecord:ZoneRecord resource_name example.com_1234
310
+ $ pulumi import dnsimple:index/zoneRecord:ZoneRecord resource_name example.com_1234
311
311
  ```
312
- The record ID can be found in the URL when editing a record on the DNSimple web dashboard.
312
+ The record ID can be found in the URL when editing a record on the DNSimple web dashboard.
313
313
 
314
314
  :param str resource_name: The name of the resource.
315
315
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -342,11 +342,11 @@ class ZoneRecord(pulumi.CustomResource):
342
342
 
343
343
  # Add a record to the root domain
344
344
  foobar = dnsimple.ZoneRecord("foobar",
345
+ zone_name=dnsimple_domain,
345
346
  name="",
346
- ttl="3600",
347
- type="A",
348
347
  value="192.168.0.11",
349
- zone_name=var["dnsimple_domain"])
348
+ type="A",
349
+ ttl="3600")
350
350
  ```
351
351
 
352
352
  ```python
@@ -355,11 +355,11 @@ class ZoneRecord(pulumi.CustomResource):
355
355
 
356
356
  # Add a record to a sub-domain
357
357
  foobar = dnsimple.ZoneRecord("foobar",
358
+ zone_name=dnsimple_domain,
358
359
  name="terraform",
359
- ttl="3600",
360
- type="A",
361
360
  value="192.168.0.11",
362
- zone_name=var["dnsimple_domain"])
361
+ type="A",
362
+ ttl="3600")
363
363
  ```
364
364
 
365
365
  ## Import
@@ -369,14 +369,14 @@ class ZoneRecord(pulumi.CustomResource):
369
369
  __Importing record example.com with record ID 1234__
370
370
 
371
371
  ```sh
372
- $ pulumi import dnsimple:index/zoneRecord:ZoneRecord resource_name example.com_1234
372
+ $ pulumi import dnsimple:index/zoneRecord:ZoneRecord resource_name example.com_1234
373
373
  ```
374
- __Importing record www.example.com with record ID 1234__
374
+ __Importing record www.example.com with record ID 1234__
375
375
 
376
376
  ```sh
377
- $ pulumi import dnsimple:index/zoneRecord:ZoneRecord resource_name example.com_1234
377
+ $ pulumi import dnsimple:index/zoneRecord:ZoneRecord resource_name example.com_1234
378
378
  ```
379
- The record ID can be found in the URL when editing a record on the DNSimple web dashboard.
379
+ The record ID can be found in the URL when editing a record on the DNSimple web dashboard.
380
380
 
381
381
  :param str resource_name: The name of the resource.
382
382
  :param ZoneRecordArgs args: The arguments to use to populate this resource's properties.
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_dnsimple
3
- Version: 3.4.1
3
+ Version: 3.4.3
4
4
  Summary: A Pulumi package for creating and managing dnsimple cloud resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
7
7
  Project-URL: Repository, https://github.com/pulumi/pulumi-dnsimple
8
8
  Keywords: pulumi,dnsimple
9
- Requires-Python: >=3.7
9
+ Requires-Python: >=3.8
10
10
  Description-Content-Type: text/markdown
11
11
  Requires-Dist: parver>=0.2.1
12
12
  Requires-Dist: pulumi<4.0.0,>=3.0.0
@@ -4,8 +4,8 @@
4
4
  dependencies = ["parver>=0.2.1", "pulumi>=3.0.0,<4.0.0", "semver>=2.8.1"]
5
5
  keywords = ["pulumi", "dnsimple"]
6
6
  readme = "README.md"
7
- requires-python = ">=3.7"
8
- version = "3.4.1"
7
+ requires-python = ">=3.8"
8
+ version = "3.4.3"
9
9
  [project.license]
10
10
  text = "Apache-2.0"
11
11
  [project.urls]
@@ -1,4 +0,0 @@
1
- {
2
- "resource": true,
3
- "name": "dnsimple"
4
- }