Skip to content

Commit 2869da6

Browse files
Arista JenkinsYiwen Wu
authored andcommitted
workspace.v1: Add decommission_request_ids
[GENERATED_COMMIT] Change-Id: I12132443b81e8959053e1e9804260d8343946fe9
1 parent bded48e commit 2869da6

5 files changed

Lines changed: 153 additions & 133 deletions

File tree

‎arista/workspace/v1/workspace_pb2.py‎

Lines changed: 106 additions & 106 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎arista/workspace/v1/workspace_pb2.pyi‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,6 +1014,7 @@ class Workspace(google.protobuf.message.Message):
10141014
DISPLAY_NAME_FIELD_NUMBER: builtins.int
10151015
DESCRIPTION_FIELD_NUMBER: builtins.int
10161016
EXCLUDE_NETWORK_PROVISIONING_FIELD_NUMBER: builtins.int
1017+
DECOMMISSION_REQUEST_IDS_FIELD_NUMBER: builtins.int
10171018
state: global___WorkspaceState.ValueType
10181019
"""state describes the status of the workspace."""
10191020
@property
@@ -1084,6 +1085,15 @@ class Workspace(google.protobuf.message.Message):
10841085
configured to exclude Network Provisioning.
10851086
"""
10861087

1088+
@property
1089+
def decommission_request_ids(self) -> fmp.wrappers_pb2.MapStringString:
1090+
"""decommission_request_ids provides, for each device staged for
1091+
decommission in this workspace, the corresponding request UUID passed
1092+
to inventory.v1.DeviceDecommissioningConfig. These request UUIDs can
1093+
be used to track the status using the inventory.v1.DeviceDecommissioning
1094+
resource.
1095+
"""
1096+
10871097
def __init__(
10881098
self,
10891099
*,
@@ -1102,9 +1112,10 @@ class Workspace(google.protobuf.message.Message):
11021112
display_name: google.protobuf.wrappers_pb2.StringValue | None = ...,
11031113
description: google.protobuf.wrappers_pb2.StringValue | None = ...,
11041114
exclude_network_provisioning: google.protobuf.wrappers_pb2.BoolValue | None = ...,
1115+
decommission_request_ids: fmp.wrappers_pb2.MapStringString | None = ...,
11051116
) -> None: ...
1106-
def HasField(self, field_name: typing.Literal["cc_ids", b"cc_ids", "created_at", b"created_at", "created_by", b"created_by", "description", b"description", "display_name", b"display_name", "exclude_network_provisioning", b"exclude_network_provisioning", "key", b"key", "last_build_id", b"last_build_id", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by", "last_rebased_at", b"last_rebased_at", "needs_build", b"needs_build", "needs_rebase", b"needs_rebase", "responses", b"responses"]) -> builtins.bool: ...
1107-
def ClearField(self, field_name: typing.Literal["cc_ids", b"cc_ids", "created_at", b"created_at", "created_by", b"created_by", "description", b"description", "display_name", b"display_name", "exclude_network_provisioning", b"exclude_network_provisioning", "key", b"key", "last_build_id", b"last_build_id", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by", "last_rebased_at", b"last_rebased_at", "needs_build", b"needs_build", "needs_rebase", b"needs_rebase", "responses", b"responses", "state", b"state"]) -> None: ...
1117+
def HasField(self, field_name: typing.Literal["cc_ids", b"cc_ids", "created_at", b"created_at", "created_by", b"created_by", "decommission_request_ids", b"decommission_request_ids", "description", b"description", "display_name", b"display_name", "exclude_network_provisioning", b"exclude_network_provisioning", "key", b"key", "last_build_id", b"last_build_id", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by", "last_rebased_at", b"last_rebased_at", "needs_build", b"needs_build", "needs_rebase", b"needs_rebase", "responses", b"responses"]) -> builtins.bool: ...
1118+
def ClearField(self, field_name: typing.Literal["cc_ids", b"cc_ids", "created_at", b"created_at", "created_by", b"created_by", "decommission_request_ids", b"decommission_request_ids", "description", b"description", "display_name", b"display_name", "exclude_network_provisioning", b"exclude_network_provisioning", "key", b"key", "last_build_id", b"last_build_id", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by", "last_rebased_at", b"last_rebased_at", "needs_build", b"needs_build", "needs_rebase", b"needs_rebase", "responses", b"responses", "state", b"state"]) -> None: ...
11081119

11091120
global___Workspace = Workspace
11101121

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,15 @@ class Workspace(aristaproto.Message):
865865
configured to exclude Network Provisioning.
866866
"""
867867

868+
decommission_request_ids: "___fmp__.MapStringString" = aristaproto.message_field(16)
869+
"""
870+
decommission_request_ids provides, for each device staged for
871+
decommission in this workspace, the corresponding request UUID passed
872+
to inventory.v1.DeviceDecommissioningConfig. These request UUIDs can
873+
be used to track the status using the inventory.v1.DeviceDecommissioning
874+
resource.
875+
"""
876+
868877

869878
@dataclass(eq=False, repr=False)
870879
class InputError(aristaproto.Message):

‎cloudvision/api/fmp/__init__.py‎

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@
7373
"MapStringBool",
7474
"MapStringString",
7575
"MapStringBytes",
76+
"MacAddress",
77+
"RepeatedMacAddress",
7678
"IpAddress",
7779
"RepeatedIpAddress",
7880
"IPv4Address",
@@ -83,8 +85,6 @@
8385
"IPv4Prefix",
8486
"IPv6Prefix",
8587
"Port",
86-
"MacAddress",
87-
"RepeatedMacAddress",
8888
)
8989

9090

@@ -753,7 +753,7 @@ class MapStringBytes(aristaproto.Message):
753753

754754

755755
@dataclass(eq=False, repr=False)
756-
class IpAddress(aristaproto.Message):
756+
class MacAddress(aristaproto.Message):
757757
""" """
758758

759759
value: str = aristaproto.string_field(1)
@@ -762,16 +762,16 @@ class IpAddress(aristaproto.Message):
762762

763763

764764
@dataclass(eq=False, repr=False)
765-
class RepeatedIpAddress(aristaproto.Message):
765+
class RepeatedMacAddress(aristaproto.Message):
766766
""" """
767767

768-
values: List["IpAddress"] = aristaproto.message_field(1)
768+
values: List["MacAddress"] = aristaproto.message_field(1)
769769
"""
770770
"""
771771

772772

773773
@dataclass(eq=False, repr=False)
774-
class IPv4Address(aristaproto.Message):
774+
class IpAddress(aristaproto.Message):
775775
""" """
776776

777777
value: str = aristaproto.string_field(1)
@@ -780,16 +780,16 @@ class IPv4Address(aristaproto.Message):
780780

781781

782782
@dataclass(eq=False, repr=False)
783-
class RepeatedIPv4Address(aristaproto.Message):
783+
class RepeatedIpAddress(aristaproto.Message):
784784
""" """
785785

786-
values: List["IPv4Address"] = aristaproto.message_field(1)
786+
values: List["IpAddress"] = aristaproto.message_field(1)
787787
"""
788788
"""
789789

790790

791791
@dataclass(eq=False, repr=False)
792-
class IPv6Address(aristaproto.Message):
792+
class IPv4Address(aristaproto.Message):
793793
""" """
794794

795795
value: str = aristaproto.string_field(1)
@@ -798,16 +798,16 @@ class IPv6Address(aristaproto.Message):
798798

799799

800800
@dataclass(eq=False, repr=False)
801-
class RepeatedIPv6Address(aristaproto.Message):
801+
class RepeatedIPv4Address(aristaproto.Message):
802802
""" """
803803

804-
values: List["IPv6Address"] = aristaproto.message_field(1)
804+
values: List["IPv4Address"] = aristaproto.message_field(1)
805805
"""
806806
"""
807807

808808

809809
@dataclass(eq=False, repr=False)
810-
class IpPrefix(aristaproto.Message):
810+
class IPv6Address(aristaproto.Message):
811811
""" """
812812

813813
value: str = aristaproto.string_field(1)
@@ -816,16 +816,16 @@ class IpPrefix(aristaproto.Message):
816816

817817

818818
@dataclass(eq=False, repr=False)
819-
class IPv4Prefix(aristaproto.Message):
819+
class RepeatedIPv6Address(aristaproto.Message):
820820
""" """
821821

822-
value: str = aristaproto.string_field(1)
822+
values: List["IPv6Address"] = aristaproto.message_field(1)
823823
"""
824824
"""
825825

826826

827827
@dataclass(eq=False, repr=False)
828-
class IPv6Prefix(aristaproto.Message):
828+
class IpPrefix(aristaproto.Message):
829829
""" """
830830

831831
value: str = aristaproto.string_field(1)
@@ -834,16 +834,16 @@ class IPv6Prefix(aristaproto.Message):
834834

835835

836836
@dataclass(eq=False, repr=False)
837-
class Port(aristaproto.Message):
837+
class IPv4Prefix(aristaproto.Message):
838838
""" """
839839

840-
value: int = aristaproto.uint32_field(1)
840+
value: str = aristaproto.string_field(1)
841841
"""
842842
"""
843843

844844

845845
@dataclass(eq=False, repr=False)
846-
class MacAddress(aristaproto.Message):
846+
class IPv6Prefix(aristaproto.Message):
847847
""" """
848848

849849
value: str = aristaproto.string_field(1)
@@ -852,9 +852,9 @@ class MacAddress(aristaproto.Message):
852852

853853

854854
@dataclass(eq=False, repr=False)
855-
class RepeatedMacAddress(aristaproto.Message):
855+
class Port(aristaproto.Message):
856856
""" """
857857

858-
values: List["MacAddress"] = aristaproto.message_field(1)
858+
value: int = aristaproto.uint32_field(1)
859859
"""
860860
"""

‎fmp/__init__.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Copyright (c) 2026 Arista Networks, Inc. All rights reserved.
22

3-
import fmp.wrappers_pb2 as wrappers
4-
import fmp.deletes_pb2 as deletes
5-
import fmp.yang_pb2 as yang
6-
import fmp.extensions_pb2 as extensions
7-
import fmp.inet_pb2 as inet
83
import fmp.pages_pb2 as pages
4+
import fmp.inet_pb2 as inet
5+
import fmp.extensions_pb2 as extensions
6+
import fmp.yang_pb2 as yang
7+
import fmp.deletes_pb2 as deletes
8+
import fmp.wrappers_pb2 as wrappers

0 commit comments

Comments
 (0)