Skip to content

Commit 98e46a6

Browse files
azure-sdkChenxiJiang333msyyc
authored
[AutoPR azure-mgmt-computefleet]-generated-from-SDK Generation - Python-6223495 (#46594)
* Configurations: 'specification/azurefleet/resource-manager/Microsoft.AzureFleet/AzureFleet/tspconfig.yaml', API Version: 2026-04-01-preview, SDK Release Type: beta, and CommitSHA: '62ce2e0d633ec9c5752a37114dfb16c6162b7d91' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6223495 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Configurations: 'specification/azurefleet/resource-manager/Microsoft.AzureFleet/AzureFleet/tspconfig.yaml', API Version: 2026-04-01-preview, SDK Release Type: beta, and CommitSHA: '9b2e35f833ccc2a00c6ae7d6a24e7c5f58624de0' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6225980 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * update * Configurations: 'specification/azurefleet/resource-manager/Microsoft.AzureFleet/AzureFleet/tspconfig.yaml', API Version: 2026-04-01-preview, SDK Release Type: beta, and CommitSHA: '5c7cd01768cc4a537f309dff14af7be34f87cd14' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6364072 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --------- Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: Yuchao Yan <[email protected]>
1 parent ec46c3f commit 98e46a6

38 files changed

Lines changed: 2053 additions & 1849 deletions

‎sdk/computefleet/azure-mgmt-computefleet/CHANGELOG.md‎

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

3+
## 2.0.0b2 (2026-05-28)
4+
5+
### Features Added
6+
7+
- Client `ComputeFleetMgmtClient` added parameter `cloud_setting` in method `__init__`
8+
- Enum `FleetMode` added member `LAUNCH`
9+
- Model `FleetProperties` added property `vm_name_prefix`
10+
- Enum `VMOperationStatus` added member `LAUNCHING`
11+
12+
### Breaking Changes
13+
14+
- Deleted or renamed enum value `FleetMode.INSTANCE`
15+
- Deleted or renamed enum value `VMOperationStatus.CANCELED`
16+
- Deleted or renamed enum value `VMOperationStatus.CANCEL_FAILED_STATUS_UNKNOWN`
17+
- Deleted or renamed method `FleetsOperations.begin_cancel`
18+
319
## 2.0.0b1 (2025-08-21)
420

521
### Features Added
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
recursive-include tests *.py *.json
2-
recursive-include samples *.py *.md
31
include *.md
4-
include azure/__init__.py
5-
include azure/mgmt/__init__.py
62
include LICENSE
73
include azure/mgmt/computefleet/py.typed
4+
recursive-include tests *.py
5+
recursive-include samples *.py *.md
6+
include azure/__init__.py
7+
include azure/mgmt/__init__.py

‎sdk/computefleet/azure-mgmt-computefleet/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 Computefleet 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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
2-
"apiVersion": "2025-07-01-preview",
3-
"commit": "551674fef42784a6d62d92149d637a5d450f5128",
2+
"apiVersion": "2026-04-01-preview",
3+
"apiVersions": {
4+
"Microsoft.AzureFleet": "2026-04-01-preview"
5+
},
6+
"commit": "5c7cd01768cc4a537f309dff14af7be34f87cd14",
47
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
5-
"typespec_src": "specification/azurefleet/AzureFleet.Management",
6-
"emitterVersion": "0.48.2"
8+
"typespec_src": "specification/azurefleet/resource-manager/Microsoft.AzureFleet/AzureFleet",
9+
"emitterVersion": "0.62.1"
710
}

‎sdk/computefleet/azure-mgmt-computefleet/apiview-properties.json‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@
154154
"azure.mgmt.computefleet.operations.FleetsOperations.list_virtual_machine_scale_sets": "Microsoft.AzureFleet.Fleets.listVirtualMachineScaleSets",
155155
"azure.mgmt.computefleet.aio.operations.FleetsOperations.list_virtual_machine_scale_sets": "Microsoft.AzureFleet.Fleets.listVirtualMachineScaleSets",
156156
"azure.mgmt.computefleet.operations.FleetsOperations.list_virtual_machines": "Microsoft.AzureFleet.Fleets.listVirtualMachines",
157-
"azure.mgmt.computefleet.aio.operations.FleetsOperations.list_virtual_machines": "Microsoft.AzureFleet.Fleets.listVirtualMachines",
158-
"azure.mgmt.computefleet.operations.FleetsOperations.begin_cancel": "Microsoft.AzureFleet.Fleets.cancel",
159-
"azure.mgmt.computefleet.aio.operations.FleetsOperations.begin_cancel": "Microsoft.AzureFleet.Fleets.cancel"
160-
}
157+
"azure.mgmt.computefleet.aio.operations.FleetsOperations.list_virtual_machines": "Microsoft.AzureFleet.Fleets.listVirtualMachines"
158+
},
159+
"CrossLanguageVersion": "55f76b91a14c"
161160
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore

‎sdk/computefleet/azure-mgmt-computefleet/azure/mgmt/computefleet/_client.py‎

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10+
import sys
1011
from typing import Any, Optional, TYPE_CHECKING, cast
11-
from typing_extensions import Self
1212

1313
from azure.core.pipeline import policies
1414
from azure.core.rest import HttpRequest, HttpResponse
@@ -21,7 +21,13 @@
2121
from ._utils.serialization import Deserializer, Serializer
2222
from .operations import FleetsOperations, Operations
2323

24+
if sys.version_info >= (3, 11):
25+
from typing import Self
26+
else:
27+
from typing_extensions import Self # type: ignore
28+
2429
if TYPE_CHECKING:
30+
from azure.core import AzureClouds
2531
from azure.core.credentials import TokenCredential
2632

2733

@@ -38,19 +44,29 @@ class ComputeFleetMgmtClient:
3844
:type subscription_id: str
3945
:param base_url: Service host. Default value is None.
4046
:type base_url: str
41-
:keyword api_version: The API version to use for this operation. Default value is
42-
"2025-07-01-preview". Note that overriding this default value may result in unsupported
47+
:keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
48+
None.
49+
:paramtype cloud_setting: ~azure.core.AzureClouds
50+
:keyword api_version: The API version to use for this operation. Known values are
51+
"2026-04-01-preview" and None. Default value is None. If not set, the operation's default API
52+
version will be used. Note that overriding this default value may result in unsupported
4353
behavior.
4454
:paramtype api_version: str
4555
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
4656
Retry-After header is present.
4757
"""
4858

4959
def __init__(
50-
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
60+
self,
61+
credential: "TokenCredential",
62+
subscription_id: str,
63+
base_url: Optional[str] = None,
64+
*,
65+
cloud_setting: Optional["AzureClouds"] = None,
66+
**kwargs: Any
5167
) -> None:
5268
_endpoint = "{endpoint}"
53-
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
69+
_cloud = cloud_setting or settings.current.azure_cloud # type: ignore
5470
_endpoints = get_arm_endpoints(_cloud)
5571
if not base_url:
5672
base_url = _endpoints["resource_manager"]
@@ -59,6 +75,7 @@ def __init__(
5975
credential=credential,
6076
subscription_id=subscription_id,
6177
base_url=cast(str, base_url),
78+
cloud_setting=cloud_setting,
6279
credential_scopes=credential_scopes,
6380
**kwargs
6481
)

‎sdk/computefleet/azure-mgmt-computefleet/azure/mgmt/computefleet/_configuration.py‎

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

9-
from typing import Any, TYPE_CHECKING
9+
from typing import Any, Optional, TYPE_CHECKING
1010

1111
from azure.core.pipeline import policies
1212
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1313

1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17+
from azure.core import AzureClouds
1718
from azure.core.credentials import TokenCredential
1819

1920

@@ -29,8 +30,12 @@ class ComputeFleetMgmtClientConfiguration: # pylint: disable=too-many-instance-
2930
:type subscription_id: str
3031
:param base_url: Service host. Default value is "https://management.azure.com".
3132
:type base_url: str
32-
:keyword api_version: The API version to use for this operation. Default value is
33-
"2025-07-01-preview". Note that overriding this default value may result in unsupported
33+
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
34+
None.
35+
:type cloud_setting: ~azure.core.AzureClouds
36+
:keyword api_version: The API version to use for this operation. Known values are
37+
"2026-04-01-preview" and None. Default value is None. If not set, the operation's default API
38+
version will be used. Note that overriding this default value may result in unsupported
3439
behavior.
3540
:paramtype api_version: str
3641
"""
@@ -40,9 +45,10 @@ def __init__(
4045
credential: "TokenCredential",
4146
subscription_id: str,
4247
base_url: str = "https://management.azure.com",
48+
cloud_setting: Optional["AzureClouds"] = None,
4349
**kwargs: Any
4450
) -> None:
45-
api_version: str = kwargs.pop("api_version", "2025-07-01-preview")
51+
api_version: str = kwargs.pop("api_version", "2026-04-01-preview")
4652

4753
if credential is None:
4854
raise ValueError("Parameter 'credential' must not be None.")
@@ -52,6 +58,7 @@ def __init__(
5258
self.credential = credential
5359
self.subscription_id = subscription_id
5460
self.base_url = base_url
61+
self.cloud_setting = cloud_setting
5562
self.api_version = api_version
5663
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
5764
kwargs.setdefault("sdk_moniker", "mgmt-computefleet/{}".format(VERSION))

‎sdk/computefleet/azure-mgmt-computefleet/azure/mgmt/computefleet/_patch.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
88
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
99
"""
10-
from typing import List
1110

12-
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
11+
__all__: list[str] = [] # Add all objects you want publicly available to users at this package level
1312

1413

1514
def patch_sdk():

0 commit comments

Comments
 (0)