@@ -72,6 +72,8 @@ def __init__(
7272        profile : KnownProfiles = KnownProfiles .default ,
7373        ** kwargs : Any 
7474    ):
75+         if  api_version :
76+             kwargs .setdefault ('api_version' , api_version )
7577        self ._config  =  EventHubManagementClientConfiguration (credential , subscription_id , ** kwargs )
7678        self ._client  =  ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
7779        super (EventHubManagementClient , self ).__init__ (
@@ -137,7 +139,7 @@ def application_group(self):
137139        else :
138140            raise  ValueError ("API version {} does not have operation group 'application_group'" .format (api_version ))
139141        self ._config .api_version  =  api_version 
140-         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
142+         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )),  api_version )
141143
142144    @property  
143145    def  clusters (self ):
@@ -163,7 +165,7 @@ def clusters(self):
163165        else :
164166            raise  ValueError ("API version {} does not have operation group 'clusters'" .format (api_version ))
165167        self ._config .api_version  =  api_version 
166-         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
168+         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )),  api_version )
167169
168170    @property  
169171    def  configuration (self ):
@@ -189,7 +191,7 @@ def configuration(self):
189191        else :
190192            raise  ValueError ("API version {} does not have operation group 'configuration'" .format (api_version ))
191193        self ._config .api_version  =  api_version 
192-         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
194+         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )),  api_version )
193195
194196    @property  
195197    def  consumer_groups (self ):
@@ -224,7 +226,7 @@ def consumer_groups(self):
224226        else :
225227            raise  ValueError ("API version {} does not have operation group 'consumer_groups'" .format (api_version ))
226228        self ._config .api_version  =  api_version 
227-         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
229+         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )),  api_version )
228230
229231    @property  
230232    def  disaster_recovery_configs (self ):
@@ -256,7 +258,7 @@ def disaster_recovery_configs(self):
256258        else :
257259            raise  ValueError ("API version {} does not have operation group 'disaster_recovery_configs'" .format (api_version ))
258260        self ._config .api_version  =  api_version 
259-         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
261+         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )),  api_version )
260262
261263    @property  
262264    def  event_hubs (self ):
@@ -291,7 +293,7 @@ def event_hubs(self):
291293        else :
292294            raise  ValueError ("API version {} does not have operation group 'event_hubs'" .format (api_version ))
293295        self ._config .api_version  =  api_version 
294-         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
296+         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )),  api_version )
295297
296298    @property  
297299    def  namespaces (self ):
@@ -326,7 +328,7 @@ def namespaces(self):
326328        else :
327329            raise  ValueError ("API version {} does not have operation group 'namespaces'" .format (api_version ))
328330        self ._config .api_version  =  api_version 
329-         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
331+         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )),  api_version )
330332
331333    @property  
332334    def  network_security_perimeter_configuration (self ):
@@ -343,7 +345,7 @@ def network_security_perimeter_configuration(self):
343345        else :
344346            raise  ValueError ("API version {} does not have operation group 'network_security_perimeter_configuration'" .format (api_version ))
345347        self ._config .api_version  =  api_version 
346-         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
348+         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )),  api_version )
347349
348350    @property  
349351    def  network_security_perimeter_configurations (self ):
@@ -360,7 +362,7 @@ def network_security_perimeter_configurations(self):
360362        else :
361363            raise  ValueError ("API version {} does not have operation group 'network_security_perimeter_configurations'" .format (api_version ))
362364        self ._config .api_version  =  api_version 
363-         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
365+         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )),  api_version )
364366
365367    @property  
366368    def  operations (self ):
@@ -395,7 +397,7 @@ def operations(self):
395397        else :
396398            raise  ValueError ("API version {} does not have operation group 'operations'" .format (api_version ))
397399        self ._config .api_version  =  api_version 
398-         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
400+         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )),  api_version )
399401
400402    @property  
401403    def  private_endpoint_connections (self ):
@@ -424,7 +426,7 @@ def private_endpoint_connections(self):
424426        else :
425427            raise  ValueError ("API version {} does not have operation group 'private_endpoint_connections'" .format (api_version ))
426428        self ._config .api_version  =  api_version 
427-         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
429+         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )),  api_version )
428430
429431    @property  
430432    def  private_link_resources (self ):
@@ -453,7 +455,7 @@ def private_link_resources(self):
453455        else :
454456            raise  ValueError ("API version {} does not have operation group 'private_link_resources'" .format (api_version ))
455457        self ._config .api_version  =  api_version 
456-         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
458+         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )),  api_version )
457459
458460    @property  
459461    def  regions (self ):
@@ -470,7 +472,7 @@ def regions(self):
470472        else :
471473            raise  ValueError ("API version {} does not have operation group 'regions'" .format (api_version ))
472474        self ._config .api_version  =  api_version 
473-         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
475+         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )),  api_version )
474476
475477    @property  
476478    def  schema_registry (self ):
@@ -490,7 +492,7 @@ def schema_registry(self):
490492        else :
491493            raise  ValueError ("API version {} does not have operation group 'schema_registry'" .format (api_version ))
492494        self ._config .api_version  =  api_version 
493-         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
495+         return  OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )),  api_version )
494496
495497    def  close (self ):
496498        self ._client .close ()
0 commit comments