You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description="NodeGroup is a representation of a group on a node, including the services it has access to, any RBAC, and TACACS configuration.\nNodeGroups are deployed to nodes by NodeUser or other permission-consuming resources.",
98
-
title="Specification",
99
-
),
100
-
]
101
-
status: Annotated[
102
-
Optional[NodeGroupStatus],
103
-
Field(description="Deployment status of this NodeGroup.", title="Status"),
description='Set the match for this entry. This is a string to match input against - for example "interface" for srl or "configure port" for sros.\nRules here should be specified in the target specific format.',
126
+
title="Match",
127
+
),
128
+
] =None
129
+
operatingSystem: Annotated[
130
+
Literal["srl", "sros"],
131
+
Field(
132
+
description="Operating system to match against for this rule.\nOperating system to deploy this rule to.",
133
+
title="Operating System",
137
134
),
138
135
]
139
-
namespace: str
136
+
137
+
138
+
classNodeGroupSpecTacacs(BaseModel):
139
+
"""
140
+
TACACS configuration.
141
+
"""
142
+
143
+
privilegeLevel: Annotated[
144
+
Optional[int],
145
+
Field(
146
+
description="Set the privilege level for this group.",
147
+
ge=0,
148
+
le=15,
149
+
title="Privilege Level",
150
+
),
151
+
] =None
140
152
141
153
142
154
classNodeGroupSpec(BaseModel):
@@ -182,43 +194,6 @@ class NodeGroupSpec(BaseModel):
182
194
] =None
183
195
184
196
185
-
classNodeGroupSpecRule(BaseModel):
186
-
action: Annotated[
187
-
Literal["Deny", "ReadWrite", "Read"],
188
-
Field(description="Set the action for this entry.", title="Action"),
189
-
]
190
-
match: Annotated[
191
-
Optional[str],
192
-
Field(
193
-
description='Set the match for this entry. This is a string to match input against - for example "interface" for srl or "configure port" for sros.\nRules here should be specified in the target specific format.',
194
-
title="Match",
195
-
),
196
-
] =None
197
-
operatingSystem: Annotated[
198
-
Literal["srl", "sros"],
199
-
Field(
200
-
description="Operating system to match against for this rule.\nOperating system to deploy this rule to.",
201
-
title="Operating System",
202
-
),
203
-
]
204
-
205
-
206
-
classNodeGroupSpecTacacs(BaseModel):
207
-
"""
208
-
TACACS configuration.
209
-
"""
210
-
211
-
privilegeLevel: Annotated[
212
-
Optional[int],
213
-
Field(
214
-
description="Set the privilege level for this group.",
215
-
ge=0,
216
-
le=15,
217
-
title="Privilege Level",
218
-
),
219
-
] =None
220
-
221
-
222
197
classNodeGroupStatus(BaseModel):
223
198
"""
224
199
Deployment status of this NodeGroup.
@@ -232,37 +207,41 @@ class NodeGroupStatus(BaseModel):
description="NodeGroup is a representation of a group on a node, including the services it has access to, any RBAC, and TACACS configuration.\nNodeGroups are deployed to nodes by NodeUser or other permission-consuming resources.",
266
+
title="Specification",
267
+
),
268
+
]
269
+
status: Annotated[
270
+
Optional[NodeGroupStatus],
271
+
Field(description="Deployment status of this NodeGroup.", title="Status"),
0 commit comments