Microsoft Azure Media Services Client Library for Python - A management library for Azure Media Services that provides programmatic access to media processing and streaming capabilities in the cloud.
83
Quality
Pending
Does it follow best practices?
Impact
83%
1.09xAverage score across 10 eval scenarios
You are tasked with building a network security manager for Azure Media Services that helps administrators configure private connectivity and control public network access. The system should allow listing available private link resources, managing private endpoint connections, and reporting on the security configuration of Media Services accounts.
Build a Python application that provides the following functionality:
Private Link Resource Discovery: List all private link resources available for a given Media Services account, displaying the resource ID, name, type, and group ID for each resource.
Private Endpoint Connection Management:
Security Configuration Report: Generate a report that shows:
The application should accept command-line arguments to specify the subscription ID, resource group name, and account name, and should support different operation modes (e.g., "list-resources", "list-connections", "get-connection", "report").
security_manager.py that implements the core functionalityCreate a test file test_security_manager.py that includes the following test cases:
Input:
"sub-123""media-rg""testmediaaccount""list-resources"Expected Behavior: The function should call the appropriate API to list private link resources and return a list containing the resource information (ID, name, type, group ID).
Mock Setup: Mock the client to return 2 private link resources:
Input:
"sub-456""media-rg""securemedia""list-connections"Expected Behavior: The function should call the appropriate API to list private endpoint connections and return information about each connection including name and connection state.
Mock Setup: Mock the client to return 3 private endpoint connections:
Input:
"sub-789""prod-rg""prodmedia""report"Expected Behavior: The function should generate a comprehensive security report showing public network access status and private connectivity statistics.
Mock Setup: Mock the media services account with:
Provides management capabilities for Azure Media Services including private endpoint connections and private link resources.
Provides Azure Active Directory authentication support for accessing Azure services.
Install with Tessl CLI
npx tessl i tessl/pypi-azure-mgmt-mediadocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10