Skip to content

Commit 3107b23

Browse files
Fixes to easm spec/customization (#38726)
* Fixes to easm spec/customization * more customizations * policies * task * regen
1 parent 05c5723 commit 3107b23

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

specification/riskiq/Easm/client.tsp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,5 +148,10 @@ interface EasmClient {
148148
"csharp"
149149
);
150150
@@clientName(EasmClient.getDiscoTemplate, "GetDiscoveryTemplate", "csharp");
151+
@@clientName(EasmClient.listAssetResource, "GetAssetResources", "csharp");
152+
@@clientName(EasmClient.listDataConnection, "GetDataConnections", "csharp");
151153
@@clientName(EasmClient.listDiscoTemplate, "GetDiscoveryTemplates", "csharp");
154+
@@clientName(EasmClient.listPolicy, "GetPolicies", "csharp");
155+
@@clientName(EasmClient.listSavedFilter, "GetSavedFilters", "csharp");
156+
@@clientName(EasmClient.listTask, "GetTasks", "csharp");
152157
@@clientName(EasmClient.validateDiscoGroup, "ValidateDiscoveryGroup", "csharp");

specification/riskiq/Easm/main.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ using TypeSpec.Versioning;
3131
"",
3232
{
3333
@doc("The endpoint hosting the requested resource. For example, https://{region}.easm.defender.microsoft.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/workspaces/{workspaceName}")
34-
endpoint: string,
34+
endpoint: url,
3535
}
3636
)
3737
@doc("Defender EASM discovers and maps your digital attack surface to provide an \"outside-in\" perspective using probes to discover assets. The assets are provided with detailed metadata associated, including vulnerabilities, configurations and web components, allowing customers to view and prioritize external risk. The EASM REST API enables you to develop clients that integrate with your application.")

specification/riskiq/data-plane/Microsoft.Easm/preview/2023-03-01-preview/easm.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
"in": "path",
2323
"description": "The endpoint hosting the requested resource. For example, https://{region}.easm.defender.microsoft.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/workspaces/{workspaceName}",
2424
"required": true,
25-
"type": "string"
25+
"type": "string",
26+
"format": "uri",
27+
"x-ms-skip-url-encoding": true
2628
}
2729
]
2830
},

specification/riskiq/data-plane/Microsoft.Easm/preview/2024-03-01-preview/easm.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
"in": "path",
2323
"description": "The endpoint hosting the requested resource. For example, https://{region}.easm.defender.microsoft.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/workspaces/{workspaceName}",
2424
"required": true,
25-
"type": "string"
25+
"type": "string",
26+
"format": "uri",
27+
"x-ms-skip-url-encoding": true
2628
}
2729
]
2830
},

specification/riskiq/data-plane/Microsoft.Easm/preview/2024-10-01-preview/easm.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
"in": "path",
2323
"description": "The endpoint hosting the requested resource. For example, https://{region}.easm.defender.microsoft.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/workspaces/{workspaceName}",
2424
"required": true,
25-
"type": "string"
25+
"type": "string",
26+
"format": "uri",
27+
"x-ms-skip-url-encoding": true
2628
}
2729
]
2830
},

0 commit comments

Comments
 (0)