Skip to content

Commit 6104158

Browse files
author
SDKAuto
committed
CodeGen from PR 34594 in Azure/azure-rest-api-specs
Merge 6ca138d789c18702017258454aca412bfc4ce3c5 into c45e699554f6117525c2d1de4846968958f62ce5
1 parent 206fa48 commit 6104158

File tree

140 files changed

+1930
-1359
lines changed

Some content is hidden

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

140 files changed

+1930
-1359
lines changed

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

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Release History
22

3+
## 9.1.0b2 (2025-05-12)
4+
5+
### Features Added
6+
7+
- Model `GatewaySettings` added property `rest_auth_entra_users`
8+
- Model `UpdateGatewaySettingsParameters` added property `rest_auth_entra_users`
9+
- Added model `EntraUserInfo`
10+
311
## 9.1.0b1 (2024-09-10)
412

513
### Other Changes

sdk/hdinsight/azure-mgmt-hdinsight/README.md

+3-3
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 HDInsight 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.
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "1ad29756bd141a47cac770140105a706d065ae1b",
2+
"commit": "e808628b2ce3874e017891f8bc7db7cf9d20253b",
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/hdinsight/resource-manager/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/hdinsight/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",
1010
"readme": "specification/hdinsight/resource-manager/readme.md"
1111
}

sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/__init__.py

+9-3
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 ._hd_insight_management_client import HDInsightManagementClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._hd_insight_management_client import HDInsightManagementClient # 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
"HDInsightManagementClient",
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/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/_configuration.py

+3-4
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 HDInsightManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class HDInsightManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for HDInsightManagementClient.
2322
2423
Note that all parameters used to create this instance are saved as instance
@@ -29,13 +28,13 @@ class HDInsightManagementClientConfiguration: # pylint: disable=too-many-instan
2928
:param subscription_id: The subscription credentials which uniquely identify Microsoft Azure
3029
subscription. The subscription ID forms part of the URI for every service call. Required.
3130
:type subscription_id: str
32-
:keyword api_version: Api Version. Default value is "2024-08-01-preview". Note that overriding
31+
:keyword api_version: Api Version. Default value is "2025-01-15-preview". Note that overriding
3332
this default value may result in unsupported behavior.
3433
:paramtype api_version: str
3534
"""
3635

3736
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
38-
api_version: str = kwargs.pop("api_version", "2024-08-01-preview")
37+
api_version: str = kwargs.pop("api_version", "2025-01-15-preview")
3938

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

sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/_hd_insight_management_client.py

+16-13
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@
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 HDInsightManagementClientConfiguration
20-
from ._serialization import Deserializer, Serializer
22+
from ._utils.serialization import Deserializer, Serializer
2123
from .operations import (
2224
ApplicationsOperations,
2325
ClustersOperations,
@@ -33,11 +35,10 @@
3335
)
3436

3537
if TYPE_CHECKING:
36-
# pylint: disable=unused-import,ungrouped-imports
3738
from azure.core.credentials import TokenCredential
3839

3940

40-
class HDInsightManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
41+
class HDInsightManagementClient: # pylint: disable=too-many-instance-attributes
4142
"""HDInsight Management Client.
4243
4344
:ivar applications: ApplicationsOperations operations
@@ -69,25 +70,27 @@ class HDInsightManagementClient: # pylint: disable=client-accepts-api-version-k
6970
:param subscription_id: The subscription credentials which uniquely identify Microsoft Azure
7071
subscription. The subscription ID forms part of the URI for every service call. Required.
7172
:type subscription_id: str
72-
:param base_url: Service URL. Default value is "https://management.azure.com".
73+
:param base_url: Service URL. Default value is None.
7374
:type base_url: str
74-
:keyword api_version: Api Version. Default value is "2024-08-01-preview". Note that overriding
75+
:keyword api_version: Api Version. Default value is "2025-01-15-preview". Note that overriding
7576
this default value may result in unsupported behavior.
7677
:paramtype api_version: str
7778
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
7879
Retry-After header is present.
7980
"""
8081

8182
def __init__(
82-
self,
83-
credential: "TokenCredential",
84-
subscription_id: str,
85-
base_url: str = "https://management.azure.com",
86-
**kwargs: Any
83+
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
8784
) -> None:
85+
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
86+
_endpoints = get_arm_endpoints(_cloud)
87+
if not base_url:
88+
base_url = _endpoints["resource_manager"]
89+
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
8890
self._config = HDInsightManagementClientConfiguration(
89-
credential=credential, subscription_id=subscription_id, **kwargs
91+
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
9092
)
93+
9194
_policies = kwargs.pop("policies", None)
9295
if _policies is None:
9396
_policies = [
@@ -106,7 +109,7 @@ def __init__(
106109
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
107110
self._config.http_logging_policy,
108111
]
109-
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
112+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs)
110113

111114
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
112115
self._serialize = Serializer(client_models)
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)