Skip to content

Commit eab2446

Browse files
committed
tsp - add a testcase by leverage tsp of NetworkAnalytics.Management
1 parent b5ba717 commit eab2446

File tree

507 files changed

+111093
-10
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

507 files changed

+111093
-10
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import "./main.tsp";
2+
import "@azure-tools/typespec-client-generator-core";
3+
4+
using Azure.ClientGenerator.Core;
5+
6+
@@clientName(Microsoft.NetworkAnalytics, "NetworkAnalyticsMgmt", "python");
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"title": "DataProductsCatalogs_Get_MaximumSet_Gen",
3+
"operationId": "DataProductsCatalogs_Get",
4+
"parameters": {
5+
"api-version": "2023-11-15",
6+
"subscriptionId": "00000000-0000-0000-0000-00000000000",
7+
"resourceGroupName": "aoiresourceGroupName"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"properties": {
13+
"provisioningState": "Succeeded",
14+
"publishers": [
15+
{
16+
"publisherName": "Microsoft",
17+
"dataProducts": [
18+
{
19+
"dataProductName": "MCC",
20+
"description": "Official data product for Mobile Content Cloud.",
21+
"dataProductVersions": [
22+
{
23+
"version": "1.0.0"
24+
}
25+
]
26+
}
27+
]
28+
}
29+
]
30+
},
31+
"id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/aoiresourceGroupName/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default",
32+
"name": "default",
33+
"type": "Microsoft.NetworkAnalytics/dataProductsCatalogs",
34+
"systemData": {
35+
"createdBy": "[email protected]",
36+
"createdByType": "User",
37+
"createdAt": "2023-09-04T08:26:27.1506343Z",
38+
"lastModifiedBy": "[email protected]",
39+
"lastModifiedByType": "User",
40+
"lastModifiedAt": "2023-09-04T08:26:27.1506343Z"
41+
}
42+
}
43+
}
44+
}
45+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"title": "DataProductsCatalogs_Get_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen",
3+
"operationId": "DataProductsCatalogs_Get",
4+
"parameters": {
5+
"api-version": "2023-11-15",
6+
"subscriptionId": "00000000-0000-0000-0000-00000000000",
7+
"resourceGroupName": "aoiresourceGroupName"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/aoiresourceGroupName/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default"
13+
}
14+
}
15+
}
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"title": "DataProductsCatalogs_ListByResourceGroup_MaximumSet_Gen",
3+
"operationId": "DataProductsCatalogs_ListByResourceGroup",
4+
"parameters": {
5+
"api-version": "2023-11-15",
6+
"subscriptionId": "00000000-0000-0000-0000-00000000000",
7+
"resourceGroupName": "aoiresourceGroupName"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"value": [
13+
{
14+
"properties": {
15+
"provisioningState": "Succeeded",
16+
"publishers": [
17+
{
18+
"publisherName": "Microsoft",
19+
"dataProducts": [
20+
{
21+
"dataProductName": "MCC",
22+
"description": "Official data product for Mobile Content Cloud.",
23+
"dataProductVersions": [
24+
{
25+
"version": "1.0.0"
26+
}
27+
]
28+
}
29+
]
30+
}
31+
]
32+
},
33+
"id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/aoiresourceGroupName/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default",
34+
"name": "default",
35+
"type": "Microsoft.NetworkAnalytics/dataProductsCatalogs",
36+
"systemData": {
37+
"createdBy": "[email protected]",
38+
"createdByType": "User",
39+
"createdAt": "2023-09-04T08:26:27.1506343Z",
40+
"lastModifiedBy": "[email protected]",
41+
"lastModifiedByType": "User",
42+
"lastModifiedAt": "2023-09-04T08:26:27.1506343Z"
43+
}
44+
}
45+
],
46+
"nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aoiresourceGroupName/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs?api-version=2023-11-15$skiptoken=aaaaaaaaaaaaaaaaaaaaaaaaaaaa"
47+
}
48+
}
49+
}
50+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"title": "DataProductsCatalogs_ListByResourceGroup_MinimumSet_Gen",
3+
"operationId": "DataProductsCatalogs_ListByResourceGroup",
4+
"parameters": {
5+
"api-version": "2023-11-15",
6+
"subscriptionId": "00000000-0000-0000-0000-00000000000",
7+
"resourceGroupName": "aoiresourceGroupName"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"value": [
13+
{
14+
"id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/aoiresourceGroupName/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default"
15+
}
16+
]
17+
}
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"title": "DataProductsCatalogs_ListBySubscription_MaximumSet_Gen",
3+
"operationId": "DataProductsCatalogs_ListBySubscription",
4+
"parameters": {
5+
"api-version": "2023-11-15",
6+
"subscriptionId": "00000000-0000-0000-0000-00000000000"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"properties": {
14+
"provisioningState": "Succeeded",
15+
"publishers": [
16+
{
17+
"publisherName": "Microsoft",
18+
"dataProducts": [
19+
{
20+
"dataProductName": "MCC",
21+
"description": "Official data product for Mobile Content Cloud.",
22+
"dataProductVersions": [
23+
{
24+
"version": "1.0.0"
25+
}
26+
]
27+
}
28+
]
29+
}
30+
]
31+
},
32+
"id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/aoiresourceGroupName/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default",
33+
"name": "default",
34+
"type": "Microsoft.NetworkAnalytics/dataProductsCatalogs",
35+
"systemData": {
36+
"createdBy": "[email protected]",
37+
"createdByType": "User",
38+
"createdAt": "2023-09-04T08:26:27.1506343Z",
39+
"lastModifiedBy": "[email protected]",
40+
"lastModifiedByType": "User",
41+
"lastModifiedAt": "2023-09-04T08:26:27.1506343Z"
42+
}
43+
}
44+
],
45+
"nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs?api-version=2023-11-15$skiptoken=aaaaaaaaaaaaaaaaaaaaaaaaaaaa"
46+
}
47+
}
48+
}
49+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"title": "DataProductsCatalogs_ListBySubscription_MinimumSet_Gen",
3+
"operationId": "DataProductsCatalogs_ListBySubscription",
4+
"parameters": {
5+
"api-version": "2023-11-15",
6+
"subscriptionId": "00000000-0000-0000-0000-00000000000"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/aoiresourceGroupName/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default"
14+
}
15+
]
16+
}
17+
}
18+
}
19+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"title": "DataProducts_AddUserRole_MaximumSet_Gen",
3+
"operationId": "DataProducts_AddUserRole",
4+
"parameters": {
5+
"api-version": "2023-11-15",
6+
"subscriptionId": "00000000-0000-0000-0000-00000000000",
7+
"resourceGroupName": "aoiresourceGroupName",
8+
"dataProductName": "dataproduct01",
9+
"body": {
10+
"roleId": "00000000-0000-0000-0000-00000000000",
11+
"principalId": "00000000-0000-0000-0000-00000000000",
12+
"userName": "UserName",
13+
"dataTypeScope": [
14+
"scope"
15+
],
16+
"principalType": "User",
17+
"role": "Reader"
18+
}
19+
},
20+
"responses": {
21+
"200": {
22+
"body": {
23+
"roleId": "00000000-0000-0000-0000-00000000000",
24+
"principalId": "00000000-0000-0000-0000-00000000000",
25+
"userName": "UserName",
26+
"dataTypeScope": [
27+
"scope"
28+
],
29+
"principalType": "User",
30+
"role": "Reader",
31+
"roleAssignmentId": "00000000-0000-0000-0000-00000000000"
32+
}
33+
}
34+
}
35+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"title": "DataProducts_AddUserRole_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen",
3+
"operationId": "DataProducts_AddUserRole",
4+
"parameters": {
5+
"api-version": "2023-11-15",
6+
"subscriptionId": "00000000-0000-0000-0000-00000000000",
7+
"resourceGroupName": "aoiresourceGroupName",
8+
"dataProductName": "dataproduct01",
9+
"body": {
10+
"roleId": "00000000-0000-0000-0000-00000000000",
11+
"principalId": "00000000-0000-0000-0000-00000000000",
12+
"userName": "userName",
13+
"dataTypeScope": [
14+
"scope"
15+
],
16+
"principalType": "User",
17+
"role": "Reader"
18+
}
19+
},
20+
"responses": {
21+
"200": {
22+
"body": {
23+
"roleId": "00000000-0000-0000-0000-00000000000",
24+
"principalId": "00000000-0000-0000-0000-00000000000",
25+
"userName": "userName",
26+
"dataTypeScope": [
27+
"scope"
28+
],
29+
"principalType": "User",
30+
"role": "Reader",
31+
"roleAssignmentId": "00000000-0000-0000-0000-00000000000"
32+
}
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)