Skip to content

Commit 8252dbb

Browse files
author
Saksham Garg
committed
Update to latest Frontend API spec from develop branch
- Pulled latest spec from azure-cleanroom develop branch - Fixed ApplicationState empty enum value (AutoRest blocker) - Regenerated analytics_frontend_api SDK with updated method signatures - Applied Microsoft MIT License headers to all SDK files - Updated custom code for SDK method renames (5 functions) - Updated test mocks for new SDK methods (14 changes across 3 files) - Added comprehensive pylint suppressions for generated code SDK Method Changes (internal, transparent to CLI): - list → list_get - analytics_dataset_* → analytics_datasets_* (plural) - check_consent_document_id_get → consent_document_id_get - set_consent_document_id_put → consent_document_id_put Validation (all passed): - pytest: 37/37 tests passed - azdev style: PASSED - azdev linter: PASSED - test_index: PASSED - aaz folder: unchanged - wheel: built successfully (157K) Version: 1.0.0b3 (kept same as requested)
1 parent 22d5e5f commit 8252dbb

File tree

17 files changed

+332
-285
lines changed

17 files changed

+332
-285
lines changed

src/managedcleanroom/HISTORY.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ Release History
55

66
1.0.0b3
77
+++++++
8-
* Regenerated analytics_frontend_api SDK from V2026_03_01_Preview OpenAPI specification
8+
* Updated to latest Frontend API spec from develop branch (2026-03-01-preview)
9+
* Regenerated analytics_frontend_api SDK with updated method signatures
10+
* SDK Changes (internal, transparent to CLI users):
11+
- Method renames: collaboration.list → collaboration.list_get
12+
- Method renames: analytics_dataset_* → analytics_datasets_* (dataset → datasets, plural)
13+
- Method renames: check_consent_document_id_get → consent_document_id_get
14+
- Method renames: set_consent_document_id_put → consent_document_id_put
915
* BREAKING CHANGE: All frontend API endpoints now require api-version=2026-03-01-preview query parameter
1016
* Added: --api-version parameter to all frontend commands (default: 2026-03-01-preview)
1117
* Updated: SDK client now automatically injects api-version into all API requests

src/managedcleanroom/azext_managedcleanroom/_frontend_custom.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def frontend_collaboration_list(cmd, active_only=False, api_version=None):
2525
:return: List of collaboration objects with collaborationId, collaborationName, userStatus
2626
"""
2727
client = get_frontend_client(cmd, api_version=api_version)
28-
return client.collaboration.list(active_only=active_only)
28+
return client.collaboration.list_get(active_only=active_only)
2929

3030

3131
def frontend_collaboration_show(
@@ -222,7 +222,7 @@ def frontend_collaboration_dataset_show(
222222
:return: Dataset details
223223
"""
224224
client = get_frontend_client(cmd, api_version=api_version)
225-
return client.collaboration.analytics_dataset_document_id_get(
225+
return client.collaboration.analytics_datasets_document_id_get(
226226
collaboration_id, document_id)
227227

228228

@@ -244,7 +244,7 @@ def frontend_collaboration_dataset_publish(
244244
body = json.loads(body)
245245

246246
client = get_frontend_client(cmd, api_version=api_version)
247-
return client.collaboration.analytics_dataset_document_id_publish_post(
247+
return client.collaboration.analytics_datasets_document_id_publish_post(
248248
collaboration_id, document_id, body)
249249

250250

@@ -281,7 +281,7 @@ def frontend_collaboration_consent_check(
281281
:return: Consent status
282282
"""
283283
client = get_frontend_client(cmd, api_version=api_version)
284-
return client.collaboration.check_consent_document_id_get(
284+
return client.collaboration.consent_document_id_get(
285285
collaboration_id, document_id)
286286

287287

@@ -300,7 +300,7 @@ def frontend_collaboration_consent_set(
300300
"""
301301
body = {"consentAction": consent_action}
302302
client = get_frontend_client(cmd, api_version=api_version)
303-
return client.collaboration.set_consent_document_id_put(
303+
return client.collaboration.consent_document_id_put(
304304
collaboration_id, document_id, body=body
305305
)
306306

src/managedcleanroom/azext_managedcleanroom/analytics_frontend_api/__init__.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1-
# coding=utf-8
2-
# --------------------------------------------------------------------------
1+
# --------------------------------------------------------------------------------------------
32
# Copyright (c) Microsoft Corporation. All rights reserved.
43
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# --------------------------------------------------------------------------
6-
# pylint: disable=wrong-import-position
4+
#
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------------------------
8+
# pylint: disable=too-many-lines,too-many-statements,line-too-long,wrong-import-position
9+
# flake8: noqa
710

811
from typing import TYPE_CHECKING
912

1013
if TYPE_CHECKING:
11-
from ._patch import * # pylint: disable=unused-wildcard-import # noqa: F403
14+
from ._patch import * # pylint: disable=unused-wildcard-import
1215

1316
from ._client import AnalyticsFrontendAPI # type: ignore
1417

1518
try:
1619
from ._patch import __all__ as _patch_all
17-
from ._patch import * # noqa: F403
1820
except ImportError:
1921
_patch_all = []
2022
from ._patch import patch_sdk as _patch_sdk

src/managedcleanroom/azext_managedcleanroom/analytics_frontend_api/_client.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
# coding=utf-8
2-
# --------------------------------------------------------------------------
1+
# --------------------------------------------------------------------------------------------
32
# Copyright (c) Microsoft Corporation. All rights reserved.
43
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# --------------------------------------------------------------------------
4+
#
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------------------------
8+
# pylint: disable=too-many-lines,too-many-statements,line-too-long
9+
# flake8: noqa
610

711
from copy import deepcopy
812
from typing import Any

src/managedcleanroom/azext_managedcleanroom/analytics_frontend_api/_configuration.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
# coding=utf-8
2-
# --------------------------------------------------------------------------
1+
# --------------------------------------------------------------------------------------------
32
# Copyright (c) Microsoft Corporation. All rights reserved.
43
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# --------------------------------------------------------------------------
4+
#
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------------------------
8+
# pylint: disable=too-many-lines,too-many-statements,line-too-long,too-few-public-methods
9+
# flake8: noqa
610

711
from typing import Any
812

@@ -11,7 +15,7 @@
1115
VERSION = "unknown"
1216

1317

14-
class AnalyticsFrontendAPIConfiguration: # pylint: disable=too-many-instance-attributes,too-few-public-methods
18+
class AnalyticsFrontendAPIConfiguration: # pylint: disable=too-many-instance-attributes
1519
"""Configuration for AnalyticsFrontendAPI.
1620
1721
Note that all parameters used to create this instance are saved as instance
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# --------------------------------------------------------------------------
1+
# --------------------------------------------------------------------------------------------
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# Licensed under the MIT License. See License.txt in the project root for license information.
4-
# --------------------------------------------------------------------------
4+
#
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------------------------
8+
# pylint: disable=too-many-lines,too-many-statements,line-too-long
9+
# flake8: noqa

src/managedcleanroom/azext_managedcleanroom/analytics_frontend_api/_utils/serialization.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# pylint: disable=line-too-long,useless-suppression,too-many-lines
2-
# pylint: disable=protected-access,broad-exception-caught,multiple-statements
3-
# coding=utf-8
4-
# --------------------------------------------------------------------------
1+
# --------------------------------------------------------------------------------------------
52
# Copyright (c) Microsoft Corporation. All rights reserved.
63
# Licensed under the MIT License. See License.txt in the project root for license information.
7-
# --------------------------------------------------------------------------
8-
9-
# pyright: reportUnnecessaryTypeIgnoreComment=false
4+
#
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------------------------
8+
# pylint: disable=too-many-lines,too-many-statements,line-too-long,protected-access,broad-exception-caught,multiple-statements
9+
# flake8: noqa
1010

1111
from base64 import b64decode, b64encode
1212
import calendar
@@ -1787,12 +1787,11 @@ def deserialize_data(self, data, data_type): # pylint: disable=too-many-return-
17871787
tuple())):
17881788
return data
17891789

1790-
def is_a_text_parsing_type(x): # pylint: disable=unnecessary-lambda-assignment
1791-
return x not in [
1792-
"object",
1793-
"[]",
1794-
r"{}",
1795-
]
1790+
def is_a_text_parsing_type(x): return x not in [ # pylint: disable=unnecessary-lambda-assignment
1791+
"object",
1792+
"[]",
1793+
r"{}",
1794+
]
17961795
if isinstance(data, ET.Element) and is_a_text_parsing_type(
17971796
data_type) and not data.text:
17981797
return None

src/managedcleanroom/azext_managedcleanroom/analytics_frontend_api/aio/__init__.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
# coding=utf-8
2-
# --------------------------------------------------------------------------
1+
# --------------------------------------------------------------------------------------------
32
# Copyright (c) Microsoft Corporation. All rights reserved.
43
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# --------------------------------------------------------------------------
6-
# pylint: disable=wrong-import-position
4+
#
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------------------------
8+
# pylint: disable=too-many-lines,too-many-statements,line-too-long,wrong-import-position
9+
# flake8: noqa
710

811
from typing import TYPE_CHECKING
912

1013
if TYPE_CHECKING:
11-
from ._patch import * # pylint: disable=unused-wildcard-import # noqa: F403
14+
from ._patch import * # pylint: disable=unused-wildcard-import
1215

1316
from ._client import AnalyticsFrontendAPI # type: ignore
1417

src/managedcleanroom/azext_managedcleanroom/analytics_frontend_api/aio/_client.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
# coding=utf-8
2-
# --------------------------------------------------------------------------
1+
# --------------------------------------------------------------------------------------------
32
# Copyright (c) Microsoft Corporation. All rights reserved.
43
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# --------------------------------------------------------------------------
4+
#
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------------------------
8+
# pylint: disable=too-many-lines,too-many-statements,line-too-long
9+
# flake8: noqa
610

711
from copy import deepcopy
812
from typing import Any, Awaitable

src/managedcleanroom/azext_managedcleanroom/analytics_frontend_api/aio/_configuration.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
# coding=utf-8
2-
# --------------------------------------------------------------------------
1+
# --------------------------------------------------------------------------------------------
32
# Copyright (c) Microsoft Corporation. All rights reserved.
43
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# --------------------------------------------------------------------------
4+
#
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------------------------
8+
# pylint: disable=too-many-lines,too-many-statements,line-too-long,too-few-public-methods
9+
# flake8: noqa
610

711
from typing import Any
812

@@ -11,7 +15,7 @@
1115
VERSION = "unknown"
1216

1317

14-
class AnalyticsFrontendAPIConfiguration: # pylint: disable=too-many-instance-attributes,too-few-public-methods
18+
class AnalyticsFrontendAPIConfiguration: # pylint: disable=too-many-instance-attributes
1519
"""Configuration for AnalyticsFrontendAPI.
1620
1721
Note that all parameters used to create this instance are saved as instance

0 commit comments

Comments
 (0)