Skip to content

Commit 8055387

Browse files
thang-bitshadahmed-microsoftmikeharder
authored andcommitted
Support Typespec file for Easm api version 2023-03-01-preview (#24937)
* Add typespec file for easm * Change service version doc * Update file structure and add config file * Move examples under a version * Add a openapi.json file * Remove openapi.json file * Change operation names and empty object * Update tspconfig * Change config file to add .net and js emitter * Add service dir to config file * Update csharp config * Add projected name for csharp * Use original op * Update disco group list example * Remove observations endpoint * Remove observation models * Add java options * Use Azure.Core standard operation and use resource models * Reformat folder structure * Suppress warnings * Change metadata to record<unknown> * Add suppression for Record<unknown> * Update examples * Remove unused examples * Change apiversion to apiVersion * Reformat with prettier * Use foundations for list operation * Update examples and list operations * Remove unused minimum set * Update all uuid * Update Assets example * Run prettier on Assets_List * update oauth2 definition * remove implicitflow model * Update specification/riskiq/Easm/tspconfig.yaml Co-authored-by: Mike Harder <mharder@microsoft.com> * Update models.tsp * Update routes.tsp * Remove typespec-apiview emitter * update examples, add client.tsp * run prettier * Run prettier on Easm examples * Update examples, main.tsp. Remove client.tsp * Add operation id to examples under typespec project * Add titles to examples * Reformat typespec files * Update DataConnection validate example * Update data connection validation example * Update the easm.json file based on tsv tool * Update swagger file and its examples * Update Easm typespec examples * Update uris in examples * Update cvss3 name * Update cvss3 model with tsp * Add totalElements to DiscoGroups, DiscoTemplates, and SavedFilters List traits * Run validation for the previous commit * Suppress linting rule of typespec generated swagger * Update namespace for dotnet and javascript to the approved namespace * Update package directory for java sdk from azure-defender-easm to azure-analytics-defender-easm * use AlexaDetails instead of AlexaInfo in java sdk * Fix git diff issue in Typespec Validation by running npx tsp * Remove unused paged result models, add @pagedResult, @nextlink, and @Items decorators to paged result models and their properties. Remove custom NoContentResult model and use Typespec.Http.NoContentResponse model instead * Add decorators to indicate the resource is createOrUpdate or just update --------- Co-authored-by: shadahmed-microsoft <139584906+shadahmed-microsoft@users.noreply.github.com> Co-authored-by: Mike Harder <mharder@microsoft.com> Co-authored-by: Shad <t-sshadahmed@microsoft.com>
1 parent 1d9a731 commit 8055387

62 files changed

Lines changed: 12881 additions & 4018 deletions

File tree

Some content is hidden

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

specification/riskiq/data-plane/Microsoft.Easm/preview/2023-03-01-preview/examples/Assets_Get.json renamed to specification/riskiq/Easm/examples/2023-03-01-preview/Assets_GetAssetResource_MaximumSet_Gen.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"operationId": "Assets_GetAssetResource",
3+
"title": "Assets_GetAssetResource",
24
"parameters": {
35
"api-version": "2023-03-01-preview",
46
"subscriptionId": "00000000-0000-0000-0000-000000000000",

specification/riskiq/data-plane/Microsoft.Easm/preview/2023-03-01-preview/examples/Assets_List.json renamed to specification/riskiq/Easm/examples/2023-03-01-preview/Assets_ListAssetResource_MaximumSet_Gen.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"operationId": "Assets_ListAssetResource",
3+
"title": "Assets_ListAssetResource",
24
"parameters": {
35
"api-version": "2023-03-01-preview",
46
"subscriptionId": "00000000-0000-0000-0000-000000000000",
@@ -13,7 +15,7 @@
1315
"body": {
1416
"totalElements": 50000,
1517
"mark": null,
16-
"nextLink": "https://<api-endpoint>/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/workspaces/ThisisaWorkspace/assets?filter=state+%3D+%22confirmed%22&skip=1&maxpagesize=25&api-version=2023-03-01-preview",
18+
"nextLink": "https://eastus.easm.defender.microsoft.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/workspaces/ThisisaWorkspace/assets?filter=state+%3D+%22confirmed%22&skip=1&maxpagesize=25&api-version=2023-03-01-preview",
1719
"value": [
1820
{
1921
"id": "host$$contoso.net",

specification/riskiq/data-plane/Microsoft.Easm/preview/2023-03-01-preview/examples/Assets_Update.json renamed to specification/riskiq/Easm/examples/2023-03-01-preview/Assets_UpdateAssets_MaximumSet_Gen.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"operationId": "Assets_UpdateAssets",
3+
"title": "Assets_UpdateAssets",
24
"parameters": {
35
"api-version": "2023-03-01-preview",
46
"subscriptionId": "00000000-0000-0000-0000-000000000000",

specification/riskiq/data-plane/Microsoft.Easm/preview/2023-03-01-preview/examples/DataConnections_Put.json renamed to specification/riskiq/Easm/examples/2023-03-01-preview/DataConnections_CreateOrReplaceDataConnection_MaximumSet_Gen.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"operationId": "DataConnections_CreateOrReplaceDataConnection",
3+
"title": "DataConnections_CreateOrReplaceDataConnection",
24
"parameters": {
35
"api-version": "2023-03-01-preview",
46
"subscriptionId": "00000000-0000-0000-0000-000000000000",

specification/riskiq/data-plane/Microsoft.Easm/preview/2023-03-01-preview/examples/DataConnections_Delete.json renamed to specification/riskiq/Easm/examples/2023-03-01-preview/DataConnections_DeleteDataConnection_MaximumSet_Gen.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"operationId": "DataConnections_DeleteDataConnection",
3+
"title": "DataConnections_DeleteDataConnection",
24
"parameters": {
35
"api-version": "2023-03-01-preview",
46
"subscriptionId": "00000000-0000-0000-0000-000000000000",

specification/riskiq/data-plane/Microsoft.Easm/preview/2023-03-01-preview/examples/DataConnections_Get.json renamed to specification/riskiq/Easm/examples/2023-03-01-preview/DataConnections_GetDataConnection_MaximumSet_Gen.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"operationId": "DataConnections_GetDataConnection",
3+
"title": "DataConnections_GetDataConnection",
24
"parameters": {
35
"api-version": "2023-03-01-preview",
46
"subscriptionId": "00000000-0000-0000-0000-000000000000",

specification/riskiq/data-plane/Microsoft.Easm/preview/2023-03-01-preview/examples/DataConnections_List.json renamed to specification/riskiq/Easm/examples/2023-03-01-preview/DataConnections_ListDataConnection_MaximumSet_Gen.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"operationId": "DataConnections_ListDataConnection",
3+
"title": "DataConnections_ListDataConnection",
24
"parameters": {
35
"api-version": "2023-03-01-preview",
46
"subscriptionId": "00000000-0000-0000-0000-000000000000",
@@ -9,7 +11,7 @@
911
"200": {
1012
"body": {
1113
"totalElements": 2,
12-
"nextLink": "https://<api-endpoint>/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/workspaces/ThisisaWorkspace/dataConnections?maxpagesize=25&api-version=2023-03-01-preview",
14+
"nextLink": "https://eastus.easm.defender.microsoft.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/workspaces/ThisisaWorkspace/dataConnections?maxpagesize=25&api-version=2023-03-01-preview",
1315
"value": [
1416
{
1517
"id": "ThisisaDataConnection",

specification/riskiq/data-plane/Microsoft.Easm/preview/2023-03-01-preview/examples/DataConnections_Validate.json renamed to specification/riskiq/Easm/examples/2023-03-01-preview/DataConnections_ValidateDataConnection_MaximumSet_Gen.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"operationId": "DataConnections_ValidateDataConnection",
3+
"title": "DataConnections_ValidateDataConnection",
24
"parameters": {
35
"api-version": "2023-03-01-preview",
46
"subscriptionId": "00000000-0000-0000-0000-000000000000",

specification/riskiq/data-plane/Microsoft.Easm/preview/2023-03-01-preview/examples/DiscoveryGroups_Put.json renamed to specification/riskiq/Easm/examples/2023-03-01-preview/DiscoveryGroups_CreateOrReplaceDiscoGroup_MaximumSet_Gen.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"operationId": "DiscoveryGroups_CreateOrReplaceDiscoGroup",
3+
"title": "DiscoveryGroups_CreateOrReplaceDiscoGroup",
24
"parameters": {
35
"api-version": "2023-03-01-preview",
46
"subscriptionId": "00000000-0000-0000-0000-000000000000",

specification/riskiq/data-plane/Microsoft.Easm/preview/2023-03-01-preview/examples/DiscoveryGroups_Get.json renamed to specification/riskiq/Easm/examples/2023-03-01-preview/DiscoveryGroups_GetDiscoGroup_MaximumSet_Gen.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"operationId": "DiscoveryGroups_GetDiscoGroup",
3+
"title": "DiscoveryGroups_GetDiscoGroup",
24
"parameters": {
35
"api-version": "2023-03-01-preview",
46
"subscriptionId": "00000000-0000-0000-0000-000000000000",

0 commit comments

Comments
 (0)