pulumi-ns1 3.0.0a1679049361__tar.gz → 3.0.2__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.
Files changed (37) hide show
  1. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/PKG-INFO +2 -1
  2. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/_inputs.py +40 -0
  3. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/api_key.py +70 -0
  4. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/outputs.py +40 -0
  5. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/user.py +88 -0
  6. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1.egg-info/PKG-INFO +2 -1
  7. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/setup.py +3 -2
  8. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/README.md +0 -0
  9. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/__init__.py +0 -0
  10. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/_utilities.py +0 -0
  11. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/application.py +0 -0
  12. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/config/__init__.py +0 -0
  13. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/config/vars.py +0 -0
  14. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/data_feed.py +0 -0
  15. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/data_source.py +0 -0
  16. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/dnsview.py +0 -0
  17. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/get_dns_sec.py +0 -0
  18. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/get_networks.py +0 -0
  19. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/get_record.py +0 -0
  20. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/get_zone.py +0 -0
  21. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/monitoring_job.py +0 -0
  22. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/notify_list.py +0 -0
  23. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/provider.py +0 -0
  24. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/pulsar_job.py +0 -0
  25. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/pulumi-plugin.json +0 -0
  26. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/py.typed +0 -0
  27. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/record.py +0 -0
  28. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/subnet.py +0 -0
  29. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/team.py +0 -0
  30. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/tsigkey.py +0 -0
  31. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1/zone.py +0 -0
  32. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1.egg-info/SOURCES.txt +0 -0
  33. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1.egg-info/dependency_links.txt +0 -0
  34. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1.egg-info/not-zip-safe +0 -0
  35. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1.egg-info/requires.txt +0 -0
  36. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/pulumi_ns1.egg-info/top_level.txt +0 -0
  37. {pulumi_ns1-3.0.0a1679049361 → pulumi_ns1-3.0.2}/setup.cfg +0 -0
@@ -1,12 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_ns1
3
- Version: 3.0.0a1679049361
3
+ Version: 3.0.2
4
4
  Summary: A Pulumi package for creating and managing ns1 cloud resources.
5
5
  Home-page: https://pulumi.io
6
6
  License: Apache-2.0
7
7
  Project-URL: Repository, https://github.com/pulumi/pulumi-ns1
8
8
  Keywords: pulumi ns1
9
9
  Platform: UNKNOWN
10
+ Requires-Python: >=3.7
10
11
  Description-Content-Type: text/markdown
11
12
 
12
13
  [![Actions Status](https://github.com/pulumi/pulumi-ns1/workflows/master/badge.svg)](https://github.com/pulumi/pulumi-ns1/actions)
@@ -481,6 +481,26 @@ class RecordAnswerArgs:
481
481
  region: Optional[pulumi.Input[str]] = None):
482
482
  """
483
483
  :param pulumi.Input[str] answer: Space delimited string of RDATA fields dependent on the record type.
484
+
485
+ A:
486
+
487
+ answer = "1.2.3.4"
488
+
489
+ CNAME:
490
+
491
+ answer = "www.example.com"
492
+
493
+ MX:
494
+
495
+ answer = "5 mail.example.com"
496
+
497
+ SRV:
498
+
499
+ answer = "10 0 2380 node-1.example.com"
500
+
501
+ SPF:
502
+
503
+ answer = "v=DKIM1; k=rsa; p=XXXXXXXX"
484
504
  :param pulumi.Input[str] region: The region (Answer Group really) that this answer
485
505
  belongs to. This should be one of the names specified in `regions`. Only a
486
506
  single `region` per answer is currently supported. If you want an answer in
@@ -501,6 +521,26 @@ class RecordAnswerArgs:
501
521
  def answer(self) -> Optional[pulumi.Input[str]]:
502
522
  """
503
523
  Space delimited string of RDATA fields dependent on the record type.
524
+
525
+ A:
526
+
527
+ answer = "1.2.3.4"
528
+
529
+ CNAME:
530
+
531
+ answer = "www.example.com"
532
+
533
+ MX:
534
+
535
+ answer = "5 mail.example.com"
536
+
537
+ SRV:
538
+
539
+ answer = "10 0 2380 node-1.example.com"
540
+
541
+ SPF:
542
+
543
+ answer = "v=DKIM1; k=rsa; p=XXXXXXXX"
504
544
  """
505
545
  return pulumi.get(self, "answer")
506
546
 
@@ -1134,6 +1134,41 @@ class APIKey(pulumi.CustomResource):
1134
1134
  teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1135
1135
  __props__=None):
1136
1136
  """
1137
+ Provides a NS1 Api Key resource. This can be used to create, modify, and delete api keys.
1138
+
1139
+ ## Example Usage
1140
+
1141
+ ```python
1142
+ import pulumi
1143
+ import pulumi_ns1 as ns1
1144
+
1145
+ example_team = ns1.Team("exampleTeam")
1146
+ example_api_key = ns1.APIKey("exampleAPIKey",
1147
+ teams=[example_team.id],
1148
+ ip_whitelists=[
1149
+ "1.1.1.1",
1150
+ "2.2.2.2",
1151
+ ],
1152
+ dns_view_zones=False,
1153
+ account_manage_users=False)
1154
+ ```
1155
+ ## Permissions
1156
+
1157
+ An API key will inherit permissions from the teams it is assigned to.
1158
+ If a key is assigned to a team and also has individual permissions set on the key, the individual permissions
1159
+ will be overridden by the inherited team permissions.
1160
+ In a future release, setting permissions on a key that is part of a team will be explicitly disabled.
1161
+
1162
+ When a key is removed from all teams completely, it will inherit whatever permissions it had previously.
1163
+ If a key is removed from all it's teams, it will probably be necessary to run `pulumi up` a second time
1164
+ to update the keys permissions from it's old team permissions to new key-specific permissions.
1165
+
1166
+ See [the NS1 API docs](https://ns1.com/api#getget-all-account-users) for an overview of permission semantics or for [more details](https://help.ns1.com/hc/en-us/articles/360024409034-Managing-user-permissions) about the individual permission flags.
1167
+
1168
+ ## NS1 Documentation
1169
+
1170
+ [ApiKeys Api Doc](https://ns1.com/api#api-key)
1171
+
1137
1172
  ## Import
1138
1173
 
1139
1174
  ```sh
@@ -1193,6 +1228,41 @@ class APIKey(pulumi.CustomResource):
1193
1228
  args: Optional[APIKeyArgs] = None,
1194
1229
  opts: Optional[pulumi.ResourceOptions] = None):
1195
1230
  """
1231
+ Provides a NS1 Api Key resource. This can be used to create, modify, and delete api keys.
1232
+
1233
+ ## Example Usage
1234
+
1235
+ ```python
1236
+ import pulumi
1237
+ import pulumi_ns1 as ns1
1238
+
1239
+ example_team = ns1.Team("exampleTeam")
1240
+ example_api_key = ns1.APIKey("exampleAPIKey",
1241
+ teams=[example_team.id],
1242
+ ip_whitelists=[
1243
+ "1.1.1.1",
1244
+ "2.2.2.2",
1245
+ ],
1246
+ dns_view_zones=False,
1247
+ account_manage_users=False)
1248
+ ```
1249
+ ## Permissions
1250
+
1251
+ An API key will inherit permissions from the teams it is assigned to.
1252
+ If a key is assigned to a team and also has individual permissions set on the key, the individual permissions
1253
+ will be overridden by the inherited team permissions.
1254
+ In a future release, setting permissions on a key that is part of a team will be explicitly disabled.
1255
+
1256
+ When a key is removed from all teams completely, it will inherit whatever permissions it had previously.
1257
+ If a key is removed from all it's teams, it will probably be necessary to run `pulumi up` a second time
1258
+ to update the keys permissions from it's old team permissions to new key-specific permissions.
1259
+
1260
+ See [the NS1 API docs](https://ns1.com/api#getget-all-account-users) for an overview of permission semantics or for [more details](https://help.ns1.com/hc/en-us/articles/360024409034-Managing-user-permissions) about the individual permission flags.
1261
+
1262
+ ## NS1 Documentation
1263
+
1264
+ [ApiKeys Api Doc](https://ns1.com/api#api-key)
1265
+
1196
1266
  ## Import
1197
1267
 
1198
1268
  ```sh
@@ -463,6 +463,26 @@ class RecordAnswer(dict):
463
463
  region: Optional[str] = None):
464
464
  """
465
465
  :param str answer: Space delimited string of RDATA fields dependent on the record type.
466
+
467
+ A:
468
+
469
+ answer = "1.2.3.4"
470
+
471
+ CNAME:
472
+
473
+ answer = "www.example.com"
474
+
475
+ MX:
476
+
477
+ answer = "5 mail.example.com"
478
+
479
+ SRV:
480
+
481
+ answer = "10 0 2380 node-1.example.com"
482
+
483
+ SPF:
484
+
485
+ answer = "v=DKIM1; k=rsa; p=XXXXXXXX"
466
486
  :param str region: The region (Answer Group really) that this answer
467
487
  belongs to. This should be one of the names specified in `regions`. Only a
468
488
  single `region` per answer is currently supported. If you want an answer in
@@ -483,6 +503,26 @@ class RecordAnswer(dict):
483
503
  def answer(self) -> Optional[str]:
484
504
  """
485
505
  Space delimited string of RDATA fields dependent on the record type.
506
+
507
+ A:
508
+
509
+ answer = "1.2.3.4"
510
+
511
+ CNAME:
512
+
513
+ answer = "www.example.com"
514
+
515
+ MX:
516
+
517
+ answer = "5 mail.example.com"
518
+
519
+ SRV:
520
+
521
+ answer = "10 0 2380 node-1.example.com"
522
+
523
+ SPF:
524
+
525
+ answer = "v=DKIM1; k=rsa; p=XXXXXXXX"
486
526
  """
487
527
  return pulumi.get(self, "answer")
488
528
 
@@ -1187,6 +1187,50 @@ class User(pulumi.CustomResource):
1187
1187
  username: Optional[pulumi.Input[str]] = None,
1188
1188
  __props__=None):
1189
1189
  """
1190
+ Provides a NS1 User resource. Creating a user sends an invitation email to the
1191
+ user's email address. This can be used to create, modify, and delete users.
1192
+ The credentials used must have the `manage_users` permission set.
1193
+
1194
+ ## Example Usage
1195
+
1196
+ ```python
1197
+ import pulumi
1198
+ import pulumi_ns1 as ns1
1199
+
1200
+ example_team = ns1.Team("exampleTeam",
1201
+ ip_whitelists=[
1202
+ "1.1.1.1",
1203
+ "2.2.2.2",
1204
+ ],
1205
+ dns_view_zones=False,
1206
+ account_manage_users=False)
1207
+ example_user = ns1.User("exampleUser",
1208
+ username="example_user",
1209
+ email="user@example.com",
1210
+ teams=[example_team.id],
1211
+ notify={
1212
+ "billing": False,
1213
+ })
1214
+ ```
1215
+ ## Permissions
1216
+
1217
+ A user will inherit permissions from the teams they are assigned to.
1218
+ If a user is assigned to a team and also has individual permissions set on the user, the individual permissions
1219
+ will be overridden by the inherited team permissions.
1220
+ In a future release, setting permissions on a user that is part of a team will be explicitly disabled.
1221
+
1222
+ When a user is removed from all teams completely, they will inherit whatever permissions they had previously.
1223
+ If a user is removed from all their teams, it will probably be necessary to run `pulumi up` a second time
1224
+ to update the users permissions from their old team permissions to new user-specific permissions.
1225
+
1226
+ See [this NS1 Help Center article](https://help.ns1.com/hc/en-us/articles/360024409034-Managing-user-permissions) for an overview of user permission settings.
1227
+
1228
+ ## NS1 Documentation
1229
+
1230
+ [User Api Docs](https://ns1.com/api#user)
1231
+
1232
+ [Managing user permissions](https://help.ns1.com/hc/en-us/articles/360024409034-Managing-user-permissions)
1233
+
1190
1234
  ## Import
1191
1235
 
1192
1236
  ```sh
@@ -1239,6 +1283,50 @@ class User(pulumi.CustomResource):
1239
1283
  args: UserArgs,
1240
1284
  opts: Optional[pulumi.ResourceOptions] = None):
1241
1285
  """
1286
+ Provides a NS1 User resource. Creating a user sends an invitation email to the
1287
+ user's email address. This can be used to create, modify, and delete users.
1288
+ The credentials used must have the `manage_users` permission set.
1289
+
1290
+ ## Example Usage
1291
+
1292
+ ```python
1293
+ import pulumi
1294
+ import pulumi_ns1 as ns1
1295
+
1296
+ example_team = ns1.Team("exampleTeam",
1297
+ ip_whitelists=[
1298
+ "1.1.1.1",
1299
+ "2.2.2.2",
1300
+ ],
1301
+ dns_view_zones=False,
1302
+ account_manage_users=False)
1303
+ example_user = ns1.User("exampleUser",
1304
+ username="example_user",
1305
+ email="user@example.com",
1306
+ teams=[example_team.id],
1307
+ notify={
1308
+ "billing": False,
1309
+ })
1310
+ ```
1311
+ ## Permissions
1312
+
1313
+ A user will inherit permissions from the teams they are assigned to.
1314
+ If a user is assigned to a team and also has individual permissions set on the user, the individual permissions
1315
+ will be overridden by the inherited team permissions.
1316
+ In a future release, setting permissions on a user that is part of a team will be explicitly disabled.
1317
+
1318
+ When a user is removed from all teams completely, they will inherit whatever permissions they had previously.
1319
+ If a user is removed from all their teams, it will probably be necessary to run `pulumi up` a second time
1320
+ to update the users permissions from their old team permissions to new user-specific permissions.
1321
+
1322
+ See [this NS1 Help Center article](https://help.ns1.com/hc/en-us/articles/360024409034-Managing-user-permissions) for an overview of user permission settings.
1323
+
1324
+ ## NS1 Documentation
1325
+
1326
+ [User Api Docs](https://ns1.com/api#user)
1327
+
1328
+ [Managing user permissions](https://help.ns1.com/hc/en-us/articles/360024409034-Managing-user-permissions)
1329
+
1242
1330
  ## Import
1243
1331
 
1244
1332
  ```sh
@@ -1,12 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi-ns1
3
- Version: 3.0.0a1679049361
3
+ Version: 3.0.2
4
4
  Summary: A Pulumi package for creating and managing ns1 cloud resources.
5
5
  Home-page: https://pulumi.io
6
6
  License: Apache-2.0
7
7
  Project-URL: Repository, https://github.com/pulumi/pulumi-ns1
8
8
  Keywords: pulumi ns1
9
9
  Platform: UNKNOWN
10
+ Requires-Python: >=3.7
10
11
  Description-Content-Type: text/markdown
11
12
 
12
13
  [![Actions Status](https://github.com/pulumi/pulumi-ns1/workflows/master/badge.svg)](https://github.com/pulumi/pulumi-ns1/actions)
@@ -8,8 +8,8 @@ from setuptools.command.install import install
8
8
  from subprocess import check_call
9
9
 
10
10
 
11
- VERSION = "3.0.0a1679049361"
12
- PLUGIN_VERSION = "3.0.0-alpha.1679049361+d66d8780"
11
+ VERSION = "3.0.2"
12
+ PLUGIN_VERSION = "3.0.2"
13
13
 
14
14
  class InstallPluginCommand(install):
15
15
  def run(self):
@@ -38,6 +38,7 @@ def readme():
38
38
 
39
39
 
40
40
  setup(name='pulumi_ns1',
41
+ python_requires='>=3.7',
41
42
  version=VERSION,
42
43
  description="A Pulumi package for creating and managing ns1 cloud resources.",
43
44
  long_description=readme(),