Skip to content

Commit f02a294

Browse files
author
SDKAuto
committed
CodeGen from PR 33888 in Azure/azure-rest-api-specs
Merge e79cb38a118b7813398e55be7281cd67f0822505 into f11631f1c1057d8363f9e3f9597c73b90f8924c8
1 parent 610a33b commit f02a294

File tree

145 files changed

+6583
-1793
lines changed

Some content is hidden

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

145 files changed

+6583
-1793
lines changed

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

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

3+
## 8.0.0b5 (2025-04-25)
4+
5+
### Features Added
6+
7+
- Client `AzureStackHCIClient` added operation group `edge_device_jobs`
8+
- Client `AzureStackHCIClient` added operation group `validated_solution_recipes`
9+
- Model `Cluster` added property `secrets_locations`
10+
- Model `Cluster` added property `cluster_pattern`
11+
- Model `Cluster` added property `local_availability_zones`
12+
- Model `ClusterReportedProperties` added property `hardware_class`
13+
- Model `DeploymentCluster` added property `cluster_pattern`
14+
- Model `DeploymentCluster` added property `hardware_class`
15+
- Model `DeploymentData` added property `local_availability_zones`
16+
- Model `DeploymentData` added property `assembly_info`
17+
- Model `HciNicDetail` added property `rdma_capability`
18+
- Model `HciReportedProperties` added property `storage_profile`
19+
- Model `HciReportedProperties` added property `hardware_profile`
20+
- Added model `AssemblyInfo`
21+
- Added model `AssemblyInfoPayload`
22+
- Added enum `ClusterPattern`
23+
- Added model `CollectLogJobProperties`
24+
- Added enum `DeviceLogCollectionStatus`
25+
- Added model `EdgeDeviceJob`
26+
- Added model `EdgeDeviceJobListResult`
27+
- Added model `EdgeDeviceJobProperties`
28+
- Added enum `EdgeDeviceJobType`
29+
- Added enum `EdgeDeviceKind`
30+
- Added enum `EdgeSolutionType`
31+
- Added enum `HardwareClass`
32+
- Added model `HciCollectLogJobProperties`
33+
- Added model `HciEdgeDeviceJob`
34+
- Added model `HciEdgeDeviceJobProperties`
35+
- Added enum `HciEdgeDeviceJobType`
36+
- Added model `HciHardwareProfile`
37+
- Added model `HciRemoteSupportJobProperties`
38+
- Added model `HciStorageProfile`
39+
- Added model `JobReportedProperties`
40+
- Added enum `JobStatus`
41+
- Added model `LocalAvailabilityZones`
42+
- Added model `LogCollectionJobSession`
43+
- Added model `LogCollectionReportedProperties`
44+
- Added enum `RdmaCapability`
45+
- Added enum `RemoteSupportAccessLevel`
46+
- Added model `RemoteSupportJobNodeSettings`
47+
- Added model `RemoteSupportJobProperties`
48+
- Added model `RemoteSupportJobReportedProperties`
49+
- Added model `RemoteSupportSession`
50+
- Added model `SecretsLocationDetails`
51+
- Added model `SecretsLocationsChangeRequest`
52+
- Added enum `SecretsType`
53+
- Added model `ValidatedSolutionRecipe`
54+
- Added model `ValidatedSolutionRecipeCapabilities`
55+
- Added model `ValidatedSolutionRecipeCapability`
56+
- Added model `ValidatedSolutionRecipeComponent`
57+
- Added model `ValidatedSolutionRecipeComponentMetadata`
58+
- Added model `ValidatedSolutionRecipeComponentPayload`
59+
- Added model `ValidatedSolutionRecipeContent`
60+
- Added model `ValidatedSolutionRecipeInfo`
61+
- Added model `ValidatedSolutionRecipeListResult`
62+
- Added model `ValidatedSolutionRecipeProperties`
63+
- Model `ClustersOperations` added method `begin_update_secrets_locations`
64+
- Added model `EdgeDeviceJobsOperations`
65+
- Added model `ValidatedSolutionRecipesOperations`
66+
- 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)`
67+
- 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)`
68+
- 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)`
69+
- 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)`
70+
71+
### Breaking Changes
72+
73+
- Method `Operations.list` changed from `asynchronous` to `synchronous`
74+
- Method `DeploymentSetting.__init__` parameter `deployment_mode` changed default value from `str` to `none`
75+
376
## 8.0.0b4 (2024-08-26)
477

578
### Features Added

sdk/azurestackhci/azure-mgmt-azurestackhci/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 Azure Stack HCI 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.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "30d040e41a4cea0d31a6c7e56726ea2df17fdcc5",
2+
"commit": "e365769a59c2b028ae917ea8083ed7c11d71e4f1",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.19.0",
6+
"@autorest/python@6.34.1",
77
"@autorest/[email protected]"
88
],
9-
"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",
9+
"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.34.1 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/readme.md"
1111
}

sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._azure_stack_hci_client import AzureStackHCIClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._azure_stack_hci_client import AzureStackHCIClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"AzureStackHCIClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_azure_stack_hci_client.py

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,24 @@
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 AzureStackHCIClientConfiguration
20-
from ._serialization import Deserializer, Serializer
22+
from ._utils.serialization import Deserializer, Serializer
2123
from .operations import (
2224
ArcSettingsOperations,
2325
ClustersOperations,
2426
DeploymentSettingsOperations,
27+
EdgeDeviceJobsOperations,
2528
EdgeDevicesOperations,
2629
ExtensionsOperations,
2730
OffersOperations,
@@ -32,14 +35,14 @@
3235
UpdateRunsOperations,
3336
UpdateSummariesOperations,
3437
UpdatesOperations,
38+
ValidatedSolutionRecipesOperations,
3539
)
3640

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

4144

42-
class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
45+
class AzureStackHCIClient: # pylint: disable=too-many-instance-attributes
4346
"""Azure Stack HCI management service.
4447
4548
:ivar arc_settings: ArcSettingsOperations operations
@@ -48,6 +51,8 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
4851
:vartype clusters: azure.mgmt.azurestackhci.operations.ClustersOperations
4952
:ivar deployment_settings: DeploymentSettingsOperations operations
5053
:vartype deployment_settings: azure.mgmt.azurestackhci.operations.DeploymentSettingsOperations
54+
:ivar edge_device_jobs: EdgeDeviceJobsOperations operations
55+
:vartype edge_device_jobs: azure.mgmt.azurestackhci.operations.EdgeDeviceJobsOperations
5156
:ivar edge_devices: EdgeDevicesOperations operations
5257
:vartype edge_devices: azure.mgmt.azurestackhci.operations.EdgeDevicesOperations
5358
:ivar extensions: ExtensionsOperations operations
@@ -64,33 +69,38 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
6469
:vartype skus: azure.mgmt.azurestackhci.operations.SkusOperations
6570
:ivar update_runs: UpdateRunsOperations operations
6671
:vartype update_runs: azure.mgmt.azurestackhci.operations.UpdateRunsOperations
67-
:ivar update_summaries: UpdateSummariesOperations operations
68-
:vartype update_summaries: azure.mgmt.azurestackhci.operations.UpdateSummariesOperations
6972
:ivar updates: UpdatesOperations operations
7073
:vartype updates: azure.mgmt.azurestackhci.operations.UpdatesOperations
74+
:ivar update_summaries: UpdateSummariesOperations operations
75+
:vartype update_summaries: azure.mgmt.azurestackhci.operations.UpdateSummariesOperations
76+
:ivar validated_solution_recipes: ValidatedSolutionRecipesOperations operations
77+
:vartype validated_solution_recipes:
78+
azure.mgmt.azurestackhci.operations.ValidatedSolutionRecipesOperations
7179
:param credential: Credential needed for the client to connect to Azure. Required.
7280
:type credential: ~azure.core.credentials.TokenCredential
7381
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
7482
:type subscription_id: str
75-
:param base_url: Service URL. Default value is "https://management.azure.com".
83+
:param base_url: Service URL. Default value is None.
7684
:type base_url: str
77-
:keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this
78-
default value may result in unsupported behavior.
85+
:keyword api_version: Api Version. Default value is "2025-02-01-preview". Note that overriding
86+
this default value may result in unsupported behavior.
7987
:paramtype api_version: str
8088
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
8189
Retry-After header is present.
8290
"""
8391

8492
def __init__(
85-
self,
86-
credential: "TokenCredential",
87-
subscription_id: str,
88-
base_url: str = "https://management.azure.com",
89-
**kwargs: Any
93+
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
9094
) -> None:
95+
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
96+
_endpoints = get_arm_endpoints(_cloud)
97+
if not base_url:
98+
base_url = _endpoints["resource_manager"]
99+
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
91100
self._config = AzureStackHCIClientConfiguration(
92-
credential=credential, subscription_id=subscription_id, **kwargs
101+
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
93102
)
103+
94104
_policies = kwargs.pop("policies", None)
95105
if _policies is None:
96106
_policies = [
@@ -109,7 +119,7 @@ def __init__(
109119
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
110120
self._config.http_logging_policy,
111121
]
112-
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
122+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs)
113123

114124
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
115125
self._serialize = Serializer(client_models)
@@ -120,6 +130,7 @@ def __init__(
120130
self.deployment_settings = DeploymentSettingsOperations(
121131
self._client, self._config, self._serialize, self._deserialize
122132
)
133+
self.edge_device_jobs = EdgeDeviceJobsOperations(self._client, self._config, self._serialize, self._deserialize)
123134
self.edge_devices = EdgeDevicesOperations(self._client, self._config, self._serialize, self._deserialize)
124135
self.extensions = ExtensionsOperations(self._client, self._config, self._serialize, self._deserialize)
125136
self.offers = OffersOperations(self._client, self._config, self._serialize, self._deserialize)
@@ -130,10 +141,13 @@ def __init__(
130141
)
131142
self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize)
132143
self.update_runs = UpdateRunsOperations(self._client, self._config, self._serialize, self._deserialize)
144+
self.updates = UpdatesOperations(self._client, self._config, self._serialize, self._deserialize)
133145
self.update_summaries = UpdateSummariesOperations(
134146
self._client, self._config, self._serialize, self._deserialize
135147
)
136-
self.updates = UpdatesOperations(self._client, self._config, self._serialize, self._deserialize)
148+
self.validated_solution_recipes = ValidatedSolutionRecipesOperations(
149+
self._client, self._config, self._serialize, self._deserialize
150+
)
137151

138152
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
139153
"""Runs the network request through the client's chained policies.

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
from ._version import VERSION
1515

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

2019

21-
class AzureStackHCIClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class AzureStackHCIClientConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for AzureStackHCIClient.
2322
2423
Note that all parameters used to create this instance are saved as instance
@@ -28,13 +27,13 @@ class AzureStackHCIClientConfiguration: # pylint: disable=too-many-instance-att
2827
:type credential: ~azure.core.credentials.TokenCredential
2928
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3029
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this
32-
default value may result in unsupported behavior.
30+
:keyword api_version: Api Version. Default value is "2025-02-01-preview". Note that overriding
31+
this default value may result in unsupported behavior.
3332
:paramtype api_version: str
3433
"""
3534

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

3938
if credential is None:
4039
raise ValueError("Parameter 'credential' must not be None.")
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)