Skip to content

Commit 313b67d

Browse files
[AutoRelease] t2-containerservice-2024-09-02-40998(can only be merged by SDK owner) (Azure#37172)
* code and test * update-testcases * Update CHANGELOG.md * Update test_mgmt_aks.py --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 2e9481e commit 313b67d

File tree

1,033 files changed

+109704
-12838
lines changed

Some content is hidden

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

1,033 files changed

+109704
-12838
lines changed

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

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

3+
## 32.0.0 (2024-09-12)
4+
5+
### Features Added
6+
7+
- Added operation AgentPoolsOperations.begin_delete_machines
8+
- Model AdvancedNetworking has a new parameter security
9+
- Model AdvancedNetworkingObservability has a new parameter tls_management
10+
- Model AgentPool has a new parameter security_profile
11+
- Model ManagedClusterAgentPoolProfile has a new parameter security_profile
12+
- Model ManagedClusterAgentPoolProfileProperties has a new parameter security_profile
13+
14+
### Breaking Changes
15+
16+
- Model AgentPoolSecurityProfile no longer has parameter ssh_access
17+
318
## 31.0.0 (2024-07-18)
419

520
### Features Added

sdk/containerservice/azure-mgmt-containerservice/_meta.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"commit": "abd5157cf12219dcd693b6d8edd5334281110af5",
2+
"commit": "e79d9ef3e065f2dcb6bd1db51e29c62a99dff5cb",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.15.0",
6+
"@autorest/python@6.19.0",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/containerservice/resource-manager/Microsoft.ContainerService/aks/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.15.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/containerservice/resource-manager/Microsoft.ContainerService/aks/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",
1010
"readme": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md",
1111
"package-2024-05": "2024-07-10 04:37:35 +0800 794e29ee5f8eca63ce0ddf007c60da7df37baaad stable/2024-05-01/managedClusters.json",
12-
"package-preview-2024-04": "2024-06-21 12:06:23 +0800 7cc354fc7e405ea867e434deca8c79801beadc4a preview/2024-04-02-preview/managedClusters.json",
12+
"package-preview-2024-04": "2024-08-27 19:55:39 -0700 4bc9b37173bd5fe0ed19f21edfb8a195e89caaf6 preview/2024-04-02-preview/managedClusters.json",
1313
"package-preview-2024-03": "2024-06-09 11:57:40 -0400 c2f037e49f15654488a8cd67b9154c76611b7229 preview/2024-03-02-preview/managedClusters.json",
1414
"package-2024-02": "2024-03-25 11:19:05 +0800 c9216e204f4e4c7a61af263f387ddad028a173aa stable/2024-02-01/managedClusters.json",
1515
"package-preview-2024-02": "2024-03-27 16:39:21 +0800 8429152fd329f40b2b77e51d6c74921dd12af122 preview/2024-02-02-preview/managedClusters.json",
@@ -86,5 +86,8 @@
8686
"package-2018-08-preview-only": "2023-02-15 15:17:59 +0800 67527326606bd3c71700e2b96ff3c9ce9e655e29 preview/2018-08-01-preview/managedClusters.json",
8787
"package-2018-03-only": "2023-02-15 15:17:59 +0800 67527326606bd3c71700e2b96ff3c9ce9e655e29 stable/2018-03-31/managedClusters.json",
8888
"package-2019-09-preview-only": "2023-02-15 15:17:59 +0800 67527326606bd3c71700e2b96ff3c9ce9e655e29 preview/2019-09-30/openShiftManagedClusters.json",
89-
"package-2017-07": "2023-02-15 15:17:59 +0800 67527326606bd3c71700e2b96ff3c9ce9e655e29 stable/2017-07-01/containerService.json"
89+
"package-2017-07": "2023-02-15 15:17:59 +0800 67527326606bd3c71700e2b96ff3c9ce9e655e29 stable/2017-07-01/containerService.json",
90+
"package-2024-07": "2024-08-31 00:06:43 +0800 d6be8f199982997f0a94e3e9bbbe8b2f7e304f7d stable/2024-07-01/managedClusters.json",
91+
"package-preview-2024-06": "2024-08-27 19:55:39 -0700 4bc9b37173bd5fe0ed19f21edfb8a195e89caaf6 preview/2024-06-02-preview/managedClusters.json",
92+
"package-preview-2024-05": "2024-08-27 19:55:39 -0700 4bc9b37173bd5fe0ed19f21edfb8a195e89caaf6 preview/2024-05-02-preview/managedClusters.json"
9093
}

sdk/containerservice/azure-mgmt-containerservice/assets.json

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

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/_container_service_client.py

Lines changed: 133 additions & 5 deletions
Large diffs are not rendered by default.

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "31.0.0"
8+
VERSION = "32.0.0"

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/aio/_container_service_client.py

Lines changed: 133 additions & 5 deletions
Large diffs are not rendered by default.

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
from .v2019_04_01.models import *
88
from .v2019_04_30.models import *
99
from .v2022_09_02_preview.models import *
10-
from .v2024_04_02_preview.models import *
11-
from .v2024_05_01.models import *
10+
from .v2024_06_02_preview.models import *
11+
from .v2024_07_01.models import *

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/_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 = "31.0.0"
9+
VERSION = "32.0.0"

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/aio/operations/_container_services_operations.py

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
ResourceExistsError,
1919
ResourceNotFoundError,
2020
ResourceNotModifiedError,
21+
StreamClosedError,
22+
StreamConsumedError,
2123
map_error,
2224
)
2325
from azure.core.pipeline import PipelineResponse
@@ -188,6 +190,7 @@ async def _create_or_update_initial(
188190
)
189191
_request.url = self._client.format_url(_request.url)
190192

193+
_decompress = kwargs.pop("decompress", True)
191194
_stream = True
192195
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
193196
_request, stream=_stream, **kwargs
@@ -196,18 +199,14 @@ async def _create_or_update_initial(
196199
response = pipeline_response.http_response
197200

198201
if response.status_code not in [200, 201, 202]:
199-
await response.read() # Load the body in memory and close the socket
202+
try:
203+
await response.read() # Load the body in memory and close the socket
204+
except (StreamConsumedError, StreamClosedError):
205+
pass
200206
map_error(status_code=response.status_code, response=response, error_map=error_map)
201207
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
202208

203-
if response.status_code == 200:
204-
deserialized = response.stream_download(self._client._pipeline)
205-
206-
if response.status_code == 201:
207-
deserialized = response.stream_download(self._client._pipeline)
208-
209-
if response.status_code == 202:
210-
deserialized = response.stream_download(self._client._pipeline)
209+
deserialized = response.stream_download(self._client._pipeline, decompress=_decompress)
211210

212211
if cls:
213212
return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -442,6 +441,7 @@ async def _delete_initial(
442441
)
443442
_request.url = self._client.format_url(_request.url)
444443

444+
_decompress = kwargs.pop("decompress", True)
445445
_stream = True
446446
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
447447
_request, stream=_stream, **kwargs
@@ -450,15 +450,14 @@ async def _delete_initial(
450450
response = pipeline_response.http_response
451451

452452
if response.status_code not in [202, 204]:
453-
await response.read() # Load the body in memory and close the socket
453+
try:
454+
await response.read() # Load the body in memory and close the socket
455+
except (StreamConsumedError, StreamClosedError):
456+
pass
454457
map_error(status_code=response.status_code, response=response, error_map=error_map)
455458
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
456459

457-
if response.status_code == 202:
458-
deserialized = response.stream_download(self._client._pipeline)
459-
460-
if response.status_code == 204:
461-
deserialized = response.stream_download(self._client._pipeline)
460+
deserialized = response.stream_download(self._client._pipeline, decompress=_decompress)
462461

463462
if cls:
464463
return cls(pipeline_response, deserialized, {}) # type: ignore

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/operations/_container_services_operations.py

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
ResourceExistsError,
1818
ResourceNotFoundError,
1919
ResourceNotModifiedError,
20+
StreamClosedError,
21+
StreamConsumedError,
2022
map_error,
2123
)
2224
from azure.core.paging import ItemPaged
@@ -328,6 +330,7 @@ def _create_or_update_initial(
328330
)
329331
_request.url = self._client.format_url(_request.url)
330332

333+
_decompress = kwargs.pop("decompress", True)
331334
_stream = True
332335
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
333336
_request, stream=_stream, **kwargs
@@ -336,18 +339,14 @@ def _create_or_update_initial(
336339
response = pipeline_response.http_response
337340

338341
if response.status_code not in [200, 201, 202]:
339-
response.read() # Load the body in memory and close the socket
342+
try:
343+
response.read() # Load the body in memory and close the socket
344+
except (StreamConsumedError, StreamClosedError):
345+
pass
340346
map_error(status_code=response.status_code, response=response, error_map=error_map)
341347
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
342348

343-
if response.status_code == 200:
344-
deserialized = response.stream_download(self._client._pipeline)
345-
346-
if response.status_code == 201:
347-
deserialized = response.stream_download(self._client._pipeline)
348-
349-
if response.status_code == 202:
350-
deserialized = response.stream_download(self._client._pipeline)
349+
deserialized = response.stream_download(self._client._pipeline, decompress=_decompress)
351350

352351
if cls:
353352
return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -578,6 +577,7 @@ def _delete_initial(self, resource_group_name: str, container_service_name: str,
578577
)
579578
_request.url = self._client.format_url(_request.url)
580579

580+
_decompress = kwargs.pop("decompress", True)
581581
_stream = True
582582
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
583583
_request, stream=_stream, **kwargs
@@ -586,15 +586,14 @@ def _delete_initial(self, resource_group_name: str, container_service_name: str,
586586
response = pipeline_response.http_response
587587

588588
if response.status_code not in [202, 204]:
589-
response.read() # Load the body in memory and close the socket
589+
try:
590+
response.read() # Load the body in memory and close the socket
591+
except (StreamConsumedError, StreamClosedError):
592+
pass
590593
map_error(status_code=response.status_code, response=response, error_map=error_map)
591594
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
592595

593-
if response.status_code == 202:
594-
deserialized = response.stream_download(self._client._pipeline)
595-
596-
if response.status_code == 204:
597-
deserialized = response.stream_download(self._client._pipeline)
596+
deserialized = response.stream_download(self._client._pipeline, decompress=_decompress)
598597

599598
if cls:
600599
return cls(pipeline_response, deserialized, {}) # type: ignore

0 commit comments

Comments
 (0)