Skip to content

Commit 82001d1

Browse files
author
SDKAuto
committed
CodeGen from PR 24777 in Azure/azure-rest-api-specs
Merge 4d73efe9c1cb1b6415bf15dcd0609ac2ea4880bc into 94d05090afceed28146b374db185bd826feb2075
1 parent 9904083 commit 82001d1

File tree

177 files changed

+6995
-617
lines changed

Some content is hidden

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

177 files changed

+6995
-617
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": "5de1e2677400a321c7566f4ddfb086ffa91b815f",
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-05-02-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-05-02-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: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@
1818
from .operations import (
1919
AvailableWorkloadProfilesOperations,
2020
BillingMetersOperations,
21+
BuildersOperations,
22+
BuildsOperations,
2123
CertificatesOperations,
2224
ConnectedEnvironmentsCertificatesOperations,
2325
ConnectedEnvironmentsDaprComponentsOperations,
2426
ConnectedEnvironmentsOperations,
2527
ConnectedEnvironmentsStoragesOperations,
28+
ContainerAppsAPIClientOperationsMixin,
2629
ContainerAppsAuthConfigsOperations,
2730
ContainerAppsDiagnosticsOperations,
2831
ContainerAppsOperations,
@@ -46,7 +49,9 @@
4649
from azure.core.credentials import TokenCredential
4750

4851

49-
class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
52+
class ContainerAppsAPIClient(
53+
ContainerAppsAPIClientOperationsMixin
54+
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
5055
"""ContainerAppsAPIClient.
5156
5257
:ivar container_apps_auth_configs: ContainerAppsAuthConfigsOperations operations
@@ -57,6 +62,10 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
5762
azure.mgmt.appcontainers.operations.AvailableWorkloadProfilesOperations
5863
:ivar billing_meters: BillingMetersOperations operations
5964
:vartype billing_meters: azure.mgmt.appcontainers.operations.BillingMetersOperations
65+
:ivar builders: BuildersOperations operations
66+
:vartype builders: azure.mgmt.appcontainers.operations.BuildersOperations
67+
:ivar builds: BuildsOperations operations
68+
:vartype builds: azure.mgmt.appcontainers.operations.BuildsOperations
6069
:ivar connected_environments: ConnectedEnvironmentsOperations operations
6170
:vartype connected_environments:
6271
azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations
@@ -73,10 +82,6 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
7382
azure.mgmt.appcontainers.operations.ConnectedEnvironmentsStoragesOperations
7483
:ivar container_apps: ContainerAppsOperations operations
7584
: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
8085
:ivar container_apps_revisions: ContainerAppsRevisionsOperations operations
8186
:vartype container_apps_revisions:
8287
azure.mgmt.appcontainers.operations.ContainerAppsRevisionsOperations
@@ -94,6 +99,10 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
9499
azure.mgmt.appcontainers.operations.ManagedEnvironmentsDiagnosticsOperations
95100
:ivar operations: Operations operations
96101
:vartype operations: azure.mgmt.appcontainers.operations.Operations
102+
:ivar jobs: JobsOperations operations
103+
:vartype jobs: azure.mgmt.appcontainers.operations.JobsOperations
104+
:ivar jobs_executions: JobsExecutionsOperations operations
105+
:vartype jobs_executions: azure.mgmt.appcontainers.operations.JobsExecutionsOperations
97106
:ivar managed_environments: ManagedEnvironmentsOperations operations
98107
:vartype managed_environments:
99108
azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations
@@ -118,7 +127,7 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
118127
:type subscription_id: str
119128
:param base_url: Service URL. Default value is "https://management.azure.com".
120129
:type base_url: str
121-
:keyword api_version: Api Version. Default value is "2022-11-01-preview". Note that overriding
130+
:keyword api_version: Api Version. Default value is "2023-05-02-preview". Note that overriding
122131
this default value may result in unsupported behavior.
123132
:paramtype api_version: str
124133
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -148,6 +157,8 @@ def __init__(
148157
self._client, self._config, self._serialize, self._deserialize
149158
)
150159
self.billing_meters = BillingMetersOperations(self._client, self._config, self._serialize, self._deserialize)
160+
self.builders = BuildersOperations(self._client, self._config, self._serialize, self._deserialize)
161+
self.builds = BuildsOperations(self._client, self._config, self._serialize, self._deserialize)
151162
self.connected_environments = ConnectedEnvironmentsOperations(
152163
self._client, self._config, self._serialize, self._deserialize
153164
)
@@ -161,8 +172,6 @@ def __init__(
161172
self._client, self._config, self._serialize, self._deserialize
162173
)
163174
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)
166175
self.container_apps_revisions = ContainerAppsRevisionsOperations(
167176
self._client, self._config, self._serialize, self._deserialize
168177
)
@@ -179,6 +188,8 @@ def __init__(
179188
self._client, self._config, self._serialize, self._deserialize
180189
)
181190
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
191+
self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize)
192+
self.jobs_executions = JobsExecutionsOperations(self._client, self._config, self._serialize, self._deserialize)
182193
self.managed_environments = ManagedEnvironmentsOperations(
183194
self._client, self._config, self._serialize, self._deserialize
184195
)

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-05-02-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-05-02-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: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@
1818
from .operations import (
1919
AvailableWorkloadProfilesOperations,
2020
BillingMetersOperations,
21+
BuildersOperations,
22+
BuildsOperations,
2123
CertificatesOperations,
2224
ConnectedEnvironmentsCertificatesOperations,
2325
ConnectedEnvironmentsDaprComponentsOperations,
2426
ConnectedEnvironmentsOperations,
2527
ConnectedEnvironmentsStoragesOperations,
28+
ContainerAppsAPIClientOperationsMixin,
2629
ContainerAppsAuthConfigsOperations,
2730
ContainerAppsDiagnosticsOperations,
2831
ContainerAppsOperations,
@@ -46,7 +49,9 @@
4649
from azure.core.credentials_async import AsyncTokenCredential
4750

4851

49-
class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
52+
class ContainerAppsAPIClient(
53+
ContainerAppsAPIClientOperationsMixin
54+
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
5055
"""ContainerAppsAPIClient.
5156
5257
:ivar container_apps_auth_configs: ContainerAppsAuthConfigsOperations operations
@@ -57,6 +62,10 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
5762
azure.mgmt.appcontainers.aio.operations.AvailableWorkloadProfilesOperations
5863
:ivar billing_meters: BillingMetersOperations operations
5964
:vartype billing_meters: azure.mgmt.appcontainers.aio.operations.BillingMetersOperations
65+
:ivar builders: BuildersOperations operations
66+
:vartype builders: azure.mgmt.appcontainers.aio.operations.BuildersOperations
67+
:ivar builds: BuildsOperations operations
68+
:vartype builds: azure.mgmt.appcontainers.aio.operations.BuildsOperations
6069
:ivar connected_environments: ConnectedEnvironmentsOperations operations
6170
:vartype connected_environments:
6271
azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsOperations
@@ -73,10 +82,6 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
7382
azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsStoragesOperations
7483
:ivar container_apps: ContainerAppsOperations operations
7584
: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
8085
:ivar container_apps_revisions: ContainerAppsRevisionsOperations operations
8186
:vartype container_apps_revisions:
8287
azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionsOperations
@@ -94,6 +99,10 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
9499
azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsDiagnosticsOperations
95100
:ivar operations: Operations operations
96101
:vartype operations: azure.mgmt.appcontainers.aio.operations.Operations
102+
:ivar jobs: JobsOperations operations
103+
:vartype jobs: azure.mgmt.appcontainers.aio.operations.JobsOperations
104+
:ivar jobs_executions: JobsExecutionsOperations operations
105+
:vartype jobs_executions: azure.mgmt.appcontainers.aio.operations.JobsExecutionsOperations
97106
:ivar managed_environments: ManagedEnvironmentsOperations operations
98107
:vartype managed_environments:
99108
azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations
@@ -118,7 +127,7 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
118127
:type subscription_id: str
119128
:param base_url: Service URL. Default value is "https://management.azure.com".
120129
:type base_url: str
121-
:keyword api_version: Api Version. Default value is "2022-11-01-preview". Note that overriding
130+
:keyword api_version: Api Version. Default value is "2023-05-02-preview". Note that overriding
122131
this default value may result in unsupported behavior.
123132
:paramtype api_version: str
124133
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -148,6 +157,8 @@ def __init__(
148157
self._client, self._config, self._serialize, self._deserialize
149158
)
150159
self.billing_meters = BillingMetersOperations(self._client, self._config, self._serialize, self._deserialize)
160+
self.builders = BuildersOperations(self._client, self._config, self._serialize, self._deserialize)
161+
self.builds = BuildsOperations(self._client, self._config, self._serialize, self._deserialize)
151162
self.connected_environments = ConnectedEnvironmentsOperations(
152163
self._client, self._config, self._serialize, self._deserialize
153164
)
@@ -161,8 +172,6 @@ def __init__(
161172
self._client, self._config, self._serialize, self._deserialize
162173
)
163174
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)
166175
self.container_apps_revisions = ContainerAppsRevisionsOperations(
167176
self._client, self._config, self._serialize, self._deserialize
168177
)
@@ -179,6 +188,8 @@ def __init__(
179188
self._client, self._config, self._serialize, self._deserialize
180189
)
181190
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
191+
self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize)
192+
self.jobs_executions = JobsExecutionsOperations(self._client, self._config, self._serialize, self._deserialize)
182193
self.managed_environments = ManagedEnvironmentsOperations(
183194
self._client, self._config, self._serialize, self._deserialize
184195
)
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: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,22 @@
99
from ._container_apps_auth_configs_operations import ContainerAppsAuthConfigsOperations
1010
from ._available_workload_profiles_operations import AvailableWorkloadProfilesOperations
1111
from ._billing_meters_operations import BillingMetersOperations
12+
from ._builders_operations import BuildersOperations
13+
from ._builds_operations import BuildsOperations
1214
from ._connected_environments_operations import ConnectedEnvironmentsOperations
1315
from ._connected_environments_certificates_operations import ConnectedEnvironmentsCertificatesOperations
1416
from ._connected_environments_dapr_components_operations import ConnectedEnvironmentsDaprComponentsOperations
1517
from ._connected_environments_storages_operations import ConnectedEnvironmentsStoragesOperations
1618
from ._container_apps_operations import ContainerAppsOperations
17-
from ._jobs_operations import JobsOperations
18-
from ._jobs_executions_operations import JobsExecutionsOperations
1919
from ._container_apps_revisions_operations import ContainerAppsRevisionsOperations
2020
from ._container_apps_revision_replicas_operations import ContainerAppsRevisionReplicasOperations
2121
from ._container_apps_diagnostics_operations import ContainerAppsDiagnosticsOperations
2222
from ._managed_environment_diagnostics_operations import ManagedEnvironmentDiagnosticsOperations
2323
from ._managed_environments_diagnostics_operations import ManagedEnvironmentsDiagnosticsOperations
2424
from ._operations import Operations
25+
from ._jobs_operations import JobsOperations
26+
from ._jobs_executions_operations import JobsExecutionsOperations
27+
from ._container_apps_api_client_operations import ContainerAppsAPIClientOperationsMixin
2528
from ._managed_environments_operations import ManagedEnvironmentsOperations
2629
from ._certificates_operations import CertificatesOperations
2730
from ._managed_certificates_operations import ManagedCertificatesOperations
@@ -38,19 +41,22 @@
3841
"ContainerAppsAuthConfigsOperations",
3942
"AvailableWorkloadProfilesOperations",
4043
"BillingMetersOperations",
44+
"BuildersOperations",
45+
"BuildsOperations",
4146
"ConnectedEnvironmentsOperations",
4247
"ConnectedEnvironmentsCertificatesOperations",
4348
"ConnectedEnvironmentsDaprComponentsOperations",
4449
"ConnectedEnvironmentsStoragesOperations",
4550
"ContainerAppsOperations",
46-
"JobsOperations",
47-
"JobsExecutionsOperations",
4851
"ContainerAppsRevisionsOperations",
4952
"ContainerAppsRevisionReplicasOperations",
5053
"ContainerAppsDiagnosticsOperations",
5154
"ManagedEnvironmentDiagnosticsOperations",
5255
"ManagedEnvironmentsDiagnosticsOperations",
5356
"Operations",
57+
"JobsOperations",
58+
"JobsExecutionsOperations",
59+
"ContainerAppsAPIClientOperationsMixin",
5460
"ManagedEnvironmentsOperations",
5561
"CertificatesOperations",
5662
"ManagedCertificatesOperations",

0 commit comments

Comments
 (0)