Skip to content

Commit 595fbde

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

File tree

221 files changed

+26812
-6430
lines changed

Some content is hidden

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

221 files changed

+26812
-6430
lines changed

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

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

3+
## 8.0.0 (2025-04-25)
4+
5+
### Features Added
6+
7+
- Added operation ArcSettingsOperations.begin_initialize_disable_process
8+
- Added operation ArcSettingsOperations.consent_and_install_default_extensions
9+
- Added operation ClustersOperations.begin_extend_software_assurance_benefit
10+
- Added operation ExtensionsOperations.begin_upgrade
11+
- Added operation group DeploymentSettingsOperations
12+
- Added operation group EdgeDevicesOperations
13+
- Added operation group GalleryImagesOperations
14+
- Added operation group GuestAgentOperations
15+
- Added operation group GuestAgentsOperations
16+
- Added operation group HybridIdentityMetadataOperations
17+
- Added operation group LogicalNetworksOperations
18+
- Added operation group MarketplaceGalleryImagesOperations
19+
- Added operation group NetworkInterfacesOperations
20+
- Added operation group OffersOperations
21+
- Added operation group PublishersOperations
22+
- Added operation group SecuritySettingsOperations
23+
- Added operation group SkusOperations
24+
- Added operation group StorageContainersOperations
25+
- Added operation group UpdateRunsOperations
26+
- Added operation group UpdateSummariesOperations
27+
- Added operation group UpdatesOperations
28+
- Added operation group VirtualHardDisksOperations
29+
- Added operation group VirtualMachineInstancesOperations
30+
- Model ArcConnectivityProperties has a new parameter service_configurations
31+
- Model ArcSetting has a new parameter default_extensions
32+
- Model ArcSetting has a new parameter system_data
33+
- Model Cluster has a new parameter connectivity_status
34+
- Model Cluster has a new parameter isolated_vm_attestation_configuration
35+
- Model Cluster has a new parameter principal_id
36+
- Model Cluster has a new parameter resource_provider_object_id
37+
- Model Cluster has a new parameter software_assurance_properties
38+
- Model Cluster has a new parameter system_data
39+
- Model Cluster has a new parameter tenant_id
40+
- Model Cluster has a new parameter type_identity_type
41+
- Model Cluster has a new parameter user_assigned_identities
42+
- Model ClusterNode has a new parameter ehc_resource_id
43+
- Model ClusterNode has a new parameter last_licensing_timestamp
44+
- Model ClusterNode has a new parameter node_type
45+
- Model ClusterNode has a new parameter oem_activation
46+
- Model ClusterNode has a new parameter os_display_version
47+
- Model ClusterPatch has a new parameter principal_id
48+
- Model ClusterPatch has a new parameter tenant_id
49+
- Model ClusterPatch has a new parameter type
50+
- Model ClusterPatch has a new parameter user_assigned_identities
51+
- Model ClusterReportedProperties has a new parameter cluster_type
52+
- Model ClusterReportedProperties has a new parameter manufacturer
53+
- Model ClusterReportedProperties has a new parameter oem_activation
54+
- Model ClusterReportedProperties has a new parameter supported_capabilities
55+
- Model Extension has a new parameter enable_automatic_upgrade
56+
- Model Extension has a new parameter managed_by
57+
- Model Extension has a new parameter system_data
58+
- Model PerNodeExtensionState has a new parameter instance_view
59+
- Model PerNodeExtensionState has a new parameter type_handler_version
60+
- Model PerNodeState has a new parameter arc_node_service_principal_object_id
61+
- Model ProxyResource has a new parameter system_data
62+
- Model Resource has a new parameter system_data
63+
- Model TrackedResource has a new parameter system_data
64+
65+
### Breaking Changes
66+
67+
- Model ArcSetting no longer has parameter created_at
68+
- Model ArcSetting no longer has parameter created_by
69+
- Model ArcSetting no longer has parameter created_by_type
70+
- Model ArcSetting no longer has parameter last_modified_at
71+
- Model ArcSetting no longer has parameter last_modified_by
72+
- Model ArcSetting no longer has parameter last_modified_by_type
73+
- Model Cluster no longer has parameter created_at
74+
- Model Cluster no longer has parameter created_by
75+
- Model Cluster no longer has parameter created_by_type
76+
- Model Cluster no longer has parameter last_modified_at
77+
- Model Cluster no longer has parameter last_modified_by
78+
- Model Cluster no longer has parameter last_modified_by_type
79+
- Model Extension no longer has parameter created_at
80+
- Model Extension no longer has parameter created_by
81+
- Model Extension no longer has parameter created_by_type
82+
- Model Extension no longer has parameter last_modified_at
83+
- Model Extension no longer has parameter last_modified_by
84+
- Model Extension no longer has parameter last_modified_by_type
85+
386
## 8.0.0b4 (2024-08-26)
487

588
### 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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "30d040e41a4cea0d31a6c7e56726ea2df17fdcc5",
2+
"commit": "dab0c1311176bc9ed796872fe182411ad4d94e3e",
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",
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.34.1 --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: 74 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,50 @@
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,
2527
EdgeDevicesOperations,
2628
ExtensionsOperations,
29+
GalleryImagesOperations,
30+
GuestAgentOperations,
31+
GuestAgentsOperations,
32+
HybridIdentityMetadataOperations,
33+
LogicalNetworksOperations,
34+
MarketplaceGalleryImagesOperations,
35+
NetworkInterfacesOperations,
2736
OffersOperations,
2837
Operations,
2938
PublishersOperations,
3039
SecuritySettingsOperations,
3140
SkusOperations,
41+
StorageContainersOperations,
3242
UpdateRunsOperations,
3343
UpdateSummariesOperations,
3444
UpdatesOperations,
45+
VirtualHardDisksOperations,
46+
VirtualMachineInstancesOperations,
3547
)
3648

3749
if TYPE_CHECKING:
38-
# pylint: disable=unused-import,ungrouped-imports
3950
from azure.core.credentials import TokenCredential
4051

4152

42-
class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
53+
class AzureStackHCIClient: # pylint: disable=too-many-instance-attributes
4354
"""Azure Stack HCI management service.
4455
4556
:ivar arc_settings: ArcSettingsOperations operations
@@ -52,6 +63,15 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
5263
:vartype edge_devices: azure.mgmt.azurestackhci.operations.EdgeDevicesOperations
5364
:ivar extensions: ExtensionsOperations operations
5465
:vartype extensions: azure.mgmt.azurestackhci.operations.ExtensionsOperations
66+
:ivar gallery_images: GalleryImagesOperations operations
67+
:vartype gallery_images: azure.mgmt.azurestackhci.operations.GalleryImagesOperations
68+
:ivar logical_networks: LogicalNetworksOperations operations
69+
:vartype logical_networks: azure.mgmt.azurestackhci.operations.LogicalNetworksOperations
70+
:ivar marketplace_gallery_images: MarketplaceGalleryImagesOperations operations
71+
:vartype marketplace_gallery_images:
72+
azure.mgmt.azurestackhci.operations.MarketplaceGalleryImagesOperations
73+
:ivar network_interfaces: NetworkInterfacesOperations operations
74+
:vartype network_interfaces: azure.mgmt.azurestackhci.operations.NetworkInterfacesOperations
5575
:ivar offers: OffersOperations operations
5676
:vartype offers: azure.mgmt.azurestackhci.operations.OffersOperations
5777
:ivar operations: Operations operations
@@ -62,35 +82,51 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
6282
:vartype security_settings: azure.mgmt.azurestackhci.operations.SecuritySettingsOperations
6383
:ivar skus: SkusOperations operations
6484
:vartype skus: azure.mgmt.azurestackhci.operations.SkusOperations
85+
:ivar storage_containers: StorageContainersOperations operations
86+
:vartype storage_containers: azure.mgmt.azurestackhci.operations.StorageContainersOperations
6587
:ivar update_runs: UpdateRunsOperations operations
6688
:vartype update_runs: azure.mgmt.azurestackhci.operations.UpdateRunsOperations
6789
:ivar update_summaries: UpdateSummariesOperations operations
6890
:vartype update_summaries: azure.mgmt.azurestackhci.operations.UpdateSummariesOperations
6991
:ivar updates: UpdatesOperations operations
7092
:vartype updates: azure.mgmt.azurestackhci.operations.UpdatesOperations
93+
:ivar virtual_hard_disks: VirtualHardDisksOperations operations
94+
:vartype virtual_hard_disks: azure.mgmt.azurestackhci.operations.VirtualHardDisksOperations
95+
:ivar virtual_machine_instances: VirtualMachineInstancesOperations operations
96+
:vartype virtual_machine_instances:
97+
azure.mgmt.azurestackhci.operations.VirtualMachineInstancesOperations
98+
:ivar hybrid_identity_metadata: HybridIdentityMetadataOperations operations
99+
:vartype hybrid_identity_metadata:
100+
azure.mgmt.azurestackhci.operations.HybridIdentityMetadataOperations
101+
:ivar guest_agent: GuestAgentOperations operations
102+
:vartype guest_agent: azure.mgmt.azurestackhci.operations.GuestAgentOperations
103+
:ivar guest_agents: GuestAgentsOperations operations
104+
:vartype guest_agents: azure.mgmt.azurestackhci.operations.GuestAgentsOperations
71105
:param credential: Credential needed for the client to connect to Azure. Required.
72106
:type credential: ~azure.core.credentials.TokenCredential
73-
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
107+
:param subscription_id: The ID of the target subscription. Required.
74108
:type subscription_id: str
75-
:param base_url: Service URL. Default value is "https://management.azure.com".
109+
:param base_url: Service URL. Default value is None.
76110
:type base_url: str
77-
:keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this
111+
:keyword api_version: Api Version. Default value is "2024-01-01". Note that overriding this
78112
default value may result in unsupported behavior.
79113
:paramtype api_version: str
80114
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
81115
Retry-After header is present.
82116
"""
83117

84118
def __init__(
85-
self,
86-
credential: "TokenCredential",
87-
subscription_id: str,
88-
base_url: str = "https://management.azure.com",
89-
**kwargs: Any
119+
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
90120
) -> None:
121+
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
122+
_endpoints = get_arm_endpoints(_cloud)
123+
if not base_url:
124+
base_url = _endpoints["resource_manager"]
125+
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
91126
self._config = AzureStackHCIClientConfiguration(
92-
credential=credential, subscription_id=subscription_id, **kwargs
127+
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
93128
)
129+
94130
_policies = kwargs.pop("policies", None)
95131
if _policies is None:
96132
_policies = [
@@ -109,7 +145,7 @@ def __init__(
109145
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
110146
self._config.http_logging_policy,
111147
]
112-
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
148+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs)
113149

114150
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
115151
self._serialize = Serializer(client_models)
@@ -122,18 +158,42 @@ def __init__(
122158
)
123159
self.edge_devices = EdgeDevicesOperations(self._client, self._config, self._serialize, self._deserialize)
124160
self.extensions = ExtensionsOperations(self._client, self._config, self._serialize, self._deserialize)
161+
self.gallery_images = GalleryImagesOperations(self._client, self._config, self._serialize, self._deserialize)
162+
self.logical_networks = LogicalNetworksOperations(
163+
self._client, self._config, self._serialize, self._deserialize
164+
)
165+
self.marketplace_gallery_images = MarketplaceGalleryImagesOperations(
166+
self._client, self._config, self._serialize, self._deserialize
167+
)
168+
self.network_interfaces = NetworkInterfacesOperations(
169+
self._client, self._config, self._serialize, self._deserialize
170+
)
125171
self.offers = OffersOperations(self._client, self._config, self._serialize, self._deserialize)
126172
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
127173
self.publishers = PublishersOperations(self._client, self._config, self._serialize, self._deserialize)
128174
self.security_settings = SecuritySettingsOperations(
129175
self._client, self._config, self._serialize, self._deserialize
130176
)
131177
self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize)
178+
self.storage_containers = StorageContainersOperations(
179+
self._client, self._config, self._serialize, self._deserialize
180+
)
132181
self.update_runs = UpdateRunsOperations(self._client, self._config, self._serialize, self._deserialize)
133182
self.update_summaries = UpdateSummariesOperations(
134183
self._client, self._config, self._serialize, self._deserialize
135184
)
136185
self.updates = UpdatesOperations(self._client, self._config, self._serialize, self._deserialize)
186+
self.virtual_hard_disks = VirtualHardDisksOperations(
187+
self._client, self._config, self._serialize, self._deserialize
188+
)
189+
self.virtual_machine_instances = VirtualMachineInstancesOperations(
190+
self._client, self._config, self._serialize, self._deserialize
191+
)
192+
self.hybrid_identity_metadata = HybridIdentityMetadataOperations(
193+
self._client, self._config, self._serialize, self._deserialize
194+
)
195+
self.guest_agent = GuestAgentOperations(self._client, self._config, self._serialize, self._deserialize)
196+
self.guest_agents = GuestAgentsOperations(self._client, self._config, self._serialize, self._deserialize)
137197

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