Skip to content

Commit fafb390

Browse files
author
Saksham Garg
committed
update cmdlets as per frontend spec changes + test fixes+ help
1 parent e40aaa7 commit fafb390

File tree

20 files changed

+2650
-2750
lines changed

20 files changed

+2650
-2750
lines changed

src/managedcleanroom/HISTORY.rst

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,39 @@
33
Release History
44
===============
55

6+
1.0.0b4
7+
+++++++
8+
* BREAKING CHANGE: Removed deprecated commands (APIs no longer supported in SDK):
9+
- `az managedcleanroom frontend workloads list`
10+
- `az managedcleanroom frontend analytics deploymentinfo`
11+
- `az managedcleanroom frontend attestation cgs`
12+
- `az managedcleanroom frontend analytics attestationreport cleanroom`
13+
- `az managedcleanroom frontend analytics query vote accept`
14+
- `az managedcleanroom frontend analytics query vote reject`
15+
* BREAKING CHANGE: Consent action values changed from 'accept/reject' to 'enable/disable'
16+
* BREAKING CHANGE: Vote commands consolidated into single unified endpoint
17+
* Added: `az managedcleanroom frontend report` - Comprehensive attestation report (replaces cgs/cleanroom commands)
18+
* Added: `az managedcleanroom frontend oidc set-issuer-url` - Configure OIDC issuer URL
19+
* Added: `az managedcleanroom frontend oidc keys` - Get OIDC signing keys (JWKS)
20+
* Added: `az managedcleanroom frontend analytics dataset queries` - List queries using a specific dataset
21+
* Added: `az managedcleanroom frontend analytics secret set` - Set analytics secrets
22+
* Added: `az managedcleanroom frontend analytics query vote` - Unified vote command with --vote-action parameter
23+
* Updated: Added --active-only filter to collaboration list and show commands
24+
* Updated: Added --pending-only filter to invitation list command
25+
* Updated: Added --scope, --from-seqno, --to-seqno filters to audit event list command
26+
* Updated: Response structures modernized (many list endpoints now return structured objects with value arrays)
27+
* Updated: Regenerated frontend SDK from OpenAPI spec to support new APIs
28+
29+
1.0.0b3
30+
+++++++
31+
* Regenerate analytics_frontend_api SDK from updated frontend.yaml OpenAPI spec
32+
* Remove empty enum value from ApplicationState schema
33+
634
1.0.0b1
7-
++++++
35+
+++++++
836
* Initial release.
937

1038
1.0.0b2
11-
++++++
39+
+++++++
1240
* Add frontend commandlets
1341
* Add MSAL device code flow authentication

src/managedcleanroom/azext_managedcleanroom/_frontend_commands.py

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,21 @@ def load_frontend_command_table(loader, _):
2626
# Show command at frontend level (requires --collaboration-id)
2727
with loader.command_group('managedcleanroom frontend', custom_command_type=frontend_custom) as g:
2828
g.custom_show_command('show', 'frontend_collaboration_show')
29-
30-
# Workloads commands
31-
with loader.command_group('managedcleanroom frontend workloads', custom_command_type=frontend_custom) as g:
32-
g.custom_command('list', 'frontend_collaboration_workloads_list')
29+
g.custom_show_command('report', 'frontend_collaboration_report_show')
3330

3431
# Analytics commands
3532
with loader.command_group('managedcleanroom frontend analytics', custom_command_type=frontend_custom) as g:
3633
g.custom_show_command('show', 'frontend_collaboration_analytics_show')
37-
g.custom_command(
38-
'deploymentinfo',
39-
'frontend_collaboration_analytics_deploymentinfo')
4034
g.custom_command(
4135
'cleanroompolicy',
4236
'frontend_collaboration_analytics_cleanroompolicy')
4337

4438
# OIDC commands
39+
with loader.command_group('managedcleanroom frontend oidc', custom_command_type=frontend_custom) as g:
40+
g.custom_command('set-issuer-url', 'frontend_collaboration_oidc_set_issuer_url')
41+
g.custom_show_command('keys', 'frontend_collaboration_oidc_keys_show')
42+
43+
# Keep issuerinfo for backwards compatibility
4544
with loader.command_group('managedcleanroom frontend oidc issuerinfo', custom_command_type=frontend_custom) as g:
4645
g.custom_show_command(
4746
'show', 'frontend_collaboration_oidc_issuerinfo_show')
@@ -57,6 +56,7 @@ def load_frontend_command_table(loader, _):
5756
g.custom_command('list', 'frontend_collaboration_dataset_list')
5857
g.custom_show_command('show', 'frontend_collaboration_dataset_show')
5958
g.custom_command('publish', 'frontend_collaboration_dataset_publish')
59+
g.custom_command('queries', 'frontend_collaboration_dataset_queries_list')
6060

6161
# Consent commands
6262
with loader.command_group('managedcleanroom frontend consent', custom_command_type=frontend_custom) as g:
@@ -69,13 +69,7 @@ def load_frontend_command_table(loader, _):
6969
g.custom_show_command('show', 'frontend_collaboration_query_show')
7070
g.custom_command('publish', 'frontend_collaboration_query_publish')
7171
g.custom_command('run', 'frontend_collaboration_query_run')
72-
73-
# Query vote commands
74-
with loader.command_group(
75-
'managedcleanroom frontend analytics query vote',
76-
custom_command_type=frontend_custom) as g:
77-
g.custom_command('accept', 'frontend_collaboration_query_vote_accept')
78-
g.custom_command('reject', 'frontend_collaboration_query_vote_reject')
72+
g.custom_command('vote', 'frontend_collaboration_query_vote')
7973

8074
# Query run history commands
8175
with loader.command_group(
@@ -97,16 +91,9 @@ def load_frontend_command_table(loader, _):
9791
custom_command_type=frontend_custom) as g:
9892
g.custom_command('list', 'frontend_collaboration_audit_list')
9993

100-
# Attestation commands
101-
with loader.command_group('managedcleanroom frontend attestation', custom_command_type=frontend_custom) as g:
102-
g.custom_command('cgs', 'frontend_collaboration_attestation_cgs')
103-
104-
with loader.command_group(
105-
'managedcleanroom frontend analytics attestationreport',
106-
custom_command_type=frontend_custom) as g:
107-
g.custom_command(
108-
'cleanroom',
109-
'frontend_collaboration_attestation_cleanroom')
94+
# Analytics secrets command
95+
with loader.command_group('managedcleanroom frontend analytics secret', custom_command_type=frontend_custom) as g:
96+
g.custom_command('set', 'frontend_collaboration_analytics_secret_set')
11097

11198
# Configuration and authentication commands
11299
with loader.command_group('managedcleanroom frontend', custom_command_type=frontend_custom) as g:

0 commit comments

Comments
 (0)