Skip to content

Commit 252b227

Browse files
azure-sdkChenxiJiang333msyyc
authored
[AutoRelease] t2-hdinsightcontainers-2024-08-16-34825(can only be merged by SDK owner) (#36920)
* code and test * update-testcase * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: Yuchao Yan <[email protected]>
1 parent fc5648d commit 252b227

File tree

108 files changed

+7579
-672
lines changed

Some content is hidden

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

108 files changed

+7579
-672
lines changed

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

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

3+
## 1.0.0b3 (2024-08-26)
4+
5+
### Features Added
6+
7+
- The 'HDInsightContainersMgmtClient' client had operation group 'cluster_pool_upgrade_histories' added in the current version
8+
- The 'HDInsightContainersMgmtClient' client had operation group 'cluster_upgrade_histories' added in the current version
9+
- The 'HDInsightContainersMgmtClient' client had operation group 'cluster_libraries' added in the current version
10+
- The 'ClustersOperations' method 'begin_upgrade_manual_rollback' was added in the current version
11+
- The model or publicly exposed class 'ClusterLibrariesOperations' was added in the current version
12+
- The model or publicly exposed class 'ClusterPoolUpgradeHistoriesOperations' was added in the current version
13+
- The model or publicly exposed class 'ClusterUpgradeHistoriesOperations' was added in the current version
14+
- The model or publicly exposed class 'ClusterAvailableUpgradeType' had property 'PATCH_VERSION_UPGRADE' added in the current version
15+
- The model or publicly exposed class 'ClusterPoolComputeProfile' had property 'availability_zones' added in the current version
16+
- The model or publicly exposed class 'ClusterPoolProfile' had property 'public_ip_tag' added in the current version
17+
- The model or publicly exposed class 'ClusterPoolResourcePropertiesClusterPoolProfile' had property 'public_ip_tag' added in the current version
18+
- The model or publicly exposed class 'ClusterPoolResourcePropertiesComputeProfile' had property 'availability_zones' added in the current version
19+
- The model or publicly exposed class 'ClusterProfile' had property 'managed_identity_profile' added in the current version
20+
- The model or publicly exposed class 'ClusterUpgradeType' had property 'PATCH_VERSION_UPGRADE' added in the current version
21+
- The model or publicly exposed class 'ComputeProfile' had property 'availability_zones' added in the current version
22+
- The model or publicly exposed class 'SshProfile' had property 'vm_size' added in the current version
23+
- The model or publicly exposed class 'UpdatableClusterProfile' had property 'secrets_profile' added in the current version
24+
- The model or publicly exposed class 'UpdatableClusterProfile' had property 'trino_profile' added in the current version
25+
- The model or publicly exposed class 'Category' was added in the current version
26+
- The model or publicly exposed class 'ClusterAksPatchUpgradeHistoryProperties' was added in the current version
27+
- The model or publicly exposed class 'ClusterAvailableInPlaceUpgradeProperties' was added in the current version
28+
- The model or publicly exposed class 'ClusterAvailableUpgradePatchVersionUpgradeProperties' was added in the current version
29+
- The model or publicly exposed class 'ClusterHotfixUpgradeHistoryProperties' was added in the current version
30+
- The model or publicly exposed class 'ClusterHotfixUpgradeRollbackHistoryProperties' was added in the current version
31+
- The model or publicly exposed class 'ClusterInPlaceUpgradeHistoryProperties' was added in the current version
32+
- The model or publicly exposed class 'ClusterInPlaceUpgradeProperties' was added in the current version
33+
- The model or publicly exposed class 'ClusterLibrary' was added in the current version
34+
- The model or publicly exposed class 'ClusterLibraryList' was added in the current version
35+
- The model or publicly exposed class 'ClusterLibraryManagementOperation' was added in the current version
36+
- The model or publicly exposed class 'ClusterLibraryManagementOperationProperties' was added in the current version
37+
- The model or publicly exposed class 'ClusterLibraryProperties' was added in the current version
38+
- The model or publicly exposed class 'ClusterPatchVersionUpgradeHistoryProperties' was added in the current version
39+
- The model or publicly exposed class 'ClusterPatchVersionUpgradeProperties' was added in the current version
40+
- The model or publicly exposed class 'ClusterPatchVersionUpgradeRollbackHistoryProperties' was added in the current version
41+
- The model or publicly exposed class 'ClusterPoolAksPatchUpgradeHistoryProperties' was added in the current version
42+
- The model or publicly exposed class 'ClusterPoolNodeOsUpgradeHistoryProperties' was added in the current version
43+
- The model or publicly exposed class 'ClusterPoolUpgradeHistory' was added in the current version
44+
- The model or publicly exposed class 'ClusterPoolUpgradeHistoryListResult' was added in the current version
45+
- The model or publicly exposed class 'ClusterPoolUpgradeHistoryProperties' was added in the current version
46+
- The model or publicly exposed class 'ClusterPoolUpgradeHistoryType' was added in the current version
47+
- The model or publicly exposed class 'ClusterPoolUpgradeHistoryUpgradeResultType' was added in the current version
48+
- The model or publicly exposed class 'ClusterUpgradeHistory' was added in the current version
49+
- The model or publicly exposed class 'ClusterUpgradeHistoryListResult' was added in the current version
50+
- The model or publicly exposed class 'ClusterUpgradeHistoryProperties' was added in the current version
51+
- The model or publicly exposed class 'ClusterUpgradeHistorySeverityType' was added in the current version
52+
- The model or publicly exposed class 'ClusterUpgradeHistoryType' was added in the current version
53+
- The model or publicly exposed class 'ClusterUpgradeHistoryUpgradeResultType' was added in the current version
54+
- The model or publicly exposed class 'ClusterUpgradeRollback' was added in the current version
55+
- The model or publicly exposed class 'ClusterUpgradeRollbackProperties' was added in the current version
56+
- The model or publicly exposed class 'IpTag' was added in the current version
57+
- The model or publicly exposed class 'LibraryManagementAction' was added in the current version
58+
- The model or publicly exposed class 'ManagedIdentityProfile' was added in the current version
59+
- The model or publicly exposed class 'ManagedIdentitySpec' was added in the current version
60+
- The model or publicly exposed class 'ManagedIdentityType' was added in the current version
61+
- The model or publicly exposed class 'MavenLibraryProperties' was added in the current version
62+
- The model or publicly exposed class 'PyPiLibraryProperties' was added in the current version
63+
- The model or publicly exposed class 'Status' was added in the current version
64+
- The model or publicly exposed class 'Type' was added in the current version
65+
66+
### Breaking Changes
67+
68+
- The model or publicly exposed class 'ClusterAvailableUpgradeHotfixUpgradeProperties' had its instance variable 'description' deleted or renamed in the current version
69+
- The model or publicly exposed class 'ClusterAvailableUpgradeHotfixUpgradeProperties' had its instance variable 'source_oss_version' deleted or renamed in the current version
70+
- The model or publicly exposed class 'ClusterAvailableUpgradeHotfixUpgradeProperties' had its instance variable 'source_cluster_version' deleted or renamed in the current version
71+
- The model or publicly exposed class 'ClusterAvailableUpgradeHotfixUpgradeProperties' had its instance variable 'source_build_number' deleted or renamed in the current version
72+
- The model or publicly exposed class 'ClusterAvailableUpgradeHotfixUpgradeProperties' had its instance variable 'target_oss_version' deleted or renamed in the current version
73+
- The model or publicly exposed class 'ClusterAvailableUpgradeHotfixUpgradeProperties' had its instance variable 'target_cluster_version' deleted or renamed in the current version
74+
- The model or publicly exposed class 'ClusterAvailableUpgradeHotfixUpgradeProperties' had its instance variable 'target_build_number' deleted or renamed in the current version
75+
- The model or publicly exposed class 'ClusterAvailableUpgradeHotfixUpgradeProperties' had its instance variable 'component_name' deleted or renamed in the current version
76+
- The model or publicly exposed class 'ClusterAvailableUpgradeHotfixUpgradeProperties' had its instance variable 'severity' deleted or renamed in the current version
77+
- The model or publicly exposed class 'ClusterAvailableUpgradeHotfixUpgradeProperties' had its instance variable 'extended_properties' deleted or renamed in the current version
78+
- The model or publicly exposed class 'ClusterAvailableUpgradeHotfixUpgradeProperties' had its instance variable 'created_time' deleted or renamed in the current version
79+
- The model or publicly exposed class 'ClusterHotfixUpgradeProperties' had its instance variable 'target_oss_version' deleted or renamed in the current version
80+
- The model or publicly exposed class 'ClusterHotfixUpgradeProperties' had its instance variable 'target_cluster_version' deleted or renamed in the current version
81+
- The model or publicly exposed class 'ClusterHotfixUpgradeProperties' had its instance variable 'target_build_number' deleted or renamed in the current version
82+
- The model or publicly exposed class 'ClusterHotfixUpgradeProperties' had its instance variable 'component_name' deleted or renamed in the current version
83+
- The model or publicly exposed class 'KafkaProfile' had its instance variable 'cluster_identity' deleted or renamed in the current version
84+
385
## 1.0.0b2 (2024-04-07)
486

587
### Features Added
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "92de53a5f1e0e03c94b40475d2135d97148ed014",
2+
"commit": "0219f9da9de5833fc380f57d6b026f68b5df6f93",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.7",
4+
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.13.7",
6+
"@autorest/python@6.17.0",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --tag=package-preview-2023-11 --use=@autorest/python@6.13.7 --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
9+
"autorest_command": "autorest specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/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.17.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.md"
1111
}

sdk/hdinsight/azure-mgmt-hdinsightcontainers/azure/mgmt/hdinsightcontainers/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ class HDInsightContainersMgmtClientConfiguration: # pylint: disable=too-many-in
2828
:type credential: ~azure.core.credentials.TokenCredential
2929
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3030
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2023-11-01-preview". Note that overriding
31+
:keyword api_version: Api Version. Default value is "2024-05-01-preview". Note that overriding
3232
this default value may result in unsupported behavior.
3333
:paramtype api_version: str
3434
"""
3535

3636
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2023-11-01-preview")
37+
api_version: str = kwargs.pop("api_version", "2024-05-01-preview")
3838

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

sdk/hdinsight/azure-mgmt-hdinsightcontainers/azure/mgmt/hdinsightcontainers/_hd_insight_containers_mgmt_client.py

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from copy import deepcopy
1010
from typing import Any, TYPE_CHECKING
11+
from typing_extensions import Self
1112

1213
from azure.core.pipeline import policies
1314
from azure.core.rest import HttpRequest, HttpResponse
@@ -22,8 +23,11 @@
2223
AvailableClusterVersionsOperations,
2324
ClusterAvailableUpgradesOperations,
2425
ClusterJobsOperations,
26+
ClusterLibrariesOperations,
2527
ClusterPoolAvailableUpgradesOperations,
28+
ClusterPoolUpgradeHistoriesOperations,
2629
ClusterPoolsOperations,
30+
ClusterUpgradeHistoriesOperations,
2731
ClustersOperations,
2832
LocationsOperations,
2933
Operations,
@@ -42,11 +46,17 @@ class HDInsightContainersMgmtClient: # pylint: disable=client-accepts-api-versi
4246
:ivar cluster_pool_available_upgrades: ClusterPoolAvailableUpgradesOperations operations
4347
:vartype cluster_pool_available_upgrades:
4448
azure.mgmt.hdinsightcontainers.operations.ClusterPoolAvailableUpgradesOperations
49+
:ivar cluster_pool_upgrade_histories: ClusterPoolUpgradeHistoriesOperations operations
50+
:vartype cluster_pool_upgrade_histories:
51+
azure.mgmt.hdinsightcontainers.operations.ClusterPoolUpgradeHistoriesOperations
4552
:ivar clusters: ClustersOperations operations
4653
:vartype clusters: azure.mgmt.hdinsightcontainers.operations.ClustersOperations
4754
:ivar cluster_available_upgrades: ClusterAvailableUpgradesOperations operations
4855
:vartype cluster_available_upgrades:
4956
azure.mgmt.hdinsightcontainers.operations.ClusterAvailableUpgradesOperations
57+
:ivar cluster_upgrade_histories: ClusterUpgradeHistoriesOperations operations
58+
:vartype cluster_upgrade_histories:
59+
azure.mgmt.hdinsightcontainers.operations.ClusterUpgradeHistoriesOperations
5060
:ivar cluster_jobs: ClusterJobsOperations operations
5161
:vartype cluster_jobs: azure.mgmt.hdinsightcontainers.operations.ClusterJobsOperations
5262
:ivar locations: LocationsOperations operations
@@ -59,13 +69,16 @@ class HDInsightContainersMgmtClient: # pylint: disable=client-accepts-api-versi
5969
:ivar available_cluster_versions: AvailableClusterVersionsOperations operations
6070
:vartype available_cluster_versions:
6171
azure.mgmt.hdinsightcontainers.operations.AvailableClusterVersionsOperations
72+
:ivar cluster_libraries: ClusterLibrariesOperations operations
73+
:vartype cluster_libraries:
74+
azure.mgmt.hdinsightcontainers.operations.ClusterLibrariesOperations
6275
:param credential: Credential needed for the client to connect to Azure. Required.
6376
:type credential: ~azure.core.credentials.TokenCredential
6477
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
6578
:type subscription_id: str
6679
:param base_url: Service URL. Default value is "https://management.azure.com".
6780
:type base_url: str
68-
:keyword api_version: Api Version. Default value is "2023-11-01-preview". Note that overriding
81+
:keyword api_version: Api Version. Default value is "2024-05-01-preview". Note that overriding
6982
this default value may result in unsupported behavior.
7083
:paramtype api_version: str
7184
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -110,10 +123,16 @@ def __init__(
110123
self.cluster_pool_available_upgrades = ClusterPoolAvailableUpgradesOperations(
111124
self._client, self._config, self._serialize, self._deserialize
112125
)
126+
self.cluster_pool_upgrade_histories = ClusterPoolUpgradeHistoriesOperations(
127+
self._client, self._config, self._serialize, self._deserialize
128+
)
113129
self.clusters = ClustersOperations(self._client, self._config, self._serialize, self._deserialize)
114130
self.cluster_available_upgrades = ClusterAvailableUpgradesOperations(
115131
self._client, self._config, self._serialize, self._deserialize
116132
)
133+
self.cluster_upgrade_histories = ClusterUpgradeHistoriesOperations(
134+
self._client, self._config, self._serialize, self._deserialize
135+
)
117136
self.cluster_jobs = ClusterJobsOperations(self._client, self._config, self._serialize, self._deserialize)
118137
self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize)
119138
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
@@ -123,6 +142,9 @@ def __init__(
123142
self.available_cluster_versions = AvailableClusterVersionsOperations(
124143
self._client, self._config, self._serialize, self._deserialize
125144
)
145+
self.cluster_libraries = ClusterLibrariesOperations(
146+
self._client, self._config, self._serialize, self._deserialize
147+
)
126148

127149
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
128150
"""Runs the network request through the client's chained policies.
@@ -149,7 +171,7 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
149171
def close(self) -> None:
150172
self._client.close()
151173

152-
def __enter__(self) -> "HDInsightContainersMgmtClient":
174+
def __enter__(self) -> Self:
153175
self._client.__enter__()
154176
return self
155177

sdk/hdinsight/azure-mgmt-hdinsightcontainers/azure/mgmt/hdinsightcontainers/_serialization.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ def _json_attemp(data):
144144
# context otherwise.
145145
_LOGGER.critical("Wasn't XML not JSON, failing")
146146
raise DeserializationError("XML is invalid") from err
147+
elif content_type.startswith("text/"):
148+
return data_as_str
147149
raise DeserializationError("Cannot deserialize content-type: {}".format(content_type))
148150

149151
@classmethod
@@ -1441,7 +1443,7 @@ def _deserialize(self, target_obj, data):
14411443
elif isinstance(response, type) and issubclass(response, Enum):
14421444
return self.deserialize_enum(data, response)
14431445

1444-
if data is None:
1446+
if data is None or data is CoreNull:
14451447
return data
14461448
try:
14471449
attributes = response._attribute_map # type: ignore

sdk/hdinsight/azure-mgmt-hdinsightcontainers/azure/mgmt/hdinsightcontainers/_vendor.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

sdk/hdinsight/azure-mgmt-hdinsightcontainers/azure/mgmt/hdinsightcontainers/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0b2"
9+
VERSION = "1.0.0b3"

sdk/hdinsight/azure-mgmt-hdinsightcontainers/azure/mgmt/hdinsightcontainers/aio/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ class HDInsightContainersMgmtClientConfiguration: # pylint: disable=too-many-in
2828
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
2929
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3030
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2023-11-01-preview". Note that overriding
31+
:keyword api_version: Api Version. Default value is "2024-05-01-preview". Note that overriding
3232
this default value may result in unsupported behavior.
3333
:paramtype api_version: str
3434
"""
3535

3636
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2023-11-01-preview")
37+
api_version: str = kwargs.pop("api_version", "2024-05-01-preview")
3838

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

0 commit comments

Comments
 (0)