Skip to content

Commit 24e04b9

Browse files
author
SDKAuto
committed
CodeGen from PR 32848 in Azure/azure-rest-api-specs
Merge 7145930a1e57cc799ed86954b0bdadf616811df8 into 7c1e8a2c1e18ac0dd65b88f00447992ed86fcc0f
1 parent 957696b commit 24e04b9

File tree

143 files changed

+5939
-1105
lines changed

Some content is hidden

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

143 files changed

+5939
-1105
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-03-28)
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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": "a050fa0419263b6c6efa11793bbe41ae1e7694b0",
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.27.4",
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.27.4 --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: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
ArcSettingsOperations,
2323
ClustersOperations,
2424
DeploymentSettingsOperations,
25+
EdgeDeviceJobsOperations,
2526
EdgeDevicesOperations,
2627
ExtensionsOperations,
2728
OffersOperations,
@@ -32,14 +33,14 @@
3233
UpdateRunsOperations,
3334
UpdateSummariesOperations,
3435
UpdatesOperations,
36+
ValidatedSolutionRecipesOperations,
3537
)
3638

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

4142

42-
class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
43+
class AzureStackHCIClient: # pylint: disable=too-many-instance-attributes
4344
"""Azure Stack HCI management service.
4445
4546
:ivar arc_settings: ArcSettingsOperations operations
@@ -48,6 +49,8 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
4849
:vartype clusters: azure.mgmt.azurestackhci.operations.ClustersOperations
4950
:ivar deployment_settings: DeploymentSettingsOperations operations
5051
:vartype deployment_settings: azure.mgmt.azurestackhci.operations.DeploymentSettingsOperations
52+
:ivar edge_device_jobs: EdgeDeviceJobsOperations operations
53+
:vartype edge_device_jobs: azure.mgmt.azurestackhci.operations.EdgeDeviceJobsOperations
5154
:ivar edge_devices: EdgeDevicesOperations operations
5255
:vartype edge_devices: azure.mgmt.azurestackhci.operations.EdgeDevicesOperations
5356
:ivar extensions: ExtensionsOperations operations
@@ -64,18 +67,21 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
6467
:vartype skus: azure.mgmt.azurestackhci.operations.SkusOperations
6568
:ivar update_runs: UpdateRunsOperations operations
6669
:vartype update_runs: azure.mgmt.azurestackhci.operations.UpdateRunsOperations
67-
:ivar update_summaries: UpdateSummariesOperations operations
68-
:vartype update_summaries: azure.mgmt.azurestackhci.operations.UpdateSummariesOperations
6970
:ivar updates: UpdatesOperations operations
7071
:vartype updates: azure.mgmt.azurestackhci.operations.UpdatesOperations
72+
:ivar update_summaries: UpdateSummariesOperations operations
73+
:vartype update_summaries: azure.mgmt.azurestackhci.operations.UpdateSummariesOperations
74+
:ivar validated_solution_recipes: ValidatedSolutionRecipesOperations operations
75+
:vartype validated_solution_recipes:
76+
azure.mgmt.azurestackhci.operations.ValidatedSolutionRecipesOperations
7177
:param credential: Credential needed for the client to connect to Azure. Required.
7278
:type credential: ~azure.core.credentials.TokenCredential
7379
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
7480
:type subscription_id: str
7581
:param base_url: Service URL. Default value is "https://management.azure.com".
7682
: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.
83+
:keyword api_version: Api Version. Default value is "2025-02-01-preview". Note that overriding
84+
this default value may result in unsupported behavior.
7985
:paramtype api_version: str
8086
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
8187
Retry-After header is present.
@@ -120,6 +126,7 @@ def __init__(
120126
self.deployment_settings = DeploymentSettingsOperations(
121127
self._client, self._config, self._serialize, self._deserialize
122128
)
129+
self.edge_device_jobs = EdgeDeviceJobsOperations(self._client, self._config, self._serialize, self._deserialize)
123130
self.edge_devices = EdgeDevicesOperations(self._client, self._config, self._serialize, self._deserialize)
124131
self.extensions = ExtensionsOperations(self._client, self._config, self._serialize, self._deserialize)
125132
self.offers = OffersOperations(self._client, self._config, self._serialize, self._deserialize)
@@ -130,10 +137,13 @@ def __init__(
130137
)
131138
self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize)
132139
self.update_runs = UpdateRunsOperations(self._client, self._config, self._serialize, self._deserialize)
140+
self.updates = UpdatesOperations(self._client, self._config, self._serialize, self._deserialize)
133141
self.update_summaries = UpdateSummariesOperations(
134142
self._client, self._config, self._serialize, self._deserialize
135143
)
136-
self.updates = UpdatesOperations(self._client, self._config, self._serialize, self._deserialize)
144+
self.validated_solution_recipes = ValidatedSolutionRecipesOperations(
145+
self._client, self._config, self._serialize, self._deserialize
146+
)
137147

138148
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
139149
"""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.")

0 commit comments

Comments
 (0)