Skip to content

Commit

Permalink
[Defender (RiskIQ) - EASM] Api version 2024-03-01-preview (#28322)
Browse files Browse the repository at this point in the history
* adding new and updated endpoints to azure review

* update respective swagger file for version 2024-03-01

* fixing Swagger pipeline check failures

* update client file with new endpoints, small naming convention changes

* update the swagger file

* adding examples

* files didn't get added

* fixing more checks

* fixing cspell format

* fixing more checks

* fixing more examples

* adding second set of examples

* fixing diffs

* changing POST to have request body when needed

* ran prettier

* ran prettier again

* change model names to fit requirements

* easm.json

* projectedName deprecated

* enums deprecated

* prettier

* updated swagger

* test pipeline

* sync up with upstream

* revert changes in 2023-03-01-preview/easm.json, which shouldn't be touched

* update dependecies and the swagger json file

* remove dismissSeedChain endpoint

* fix swagger spell error

* add documentations for newly added models

* try adding doc for the Versions enum

* add discogroup delete, modify aseetChian realted apis

* correct examples for assetChain related endpoints

* dismissAssetChain should be resourceCollectionAction

* remove word body from request, update some property from optional to required

* add doc to enums

* fix a typo and update dependecies using npm ci

* Updated type to types and daysPrior to priorDays

* Updated naming conventions for daysPrior to priorDays and type to types

* update daysPrior to priorDays in examples files

* update doc for dismiss asset chain

---------

Co-authored-by: Juyoung Song <juyoungsong@microsoft.com>
Co-authored-by: Adam An <adan@microsoft.com>
Co-authored-by: Alex Williams <alewilliams@microsoft.com>
  • Loading branch information
4 people authored May 29, 2024
1 parent d4782cf commit 88c2a22
Show file tree
Hide file tree
Showing 83 changed files with 23,538 additions and 16 deletions.
10 changes: 9 additions & 1 deletion cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,6 @@
"psqldb"
]
},

{
"filename": "**/specification/maps/data-plane/Weather/stable/1.1/weather.json",
"words": [
Expand Down Expand Up @@ -1258,6 +1257,15 @@
"WSUS"
]
},
{
"filename": "**/specification/riskiq/data-plane/Microsoft.Easm/preview/2024-03-01-preview/easm.json",
"words": [
"Cisa",
"cisa",
"affected",
"AUTOCONFIRMED"
]
},
{
"filename": "**/specification/monitor/resource-manager/Microsoft.Insights/**/actionGroups_API.json",
"words": [
Expand Down
16 changes: 15 additions & 1 deletion specification/riskiq/Easm/client.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "./main.tsp";
using Azure.ClientGenerator.Core;

@TypeSpec.Versioning.useDependency(Azure.Core.Versions.v1_0_Preview_2)
@TypeSpec.Versioning.useDependency(Easm.Versions.v2023_03_01_preview)
@TypeSpec.Versioning.useDependency(Easm.Versions.v2024_03_01_preview)
namespace Customizations;

@client({
Expand All @@ -16,6 +16,10 @@ interface EasmClient {
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
updateAssets is Easm.Assets.updateAssets;
getAssetResource is Easm.Assets.getAssetResource;
getAssetsExport is Easm.Assets.getAssetsExport;
getObservations is Easm.Assets.getObservations;
getDeltaDetails is Easm.Assets.getDeltaDetails;
getDeltaSummary is Easm.Assets.getDeltaSummary;

listDataConnection is Easm.DataConnections.listDataConnection;
validateDataConnection is Easm.DataConnections.validateDataConnection;
Expand All @@ -27,11 +31,14 @@ interface EasmClient {
listDiscoGroup is Easm.DiscoveryGroups.listDiscoGroup;
validateDiscoGroup is Easm.DiscoveryGroups.validateDiscoGroup;
getDiscoGroup is Easm.DiscoveryGroups.getDiscoGroup;
deleteDiscoGroup is Easm.DiscoveryGroups.deleteDiscoGroup;
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
createOrReplaceDiscoGroup is Easm.DiscoveryGroups.createOrReplaceDiscoGroup;
runDiscoGroup is Easm.DiscoveryGroups.runDiscoGroup;
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
listRuns is Easm.DiscoveryGroups.listRuns;
getAssetChainSummary is Easm.DiscoveryGroups.getAssetChainSummary;
dismissAssetChain is Easm.DiscoveryGroups.dismissAssetChain;

listDiscoTemplate is Easm.DiscoveryTemplates.listDiscoTemplate;
getDiscoTemplate is Easm.DiscoveryTemplates.getDiscoTemplate;
Expand All @@ -42,6 +49,8 @@ interface EasmClient {
getSnapshot is Easm.Reports.getSnapshot;
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
getSummary is Easm.Reports.getSummary;
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
getSnapshotExport is Easm.Reports.getSnapshotExport;

listSavedFilter is Easm.SavedFilters.listSavedFilter;
getSavedFilter is Easm.SavedFilters.getSavedFilter;
Expand All @@ -52,4 +61,9 @@ interface EasmClient {
listTask is Easm.Tasks.listTask;
getTask is Easm.Tasks.getTask;
cancelTask is Easm.Tasks.cancelTask;
runTask is Easm.Tasks.runTask;
downloadTask is Easm.Tasks.downloadTask;

getCisaCves is Easm.CisaCves.getCisaCves;
getCisaCve is Easm.CisaCves.getCisaCve;
}
Loading

0 comments on commit 88c2a22

Please sign in to comment.