Skip to content

Commit 096401d

Browse files
[AutoRelease] t2-networkcloud-2025-05-13-56278(can only be merged by SDK owner) (#41039)
* code and test * update changelog --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 790829f commit 096401d

File tree

230 files changed

+5770
-1626
lines changed

Some content is hidden

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

230 files changed

+5770
-1626
lines changed

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

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

3+
## 2.1.0 (2025-06-16)
4+
5+
### Features Added
6+
7+
- Model `AgentPool` added property `etag`
8+
- Model `BareMetalMachine` added property `etag`
9+
- Model `BareMetalMachineKeySet` added property `etag`
10+
- Model `BmcKeySet` added property `etag`
11+
- Model `CloudServicesNetwork` added property `etag`
12+
- Model `Cluster` added property `etag`
13+
- Model `Cluster` added property `analytics_output_settings`
14+
- Model `Cluster` added property `secret_archive_settings`
15+
- Model `Cluster` added property `vulnerability_scanning_settings`
16+
- Model `ClusterManager` added property `etag`
17+
- Model `ClusterMetricsConfiguration` added property `etag`
18+
- Model `ClusterPatchParameters` added property `analytics_output_settings`
19+
- Model `ClusterPatchParameters` added property `secret_archive_settings`
20+
- Model `ClusterPatchParameters` added property `vulnerability_scanning_settings`
21+
- Model `Console` added property `etag`
22+
- Model `KubernetesCluster` added property `etag`
23+
- Model `KubernetesClusterFeature` added property `etag`
24+
- Model `L2Network` added property `etag`
25+
- Model `L3Network` added property `etag`
26+
- Enum `OsDiskCreateOption` added member `PERSISTENT`
27+
- Model `Rack` added property `etag`
28+
- Model `StorageAppliance` added property `etag`
29+
- Enum `StorageApplianceDetailedStatus` added member `DEGRADED`
30+
- Model `TrunkedNetwork` added property `etag`
31+
- Model `VirtualMachine` added property `etag`
32+
- Model `VirtualMachine` added property `console_extended_location`
33+
- Enum `VirtualMachineDeviceModelType` added member `T3`
34+
- Model `Volume` added property `etag`
35+
- Added model `AnalyticsOutputSettings`
36+
- Added model `SecretArchiveSettings`
37+
- Added model `VulnerabilityScanningSettings`
38+
- Added enum `VulnerabilityScanningSettingsContainerScan`
39+
- Added model `VulnerabilityScanningSettingsPatch`
40+
341
## 2.1.0b1 (2025-04-21)
442

543
### Features Added

sdk/networkcloud/azure-mgmt-networkcloud/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 Networkcloud 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
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "b228f178ed852d198497e797789da6ac05af09c0",
2+
"commit": "c64457b3dcc103d93c378ca1ec58fbf683a7f163",
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.34.1",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/networkcloud/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 --tag=package-2024-10-01-preview --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/networkcloud/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.34.1 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/networkcloud/resource-manager/readme.md"
1111
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ class NetworkCloudMgmtClientConfiguration: # pylint: disable=too-many-instance-
2727
:type credential: ~azure.core.credentials.TokenCredential
2828
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
2929
:type subscription_id: str
30-
:keyword api_version: Api Version. Default value is "2024-10-01-preview". Note that overriding
31-
this default value may result in unsupported behavior.
30+
:keyword api_version: Api Version. Default value is "2025-02-01". Note that overriding this
31+
default value may result in unsupported behavior.
3232
:paramtype api_version: str
3333
"""
3434

3535
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
36-
api_version: str = kwargs.pop("api_version", "2024-10-01-preview")
36+
api_version: str = kwargs.pop("api_version", "2025-02-01")
3737

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

sdk/networkcloud/azure-mgmt-networkcloud/azure/mgmt/networkcloud/_network_cloud_mgmt_client.py

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@
77
# --------------------------------------------------------------------------
88

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

1313
from azure.core.pipeline import policies
1414
from azure.core.rest import HttpRequest, HttpResponse
15+
from azure.core.settings import settings
1516
from azure.mgmt.core import ARMPipelineClient
1617
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
18+
from azure.mgmt.core.tools import get_arm_endpoints
1719

1820
from . import models as _models
1921
from ._configuration import NetworkCloudMgmtClientConfiguration
20-
from ._serialization import Deserializer, Serializer
22+
from ._utils.serialization import Deserializer, Serializer
2123
from .operations import (
2224
AgentPoolsOperations,
2325
BareMetalMachineKeySetsOperations,
@@ -97,25 +99,27 @@ class NetworkCloudMgmtClient: # pylint: disable=too-many-instance-attributes
9799
:type credential: ~azure.core.credentials.TokenCredential
98100
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
99101
:type subscription_id: str
100-
:param base_url: Service URL. Default value is "https://management.azure.com".
102+
:param base_url: Service URL. Default value is None.
101103
:type base_url: str
102-
:keyword api_version: Api Version. Default value is "2024-10-01-preview". Note that overriding
103-
this default value may result in unsupported behavior.
104+
:keyword api_version: Api Version. Default value is "2025-02-01". Note that overriding this
105+
default value may result in unsupported behavior.
104106
:paramtype api_version: str
105107
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
106108
Retry-After header is present.
107109
"""
108110

109111
def __init__(
110-
self,
111-
credential: "TokenCredential",
112-
subscription_id: str,
113-
base_url: str = "https://management.azure.com",
114-
**kwargs: Any
112+
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
115113
) -> None:
114+
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
115+
_endpoints = get_arm_endpoints(_cloud)
116+
if not base_url:
117+
base_url = _endpoints["resource_manager"]
118+
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
116119
self._config = NetworkCloudMgmtClientConfiguration(
117-
credential=credential, subscription_id=subscription_id, **kwargs
120+
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
118121
)
122+
119123
_policies = kwargs.pop("policies", None)
120124
if _policies is None:
121125
_policies = [
@@ -134,7 +138,7 @@ def __init__(
134138
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
135139
self._config.http_logging_policy,
136140
]
137-
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
141+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs)
138142

139143
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
140144
self._serialize = Serializer(client_models)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
6+
# --------------------------------------------------------------------------

0 commit comments

Comments
 (0)