Skip to content
Closed
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
83 changes: 83 additions & 0 deletions sdk/azurestackhci/azure-mgmt-azurestackhci/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,88 @@
# Release History

## 8.0.0 (2025-04-18)

### Features Added

- Added operation ArcSettingsOperations.begin_initialize_disable_process
- Added operation ArcSettingsOperations.consent_and_install_default_extensions
- Added operation ClustersOperations.begin_extend_software_assurance_benefit
- Added operation ExtensionsOperations.begin_upgrade
- Added operation group DeploymentSettingsOperations
- Added operation group EdgeDevicesOperations
- Added operation group GalleryImagesOperations
- Added operation group GuestAgentOperations
- Added operation group GuestAgentsOperations
- Added operation group HybridIdentityMetadataOperations
- Added operation group LogicalNetworksOperations
- Added operation group MarketplaceGalleryImagesOperations
- Added operation group NetworkInterfacesOperations
- Added operation group OffersOperations
- Added operation group PublishersOperations
- Added operation group SecuritySettingsOperations
- Added operation group SkusOperations
- Added operation group StorageContainersOperations
- Added operation group UpdateRunsOperations
- Added operation group UpdateSummariesOperations
- Added operation group UpdatesOperations
- Added operation group VirtualHardDisksOperations
- Added operation group VirtualMachineInstancesOperations
- Model ArcConnectivityProperties has a new parameter service_configurations
- Model ArcSetting has a new parameter default_extensions
- Model ArcSetting has a new parameter system_data
- Model Cluster has a new parameter connectivity_status
- Model Cluster has a new parameter isolated_vm_attestation_configuration
- Model Cluster has a new parameter principal_id
- Model Cluster has a new parameter resource_provider_object_id
- Model Cluster has a new parameter software_assurance_properties
- Model Cluster has a new parameter system_data
- Model Cluster has a new parameter tenant_id
- Model Cluster has a new parameter type_identity_type
- Model Cluster has a new parameter user_assigned_identities
- Model ClusterNode has a new parameter ehc_resource_id
- Model ClusterNode has a new parameter last_licensing_timestamp
- Model ClusterNode has a new parameter node_type
- Model ClusterNode has a new parameter oem_activation
- Model ClusterNode has a new parameter os_display_version
- Model ClusterPatch has a new parameter principal_id
- Model ClusterPatch has a new parameter tenant_id
- Model ClusterPatch has a new parameter type
- Model ClusterPatch has a new parameter user_assigned_identities
- Model ClusterReportedProperties has a new parameter cluster_type
- Model ClusterReportedProperties has a new parameter manufacturer
- Model ClusterReportedProperties has a new parameter oem_activation
- Model ClusterReportedProperties has a new parameter supported_capabilities
- Model Extension has a new parameter enable_automatic_upgrade
- Model Extension has a new parameter managed_by
- Model Extension has a new parameter system_data
- Model PerNodeExtensionState has a new parameter instance_view
- Model PerNodeExtensionState has a new parameter type_handler_version
- Model PerNodeState has a new parameter arc_node_service_principal_object_id
- Model ProxyResource has a new parameter system_data
- Model Resource has a new parameter system_data
- Model TrackedResource has a new parameter system_data

### Breaking Changes

- Model ArcSetting no longer has parameter created_at
- Model ArcSetting no longer has parameter created_by
- Model ArcSetting no longer has parameter created_by_type
- Model ArcSetting no longer has parameter last_modified_at
- Model ArcSetting no longer has parameter last_modified_by
- Model ArcSetting no longer has parameter last_modified_by_type
- Model Cluster no longer has parameter created_at
- Model Cluster no longer has parameter created_by
- Model Cluster no longer has parameter created_by_type
- Model Cluster no longer has parameter last_modified_at
- Model Cluster no longer has parameter last_modified_by
- Model Cluster no longer has parameter last_modified_by_type
- Model Extension no longer has parameter created_at
- Model Extension no longer has parameter created_by
- Model Extension no longer has parameter created_by_type
- Model Extension no longer has parameter last_modified_at
- Model Extension no longer has parameter last_modified_by
- Model Extension no longer has parameter last_modified_by_type

## 8.0.0b4 (2024-08-26)

### Features Added
Expand Down
6 changes: 3 additions & 3 deletions sdk/azurestackhci/azure-mgmt-azurestackhci/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 Azure Stack HCI 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
8 changes: 4 additions & 4 deletions sdk/azurestackhci/azure-mgmt-azurestackhci/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "30d040e41a4cea0d31a6c7e56726ea2df17fdcc5",
"commit": "2e99511bfd9ef9cf31ecd616bc9c0af63dfc6808",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.19.0",
"@autorest/python@6.33.0",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/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",
"readme": "specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/readme.md"
"autorest_command": "autorest specification/azurestackhci/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",
"readme": "specification/azurestackhci/resource-manager/readme.md"
}
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 ._azure_stack_hci_client import AzureStackHCIClient
from typing import TYPE_CHECKING

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

from ._azure_stack_hci_client import AzureStackHCIClient # 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__ = [
"AzureStackHCIClient",
]
__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()
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
# --------------------------------------------------------------------------

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 AzureStackHCIClientConfiguration
Expand All @@ -24,22 +26,31 @@
DeploymentSettingsOperations,
EdgeDevicesOperations,
ExtensionsOperations,
GalleryImagesOperations,
GuestAgentOperations,
GuestAgentsOperations,
HybridIdentityMetadataOperations,
LogicalNetworksOperations,
MarketplaceGalleryImagesOperations,
NetworkInterfacesOperations,
OffersOperations,
Operations,
PublishersOperations,
SecuritySettingsOperations,
SkusOperations,
StorageContainersOperations,
UpdateRunsOperations,
UpdateSummariesOperations,
UpdatesOperations,
VirtualHardDisksOperations,
VirtualMachineInstancesOperations,
)

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


class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
class AzureStackHCIClient: # pylint: disable=too-many-instance-attributes
"""Azure Stack HCI management service.

:ivar arc_settings: ArcSettingsOperations operations
Expand All @@ -52,6 +63,15 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
:vartype edge_devices: azure.mgmt.azurestackhci.operations.EdgeDevicesOperations
:ivar extensions: ExtensionsOperations operations
:vartype extensions: azure.mgmt.azurestackhci.operations.ExtensionsOperations
:ivar gallery_images: GalleryImagesOperations operations
:vartype gallery_images: azure.mgmt.azurestackhci.operations.GalleryImagesOperations
:ivar logical_networks: LogicalNetworksOperations operations
:vartype logical_networks: azure.mgmt.azurestackhci.operations.LogicalNetworksOperations
:ivar marketplace_gallery_images: MarketplaceGalleryImagesOperations operations
:vartype marketplace_gallery_images:
azure.mgmt.azurestackhci.operations.MarketplaceGalleryImagesOperations
:ivar network_interfaces: NetworkInterfacesOperations operations
:vartype network_interfaces: azure.mgmt.azurestackhci.operations.NetworkInterfacesOperations
:ivar offers: OffersOperations operations
:vartype offers: azure.mgmt.azurestackhci.operations.OffersOperations
:ivar operations: Operations operations
Expand All @@ -62,35 +82,51 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
:vartype security_settings: azure.mgmt.azurestackhci.operations.SecuritySettingsOperations
:ivar skus: SkusOperations operations
:vartype skus: azure.mgmt.azurestackhci.operations.SkusOperations
:ivar storage_containers: StorageContainersOperations operations
:vartype storage_containers: azure.mgmt.azurestackhci.operations.StorageContainersOperations
:ivar update_runs: UpdateRunsOperations operations
:vartype update_runs: azure.mgmt.azurestackhci.operations.UpdateRunsOperations
:ivar update_summaries: UpdateSummariesOperations operations
:vartype update_summaries: azure.mgmt.azurestackhci.operations.UpdateSummariesOperations
:ivar updates: UpdatesOperations operations
:vartype updates: azure.mgmt.azurestackhci.operations.UpdatesOperations
:ivar virtual_hard_disks: VirtualHardDisksOperations operations
:vartype virtual_hard_disks: azure.mgmt.azurestackhci.operations.VirtualHardDisksOperations
:ivar virtual_machine_instances: VirtualMachineInstancesOperations operations
:vartype virtual_machine_instances:
azure.mgmt.azurestackhci.operations.VirtualMachineInstancesOperations
:ivar hybrid_identity_metadata: HybridIdentityMetadataOperations operations
:vartype hybrid_identity_metadata:
azure.mgmt.azurestackhci.operations.HybridIdentityMetadataOperations
:ivar guest_agent: GuestAgentOperations operations
:vartype guest_agent: azure.mgmt.azurestackhci.operations.GuestAgentOperations
:ivar guest_agents: GuestAgentsOperations operations
:vartype guest_agents: azure.mgmt.azurestackhci.operations.GuestAgentsOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:param subscription_id: The ID of the target subscription. 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 "2024-04-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2024-01-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:
_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 = AzureStackHCIClientConfiguration(
credential=credential, subscription_id=subscription_id, **kwargs
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
)

_policies = kwargs.pop("policies", None)
if _policies is None:
_policies = [
Expand All @@ -109,7 +145,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 @@ -122,18 +158,42 @@ def __init__(
)
self.edge_devices = EdgeDevicesOperations(self._client, self._config, self._serialize, self._deserialize)
self.extensions = ExtensionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.gallery_images = GalleryImagesOperations(self._client, self._config, self._serialize, self._deserialize)
self.logical_networks = LogicalNetworksOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.marketplace_gallery_images = MarketplaceGalleryImagesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.network_interfaces = NetworkInterfacesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.offers = OffersOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.publishers = PublishersOperations(self._client, self._config, self._serialize, self._deserialize)
self.security_settings = SecuritySettingsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize)
self.storage_containers = StorageContainersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.update_runs = UpdateRunsOperations(self._client, self._config, self._serialize, self._deserialize)
self.update_summaries = UpdateSummariesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.updates = UpdatesOperations(self._client, self._config, self._serialize, self._deserialize)
self.virtual_hard_disks = VirtualHardDisksOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.virtual_machine_instances = VirtualMachineInstancesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.hybrid_identity_metadata = HybridIdentityMetadataOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.guest_agent = GuestAgentOperations(self._client, self._config, self._serialize, self._deserialize)
self.guest_agents = GuestAgentsOperations(self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,26 @@
from ._version import VERSION

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


class AzureStackHCIClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
class AzureStackHCIClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for AzureStackHCIClient.
Note that all parameters used to create this instance are saved as instance
attributes.
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2024-01-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", "2024-04-01")
api_version: str = kwargs.pop("api_version", "2024-01-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Loading