Skip to content

Commit 314949b

Browse files
author
SDKAuto
committed
CodeGen from PR 32848 in Azure/azure-rest-api-specs
Merge fcab5e399bc2d434f164b633d43d8e4572f4d381 into 78afda2a2c759dc0caa3a140a94021b322ca8f37
1 parent 08e7c8a commit 314949b

File tree

141 files changed

+5865
-1104
lines changed

Some content is hidden

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

141 files changed

+5865
-1104
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "30d040e41a4cea0d31a6c7e56726ea2df17fdcc5",
2+
"commit": "e42fc18409c38a46ca46666ab343c5f9a5eb68b1",
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)