@azure/arm-securityinsight 1.0.0-beta.4 → 1.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +118 -0
- package/dist/index.js +1116 -367
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/actionsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/actionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/actionsGetSample.js +1 -1
- package/dist-esm/samples-dev/actionsListByAlertRuleSample.js +1 -1
- package/dist-esm/samples-dev/alertRuleTemplatesGetSample.js +1 -1
- package/dist-esm/samples-dev/alertRuleTemplatesListSample.js +1 -1
- package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.js +6 -5
- package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRulesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/alertRulesGetSample.js +4 -4
- package/dist-esm/samples-dev/alertRulesListSample.js +1 -1
- package/dist-esm/samples-dev/automationRulesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/automationRulesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/automationRulesGetSample.js +1 -1
- package/dist-esm/samples-dev/automationRulesListSample.js +1 -1
- package/dist-esm/samples-dev/bookmarkExpandSample.js +1 -1
- package/dist-esm/samples-dev/bookmarkRelationsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/bookmarkRelationsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/bookmarkRelationsGetSample.js +1 -1
- package/dist-esm/samples-dev/bookmarkRelationsListSample.js +1 -1
- package/dist-esm/samples-dev/bookmarksCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/bookmarksDeleteSample.js +1 -1
- package/dist-esm/samples-dev/bookmarksGetSample.js +1 -1
- package/dist-esm/samples-dev/bookmarksListSample.js +1 -1
- package/dist-esm/samples-dev/dataConnectorsCheckRequirementsPostSample.js +16 -16
- package/dist-esm/samples-dev/dataConnectorsConnectSample.js +2 -2
- package/dist-esm/samples-dev/dataConnectorsCreateOrUpdateSample.js +8 -8
- package/dist-esm/samples-dev/dataConnectorsDeleteSample.js +5 -5
- package/dist-esm/samples-dev/dataConnectorsDisconnectSample.js +1 -1
- package/dist-esm/samples-dev/dataConnectorsGetSample.js +20 -20
- package/dist-esm/samples-dev/dataConnectorsListSample.js +1 -1
- package/dist-esm/samples-dev/domainWhoisGetSample.js +1 -1
- package/dist-esm/samples-dev/entitiesExpandSample.js +1 -1
- package/dist-esm/samples-dev/entitiesGetInsightsSample.js +1 -1
- package/dist-esm/samples-dev/entitiesGetSample.js +20 -20
- package/dist-esm/samples-dev/entitiesGetTimelineListSample.js +1 -1
- package/dist-esm/samples-dev/entitiesListSample.js +1 -1
- package/dist-esm/samples-dev/entitiesQueriesSample.js +1 -1
- package/dist-esm/samples-dev/entitiesRelationsListSample.js +1 -1
- package/dist-esm/samples-dev/entityQueriesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/entityQueriesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/entityQueriesGetSample.js +2 -2
- package/dist-esm/samples-dev/entityQueriesListSample.js +1 -1
- package/dist-esm/samples-dev/entityQueryTemplatesGetSample.js +1 -1
- package/dist-esm/samples-dev/entityQueryTemplatesListSample.js +1 -1
- package/dist-esm/samples-dev/entityRelationsGetRelationSample.js +1 -1
- package/dist-esm/samples-dev/fileImportsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/fileImportsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fileImportsCreateSample.js +38 -0
- package/dist-esm/samples-dev/fileImportsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/fileImportsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/fileImportsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fileImportsDeleteSample.js +32 -0
- package/dist-esm/samples-dev/fileImportsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/fileImportsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/fileImportsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fileImportsGetSample.js +32 -0
- package/dist-esm/samples-dev/fileImportsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/fileImportsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/fileImportsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fileImportsListSample.js +48 -0
- package/dist-esm/samples-dev/fileImportsListSample.js.map +1 -0
- package/dist-esm/samples-dev/incidentCommentsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/incidentCommentsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/incidentCommentsGetSample.js +1 -1
- package/dist-esm/samples-dev/incidentCommentsListSample.js +1 -1
- package/dist-esm/samples-dev/incidentRelationsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/incidentRelationsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/incidentRelationsGetSample.js +1 -1
- package/dist-esm/samples-dev/incidentRelationsListSample.js +1 -1
- package/dist-esm/samples-dev/incidentsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/incidentsCreateTeamSample.js +1 -1
- package/dist-esm/samples-dev/incidentsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/incidentsGetSample.js +1 -1
- package/dist-esm/samples-dev/incidentsListAlertsSample.js +1 -1
- package/dist-esm/samples-dev/incidentsListBookmarksSample.js +1 -1
- package/dist-esm/samples-dev/incidentsListEntitiesSample.js +1 -1
- package/dist-esm/samples-dev/incidentsListSample.js +1 -1
- package/dist-esm/samples-dev/incidentsRunPlaybookSample.js +1 -1
- package/dist-esm/samples-dev/ipGeodataGetSample.js +1 -1
- package/dist-esm/samples-dev/metadataCreateSample.js +2 -2
- package/dist-esm/samples-dev/metadataDeleteSample.js +1 -1
- package/dist-esm/samples-dev/metadataGetSample.js +1 -1
- package/dist-esm/samples-dev/metadataListSample.js +2 -2
- package/dist-esm/samples-dev/metadataUpdateSample.js +1 -1
- package/dist-esm/samples-dev/officeConsentsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/officeConsentsGetSample.js +1 -1
- package/dist-esm/samples-dev/officeConsentsListSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/productSettingsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/productSettingsGetSample.js +1 -1
- package/dist-esm/samples-dev/productSettingsListSample.js +1 -1
- package/dist-esm/samples-dev/productSettingsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/securityMlAnalyticsSettingsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/securityMlAnalyticsSettingsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/securityMlAnalyticsSettingsGetSample.js +1 -1
- package/dist-esm/samples-dev/securityMlAnalyticsSettingsListSample.js +1 -1
- package/dist-esm/samples-dev/sentinelOnboardingStatesCreateSample.js +1 -1
- package/dist-esm/samples-dev/sentinelOnboardingStatesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/sentinelOnboardingStatesGetSample.js +1 -1
- package/dist-esm/samples-dev/sentinelOnboardingStatesListSample.js +1 -1
- package/dist-esm/samples-dev/sourceControlListRepositoriesSample.js +1 -1
- package/dist-esm/samples-dev/sourceControlsCreateSample.js +1 -1
- package/dist-esm/samples-dev/sourceControlsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/sourceControlsGetSample.js +1 -1
- package/dist-esm/samples-dev/sourceControlsListSample.js +1 -1
- package/dist-esm/samples-dev/threatIntelligenceIndicatorAppendTagsSample.js +1 -1
- package/dist-esm/samples-dev/threatIntelligenceIndicatorCreateIndicatorSample.js +1 -1
- package/dist-esm/samples-dev/threatIntelligenceIndicatorCreateSample.js +1 -1
- package/dist-esm/samples-dev/threatIntelligenceIndicatorDeleteSample.js +1 -1
- package/dist-esm/samples-dev/threatIntelligenceIndicatorGetSample.js +1 -1
- package/dist-esm/samples-dev/threatIntelligenceIndicatorMetricsListSample.js +1 -1
- package/dist-esm/samples-dev/threatIntelligenceIndicatorQueryIndicatorsSample.js +1 -1
- package/dist-esm/samples-dev/threatIntelligenceIndicatorReplaceTagsSample.js +1 -1
- package/dist-esm/samples-dev/threatIntelligenceIndicatorsListSample.js +1 -1
- package/dist-esm/samples-dev/watchlistItemsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/watchlistItemsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/watchlistItemsGetSample.js +1 -1
- package/dist-esm/samples-dev/watchlistItemsListSample.js +1 -1
- package/dist-esm/samples-dev/watchlistsCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/watchlistsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/watchlistsGetSample.js +1 -1
- package/dist-esm/samples-dev/watchlistsListSample.js +1 -1
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +482 -20
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +98 -8
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +82 -63
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +511 -201
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +2 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +16 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/fileImports.d.ts +72 -0
- package/dist-esm/src/operations/fileImports.d.ts.map +1 -0
- package/dist-esm/src/operations/fileImports.js +303 -0
- package/dist-esm/src/operations/fileImports.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/fileImports.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/fileImports.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/fileImports.js +9 -0
- package/dist-esm/src/operationsInterfaces/fileImports.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/securityInsights.d.ts +2 -1
- package/dist-esm/src/securityInsights.d.ts.map +1 -1
- package/dist-esm/src/securityInsights.js +4 -3
- package/dist-esm/src/securityInsights.js.map +1 -1
- package/dist-esm/test/securityinsights_examples.spec.d.ts +4 -0
- package/dist-esm/test/securityinsights_examples.spec.d.ts.map +1 -0
- package/dist-esm/test/securityinsights_examples.spec.js +98 -0
- package/dist-esm/test/securityinsights_examples.spec.js.map +1 -0
- package/package.json +6 -4
- package/review/arm-securityinsight.api.md +283 -3
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +526 -19
- package/src/models/mappers.ts +546 -201
- package/src/models/parameters.ts +18 -1
- package/src/operations/fileImports.ts +410 -0
- package/src/operations/index.ts +1 -0
- package/src/operationsInterfaces/fileImports.ts +95 -0
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/securityInsights.ts +6 -2
- package/types/arm-securityinsight.d.ts +548 -5
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Creates a source control.
|
|
15
15
|
*
|
|
16
16
|
* @summary Creates a source control.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/sourcecontrols/CreateSourceControl.json
|
|
18
18
|
*/
|
|
19
19
|
function createsASourceControl() {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Delete a source control.
|
|
15
15
|
*
|
|
16
16
|
* @summary Delete a source control.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/sourcecontrols/DeleteSourceControl.json
|
|
18
18
|
*/
|
|
19
19
|
function deleteASourceControl() {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Gets a source control byt its identifier.
|
|
15
15
|
*
|
|
16
16
|
* @summary Gets a source control byt its identifier.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/sourcecontrols/GetSourceControlById.json
|
|
18
18
|
*/
|
|
19
19
|
function getASourceControl() {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Gets all source controls, without source control items.
|
|
15
15
|
*
|
|
16
16
|
* @summary Gets all source controls, without source control items.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/sourcecontrols/GetSourceControls.json
|
|
18
18
|
*/
|
|
19
19
|
function getAllSourceControls() {
|
|
20
20
|
var e_1, _a;
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Append tags to a threat intelligence indicator.
|
|
15
15
|
*
|
|
16
16
|
* @summary Append tags to a threat intelligence indicator.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/AppendTagsThreatIntelligence.json
|
|
18
18
|
*/
|
|
19
19
|
function appendTagsToAThreatIntelligenceIndicator() {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Create a new threat intelligence indicator.
|
|
15
15
|
*
|
|
16
16
|
* @summary Create a new threat intelligence indicator.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/CreateThreatIntelligence.json
|
|
18
18
|
*/
|
|
19
19
|
function createANewThreatIntelligence() {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Update a threat Intelligence indicator.
|
|
15
15
|
*
|
|
16
16
|
* @summary Update a threat Intelligence indicator.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/UpdateThreatIntelligence.json
|
|
18
18
|
*/
|
|
19
19
|
function updateAThreatIntelligenceIndicator() {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Delete a threat intelligence indicator.
|
|
15
15
|
*
|
|
16
16
|
* @summary Delete a threat intelligence indicator.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/DeleteThreatIntelligence.json
|
|
18
18
|
*/
|
|
19
19
|
function deleteAThreatIntelligenceIndicator() {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to View a threat intelligence indicator by name.
|
|
15
15
|
*
|
|
16
16
|
* @summary View a threat intelligence indicator by name.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/GetThreatIntelligenceById.json
|
|
18
18
|
*/
|
|
19
19
|
function viewAThreatIntelligenceIndicatorByName() {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Get threat intelligence indicators metrics (Indicators counts by Type, Threat Type, Source).
|
|
15
15
|
*
|
|
16
16
|
* @summary Get threat intelligence indicators metrics (Indicators counts by Type, Threat Type, Source).
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/CollectThreatIntelligenceMetrics.json
|
|
18
18
|
*/
|
|
19
19
|
function getThreatIntelligenceIndicatorsMetrics() {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Query threat intelligence indicators as per filtering criteria.
|
|
15
15
|
*
|
|
16
16
|
* @summary Query threat intelligence indicators as per filtering criteria.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/QueryThreatIntelligence.json
|
|
18
18
|
*/
|
|
19
19
|
function queryThreatIntelligenceIndicatorsAsPerFilteringCriteria() {
|
|
20
20
|
var e_1, _a;
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Replace tags added to a threat intelligence indicator.
|
|
15
15
|
*
|
|
16
16
|
* @summary Replace tags added to a threat intelligence indicator.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/ReplaceTagsThreatIntelligence.json
|
|
18
18
|
*/
|
|
19
19
|
function replaceTagsToAThreatIntelligence() {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Get all threat intelligence indicators.
|
|
15
15
|
*
|
|
16
16
|
* @summary Get all threat intelligence indicators.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/GetThreatIntelligence.json
|
|
18
18
|
*/
|
|
19
19
|
function getAllThreatIntelligenceIndicators() {
|
|
20
20
|
var e_1, _a;
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Creates or updates a watchlist item.
|
|
15
15
|
*
|
|
16
16
|
* @summary Creates or updates a watchlist item.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/CreateWatchlistItem.json
|
|
18
18
|
*/
|
|
19
19
|
function createsOrUpdatesAWatchlistItem() {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Delete a watchlist item.
|
|
15
15
|
*
|
|
16
16
|
* @summary Delete a watchlist item.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/DeleteWatchlistItem.json
|
|
18
18
|
*/
|
|
19
19
|
function deleteAWatchlistItem() {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Gets a watchlist, without its watchlist items.
|
|
15
15
|
*
|
|
16
16
|
* @summary Gets a watchlist, without its watchlist items.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/GetWatchlistItemById.json
|
|
18
18
|
*/
|
|
19
19
|
function getAWatchlistItem() {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Gets all watchlist Items.
|
|
15
15
|
*
|
|
16
16
|
* @summary Gets all watchlist Items.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/GetWatchlistItems.json
|
|
18
18
|
*/
|
|
19
19
|
function getAllWatchlistItems() {
|
|
20
20
|
var e_1, _a;
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Create or update a Watchlist and its Watchlist Items (bulk creation, e.g. through text/csv content type). To create a Watchlist and its Items, we should call this endpoint with either rawContent or a valid SAR URI and contentType properties. The rawContent is mainly used for small watchlist (content size below 3.8 MB). The SAS URI enables the creation of large watchlist, where the content size can go up to 500 MB. The status of processing such large file can be polled through the URL returned in Azure-AsyncOperation header.
|
|
15
15
|
*
|
|
16
16
|
* @summary Create or update a Watchlist and its Watchlist Items (bulk creation, e.g. through text/csv content type). To create a Watchlist and its Items, we should call this endpoint with either rawContent or a valid SAR URI and contentType properties. The rawContent is mainly used for small watchlist (content size below 3.8 MB). The SAS URI enables the creation of large watchlist, where the content size can go up to 500 MB. The status of processing such large file can be polled through the URL returned in Azure-AsyncOperation header.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/CreateWatchlistAndWatchlistItems.json
|
|
18
18
|
*/
|
|
19
19
|
function createsOrUpdatesAWatchlistAndBulkCreatesWatchlistItems() {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -45,7 +45,7 @@ createsOrUpdatesAWatchlistAndBulkCreatesWatchlistItems().catch(console.error);
|
|
|
45
45
|
* This sample demonstrates how to Create or update a Watchlist and its Watchlist Items (bulk creation, e.g. through text/csv content type). To create a Watchlist and its Items, we should call this endpoint with either rawContent or a valid SAR URI and contentType properties. The rawContent is mainly used for small watchlist (content size below 3.8 MB). The SAS URI enables the creation of large watchlist, where the content size can go up to 500 MB. The status of processing such large file can be polled through the URL returned in Azure-AsyncOperation header.
|
|
46
46
|
*
|
|
47
47
|
* @summary Create or update a Watchlist and its Watchlist Items (bulk creation, e.g. through text/csv content type). To create a Watchlist and its Items, we should call this endpoint with either rawContent or a valid SAR URI and contentType properties. The rawContent is mainly used for small watchlist (content size below 3.8 MB). The SAS URI enables the creation of large watchlist, where the content size can go up to 500 MB. The status of processing such large file can be polled through the URL returned in Azure-AsyncOperation header.
|
|
48
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
48
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/CreateWatchlist.json
|
|
49
49
|
*/
|
|
50
50
|
function createsOrUpdatesAWatchlist() {
|
|
51
51
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Delete a watchlist.
|
|
15
15
|
*
|
|
16
16
|
* @summary Delete a watchlist.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/DeleteWatchlist.json
|
|
18
18
|
*/
|
|
19
19
|
function deleteAWatchlist() {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Gets a watchlist, without its watchlist items.
|
|
15
15
|
*
|
|
16
16
|
* @summary Gets a watchlist, without its watchlist items.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/GetWatchlistByAlias.json
|
|
18
18
|
*/
|
|
19
19
|
function getAWatchlist() {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
14
14
|
* This sample demonstrates how to Gets all watchlists, without watchlist items.
|
|
15
15
|
*
|
|
16
16
|
* @summary Gets all watchlists, without watchlist items.
|
|
17
|
-
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-
|
|
17
|
+
* x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/GetWatchlists.json
|
|
18
18
|
*/
|
|
19
19
|
function getAllWatchlists() {
|
|
20
20
|
var e_1, _a;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
2
|
+
export declare class LroImpl<T> implements LongRunningOperation<T> {
|
|
3
|
+
private sendOperationFn;
|
|
4
|
+
private args;
|
|
5
|
+
private spec;
|
|
6
|
+
requestPath: string;
|
|
7
|
+
requestMethod: string;
|
|
8
|
+
constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
|
|
9
|
+
readonly requestBody?: unknown;
|
|
10
|
+
readonly path?: string;
|
|
11
|
+
readonly httpMethod: string;
|
|
12
|
+
} & Record<string, any>, requestPath?: string, requestMethod?: string);
|
|
13
|
+
sendInitialRequest(): Promise<LroResponse<T>>;
|
|
14
|
+
sendPollRequest(path: string): Promise<LroResponse<T>>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=lroImpl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,qBAAa,OAAO,CAAC,CAAC,CAAE,YAAW,oBAAoB,CAAC,CAAC,CAAC;IAEtD,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,IAAI;IAKL,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,MAAM;gBARpB,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAClE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,EAAE;QACZ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAChB,WAAW,GAAE,MAAmB,EAChC,aAAa,GAAE,MAAwB;IAEnC,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAG7C,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CAQpE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter, __rest } from "tslib";
|
|
9
|
+
export class LroImpl {
|
|
10
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
11
|
+
this.sendOperationFn = sendOperationFn;
|
|
12
|
+
this.args = args;
|
|
13
|
+
this.spec = spec;
|
|
14
|
+
this.requestPath = requestPath;
|
|
15
|
+
this.requestMethod = requestMethod;
|
|
16
|
+
}
|
|
17
|
+
sendInitialRequest() {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
sendPollRequest(path) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
|
|
25
|
+
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACS,kBAAkB;;YAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACpD,CAAC;KAAA;IACY,eAAe,CAAC,IAAY;;YACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;YAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;QACL,CAAC;KAAA;CACF"}
|