Skip to content

Commit

Permalink
tsp - add a testcase by leverage tsp of NetworkAnalytics.Management
Browse files Browse the repository at this point in the history
  • Loading branch information
dolauli committed Jan 14, 2025
1 parent b5ba717 commit d4bcab4
Show file tree
Hide file tree
Showing 507 changed files with 111,090 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import "./main.tsp";
import "@azure-tools/typespec-client-generator-core";

using Azure.ClientGenerator.Core;

@@clientName(Microsoft.NetworkAnalytics, "NetworkAnalyticsMgmt", "python");
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"title": "DataProductsCatalogs_Get_MaximumSet_Gen",
"operationId": "DataProductsCatalogs_Get",
"parameters": {
"api-version": "2023-11-15",
"subscriptionId": "00000000-0000-0000-0000-00000000000",
"resourceGroupName": "aoiresourceGroupName"
},
"responses": {
"200": {
"body": {
"properties": {
"provisioningState": "Succeeded",
"publishers": [
{
"publisherName": "Microsoft",
"dataProducts": [
{
"dataProductName": "MCC",
"description": "Official data product for Mobile Content Cloud.",
"dataProductVersions": [
{
"version": "1.0.0"
}
]
}
]
}
]
},
"id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/aoiresourceGroupName/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default",
"name": "default",
"type": "Microsoft.NetworkAnalytics/dataProductsCatalogs",
"systemData": {
"createdBy": "[email protected]",
"createdByType": "User",
"createdAt": "2023-09-04T08:26:27.1506343Z",
"lastModifiedBy": "[email protected]",
"lastModifiedByType": "User",
"lastModifiedAt": "2023-09-04T08:26:27.1506343Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"title": "DataProductsCatalogs_Get_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen",
"operationId": "DataProductsCatalogs_Get",
"parameters": {
"api-version": "2023-11-15",
"subscriptionId": "00000000-0000-0000-0000-00000000000",
"resourceGroupName": "aoiresourceGroupName"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/aoiresourceGroupName/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"title": "DataProductsCatalogs_ListByResourceGroup_MaximumSet_Gen",
"operationId": "DataProductsCatalogs_ListByResourceGroup",
"parameters": {
"api-version": "2023-11-15",
"subscriptionId": "00000000-0000-0000-0000-00000000000",
"resourceGroupName": "aoiresourceGroupName"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"provisioningState": "Succeeded",
"publishers": [
{
"publisherName": "Microsoft",
"dataProducts": [
{
"dataProductName": "MCC",
"description": "Official data product for Mobile Content Cloud.",
"dataProductVersions": [
{
"version": "1.0.0"
}
]
}
]
}
]
},
"id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/aoiresourceGroupName/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default",
"name": "default",
"type": "Microsoft.NetworkAnalytics/dataProductsCatalogs",
"systemData": {
"createdBy": "[email protected]",
"createdByType": "User",
"createdAt": "2023-09-04T08:26:27.1506343Z",
"lastModifiedBy": "[email protected]",
"lastModifiedByType": "User",
"lastModifiedAt": "2023-09-04T08:26:27.1506343Z"
}
}
],
"nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aoiresourceGroupName/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs?api-version=2023-11-15$skiptoken=aaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"title": "DataProductsCatalogs_ListByResourceGroup_MinimumSet_Gen",
"operationId": "DataProductsCatalogs_ListByResourceGroup",
"parameters": {
"api-version": "2023-11-15",
"subscriptionId": "00000000-0000-0000-0000-00000000000",
"resourceGroupName": "aoiresourceGroupName"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/aoiresourceGroupName/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"title": "DataProductsCatalogs_ListBySubscription_MaximumSet_Gen",
"operationId": "DataProductsCatalogs_ListBySubscription",
"parameters": {
"api-version": "2023-11-15",
"subscriptionId": "00000000-0000-0000-0000-00000000000"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"provisioningState": "Succeeded",
"publishers": [
{
"publisherName": "Microsoft",
"dataProducts": [
{
"dataProductName": "MCC",
"description": "Official data product for Mobile Content Cloud.",
"dataProductVersions": [
{
"version": "1.0.0"
}
]
}
]
}
]
},
"id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/aoiresourceGroupName/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default",
"name": "default",
"type": "Microsoft.NetworkAnalytics/dataProductsCatalogs",
"systemData": {
"createdBy": "[email protected]",
"createdByType": "User",
"createdAt": "2023-09-04T08:26:27.1506343Z",
"lastModifiedBy": "[email protected]",
"lastModifiedByType": "User",
"lastModifiedAt": "2023-09-04T08:26:27.1506343Z"
}
}
],
"nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs?api-version=2023-11-15$skiptoken=aaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"title": "DataProductsCatalogs_ListBySubscription_MinimumSet_Gen",
"operationId": "DataProductsCatalogs_ListBySubscription",
"parameters": {
"api-version": "2023-11-15",
"subscriptionId": "00000000-0000-0000-0000-00000000000"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/aoiresourceGroupName/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"title": "DataProducts_AddUserRole_MaximumSet_Gen",
"operationId": "DataProducts_AddUserRole",
"parameters": {
"api-version": "2023-11-15",
"subscriptionId": "00000000-0000-0000-0000-00000000000",
"resourceGroupName": "aoiresourceGroupName",
"dataProductName": "dataproduct01",
"body": {
"roleId": "00000000-0000-0000-0000-00000000000",
"principalId": "00000000-0000-0000-0000-00000000000",
"userName": "UserName",
"dataTypeScope": [
"scope"
],
"principalType": "User",
"role": "Reader"
}
},
"responses": {
"200": {
"body": {
"roleId": "00000000-0000-0000-0000-00000000000",
"principalId": "00000000-0000-0000-0000-00000000000",
"userName": "UserName",
"dataTypeScope": [
"scope"
],
"principalType": "User",
"role": "Reader",
"roleAssignmentId": "00000000-0000-0000-0000-00000000000"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"title": "DataProducts_AddUserRole_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen",
"operationId": "DataProducts_AddUserRole",
"parameters": {
"api-version": "2023-11-15",
"subscriptionId": "00000000-0000-0000-0000-00000000000",
"resourceGroupName": "aoiresourceGroupName",
"dataProductName": "dataproduct01",
"body": {
"roleId": "00000000-0000-0000-0000-00000000000",
"principalId": "00000000-0000-0000-0000-00000000000",
"userName": "userName",
"dataTypeScope": [
"scope"
],
"principalType": "User",
"role": "Reader"
}
},
"responses": {
"200": {
"body": {
"roleId": "00000000-0000-0000-0000-00000000000",
"principalId": "00000000-0000-0000-0000-00000000000",
"userName": "userName",
"dataTypeScope": [
"scope"
],
"principalType": "User",
"role": "Reader",
"roleAssignmentId": "00000000-0000-0000-0000-00000000000"
}
}
}
}
Loading

0 comments on commit d4bcab4

Please sign in to comment.