Skip to content

Commit f426769

Browse files
azure-sdkmsyyc
andauthored
Refresh azure-mgmt-appcontainers after migrate to Typespec (#47161)
* Configurations: 'specification/app/resource-manager/Microsoft.App/ContainerApps/tspconfig.yaml', API Version: 2026-01-01, SDK Release Type: beta, and CommitSHA: '5a45c68db967ced0736a2f91a74774a65771dadc' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6356922 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Optimize changelog for azure-mgmt-appcontainers * Add live tests for azure-mgmt-appcontainers * update test and changelog --------- Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
1 parent d4cdce6 commit f426769

350 files changed

Lines changed: 56172 additions & 53393 deletions

File tree

Some content is hidden

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

sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Release History
22

3+
## 5.0.0b1 (2026-05-27)
4+
5+
### Features Added
6+
7+
- Client `ContainerAppsAPIClient` added method `send_request`
8+
- Model `JobExecution` added property `system_data`
9+
- Model `Usage` added property `unit`
10+
- Added enum `SessionPoolIdentityLifeCycle`
11+
12+
### Breaking Changes
13+
14+
- This version introduces new hybrid models which have dual dictionary and model nature. Please follow https://aka.ms/azsdk/python/migrate/hybrid-models for migration.
15+
- For the method breakings, please refer to https://aka.ms/azsdk/python/migrate/operations for migration.
16+
- Method `ContainerAppsOperations.list_custom_host_name_analysis` changed its parameter `custom_hostname` from `positional_or_keyword` to `keyword_only`
17+
18+
### Other Changes
19+
20+
- Deleted model `AuthConfigCollection`/`AvailableOperations`/`AvailableWorkloadProfilesCollection`/`CertificateCollection`/`ConnectedEnvironmentCollection`/`ContainerAppCollection`/`DaprComponentsCollection`/`HttpRouteConfigCollection`/`JavaComponentsCollection`/`JobExecutionNamesCollection`/`JobsCollection`/`ListUsagesResult`/`MaintenanceConfigurationCollection`/`ManagedCertificateCollection`/`ManagedEnvironmentsCollection`/`RevisionCollection`/`SessionPoolCollection`/`SourceControlCollection`/`WorkflowEnvelopeCollection`/`WorkloadProfileStatesCollection` which actually were not used by SDK users
21+
322
## 4.0.0 (2025-10-24)
423

524
### Features Added

sdk/appcontainers/azure-mgmt-appcontainers/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Appcontainers Management Client Library.
4-
This package has been tested with Python 3.9+.
4+
This package has been tested with Python 3.10+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.9+ is required to use this package.
15+
- Python 3.10+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
2-
"commit": "aae85aa3e7e4fda95ea2d3abac0ba1d8159db214",
2+
"apiVersion": "2026-01-01",
3+
"apiVersions": {
4+
"Microsoft.App": "2026-01-01"
5+
},
6+
"commit": "5a45c68db967ced0736a2f91a74774a65771dadc",
37
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.10.2",
5-
"use": [
6-
"@autorest/python@6.40.0",
7-
"@autorest/modelerfour@4.27.0"
8-
],
9-
"autorest_command": "autorest specification/app/resource-manager/Microsoft.App/ContainerApps/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.40.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
10-
"readme": "specification/app/resource-manager/Microsoft.App/ContainerApps/readme.md"
8+
"typespec_src": "specification/app/resource-manager/Microsoft.App/ContainerApps",
9+
"emitterVersion": "0.62.1"
1110
}

sdk/appcontainers/azure-mgmt-appcontainers/apiview-properties.json

Lines changed: 569 additions & 572 deletions
Large diffs are not rendered by default.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Code generated by Microsoft (R) Python Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88
# pylint: disable=wrong-import-position
@@ -12,7 +12,7 @@
1212
if TYPE_CHECKING:
1313
from ._patch import * # pylint: disable=unused-wildcard-import
1414

15-
from ._container_apps_api_client import ContainerAppsAPIClient # type: ignore
15+
from ._client import ContainerAppsAPIClient # type: ignore
1616
from ._version import VERSION
1717

1818
__version__ = VERSION

sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_container_apps_api_client.py renamed to sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_client.py

Lines changed: 114 additions & 103 deletions
Large diffs are not rendered by default.

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

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Code generated by Microsoft (R) Python Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

@@ -24,26 +24,30 @@ class ContainerAppsAPIClientConfiguration: # pylint: disable=too-many-instance-
2424
Note that all parameters used to create this instance are saved as instance
2525
attributes.
2626
27-
:param credential: Credential needed for the client to connect to Azure. Required.
27+
:param credential: Credential used to authenticate requests to the service. Required.
2828
:type credential: ~azure.core.credentials.TokenCredential
29-
:param subscription_id: The ID of the target subscription. Required.
29+
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3030
:type subscription_id: str
31+
:param base_url: Service host. Default value is "https://management.azure.com".
32+
:type base_url: str
3133
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
3234
None.
3335
:type cloud_setting: ~azure.core.AzureClouds
34-
:keyword api_version: Api Version. Default value is "2025-07-01". Note that overriding this
35-
default value may result in unsupported behavior.
36+
:keyword api_version: The API version to use for this operation. Known values are "2026-01-01"
37+
and None. Default value is None. If not set, the operation's default API version will be used.
38+
Note that overriding this default value may result in unsupported behavior.
3639
:paramtype api_version: str
3740
"""
3841

3942
def __init__(
4043
self,
4144
credential: "TokenCredential",
4245
subscription_id: str,
46+
base_url: str = "https://management.azure.com",
4347
cloud_setting: Optional["AzureClouds"] = None,
4448
**kwargs: Any
4549
) -> None:
46-
api_version: str = kwargs.pop("api_version", "2025-07-01")
50+
api_version: str = kwargs.pop("api_version", "2026-01-01")
4751

4852
if credential is None:
4953
raise ValueError("Parameter 'credential' must not be None.")
@@ -52,6 +56,7 @@ def __init__(
5256

5357
self.credential = credential
5458
self.subscription_id = subscription_id
59+
self.base_url = base_url
5560
self.cloud_setting = cloud_setting
5661
self.api_version = api_version
5762
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,20 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
#
43
# Copyright (c) Microsoft Corporation. All rights reserved.
5-
#
6-
# The MIT License (MIT)
7-
#
8-
# Permission is hereby granted, free of charge, to any person obtaining a copy
9-
# of this software and associated documentation files (the ""Software""), to
10-
# deal in the Software without restriction, including without limitation the
11-
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
12-
# sell copies of the Software, and to permit persons to whom the Software is
13-
# furnished to do so, subject to the following conditions:
14-
#
15-
# The above copyright notice and this permission notice shall be included in
16-
# all copies or substantial portions of the Software.
17-
#
18-
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23-
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24-
# IN THE SOFTWARE.
25-
#
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
265
# --------------------------------------------------------------------------
6+
"""Customize generated code here.
7+
8+
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
9+
"""
10+
11+
__all__: list[str] = [] # Add all objects you want publicly available to users at this package level
2712

2813

29-
# This file is used for handwritten extensions to the generated code. Example:
30-
# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
3114
def patch_sdk():
32-
pass
15+
"""Do not remove from this file.
16+
17+
`patch_sdk` is a last resort escape hatch that allows you to do customizations
18+
you can't accomplish using the techniques described in
19+
https://aka.ms/azsdk/python/dpcodegen/python/customize
20+
"""
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# --------------------------------------------------------------------------
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# Licensed under the MIT License. See License.txt in the project root for license information.
4-
# Code generated by Microsoft (R) AutoRest Code Generator.
4+
# Code generated by Microsoft (R) Python Code Generator.
55
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
66
# --------------------------------------------------------------------------

0 commit comments

Comments
 (0)