-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tsp - add a testcase by leverage tsp of NetworkAnalytics.Management
- Loading branch information
Showing
507 changed files
with
111,090 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
tests-upgrade/tests-emitter/NetworkAnalytics.Management/client.tsp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |
45 changes: 45 additions & 0 deletions
45
...workAnalytics.Management/examples/2023-11-15/DataProductsCatalogs_Get_MaximumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...workAnalytics.Management/examples/2023-11-15/DataProductsCatalogs_Get_MinimumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...nagement/examples/2023-11-15/DataProductsCatalogs_ListByResourceGroup_MaximumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...nagement/examples/2023-11-15/DataProductsCatalogs_ListByResourceGroup_MinimumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...anagement/examples/2023-11-15/DataProductsCatalogs_ListBySubscription_MaximumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...anagement/examples/2023-11-15/DataProductsCatalogs_ListBySubscription_MinimumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...workAnalytics.Management/examples/2023-11-15/DataProducts_AddUserRole_MaximumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...workAnalytics.Management/examples/2023-11-15/DataProducts_AddUserRole_MinimumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.