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

## 8.0.0b5 (2025-03-28)

### Features Added

- Client `AzureStackHCIClient` added operation group `edge_device_jobs`
- Client `AzureStackHCIClient` added operation group `validated_solution_recipes`
- Model `Cluster` added property `secrets_locations`
- Model `Cluster` added property `cluster_pattern`
- Model `Cluster` added property `local_availability_zones`
- Model `ClusterReportedProperties` added property `hardware_class`
- Model `DeploymentCluster` added property `cluster_pattern`
- Model `DeploymentCluster` added property `hardware_class`
- Model `DeploymentData` added property `local_availability_zones`
- Model `DeploymentData` added property `assembly_info`
- Model `HciNicDetail` added property `rdma_capability`
- Model `HciReportedProperties` added property `storage_profile`
- Model `HciReportedProperties` added property `hardware_profile`
- Added model `AssemblyInfo`
- Added model `AssemblyInfoPayload`
- Added enum `ClusterPattern`
- Added model `CollectLogJobProperties`
- Added enum `DeviceLogCollectionStatus`
- Added model `EdgeDeviceJob`
- Added model `EdgeDeviceJobListResult`
- Added model `EdgeDeviceJobProperties`
- Added enum `EdgeDeviceJobType`
- Added enum `EdgeDeviceKind`
- Added enum `EdgeSolutionType`
- Added enum `HardwareClass`
- Added model `HciCollectLogJobProperties`
- Added model `HciEdgeDeviceJob`
- Added model `HciEdgeDeviceJobProperties`
- Added enum `HciEdgeDeviceJobType`
- Added model `HciHardwareProfile`
- Added model `HciRemoteSupportJobProperties`
- Added model `HciStorageProfile`
- Added model `JobReportedProperties`
- Added enum `JobStatus`
- Added model `LocalAvailabilityZones`
- Added model `LogCollectionJobSession`
- Added model `LogCollectionReportedProperties`
- Added enum `RdmaCapability`
- Added enum `RemoteSupportAccessLevel`
- Added model `RemoteSupportJobNodeSettings`
- Added model `RemoteSupportJobProperties`
- Added model `RemoteSupportJobReportedProperties`
- Added model `RemoteSupportSession`
- Added model `SecretsLocationDetails`
- Added model `SecretsLocationsChangeRequest`
- Added enum `SecretsType`
- Added model `ValidatedSolutionRecipe`
- Added model `ValidatedSolutionRecipeCapabilities`
- Added model `ValidatedSolutionRecipeCapability`
- Added model `ValidatedSolutionRecipeComponent`
- Added model `ValidatedSolutionRecipeComponentMetadata`
- Added model `ValidatedSolutionRecipeComponentPayload`
- Added model `ValidatedSolutionRecipeContent`
- Added model `ValidatedSolutionRecipeInfo`
- Added model `ValidatedSolutionRecipeListResult`
- Added model `ValidatedSolutionRecipeProperties`
- Model `ClustersOperations` added method `begin_update_secrets_locations`
- Added model `EdgeDeviceJobsOperations`
- Added model `ValidatedSolutionRecipesOperations`
- Method `ClustersOperations.begin_update_secrets_locations` has a new overload `def begin_update_secrets_locations(self: None, resource_group_name: str, cluster_name: str, body: SecretsLocationsChangeRequest, content_type: str)`
- Method `ClustersOperations.begin_update_secrets_locations` has a new overload `def begin_update_secrets_locations(self: None, resource_group_name: str, cluster_name: str, body: IO[bytes], content_type: str)`
- Method `EdgeDeviceJobsOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_uri: str, edge_device_name: str, jobs_name: str, resource: EdgeDeviceJob, content_type: str)`
- Method `EdgeDeviceJobsOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_uri: str, edge_device_name: str, jobs_name: str, resource: IO[bytes], content_type: str)`

### Breaking Changes

- Method `Operations.list` changed from `asynchronous` to `synchronous`
- Method `DeploymentSetting.__init__` parameter `deployment_mode` changed default value from `str` to `none`

## 8.0.0b4 (2024-08-26)

### Features Added
Expand Down
2 changes: 1 addition & 1 deletion sdk/azurestackhci/azure-mgmt-azurestackhci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/azurestackhci/azure-mgmt-azurestackhci/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "30d040e41a4cea0d31a6c7e56726ea2df17fdcc5",
"commit": "a050fa0419263b6c6efa11793bbe41ae1e7694b0",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.19.0",
"@autorest/python@6.27.4",
"@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",
"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=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/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 @@ -22,6 +22,7 @@
ArcSettingsOperations,
ClustersOperations,
DeploymentSettingsOperations,
EdgeDeviceJobsOperations,
EdgeDevicesOperations,
ExtensionsOperations,
OffersOperations,
Expand All @@ -32,14 +33,14 @@
UpdateRunsOperations,
UpdateSummariesOperations,
UpdatesOperations,
ValidatedSolutionRecipesOperations,
)

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 @@ -48,6 +49,8 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
:vartype clusters: azure.mgmt.azurestackhci.operations.ClustersOperations
:ivar deployment_settings: DeploymentSettingsOperations operations
:vartype deployment_settings: azure.mgmt.azurestackhci.operations.DeploymentSettingsOperations
:ivar edge_device_jobs: EdgeDeviceJobsOperations operations
:vartype edge_device_jobs: azure.mgmt.azurestackhci.operations.EdgeDeviceJobsOperations
:ivar edge_devices: EdgeDevicesOperations operations
:vartype edge_devices: azure.mgmt.azurestackhci.operations.EdgeDevicesOperations
:ivar extensions: ExtensionsOperations operations
Expand All @@ -64,18 +67,21 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
:vartype skus: azure.mgmt.azurestackhci.operations.SkusOperations
: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 update_summaries: UpdateSummariesOperations operations
:vartype update_summaries: azure.mgmt.azurestackhci.operations.UpdateSummariesOperations
:ivar validated_solution_recipes: ValidatedSolutionRecipesOperations operations
:vartype validated_solution_recipes:
azure.mgmt.azurestackhci.operations.ValidatedSolutionRecipesOperations
: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.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2025-02-01-preview". 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.
Expand Down Expand Up @@ -120,6 +126,7 @@ def __init__(
self.deployment_settings = DeploymentSettingsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.edge_device_jobs = EdgeDeviceJobsOperations(self._client, self._config, self._serialize, self._deserialize)
self.edge_devices = EdgeDevicesOperations(self._client, self._config, self._serialize, self._deserialize)
self.extensions = ExtensionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.offers = OffersOperations(self._client, self._config, self._serialize, self._deserialize)
Expand All @@ -130,10 +137,13 @@ def __init__(
)
self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize)
self.update_runs = UpdateRunsOperations(self._client, self._config, self._serialize, self._deserialize)
self.updates = UpdatesOperations(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.validated_solution_recipes = ValidatedSolutionRecipesOperations(
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,11 +14,10 @@
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
Expand All @@ -28,13 +27,13 @@ class AzureStackHCIClientConfiguration: # pylint: disable=too-many-instance-att
: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 "2024-04-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2025-02-01-preview". 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", "2025-02-01-preview")

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