Skip to content

Commit ff365f9

Browse files
author
SDKAuto
committed
CodeGen from PR 33354 in Azure/azure-rest-api-specs
Merge 857b0151c33be5f987ca7dc7421251874bbc1cd7 into 375b84f6498faab98e666891024f73292db89f2f
1 parent 0b0345a commit ff365f9

File tree

320 files changed

+92213
-890
lines changed

Some content is hidden

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

320 files changed

+92213
-890
lines changed

sdk/containerservice/azure-mgmt-containerservicefleet/CHANGELOG.md

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

3+
## 3.1.0 (2025-04-01)
4+
5+
### Features Added
6+
7+
- Added operation group AutoUpgradeProfileOperationsOperations
8+
- Added operation group AutoUpgradeProfilesOperations
9+
- Model APIServerAccessProfile has a new parameter enable_vnet_integration
10+
- Model APIServerAccessProfile has a new parameter subnet_id
11+
- Model Fleet has a new parameter status
12+
- Model FleetMember has a new parameter status
13+
- Model NodeImageSelection has a new parameter custom_node_image_versions
14+
- Model UpdateRun has a new parameter auto_upgrade_profile_id
15+
316
## 3.0.0 (2024-10-31)
417

518
### Breaking Changes

sdk/containerservice/azure-mgmt-containerservicefleet/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "a4fc4c6bda9ff2315671bca69f9de40a43e2bd8c",
2+
"commit": "6cf9a27fa2497d907b76da376c33d2aa310a06eb",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.19.0",
6+
"@autorest/python@6.27.4",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --tag=package-2024-04 --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.md --generate-sample=True --generate-test=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.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.md"
1111
}

sdk/containerservice/azure-mgmt-containerservicefleet/azure/mgmt/containerservicefleet/__init__.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,14 @@
77
# --------------------------------------------------------------------------
88

99
from ._container_service_fleet_mgmt_client import ContainerServiceFleetMgmtClient
10-
from ._version import VERSION
11-
12-
__version__ = VERSION
10+
__all__ = ['ContainerServiceFleetMgmtClient']
1311

1412
try:
15-
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
13+
from ._patch import patch_sdk # type: ignore
14+
patch_sdk()
1715
except ImportError:
18-
_patch_all = []
19-
from ._patch import patch_sdk as _patch_sdk
16+
pass
2017

21-
__all__ = [
22-
"ContainerServiceFleetMgmtClient",
23-
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
18+
from ._version import VERSION
2519

26-
_patch_sdk()
20+
__version__ = VERSION
Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
4-
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
57
# Code generated by Microsoft (R) AutoRest Code Generator.
6-
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
710
# --------------------------------------------------------------------------
8-
911
from typing import Any, TYPE_CHECKING
1012

1113
from azure.core.pipeline import policies
@@ -17,49 +19,48 @@
1719
# pylint: disable=unused-import,ungrouped-imports
1820
from azure.core.credentials import TokenCredential
1921

20-
21-
class ContainerServiceFleetMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
22+
class ContainerServiceFleetMgmtClientConfiguration:
2223
"""Configuration for ContainerServiceFleetMgmtClient.
2324
2425
Note that all parameters used to create this instance are saved as instance
2526
attributes.
2627
2728
:param credential: Credential needed for the client to connect to Azure. Required.
2829
:type credential: ~azure.core.credentials.TokenCredential
29-
:param subscription_id: The ID of the target subscription. Required.
30+
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3031
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this
32-
default value may result in unsupported behavior.
33-
:paramtype api_version: str
3432
"""
3533

36-
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2024-04-01")
38-
34+
def __init__(
35+
self,
36+
credential: "TokenCredential",
37+
subscription_id: str,
38+
**kwargs: Any
39+
):
3940
if credential is None:
4041
raise ValueError("Parameter 'credential' must not be None.")
4142
if subscription_id is None:
4243
raise ValueError("Parameter 'subscription_id' must not be None.")
4344

4445
self.credential = credential
4546
self.subscription_id = subscription_id
46-
self.api_version = api_version
47-
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
48-
kwargs.setdefault("sdk_moniker", "mgmt-containerservicefleet/{}".format(VERSION))
47+
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
48+
kwargs.setdefault('sdk_moniker', 'azure-mgmt-containerservicefleet/{}'.format(VERSION))
4949
self.polling_interval = kwargs.get("polling_interval", 30)
5050
self._configure(**kwargs)
5151

52-
def _configure(self, **kwargs: Any) -> None:
53-
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
54-
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
55-
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
56-
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
57-
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
58-
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
59-
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
60-
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
61-
self.authentication_policy = kwargs.get("authentication_policy")
52+
def _configure(
53+
self,
54+
**kwargs: Any
55+
):
56+
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
57+
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
58+
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
59+
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
60+
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
61+
self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs)
62+
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
63+
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
64+
self.authentication_policy = kwargs.get('authentication_policy')
6265
if self.credential and not self.authentication_policy:
63-
self.authentication_policy = ARMChallengeAuthenticationPolicy(
64-
self.credential, *self.credential_scopes, **kwargs
65-
)
66+
self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)

0 commit comments

Comments
 (0)