Skip to content

[AutoPR azure-mgmt-avs] Review request for Microsoft.ContainerService/aks to add version stable/2025-03-01 #11832

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions sdk/compute/azure-mgmt-avs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
# Release History

## 9.1.0 (2025-05-12)

### Features Added

- Client `AVSClient` added operation group `skus`
- Client `AVSClient` added operation group `hosts`
- Client `AVSClient` added operation group `provisioned_networks`
- Client `AVSClient` added operation group `pure_storage_policies`
- Model `AddonHcxProperties` added property `management_network`
- Model `AddonHcxProperties` added property `uplink_network`
- Model `Datastore` added property `pure_storage_volume`
- Model `PrivateCloud` added property `zones`
- Added model `GeneralHostProperties`
- Added model `Host`
- Added enum `HostKind`
- Added model `HostListResult`
- Added enum `HostMaintenance`
- Added model `HostProperties`
- Added enum `HostProvisioningState`
- Added model `PagedResourceSku`
- Added model `ProvisionedNetwork`
- Added model `ProvisionedNetworkListResult`
- Added enum `ProvisionedNetworkProvisioningState`
- Added enum `ProvisionedNetworkTypes`
- Added model `PureStoragePolicy`
- Added model `PureStoragePolicyListResult`
- Added enum `PureStoragePolicyProvisioningState`
- Added model `PureStorageVolume`
- Added model `ResourceSku`
- Added model `ResourceSkuCapabilities`
- Added model `ResourceSkuLocationInfo`
- Added enum `ResourceSkuResourceType`
- Added model `ResourceSkuRestrictionInfo`
- Added model `ResourceSkuRestrictions`
- Added enum `ResourceSkuRestrictionsReasonCode`
- Added enum `ResourceSkuRestrictionsType`
- Added model `ResourceSkuZoneDetails`
- Added model `SpecializedHostProperties`
- Added model `HostsOperations`
- Added model `ProvisionedNetworksOperations`
- Added model `PureStoragePoliciesOperations`
- Added model `SkusOperations`
- Method `PureStoragePoliciesOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, private_cloud_name: str, storage_policy_name: str, resource: PureStoragePolicy, content_type: str)`
- Method `PureStoragePoliciesOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, private_cloud_name: str, storage_policy_name: str, resource: IO[bytes], content_type: str)`

## 9.0.0 (2024-09-22)

### Features Added
Expand Down
6 changes: 3 additions & 3 deletions sdk/compute/azure-mgmt-avs/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Microsoft Azure SDK for Python

This is the Microsoft Azure Avs Management Client Library.
This package has been tested with Python 3.8+.
This package has been tested with Python 3.9+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).

## _Disclaimer_
Expand All @@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For

### Prerequisites

- Python 3.8+ is required to use this package.
- Python 3.9+ is required to use this package.
- [Azure subscription](https://azure.microsoft.com/free/)

### Install the package
Expand All @@ -24,7 +24,7 @@ pip install azure-identity

### Authentication

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

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
Expand Down
6 changes: 3 additions & 3 deletions sdk/compute/azure-mgmt-avs/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "abb0052f400b0215d4fbbf479e5bbc54714199e0",
"commit": "4cb05484991756149f27956ffda2cec93ff10d4d",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.19.0",
"@autorest/python@6.34.1",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/vmware/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"autorest_command": "autorest specification/vmware/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.34.1 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/vmware/resource-manager/readme.md"
}
12 changes: 9 additions & 3 deletions sdk/compute/azure-mgmt-avs/azure/mgmt/avs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,28 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from ._avs_client import AVSClient
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._avs_client import AVSClient # type: ignore
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"AVSClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

_patch_sdk()
51 changes: 38 additions & 13 deletions sdk/compute/azure-mgmt-avs/azure/mgmt/avs/_avs_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@
# --------------------------------------------------------------------------

from copy import deepcopy
from typing import Any, TYPE_CHECKING
from typing import Any, Optional, TYPE_CHECKING, cast
from typing_extensions import Self

from azure.core.pipeline import policies
from azure.core.rest import HttpRequest, HttpResponse
from azure.core.settings import settings
from azure.mgmt.core import ARMPipelineClient
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
from azure.mgmt.core.tools import get_arm_endpoints

from . import models as _models
from ._configuration import AVSClientConfiguration
from ._serialization import Deserializer, Serializer
from ._utils.serialization import Deserializer, Serializer
from .operations import (
AddonsOperations,
AuthorizationsOperations,
Expand All @@ -26,24 +28,27 @@
DatastoresOperations,
GlobalReachConnectionsOperations,
HcxEnterpriseSitesOperations,
HostsOperations,
IscsiPathsOperations,
LocationsOperations,
Operations,
PlacementPoliciesOperations,
PrivateCloudsOperations,
ProvisionedNetworksOperations,
PureStoragePoliciesOperations,
ScriptCmdletsOperations,
ScriptExecutionsOperations,
ScriptPackagesOperations,
SkusOperations,
VirtualMachinesOperations,
WorkloadNetworksOperations,
)

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


class AVSClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
class AVSClient: # pylint: disable=too-many-instance-attributes
"""Azure VMware Solution API.

:ivar operations: Operations operations
Expand All @@ -52,6 +57,8 @@ class AVSClient: # pylint: disable=client-accepts-api-version-keyword,too-many-
:vartype locations: azure.mgmt.avs.operations.LocationsOperations
:ivar private_clouds: PrivateCloudsOperations operations
:vartype private_clouds: azure.mgmt.avs.operations.PrivateCloudsOperations
:ivar skus: SkusOperations operations
:vartype skus: azure.mgmt.avs.operations.SkusOperations
:ivar addons: AddonsOperations operations
:vartype addons: azure.mgmt.avs.operations.AddonsOperations
:ivar authorizations: AuthorizationsOperations operations
Expand All @@ -62,6 +69,8 @@ class AVSClient: # pylint: disable=client-accepts-api-version-keyword,too-many-
:vartype clusters: azure.mgmt.avs.operations.ClustersOperations
:ivar datastores: DatastoresOperations operations
:vartype datastores: azure.mgmt.avs.operations.DatastoresOperations
:ivar hosts: HostsOperations operations
:vartype hosts: azure.mgmt.avs.operations.HostsOperations
:ivar placement_policies: PlacementPoliciesOperations operations
:vartype placement_policies: azure.mgmt.avs.operations.PlacementPoliciesOperations
:ivar virtual_machines: VirtualMachinesOperations operations
Expand All @@ -72,6 +81,10 @@ class AVSClient: # pylint: disable=client-accepts-api-version-keyword,too-many-
:vartype hcx_enterprise_sites: azure.mgmt.avs.operations.HcxEnterpriseSitesOperations
:ivar iscsi_paths: IscsiPathsOperations operations
:vartype iscsi_paths: azure.mgmt.avs.operations.IscsiPathsOperations
:ivar provisioned_networks: ProvisionedNetworksOperations operations
:vartype provisioned_networks: azure.mgmt.avs.operations.ProvisionedNetworksOperations
:ivar pure_storage_policies: PureStoragePoliciesOperations operations
:vartype pure_storage_policies: azure.mgmt.avs.operations.PureStoragePoliciesOperations
:ivar script_executions: ScriptExecutionsOperations operations
:vartype script_executions: azure.mgmt.avs.operations.ScriptExecutionsOperations
:ivar script_packages: ScriptPackagesOperations operations
Expand All @@ -84,23 +97,27 @@ class AVSClient: # pylint: disable=client-accepts-api-version-keyword,too-many-
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:param base_url: Service URL. Default value is None.
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-09-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2024-09-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
"""

def __init__(
self,
credential: "TokenCredential",
subscription_id: str,
base_url: str = "https://management.azure.com",
**kwargs: Any
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
) -> None:
self._config = AVSClientConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
_endpoints = get_arm_endpoints(_cloud)
if not base_url:
base_url = _endpoints["resource_manager"]
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
self._config = AVSClientConfiguration(
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
)

_policies = kwargs.pop("policies", None)
if _policies is None:
_policies = [
Expand All @@ -119,7 +136,7 @@ def __init__(
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
self._config.http_logging_policy,
]
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs)

client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
Expand All @@ -128,11 +145,13 @@ def __init__(
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize)
self.private_clouds = PrivateCloudsOperations(self._client, self._config, self._serialize, self._deserialize)
self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize)
self.addons = AddonsOperations(self._client, self._config, self._serialize, self._deserialize)
self.authorizations = AuthorizationsOperations(self._client, self._config, self._serialize, self._deserialize)
self.cloud_links = CloudLinksOperations(self._client, self._config, self._serialize, self._deserialize)
self.clusters = ClustersOperations(self._client, self._config, self._serialize, self._deserialize)
self.datastores = DatastoresOperations(self._client, self._config, self._serialize, self._deserialize)
self.hosts = HostsOperations(self._client, self._config, self._serialize, self._deserialize)
self.placement_policies = PlacementPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand All @@ -146,6 +165,12 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.iscsi_paths = IscsiPathsOperations(self._client, self._config, self._serialize, self._deserialize)
self.provisioned_networks = ProvisionedNetworksOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.pure_storage_policies = PureStoragePoliciesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.script_executions = ScriptExecutionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down
5 changes: 2 additions & 3 deletions sdk/compute/azure-mgmt-avs/azure/mgmt/avs/_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from ._version import VERSION

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


Expand All @@ -28,13 +27,13 @@ class AVSClientConfiguration: # pylint: disable=too-many-instance-attributes
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-09-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2024-09-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2023-09-01")
api_version: str = kwargs.pop("api_version", "2024-09-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
6 changes: 6 additions & 0 deletions sdk/compute/azure-mgmt-avs/azure/mgmt/avs/_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
Loading