Skip to content

Commit f3da306

Browse files
author
SDKAuto
committed
CodeGen from PR 33172 in Azure/azure-rest-api-specs
Merge 45e7877553bcf7f5cf3c86677170739e0127ca1b into e05316922122e792161f4e8c70f66ff8e791419c
1 parent 0a2ae72 commit f3da306

File tree

216 files changed

+26242
-5917
lines changed

Some content is hidden

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

216 files changed

+26242
-5917
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "30d040e41a4cea0d31a6c7e56726ea2df17fdcc5",
2+
"commit": "135b37122d8f966e69867442679691a939a2977c",
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",
10-
"readme": "specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/readme.md"
9+
"autorest_command": "autorest specification/azurestackhci/resource-manager/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",
10+
"readme": "specification/azurestackhci/resource-manager/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: 60 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,31 @@
2424
DeploymentSettingsOperations,
2525
EdgeDevicesOperations,
2626
ExtensionsOperations,
27+
GalleryImagesOperations,
28+
GuestAgentOperations,
29+
GuestAgentsOperations,
30+
HybridIdentityMetadataOperations,
31+
LogicalNetworksOperations,
32+
MarketplaceGalleryImagesOperations,
33+
NetworkInterfacesOperations,
2734
OffersOperations,
2835
Operations,
2936
PublishersOperations,
3037
SecuritySettingsOperations,
3138
SkusOperations,
39+
StorageContainersOperations,
3240
UpdateRunsOperations,
3341
UpdateSummariesOperations,
3442
UpdatesOperations,
43+
VirtualHardDisksOperations,
44+
VirtualMachineInstancesOperations,
3545
)
3646

3747
if TYPE_CHECKING:
38-
# pylint: disable=unused-import,ungrouped-imports
3948
from azure.core.credentials import TokenCredential
4049

4150

42-
class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
51+
class AzureStackHCIClient: # pylint: disable=too-many-instance-attributes
4352
"""Azure Stack HCI management service.
4453
4554
:ivar arc_settings: ArcSettingsOperations operations
@@ -52,6 +61,15 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
5261
:vartype edge_devices: azure.mgmt.azurestackhci.operations.EdgeDevicesOperations
5362
:ivar extensions: ExtensionsOperations operations
5463
:vartype extensions: azure.mgmt.azurestackhci.operations.ExtensionsOperations
64+
:ivar gallery_images: GalleryImagesOperations operations
65+
:vartype gallery_images: azure.mgmt.azurestackhci.operations.GalleryImagesOperations
66+
:ivar logical_networks: LogicalNetworksOperations operations
67+
:vartype logical_networks: azure.mgmt.azurestackhci.operations.LogicalNetworksOperations
68+
:ivar marketplace_gallery_images: MarketplaceGalleryImagesOperations operations
69+
:vartype marketplace_gallery_images:
70+
azure.mgmt.azurestackhci.operations.MarketplaceGalleryImagesOperations
71+
:ivar network_interfaces: NetworkInterfacesOperations operations
72+
:vartype network_interfaces: azure.mgmt.azurestackhci.operations.NetworkInterfacesOperations
5573
:ivar offers: OffersOperations operations
5674
:vartype offers: azure.mgmt.azurestackhci.operations.OffersOperations
5775
:ivar operations: Operations operations
@@ -62,19 +80,33 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
6280
:vartype security_settings: azure.mgmt.azurestackhci.operations.SecuritySettingsOperations
6381
:ivar skus: SkusOperations operations
6482
:vartype skus: azure.mgmt.azurestackhci.operations.SkusOperations
83+
:ivar storage_containers: StorageContainersOperations operations
84+
:vartype storage_containers: azure.mgmt.azurestackhci.operations.StorageContainersOperations
6585
:ivar update_runs: UpdateRunsOperations operations
6686
:vartype update_runs: azure.mgmt.azurestackhci.operations.UpdateRunsOperations
6787
:ivar update_summaries: UpdateSummariesOperations operations
6888
:vartype update_summaries: azure.mgmt.azurestackhci.operations.UpdateSummariesOperations
6989
:ivar updates: UpdatesOperations operations
7090
:vartype updates: azure.mgmt.azurestackhci.operations.UpdatesOperations
91+
:ivar virtual_hard_disks: VirtualHardDisksOperations operations
92+
:vartype virtual_hard_disks: azure.mgmt.azurestackhci.operations.VirtualHardDisksOperations
93+
:ivar virtual_machine_instances: VirtualMachineInstancesOperations operations
94+
:vartype virtual_machine_instances:
95+
azure.mgmt.azurestackhci.operations.VirtualMachineInstancesOperations
96+
:ivar hybrid_identity_metadata: HybridIdentityMetadataOperations operations
97+
:vartype hybrid_identity_metadata:
98+
azure.mgmt.azurestackhci.operations.HybridIdentityMetadataOperations
99+
:ivar guest_agent: GuestAgentOperations operations
100+
:vartype guest_agent: azure.mgmt.azurestackhci.operations.GuestAgentOperations
101+
:ivar guest_agents: GuestAgentsOperations operations
102+
:vartype guest_agents: azure.mgmt.azurestackhci.operations.GuestAgentsOperations
71103
:param credential: Credential needed for the client to connect to Azure. Required.
72104
:type credential: ~azure.core.credentials.TokenCredential
73-
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
105+
:param subscription_id: The ID of the target subscription. Required.
74106
:type subscription_id: str
75107
:param base_url: Service URL. Default value is "https://management.azure.com".
76108
:type base_url: str
77-
:keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this
109+
:keyword api_version: Api Version. Default value is "2024-01-01". Note that overriding this
78110
default value may result in unsupported behavior.
79111
:paramtype api_version: str
80112
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -122,18 +154,42 @@ def __init__(
122154
)
123155
self.edge_devices = EdgeDevicesOperations(self._client, self._config, self._serialize, self._deserialize)
124156
self.extensions = ExtensionsOperations(self._client, self._config, self._serialize, self._deserialize)
157+
self.gallery_images = GalleryImagesOperations(self._client, self._config, self._serialize, self._deserialize)
158+
self.logical_networks = LogicalNetworksOperations(
159+
self._client, self._config, self._serialize, self._deserialize
160+
)
161+
self.marketplace_gallery_images = MarketplaceGalleryImagesOperations(
162+
self._client, self._config, self._serialize, self._deserialize
163+
)
164+
self.network_interfaces = NetworkInterfacesOperations(
165+
self._client, self._config, self._serialize, self._deserialize
166+
)
125167
self.offers = OffersOperations(self._client, self._config, self._serialize, self._deserialize)
126168
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
127169
self.publishers = PublishersOperations(self._client, self._config, self._serialize, self._deserialize)
128170
self.security_settings = SecuritySettingsOperations(
129171
self._client, self._config, self._serialize, self._deserialize
130172
)
131173
self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize)
174+
self.storage_containers = StorageContainersOperations(
175+
self._client, self._config, self._serialize, self._deserialize
176+
)
132177
self.update_runs = UpdateRunsOperations(self._client, self._config, self._serialize, self._deserialize)
133178
self.update_summaries = UpdateSummariesOperations(
134179
self._client, self._config, self._serialize, self._deserialize
135180
)
136181
self.updates = UpdatesOperations(self._client, self._config, self._serialize, self._deserialize)
182+
self.virtual_hard_disks = VirtualHardDisksOperations(
183+
self._client, self._config, self._serialize, self._deserialize
184+
)
185+
self.virtual_machine_instances = VirtualMachineInstancesOperations(
186+
self._client, self._config, self._serialize, self._deserialize
187+
)
188+
self.hybrid_identity_metadata = HybridIdentityMetadataOperations(
189+
self._client, self._config, self._serialize, self._deserialize
190+
)
191+
self.guest_agent = GuestAgentOperations(self._client, self._config, self._serialize, self._deserialize)
192+
self.guest_agents = GuestAgentsOperations(self._client, self._config, self._serialize, self._deserialize)
137193

138194
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
139195
"""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,27 +14,26 @@
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
2524
attributes.
2625
2726
:param credential: Credential needed for the client to connect to Azure. Required.
2827
:type credential: ~azure.core.credentials.TokenCredential
29-
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
28+
:param subscription_id: The ID of the target subscription. Required.
3029
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this
30+
:keyword api_version: Api Version. Default value is "2024-01-01". Note that overriding this
3231
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", "2024-01-01")
3837

3938
if credential is None:
4039
raise ValueError("Parameter 'credential' must not be None.")

0 commit comments

Comments
 (0)