Skip to content

Commit

Permalink
arista/inventory.v1 : add user name in deviceDecommissionConfig
Browse files Browse the repository at this point in the history
- add userName in deviceDecommisionConfig
- user name field is used to show on cvp portal for decommissioned devices

[GENERATED_COMMIT]

Change-Id: I8991784a09ad545cbdb5d0411de6d7095198f202
  • Loading branch information
Arista-Jenkins authored and oumichae1 committed Aug 27, 2024
1 parent e70869e commit efce7f8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 19 deletions.
32 changes: 16 additions & 16 deletions arista/inventory/v1/inventory_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 25 additions & 3 deletions arista/inventory/v1/inventory_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class _StreamingStatus:
class _StreamingStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_StreamingStatus.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
STREAMING_STATUS_UNSPECIFIED: _StreamingStatus.ValueType # 0
"""STREAMING_STATUS_UNSPECIFIED indicates the device streaming telemetry status is unspecified."""

STREAMING_STATUS_INACTIVE: _StreamingStatus.ValueType # 1
"""STREAMING_STATUS_INACTIVE indicates the device is not streaming telemetry."""

Expand All @@ -32,6 +34,8 @@ class StreamingStatus(_StreamingStatus, metaclass=_StreamingStatusEnumTypeWrappe
pass

STREAMING_STATUS_UNSPECIFIED: StreamingStatus.ValueType # 0
"""STREAMING_STATUS_UNSPECIFIED indicates the device streaming telemetry status is unspecified."""

STREAMING_STATUS_INACTIVE: StreamingStatus.ValueType # 1
"""STREAMING_STATUS_INACTIVE indicates the device is not streaming telemetry."""

Expand All @@ -47,6 +51,8 @@ class _OnboardingStatus:
class _OnboardingStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_OnboardingStatus.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
ONBOARDING_STATUS_UNSPECIFIED: _OnboardingStatus.ValueType # 0
"""ONBOARDING_STATUS_UNSPECIFIED indicates onboarding status is unspecified."""

ONBOARDING_STATUS_IN_PROGRESS: _OnboardingStatus.ValueType # 1
"""ONBOARDING_STATUS_IN_PROGRESS indicates onboarding is in progress."""

Expand All @@ -63,6 +69,8 @@ class OnboardingStatus(_OnboardingStatus, metaclass=_OnboardingStatusEnumTypeWra
pass

ONBOARDING_STATUS_UNSPECIFIED: OnboardingStatus.ValueType # 0
"""ONBOARDING_STATUS_UNSPECIFIED indicates onboarding status is unspecified."""

ONBOARDING_STATUS_IN_PROGRESS: OnboardingStatus.ValueType # 1
"""ONBOARDING_STATUS_IN_PROGRESS indicates onboarding is in progress."""

Expand All @@ -81,6 +89,8 @@ class _DecommissioningStatus:
class _DecommissioningStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DecommissioningStatus.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
DECOMMISSIONING_STATUS_UNSPECIFIED: _DecommissioningStatus.ValueType # 0
"""DECOMMISSIONING_STATUS_UNSPECIFIED indicates decommissioning status is unspecified."""

DECOMMISSIONING_STATUS_IN_PROGRESS: _DecommissioningStatus.ValueType # 1
"""DECOMMISSIONING_STATUS_IN_PROGRESS indicates decommissioning is in progress."""

Expand All @@ -97,6 +107,8 @@ class DecommissioningStatus(_DecommissioningStatus, metaclass=_DecommissioningSt
pass

DECOMMISSIONING_STATUS_UNSPECIFIED: DecommissioningStatus.ValueType # 0
"""DECOMMISSIONING_STATUS_UNSPECIFIED indicates decommissioning status is unspecified."""

DECOMMISSIONING_STATUS_IN_PROGRESS: DecommissioningStatus.ValueType # 1
"""DECOMMISSIONING_STATUS_IN_PROGRESS indicates decommissioning is in progress."""

Expand All @@ -115,6 +127,8 @@ class _ProvisioningStatus:
class _ProvisioningStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ProvisioningStatus.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
PROVISIONING_STATUS_UNSPECIFIED: _ProvisioningStatus.ValueType # 0
"""PROVISIONING_STATUS_UNSPECIFIED indicates provisioning status is unspecified."""

PROVISIONING_STATUS_IN_PROGRESS: _ProvisioningStatus.ValueType # 1
"""PROVISIONING_STATUS_IN_PROGRESS indicates provisioning is in progress."""

Expand All @@ -131,6 +145,8 @@ class ProvisioningStatus(_ProvisioningStatus, metaclass=_ProvisioningStatusEnumT
pass

PROVISIONING_STATUS_UNSPECIFIED: ProvisioningStatus.ValueType # 0
"""PROVISIONING_STATUS_UNSPECIFIED indicates provisioning status is unspecified."""

PROVISIONING_STATUS_IN_PROGRESS: ProvisioningStatus.ValueType # 1
"""PROVISIONING_STATUS_IN_PROGRESS indicates provisioning is in progress."""

Expand Down Expand Up @@ -354,6 +370,7 @@ class DeviceDecommissioningConfig(google.protobuf.message.Message):
KEY_FIELD_NUMBER: builtins.int
DEVICE_ID_FIELD_NUMBER: builtins.int
FORCE_FIELD_NUMBER: builtins.int
USER_NAME_FIELD_NUMBER: builtins.int
@property
def key(self) -> global___UUIDKey:
"""key identifies the request to decommission the device."""
Expand All @@ -370,18 +387,23 @@ class DeviceDecommissioningConfig(google.protobuf.message.Message):
tasks would be ignored and decommissioning will be continued.
"""
pass
@property
def user_name(self) -> google.protobuf.wrappers_pb2.StringValue:
"""user_name is name of the user who decommissioned the device."""
pass
def __init__(self,
*,
key: typing.Optional[global___UUIDKey] = ...,
device_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ...,
force: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ...,
user_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["device_id",b"device_id","force",b"force","key",b"key"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["device_id",b"device_id","force",b"force","key",b"key"]) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["device_id",b"device_id","force",b"force","key",b"key","user_name",b"user_name"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["device_id",b"device_id","force",b"force","key",b"key","user_name",b"user_name"]) -> None: ...
global___DeviceDecommissioningConfig = DeviceDecommissioningConfig

class DeviceDecommissioning(google.protobuf.message.Message):
"""DeviceOnboarding describes the status of a decommissioning process."""
"""DeviceDecommissioning describes the status of a decommissioning process."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
KEY_FIELD_NUMBER: builtins.int
STATUS_FIELD_NUMBER: builtins.int
Expand Down

0 comments on commit efce7f8

Please sign in to comment.