File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed 
src/frequenz/client/common/streaming Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 1+ # License: MIT 
2+ # Copyright © 2025 Frequenz Energy-as-a-Service GmbH 
3+ 
4+ """Type wrappers for the generated protobuf messages.""" 
5+ 
6+ 
7+ from  enum  import  Enum 
8+ 
9+ # pylint: disable-next=no-name-in-module 
10+ from  frequenz .api .common .v1alpha8 .streaming  import  event_pb2  as  PBEvent 
11+ 
12+ 
13+ class  Event (Enum ):
14+     """Enum representing the type of streaming event.""" 
15+ 
16+     EVENT_UNSPECIFIED  =  PBEvent .EVENT_UNSPECIFIED 
17+     """Unspecified event type.""" 
18+ 
19+     EVENT_CREATED  =  PBEvent .EVENT_CREATED 
20+     """Event when a new resource is created.""" 
21+ 
22+     EVENT_UPDATED  =  PBEvent .EVENT_UPDATED 
23+     """Event when an existing resource is updated.""" 
24+ 
25+     EVENT_DELETED  =  PBEvent .EVENT_DELETED 
26+     """Event when a resource is deleted.""" 
Original file line number Diff line number Diff line change 11# License: MIT 
22# Copyright © 2025 Frequenz Energy-as-a-Service GmbH 
33
4- """Tests for the frequenz.client.common.v1alpha8. streaming package.""" 
4+ """Tests for the frequenz.client.common.streaming package.""" 
55
66from  frequenz .client .common .enum_proto  import  enum_from_proto 
7- from  frequenz .client .common .v1alpha8 . streaming  import  Event 
7+ from  frequenz .client .common .streaming  import  Event 
88
99
1010def  test_event_enum () ->  None :
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments