Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Defender (RiskIQ) - EASM] Api version 2024-03-01-preview #28322

Merged
Show file tree
Hide file tree
Changes from 44 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
0e3294c
adding new and updated endpoints to azure review
Mar 19, 2024
8b1f3a9
update respective swagger file for version 2024-03-01
adamgitazure Mar 19, 2024
153e977
fixing Swagger pipeline check failures
Mar 19, 2024
9a8569c
conclude merge
Mar 19, 2024
536d69e
update client file with new endpoints, small naming convention changes
adamgitazure Mar 19, 2024
53cd024
update the swagger file
adamgitazure Mar 19, 2024
eab140d
adding examples
Mar 20, 2024
de51f0a
files didn't get added
Mar 20, 2024
4e04b5b
fixing more checks
Mar 21, 2024
a389a63
Merge branch 'main' into riskiq/Microsoft.Easm/2024-03-01-preview
juyoung98 Mar 21, 2024
16d58c0
fixing cspell format
Mar 21, 2024
8115491
fixing more checks
Mar 21, 2024
34c2375
fixing more examples
Mar 21, 2024
7f93ab6
adding second set of examples
Mar 22, 2024
b59c008
fixing diffs
Mar 22, 2024
3cc0364
Merge branch 'main' into riskiq/Microsoft.Easm/2024-03-01-preview
juyoung98 Apr 1, 2024
9f8ad0f
changing POST to have request body when needed
Apr 4, 2024
263155d
Merge branch 'riskiq/Microsoft.Easm/2024-03-01-preview' of https://gi…
Apr 4, 2024
4822e2a
ran prettier
Apr 4, 2024
d9db6e7
ran prettier again
Apr 4, 2024
9b43a01
change model names to fit requirements
Apr 4, 2024
423e6b3
easm.json
Apr 4, 2024
c1a1058
projectedName deprecated
Apr 4, 2024
158ffa3
enums deprecated
Apr 4, 2024
9651361
prettier
Apr 4, 2024
b936bc4
updated swagger
Apr 5, 2024
b8b5032
test pipeline
Apr 5, 2024
f12263c
sync up with upstream Merge branch 'main' into riskiq/Microsoft.Easm/…
adamgitazure Apr 5, 2024
f8da250
sync up with upstream
adamgitazure Apr 5, 2024
f3b574f
revert changes in 2023-03-01-preview/easm.json, which shouldn't be to…
adamgitazure Apr 5, 2024
337abd4
update dependecies and the swagger json file
adamgitazure Apr 8, 2024
bb9cda5
remove dismissSeedChain endpoint
adamgitazure Apr 23, 2024
43f943c
sync up with upstream and fix merge conflict
adamgitazure Apr 23, 2024
a1791f1
fix swagger spell error
adamgitazure Apr 23, 2024
bcc0116
add documentations for newly added models
adamgitazure Apr 24, 2024
930d4d0
try adding doc for the Versions enum
adamgitazure Apr 24, 2024
17076a6
add discogroup delete, modify aseetChian realted apis
adamgitazure May 9, 2024
147ed25
fix merge conflict
adamgitazure May 9, 2024
aed6ea3
correct examples for assetChain related endpoints
adamgitazure May 10, 2024
a32117b
dismissAssetChain should be resourceCollectionAction
adamgitazure May 10, 2024
203b67f
remove word body from request, update some property from optional to …
adamgitazure May 13, 2024
a57ac1d
fix merge conflict
adamgitazure May 13, 2024
549bf7c
add doc to enums
adamgitazure May 14, 2024
eec2d5b
fix a typo and update dependecies using npm ci
adamgitazure May 14, 2024
b2a57b8
merge with upstream
adamgitazure May 20, 2024
f733dbd
Updated type to types and daysPrior to priorDays
May 23, 2024
8aa47e0
Updated naming conventions for daysPrior to priorDays and type to types
May 23, 2024
8191dbc
Merge branch 'riskiq/Microsoft.Easm/2024-03-01-preview' of https://gi…
adamgitazure May 28, 2024
6a387a2
update daysPrior to priorDays in examples files
adamgitazure May 28, 2024
d8c7748
update doc for dismiss asset chain
adamgitazure May 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -291,38 +291,38 @@
"freemium"
]
},
{
{
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/2023-02-01-preview/ManagedInstances.json",
"words": [
"freemium"
]
},
{
{
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/2023-05-01-preview/ManagedInstances.json",
"words": [
"freemium"
]
},
{
{
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/2023-08-01-preview/ManagedInstances.json",
"words": [
"freemium"
]
},
{
{
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/2023-08-01-preview/ServerTrustCertificates.json",
"words": [
"freemium"
]
},
{
{
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/2023-08-01-preview/ManagedInstanceDtcs.json",
"words": [
"msdtcdns",
"msdtc's"
]
},
{
{
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/2023-08-01-preview/TimeZones.json",
"words": [
"freemium"
Expand Down Expand Up @@ -499,7 +499,7 @@
"Idms",
"Cluter",
"Mfamily",
"Datacentre"
"Datacentre"
]
},
{
Expand Down Expand Up @@ -859,7 +859,6 @@
"psqldb"
]
},

{
"filename": "**/specification/maps/data-plane/Weather/stable/1.1/weather.json",
"words": [
Expand Down Expand Up @@ -1177,7 +1176,7 @@
{
"filename": "**/specification/containerservice/resource-manager/Microsoft.ContainerService/**/*.json",
"words": [
"containerd"
"containerd"
]
},

Expand Down Expand Up @@ -1252,6 +1251,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