Skip to content

Commit ebd80c7

Browse files
Arista Jenkinsoumichae1
authored andcommitted
arista: update comments to use code blocks
[GENERATED_COMMIT] Change-Id: I269646bcc2197a05096045f3d3720f686cb10ea1
1 parent 2869da6 commit ebd80c7

5 files changed

Lines changed: 140 additions & 122 deletions

File tree

arista/studio/v1/studio_pb2.pyi

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -611,12 +611,15 @@ class Entities(google.protobuf.message.Message):
611611
def values(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___Entity]:
612612
"""values is a map from EntityType enum name to Entity.
613613
Keys are the EntityType enum names defined below, e.g.:
614-
"ENTITY_TYPE_INPUTS" -> Entity{
615-
entity_type: ENTITY_TYPE_INPUTS,
616-
last_modified_at: 2026-05-07T12:34:56Z,
617-
last_modified_by: "admin",
618-
removed: false,
619-
}
614+
615+
```
616+
"ENTITY_TYPE_INPUTS" -> Entity{
617+
entity_type: ENTITY_TYPE_INPUTS,
618+
last_modified_at: 2026-05-07T12:34:56Z,
619+
last_modified_by: "admin",
620+
removed: false,
621+
}
622+
```
620623
"""
621624

622625
def __init__(
@@ -1151,10 +1154,13 @@ class FloatInputFieldProps(google.protobuf.message.Message):
11511154
`{ fieldId: field_id }`.
11521155
11531156
E.g,
1157+
1158+
```
11541159
[
1155-
`{ fieldId: floatField1ID }`,
1156-
`{ fieldId: floatField2ID }`
1160+
{ fieldId: floatField1ID },
1161+
{ fieldId: floatField2ID }
11571162
]
1163+
```
11581164
Here, the possible values for the floats identified by
11591165
`floatField1ID` and `floatField2ID` are used as the
11601166
possible values for this float.

arista/workspace/v1/workspace_pb2.pyi

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2144,9 +2144,12 @@ class DiffEntry(google.protobuf.message.Message):
21442144
- value: the element’s identifier
21452145
21462146
Example:
2147-
users = [\\{"id":"u1","name":"Alice"\\}]
2148-
key_path = ["users", "[id=u1]", "name"]
2149-
path = ["users", "0", "name"]
2147+
2148+
```
2149+
users = [{"id":"u1","name":"Alice"}]
2150+
key_path = ["users", "[id=u1]", "name"]
2151+
path = ["users", "0", "name"]
2152+
```
21502153
"""
21512154

21522155
def __init__(

cloudvision/api/arista/studio/v1/__init__.py

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -586,12 +586,15 @@ class Entities(aristaproto.Message):
586586
"""
587587
values is a map from EntityType enum name to Entity.
588588
Keys are the EntityType enum names defined below, e.g.:
589-
\"ENTITY_TYPE_INPUTS\" -> Entity{
590-
entity_type: ENTITY_TYPE_INPUTS,
591-
last_modified_at: 2026-05-07T12:34:56Z,
592-
last_modified_by: \"admin\",
593-
removed: false,
594-
}
589+
590+
```
591+
\"ENTITY_TYPE_INPUTS\" -> Entity{
592+
entity_type: ENTITY_TYPE_INPUTS,
593+
last_modified_at: 2026-05-07T12:34:56Z,
594+
last_modified_by: \"admin\",
595+
removed: false,
596+
}
597+
```
595598
"""
596599

597600

@@ -940,10 +943,13 @@ class FloatInputFieldProps(aristaproto.Message):
940943
`{ fieldId: field_id }`.
941944
942945
E.g,
946+
947+
```
943948
[
944-
`{ fieldId: floatField1ID }`,
945-
`{ fieldId: floatField2ID }`
949+
{ fieldId: floatField1ID },
950+
{ fieldId: floatField2ID }
946951
]
952+
```
947953
Here, the possible values for the floats identified by
948954
`floatField1ID` and `floatField2ID` are used as the
949955
possible values for this float.

cloudvision/api/arista/workspace/v1/__init__.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,9 +1425,12 @@ class DiffEntry(aristaproto.Message):
14251425
- value: the element’s identifier
14261426
14271427
Example:
1428-
users = [\{\"id\":\"u1\",\"name\":\"Alice\"\}]
1429-
key_path = [\"users\", \"[id=u1]\", \"name\"]
1430-
path = [\"users\", \"0\", \"name\"]
1428+
1429+
```
1430+
users = [{\"id\":\"u1\",\"name\":\"Alice\"}]
1431+
key_path = [\"users\", \"[id=u1]\", \"name\"]
1432+
path = [\"users\", \"0\", \"name\"]
1433+
```
14311434
"""
14321435

14331436

cloudvision/api/fmp/__init__.py

Lines changed: 100 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@
1010
__all__ = (
1111
"DeleteError",
1212
"SortDirection",
13+
"IpAddress",
14+
"RepeatedIpAddress",
15+
"IPv4Address",
16+
"RepeatedIPv4Address",
17+
"IPv6Address",
18+
"RepeatedIPv6Address",
19+
"IpPrefix",
20+
"IPv4Prefix",
21+
"IPv6Prefix",
22+
"Port",
1323
"RepeatedDouble",
1424
"RepeatedFloat",
1525
"RepeatedInt64",
@@ -75,16 +85,6 @@
7585
"MapStringBytes",
7686
"MacAddress",
7787
"RepeatedMacAddress",
78-
"IpAddress",
79-
"RepeatedIpAddress",
80-
"IPv4Address",
81-
"RepeatedIPv4Address",
82-
"IPv6Address",
83-
"RepeatedIPv6Address",
84-
"IpPrefix",
85-
"IPv4Prefix",
86-
"IPv6Prefix",
87-
"Port",
8888
)
8989

9090

@@ -140,6 +140,96 @@ class SortDirection(aristaproto.Enum):
140140
"""SORT_DIRECTION_DESCENDING sorts in descending order."""
141141

142142

143+
@dataclass(eq=False, repr=False)
144+
class IpAddress(aristaproto.Message):
145+
""" """
146+
147+
value: str = aristaproto.string_field(1)
148+
"""
149+
"""
150+
151+
152+
@dataclass(eq=False, repr=False)
153+
class RepeatedIpAddress(aristaproto.Message):
154+
""" """
155+
156+
values: List["IpAddress"] = aristaproto.message_field(1)
157+
"""
158+
"""
159+
160+
161+
@dataclass(eq=False, repr=False)
162+
class IPv4Address(aristaproto.Message):
163+
""" """
164+
165+
value: str = aristaproto.string_field(1)
166+
"""
167+
"""
168+
169+
170+
@dataclass(eq=False, repr=False)
171+
class RepeatedIPv4Address(aristaproto.Message):
172+
""" """
173+
174+
values: List["IPv4Address"] = aristaproto.message_field(1)
175+
"""
176+
"""
177+
178+
179+
@dataclass(eq=False, repr=False)
180+
class IPv6Address(aristaproto.Message):
181+
""" """
182+
183+
value: str = aristaproto.string_field(1)
184+
"""
185+
"""
186+
187+
188+
@dataclass(eq=False, repr=False)
189+
class RepeatedIPv6Address(aristaproto.Message):
190+
""" """
191+
192+
values: List["IPv6Address"] = aristaproto.message_field(1)
193+
"""
194+
"""
195+
196+
197+
@dataclass(eq=False, repr=False)
198+
class IpPrefix(aristaproto.Message):
199+
""" """
200+
201+
value: str = aristaproto.string_field(1)
202+
"""
203+
"""
204+
205+
206+
@dataclass(eq=False, repr=False)
207+
class IPv4Prefix(aristaproto.Message):
208+
""" """
209+
210+
value: str = aristaproto.string_field(1)
211+
"""
212+
"""
213+
214+
215+
@dataclass(eq=False, repr=False)
216+
class IPv6Prefix(aristaproto.Message):
217+
""" """
218+
219+
value: str = aristaproto.string_field(1)
220+
"""
221+
"""
222+
223+
224+
@dataclass(eq=False, repr=False)
225+
class Port(aristaproto.Message):
226+
""" """
227+
228+
value: int = aristaproto.uint32_field(1)
229+
"""
230+
"""
231+
232+
143233
@dataclass(eq=False, repr=False)
144234
class RepeatedDouble(aristaproto.Message):
145235
"""Wrapper message for `repeated double`."""
@@ -768,93 +858,3 @@ class RepeatedMacAddress(aristaproto.Message):
768858
values: List["MacAddress"] = aristaproto.message_field(1)
769859
"""
770860
"""
771-
772-
773-
@dataclass(eq=False, repr=False)
774-
class IpAddress(aristaproto.Message):
775-
""" """
776-
777-
value: str = aristaproto.string_field(1)
778-
"""
779-
"""
780-
781-
782-
@dataclass(eq=False, repr=False)
783-
class RepeatedIpAddress(aristaproto.Message):
784-
""" """
785-
786-
values: List["IpAddress"] = aristaproto.message_field(1)
787-
"""
788-
"""
789-
790-
791-
@dataclass(eq=False, repr=False)
792-
class IPv4Address(aristaproto.Message):
793-
""" """
794-
795-
value: str = aristaproto.string_field(1)
796-
"""
797-
"""
798-
799-
800-
@dataclass(eq=False, repr=False)
801-
class RepeatedIPv4Address(aristaproto.Message):
802-
""" """
803-
804-
values: List["IPv4Address"] = aristaproto.message_field(1)
805-
"""
806-
"""
807-
808-
809-
@dataclass(eq=False, repr=False)
810-
class IPv6Address(aristaproto.Message):
811-
""" """
812-
813-
value: str = aristaproto.string_field(1)
814-
"""
815-
"""
816-
817-
818-
@dataclass(eq=False, repr=False)
819-
class RepeatedIPv6Address(aristaproto.Message):
820-
""" """
821-
822-
values: List["IPv6Address"] = aristaproto.message_field(1)
823-
"""
824-
"""
825-
826-
827-
@dataclass(eq=False, repr=False)
828-
class IpPrefix(aristaproto.Message):
829-
""" """
830-
831-
value: str = aristaproto.string_field(1)
832-
"""
833-
"""
834-
835-
836-
@dataclass(eq=False, repr=False)
837-
class IPv4Prefix(aristaproto.Message):
838-
""" """
839-
840-
value: str = aristaproto.string_field(1)
841-
"""
842-
"""
843-
844-
845-
@dataclass(eq=False, repr=False)
846-
class IPv6Prefix(aristaproto.Message):
847-
""" """
848-
849-
value: str = aristaproto.string_field(1)
850-
"""
851-
"""
852-
853-
854-
@dataclass(eq=False, repr=False)
855-
class Port(aristaproto.Message):
856-
""" """
857-
858-
value: int = aristaproto.uint32_field(1)
859-
"""
860-
"""

0 commit comments

Comments
 (0)