pulumi-ns1 3.6.0a1743574169__py3-none-any.whl → 3.6.1__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/__init__.py +1 -0
- pulumi_ns1/get_billing_usage.py +398 -0
- pulumi_ns1/outputs.py +126 -0
- pulumi_ns1/pulumi-plugin.json +1 -1
- {pulumi_ns1-3.6.0a1743574169.dist-info → pulumi_ns1-3.6.1.dist-info}/METADATA +1 -1
- {pulumi_ns1-3.6.0a1743574169.dist-info → pulumi_ns1-3.6.1.dist-info}/RECORD +8 -7
- {pulumi_ns1-3.6.0a1743574169.dist-info → pulumi_ns1-3.6.1.dist-info}/WHEEL +0 -0
- {pulumi_ns1-3.6.0a1743574169.dist-info → pulumi_ns1-3.6.1.dist-info}/top_level.txt +0 -0
pulumi_ns1/__init__.py
CHANGED
@@ -0,0 +1,398 @@
|
|
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 sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
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
|
15
|
+
from . import _utilities
|
16
|
+
from . import outputs
|
17
|
+
|
18
|
+
__all__ = [
|
19
|
+
'GetBillingUsageResult',
|
20
|
+
'AwaitableGetBillingUsageResult',
|
21
|
+
'get_billing_usage',
|
22
|
+
'get_billing_usage_output',
|
23
|
+
]
|
24
|
+
|
25
|
+
@pulumi.output_type
|
26
|
+
class GetBillingUsageResult:
|
27
|
+
"""
|
28
|
+
A collection of values returned by getBillingUsage.
|
29
|
+
"""
|
30
|
+
def __init__(__self__, by_networks=None, china_queries_limit=None, clean_queries=None, ddos_protection_enabled=None, ddos_queries=None, decisions_limit=None, filter_chains_limit=None, from_=None, id=None, include_dedicated_dns_network_in_managed_dns_usage=None, metric_type=None, monitors_limit=None, nxd_protection_enabled=None, nxd_responses=None, queries_limit=None, records_limit=None, to=None, total_usage=None):
|
31
|
+
if by_networks and not isinstance(by_networks, list):
|
32
|
+
raise TypeError("Expected argument 'by_networks' to be a list")
|
33
|
+
pulumi.set(__self__, "by_networks", by_networks)
|
34
|
+
if china_queries_limit and not isinstance(china_queries_limit, int):
|
35
|
+
raise TypeError("Expected argument 'china_queries_limit' to be a int")
|
36
|
+
pulumi.set(__self__, "china_queries_limit", china_queries_limit)
|
37
|
+
if clean_queries and not isinstance(clean_queries, int):
|
38
|
+
raise TypeError("Expected argument 'clean_queries' to be a int")
|
39
|
+
pulumi.set(__self__, "clean_queries", clean_queries)
|
40
|
+
if ddos_protection_enabled and not isinstance(ddos_protection_enabled, bool):
|
41
|
+
raise TypeError("Expected argument 'ddos_protection_enabled' to be a bool")
|
42
|
+
pulumi.set(__self__, "ddos_protection_enabled", ddos_protection_enabled)
|
43
|
+
if ddos_queries and not isinstance(ddos_queries, int):
|
44
|
+
raise TypeError("Expected argument 'ddos_queries' to be a int")
|
45
|
+
pulumi.set(__self__, "ddos_queries", ddos_queries)
|
46
|
+
if decisions_limit and not isinstance(decisions_limit, int):
|
47
|
+
raise TypeError("Expected argument 'decisions_limit' to be a int")
|
48
|
+
pulumi.set(__self__, "decisions_limit", decisions_limit)
|
49
|
+
if filter_chains_limit and not isinstance(filter_chains_limit, int):
|
50
|
+
raise TypeError("Expected argument 'filter_chains_limit' to be a int")
|
51
|
+
pulumi.set(__self__, "filter_chains_limit", filter_chains_limit)
|
52
|
+
if from_ and not isinstance(from_, int):
|
53
|
+
raise TypeError("Expected argument 'from_' to be a int")
|
54
|
+
pulumi.set(__self__, "from_", from_)
|
55
|
+
if id and not isinstance(id, str):
|
56
|
+
raise TypeError("Expected argument 'id' to be a str")
|
57
|
+
pulumi.set(__self__, "id", id)
|
58
|
+
if include_dedicated_dns_network_in_managed_dns_usage and not isinstance(include_dedicated_dns_network_in_managed_dns_usage, bool):
|
59
|
+
raise TypeError("Expected argument 'include_dedicated_dns_network_in_managed_dns_usage' to be a bool")
|
60
|
+
pulumi.set(__self__, "include_dedicated_dns_network_in_managed_dns_usage", include_dedicated_dns_network_in_managed_dns_usage)
|
61
|
+
if metric_type and not isinstance(metric_type, str):
|
62
|
+
raise TypeError("Expected argument 'metric_type' to be a str")
|
63
|
+
pulumi.set(__self__, "metric_type", metric_type)
|
64
|
+
if monitors_limit and not isinstance(monitors_limit, int):
|
65
|
+
raise TypeError("Expected argument 'monitors_limit' to be a int")
|
66
|
+
pulumi.set(__self__, "monitors_limit", monitors_limit)
|
67
|
+
if nxd_protection_enabled and not isinstance(nxd_protection_enabled, bool):
|
68
|
+
raise TypeError("Expected argument 'nxd_protection_enabled' to be a bool")
|
69
|
+
pulumi.set(__self__, "nxd_protection_enabled", nxd_protection_enabled)
|
70
|
+
if nxd_responses and not isinstance(nxd_responses, int):
|
71
|
+
raise TypeError("Expected argument 'nxd_responses' to be a int")
|
72
|
+
pulumi.set(__self__, "nxd_responses", nxd_responses)
|
73
|
+
if queries_limit and not isinstance(queries_limit, int):
|
74
|
+
raise TypeError("Expected argument 'queries_limit' to be a int")
|
75
|
+
pulumi.set(__self__, "queries_limit", queries_limit)
|
76
|
+
if records_limit and not isinstance(records_limit, int):
|
77
|
+
raise TypeError("Expected argument 'records_limit' to be a int")
|
78
|
+
pulumi.set(__self__, "records_limit", records_limit)
|
79
|
+
if to and not isinstance(to, int):
|
80
|
+
raise TypeError("Expected argument 'to' to be a int")
|
81
|
+
pulumi.set(__self__, "to", to)
|
82
|
+
if total_usage and not isinstance(total_usage, int):
|
83
|
+
raise TypeError("Expected argument 'total_usage' to be a int")
|
84
|
+
pulumi.set(__self__, "total_usage", total_usage)
|
85
|
+
|
86
|
+
@property
|
87
|
+
@pulumi.getter(name="byNetworks")
|
88
|
+
def by_networks(self) -> Sequence['outputs.GetBillingUsageByNetworkResult']:
|
89
|
+
"""
|
90
|
+
(Computed) A list of network-specific query data containing:
|
91
|
+
"""
|
92
|
+
return pulumi.get(self, "by_networks")
|
93
|
+
|
94
|
+
@property
|
95
|
+
@pulumi.getter(name="chinaQueriesLimit")
|
96
|
+
def china_queries_limit(self) -> int:
|
97
|
+
"""
|
98
|
+
(Computed) The queries limit for the China network.
|
99
|
+
"""
|
100
|
+
return pulumi.get(self, "china_queries_limit")
|
101
|
+
|
102
|
+
@property
|
103
|
+
@pulumi.getter(name="cleanQueries")
|
104
|
+
def clean_queries(self) -> int:
|
105
|
+
"""
|
106
|
+
Clean queries for this day.
|
107
|
+
"""
|
108
|
+
return pulumi.get(self, "clean_queries")
|
109
|
+
|
110
|
+
@property
|
111
|
+
@pulumi.getter(name="ddosProtectionEnabled")
|
112
|
+
def ddos_protection_enabled(self) -> bool:
|
113
|
+
"""
|
114
|
+
(Computed) Whether DDoS Protection is enabled.
|
115
|
+
"""
|
116
|
+
return pulumi.get(self, "ddos_protection_enabled")
|
117
|
+
|
118
|
+
@property
|
119
|
+
@pulumi.getter(name="ddosQueries")
|
120
|
+
def ddos_queries(self) -> int:
|
121
|
+
"""
|
122
|
+
DDoS queries for this day.
|
123
|
+
"""
|
124
|
+
return pulumi.get(self, "ddos_queries")
|
125
|
+
|
126
|
+
@property
|
127
|
+
@pulumi.getter(name="decisionsLimit")
|
128
|
+
def decisions_limit(self) -> int:
|
129
|
+
"""
|
130
|
+
(Computed) The RUM decisions limit for this billing cycle.
|
131
|
+
"""
|
132
|
+
return pulumi.get(self, "decisions_limit")
|
133
|
+
|
134
|
+
@property
|
135
|
+
@pulumi.getter(name="filterChainsLimit")
|
136
|
+
def filter_chains_limit(self) -> int:
|
137
|
+
"""
|
138
|
+
(Computed) The filter chains limit for this billing cycle.
|
139
|
+
"""
|
140
|
+
return pulumi.get(self, "filter_chains_limit")
|
141
|
+
|
142
|
+
@property
|
143
|
+
@pulumi.getter(name="from")
|
144
|
+
def from_(self) -> Optional[int]:
|
145
|
+
return pulumi.get(self, "from_")
|
146
|
+
|
147
|
+
@property
|
148
|
+
@pulumi.getter
|
149
|
+
def id(self) -> str:
|
150
|
+
"""
|
151
|
+
The provider-assigned unique ID for this managed resource.
|
152
|
+
"""
|
153
|
+
return pulumi.get(self, "id")
|
154
|
+
|
155
|
+
@property
|
156
|
+
@pulumi.getter(name="includeDedicatedDnsNetworkInManagedDnsUsage")
|
157
|
+
def include_dedicated_dns_network_in_managed_dns_usage(self) -> bool:
|
158
|
+
"""
|
159
|
+
(Computed) Whether dedicated DNS usage counts towards managed DNS usage.
|
160
|
+
"""
|
161
|
+
return pulumi.get(self, "include_dedicated_dns_network_in_managed_dns_usage")
|
162
|
+
|
163
|
+
@property
|
164
|
+
@pulumi.getter(name="metricType")
|
165
|
+
def metric_type(self) -> str:
|
166
|
+
return pulumi.get(self, "metric_type")
|
167
|
+
|
168
|
+
@property
|
169
|
+
@pulumi.getter(name="monitorsLimit")
|
170
|
+
def monitors_limit(self) -> int:
|
171
|
+
"""
|
172
|
+
(Computed) The monitoring jobs limit for this billing cycle.
|
173
|
+
"""
|
174
|
+
return pulumi.get(self, "monitors_limit")
|
175
|
+
|
176
|
+
@property
|
177
|
+
@pulumi.getter(name="nxdProtectionEnabled")
|
178
|
+
def nxd_protection_enabled(self) -> bool:
|
179
|
+
"""
|
180
|
+
(Computed) Whether NXD Protection is enabled.
|
181
|
+
"""
|
182
|
+
return pulumi.get(self, "nxd_protection_enabled")
|
183
|
+
|
184
|
+
@property
|
185
|
+
@pulumi.getter(name="nxdResponses")
|
186
|
+
def nxd_responses(self) -> int:
|
187
|
+
"""
|
188
|
+
NXD responses for this day.
|
189
|
+
"""
|
190
|
+
return pulumi.get(self, "nxd_responses")
|
191
|
+
|
192
|
+
@property
|
193
|
+
@pulumi.getter(name="queriesLimit")
|
194
|
+
def queries_limit(self) -> int:
|
195
|
+
"""
|
196
|
+
(Computed) The queries limit for this billing cycle.
|
197
|
+
"""
|
198
|
+
return pulumi.get(self, "queries_limit")
|
199
|
+
|
200
|
+
@property
|
201
|
+
@pulumi.getter(name="recordsLimit")
|
202
|
+
def records_limit(self) -> int:
|
203
|
+
"""
|
204
|
+
(Computed) The records limit for this billing cycle.
|
205
|
+
"""
|
206
|
+
return pulumi.get(self, "records_limit")
|
207
|
+
|
208
|
+
@property
|
209
|
+
@pulumi.getter
|
210
|
+
def to(self) -> Optional[int]:
|
211
|
+
return pulumi.get(self, "to")
|
212
|
+
|
213
|
+
@property
|
214
|
+
@pulumi.getter(name="totalUsage")
|
215
|
+
def total_usage(self) -> int:
|
216
|
+
"""
|
217
|
+
(Computed) The total usage count for the metric. Available for `decisions`, `filter-chains`, `monitors`, and `records` metrics.
|
218
|
+
"""
|
219
|
+
return pulumi.get(self, "total_usage")
|
220
|
+
|
221
|
+
|
222
|
+
class AwaitableGetBillingUsageResult(GetBillingUsageResult):
|
223
|
+
# pylint: disable=using-constant-test
|
224
|
+
def __await__(self):
|
225
|
+
if False:
|
226
|
+
yield self
|
227
|
+
return GetBillingUsageResult(
|
228
|
+
by_networks=self.by_networks,
|
229
|
+
china_queries_limit=self.china_queries_limit,
|
230
|
+
clean_queries=self.clean_queries,
|
231
|
+
ddos_protection_enabled=self.ddos_protection_enabled,
|
232
|
+
ddos_queries=self.ddos_queries,
|
233
|
+
decisions_limit=self.decisions_limit,
|
234
|
+
filter_chains_limit=self.filter_chains_limit,
|
235
|
+
from_=self.from_,
|
236
|
+
id=self.id,
|
237
|
+
include_dedicated_dns_network_in_managed_dns_usage=self.include_dedicated_dns_network_in_managed_dns_usage,
|
238
|
+
metric_type=self.metric_type,
|
239
|
+
monitors_limit=self.monitors_limit,
|
240
|
+
nxd_protection_enabled=self.nxd_protection_enabled,
|
241
|
+
nxd_responses=self.nxd_responses,
|
242
|
+
queries_limit=self.queries_limit,
|
243
|
+
records_limit=self.records_limit,
|
244
|
+
to=self.to,
|
245
|
+
total_usage=self.total_usage)
|
246
|
+
|
247
|
+
|
248
|
+
def get_billing_usage(from_: Optional[int] = None,
|
249
|
+
metric_type: Optional[str] = None,
|
250
|
+
to: Optional[int] = None,
|
251
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetBillingUsageResult:
|
252
|
+
"""
|
253
|
+
Provides billing usage details about a NS1 account.
|
254
|
+
|
255
|
+
## Example Usage
|
256
|
+
|
257
|
+
```python
|
258
|
+
import pulumi
|
259
|
+
import pulumi_ns1 as ns1
|
260
|
+
|
261
|
+
# Get query usage data for the given timeframe
|
262
|
+
queries = ns1.get_billing_usage(metric_type="queries",
|
263
|
+
from_=1738368000,
|
264
|
+
to=1740787199)
|
265
|
+
# Get account limits data for the given timeframe
|
266
|
+
limits = ns1.get_billing_usage(metric_type="limits",
|
267
|
+
from_=1738368000,
|
268
|
+
to=1740787199)
|
269
|
+
# Get RUM decisions usage data for the given timeframe
|
270
|
+
decisions = ns1.get_billing_usage(metric_type="decisions",
|
271
|
+
from_=1738368000,
|
272
|
+
to=1740787199)
|
273
|
+
# Get filter chains usage data
|
274
|
+
filter_chains = ns1.get_billing_usage(metric_type="filter-chains")
|
275
|
+
# Get monitoring jobs usage data
|
276
|
+
monitors = ns1.get_billing_usage(metric_type="monitors")
|
277
|
+
# Get records usage data
|
278
|
+
records = ns1.get_billing_usage(metric_type="records")
|
279
|
+
pulumi.export("totalQueries", queries.clean_queries)
|
280
|
+
pulumi.export("totalDdosQueries", queries.ddos_queries)
|
281
|
+
pulumi.export("totalNxdResponses", queries.nxd_responses)
|
282
|
+
pulumi.export("queriesLimit", limits.queries_limit)
|
283
|
+
pulumi.export("totalDecisions", decisions.total_usage)
|
284
|
+
pulumi.export("decisionsLimit", limits.decisions_limit)
|
285
|
+
pulumi.export("totalFilterChains", filter_chains.total_usage)
|
286
|
+
pulumi.export("filterChainsLimit", limits.filter_chains_limit)
|
287
|
+
pulumi.export("totalMonitors", monitors.total_usage)
|
288
|
+
pulumi.export("monitorsLimit", limits.monitors_limit)
|
289
|
+
pulumi.export("totalRecords", records.total_usage)
|
290
|
+
pulumi.export("recordsLimit", limits.records_limit)
|
291
|
+
```
|
292
|
+
|
293
|
+
|
294
|
+
:param int from_: The start timestamp for the data range in Unix epoch format.
|
295
|
+
:param str metric_type: The type of billing metric to retrieve. Must be one of: `queries`, `limits`, `decisions`, `filter-chains`, `monitors`, `records`.
|
296
|
+
:param int to: The end timestamp for the data range in Unix epoch format.
|
297
|
+
"""
|
298
|
+
__args__ = dict()
|
299
|
+
__args__['from'] = from_
|
300
|
+
__args__['metricType'] = metric_type
|
301
|
+
__args__['to'] = to
|
302
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
303
|
+
__ret__ = pulumi.runtime.invoke('ns1:index/getBillingUsage:getBillingUsage', __args__, opts=opts, typ=GetBillingUsageResult).value
|
304
|
+
|
305
|
+
return AwaitableGetBillingUsageResult(
|
306
|
+
by_networks=pulumi.get(__ret__, 'by_networks'),
|
307
|
+
china_queries_limit=pulumi.get(__ret__, 'china_queries_limit'),
|
308
|
+
clean_queries=pulumi.get(__ret__, 'clean_queries'),
|
309
|
+
ddos_protection_enabled=pulumi.get(__ret__, 'ddos_protection_enabled'),
|
310
|
+
ddos_queries=pulumi.get(__ret__, 'ddos_queries'),
|
311
|
+
decisions_limit=pulumi.get(__ret__, 'decisions_limit'),
|
312
|
+
filter_chains_limit=pulumi.get(__ret__, 'filter_chains_limit'),
|
313
|
+
from_=pulumi.get(__ret__, 'from_'),
|
314
|
+
id=pulumi.get(__ret__, 'id'),
|
315
|
+
include_dedicated_dns_network_in_managed_dns_usage=pulumi.get(__ret__, 'include_dedicated_dns_network_in_managed_dns_usage'),
|
316
|
+
metric_type=pulumi.get(__ret__, 'metric_type'),
|
317
|
+
monitors_limit=pulumi.get(__ret__, 'monitors_limit'),
|
318
|
+
nxd_protection_enabled=pulumi.get(__ret__, 'nxd_protection_enabled'),
|
319
|
+
nxd_responses=pulumi.get(__ret__, 'nxd_responses'),
|
320
|
+
queries_limit=pulumi.get(__ret__, 'queries_limit'),
|
321
|
+
records_limit=pulumi.get(__ret__, 'records_limit'),
|
322
|
+
to=pulumi.get(__ret__, 'to'),
|
323
|
+
total_usage=pulumi.get(__ret__, 'total_usage'))
|
324
|
+
def get_billing_usage_output(from_: Optional[pulumi.Input[Optional[int]]] = None,
|
325
|
+
metric_type: Optional[pulumi.Input[str]] = None,
|
326
|
+
to: Optional[pulumi.Input[Optional[int]]] = None,
|
327
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetBillingUsageResult]:
|
328
|
+
"""
|
329
|
+
Provides billing usage details about a NS1 account.
|
330
|
+
|
331
|
+
## Example Usage
|
332
|
+
|
333
|
+
```python
|
334
|
+
import pulumi
|
335
|
+
import pulumi_ns1 as ns1
|
336
|
+
|
337
|
+
# Get query usage data for the given timeframe
|
338
|
+
queries = ns1.get_billing_usage(metric_type="queries",
|
339
|
+
from_=1738368000,
|
340
|
+
to=1740787199)
|
341
|
+
# Get account limits data for the given timeframe
|
342
|
+
limits = ns1.get_billing_usage(metric_type="limits",
|
343
|
+
from_=1738368000,
|
344
|
+
to=1740787199)
|
345
|
+
# Get RUM decisions usage data for the given timeframe
|
346
|
+
decisions = ns1.get_billing_usage(metric_type="decisions",
|
347
|
+
from_=1738368000,
|
348
|
+
to=1740787199)
|
349
|
+
# Get filter chains usage data
|
350
|
+
filter_chains = ns1.get_billing_usage(metric_type="filter-chains")
|
351
|
+
# Get monitoring jobs usage data
|
352
|
+
monitors = ns1.get_billing_usage(metric_type="monitors")
|
353
|
+
# Get records usage data
|
354
|
+
records = ns1.get_billing_usage(metric_type="records")
|
355
|
+
pulumi.export("totalQueries", queries.clean_queries)
|
356
|
+
pulumi.export("totalDdosQueries", queries.ddos_queries)
|
357
|
+
pulumi.export("totalNxdResponses", queries.nxd_responses)
|
358
|
+
pulumi.export("queriesLimit", limits.queries_limit)
|
359
|
+
pulumi.export("totalDecisions", decisions.total_usage)
|
360
|
+
pulumi.export("decisionsLimit", limits.decisions_limit)
|
361
|
+
pulumi.export("totalFilterChains", filter_chains.total_usage)
|
362
|
+
pulumi.export("filterChainsLimit", limits.filter_chains_limit)
|
363
|
+
pulumi.export("totalMonitors", monitors.total_usage)
|
364
|
+
pulumi.export("monitorsLimit", limits.monitors_limit)
|
365
|
+
pulumi.export("totalRecords", records.total_usage)
|
366
|
+
pulumi.export("recordsLimit", limits.records_limit)
|
367
|
+
```
|
368
|
+
|
369
|
+
|
370
|
+
:param int from_: The start timestamp for the data range in Unix epoch format.
|
371
|
+
:param str metric_type: The type of billing metric to retrieve. Must be one of: `queries`, `limits`, `decisions`, `filter-chains`, `monitors`, `records`.
|
372
|
+
:param int to: The end timestamp for the data range in Unix epoch format.
|
373
|
+
"""
|
374
|
+
__args__ = dict()
|
375
|
+
__args__['from'] = from_
|
376
|
+
__args__['metricType'] = metric_type
|
377
|
+
__args__['to'] = to
|
378
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
379
|
+
__ret__ = pulumi.runtime.invoke_output('ns1:index/getBillingUsage:getBillingUsage', __args__, opts=opts, typ=GetBillingUsageResult)
|
380
|
+
return __ret__.apply(lambda __response__: GetBillingUsageResult(
|
381
|
+
by_networks=pulumi.get(__response__, 'by_networks'),
|
382
|
+
china_queries_limit=pulumi.get(__response__, 'china_queries_limit'),
|
383
|
+
clean_queries=pulumi.get(__response__, 'clean_queries'),
|
384
|
+
ddos_protection_enabled=pulumi.get(__response__, 'ddos_protection_enabled'),
|
385
|
+
ddos_queries=pulumi.get(__response__, 'ddos_queries'),
|
386
|
+
decisions_limit=pulumi.get(__response__, 'decisions_limit'),
|
387
|
+
filter_chains_limit=pulumi.get(__response__, 'filter_chains_limit'),
|
388
|
+
from_=pulumi.get(__response__, 'from_'),
|
389
|
+
id=pulumi.get(__response__, 'id'),
|
390
|
+
include_dedicated_dns_network_in_managed_dns_usage=pulumi.get(__response__, 'include_dedicated_dns_network_in_managed_dns_usage'),
|
391
|
+
metric_type=pulumi.get(__response__, 'metric_type'),
|
392
|
+
monitors_limit=pulumi.get(__response__, 'monitors_limit'),
|
393
|
+
nxd_protection_enabled=pulumi.get(__response__, 'nxd_protection_enabled'),
|
394
|
+
nxd_responses=pulumi.get(__response__, 'nxd_responses'),
|
395
|
+
queries_limit=pulumi.get(__response__, 'queries_limit'),
|
396
|
+
records_limit=pulumi.get(__response__, 'records_limit'),
|
397
|
+
to=pulumi.get(__response__, 'to'),
|
398
|
+
total_usage=pulumi.get(__response__, 'total_usage')))
|
pulumi_ns1/outputs.py
CHANGED
@@ -37,6 +37,8 @@ __all__ = [
|
|
37
37
|
'UserDnsRecordsAllow',
|
38
38
|
'UserDnsRecordsDeny',
|
39
39
|
'ZoneSecondary',
|
40
|
+
'GetBillingUsageByNetworkResult',
|
41
|
+
'GetBillingUsageByNetworkDailyResult',
|
40
42
|
'GetDNSSecDelegationResult',
|
41
43
|
'GetDNSSecDelegationDResult',
|
42
44
|
'GetDNSSecDelegationDnskeyResult',
|
@@ -1099,6 +1101,130 @@ class ZoneSecondary(dict):
|
|
1099
1101
|
return pulumi.get(self, "port")
|
1100
1102
|
|
1101
1103
|
|
1104
|
+
@pulumi.output_type
|
1105
|
+
class GetBillingUsageByNetworkResult(dict):
|
1106
|
+
def __init__(__self__, *,
|
1107
|
+
billable_queries: int,
|
1108
|
+
clean_queries: int,
|
1109
|
+
dailies: Sequence['outputs.GetBillingUsageByNetworkDailyResult'],
|
1110
|
+
ddos_queries: int,
|
1111
|
+
network: int,
|
1112
|
+
nxd_responses: int):
|
1113
|
+
"""
|
1114
|
+
:param int billable_queries: Total billable queries for this network.
|
1115
|
+
:param int clean_queries: Clean queries for this day.
|
1116
|
+
:param Sequence['GetBillingUsageByNetworkDailyArgs'] dailies: Daily breakdown containing:
|
1117
|
+
:param int ddos_queries: DDoS queries for this day.
|
1118
|
+
:param int network: The network ID.
|
1119
|
+
:param int nxd_responses: NXD responses for this day.
|
1120
|
+
"""
|
1121
|
+
pulumi.set(__self__, "billable_queries", billable_queries)
|
1122
|
+
pulumi.set(__self__, "clean_queries", clean_queries)
|
1123
|
+
pulumi.set(__self__, "dailies", dailies)
|
1124
|
+
pulumi.set(__self__, "ddos_queries", ddos_queries)
|
1125
|
+
pulumi.set(__self__, "network", network)
|
1126
|
+
pulumi.set(__self__, "nxd_responses", nxd_responses)
|
1127
|
+
|
1128
|
+
@property
|
1129
|
+
@pulumi.getter(name="billableQueries")
|
1130
|
+
def billable_queries(self) -> int:
|
1131
|
+
"""
|
1132
|
+
Total billable queries for this network.
|
1133
|
+
"""
|
1134
|
+
return pulumi.get(self, "billable_queries")
|
1135
|
+
|
1136
|
+
@property
|
1137
|
+
@pulumi.getter(name="cleanQueries")
|
1138
|
+
def clean_queries(self) -> int:
|
1139
|
+
"""
|
1140
|
+
Clean queries for this day.
|
1141
|
+
"""
|
1142
|
+
return pulumi.get(self, "clean_queries")
|
1143
|
+
|
1144
|
+
@property
|
1145
|
+
@pulumi.getter
|
1146
|
+
def dailies(self) -> Sequence['outputs.GetBillingUsageByNetworkDailyResult']:
|
1147
|
+
"""
|
1148
|
+
Daily breakdown containing:
|
1149
|
+
"""
|
1150
|
+
return pulumi.get(self, "dailies")
|
1151
|
+
|
1152
|
+
@property
|
1153
|
+
@pulumi.getter(name="ddosQueries")
|
1154
|
+
def ddos_queries(self) -> int:
|
1155
|
+
"""
|
1156
|
+
DDoS queries for this day.
|
1157
|
+
"""
|
1158
|
+
return pulumi.get(self, "ddos_queries")
|
1159
|
+
|
1160
|
+
@property
|
1161
|
+
@pulumi.getter
|
1162
|
+
def network(self) -> int:
|
1163
|
+
"""
|
1164
|
+
The network ID.
|
1165
|
+
"""
|
1166
|
+
return pulumi.get(self, "network")
|
1167
|
+
|
1168
|
+
@property
|
1169
|
+
@pulumi.getter(name="nxdResponses")
|
1170
|
+
def nxd_responses(self) -> int:
|
1171
|
+
"""
|
1172
|
+
NXD responses for this day.
|
1173
|
+
"""
|
1174
|
+
return pulumi.get(self, "nxd_responses")
|
1175
|
+
|
1176
|
+
|
1177
|
+
@pulumi.output_type
|
1178
|
+
class GetBillingUsageByNetworkDailyResult(dict):
|
1179
|
+
def __init__(__self__, *,
|
1180
|
+
clean_queries: int,
|
1181
|
+
ddos_queries: int,
|
1182
|
+
nxd_responses: int,
|
1183
|
+
timestamp: int):
|
1184
|
+
"""
|
1185
|
+
:param int clean_queries: Clean queries for this day.
|
1186
|
+
:param int ddos_queries: DDoS queries for this day.
|
1187
|
+
:param int nxd_responses: NXD responses for this day.
|
1188
|
+
:param int timestamp: The timestamp for the day.
|
1189
|
+
"""
|
1190
|
+
pulumi.set(__self__, "clean_queries", clean_queries)
|
1191
|
+
pulumi.set(__self__, "ddos_queries", ddos_queries)
|
1192
|
+
pulumi.set(__self__, "nxd_responses", nxd_responses)
|
1193
|
+
pulumi.set(__self__, "timestamp", timestamp)
|
1194
|
+
|
1195
|
+
@property
|
1196
|
+
@pulumi.getter(name="cleanQueries")
|
1197
|
+
def clean_queries(self) -> int:
|
1198
|
+
"""
|
1199
|
+
Clean queries for this day.
|
1200
|
+
"""
|
1201
|
+
return pulumi.get(self, "clean_queries")
|
1202
|
+
|
1203
|
+
@property
|
1204
|
+
@pulumi.getter(name="ddosQueries")
|
1205
|
+
def ddos_queries(self) -> int:
|
1206
|
+
"""
|
1207
|
+
DDoS queries for this day.
|
1208
|
+
"""
|
1209
|
+
return pulumi.get(self, "ddos_queries")
|
1210
|
+
|
1211
|
+
@property
|
1212
|
+
@pulumi.getter(name="nxdResponses")
|
1213
|
+
def nxd_responses(self) -> int:
|
1214
|
+
"""
|
1215
|
+
NXD responses for this day.
|
1216
|
+
"""
|
1217
|
+
return pulumi.get(self, "nxd_responses")
|
1218
|
+
|
1219
|
+
@property
|
1220
|
+
@pulumi.getter
|
1221
|
+
def timestamp(self) -> int:
|
1222
|
+
"""
|
1223
|
+
The timestamp for the day.
|
1224
|
+
"""
|
1225
|
+
return pulumi.get(self, "timestamp")
|
1226
|
+
|
1227
|
+
|
1102
1228
|
@pulumi.output_type
|
1103
1229
|
class GetDNSSecDelegationResult(dict):
|
1104
1230
|
def __init__(__self__, *,
|
pulumi_ns1/pulumi-plugin.json
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
pulumi_ns1/__init__.py,sha256=
|
1
|
+
pulumi_ns1/__init__.py,sha256=HxAkePgkKCdxFwcnXxGnS7syAQWdlqdafWhdM6q8ZR0,3844
|
2
2
|
pulumi_ns1/_inputs.py,sha256=Vf4yCrGmSaPTFQSLAU1TaNc-7kvqUg1U0N6s1GvSD24,49302
|
3
3
|
pulumi_ns1/_utilities.py,sha256=yyuODPikZ9pto3JWJRfMJo98dWmQ5_y45-TVcZG_K8Y,10807
|
4
4
|
pulumi_ns1/account_whitelist.py,sha256=ZAvA1SYB6jtYtlQAy_VxVteOLHAvgvy-AKLzUcKXk6U,9228
|
@@ -9,6 +9,7 @@ pulumi_ns1/data_feed.py,sha256=zhLlzsl_mzGKztrHw8FUsGzkvg0_QIoamslgoK0IVOY,13038
|
|
9
9
|
pulumi_ns1/data_source.py,sha256=YPgQnaYHb2YnQFjr42aAtR1ZLRA6hBZZkUh5vecUPMQ,11458
|
10
10
|
pulumi_ns1/dataset.py,sha256=-YKkn_GOJRpbhOO5a1kuRrdIrXpDMFA5X2JgPWjHqys,13714
|
11
11
|
pulumi_ns1/dnsview.py,sha256=w8XQS2Wtp1wsRtOm39bzWScfqTgWvHUEsUHHsBsNQlg,13798
|
12
|
+
pulumi_ns1/get_billing_usage.py,sha256=jJcDXgo79Isg2gQaZAkQedmOxLbtgwIRV5jPEhtsuPc,17921
|
12
13
|
pulumi_ns1/get_dns_sec.py,sha256=aOhrnSSdIndHQugl79bjNx94-iDh3yhfPthO1sDAiwE,4743
|
13
14
|
pulumi_ns1/get_monitoring_regions.py,sha256=fBuDTfZIBxAnySi16Bt6mHqw8_5M1w8HRtpb4Z8XD4A,4371
|
14
15
|
pulumi_ns1/get_networks.py,sha256=B-mjMJJ9IswHS06vNL6p0VtIcZAdFIh1xaj9jHG7MH4,3587
|
@@ -16,10 +17,10 @@ pulumi_ns1/get_record.py,sha256=LK1iPj69-8Jw4orCz9ueYcOrjB4_fxZGMPtcsM-Ii9A,1085
|
|
16
17
|
pulumi_ns1/get_zone.py,sha256=iWDey9JbkVq4oAIkrhi2_NV2Duv9YRGu5Tdqif_bv6U,12932
|
17
18
|
pulumi_ns1/monitoring_job.py,sha256=KqpgEY5GTfOxLelpKbd35cxc8-LO95RT0xk_bqEuN0M,46178
|
18
19
|
pulumi_ns1/notify_list.py,sha256=u1cxdi7ShHRgZ_hc8EoI4EV5eb1lOCuq7h6JL3tWJN4,11262
|
19
|
-
pulumi_ns1/outputs.py,sha256=
|
20
|
+
pulumi_ns1/outputs.py,sha256=ll-tVbF3gM9KLz2kN41nT_MXkHHKE4prWRy_NiXG_Jo,50150
|
20
21
|
pulumi_ns1/provider.py,sha256=3OX3CiosEpKCD-nBBfk7y7-lc6u2jWgNYykw3bSrV4o,9822
|
21
22
|
pulumi_ns1/pulsar_job.py,sha256=HotfwogcHFiwx2wB_jt0HBkHZ2aGYTTotj18czT7oOs,17404
|
22
|
-
pulumi_ns1/pulumi-plugin.json,sha256=
|
23
|
+
pulumi_ns1/pulumi-plugin.json,sha256=jF8aBnP3i29vPTrXSv_3TYE22dmzYq2opH7SBTekpAM,62
|
23
24
|
pulumi_ns1/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
25
|
pulumi_ns1/record.py,sha256=7wr1g9b-81ZxyYZut9a0Nit2JIF6qKrNaWJ7tATog1Y,47024
|
25
26
|
pulumi_ns1/redirect.py,sha256=9LMN9UEPXKQnxDBCivMu6naBRKZVjjdVUUMz0zPf6aY,32507
|
@@ -31,7 +32,7 @@ pulumi_ns1/zone.py,sha256=qYjOvjzr6JuT81mt237ldmRIWfvw0Pjpaf_ez-So4iA,44034
|
|
31
32
|
pulumi_ns1/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
|
32
33
|
pulumi_ns1/config/__init__.pyi,sha256=jYEqa6gVguWiQRa3PB-xqKnJAcghY1PJBRTtvM9LB78,975
|
33
34
|
pulumi_ns1/config/vars.py,sha256=0UkqyD5y0pX445AqzZ94LzzyMRDXm1exQGOSVGZmvJA,1680
|
34
|
-
pulumi_ns1-3.6.
|
35
|
-
pulumi_ns1-3.6.
|
36
|
-
pulumi_ns1-3.6.
|
37
|
-
pulumi_ns1-3.6.
|
35
|
+
pulumi_ns1-3.6.1.dist-info/METADATA,sha256=LXiCNwJh4_hB-UrDYUp3uDVBA5HJTADkAiwEX0cHi4o,3099
|
36
|
+
pulumi_ns1-3.6.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
37
|
+
pulumi_ns1-3.6.1.dist-info/top_level.txt,sha256=Sndx9N4MHnSbjpwVT-_JZ8NZ7JzudJUIUQkU2-9GH9U,11
|
38
|
+
pulumi_ns1-3.6.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|