-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsync_models.py
More file actions
141 lines (115 loc) · 3.95 KB
/
sync_models.py
File metadata and controls
141 lines (115 loc) · 3.95 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
from __future__ import annotations
from typing import Any
from infrahub_sync.adapters.generic_rest_api import Generic_Rest_ApiModel
# -------------------------------------------------------
# AUTO-GENERATED FILE, DO NOT MODIFY
# This file has been generated with the command `infrahub-sync generate`
# All modifications will be lost the next time you reexecute this command
# -------------------------------------------------------
class InfraAutonomousSystem(Generic_Rest_ApiModel):
_modelname = "InfraAutonomousSystem"
_identifiers = ("asn",)
_attributes = (
"organization",
"affiliated",
"irr_as_set",
"name",
"ipv4_max_prefixes",
"description",
"ipv6_max_prefixes",
)
asn: int
affiliated: bool | None = None
irr_as_set: str | None = None
name: str
ipv4_max_prefixes: int | None = None
description: str | None = None
ipv6_max_prefixes: int | None = None
organization: str | None = None
local_id: str | None = None
local_data: Any | None = None
class InfraBGPPeerGroup(Generic_Rest_ApiModel):
_modelname = "InfraBGPPeerGroup"
_identifiers = ("name",)
_attributes = ("import_policies", "export_policies", "bgp_communities", "description", "status")
name: str
description: str | None = None
status: str | None = None
import_policies: list[str] | None = []
export_policies: list[str] | None = []
bgp_communities: list[str] | None = []
local_id: str | None = None
local_data: Any | None = None
class IpamIPAddress(Generic_Rest_ApiModel):
_modelname = "IpamIPAddress"
_identifiers = ("address",)
_attributes = ("description",)
description: str | None = None
address: str
local_id: str | None = None
local_data: Any | None = None
class OrganizationProvider(Generic_Rest_ApiModel):
_modelname = "OrganizationProvider"
_identifiers = ("name",)
_attributes = ()
name: str
local_id: str | None = None
local_data: Any | None = None
class InfraBGPRoutingPolicy(Generic_Rest_ApiModel):
_modelname = "InfraBGPRoutingPolicy"
_identifiers = ("name",)
_attributes = ("bgp_communities", "label", "description", "policy_type", "weight", "address_family")
name: str
label: str | None = None
description: str | None = None
policy_type: str
weight: int | None = 1000
address_family: int
bgp_communities: list[str] | None = []
local_id: str | None = None
local_data: Any | None = None
class InfraBGPCommunity(Generic_Rest_ApiModel):
_modelname = "InfraBGPCommunity"
_identifiers = ("name",)
_attributes = ("description", "label", "community_type", "value")
name: str
description: str | None = None
label: str | None = None
community_type: str | None = None
value: str
local_id: str | None = None
local_data: Any | None = None
class InfraIXP(Generic_Rest_ApiModel):
_modelname = "InfraIXP"
_identifiers = ("name",)
_attributes = ("export_policies", "bgp_communities", "import_policies", "description", "status")
name: str
description: str | None = None
status: str | None = "enabled"
export_policies: list[str] | None = []
bgp_communities: list[str] | None = []
import_policies: list[str] | None = []
local_id: str | None = None
local_data: Any | None = None
class InfraIXPConnection(Generic_Rest_ApiModel):
_modelname = "InfraIXPConnection"
_identifiers = ("name",)
_attributes = (
"internet_exchange_point",
"ipv4_address",
"ipv6_address",
"status",
"peeringdb_netixlan",
"vlan",
"description",
)
name: str
status: str | None = "enabled"
peeringdb_netixlan: int | None = None
vlan: int | None = None
description: str | None = None
internet_exchange_point: str
ipv4_address: str | None = None
ipv6_address: str | None = None
local_id: str | None = None
local_data: Any | None = None