Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit 3d02e34

Browse files
author
SDKAuto
committed
CodeGen from PR 3197 in test-repo-billy/azure-rest-api-specs
Merge ae53571e91b8e256174afbed033c2772c35a634b into 2a3aeccebd978831771083e30bb5bbce3c2e485a
1 parent e56a49c commit 3d02e34

File tree

147 files changed

+1411
-970
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+1411
-970
lines changed
Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
11
{
2-
"commit": "e60df62e9e0d88462e6abba81a76d94eab000f0d",
3-
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.2",
2+
"commit": "565297e59f826a6d2da08d088926133db5ea94a7",
3+
"repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs",
4+
"autorest": "3.9.7",
55
"use": [
6-
"@autorest/python@6.4.8",
7-
"@autorest/modelerfour@4.24.3"
6+
"@autorest/python@6.7.1",
7+
"@autorest/modelerfour@4.26.2"
88
],
9-
"autorest_command": "autorest specification/applicationinsights/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
10-
"readme": "specification/applicationinsights/resource-manager/readme.md"
9+
"autorest_command": "autorest specification/applicationinsights/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
10+
"readme": "specification/applicationinsights/resource-manager/readme.md",
11+
"package-2015-05": "2022-03-07 07:43:24 +0100 9735d8c1580e6b56e6d4508be6ec00f46e45cb77 Microsoft.Insights/stable/2015-05-01/webTests_API.json",
12+
"package-2017-10": "2019-05-06 14:34:52 -0400 e129012901bbd9cc0f182ec5b539bccf2440ef4a Microsoft.Insights/preview/2017-10-01/eaSubscriptionMigration_API.json",
13+
"package-2018-05-01-preview": "2021-08-24 22:48:16 -0700 e1eca381eca8ec1f80b722e5dbf060fdeef48653 Microsoft.Insights/preview/2018-05-01-preview/webTests_API.json",
14+
"package-2018-06-17-preview": "2020-09-14 19:17:37 -0700 e354da005a6502cb3029853bd7360c69aeda80b6 Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json",
15+
"package-2019-10-17-preview": "2020-07-27 18:31:44 -0700 ee068060cb90273a653e3964ffd9c69c6b2dc33b Microsoft.Insights/preview/2019-10-17-preview/workbookTemplates_API.json",
16+
"package-2020-02-02-preview": "2021-05-11 01:54:13 +0300 497df1cf194392f38ce8b08405a6f887648d22fb Microsoft.Insights/preview/2020-02-02-preview/components_API.json",
17+
"package-2020-02-02-only": "2022-07-01 09:55:24 +0300 1ddabd9234338d209f9755beac5c13cc0ae3b5f7 Microsoft.Insights/stable/2020-02-02/components_API.json",
18+
"package-2020-03-01-preview": "2021-06-30 08:40:16 +0300 4483c52219e9e8490dabbe53f1fe8005e8f3acd3 Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json",
19+
"package-preview-2020-06-only": "2021-06-30 08:40:16 +0300 4483c52219e9e8490dabbe53f1fe8005e8f3acd3 Microsoft.Insights/preview/2020-06-02-preview/livetoken_API.json",
20+
"package-2020-11-only": "2022-03-07 07:43:24 +0100 9735d8c1580e6b56e6d4508be6ec00f46e45cb77 Microsoft.Insights/stable/2020-11-20/workbookTemplates_API.json",
21+
"package-2021-03-08-only": "2021-05-05 20:47:33 -0700 6967cbe61d5d5fd18412343bcde770f3257c05b5 Microsoft.Insights/stable/2021-03-08/myworkbooks_API.json",
22+
"package-2021-08": "2023-01-25 22:33:01 -0800 6e290d0b310e87d56cfa98cababea00b489d2c07 Microsoft.Insights/stable/2021-08-01/workbooks_API.json",
23+
"package-2021-10": "2022-03-07 07:43:24 +0100 9735d8c1580e6b56e6d4508be6ec00f46e45cb77 Microsoft.Insights/stable/2021-10-14/livetoken_API.json",
24+
"package-2022-04-01-only": "2023-01-25 22:33:01 -0800 6e290d0b310e87d56cfa98cababea00b489d2c07 Microsoft.Insights/stable/2022-04-01/workbooks_API.json",
25+
"package-2022-06-15-only": "2023-01-19 08:29:19 +0530 13d172c85dac78b65d023dcd95097c383e38c048 Microsoft.Insights/stable/2022-06-15/webTests_API.json"
1126
}

sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/_application_insights_management_client.py

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)