Skip to content

Commit 1daf11d

Browse files
author
SDKAuto
committed
CodeGen from PR 24400 in Azure/azure-rest-api-specs
Merge 75e463bf00bdc64fd0b1e3ead5eff017165ec5e4 into b8e1a19d4242281fd924f3f88962c7962fd02fee
1 parent 8ba11a5 commit 1daf11d

File tree

162 files changed

+2110
-609
lines changed

Some content is hidden

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

162 files changed

+2110
-609
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "3c639105c011765893db51cbb0dda056e34dc994",
2+
"commit": "cb51c0f3ba6c42281b50ad4a5129f2554da27c77",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/python@6.4.8",
6+
"@autorest/python@6.6.0",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/app/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/python@6.4.8 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/app/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/python@6.6.0 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/app/resource-manager/readme.md"
1111
}

sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ class ContainerAppsAPIClientConfiguration(Configuration): # pylint: disable=too
2929
:type credential: ~azure.core.credentials.TokenCredential
3030
:param subscription_id: The ID of the target subscription. Required.
3131
:type subscription_id: str
32-
:keyword api_version: Api Version. Default value is "2022-11-01-preview". Note that overriding
32+
:keyword api_version: Api Version. Default value is "2023-04-01-preview". Note that overriding
3333
this default value may result in unsupported behavior.
3434
:paramtype api_version: str
3535
"""
3636

3737
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
3838
super(ContainerAppsAPIClientConfiguration, self).__init__(**kwargs)
39-
api_version: str = kwargs.pop("api_version", "2022-11-01-preview")
39+
api_version: str = kwargs.pop("api_version", "2023-04-01-preview")
4040

4141
if credential is None:
4242
raise ValueError("Parameter 'credential' must not be None.")

sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_container_apps_api_client.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
ConnectedEnvironmentsDaprComponentsOperations,
2424
ConnectedEnvironmentsOperations,
2525
ConnectedEnvironmentsStoragesOperations,
26+
ContainerAppsAPIClientOperationsMixin,
2627
ContainerAppsAuthConfigsOperations,
2728
ContainerAppsDiagnosticsOperations,
2829
ContainerAppsOperations,
@@ -46,7 +47,9 @@
4647
from azure.core.credentials import TokenCredential
4748

4849

49-
class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
50+
class ContainerAppsAPIClient(
51+
ContainerAppsAPIClientOperationsMixin
52+
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
5053
"""ContainerAppsAPIClient.
5154
5255
:ivar container_apps_auth_configs: ContainerAppsAuthConfigsOperations operations
@@ -73,10 +76,6 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
7376
azure.mgmt.appcontainers.operations.ConnectedEnvironmentsStoragesOperations
7477
:ivar container_apps: ContainerAppsOperations operations
7578
:vartype container_apps: azure.mgmt.appcontainers.operations.ContainerAppsOperations
76-
:ivar jobs: JobsOperations operations
77-
:vartype jobs: azure.mgmt.appcontainers.operations.JobsOperations
78-
:ivar jobs_executions: JobsExecutionsOperations operations
79-
:vartype jobs_executions: azure.mgmt.appcontainers.operations.JobsExecutionsOperations
8079
:ivar container_apps_revisions: ContainerAppsRevisionsOperations operations
8180
:vartype container_apps_revisions:
8281
azure.mgmt.appcontainers.operations.ContainerAppsRevisionsOperations
@@ -94,6 +93,10 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
9493
azure.mgmt.appcontainers.operations.ManagedEnvironmentsDiagnosticsOperations
9594
:ivar operations: Operations operations
9695
:vartype operations: azure.mgmt.appcontainers.operations.Operations
96+
:ivar jobs: JobsOperations operations
97+
:vartype jobs: azure.mgmt.appcontainers.operations.JobsOperations
98+
:ivar jobs_executions: JobsExecutionsOperations operations
99+
:vartype jobs_executions: azure.mgmt.appcontainers.operations.JobsExecutionsOperations
97100
:ivar managed_environments: ManagedEnvironmentsOperations operations
98101
:vartype managed_environments:
99102
azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations
@@ -118,7 +121,7 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
118121
:type subscription_id: str
119122
:param base_url: Service URL. Default value is "https://management.azure.com".
120123
:type base_url: str
121-
:keyword api_version: Api Version. Default value is "2022-11-01-preview". Note that overriding
124+
:keyword api_version: Api Version. Default value is "2023-04-01-preview". Note that overriding
122125
this default value may result in unsupported behavior.
123126
:paramtype api_version: str
124127
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -161,8 +164,6 @@ def __init__(
161164
self._client, self._config, self._serialize, self._deserialize
162165
)
163166
self.container_apps = ContainerAppsOperations(self._client, self._config, self._serialize, self._deserialize)
164-
self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize)
165-
self.jobs_executions = JobsExecutionsOperations(self._client, self._config, self._serialize, self._deserialize)
166167
self.container_apps_revisions = ContainerAppsRevisionsOperations(
167168
self._client, self._config, self._serialize, self._deserialize
168169
)
@@ -179,6 +180,8 @@ def __init__(
179180
self._client, self._config, self._serialize, self._deserialize
180181
)
181182
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
183+
self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize)
184+
self.jobs_executions = JobsExecutionsOperations(self._client, self._config, self._serialize, self._deserialize)
182185
self.managed_environments = ManagedEnvironmentsOperations(
183186
self._client, self._config, self._serialize, self._deserialize
184187
)

sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_vendor.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@
55
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
66
# --------------------------------------------------------------------------
77

8-
from typing import List, cast
8+
from abc import ABC
9+
from typing import List, TYPE_CHECKING, cast
910

1011
from azure.core.pipeline.transport import HttpRequest
1112

13+
from ._configuration import ContainerAppsAPIClientConfiguration
14+
15+
if TYPE_CHECKING:
16+
# pylint: disable=unused-import,ungrouped-imports
17+
from azure.core import PipelineClient
18+
19+
from ._serialization import Deserializer, Serializer
20+
1221

1322
def _convert_request(request, files=None):
1423
data = request.content if not files else None
@@ -28,3 +37,12 @@ def _format_url_section(template, **kwargs):
2837
formatted_components = cast(List[str], template.split("/"))
2938
components = [c for c in formatted_components if "{}".format(key.args[0]) not in c]
3039
template = "/".join(components)
40+
41+
42+
class ContainerAppsAPIClientMixinABC(ABC):
43+
"""DO NOT use this class. It is for internal typing use only."""
44+
45+
_client: "PipelineClient"
46+
_config: ContainerAppsAPIClientConfiguration
47+
_serialize: "Serializer"
48+
_deserialize: "Deserializer"

sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "3.0.0b1"
9+
VERSION = "1.0.0b1"

sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ class ContainerAppsAPIClientConfiguration(Configuration): # pylint: disable=too
2929
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3030
:param subscription_id: The ID of the target subscription. Required.
3131
:type subscription_id: str
32-
:keyword api_version: Api Version. Default value is "2022-11-01-preview". Note that overriding
32+
:keyword api_version: Api Version. Default value is "2023-04-01-preview". Note that overriding
3333
this default value may result in unsupported behavior.
3434
:paramtype api_version: str
3535
"""
3636

3737
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
3838
super(ContainerAppsAPIClientConfiguration, self).__init__(**kwargs)
39-
api_version: str = kwargs.pop("api_version", "2022-11-01-preview")
39+
api_version: str = kwargs.pop("api_version", "2023-04-01-preview")
4040

4141
if credential is None:
4242
raise ValueError("Parameter 'credential' must not be None.")

sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_container_apps_api_client.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
ConnectedEnvironmentsDaprComponentsOperations,
2424
ConnectedEnvironmentsOperations,
2525
ConnectedEnvironmentsStoragesOperations,
26+
ContainerAppsAPIClientOperationsMixin,
2627
ContainerAppsAuthConfigsOperations,
2728
ContainerAppsDiagnosticsOperations,
2829
ContainerAppsOperations,
@@ -46,7 +47,9 @@
4647
from azure.core.credentials_async import AsyncTokenCredential
4748

4849

49-
class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
50+
class ContainerAppsAPIClient(
51+
ContainerAppsAPIClientOperationsMixin
52+
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
5053
"""ContainerAppsAPIClient.
5154
5255
:ivar container_apps_auth_configs: ContainerAppsAuthConfigsOperations operations
@@ -73,10 +76,6 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
7376
azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsStoragesOperations
7477
:ivar container_apps: ContainerAppsOperations operations
7578
:vartype container_apps: azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations
76-
:ivar jobs: JobsOperations operations
77-
:vartype jobs: azure.mgmt.appcontainers.aio.operations.JobsOperations
78-
:ivar jobs_executions: JobsExecutionsOperations operations
79-
:vartype jobs_executions: azure.mgmt.appcontainers.aio.operations.JobsExecutionsOperations
8079
:ivar container_apps_revisions: ContainerAppsRevisionsOperations operations
8180
:vartype container_apps_revisions:
8281
azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionsOperations
@@ -94,6 +93,10 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
9493
azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsDiagnosticsOperations
9594
:ivar operations: Operations operations
9695
:vartype operations: azure.mgmt.appcontainers.aio.operations.Operations
96+
:ivar jobs: JobsOperations operations
97+
:vartype jobs: azure.mgmt.appcontainers.aio.operations.JobsOperations
98+
:ivar jobs_executions: JobsExecutionsOperations operations
99+
:vartype jobs_executions: azure.mgmt.appcontainers.aio.operations.JobsExecutionsOperations
97100
:ivar managed_environments: ManagedEnvironmentsOperations operations
98101
:vartype managed_environments:
99102
azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations
@@ -118,7 +121,7 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
118121
:type subscription_id: str
119122
:param base_url: Service URL. Default value is "https://management.azure.com".
120123
:type base_url: str
121-
:keyword api_version: Api Version. Default value is "2022-11-01-preview". Note that overriding
124+
:keyword api_version: Api Version. Default value is "2023-04-01-preview". Note that overriding
122125
this default value may result in unsupported behavior.
123126
:paramtype api_version: str
124127
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -161,8 +164,6 @@ def __init__(
161164
self._client, self._config, self._serialize, self._deserialize
162165
)
163166
self.container_apps = ContainerAppsOperations(self._client, self._config, self._serialize, self._deserialize)
164-
self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize)
165-
self.jobs_executions = JobsExecutionsOperations(self._client, self._config, self._serialize, self._deserialize)
166167
self.container_apps_revisions = ContainerAppsRevisionsOperations(
167168
self._client, self._config, self._serialize, self._deserialize
168169
)
@@ -179,6 +180,8 @@ def __init__(
179180
self._client, self._config, self._serialize, self._deserialize
180181
)
181182
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
183+
self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize)
184+
self.jobs_executions = JobsExecutionsOperations(self._client, self._config, self._serialize, self._deserialize)
182185
self.managed_environments = ManagedEnvironmentsOperations(
183186
self._client, self._config, self._serialize, self._deserialize
184187
)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
6+
# --------------------------------------------------------------------------
7+
8+
from abc import ABC
9+
from typing import TYPE_CHECKING
10+
11+
from azure.core.pipeline.transport import HttpRequest
12+
13+
from ._configuration import ContainerAppsAPIClientConfiguration
14+
15+
if TYPE_CHECKING:
16+
# pylint: disable=unused-import,ungrouped-imports
17+
from azure.core import AsyncPipelineClient
18+
19+
from .._serialization import Deserializer, Serializer
20+
21+
22+
class ContainerAppsAPIClientMixinABC(ABC):
23+
"""DO NOT use this class. It is for internal typing use only."""
24+
25+
_client: "AsyncPipelineClient"
26+
_config: ContainerAppsAPIClientConfiguration
27+
_serialize: "Serializer"
28+
_deserialize: "Deserializer"

sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@
1414
from ._connected_environments_dapr_components_operations import ConnectedEnvironmentsDaprComponentsOperations
1515
from ._connected_environments_storages_operations import ConnectedEnvironmentsStoragesOperations
1616
from ._container_apps_operations import ContainerAppsOperations
17-
from ._jobs_operations import JobsOperations
18-
from ._jobs_executions_operations import JobsExecutionsOperations
1917
from ._container_apps_revisions_operations import ContainerAppsRevisionsOperations
2018
from ._container_apps_revision_replicas_operations import ContainerAppsRevisionReplicasOperations
2119
from ._container_apps_diagnostics_operations import ContainerAppsDiagnosticsOperations
2220
from ._managed_environment_diagnostics_operations import ManagedEnvironmentDiagnosticsOperations
2321
from ._managed_environments_diagnostics_operations import ManagedEnvironmentsDiagnosticsOperations
2422
from ._operations import Operations
23+
from ._jobs_operations import JobsOperations
24+
from ._jobs_executions_operations import JobsExecutionsOperations
25+
from ._container_apps_api_client_operations import ContainerAppsAPIClientOperationsMixin
2526
from ._managed_environments_operations import ManagedEnvironmentsOperations
2627
from ._certificates_operations import CertificatesOperations
2728
from ._managed_certificates_operations import ManagedCertificatesOperations
@@ -43,14 +44,15 @@
4344
"ConnectedEnvironmentsDaprComponentsOperations",
4445
"ConnectedEnvironmentsStoragesOperations",
4546
"ContainerAppsOperations",
46-
"JobsOperations",
47-
"JobsExecutionsOperations",
4847
"ContainerAppsRevisionsOperations",
4948
"ContainerAppsRevisionReplicasOperations",
5049
"ContainerAppsDiagnosticsOperations",
5150
"ManagedEnvironmentDiagnosticsOperations",
5251
"ManagedEnvironmentsDiagnosticsOperations",
5352
"Operations",
53+
"JobsOperations",
54+
"JobsExecutionsOperations",
55+
"ContainerAppsAPIClientOperationsMixin",
5456
"ManagedEnvironmentsOperations",
5557
"CertificatesOperations",
5658
"ManagedCertificatesOperations",

sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_available_workload_profiles_operations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
from ... import models as _models
2929
from ..._vendor import _convert_request
3030
from ...operations._available_workload_profiles_operations import build_get_request
31+
from .._vendor import ContainerAppsAPIClientMixinABC
3132

3233
T = TypeVar("T")
3334
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]

0 commit comments

Comments
 (0)