Skip to content

Commit a7e05d3

Browse files
author
SDKAuto
committed
CodeGen from PR 32585 in Azure/azure-rest-api-specs
Merge 74cd0f695039b528a368a83e4f520eeac44642d9 into d507e8437a3259e88e6f1222f401340a98a11293
1 parent acc0d4a commit a7e05d3

File tree

72 files changed

+3321
-1214
lines changed

Some content is hidden

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

72 files changed

+3321
-1214
lines changed

sdk/loadtesting/azure-developer-loadtesting/MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ include azure/developer/loadtesting/py.typed
44
recursive-include tests *.py
55
recursive-include samples *.py *.md
66
include azure/__init__.py
7-
include azure/developer/__init__.py
7+
include azure/developer/__init__.py
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"commit": "42d1b1dbcc898cd840e7fac2373fdc2755ed00d8",
3+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4+
"typespec_src": "specification/loadtestservice/LoadTestService",
5+
"@azure-tools/typespec-python": "0.43.0"
6+
}
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
{
2+
"CrossLanguagePackageId": "Microsoft.LoadTestService",
3+
"CrossLanguageDefinitionId": {
4+
"azure.developer.loadtesting.models.AppComponent": "Microsoft.LoadTestService.AppComponent",
5+
"azure.developer.loadtesting.models.ArtifactsContainerInfo": "Microsoft.LoadTestService.ArtifactsContainerInfo",
6+
"azure.developer.loadtesting.models.AutoStopCriteria": "Microsoft.LoadTestService.AutoStopCriteria",
7+
"azure.developer.loadtesting.models.CertificateMetadata": "Microsoft.LoadTestService.CertificateMetadata",
8+
"azure.developer.loadtesting.models.DimensionFilter": "Microsoft.LoadTestService.DimensionFilter",
9+
"azure.developer.loadtesting.models.DimensionValue": "Microsoft.LoadTestService.DimensionValue",
10+
"azure.developer.loadtesting.models.ErrorDetails": "Microsoft.LoadTestService.ErrorDetails",
11+
"azure.developer.loadtesting.models.FunctionFlexConsumptionResourceConfiguration": "Microsoft.LoadTestService.FunctionFlexConsumptionResourceConfiguration",
12+
"azure.developer.loadtesting.models.TargetResourceConfigurations": "Microsoft.LoadTestService.TargetResourceConfigurations",
13+
"azure.developer.loadtesting.models.FunctionFlexConsumptionTargetResourceConfigurations": "Microsoft.LoadTestService.FunctionFlexConsumptionTargetResourceConfigurations",
14+
"azure.developer.loadtesting.models.LoadTestConfiguration": "Microsoft.LoadTestService.LoadTestConfiguration",
15+
"azure.developer.loadtesting.models.MetricAvailability": "Microsoft.LoadTestService.MetricAvailability",
16+
"azure.developer.loadtesting.models.MetricDefinition": "Microsoft.LoadTestService.MetricDefinition",
17+
"azure.developer.loadtesting.models.MetricDefinitionCollection": "Microsoft.LoadTestService.MetricDefinitionCollection",
18+
"azure.developer.loadtesting.models.MetricNamespace": "Microsoft.LoadTestService.MetricNamespace",
19+
"azure.developer.loadtesting.models.MetricNamespaceCollection": "Microsoft.LoadTestService.MetricNamespaceCollection",
20+
"azure.developer.loadtesting.models.MetricRequestPayload": "Microsoft.LoadTestService.MetricRequestPayload",
21+
"azure.developer.loadtesting.models.MetricValue": "Microsoft.LoadTestService.MetricValue",
22+
"azure.developer.loadtesting.models.NameAndDescription": "Microsoft.LoadTestService.NameAndDescription",
23+
"azure.developer.loadtesting.models.OptionalLoadTestConfiguration": "Microsoft.LoadTestService.OptionalLoadTestConfiguration",
24+
"azure.developer.loadtesting.models.PassFailCriteria": "Microsoft.LoadTestService.PassFailCriteria",
25+
"azure.developer.loadtesting.models.PassFailMetric": "Microsoft.LoadTestService.PassFailMetric",
26+
"azure.developer.loadtesting.models.PassFailServerMetric": "Microsoft.LoadTestService.PassFailServerMetric",
27+
"azure.developer.loadtesting.models.RegionalConfiguration": "Microsoft.LoadTestService.RegionalConfiguration",
28+
"azure.developer.loadtesting.models.ResourceMetric": "Microsoft.LoadTestService.ResourceMetric",
29+
"azure.developer.loadtesting.models.Secret": "Microsoft.LoadTestService.Secret",
30+
"azure.developer.loadtesting.models.Test": "Microsoft.LoadTestService.Test",
31+
"azure.developer.loadtesting.models.TestAppComponents": "Microsoft.LoadTestService.TestAppComponents",
32+
"azure.developer.loadtesting.models.TestFileInfo": "Microsoft.LoadTestService.TestFileInfo",
33+
"azure.developer.loadtesting.models.TestInputArtifacts": "Microsoft.LoadTestService.TestInputArtifacts",
34+
"azure.developer.loadtesting.models.TestProfile": "Microsoft.LoadTestService.TestProfile",
35+
"azure.developer.loadtesting.models.TestProfileRun": "Microsoft.LoadTestService.TestProfileRun",
36+
"azure.developer.loadtesting.models.TestProfileRunRecommendation": "Microsoft.LoadTestService.TestProfileRunRecommendation",
37+
"azure.developer.loadtesting.models.TestRun": "Microsoft.LoadTestService.TestRun",
38+
"azure.developer.loadtesting.models.TestRunAppComponents": "Microsoft.LoadTestService.TestRunAppComponents",
39+
"azure.developer.loadtesting.models.TestRunArtifacts": "Microsoft.LoadTestService.TestRunArtifacts",
40+
"azure.developer.loadtesting.models.TestRunDetail": "Microsoft.LoadTestService.TestRunDetail",
41+
"azure.developer.loadtesting.models.TestRunFileInfo": "Microsoft.LoadTestService.TestRunFileInfo",
42+
"azure.developer.loadtesting.models.TestRunInputArtifacts": "Microsoft.LoadTestService.TestRunInputArtifacts",
43+
"azure.developer.loadtesting.models.TestRunOutputArtifacts": "Microsoft.LoadTestService.TestRunOutputArtifacts",
44+
"azure.developer.loadtesting.models.TestRunServerMetricsConfiguration": "Microsoft.LoadTestService.TestRunServerMetricsConfiguration",
45+
"azure.developer.loadtesting.models.TestRunStatistics": "Microsoft.LoadTestService.TestRunStatistics",
46+
"azure.developer.loadtesting.models.TestServerMetricsConfiguration": "Microsoft.LoadTestService.TestServerMetricsConfiguration",
47+
"azure.developer.loadtesting.models.TimeSeriesElement": "Microsoft.LoadTestService.TimeSeriesElement",
48+
"azure.developer.loadtesting.models.PFMetrics": "Microsoft.LoadTestService.PFMetrics",
49+
"azure.developer.loadtesting.models.PassFailAggregationFunction": "Microsoft.LoadTestService.PassFailAggregationFunction",
50+
"azure.developer.loadtesting.models.PassFailAction": "Microsoft.LoadTestService.PassFailAction",
51+
"azure.developer.loadtesting.models.PassFailResult": "Microsoft.LoadTestService.PassFailResult",
52+
"azure.developer.loadtesting.models.SecretType": "Microsoft.LoadTestService.SecretType",
53+
"azure.developer.loadtesting.models.CertificateType": "Microsoft.LoadTestService.CertificateType",
54+
"azure.developer.loadtesting.models.FileType": "Microsoft.LoadTestService.FileType",
55+
"azure.developer.loadtesting.models.FileValidationStatus": "Microsoft.LoadTestService.FileValidationStatus",
56+
"azure.developer.loadtesting.models.TestKind": "Microsoft.LoadTestService.TestKind",
57+
"azure.developer.loadtesting.models.ManagedIdentityType": "Microsoft.LoadTestService.ManagedIdentityType",
58+
"azure.developer.loadtesting.models.ResourceKind": "Microsoft.LoadTestService.ResourceKind",
59+
"azure.developer.loadtesting.models.PassFailTestResult": "Microsoft.LoadTestService.PassFailTestResult",
60+
"azure.developer.loadtesting.models.TestRunStatus": "Microsoft.LoadTestService.TestRunStatus",
61+
"azure.developer.loadtesting.models.RequestDataLevel": "Microsoft.LoadTestService.RequestDataLevel",
62+
"azure.developer.loadtesting.models.CreatedByType": "Microsoft.LoadTestService.CreatedByType",
63+
"azure.developer.loadtesting.models.TimeGrain": "Microsoft.LoadTestService.TimeGrain",
64+
"azure.developer.loadtesting.models.Aggregation": "Microsoft.LoadTestService.Aggregation",
65+
"azure.developer.loadtesting.models.MetricUnit": "Microsoft.LoadTestService.MetricUnit",
66+
"azure.developer.loadtesting.models.TestProfileRunStatus": "Microsoft.LoadTestService.TestProfileRunStatus",
67+
"azure.developer.loadtesting.models.RecommendationCategory": "Microsoft.LoadTestService.RecommendationCategory",
68+
"azure.developer.loadtesting.LoadTestAdministrationClient.create_or_update_test": "Customizations.AdministrationOperations.createOrUpdateTest",
69+
"azure.developer.loadtesting.LoadTestAdministrationClient.create_or_update_app_components": "Customizations.AdministrationOperations.createOrUpdateAppComponents",
70+
"azure.developer.loadtesting.LoadTestAdministrationClient.create_or_update_server_metrics_config": "Customizations.AdministrationOperations.createOrUpdateServerMetricsConfig",
71+
"azure.developer.loadtesting.LoadTestAdministrationClient.get_app_components": "Customizations.AdministrationOperations.getAppComponents",
72+
"azure.developer.loadtesting.LoadTestAdministrationClient.get_server_metrics_config": "Customizations.AdministrationOperations.getServerMetricsConfig",
73+
"azure.developer.loadtesting.LoadTestAdministrationClient.get_test": "Customizations.AdministrationOperations.getTest",
74+
"azure.developer.loadtesting.LoadTestAdministrationClient.get_test_file": "Customizations.AdministrationOperations.getTestFile",
75+
"azure.developer.loadtesting.LoadTestAdministrationClient.list_test_files": "Customizations.AdministrationOperations.listTestFiles",
76+
"azure.developer.loadtesting.LoadTestAdministrationClient.list_tests": "Customizations.AdministrationOperations.listTests",
77+
"azure.developer.loadtesting.LoadTestAdministrationClient.delete_test_file": "Customizations.AdministrationOperations.deleteTestFile",
78+
"azure.developer.loadtesting.LoadTestAdministrationClient.delete_test": "Customizations.AdministrationOperations.deleteTest",
79+
"azure.developer.loadtesting.LoadTestAdministrationClient.create_or_update_test_profile": "Customizations.AdministrationOperations.createOrUpdateTestProfile",
80+
"azure.developer.loadtesting.LoadTestAdministrationClient.delete_test_profile": "Customizations.AdministrationOperations.deleteTestProfile",
81+
"azure.developer.loadtesting.LoadTestAdministrationClient.get_test_profile": "Customizations.AdministrationOperations.getTestProfile",
82+
"azure.developer.loadtesting.LoadTestAdministrationClient.list_test_profiles": "Customizations.AdministrationOperations.listTestProfiles",
83+
"azure.developer.loadtesting.LoadTestRunClient.create_or_update_app_components": "Customizations.TestRunOperations.createOrUpdateAppComponents",
84+
"azure.developer.loadtesting.LoadTestRunClient.create_or_update_server_metrics_config": "Customizations.TestRunOperations.createOrUpdateServerMetricsConfig",
85+
"azure.developer.loadtesting.LoadTestRunClient.delete_test_run": "Customizations.TestRunOperations.deleteTestRun",
86+
"azure.developer.loadtesting.LoadTestRunClient.get_app_components": "Customizations.TestRunOperations.getAppComponents",
87+
"azure.developer.loadtesting.LoadTestRunClient.get_server_metrics_config": "Customizations.TestRunOperations.getServerMetricsConfig",
88+
"azure.developer.loadtesting.LoadTestRunClient.get_test_run": "Customizations.TestRunOperations.getTestRun",
89+
"azure.developer.loadtesting.LoadTestRunClient.get_test_run_file": "Customizations.TestRunOperations.getTestRunFile",
90+
"azure.developer.loadtesting.LoadTestRunClient.list_metric_dimension_values": "Customizations.TestRunOperations.listMetricDimensionValues",
91+
"azure.developer.loadtesting.LoadTestRunClient.get_metric_definitions": "Customizations.TestRunOperations.listMetricDefinitions",
92+
"azure.developer.loadtesting.LoadTestRunClient.get_metric_namespaces": "Customizations.TestRunOperations.listMetricNamespaces",
93+
"azure.developer.loadtesting.LoadTestRunClient.list_metrics": "Customizations.TestRunOperations.listMetrics",
94+
"azure.developer.loadtesting.LoadTestRunClient.list_test_runs": "Customizations.TestRunOperations.listTestRuns",
95+
"azure.developer.loadtesting.LoadTestRunClient.stop_test_run": "Customizations.TestRunOperations.stop",
96+
"azure.developer.loadtesting.LoadTestRunClient.delete_test_profile_run": "Customizations.TestRunOperations.deleteTestProfileRun",
97+
"azure.developer.loadtesting.LoadTestRunClient.get_test_profile_run": "Customizations.TestRunOperations.getTestProfileRun",
98+
"azure.developer.loadtesting.LoadTestRunClient.list_test_profile_runs": "Customizations.TestRunOperations.listTestProfileRuns",
99+
"azure.developer.loadtesting.LoadTestRunClient.stop_test_profile_run": "Customizations.TestRunOperations.stopTestProfileRun"
100+
}
101+
}

sdk/loadtesting/azure-developer-loadtesting/azure/developer/loadtesting/_client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ class LoadTestAdministrationClient(LoadTestAdministrationClientOperationsMixin):
3030
:param credential: Credential used to authenticate requests to the service. Required.
3131
:type credential: ~azure.core.credentials.TokenCredential
3232
:keyword api_version: The API version to use for this operation. Default value is
33-
"2024-12-01-preview". Note that overriding this default value may result in unsupported
33+
"2025-03-01-preview". Note that overriding this default value may result in unsupported
3434
behavior.
3535
:paramtype api_version: str
3636
"""
3737

3838
def __init__(self, endpoint: str, credential: "TokenCredential", **kwargs: Any) -> None:
3939
_endpoint = "https://{endpoint}"
4040
self._config = LoadTestAdministrationClientConfiguration(endpoint=endpoint, credential=credential, **kwargs)
41+
4142
_policies = kwargs.pop("policies", None)
4243
if _policies is None:
4344
_policies = [
@@ -106,14 +107,15 @@ class LoadTestRunClient(LoadTestRunClientOperationsMixin):
106107
:param credential: Credential used to authenticate requests to the service. Required.
107108
:type credential: ~azure.core.credentials.TokenCredential
108109
:keyword api_version: The API version to use for this operation. Default value is
109-
"2024-12-01-preview". Note that overriding this default value may result in unsupported
110+
"2025-03-01-preview". Note that overriding this default value may result in unsupported
110111
behavior.
111112
:paramtype api_version: str
112113
"""
113114

114115
def __init__(self, endpoint: str, credential: "TokenCredential", **kwargs: Any) -> None:
115116
_endpoint = "https://{endpoint}"
116117
self._config = LoadTestRunClientConfiguration(endpoint=endpoint, credential=credential, **kwargs)
118+
117119
_policies = kwargs.pop("policies", None)
118120
if _policies is None:
119121
_policies = [

sdk/loadtesting/azure-developer-loadtesting/azure/developer/loadtesting/_configuration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ class LoadTestAdministrationClientConfiguration: # pylint: disable=too-many-ins
2727
:param credential: Credential used to authenticate requests to the service. Required.
2828
:type credential: ~azure.core.credentials.TokenCredential
2929
:keyword api_version: The API version to use for this operation. Default value is
30-
"2024-12-01-preview". Note that overriding this default value may result in unsupported
30+
"2025-03-01-preview". Note that overriding this default value may result in unsupported
3131
behavior.
3232
:paramtype api_version: str
3333
"""
3434

3535
def __init__(self, endpoint: str, credential: "TokenCredential", **kwargs: Any) -> None:
36-
api_version: str = kwargs.pop("api_version", "2024-12-01-preview")
36+
api_version: str = kwargs.pop("api_version", "2025-03-01-preview")
3737

3838
if endpoint is None:
3939
raise ValueError("Parameter 'endpoint' must not be None.")
@@ -75,13 +75,13 @@ class LoadTestRunClientConfiguration: # pylint: disable=too-many-instance-attri
7575
:param credential: Credential used to authenticate requests to the service. Required.
7676
:type credential: ~azure.core.credentials.TokenCredential
7777
:keyword api_version: The API version to use for this operation. Default value is
78-
"2024-12-01-preview". Note that overriding this default value may result in unsupported
78+
"2025-03-01-preview". Note that overriding this default value may result in unsupported
7979
behavior.
8080
:paramtype api_version: str
8181
"""
8282

8383
def __init__(self, endpoint: str, credential: "TokenCredential", **kwargs: Any) -> None:
84-
api_version: str = kwargs.pop("api_version", "2024-12-01-preview")
84+
api_version: str = kwargs.pop("api_version", "2025-03-01-preview")
8585

8686
if endpoint is None:
8787
raise ValueError("Parameter 'endpoint' must not be None.")

0 commit comments

Comments
 (0)