34
34
make_request_options ,
35
35
)
36
36
from ....types .magic_network_monitoring import (
37
- MagicNetworkMonitoringRule ,
37
+ Rule ,
38
38
rule_edit_params ,
39
39
rule_create_params ,
40
40
rule_delete_params ,
@@ -68,7 +68,7 @@ def create(
68
68
extra_query : Query | None = None ,
69
69
extra_body : Body | None = None ,
70
70
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
71
- ) -> Optional [MagicNetworkMonitoringRule ]:
71
+ ) -> Optional [Rule ]:
72
72
"""Create network monitoring rules for account.
73
73
74
74
Currently only supports creating a
@@ -95,7 +95,7 @@ def create(
95
95
timeout = timeout ,
96
96
post_parser = ResultWrapper ._unwrapper ,
97
97
),
98
- cast_to = cast (Type [Optional [MagicNetworkMonitoringRule ]], ResultWrapper [MagicNetworkMonitoringRule ]),
98
+ cast_to = cast (Type [Optional [Rule ]], ResultWrapper [Rule ]),
99
99
)
100
100
101
101
def update (
@@ -109,7 +109,7 @@ def update(
109
109
extra_query : Query | None = None ,
110
110
extra_body : Body | None = None ,
111
111
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
112
- ) -> Optional [MagicNetworkMonitoringRule ]:
112
+ ) -> Optional [Rule ]:
113
113
"""
114
114
Update network monitoring rules for account.
115
115
@@ -134,7 +134,7 @@ def update(
134
134
timeout = timeout ,
135
135
post_parser = ResultWrapper ._unwrapper ,
136
136
),
137
- cast_to = cast (Type [Optional [MagicNetworkMonitoringRule ]], ResultWrapper [MagicNetworkMonitoringRule ]),
137
+ cast_to = cast (Type [Optional [Rule ]], ResultWrapper [Rule ]),
138
138
)
139
139
140
140
def list (
@@ -147,7 +147,7 @@ def list(
147
147
extra_query : Query | None = None ,
148
148
extra_body : Body | None = None ,
149
149
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
150
- ) -> SyncSinglePage [Optional [MagicNetworkMonitoringRule ]]:
150
+ ) -> SyncSinglePage [Optional [Rule ]]:
151
151
"""
152
152
Lists network monitoring rules for account.
153
153
@@ -164,11 +164,11 @@ def list(
164
164
raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
165
165
return self ._get_api_list (
166
166
f"/accounts/{ account_id } /mnm/rules" ,
167
- page = SyncSinglePage [Optional [MagicNetworkMonitoringRule ]],
167
+ page = SyncSinglePage [Optional [Rule ]],
168
168
options = make_request_options (
169
169
extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
170
170
),
171
- model = MagicNetworkMonitoringRule ,
171
+ model = Rule ,
172
172
)
173
173
174
174
def delete (
@@ -183,7 +183,7 @@ def delete(
183
183
extra_query : Query | None = None ,
184
184
extra_body : Body | None = None ,
185
185
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
186
- ) -> Optional [MagicNetworkMonitoringRule ]:
186
+ ) -> Optional [Rule ]:
187
187
"""
188
188
Delete a network monitoring rule for account.
189
189
@@ -210,7 +210,7 @@ def delete(
210
210
timeout = timeout ,
211
211
post_parser = ResultWrapper ._unwrapper ,
212
212
),
213
- cast_to = cast (Type [Optional [MagicNetworkMonitoringRule ]], ResultWrapper [MagicNetworkMonitoringRule ]),
213
+ cast_to = cast (Type [Optional [Rule ]], ResultWrapper [Rule ]),
214
214
)
215
215
216
216
def edit (
@@ -225,7 +225,7 @@ def edit(
225
225
extra_query : Query | None = None ,
226
226
extra_body : Body | None = None ,
227
227
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
228
- ) -> Optional [MagicNetworkMonitoringRule ]:
228
+ ) -> Optional [Rule ]:
229
229
"""
230
230
Update a network monitoring rule for account.
231
231
@@ -252,7 +252,7 @@ def edit(
252
252
timeout = timeout ,
253
253
post_parser = ResultWrapper ._unwrapper ,
254
254
),
255
- cast_to = cast (Type [Optional [MagicNetworkMonitoringRule ]], ResultWrapper [MagicNetworkMonitoringRule ]),
255
+ cast_to = cast (Type [Optional [Rule ]], ResultWrapper [Rule ]),
256
256
)
257
257
258
258
def get (
@@ -266,7 +266,7 @@ def get(
266
266
extra_query : Query | None = None ,
267
267
extra_body : Body | None = None ,
268
268
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
269
- ) -> Optional [MagicNetworkMonitoringRule ]:
269
+ ) -> Optional [Rule ]:
270
270
"""
271
271
List a single network monitoring rule for account.
272
272
@@ -292,7 +292,7 @@ def get(
292
292
timeout = timeout ,
293
293
post_parser = ResultWrapper ._unwrapper ,
294
294
),
295
- cast_to = cast (Type [Optional [MagicNetworkMonitoringRule ]], ResultWrapper [MagicNetworkMonitoringRule ]),
295
+ cast_to = cast (Type [Optional [Rule ]], ResultWrapper [Rule ]),
296
296
)
297
297
298
298
@@ -320,7 +320,7 @@ async def create(
320
320
extra_query : Query | None = None ,
321
321
extra_body : Body | None = None ,
322
322
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
323
- ) -> Optional [MagicNetworkMonitoringRule ]:
323
+ ) -> Optional [Rule ]:
324
324
"""Create network monitoring rules for account.
325
325
326
326
Currently only supports creating a
@@ -347,7 +347,7 @@ async def create(
347
347
timeout = timeout ,
348
348
post_parser = ResultWrapper ._unwrapper ,
349
349
),
350
- cast_to = cast (Type [Optional [MagicNetworkMonitoringRule ]], ResultWrapper [MagicNetworkMonitoringRule ]),
350
+ cast_to = cast (Type [Optional [Rule ]], ResultWrapper [Rule ]),
351
351
)
352
352
353
353
async def update (
@@ -361,7 +361,7 @@ async def update(
361
361
extra_query : Query | None = None ,
362
362
extra_body : Body | None = None ,
363
363
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
364
- ) -> Optional [MagicNetworkMonitoringRule ]:
364
+ ) -> Optional [Rule ]:
365
365
"""
366
366
Update network monitoring rules for account.
367
367
@@ -386,7 +386,7 @@ async def update(
386
386
timeout = timeout ,
387
387
post_parser = ResultWrapper ._unwrapper ,
388
388
),
389
- cast_to = cast (Type [Optional [MagicNetworkMonitoringRule ]], ResultWrapper [MagicNetworkMonitoringRule ]),
389
+ cast_to = cast (Type [Optional [Rule ]], ResultWrapper [Rule ]),
390
390
)
391
391
392
392
def list (
@@ -399,7 +399,7 @@ def list(
399
399
extra_query : Query | None = None ,
400
400
extra_body : Body | None = None ,
401
401
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
402
- ) -> AsyncPaginator [Optional [MagicNetworkMonitoringRule ], AsyncSinglePage [Optional [MagicNetworkMonitoringRule ]]]:
402
+ ) -> AsyncPaginator [Optional [Rule ], AsyncSinglePage [Optional [Rule ]]]:
403
403
"""
404
404
Lists network monitoring rules for account.
405
405
@@ -416,11 +416,11 @@ def list(
416
416
raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
417
417
return self ._get_api_list (
418
418
f"/accounts/{ account_id } /mnm/rules" ,
419
- page = AsyncSinglePage [Optional [MagicNetworkMonitoringRule ]],
419
+ page = AsyncSinglePage [Optional [Rule ]],
420
420
options = make_request_options (
421
421
extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
422
422
),
423
- model = MagicNetworkMonitoringRule ,
423
+ model = Rule ,
424
424
)
425
425
426
426
async def delete (
@@ -435,7 +435,7 @@ async def delete(
435
435
extra_query : Query | None = None ,
436
436
extra_body : Body | None = None ,
437
437
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
438
- ) -> Optional [MagicNetworkMonitoringRule ]:
438
+ ) -> Optional [Rule ]:
439
439
"""
440
440
Delete a network monitoring rule for account.
441
441
@@ -462,7 +462,7 @@ async def delete(
462
462
timeout = timeout ,
463
463
post_parser = ResultWrapper ._unwrapper ,
464
464
),
465
- cast_to = cast (Type [Optional [MagicNetworkMonitoringRule ]], ResultWrapper [MagicNetworkMonitoringRule ]),
465
+ cast_to = cast (Type [Optional [Rule ]], ResultWrapper [Rule ]),
466
466
)
467
467
468
468
async def edit (
@@ -477,7 +477,7 @@ async def edit(
477
477
extra_query : Query | None = None ,
478
478
extra_body : Body | None = None ,
479
479
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
480
- ) -> Optional [MagicNetworkMonitoringRule ]:
480
+ ) -> Optional [Rule ]:
481
481
"""
482
482
Update a network monitoring rule for account.
483
483
@@ -504,7 +504,7 @@ async def edit(
504
504
timeout = timeout ,
505
505
post_parser = ResultWrapper ._unwrapper ,
506
506
),
507
- cast_to = cast (Type [Optional [MagicNetworkMonitoringRule ]], ResultWrapper [MagicNetworkMonitoringRule ]),
507
+ cast_to = cast (Type [Optional [Rule ]], ResultWrapper [Rule ]),
508
508
)
509
509
510
510
async def get (
@@ -518,7 +518,7 @@ async def get(
518
518
extra_query : Query | None = None ,
519
519
extra_body : Body | None = None ,
520
520
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
521
- ) -> Optional [MagicNetworkMonitoringRule ]:
521
+ ) -> Optional [Rule ]:
522
522
"""
523
523
List a single network monitoring rule for account.
524
524
@@ -544,7 +544,7 @@ async def get(
544
544
timeout = timeout ,
545
545
post_parser = ResultWrapper ._unwrapper ,
546
546
),
547
- cast_to = cast (Type [Optional [MagicNetworkMonitoringRule ]], ResultWrapper [MagicNetworkMonitoringRule ]),
547
+ cast_to = cast (Type [Optional [Rule ]], ResultWrapper [Rule ]),
548
548
)
549
549
550
550
0 commit comments