Skip to content

Commit ef6245d

Browse files
author
SDKAuto
committed
CodeGen from PR 32848 in Azure/azure-rest-api-specs
Merge b839956e9dc15038c153d3042dfefb86c9010317 into c2462b79745a22cccf825973c64fa4c53ce29ceb
1 parent 684e761 commit ef6245d

File tree

135 files changed

+4613
-1093
lines changed

Some content is hidden

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

135 files changed

+4613
-1093
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": "9e468939401930005523d7ce3fcf71a28a85c8f2",
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: 10 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,
@@ -35,11 +36,10 @@
3536
)
3637

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

4141

42-
class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
42+
class AzureStackHCIClient: # pylint: disable=too-many-instance-attributes
4343
"""Azure Stack HCI management service.
4444
4545
:ivar arc_settings: ArcSettingsOperations operations
@@ -48,6 +48,8 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
4848
:vartype clusters: azure.mgmt.azurestackhci.operations.ClustersOperations
4949
:ivar deployment_settings: DeploymentSettingsOperations operations
5050
:vartype deployment_settings: azure.mgmt.azurestackhci.operations.DeploymentSettingsOperations
51+
:ivar edge_device_jobs: EdgeDeviceJobsOperations operations
52+
:vartype edge_device_jobs: azure.mgmt.azurestackhci.operations.EdgeDeviceJobsOperations
5153
:ivar edge_devices: EdgeDevicesOperations operations
5254
:vartype edge_devices: azure.mgmt.azurestackhci.operations.EdgeDevicesOperations
5355
:ivar extensions: ExtensionsOperations operations
@@ -64,18 +66,18 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
6466
:vartype skus: azure.mgmt.azurestackhci.operations.SkusOperations
6567
:ivar update_runs: UpdateRunsOperations operations
6668
:vartype update_runs: azure.mgmt.azurestackhci.operations.UpdateRunsOperations
67-
:ivar update_summaries: UpdateSummariesOperations operations
68-
:vartype update_summaries: azure.mgmt.azurestackhci.operations.UpdateSummariesOperations
6969
:ivar updates: UpdatesOperations operations
7070
:vartype updates: azure.mgmt.azurestackhci.operations.UpdatesOperations
71+
:ivar update_summaries: UpdateSummariesOperations operations
72+
:vartype update_summaries: azure.mgmt.azurestackhci.operations.UpdateSummariesOperations
7173
:param credential: Credential needed for the client to connect to Azure. Required.
7274
:type credential: ~azure.core.credentials.TokenCredential
7375
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
7476
:type subscription_id: str
7577
:param base_url: Service URL. Default value is "https://management.azure.com".
7678
: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.
79+
:keyword api_version: Api Version. Default value is "2025-02-01-preview". Note that overriding
80+
this default value may result in unsupported behavior.
7981
:paramtype api_version: str
8082
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
8183
Retry-After header is present.
@@ -120,6 +122,7 @@ def __init__(
120122
self.deployment_settings = DeploymentSettingsOperations(
121123
self._client, self._config, self._serialize, self._deserialize
122124
)
125+
self.edge_device_jobs = EdgeDeviceJobsOperations(self._client, self._config, self._serialize, self._deserialize)
123126
self.edge_devices = EdgeDevicesOperations(self._client, self._config, self._serialize, self._deserialize)
124127
self.extensions = ExtensionsOperations(self._client, self._config, self._serialize, self._deserialize)
125128
self.offers = OffersOperations(self._client, self._config, self._serialize, self._deserialize)
@@ -130,10 +133,10 @@ def __init__(
130133
)
131134
self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize)
132135
self.update_runs = UpdateRunsOperations(self._client, self._config, self._serialize, self._deserialize)
136+
self.updates = UpdatesOperations(self._client, self._config, self._serialize, self._deserialize)
133137
self.update_summaries = UpdateSummariesOperations(
134138
self._client, self._config, self._serialize, self._deserialize
135139
)
136-
self.updates = UpdatesOperations(self._client, self._config, self._serialize, self._deserialize)
137140

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