Skip to content

Commit f7f1415

Browse files
author
SDKAuto
committed
CodeGen from PR 32748 in Azure/azure-rest-api-specs
Merge f964e27befe2041e7ca5fd18a6528efd7751bca0 into 1e06393fe545b07c42a71830ba0fdb366f22fb93
1 parent 4d0a196 commit f7f1415

File tree

615 files changed

+41066
-37107
lines changed

Some content is hidden

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

615 files changed

+41066
-37107
lines changed

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

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

3+
## 35.0.0 (2025-04-22)
4+
5+
### Features Added
6+
7+
- Model AvailabilitySet has a new parameter system_data
8+
- Model CapacityReservation has a new parameter system_data
9+
- Model CapacityReservationGroup has a new parameter system_data
10+
- Model DedicatedHost has a new parameter system_data
11+
- Model DedicatedHostGroup has a new parameter system_data
12+
- Model DedicatedHostSizeListResult has a new parameter next_link
13+
- Model Disk has a new parameter system_data
14+
- Model DiskAccess has a new parameter system_data
15+
- Model DiskEncryptionSet has a new parameter system_data
16+
- Model DiskRestorePoint has a new parameter system_data
17+
- Model Image has a new parameter system_data
18+
- Model PrivateEndpointConnection has a new parameter system_data
19+
- Model ProximityPlacementGroup has a new parameter system_data
20+
- Model ProxyResource has a new parameter system_data
21+
- Model RestorePoint has a new parameter system_data
22+
- Model RestorePointCollection has a new parameter system_data
23+
- Model RollingUpgradeStatusInfo has a new parameter system_data
24+
- Model Snapshot has a new parameter system_data
25+
- Model SshPublicKeyResource has a new parameter system_data
26+
- Model SystemData has a new parameter created_by
27+
- Model SystemData has a new parameter created_by_type
28+
- Model SystemData has a new parameter last_modified_by
29+
- Model SystemData has a new parameter last_modified_by_type
30+
- Model VirtualMachine has a new parameter system_data
31+
- Model VirtualMachineExtension has a new parameter system_data
32+
- Model VirtualMachineExtensionImage has a new parameter system_data
33+
- Model VirtualMachineRunCommand has a new parameter system_data
34+
- Model VirtualMachineScaleSet has a new parameter system_data
35+
- Model VirtualMachineScaleSetExtension has a new parameter vm_name
36+
- Model VirtualMachineScaleSetVM has a new parameter system_data
37+
- Model VirtualMachineScaleSetVMExtension has a new parameter vm_name
38+
- Model VirtualMachineSizeListResult has a new parameter next_link
39+
40+
### Breaking Changes
41+
42+
- Model VirtualMachineScaleSetExtension no longer has parameter name
43+
- Model VirtualMachineScaleSetVMExtension no longer has parameter name
44+
- Parameter location of model VirtualMachineExtension is now required
45+
- Parameter value of model PrivateEndpointConnectionListResult is now required
46+
- Parameter value of model RestorePointCollectionListResult is now required
47+
348
## 34.1.0 (2025-03-24)
449

550
### Features Added

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

Lines changed: 3 additions & 3 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 Compute Management Client Library.
4-
This package has been tested with Python 3.8+.
4+
This package has been tested with Python 3.9+.
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.8+ is required to use this package.
15+
- Python 3.9+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -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.

sdk/compute/azure-mgmt-compute/_meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"commit": "85dbdf68f1c3e1693bd94eff5e8a869f1a07ed78",
2+
"commit": "dae9a106721b9b50a483728a66266c617ec938ef",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.27.4",
6+
"@autorest/python@6.33.0",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/compute/resource-manager/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 --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/compute/resource-manager/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.33.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/compute/resource-manager/readme.md",
1111
"package-2024-03-02-only": "2024-07-16 12:23:13 -0400 602fb5144a226577186e35845422c11db9067cf8 Microsoft.Compute/DiskRP/stable/2024-03-02/snapshot.json",
1212
"package-2024-03-01-only": "2024-06-05 15:03:47 -0700 491e00d17f24909ecf5e1030b3833bed51224e92 Microsoft.Compute/ComputeRP/stable/2024-03-01/virtualMachineScaleSet.json",

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_compute_management_client.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
from typing import Any, Optional, TYPE_CHECKING
12+
from typing import Any, Optional, TYPE_CHECKING, cast
1313
from typing_extensions import Self
1414

1515
from azure.core.pipeline import policies
16+
from azure.core.settings import settings
1617
from azure.mgmt.core import ARMPipelineClient
1718
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
19+
from azure.mgmt.core.tools import get_arm_endpoints
1820
from azure.profiles import KnownProfiles, ProfileDefinition
1921
from azure.profiles.multiapiclient import MultiApiClientMixin
2022

@@ -27,7 +29,7 @@
2729

2830
class _SDKClient(object):
2931
def __init__(self, *args, **kwargs):
30-
"""This is a fake class to support current implemetation of MultiApiClientMixin."
32+
"""This is a fake class to support current implementation of MultiApiClientMixin."
3133
Will be removed in final version of multiapi azure-core based client
3234
"""
3335
pass
@@ -114,13 +116,18 @@ def __init__(
114116
credential: "TokenCredential",
115117
subscription_id: str,
116118
api_version: Optional[str]=None,
117-
base_url: str = "https://management.azure.com",
119+
base_url: Optional[str] = None,
118120
profile: KnownProfiles=KnownProfiles.default,
119121
**kwargs: Any
120122
):
121123
if api_version:
122124
kwargs.setdefault('api_version', api_version)
123-
self._config = ComputeManagementClientConfiguration(credential, subscription_id, **kwargs)
125+
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
126+
_endpoints = get_arm_endpoints(_cloud)
127+
if not base_url:
128+
base_url = _endpoints["resource_manager"]
129+
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
130+
self._config = ComputeManagementClientConfiguration(credential, subscription_id, credential_scopes=credential_scopes, **kwargs)
124131
_policies = kwargs.pop("policies", None)
125132
if _policies is None:
126133
_policies = [
@@ -139,7 +146,7 @@ def __init__(
139146
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
140147
self._config.http_logging_policy,
141148
]
142-
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
149+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs)
143150
super(ComputeManagementClient, self).__init__(
144151
api_version=api_version,
145152
profile=profile

0 commit comments

Comments
 (0)