pulumi-ns1 3.2.0a1697868704__py3-none-any.whl → 3.2.0a1698198143__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.
- pulumi_ns1/_inputs.py +200 -56
- pulumi_ns1/_utilities.py +19 -0
- pulumi_ns1/account_whitelist.py +9 -29
- pulumi_ns1/api_key.py +126 -34
- pulumi_ns1/application.py +19 -37
- pulumi_ns1/data_feed.py +13 -51
- pulumi_ns1/data_source.py +9 -19
- pulumi_ns1/dnsview.py +18 -2
- pulumi_ns1/get_dns_sec.py +0 -26
- pulumi_ns1/get_networks.py +0 -18
- pulumi_ns1/get_record.py +0 -22
- pulumi_ns1/get_zone.py +0 -18
- pulumi_ns1/monitoring_job.py +46 -66
- pulumi_ns1/notify_list.py +6 -44
- pulumi_ns1/outputs.py +334 -98
- pulumi_ns1/provider.py +13 -1
- pulumi_ns1/pulsar_job.py +28 -14
- pulumi_ns1/record.py +31 -5
- pulumi_ns1/subnet.py +30 -2
- pulumi_ns1/team.py +122 -82
- pulumi_ns1/tsigkey.py +12 -24
- pulumi_ns1/user.py +132 -46
- pulumi_ns1/zone.py +31 -3
- {pulumi_ns1-3.2.0a1697868704.dist-info → pulumi_ns1-3.2.0a1698198143.dist-info}/METADATA +1 -1
- pulumi_ns1-3.2.0a1698198143.dist-info/RECORD +32 -0
- pulumi_ns1-3.2.0a1697868704.dist-info/RECORD +0 -32
- {pulumi_ns1-3.2.0a1697868704.dist-info → pulumi_ns1-3.2.0a1698198143.dist-info}/WHEEL +0 -0
- {pulumi_ns1-3.2.0a1697868704.dist-info → pulumi_ns1-3.2.0a1698198143.dist-info}/top_level.txt +0 -0
pulumi_ns1/pulsar_job.py
CHANGED
@@ -41,15 +41,27 @@ class PulsarJobArgs:
|
|
41
41
|
@staticmethod
|
42
42
|
def _configure(
|
43
43
|
_setter: Callable[[Any, Any], None],
|
44
|
-
app_id: pulumi.Input[str],
|
45
|
-
type_id: pulumi.Input[str],
|
44
|
+
app_id: Optional[pulumi.Input[str]] = None,
|
45
|
+
type_id: Optional[pulumi.Input[str]] = None,
|
46
46
|
active: Optional[pulumi.Input[bool]] = None,
|
47
47
|
blend_metric_weights: Optional[pulumi.Input['PulsarJobBlendMetricWeightsArgs']] = None,
|
48
48
|
config: Optional[pulumi.Input['PulsarJobConfigArgs']] = None,
|
49
49
|
name: Optional[pulumi.Input[str]] = None,
|
50
50
|
shared: Optional[pulumi.Input[bool]] = None,
|
51
51
|
weights: Optional[pulumi.Input[Sequence[pulumi.Input['PulsarJobWeightArgs']]]] = None,
|
52
|
-
opts: Optional[pulumi.ResourceOptions]=None
|
52
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
53
|
+
**kwargs):
|
54
|
+
if app_id is None and 'appId' in kwargs:
|
55
|
+
app_id = kwargs['appId']
|
56
|
+
if app_id is None:
|
57
|
+
raise TypeError("Missing 'app_id' argument")
|
58
|
+
if type_id is None and 'typeId' in kwargs:
|
59
|
+
type_id = kwargs['typeId']
|
60
|
+
if type_id is None:
|
61
|
+
raise TypeError("Missing 'type_id' argument")
|
62
|
+
if blend_metric_weights is None and 'blendMetricWeights' in kwargs:
|
63
|
+
blend_metric_weights = kwargs['blendMetricWeights']
|
64
|
+
|
53
65
|
_setter("app_id", app_id)
|
54
66
|
_setter("type_id", type_id)
|
55
67
|
if active is not None:
|
@@ -183,7 +195,17 @@ class _PulsarJobState:
|
|
183
195
|
shared: Optional[pulumi.Input[bool]] = None,
|
184
196
|
type_id: Optional[pulumi.Input[str]] = None,
|
185
197
|
weights: Optional[pulumi.Input[Sequence[pulumi.Input['PulsarJobWeightArgs']]]] = None,
|
186
|
-
opts: Optional[pulumi.ResourceOptions]=None
|
198
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
199
|
+
**kwargs):
|
200
|
+
if app_id is None and 'appId' in kwargs:
|
201
|
+
app_id = kwargs['appId']
|
202
|
+
if blend_metric_weights is None and 'blendMetricWeights' in kwargs:
|
203
|
+
blend_metric_weights = kwargs['blendMetricWeights']
|
204
|
+
if job_id is None and 'jobId' in kwargs:
|
205
|
+
job_id = kwargs['jobId']
|
206
|
+
if type_id is None and 'typeId' in kwargs:
|
207
|
+
type_id = kwargs['typeId']
|
208
|
+
|
187
209
|
if active is not None:
|
188
210
|
_setter("active", active)
|
189
211
|
if app_id is not None:
|
@@ -374,17 +396,9 @@ class PulsarJob(pulumi.CustomResource):
|
|
374
396
|
if app_id is None and not opts.urn:
|
375
397
|
raise TypeError("Missing required property 'app_id'")
|
376
398
|
__props__.__dict__["app_id"] = app_id
|
377
|
-
|
378
|
-
blend_metric_weights = blend_metric_weights or {}
|
379
|
-
def _setter(key, value):
|
380
|
-
blend_metric_weights[key] = value
|
381
|
-
PulsarJobBlendMetricWeightsArgs._configure(_setter, **blend_metric_weights)
|
399
|
+
blend_metric_weights = _utilities.configure(blend_metric_weights, PulsarJobBlendMetricWeightsArgs, True)
|
382
400
|
__props__.__dict__["blend_metric_weights"] = blend_metric_weights
|
383
|
-
|
384
|
-
config = config or {}
|
385
|
-
def _setter(key, value):
|
386
|
-
config[key] = value
|
387
|
-
PulsarJobConfigArgs._configure(_setter, **config)
|
401
|
+
config = _utilities.configure(config, PulsarJobConfigArgs, True)
|
388
402
|
__props__.__dict__["config"] = config
|
389
403
|
__props__.__dict__["name"] = name
|
390
404
|
__props__.__dict__["shared"] = shared
|
pulumi_ns1/record.py
CHANGED
@@ -73,9 +73,9 @@ class RecordArgs:
|
|
73
73
|
@staticmethod
|
74
74
|
def _configure(
|
75
75
|
_setter: Callable[[Any, Any], None],
|
76
|
-
domain: pulumi.Input[str],
|
77
|
-
type: pulumi.Input[str],
|
78
|
-
zone: pulumi.Input[str],
|
76
|
+
domain: Optional[pulumi.Input[str]] = None,
|
77
|
+
type: Optional[pulumi.Input[str]] = None,
|
78
|
+
zone: Optional[pulumi.Input[str]] = None,
|
79
79
|
answers: Optional[pulumi.Input[Sequence[pulumi.Input['RecordAnswerArgs']]]] = None,
|
80
80
|
blocked_tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
81
81
|
filters: Optional[pulumi.Input[Sequence[pulumi.Input['RecordFilterArgs']]]] = None,
|
@@ -87,7 +87,23 @@ class RecordArgs:
|
|
87
87
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
88
88
|
ttl: Optional[pulumi.Input[int]] = None,
|
89
89
|
use_client_subnet: Optional[pulumi.Input[bool]] = None,
|
90
|
-
opts: Optional[pulumi.ResourceOptions]=None
|
90
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
91
|
+
**kwargs):
|
92
|
+
if domain is None:
|
93
|
+
raise TypeError("Missing 'domain' argument")
|
94
|
+
if type is None:
|
95
|
+
raise TypeError("Missing 'type' argument")
|
96
|
+
if zone is None:
|
97
|
+
raise TypeError("Missing 'zone' argument")
|
98
|
+
if blocked_tags is None and 'blockedTags' in kwargs:
|
99
|
+
blocked_tags = kwargs['blockedTags']
|
100
|
+
if override_ttl is None and 'overrideTtl' in kwargs:
|
101
|
+
override_ttl = kwargs['overrideTtl']
|
102
|
+
if short_answers is None and 'shortAnswers' in kwargs:
|
103
|
+
short_answers = kwargs['shortAnswers']
|
104
|
+
if use_client_subnet is None and 'useClientSubnet' in kwargs:
|
105
|
+
use_client_subnet = kwargs['useClientSubnet']
|
106
|
+
|
91
107
|
_setter("domain", domain)
|
92
108
|
_setter("type", type)
|
93
109
|
_setter("zone", zone)
|
@@ -359,7 +375,17 @@ class _RecordState:
|
|
359
375
|
type: Optional[pulumi.Input[str]] = None,
|
360
376
|
use_client_subnet: Optional[pulumi.Input[bool]] = None,
|
361
377
|
zone: Optional[pulumi.Input[str]] = None,
|
362
|
-
opts: Optional[pulumi.ResourceOptions]=None
|
378
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
379
|
+
**kwargs):
|
380
|
+
if blocked_tags is None and 'blockedTags' in kwargs:
|
381
|
+
blocked_tags = kwargs['blockedTags']
|
382
|
+
if override_ttl is None and 'overrideTtl' in kwargs:
|
383
|
+
override_ttl = kwargs['overrideTtl']
|
384
|
+
if short_answers is None and 'shortAnswers' in kwargs:
|
385
|
+
short_answers = kwargs['shortAnswers']
|
386
|
+
if use_client_subnet is None and 'useClientSubnet' in kwargs:
|
387
|
+
use_client_subnet = kwargs['useClientSubnet']
|
388
|
+
|
363
389
|
if answers is not None:
|
364
390
|
_setter("answers", answers)
|
365
391
|
if blocked_tags is not None:
|
pulumi_ns1/subnet.py
CHANGED
@@ -59,7 +59,21 @@ class SubnetArgs:
|
|
59
59
|
tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
60
60
|
total_addresses: Optional[pulumi.Input[str]] = None,
|
61
61
|
used_addresses: Optional[pulumi.Input[str]] = None,
|
62
|
-
opts: Optional[pulumi.ResourceOptions]=None
|
62
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
63
|
+
**kwargs):
|
64
|
+
if dhcp_scoped is None and 'dhcpScoped' in kwargs:
|
65
|
+
dhcp_scoped = kwargs['dhcpScoped']
|
66
|
+
if free_addresses is None and 'freeAddresses' in kwargs:
|
67
|
+
free_addresses = kwargs['freeAddresses']
|
68
|
+
if network_id is None and 'networkId' in kwargs:
|
69
|
+
network_id = kwargs['networkId']
|
70
|
+
if parent_id is None and 'parentId' in kwargs:
|
71
|
+
parent_id = kwargs['parentId']
|
72
|
+
if total_addresses is None and 'totalAddresses' in kwargs:
|
73
|
+
total_addresses = kwargs['totalAddresses']
|
74
|
+
if used_addresses is None and 'usedAddresses' in kwargs:
|
75
|
+
used_addresses = kwargs['usedAddresses']
|
76
|
+
|
63
77
|
if children is not None:
|
64
78
|
_setter("children", children)
|
65
79
|
if desc is not None:
|
@@ -242,7 +256,21 @@ class _SubnetState:
|
|
242
256
|
tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
243
257
|
total_addresses: Optional[pulumi.Input[str]] = None,
|
244
258
|
used_addresses: Optional[pulumi.Input[str]] = None,
|
245
|
-
opts: Optional[pulumi.ResourceOptions]=None
|
259
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
260
|
+
**kwargs):
|
261
|
+
if dhcp_scoped is None and 'dhcpScoped' in kwargs:
|
262
|
+
dhcp_scoped = kwargs['dhcpScoped']
|
263
|
+
if free_addresses is None and 'freeAddresses' in kwargs:
|
264
|
+
free_addresses = kwargs['freeAddresses']
|
265
|
+
if network_id is None and 'networkId' in kwargs:
|
266
|
+
network_id = kwargs['networkId']
|
267
|
+
if parent_id is None and 'parentId' in kwargs:
|
268
|
+
parent_id = kwargs['parentId']
|
269
|
+
if total_addresses is None and 'totalAddresses' in kwargs:
|
270
|
+
total_addresses = kwargs['totalAddresses']
|
271
|
+
if used_addresses is None and 'usedAddresses' in kwargs:
|
272
|
+
used_addresses = kwargs['usedAddresses']
|
273
|
+
|
246
274
|
if children is not None:
|
247
275
|
_setter("children", children)
|
248
276
|
if desc is not None:
|
pulumi_ns1/team.py
CHANGED
@@ -150,7 +150,67 @@ class TeamArgs:
|
|
150
150
|
name: Optional[pulumi.Input[str]] = None,
|
151
151
|
security_manage_active_directory: Optional[pulumi.Input[bool]] = None,
|
152
152
|
security_manage_global2fa: Optional[pulumi.Input[bool]] = None,
|
153
|
-
opts: Optional[pulumi.ResourceOptions]=None
|
153
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
154
|
+
**kwargs):
|
155
|
+
if account_manage_account_settings is None and 'accountManageAccountSettings' in kwargs:
|
156
|
+
account_manage_account_settings = kwargs['accountManageAccountSettings']
|
157
|
+
if account_manage_apikeys is None and 'accountManageApikeys' in kwargs:
|
158
|
+
account_manage_apikeys = kwargs['accountManageApikeys']
|
159
|
+
if account_manage_ip_whitelist is None and 'accountManageIpWhitelist' in kwargs:
|
160
|
+
account_manage_ip_whitelist = kwargs['accountManageIpWhitelist']
|
161
|
+
if account_manage_payment_methods is None and 'accountManagePaymentMethods' in kwargs:
|
162
|
+
account_manage_payment_methods = kwargs['accountManagePaymentMethods']
|
163
|
+
if account_manage_plan is None and 'accountManagePlan' in kwargs:
|
164
|
+
account_manage_plan = kwargs['accountManagePlan']
|
165
|
+
if account_manage_teams is None and 'accountManageTeams' in kwargs:
|
166
|
+
account_manage_teams = kwargs['accountManageTeams']
|
167
|
+
if account_manage_users is None and 'accountManageUsers' in kwargs:
|
168
|
+
account_manage_users = kwargs['accountManageUsers']
|
169
|
+
if account_view_activity_log is None and 'accountViewActivityLog' in kwargs:
|
170
|
+
account_view_activity_log = kwargs['accountViewActivityLog']
|
171
|
+
if account_view_invoices is None and 'accountViewInvoices' in kwargs:
|
172
|
+
account_view_invoices = kwargs['accountViewInvoices']
|
173
|
+
if data_manage_datafeeds is None and 'dataManageDatafeeds' in kwargs:
|
174
|
+
data_manage_datafeeds = kwargs['dataManageDatafeeds']
|
175
|
+
if data_manage_datasources is None and 'dataManageDatasources' in kwargs:
|
176
|
+
data_manage_datasources = kwargs['dataManageDatasources']
|
177
|
+
if data_push_to_datafeeds is None and 'dataPushToDatafeeds' in kwargs:
|
178
|
+
data_push_to_datafeeds = kwargs['dataPushToDatafeeds']
|
179
|
+
if dhcp_manage_dhcp is None and 'dhcpManageDhcp' in kwargs:
|
180
|
+
dhcp_manage_dhcp = kwargs['dhcpManageDhcp']
|
181
|
+
if dhcp_view_dhcp is None and 'dhcpViewDhcp' in kwargs:
|
182
|
+
dhcp_view_dhcp = kwargs['dhcpViewDhcp']
|
183
|
+
if dns_manage_zones is None and 'dnsManageZones' in kwargs:
|
184
|
+
dns_manage_zones = kwargs['dnsManageZones']
|
185
|
+
if dns_records_allows is None and 'dnsRecordsAllows' in kwargs:
|
186
|
+
dns_records_allows = kwargs['dnsRecordsAllows']
|
187
|
+
if dns_records_denies is None and 'dnsRecordsDenies' in kwargs:
|
188
|
+
dns_records_denies = kwargs['dnsRecordsDenies']
|
189
|
+
if dns_view_zones is None and 'dnsViewZones' in kwargs:
|
190
|
+
dns_view_zones = kwargs['dnsViewZones']
|
191
|
+
if dns_zones_allow_by_default is None and 'dnsZonesAllowByDefault' in kwargs:
|
192
|
+
dns_zones_allow_by_default = kwargs['dnsZonesAllowByDefault']
|
193
|
+
if dns_zones_allows is None and 'dnsZonesAllows' in kwargs:
|
194
|
+
dns_zones_allows = kwargs['dnsZonesAllows']
|
195
|
+
if dns_zones_denies is None and 'dnsZonesDenies' in kwargs:
|
196
|
+
dns_zones_denies = kwargs['dnsZonesDenies']
|
197
|
+
if ip_whitelists is None and 'ipWhitelists' in kwargs:
|
198
|
+
ip_whitelists = kwargs['ipWhitelists']
|
199
|
+
if ipam_manage_ipam is None and 'ipamManageIpam' in kwargs:
|
200
|
+
ipam_manage_ipam = kwargs['ipamManageIpam']
|
201
|
+
if ipam_view_ipam is None and 'ipamViewIpam' in kwargs:
|
202
|
+
ipam_view_ipam = kwargs['ipamViewIpam']
|
203
|
+
if monitoring_manage_jobs is None and 'monitoringManageJobs' in kwargs:
|
204
|
+
monitoring_manage_jobs = kwargs['monitoringManageJobs']
|
205
|
+
if monitoring_manage_lists is None and 'monitoringManageLists' in kwargs:
|
206
|
+
monitoring_manage_lists = kwargs['monitoringManageLists']
|
207
|
+
if monitoring_view_jobs is None and 'monitoringViewJobs' in kwargs:
|
208
|
+
monitoring_view_jobs = kwargs['monitoringViewJobs']
|
209
|
+
if security_manage_active_directory is None and 'securityManageActiveDirectory' in kwargs:
|
210
|
+
security_manage_active_directory = kwargs['securityManageActiveDirectory']
|
211
|
+
if security_manage_global2fa is None and 'securityManageGlobal2fa' in kwargs:
|
212
|
+
security_manage_global2fa = kwargs['securityManageGlobal2fa']
|
213
|
+
|
154
214
|
if account_manage_account_settings is not None:
|
155
215
|
_setter("account_manage_account_settings", account_manage_account_settings)
|
156
216
|
if account_manage_apikeys is not None:
|
@@ -721,7 +781,67 @@ class _TeamState:
|
|
721
781
|
name: Optional[pulumi.Input[str]] = None,
|
722
782
|
security_manage_active_directory: Optional[pulumi.Input[bool]] = None,
|
723
783
|
security_manage_global2fa: Optional[pulumi.Input[bool]] = None,
|
724
|
-
opts: Optional[pulumi.ResourceOptions]=None
|
784
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
785
|
+
**kwargs):
|
786
|
+
if account_manage_account_settings is None and 'accountManageAccountSettings' in kwargs:
|
787
|
+
account_manage_account_settings = kwargs['accountManageAccountSettings']
|
788
|
+
if account_manage_apikeys is None and 'accountManageApikeys' in kwargs:
|
789
|
+
account_manage_apikeys = kwargs['accountManageApikeys']
|
790
|
+
if account_manage_ip_whitelist is None and 'accountManageIpWhitelist' in kwargs:
|
791
|
+
account_manage_ip_whitelist = kwargs['accountManageIpWhitelist']
|
792
|
+
if account_manage_payment_methods is None and 'accountManagePaymentMethods' in kwargs:
|
793
|
+
account_manage_payment_methods = kwargs['accountManagePaymentMethods']
|
794
|
+
if account_manage_plan is None and 'accountManagePlan' in kwargs:
|
795
|
+
account_manage_plan = kwargs['accountManagePlan']
|
796
|
+
if account_manage_teams is None and 'accountManageTeams' in kwargs:
|
797
|
+
account_manage_teams = kwargs['accountManageTeams']
|
798
|
+
if account_manage_users is None and 'accountManageUsers' in kwargs:
|
799
|
+
account_manage_users = kwargs['accountManageUsers']
|
800
|
+
if account_view_activity_log is None and 'accountViewActivityLog' in kwargs:
|
801
|
+
account_view_activity_log = kwargs['accountViewActivityLog']
|
802
|
+
if account_view_invoices is None and 'accountViewInvoices' in kwargs:
|
803
|
+
account_view_invoices = kwargs['accountViewInvoices']
|
804
|
+
if data_manage_datafeeds is None and 'dataManageDatafeeds' in kwargs:
|
805
|
+
data_manage_datafeeds = kwargs['dataManageDatafeeds']
|
806
|
+
if data_manage_datasources is None and 'dataManageDatasources' in kwargs:
|
807
|
+
data_manage_datasources = kwargs['dataManageDatasources']
|
808
|
+
if data_push_to_datafeeds is None and 'dataPushToDatafeeds' in kwargs:
|
809
|
+
data_push_to_datafeeds = kwargs['dataPushToDatafeeds']
|
810
|
+
if dhcp_manage_dhcp is None and 'dhcpManageDhcp' in kwargs:
|
811
|
+
dhcp_manage_dhcp = kwargs['dhcpManageDhcp']
|
812
|
+
if dhcp_view_dhcp is None and 'dhcpViewDhcp' in kwargs:
|
813
|
+
dhcp_view_dhcp = kwargs['dhcpViewDhcp']
|
814
|
+
if dns_manage_zones is None and 'dnsManageZones' in kwargs:
|
815
|
+
dns_manage_zones = kwargs['dnsManageZones']
|
816
|
+
if dns_records_allows is None and 'dnsRecordsAllows' in kwargs:
|
817
|
+
dns_records_allows = kwargs['dnsRecordsAllows']
|
818
|
+
if dns_records_denies is None and 'dnsRecordsDenies' in kwargs:
|
819
|
+
dns_records_denies = kwargs['dnsRecordsDenies']
|
820
|
+
if dns_view_zones is None and 'dnsViewZones' in kwargs:
|
821
|
+
dns_view_zones = kwargs['dnsViewZones']
|
822
|
+
if dns_zones_allow_by_default is None and 'dnsZonesAllowByDefault' in kwargs:
|
823
|
+
dns_zones_allow_by_default = kwargs['dnsZonesAllowByDefault']
|
824
|
+
if dns_zones_allows is None and 'dnsZonesAllows' in kwargs:
|
825
|
+
dns_zones_allows = kwargs['dnsZonesAllows']
|
826
|
+
if dns_zones_denies is None and 'dnsZonesDenies' in kwargs:
|
827
|
+
dns_zones_denies = kwargs['dnsZonesDenies']
|
828
|
+
if ip_whitelists is None and 'ipWhitelists' in kwargs:
|
829
|
+
ip_whitelists = kwargs['ipWhitelists']
|
830
|
+
if ipam_manage_ipam is None and 'ipamManageIpam' in kwargs:
|
831
|
+
ipam_manage_ipam = kwargs['ipamManageIpam']
|
832
|
+
if ipam_view_ipam is None and 'ipamViewIpam' in kwargs:
|
833
|
+
ipam_view_ipam = kwargs['ipamViewIpam']
|
834
|
+
if monitoring_manage_jobs is None and 'monitoringManageJobs' in kwargs:
|
835
|
+
monitoring_manage_jobs = kwargs['monitoringManageJobs']
|
836
|
+
if monitoring_manage_lists is None and 'monitoringManageLists' in kwargs:
|
837
|
+
monitoring_manage_lists = kwargs['monitoringManageLists']
|
838
|
+
if monitoring_view_jobs is None and 'monitoringViewJobs' in kwargs:
|
839
|
+
monitoring_view_jobs = kwargs['monitoringViewJobs']
|
840
|
+
if security_manage_active_directory is None and 'securityManageActiveDirectory' in kwargs:
|
841
|
+
security_manage_active_directory = kwargs['securityManageActiveDirectory']
|
842
|
+
if security_manage_global2fa is None and 'securityManageGlobal2fa' in kwargs:
|
843
|
+
security_manage_global2fa = kwargs['securityManageGlobal2fa']
|
844
|
+
|
725
845
|
if account_manage_account_settings is not None:
|
726
846
|
_setter("account_manage_account_settings", account_manage_account_settings)
|
727
847
|
if account_manage_apikeys is not None:
|
@@ -1195,46 +1315,6 @@ class Team(pulumi.CustomResource):
|
|
1195
1315
|
Provides a NS1 Team resource. This can be used to create, modify, and delete
|
1196
1316
|
teams. The credentials used must have the `manage_teams` permission set.
|
1197
1317
|
|
1198
|
-
## Example Usage
|
1199
|
-
|
1200
|
-
```python
|
1201
|
-
import pulumi
|
1202
|
-
import pulumi_ns1 as ns1
|
1203
|
-
|
1204
|
-
# Create a new NS1 Team
|
1205
|
-
example = ns1.Team("example",
|
1206
|
-
account_manage_users=False,
|
1207
|
-
dns_view_zones=False,
|
1208
|
-
ip_whitelists=[
|
1209
|
-
ns1.TeamIpWhitelistArgs(
|
1210
|
-
name="whitelist-1",
|
1211
|
-
values=[
|
1212
|
-
"1.1.1.1",
|
1213
|
-
"2.2.2.2",
|
1214
|
-
],
|
1215
|
-
),
|
1216
|
-
ns1.TeamIpWhitelistArgs(
|
1217
|
-
name="whitelist-2",
|
1218
|
-
values=[
|
1219
|
-
"3.3.3.3",
|
1220
|
-
"4.4.4.4",
|
1221
|
-
],
|
1222
|
-
),
|
1223
|
-
])
|
1224
|
-
# Another team
|
1225
|
-
example2 = ns1.Team("example2",
|
1226
|
-
data_manage_datasources=True,
|
1227
|
-
dns_records_allows=[ns1.TeamDnsRecordsAllowArgs(
|
1228
|
-
domain="terraform.example.io",
|
1229
|
-
include_subdomains=False,
|
1230
|
-
type="A",
|
1231
|
-
zone="example.io",
|
1232
|
-
)],
|
1233
|
-
dns_view_zones=True,
|
1234
|
-
dns_zones_allows=["mytest.zone"],
|
1235
|
-
dns_zones_allow_by_default=True,
|
1236
|
-
dns_zones_denies=["myother.zone"])
|
1237
|
-
```
|
1238
1318
|
## NS1 Documentation
|
1239
1319
|
|
1240
1320
|
[Team Api Docs](https://ns1.com/api#team)
|
@@ -1293,46 +1373,6 @@ class Team(pulumi.CustomResource):
|
|
1293
1373
|
Provides a NS1 Team resource. This can be used to create, modify, and delete
|
1294
1374
|
teams. The credentials used must have the `manage_teams` permission set.
|
1295
1375
|
|
1296
|
-
## Example Usage
|
1297
|
-
|
1298
|
-
```python
|
1299
|
-
import pulumi
|
1300
|
-
import pulumi_ns1 as ns1
|
1301
|
-
|
1302
|
-
# Create a new NS1 Team
|
1303
|
-
example = ns1.Team("example",
|
1304
|
-
account_manage_users=False,
|
1305
|
-
dns_view_zones=False,
|
1306
|
-
ip_whitelists=[
|
1307
|
-
ns1.TeamIpWhitelistArgs(
|
1308
|
-
name="whitelist-1",
|
1309
|
-
values=[
|
1310
|
-
"1.1.1.1",
|
1311
|
-
"2.2.2.2",
|
1312
|
-
],
|
1313
|
-
),
|
1314
|
-
ns1.TeamIpWhitelistArgs(
|
1315
|
-
name="whitelist-2",
|
1316
|
-
values=[
|
1317
|
-
"3.3.3.3",
|
1318
|
-
"4.4.4.4",
|
1319
|
-
],
|
1320
|
-
),
|
1321
|
-
])
|
1322
|
-
# Another team
|
1323
|
-
example2 = ns1.Team("example2",
|
1324
|
-
data_manage_datasources=True,
|
1325
|
-
dns_records_allows=[ns1.TeamDnsRecordsAllowArgs(
|
1326
|
-
domain="terraform.example.io",
|
1327
|
-
include_subdomains=False,
|
1328
|
-
type="A",
|
1329
|
-
zone="example.io",
|
1330
|
-
)],
|
1331
|
-
dns_view_zones=True,
|
1332
|
-
dns_zones_allows=["mytest.zone"],
|
1333
|
-
dns_zones_allow_by_default=True,
|
1334
|
-
dns_zones_denies=["myother.zone"])
|
1335
|
-
```
|
1336
1376
|
## NS1 Documentation
|
1337
1377
|
|
1338
1378
|
[Team Api Docs](https://ns1.com/api#team)
|
pulumi_ns1/tsigkey.py
CHANGED
@@ -32,10 +32,16 @@ class TsigkeyArgs:
|
|
32
32
|
@staticmethod
|
33
33
|
def _configure(
|
34
34
|
_setter: Callable[[Any, Any], None],
|
35
|
-
algorithm: pulumi.Input[str],
|
36
|
-
secret: pulumi.Input[str],
|
35
|
+
algorithm: Optional[pulumi.Input[str]] = None,
|
36
|
+
secret: Optional[pulumi.Input[str]] = None,
|
37
37
|
name: Optional[pulumi.Input[str]] = None,
|
38
|
-
opts: Optional[pulumi.ResourceOptions]=None
|
38
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
39
|
+
**kwargs):
|
40
|
+
if algorithm is None:
|
41
|
+
raise TypeError("Missing 'algorithm' argument")
|
42
|
+
if secret is None:
|
43
|
+
raise TypeError("Missing 'secret' argument")
|
44
|
+
|
39
45
|
_setter("algorithm", algorithm)
|
40
46
|
_setter("secret", secret)
|
41
47
|
if name is not None:
|
@@ -102,7 +108,9 @@ class _TsigkeyState:
|
|
102
108
|
algorithm: Optional[pulumi.Input[str]] = None,
|
103
109
|
name: Optional[pulumi.Input[str]] = None,
|
104
110
|
secret: Optional[pulumi.Input[str]] = None,
|
105
|
-
opts: Optional[pulumi.ResourceOptions]=None
|
111
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
112
|
+
**kwargs):
|
113
|
+
|
106
114
|
if algorithm is not None:
|
107
115
|
_setter("algorithm", algorithm)
|
108
116
|
if name is not None:
|
@@ -159,16 +167,6 @@ class Tsigkey(pulumi.CustomResource):
|
|
159
167
|
"""
|
160
168
|
Provides a NS1 TSIG Key resource. This can be used to create, modify, and delete TSIG keys.
|
161
169
|
|
162
|
-
## Example Usage
|
163
|
-
|
164
|
-
```python
|
165
|
-
import pulumi
|
166
|
-
import pulumi_ns1 as ns1
|
167
|
-
|
168
|
-
example = ns1.Tsigkey("example",
|
169
|
-
algorithm="hmac-sha256",
|
170
|
-
secret="Ok1qR5IW1ajVka5cHPEJQIXfLyx5V3PSkFBROAzOn21JumDq6nIpoj6H8rfj5Uo+Ok55ZWQ0Wgrf302fDscHLA==")
|
171
|
-
```
|
172
170
|
## NS1 Documentation
|
173
171
|
|
174
172
|
[TSIG Keys Api Doc](https://ns1.com/api/#tsig)
|
@@ -194,16 +192,6 @@ class Tsigkey(pulumi.CustomResource):
|
|
194
192
|
"""
|
195
193
|
Provides a NS1 TSIG Key resource. This can be used to create, modify, and delete TSIG keys.
|
196
194
|
|
197
|
-
## Example Usage
|
198
|
-
|
199
|
-
```python
|
200
|
-
import pulumi
|
201
|
-
import pulumi_ns1 as ns1
|
202
|
-
|
203
|
-
example = ns1.Tsigkey("example",
|
204
|
-
algorithm="hmac-sha256",
|
205
|
-
secret="Ok1qR5IW1ajVka5cHPEJQIXfLyx5V3PSkFBROAzOn21JumDq6nIpoj6H8rfj5Uo+Ok55ZWQ0Wgrf302fDscHLA==")
|
206
|
-
```
|
207
195
|
## NS1 Documentation
|
208
196
|
|
209
197
|
[TSIG Keys Api Doc](https://ns1.com/api/#tsig)
|