@@ -93,6 +93,8 @@ def __init__(
9393 profile : KnownProfiles = KnownProfiles .default ,
9494 ** kwargs : Any
9595 ):
96+ if api_version :
97+ kwargs .setdefault ('api_version' , api_version )
9698 self ._config = ApplicationInsightsManagementClientConfiguration (credential , subscription_id , ** kwargs )
9799 self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
98100 super (ApplicationInsightsManagementClient , self ).__init__ (
@@ -183,7 +185,7 @@ def analytics_items(self):
183185 else :
184186 raise ValueError ("API version {} does not have operation group 'analytics_items'" .format (api_version ))
185187 self ._config .api_version = api_version
186- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
188+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
187189
188190 @property
189191 def annotations (self ):
@@ -197,7 +199,7 @@ def annotations(self):
197199 else :
198200 raise ValueError ("API version {} does not have operation group 'annotations'" .format (api_version ))
199201 self ._config .api_version = api_version
200- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
202+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
201203
202204 @property
203205 def api_keys (self ):
@@ -211,7 +213,7 @@ def api_keys(self):
211213 else :
212214 raise ValueError ("API version {} does not have operation group 'api_keys'" .format (api_version ))
213215 self ._config .api_version = api_version
214- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
216+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
215217
216218 @property
217219 def component_available_features (self ):
@@ -225,7 +227,7 @@ def component_available_features(self):
225227 else :
226228 raise ValueError ("API version {} does not have operation group 'component_available_features'" .format (api_version ))
227229 self ._config .api_version = api_version
228- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
230+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
229231
230232 @property
231233 def component_current_billing_features (self ):
@@ -239,7 +241,7 @@ def component_current_billing_features(self):
239241 else :
240242 raise ValueError ("API version {} does not have operation group 'component_current_billing_features'" .format (api_version ))
241243 self ._config .api_version = api_version
242- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
244+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
243245
244246 @property
245247 def component_current_pricing_plan (self ):
@@ -253,7 +255,7 @@ def component_current_pricing_plan(self):
253255 else :
254256 raise ValueError ("API version {} does not have operation group 'component_current_pricing_plan'" .format (api_version ))
255257 self ._config .api_version = api_version
256- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
258+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
257259
258260 @property
259261 def component_feature_capabilities (self ):
@@ -267,7 +269,7 @@ def component_feature_capabilities(self):
267269 else :
268270 raise ValueError ("API version {} does not have operation group 'component_feature_capabilities'" .format (api_version ))
269271 self ._config .api_version = api_version
270- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
272+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
271273
272274 @property
273275 def component_linked_storage_accounts (self ):
@@ -281,7 +283,7 @@ def component_linked_storage_accounts(self):
281283 else :
282284 raise ValueError ("API version {} does not have operation group 'component_linked_storage_accounts'" .format (api_version ))
283285 self ._config .api_version = api_version
284- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
286+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
285287
286288 @property
287289 def component_quota_status (self ):
@@ -295,7 +297,7 @@ def component_quota_status(self):
295297 else :
296298 raise ValueError ("API version {} does not have operation group 'component_quota_status'" .format (api_version ))
297299 self ._config .api_version = api_version
298- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
300+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
299301
300302 @property
301303 def components (self ):
@@ -318,7 +320,7 @@ def components(self):
318320 else :
319321 raise ValueError ("API version {} does not have operation group 'components'" .format (api_version ))
320322 self ._config .api_version = api_version
321- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
323+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
322324
323325 @property
324326 def ea_subscription_list_migration_date (self ):
@@ -332,7 +334,7 @@ def ea_subscription_list_migration_date(self):
332334 else :
333335 raise ValueError ("API version {} does not have operation group 'ea_subscription_list_migration_date'" .format (api_version ))
334336 self ._config .api_version = api_version
335- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
337+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
336338
337339 @property
338340 def ea_subscription_migrate_to_new_pricing_model (self ):
@@ -346,7 +348,7 @@ def ea_subscription_migrate_to_new_pricing_model(self):
346348 else :
347349 raise ValueError ("API version {} does not have operation group 'ea_subscription_migrate_to_new_pricing_model'" .format (api_version ))
348350 self ._config .api_version = api_version
349- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
351+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
350352
351353 @property
352354 def ea_subscription_rollback_to_legacy_pricing_model (self ):
@@ -360,7 +362,7 @@ def ea_subscription_rollback_to_legacy_pricing_model(self):
360362 else :
361363 raise ValueError ("API version {} does not have operation group 'ea_subscription_rollback_to_legacy_pricing_model'" .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 export_configurations (self ):
@@ -374,7 +376,7 @@ def export_configurations(self):
374376 else :
375377 raise ValueError ("API version {} does not have operation group 'export_configurations'" .format (api_version ))
376378 self ._config .api_version = api_version
377- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
379+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
378380
379381 @property
380382 def favorites (self ):
@@ -388,7 +390,7 @@ def favorites(self):
388390 else :
389391 raise ValueError ("API version {} does not have operation group 'favorites'" .format (api_version ))
390392 self ._config .api_version = api_version
391- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
393+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
392394
393395 @property
394396 def live_token (self ):
@@ -405,7 +407,7 @@ def live_token(self):
405407 else :
406408 raise ValueError ("API version {} does not have operation group 'live_token'" .format (api_version ))
407409 self ._config .api_version = api_version
408- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
410+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
409411
410412 @property
411413 def my_workbooks (self ):
@@ -422,7 +424,7 @@ def my_workbooks(self):
422424 else :
423425 raise ValueError ("API version {} does not have operation group 'my_workbooks'" .format (api_version ))
424426 self ._config .api_version = api_version
425- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
427+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
426428
427429 @property
428430 def operations (self ):
@@ -445,7 +447,7 @@ def operations(self):
445447 else :
446448 raise ValueError ("API version {} does not have operation group 'operations'" .format (api_version ))
447449 self ._config .api_version = api_version
448- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
450+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
449451
450452 @property
451453 def proactive_detection_configurations (self ):
@@ -462,7 +464,7 @@ def proactive_detection_configurations(self):
462464 else :
463465 raise ValueError ("API version {} does not have operation group 'proactive_detection_configurations'" .format (api_version ))
464466 self ._config .api_version = api_version
465- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
467+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
466468
467469 @property
468470 def web_test_locations (self ):
@@ -476,7 +478,7 @@ def web_test_locations(self):
476478 else :
477479 raise ValueError ("API version {} does not have operation group 'web_test_locations'" .format (api_version ))
478480 self ._config .api_version = api_version
479- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
481+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
480482
481483 @property
482484 def web_tests (self ):
@@ -496,7 +498,7 @@ def web_tests(self):
496498 else :
497499 raise ValueError ("API version {} does not have operation group 'web_tests'" .format (api_version ))
498500 self ._config .api_version = api_version
499- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
501+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
500502
501503 @property
502504 def work_item_configurations (self ):
@@ -510,7 +512,7 @@ def work_item_configurations(self):
510512 else :
511513 raise ValueError ("API version {} does not have operation group 'work_item_configurations'" .format (api_version ))
512514 self ._config .api_version = api_version
513- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
515+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
514516
515517 @property
516518 def workbook_templates (self ):
@@ -527,7 +529,7 @@ def workbook_templates(self):
527529 else :
528530 raise ValueError ("API version {} does not have operation group 'workbook_templates'" .format (api_version ))
529531 self ._config .api_version = api_version
530- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
532+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
531533
532534 @property
533535 def workbooks (self ):
@@ -550,7 +552,7 @@ def workbooks(self):
550552 else :
551553 raise ValueError ("API version {} does not have operation group 'workbooks'" .format (api_version ))
552554 self ._config .api_version = api_version
553- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
555+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
554556
555557 def close (self ):
556558 self ._client .close ()
0 commit comments