This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
data_ipv6_prefix.py
61 lines (45 loc) · 1.97 KB
/
data_ipv6_prefix.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Copyright 2023 Cisco Systems, Inc. and its affiliates
# mypy: disable-error-code="empty-body"
from uuid import UUID
from catalystwan.endpoints import APIEndpoints, delete, get, post, put
from catalystwan.models.policy.lists import DataIPv6PrefixList
from catalystwan.models.policy.policy_list import (
InfoTag,
PolicyListEndpoints,
PolicyListId,
PolicyListInfo,
PolicyListPreview,
)
from catalystwan.typed_list import DataSequence
class DataIPv6PrefixListEditPayload(DataIPv6PrefixList, PolicyListId):
pass
class DataIPv6PrefixListInfo(DataIPv6PrefixList, PolicyListInfo):
pass
class ConfigurationPolicyDataIPv6PrefixList(APIEndpoints, PolicyListEndpoints):
@post("/template/policy/list/dataipv6prefix")
def create_policy_list(self, payload: DataIPv6PrefixList) -> PolicyListId:
...
@delete("/template/policy/list/dataipv6prefix/{id}")
def delete_policy_list(self, id: UUID) -> None:
...
@delete("/template/policy/list/dataipv6prefix")
def delete_policy_lists_with_info_tag(self, params: InfoTag) -> None:
...
@put("/template/policy/list/dataipv6prefix/{id}")
def edit_policy_list(self, id: UUID, payload: DataIPv6PrefixListEditPayload) -> None:
...
@get("/template/policy/list/dataipv6prefix/{id}")
def get_lists_by_id(self, id: UUID) -> DataIPv6PrefixListInfo:
...
@get("/template/policy/list/dataipv6prefix", "data")
def get_policy_lists(self) -> DataSequence[DataIPv6PrefixListInfo]:
...
@get("/template/policy/list/dataipv6prefix/filtered", "data")
def get_policy_lists_with_info_tag(self, params: InfoTag) -> DataSequence[DataIPv6PrefixListInfo]:
...
@post("/template/policy/list/dataipv6prefix/preview")
def preview_policy_list(self, payload: DataIPv6PrefixList) -> PolicyListPreview:
...
@get("/template/policy/list/dataipv6prefix/preview/{id}")
def preview_policy_list_by_id(self, id: UUID) -> PolicyListPreview:
...