Skip to content

Commit ba2718d

Browse files
author
SDKAuto
committed
CodeGen from PR 33838 in Azure/azure-rest-api-specs
Merge d94265a53625255b6698f46368bdb2da266c27eb into d851eaf017961d36e354b15147664660e537a196
1 parent 52c99e1 commit ba2718d

File tree

104 files changed

+4695
-619
lines changed

Some content is hidden

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

104 files changed

+4695
-619
lines changed

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

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

3+
## 3.1.0 (2025-04-09)
4+
5+
### Features Added
6+
7+
- Client `ContainerServiceFleetMgmtClient` added operation group `auto_upgrade_profiles`
8+
- Client `ContainerServiceFleetMgmtClient` added operation group `auto_upgrade_profile_operations`
9+
- Model `APIServerAccessProfile` added property `enable_vnet_integration`
10+
- Model `APIServerAccessProfile` added property `subnet_id`
11+
- Model `Fleet` added property `status`
12+
- Model `FleetMember` added property `status`
13+
- Model `NodeImageSelection` added property `custom_node_image_versions`
14+
- Enum `NodeImageSelectionType` added member `CUSTOM`
15+
- Model `UpdateRun` added property `auto_upgrade_profile_id`
16+
- Added enum `AutoUpgradeLastTriggerStatus`
17+
- Added model `AutoUpgradeNodeImageSelection`
18+
- Added enum `AutoUpgradeNodeImageSelectionType`
19+
- Added model `AutoUpgradeProfile`
20+
- Added model `AutoUpgradeProfileListResult`
21+
- Added enum `AutoUpgradeProfileProvisioningState`
22+
- Added model `AutoUpgradeProfileStatus`
23+
- Added model `FleetMemberStatus`
24+
- Added model `FleetStatus`
25+
- Added model `GenerateResponse`
26+
- Added enum `UpgradeChannel`
27+
- Added model `AutoUpgradeProfileOperationsOperations`
28+
- Added model `AutoUpgradeProfilesOperations`
29+
- Method `AutoUpgradeProfilesOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, fleet_name: str, auto_upgrade_profile_name: str, resource: AutoUpgradeProfile, if_match: Optional[str], if_none_match: Optional[str], content_type: str)`
30+
- Method `AutoUpgradeProfilesOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, fleet_name: str, auto_upgrade_profile_name: str, resource: IO[bytes], if_match: Optional[str], if_none_match: Optional[str], content_type: str)`
31+
332
## 3.0.0 (2024-10-31)
433

534
### 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": "a03636cbe5a77421e9c4fef47e8bec7bcfea0ff2",
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: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._container_service_fleet_mgmt_client import ContainerServiceFleetMgmtClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._container_service_fleet_mgmt_client import ContainerServiceFleetMgmtClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"ContainerServiceFleetMgmtClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17-
# pylint: disable=unused-import,ungrouped-imports
1817
from azure.core.credentials import TokenCredential
1918

2019

@@ -26,15 +25,15 @@ class ContainerServiceFleetMgmtClientConfiguration: # pylint: disable=too-many-
2625
2726
:param credential: Credential needed for the client to connect to Azure. Required.
2827
:type credential: ~azure.core.credentials.TokenCredential
29-
:param subscription_id: The ID of the target subscription. Required.
28+
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3029
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this
30+
:keyword api_version: Api Version. Default value is "2025-03-01". Note that overriding this
3231
default value may result in unsupported behavior.
3332
:paramtype api_version: str
3433
"""
3534

3635
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2024-04-01")
36+
api_version: str = kwargs.pop("api_version", "2025-03-01")
3837

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

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

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
from ._configuration import ContainerServiceFleetMgmtClientConfiguration
2020
from ._serialization import Deserializer, Serializer
2121
from .operations import (
22+
AutoUpgradeProfileOperationsOperations,
23+
AutoUpgradeProfilesOperations,
2224
FleetMembersOperations,
2325
FleetUpdateStrategiesOperations,
2426
FleetsOperations,
@@ -27,17 +29,22 @@
2729
)
2830

2931
if TYPE_CHECKING:
30-
# pylint: disable=unused-import,ungrouped-imports
3132
from azure.core.credentials import TokenCredential
3233

3334

34-
class ContainerServiceFleetMgmtClient: # pylint: disable=client-accepts-api-version-keyword
35+
class ContainerServiceFleetMgmtClient: # pylint: disable=too-many-instance-attributes
3536
"""Azure Kubernetes Fleet Manager api client.
3637
3738
:ivar operations: Operations operations
3839
:vartype operations: azure.mgmt.containerservicefleet.operations.Operations
3940
:ivar fleets: FleetsOperations operations
4041
:vartype fleets: azure.mgmt.containerservicefleet.operations.FleetsOperations
42+
:ivar auto_upgrade_profiles: AutoUpgradeProfilesOperations operations
43+
:vartype auto_upgrade_profiles:
44+
azure.mgmt.containerservicefleet.operations.AutoUpgradeProfilesOperations
45+
:ivar auto_upgrade_profile_operations: AutoUpgradeProfileOperationsOperations operations
46+
:vartype auto_upgrade_profile_operations:
47+
azure.mgmt.containerservicefleet.operations.AutoUpgradeProfileOperationsOperations
4148
:ivar fleet_members: FleetMembersOperations operations
4249
:vartype fleet_members: azure.mgmt.containerservicefleet.operations.FleetMembersOperations
4350
:ivar update_runs: UpdateRunsOperations operations
@@ -47,11 +54,11 @@ class ContainerServiceFleetMgmtClient: # pylint: disable=client-accepts-api-ver
4754
azure.mgmt.containerservicefleet.operations.FleetUpdateStrategiesOperations
4855
:param credential: Credential needed for the client to connect to Azure. Required.
4956
:type credential: ~azure.core.credentials.TokenCredential
50-
:param subscription_id: The ID of the target subscription. Required.
57+
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
5158
:type subscription_id: str
5259
:param base_url: Service URL. Default value is "https://management.azure.com".
5360
:type base_url: str
54-
:keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this
61+
:keyword api_version: Api Version. Default value is "2025-03-01". Note that overriding this
5562
default value may result in unsupported behavior.
5663
:paramtype api_version: str
5764
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -94,6 +101,12 @@ def __init__(
94101
self._serialize.client_side_validation = False
95102
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
96103
self.fleets = FleetsOperations(self._client, self._config, self._serialize, self._deserialize)
104+
self.auto_upgrade_profiles = AutoUpgradeProfilesOperations(
105+
self._client, self._config, self._serialize, self._deserialize
106+
)
107+
self.auto_upgrade_profile_operations = AutoUpgradeProfileOperationsOperations(
108+
self._client, self._config, self._serialize, self._deserialize
109+
)
97110
self.fleet_members = FleetMembersOperations(self._client, self._config, self._serialize, self._deserialize)
98111
self.update_runs = UpdateRunsOperations(self._client, self._config, self._serialize, self._deserialize)
99112
self.fleet_update_strategies = FleetUpdateStrategiesOperations(

0 commit comments

Comments
 (0)