Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR track2_azure-mgmt-applicationinsights] [Test] test generate file name #1811

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
{
"commit": "e60df62e9e0d88462e6abba81a76d94eab000f0d",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"commit": "565297e59f826a6d2da08d088926133db5ea94a7",
"repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs",
"autorest": "3.9.7",
"use": [
"@autorest/python@6.4.8",
"@autorest/modelerfour@4.24.3"
"@autorest/python@6.7.1",
"@autorest/modelerfour@4.26.2"
],
"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",
"readme": "specification/applicationinsights/resource-manager/readme.md"
"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",
"readme": "specification/applicationinsights/resource-manager/readme.md",
"package-2015-05": "2022-03-07 07:43:24 +0100 9735d8c1580e6b56e6d4508be6ec00f46e45cb77 Microsoft.Insights/stable/2015-05-01/webTests_API.json",
"package-2017-10": "2019-05-06 14:34:52 -0400 e129012901bbd9cc0f182ec5b539bccf2440ef4a Microsoft.Insights/preview/2017-10-01/eaSubscriptionMigration_API.json",
"package-2018-05-01-preview": "2021-08-24 22:48:16 -0700 e1eca381eca8ec1f80b722e5dbf060fdeef48653 Microsoft.Insights/preview/2018-05-01-preview/webTests_API.json",
"package-2018-06-17-preview": "2020-09-14 19:17:37 -0700 e354da005a6502cb3029853bd7360c69aeda80b6 Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json",
"package-2019-10-17-preview": "2020-07-27 18:31:44 -0700 ee068060cb90273a653e3964ffd9c69c6b2dc33b Microsoft.Insights/preview/2019-10-17-preview/workbookTemplates_API.json",
"package-2020-02-02-preview": "2021-05-11 01:54:13 +0300 497df1cf194392f38ce8b08405a6f887648d22fb Microsoft.Insights/preview/2020-02-02-preview/components_API.json",
"package-2020-02-02-only": "2022-07-01 09:55:24 +0300 1ddabd9234338d209f9755beac5c13cc0ae3b5f7 Microsoft.Insights/stable/2020-02-02/components_API.json",
"package-2020-03-01-preview": "2021-06-30 08:40:16 +0300 4483c52219e9e8490dabbe53f1fe8005e8f3acd3 Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json",
"package-preview-2020-06-only": "2021-06-30 08:40:16 +0300 4483c52219e9e8490dabbe53f1fe8005e8f3acd3 Microsoft.Insights/preview/2020-06-02-preview/livetoken_API.json",
"package-2020-11-only": "2022-03-07 07:43:24 +0100 9735d8c1580e6b56e6d4508be6ec00f46e45cb77 Microsoft.Insights/stable/2020-11-20/workbookTemplates_API.json",
"package-2021-03-08-only": "2021-05-05 20:47:33 -0700 6967cbe61d5d5fd18412343bcde770f3257c05b5 Microsoft.Insights/stable/2021-03-08/myworkbooks_API.json",
"package-2021-08": "2023-01-25 22:33:01 -0800 6e290d0b310e87d56cfa98cababea00b489d2c07 Microsoft.Insights/stable/2021-08-01/workbooks_API.json",
"package-2021-10": "2022-03-07 07:43:24 +0100 9735d8c1580e6b56e6d4508be6ec00f46e45cb77 Microsoft.Insights/stable/2021-10-14/livetoken_API.json",
"package-2022-04-01-only": "2023-01-25 22:33:01 -0800 6e290d0b310e87d56cfa98cababea00b489d2c07 Microsoft.Insights/stable/2022-04-01/workbooks_API.json",
"package-2022-06-15-only": "2023-01-19 08:29:19 +0530 13d172c85dac78b65d023dcd95097c383e38c048 Microsoft.Insights/stable/2022-06-15/webTests_API.json"
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ def __init__(
profile: KnownProfiles=KnownProfiles.default,
**kwargs: Any
):
if api_version:
kwargs.setdefault('api_version', api_version)
self._config = ApplicationInsightsManagementClientConfiguration(credential, subscription_id, **kwargs)
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
super(ApplicationInsightsManagementClient, self).__init__(
Expand Down Expand Up @@ -183,7 +185,7 @@ def analytics_items(self):
else:
raise ValueError("API version {} does not have operation group 'analytics_items'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def annotations(self):
Expand All @@ -197,7 +199,7 @@ def annotations(self):
else:
raise ValueError("API version {} does not have operation group 'annotations'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def api_keys(self):
Expand All @@ -211,7 +213,7 @@ def api_keys(self):
else:
raise ValueError("API version {} does not have operation group 'api_keys'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def component_available_features(self):
Expand All @@ -225,7 +227,7 @@ def component_available_features(self):
else:
raise ValueError("API version {} does not have operation group 'component_available_features'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def component_current_billing_features(self):
Expand All @@ -239,7 +241,7 @@ def component_current_billing_features(self):
else:
raise ValueError("API version {} does not have operation group 'component_current_billing_features'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def component_current_pricing_plan(self):
Expand All @@ -253,7 +255,7 @@ def component_current_pricing_plan(self):
else:
raise ValueError("API version {} does not have operation group 'component_current_pricing_plan'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def component_feature_capabilities(self):
Expand All @@ -267,7 +269,7 @@ def component_feature_capabilities(self):
else:
raise ValueError("API version {} does not have operation group 'component_feature_capabilities'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def component_linked_storage_accounts(self):
Expand All @@ -281,7 +283,7 @@ def component_linked_storage_accounts(self):
else:
raise ValueError("API version {} does not have operation group 'component_linked_storage_accounts'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def component_quota_status(self):
Expand All @@ -295,7 +297,7 @@ def component_quota_status(self):
else:
raise ValueError("API version {} does not have operation group 'component_quota_status'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def components(self):
Expand All @@ -318,7 +320,7 @@ def components(self):
else:
raise ValueError("API version {} does not have operation group 'components'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def ea_subscription_list_migration_date(self):
Expand All @@ -332,7 +334,7 @@ def ea_subscription_list_migration_date(self):
else:
raise ValueError("API version {} does not have operation group 'ea_subscription_list_migration_date'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def ea_subscription_migrate_to_new_pricing_model(self):
Expand All @@ -346,7 +348,7 @@ def ea_subscription_migrate_to_new_pricing_model(self):
else:
raise ValueError("API version {} does not have operation group 'ea_subscription_migrate_to_new_pricing_model'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def ea_subscription_rollback_to_legacy_pricing_model(self):
Expand All @@ -360,7 +362,7 @@ def ea_subscription_rollback_to_legacy_pricing_model(self):
else:
raise ValueError("API version {} does not have operation group 'ea_subscription_rollback_to_legacy_pricing_model'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def export_configurations(self):
Expand All @@ -374,7 +376,7 @@ def export_configurations(self):
else:
raise ValueError("API version {} does not have operation group 'export_configurations'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def favorites(self):
Expand All @@ -388,7 +390,7 @@ def favorites(self):
else:
raise ValueError("API version {} does not have operation group 'favorites'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def live_token(self):
Expand All @@ -405,7 +407,7 @@ def live_token(self):
else:
raise ValueError("API version {} does not have operation group 'live_token'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def my_workbooks(self):
Expand All @@ -422,7 +424,7 @@ def my_workbooks(self):
else:
raise ValueError("API version {} does not have operation group 'my_workbooks'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def operations(self):
Expand All @@ -445,7 +447,7 @@ def operations(self):
else:
raise ValueError("API version {} does not have operation group 'operations'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def proactive_detection_configurations(self):
Expand All @@ -462,7 +464,7 @@ def proactive_detection_configurations(self):
else:
raise ValueError("API version {} does not have operation group 'proactive_detection_configurations'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def web_test_locations(self):
Expand All @@ -476,7 +478,7 @@ def web_test_locations(self):
else:
raise ValueError("API version {} does not have operation group 'web_test_locations'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def web_tests(self):
Expand All @@ -496,7 +498,7 @@ def web_tests(self):
else:
raise ValueError("API version {} does not have operation group 'web_tests'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def work_item_configurations(self):
Expand All @@ -510,7 +512,7 @@ def work_item_configurations(self):
else:
raise ValueError("API version {} does not have operation group 'work_item_configurations'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def workbook_templates(self):
Expand All @@ -527,7 +529,7 @@ def workbook_templates(self):
else:
raise ValueError("API version {} does not have operation group 'workbook_templates'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

@property
def workbooks(self):
Expand All @@ -550,7 +552,7 @@ def workbooks(self):
else:
raise ValueError("API version {} does not have operation group 'workbooks'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)

def close(self):
self._client.close()
Expand Down
Loading
Loading