pvw-cli 1.2.3__py3-none-any.whl → 1.2.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pvw-cli might be problematic. Click here for more details.
- purviewcli/__init__.py +1 -1
- purviewcli/cli/lineage.py +4 -1
- purviewcli/cli/types.py +333 -0
- purviewcli/cli/unified_catalog.py +1329 -9
- purviewcli/client/_entity.py +74 -17
- purviewcli/client/_lineage.py +206 -44
- purviewcli/client/_types.py +31 -0
- purviewcli/client/_unified_catalog.py +646 -30
- purviewcli/client/endpoints.py +75 -0
- {pvw_cli-1.2.3.dist-info → pvw_cli-1.2.5.dist-info}/METADATA +232 -75
- {pvw_cli-1.2.3.dist-info → pvw_cli-1.2.5.dist-info}/RECORD +14 -14
- {pvw_cli-1.2.3.dist-info → pvw_cli-1.2.5.dist-info}/WHEEL +0 -0
- {pvw_cli-1.2.3.dist-info → pvw_cli-1.2.5.dist-info}/entry_points.txt +0 -0
- {pvw_cli-1.2.3.dist-info → pvw_cli-1.2.5.dist-info}/top_level.txt +0 -0
purviewcli/client/endpoints.py
CHANGED
|
@@ -371,6 +371,80 @@ ENDPOINTS = {
|
|
|
371
371
|
# Share analytics
|
|
372
372
|
"get_share_analytics": "/sentShares/{sentShareId}/analytics",
|
|
373
373
|
},
|
|
374
|
+
# ==================== UNIFIED CATALOG API ENDPOINTS ====================
|
|
375
|
+
# Current: Using /datagovernance/catalog/* endpoints (Working as of Oct 2025)
|
|
376
|
+
# Future: Microsoft announced new Unified Catalog API (2024-03-01-preview)
|
|
377
|
+
# https://learn.microsoft.com/en-us/rest/api/purview/unified-catalog-api-overview
|
|
378
|
+
# TODO: Monitor and migrate to new UC API when documentation is complete
|
|
379
|
+
# New API will cover: OKRs, Domains, CDEs, Data Products, Terms, Policies
|
|
380
|
+
# Roadmap: Data Assets and Critical Data Columns support
|
|
381
|
+
"unified_catalog": {
|
|
382
|
+
# Business domains
|
|
383
|
+
"list_domains": "/datagovernance/catalog/businessdomains",
|
|
384
|
+
"create_domain": "/datagovernance/catalog/businessdomains",
|
|
385
|
+
"get_domain": "/datagovernance/catalog/businessdomains/{domainId}",
|
|
386
|
+
"update_domain": "/datagovernance/catalog/businessdomains/{domainId}",
|
|
387
|
+
"delete_domain": "/datagovernance/catalog/businessdomains/{domainId}",
|
|
388
|
+
# Data products
|
|
389
|
+
"list_data_products": "/datagovernance/catalog/dataproducts",
|
|
390
|
+
"create_data_product": "/datagovernance/catalog/dataproducts",
|
|
391
|
+
"get_data_product": "/datagovernance/catalog/dataproducts/{productId}",
|
|
392
|
+
"update_data_product": "/datagovernance/catalog/dataproducts/{productId}",
|
|
393
|
+
"delete_data_product": "/datagovernance/catalog/dataproducts/{productId}",
|
|
394
|
+
# Data product relationships
|
|
395
|
+
"create_data_product_relationship": "/datagovernance/catalog/dataproducts/{productId}/relationships",
|
|
396
|
+
"list_data_product_relationships": "/datagovernance/catalog/dataproducts/{productId}/relationships",
|
|
397
|
+
"delete_data_product_relationship": "/datagovernance/catalog/dataproducts/{productId}/relationships",
|
|
398
|
+
# Data product query
|
|
399
|
+
"query_data_products": "/datagovernance/catalog/dataproducts/query",
|
|
400
|
+
# Terms (UC specific)
|
|
401
|
+
"list_terms": "/datagovernance/catalog/terms",
|
|
402
|
+
"create_term": "/datagovernance/catalog/terms",
|
|
403
|
+
"get_term": "/datagovernance/catalog/terms/{termId}",
|
|
404
|
+
"update_term": "/datagovernance/catalog/terms/{termId}",
|
|
405
|
+
"delete_term": "/datagovernance/catalog/terms/{termId}",
|
|
406
|
+
# Terms query
|
|
407
|
+
"query_terms": "/datagovernance/catalog/terms/query",
|
|
408
|
+
# Objectives
|
|
409
|
+
"list_objectives": "/datagovernance/catalog/objectives",
|
|
410
|
+
"create_objective": "/datagovernance/catalog/objectives",
|
|
411
|
+
"get_objective": "/datagovernance/catalog/objectives/{objectiveId}",
|
|
412
|
+
"update_objective": "/datagovernance/catalog/objectives/{objectiveId}",
|
|
413
|
+
"delete_objective": "/datagovernance/catalog/objectives/{objectiveId}",
|
|
414
|
+
# Objectives query
|
|
415
|
+
"query_objectives": "/datagovernance/catalog/objectives/query",
|
|
416
|
+
# Critical Data Elements
|
|
417
|
+
"list_critical_data_elements": "/datagovernance/catalog/criticalDataElements",
|
|
418
|
+
"create_critical_data_element": "/datagovernance/catalog/criticalDataElements",
|
|
419
|
+
"get_critical_data_element": "/datagovernance/catalog/criticalDataElements/{cdeId}",
|
|
420
|
+
"update_critical_data_element": "/datagovernance/catalog/criticalDataElements/{cdeId}",
|
|
421
|
+
"delete_critical_data_element": "/datagovernance/catalog/criticalDataElements/{cdeId}",
|
|
422
|
+
# CDE relationships
|
|
423
|
+
"create_cde_relationship": "/datagovernance/catalog/criticalDataElements/{cdeId}/relationships",
|
|
424
|
+
"list_cde_relationships": "/datagovernance/catalog/criticalDataElements/{cdeId}/relationships",
|
|
425
|
+
"delete_cde_relationship": "/datagovernance/catalog/criticalDataElements/{cdeId}/relationships",
|
|
426
|
+
# CDE query
|
|
427
|
+
"query_critical_data_elements": "/datagovernance/catalog/criticalDataElements/query",
|
|
428
|
+
# Policies
|
|
429
|
+
"list_policies": "/datagovernance/catalog/policies",
|
|
430
|
+
"create_policy": "/datagovernance/catalog/policies",
|
|
431
|
+
"get_policy": "/datagovernance/catalog/policies/{policyId}",
|
|
432
|
+
"update_policy": "/datagovernance/catalog/policies/{policyId}",
|
|
433
|
+
"delete_policy": "/datagovernance/catalog/policies/{policyId}",
|
|
434
|
+
# Custom Metadata (Business Metadata via Atlas API)
|
|
435
|
+
# Note: Both /catalog/api and /datamap/api work, but /datamap/api is for new portal
|
|
436
|
+
"list_custom_metadata": "/datamap/api/atlas/v2/types/typedefs",
|
|
437
|
+
"get_custom_metadata": "/datamap/api/atlas/v2/entity/guid/{guid}",
|
|
438
|
+
"add_custom_metadata": "/datamap/api/atlas/v2/entity/guid/{guid}/businessmetadata",
|
|
439
|
+
"update_custom_metadata": "/datamap/api/atlas/v2/entity/guid/{guid}/businessmetadata",
|
|
440
|
+
"delete_custom_metadata": "/datamap/api/atlas/v2/entity/guid/{guid}/businessmetadata",
|
|
441
|
+
# Custom Attributes
|
|
442
|
+
"list_custom_attributes": "/datagovernance/catalog/attributes",
|
|
443
|
+
"create_custom_attribute": "/datagovernance/catalog/attributes",
|
|
444
|
+
"get_custom_attribute": "/datagovernance/catalog/attributes/{attributeId}",
|
|
445
|
+
"update_custom_attribute": "/datagovernance/catalog/attributes/{attributeId}",
|
|
446
|
+
"delete_custom_attribute": "/datagovernance/catalog/attributes/{attributeId}",
|
|
447
|
+
},
|
|
374
448
|
# ==================== AZURE RESOURCE MANAGER ENDPOINTS ====================
|
|
375
449
|
"management": {
|
|
376
450
|
# Azure Resource Manager endpoints for Purview accounts
|
|
@@ -467,6 +541,7 @@ def get_endpoint_category(endpoint_name: str) -> str:
|
|
|
467
541
|
"self_service_policies": "self_service_policies",
|
|
468
542
|
"sharing": "sharing",
|
|
469
543
|
"metadata_policies": "metadata_policies",
|
|
544
|
+
"unified_catalog": "datamap",
|
|
470
545
|
"management": "management",
|
|
471
546
|
}
|
|
472
547
|
|