Skip to content

Commit

Permalink
(NEXMANAGE-683) Remove service_type from Operation in `common.pro…
Browse files Browse the repository at this point in the history
…to` (#547)
  • Loading branch information
gblewis1 authored Oct 30, 2024
1 parent 64bea9a commit b05ba00
Show file tree
Hide file tree
Showing 10 changed files with 307 additions and 490 deletions.
2 changes: 2 additions & 0 deletions inbm/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
### Changed
- (NEXMANAGE-874) Remove UT rollback command in dispatcher agent
- (NEXMANAGE-853) Remove ORAS and update method
- (NEXMANAGE-683) Remove service_type from Operation in common.proto

## 4.2.6 - 2024-10-04
### Added
Expand Down Expand Up @@ -65,6 +66,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- (NEXMANAGE-744) Don't pull in `dmidecode` in `inbm-lib` -- pull in only in `telemetry`
- (NEXMANAGE-744) Removed all references to `future` library as we do not use Python 2


## 4.2.5 - 2024-09-04
### Fixed
- Added #!/usr/bin/python3 lines to agents to work in source install mode.
Expand Down
70 changes: 29 additions & 41 deletions inbm/cloudadapter-agent/cloudadapter/pb/common/v1/common_pb2.py

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

24 changes: 1 addition & 23 deletions inbm/cloudadapter-agent/cloudadapter/pb/common/v1/common_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -180,33 +180,12 @@ global___RepeatedSchedule = RepeatedSchedule
class Operation(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

class _ServiceType:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType

class _ServiceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Operation._ServiceType.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
SERVICE_TYPE_UNSPECIFIED: Operation._ServiceType.ValueType # 0
SERVICE_TYPE_INBS: Operation._ServiceType.ValueType # 1
SERVICE_TYPE_OOB_AMT: Operation._ServiceType.ValueType # 2
SERVICE_TYPE_OOB_BMC: Operation._ServiceType.ValueType # 3
SERVICE_TYPE_AUTO: Operation._ServiceType.ValueType # 4

class ServiceType(_ServiceType, metaclass=_ServiceTypeEnumTypeWrapper): ...
SERVICE_TYPE_UNSPECIFIED: Operation.ServiceType.ValueType # 0
SERVICE_TYPE_INBS: Operation.ServiceType.ValueType # 1
SERVICE_TYPE_OOB_AMT: Operation.ServiceType.ValueType # 2
SERVICE_TYPE_OOB_BMC: Operation.ServiceType.ValueType # 3
SERVICE_TYPE_AUTO: Operation.ServiceType.ValueType # 4

PRE_OPERATIONS_FIELD_NUMBER: builtins.int
POST_OPERATIONS_FIELD_NUMBER: builtins.int
SERVICE_TYPE_FIELD_NUMBER: builtins.int
UPDATE_SYSTEM_SOFTWARE_OPERATION_FIELD_NUMBER: builtins.int
SET_POWER_STATE_OPERATION_FIELD_NUMBER: builtins.int
RPC_ACTIVATE_OPERATION_FIELD_NUMBER: builtins.int
UPDATE_FIRMWARE_OPERATION_FIELD_NUMBER: builtins.int
service_type: global___Operation.ServiceType.ValueType
@property
def pre_operations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PreOperation]: ...
@property
Expand All @@ -226,14 +205,13 @@ class Operation(google.protobuf.message.Message):
*,
pre_operations: collections.abc.Iterable[global___PreOperation] | None = ...,
post_operations: collections.abc.Iterable[global___PostOperation] | None = ...,
service_type: global___Operation.ServiceType.ValueType = ...,
update_system_software_operation: global___UpdateSystemSoftwareOperation | None = ...,
set_power_state_operation: global___SetPowerStateOperation | None = ...,
rpc_activate_operation: global___RpcActivateOperation | None = ...,
update_firmware_operation: global___UpdateFirmwareOperation | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["operation", b"operation", "rpc_activate_operation", b"rpc_activate_operation", "set_power_state_operation", b"set_power_state_operation", "update_firmware_operation", b"update_firmware_operation", "update_system_software_operation", b"update_system_software_operation"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["operation", b"operation", "post_operations", b"post_operations", "pre_operations", b"pre_operations", "rpc_activate_operation", b"rpc_activate_operation", "service_type", b"service_type", "set_power_state_operation", b"set_power_state_operation", "update_firmware_operation", b"update_firmware_operation", "update_system_software_operation", b"update_system_software_operation"]) -> None: ...
def ClearField(self, field_name: typing.Literal["operation", b"operation", "post_operations", b"post_operations", "pre_operations", b"pre_operations", "rpc_activate_operation", b"rpc_activate_operation", "set_power_state_operation", b"set_power_state_operation", "update_firmware_operation", b"update_firmware_operation", "update_system_software_operation", b"update_system_software_operation"]) -> None: ...
def WhichOneof(self, oneof_group: typing.Literal["operation", b"operation"]) -> typing.Literal["update_system_software_operation", "set_power_state_operation", "rpc_activate_operation", "update_firmware_operation"] | None: ...

global___Operation = Operation
Expand Down
Loading

0 comments on commit b05ba00

Please sign in to comment.