@azure/arm-securityinsight 1.0.0-beta.1
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 +5 -0
- package/LICENSE +21 -0
- package/README.md +98 -0
- package/dist/index.js +20426 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +7571 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +813 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +437 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +12661 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +68 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +518 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/actions.d.ts +69 -0
- package/dist-esm/src/operations/actions.d.ts.map +1 -0
- package/dist-esm/src/operations/actions.js +249 -0
- package/dist-esm/src/operations/actions.js.map +1 -0
- package/dist-esm/src/operations/alertRuleTemplates.d.ts +46 -0
- package/dist-esm/src/operations/alertRuleTemplates.d.ts.map +1 -0
- package/dist-esm/src/operations/alertRuleTemplates.js +169 -0
- package/dist-esm/src/operations/alertRuleTemplates.js.map +1 -0
- package/dist-esm/src/operations/alertRules.d.ts +63 -0
- package/dist-esm/src/operations/alertRules.d.ts.map +1 -0
- package/dist-esm/src/operations/alertRules.js +238 -0
- package/dist-esm/src/operations/alertRules.js.map +1 -0
- package/dist-esm/src/operations/automationRules.d.ts +63 -0
- package/dist-esm/src/operations/automationRules.d.ts.map +1 -0
- package/dist-esm/src/operations/automationRules.js +244 -0
- package/dist-esm/src/operations/automationRules.js.map +1 -0
- package/dist-esm/src/operations/bookmarkOperations.d.ts +22 -0
- package/dist-esm/src/operations/bookmarkOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/bookmarkOperations.js +58 -0
- package/dist-esm/src/operations/bookmarkOperations.js.map +1 -0
- package/dist-esm/src/operations/bookmarkRelations.d.ts +69 -0
- package/dist-esm/src/operations/bookmarkRelations.d.ts.map +1 -0
- package/dist-esm/src/operations/bookmarkRelations.js +268 -0
- package/dist-esm/src/operations/bookmarkRelations.js.map +1 -0
- package/dist-esm/src/operations/bookmarks.d.ts +63 -0
- package/dist-esm/src/operations/bookmarks.d.ts.map +1 -0
- package/dist-esm/src/operations/bookmarks.js +238 -0
- package/dist-esm/src/operations/bookmarks.js.map +1 -0
- package/dist-esm/src/operations/dataConnectors.d.ts +80 -0
- package/dist-esm/src/operations/dataConnectors.d.ts.map +1 -0
- package/dist-esm/src/operations/dataConnectors.js +313 -0
- package/dist-esm/src/operations/dataConnectors.js.map +1 -0
- package/dist-esm/src/operations/dataConnectorsCheckRequirementsOperations.d.ts +21 -0
- package/dist-esm/src/operations/dataConnectorsCheckRequirementsOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/dataConnectorsCheckRequirementsOperations.js +61 -0
- package/dist-esm/src/operations/dataConnectorsCheckRequirementsOperations.js.map +1 -0
- package/dist-esm/src/operations/domainWhois.d.ts +20 -0
- package/dist-esm/src/operations/domainWhois.d.ts.map +1 -0
- package/dist-esm/src/operations/domainWhois.js +52 -0
- package/dist-esm/src/operations/domainWhois.js.map +1 -0
- package/dist-esm/src/operations/entities.d.ts +73 -0
- package/dist-esm/src/operations/entities.d.ts.map +1 -0
- package/dist-esm/src/operations/entities.js +272 -0
- package/dist-esm/src/operations/entities.js.map +1 -0
- package/dist-esm/src/operations/entitiesGetTimeline.d.ts +22 -0
- package/dist-esm/src/operations/entitiesGetTimeline.d.ts.map +1 -0
- package/dist-esm/src/operations/entitiesGetTimeline.js +58 -0
- package/dist-esm/src/operations/entitiesGetTimeline.js.map +1 -0
- package/dist-esm/src/operations/entitiesRelations.d.ts +41 -0
- package/dist-esm/src/operations/entitiesRelations.d.ts.map +1 -0
- package/dist-esm/src/operations/entitiesRelations.js +154 -0
- package/dist-esm/src/operations/entitiesRelations.js.map +1 -0
- package/dist-esm/src/operations/entityQueries.d.ts +63 -0
- package/dist-esm/src/operations/entityQueries.d.ts.map +1 -0
- package/dist-esm/src/operations/entityQueries.js +238 -0
- package/dist-esm/src/operations/entityQueries.js.map +1 -0
- package/dist-esm/src/operations/entityQueryTemplates.d.ts +46 -0
- package/dist-esm/src/operations/entityQueryTemplates.d.ts.map +1 -0
- package/dist-esm/src/operations/entityQueryTemplates.js +169 -0
- package/dist-esm/src/operations/entityQueryTemplates.js.map +1 -0
- package/dist-esm/src/operations/entityRelations.d.ts +22 -0
- package/dist-esm/src/operations/entityRelations.d.ts.map +1 -0
- package/dist-esm/src/operations/entityRelations.js +57 -0
- package/dist-esm/src/operations/entityRelations.js.map +1 -0
- package/dist-esm/src/operations/iPGeodata.d.ts +20 -0
- package/dist-esm/src/operations/iPGeodata.d.ts.map +1 -0
- package/dist-esm/src/operations/iPGeodata.js +52 -0
- package/dist-esm/src/operations/iPGeodata.js.map +1 -0
- package/dist-esm/src/operations/incidentComments.d.ts +69 -0
- package/dist-esm/src/operations/incidentComments.d.ts.map +1 -0
- package/dist-esm/src/operations/incidentComments.js +280 -0
- package/dist-esm/src/operations/incidentComments.js.map +1 -0
- package/dist-esm/src/operations/incidentRelations.d.ts +69 -0
- package/dist-esm/src/operations/incidentRelations.d.ts.map +1 -0
- package/dist-esm/src/operations/incidentRelations.js +268 -0
- package/dist-esm/src/operations/incidentRelations.js.map +1 -0
- package/dist-esm/src/operations/incidents.d.ts +97 -0
- package/dist-esm/src/operations/incidents.d.ts.map +1 -0
- package/dist-esm/src/operations/incidents.js +382 -0
- package/dist-esm/src/operations/incidents.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +33 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +40 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/metadata.d.ts +72 -0
- package/dist-esm/src/operations/metadata.d.ts.map +1 -0
- package/dist-esm/src/operations/metadata.js +291 -0
- package/dist-esm/src/operations/metadata.js.map +1 -0
- package/dist-esm/src/operations/officeConsents.d.ts +54 -0
- package/dist-esm/src/operations/officeConsents.d.ts.map +1 -0
- package/dist-esm/src/operations/officeConsents.js +200 -0
- package/dist-esm/src/operations/officeConsents.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/productSettings.d.ts +45 -0
- package/dist-esm/src/operations/productSettings.d.ts.map +1 -0
- package/dist-esm/src/operations/productSettings.js +151 -0
- package/dist-esm/src/operations/productSettings.js.map +1 -0
- package/dist-esm/src/operations/sentinelOnboardingStates.d.ts +44 -0
- package/dist-esm/src/operations/sentinelOnboardingStates.d.ts.map +1 -0
- package/dist-esm/src/operations/sentinelOnboardingStates.js +168 -0
- package/dist-esm/src/operations/sentinelOnboardingStates.js.map +1 -0
- package/dist-esm/src/operations/sourceControlOperations.d.ts +41 -0
- package/dist-esm/src/operations/sourceControlOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/sourceControlOperations.js +143 -0
- package/dist-esm/src/operations/sourceControlOperations.js.map +1 -0
- package/dist-esm/src/operations/sourceControls.d.ts +63 -0
- package/dist-esm/src/operations/sourceControls.d.ts.map +1 -0
- package/dist-esm/src/operations/sourceControls.js +244 -0
- package/dist-esm/src/operations/sourceControls.js.map +1 -0
- package/dist-esm/src/operations/threatIntelligenceIndicator.d.ts +97 -0
- package/dist-esm/src/operations/threatIntelligenceIndicator.d.ts.map +1 -0
- package/dist-esm/src/operations/threatIntelligenceIndicator.js +387 -0
- package/dist-esm/src/operations/threatIntelligenceIndicator.js.map +1 -0
- package/dist-esm/src/operations/threatIntelligenceIndicatorMetrics.d.ts +20 -0
- package/dist-esm/src/operations/threatIntelligenceIndicatorMetrics.d.ts.map +1 -0
- package/dist-esm/src/operations/threatIntelligenceIndicatorMetrics.js +53 -0
- package/dist-esm/src/operations/threatIntelligenceIndicatorMetrics.js.map +1 -0
- package/dist-esm/src/operations/threatIntelligenceIndicators.d.ts +38 -0
- package/dist-esm/src/operations/threatIntelligenceIndicators.d.ts.map +1 -0
- package/dist-esm/src/operations/threatIntelligenceIndicators.js +149 -0
- package/dist-esm/src/operations/threatIntelligenceIndicators.js.map +1 -0
- package/dist-esm/src/operations/watchlistItems.d.ts +69 -0
- package/dist-esm/src/operations/watchlistItems.d.ts.map +1 -0
- package/dist-esm/src/operations/watchlistItems.js +268 -0
- package/dist-esm/src/operations/watchlistItems.js.map +1 -0
- package/dist-esm/src/operations/watchlists.d.ts +65 -0
- package/dist-esm/src/operations/watchlists.d.ts.map +1 -0
- package/dist-esm/src/operations/watchlists.js +240 -0
- package/dist-esm/src/operations/watchlists.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/actions.d.ts +42 -0
- package/dist-esm/src/operationsInterfaces/actions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/actions.js +9 -0
- package/dist-esm/src/operationsInterfaces/actions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/alertRuleTemplates.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/alertRuleTemplates.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/alertRuleTemplates.js +9 -0
- package/dist-esm/src/operationsInterfaces/alertRuleTemplates.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/alertRules.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/alertRules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/alertRules.js +9 -0
- package/dist-esm/src/operationsInterfaces/alertRules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/automationRules.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/automationRules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/automationRules.js +9 -0
- package/dist-esm/src/operationsInterfaces/automationRules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/bookmarkOperations.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/bookmarkOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/bookmarkOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/bookmarkOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/bookmarkRelations.d.ts +42 -0
- package/dist-esm/src/operationsInterfaces/bookmarkRelations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/bookmarkRelations.js +9 -0
- package/dist-esm/src/operationsInterfaces/bookmarkRelations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/bookmarks.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/bookmarks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/bookmarks.js +9 -0
- package/dist-esm/src/operationsInterfaces/bookmarks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataConnectors.d.ts +55 -0
- package/dist-esm/src/operationsInterfaces/dataConnectors.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataConnectors.js +9 -0
- package/dist-esm/src/operationsInterfaces/dataConnectors.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataConnectorsCheckRequirementsOperations.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/dataConnectorsCheckRequirementsOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataConnectorsCheckRequirementsOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/dataConnectorsCheckRequirementsOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/domainWhois.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/domainWhois.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/domainWhois.js +9 -0
- package/dist-esm/src/operationsInterfaces/domainWhois.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/entities.d.ts +48 -0
- package/dist-esm/src/operationsInterfaces/entities.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/entities.js +9 -0
- package/dist-esm/src/operationsInterfaces/entities.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/entitiesGetTimeline.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/entitiesGetTimeline.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/entitiesGetTimeline.js +9 -0
- package/dist-esm/src/operationsInterfaces/entitiesGetTimeline.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/entitiesRelations.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/entitiesRelations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/entitiesRelations.js +9 -0
- package/dist-esm/src/operationsInterfaces/entitiesRelations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/entityQueries.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/entityQueries.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/entityQueries.js +9 -0
- package/dist-esm/src/operationsInterfaces/entityQueries.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/entityQueryTemplates.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/entityQueryTemplates.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/entityQueryTemplates.js +9 -0
- package/dist-esm/src/operationsInterfaces/entityQueryTemplates.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/entityRelations.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/entityRelations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/entityRelations.js +9 -0
- package/dist-esm/src/operationsInterfaces/entityRelations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/iPGeodata.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/iPGeodata.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/iPGeodata.js +9 -0
- package/dist-esm/src/operationsInterfaces/iPGeodata.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/incidentComments.d.ts +42 -0
- package/dist-esm/src/operationsInterfaces/incidentComments.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/incidentComments.js +9 -0
- package/dist-esm/src/operationsInterfaces/incidentComments.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/incidentRelations.d.ts +42 -0
- package/dist-esm/src/operationsInterfaces/incidentRelations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/incidentRelations.js +9 -0
- package/dist-esm/src/operationsInterfaces/incidentRelations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/incidents.d.ts +72 -0
- package/dist-esm/src/operationsInterfaces/incidents.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/incidents.js +9 -0
- package/dist-esm/src/operationsInterfaces/incidents.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +33 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +40 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/metadata.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/metadata.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/metadata.js +9 -0
- package/dist-esm/src/operationsInterfaces/metadata.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/officeConsents.d.ts +29 -0
- package/dist-esm/src/operationsInterfaces/officeConsents.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/officeConsents.js +9 -0
- package/dist-esm/src/operationsInterfaces/officeConsents.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/productSettings.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/productSettings.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/productSettings.js +9 -0
- package/dist-esm/src/operationsInterfaces/productSettings.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sentinelOnboardingStates.d.ts +36 -0
- package/dist-esm/src/operationsInterfaces/sentinelOnboardingStates.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sentinelOnboardingStates.js +9 -0
- package/dist-esm/src/operationsInterfaces/sentinelOnboardingStates.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sourceControlOperations.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/sourceControlOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sourceControlOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/sourceControlOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sourceControls.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/sourceControls.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sourceControls.js +9 -0
- package/dist-esm/src/operationsInterfaces/sourceControls.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicator.d.ts +68 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicator.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicator.js +9 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicator.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicatorMetrics.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicatorMetrics.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicatorMetrics.js +9 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicatorMetrics.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicators.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicators.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicators.js +9 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicators.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/watchlistItems.d.ts +42 -0
- package/dist-esm/src/operationsInterfaces/watchlistItems.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/watchlistItems.js +9 -0
- package/dist-esm/src/operationsInterfaces/watchlistItems.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/watchlists.d.ts +40 -0
- package/dist-esm/src/operationsInterfaces/watchlists.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/watchlists.js +9 -0
- package/dist-esm/src/operationsInterfaces/watchlists.js.map +1 -0
- package/dist-esm/src/securityInsights.d.ts +49 -0
- package/dist-esm/src/securityInsights.d.ts.map +1 -0
- package/dist-esm/src/securityInsights.js +82 -0
- package/dist-esm/src/securityInsights.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +95 -0
- package/review/arm-securityinsight.api.md +5007 -0
- package/rollup.config.js +188 -0
- package/src/index.ts +12 -0
- package/src/models/index.ts +8349 -0
- package/src/models/mappers.ts +14311 -0
- package/src/models/parameters.ts +616 -0
- package/src/operations/actions.ts +351 -0
- package/src/operations/alertRuleTemplates.ts +221 -0
- package/src/operations/alertRules.ts +314 -0
- package/src/operations/automationRules.ts +320 -0
- package/src/operations/bookmarkOperations.ts +80 -0
- package/src/operations/bookmarkRelations.ts +369 -0
- package/src/operations/bookmarks.ts +314 -0
- package/src/operations/dataConnectors.ts +413 -0
- package/src/operations/dataConnectorsCheckRequirementsOperations.ts +83 -0
- package/src/operations/domainWhois.ts +71 -0
- package/src/operations/entities.ts +366 -0
- package/src/operations/entitiesGetTimeline.ts +80 -0
- package/src/operations/entitiesRelations.ts +216 -0
- package/src/operations/entityQueries.ts +315 -0
- package/src/operations/entityQueryTemplates.ts +221 -0
- package/src/operations/entityRelations.ts +78 -0
- package/src/operations/iPGeodata.ts +68 -0
- package/src/operations/incidentComments.ts +381 -0
- package/src/operations/incidentRelations.ts +369 -0
- package/src/operations/incidents.ts +508 -0
- package/src/operations/index.ts +40 -0
- package/src/operations/metadata.ts +381 -0
- package/src/operations/officeConsents.ts +263 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/productSettings.ts +207 -0
- package/src/operations/sentinelOnboardingStates.ts +222 -0
- package/src/operations/sourceControlOperations.ts +206 -0
- package/src/operations/sourceControls.ts +320 -0
- package/src/operations/threatIntelligenceIndicator.ts +526 -0
- package/src/operations/threatIntelligenceIndicatorMetrics.ts +73 -0
- package/src/operations/threatIntelligenceIndicators.ts +190 -0
- package/src/operations/watchlistItems.ts +369 -0
- package/src/operations/watchlists.ts +316 -0
- package/src/operationsInterfaces/actions.ts +84 -0
- package/src/operationsInterfaces/alertRuleTemplates.ts +44 -0
- package/src/operationsInterfaces/alertRules.ts +75 -0
- package/src/operationsInterfaces/automationRules.ts +75 -0
- package/src/operationsInterfaces/bookmarkOperations.ts +32 -0
- package/src/operationsInterfaces/bookmarkRelations.ts +83 -0
- package/src/operationsInterfaces/bookmarks.ts +75 -0
- package/src/operationsInterfaces/dataConnectors.ts +106 -0
- package/src/operationsInterfaces/dataConnectorsCheckRequirementsOperations.ts +30 -0
- package/src/operationsInterfaces/domainWhois.ts +27 -0
- package/src/operationsInterfaces/entities.ts +98 -0
- package/src/operationsInterfaces/entitiesGetTimeline.ts +32 -0
- package/src/operationsInterfaces/entitiesRelations.ts +28 -0
- package/src/operationsInterfaces/entityQueries.ts +76 -0
- package/src/operationsInterfaces/entityQueryTemplates.ts +44 -0
- package/src/operationsInterfaces/entityRelations.ts +31 -0
- package/src/operationsInterfaces/iPGeodata.ts +24 -0
- package/src/operationsInterfaces/incidentComments.ts +83 -0
- package/src/operationsInterfaces/incidentRelations.ts +83 -0
- package/src/operationsInterfaces/incidents.ts +139 -0
- package/src/operationsInterfaces/index.ts +40 -0
- package/src/operationsInterfaces/metadata.ts +93 -0
- package/src/operationsInterfaces/officeConsents.ts +58 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/productSettings.ts +74 -0
- package/src/operationsInterfaces/sentinelOnboardingStates.ts +71 -0
- package/src/operationsInterfaces/sourceControlOperations.ts +32 -0
- package/src/operationsInterfaces/sourceControls.ts +75 -0
- package/src/operationsInterfaces/threatIntelligenceIndicator.ts +131 -0
- package/src/operationsInterfaces/threatIntelligenceIndicatorMetrics.ts +27 -0
- package/src/operationsInterfaces/threatIntelligenceIndicators.ts +29 -0
- package/src/operationsInterfaces/watchlistItems.ts +83 -0
- package/src/operationsInterfaces/watchlists.ts +77 -0
- package/src/securityInsights.ts +211 -0
- package/tsconfig.json +19 -0
- package/types/arm-securityinsight.d.ts +9299 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,366 @@
|
|
|
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
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Entities } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { SecurityInsights } from "../securityInsights";
|
|
15
|
+
import {
|
|
16
|
+
EntityUnion,
|
|
17
|
+
EntitiesListNextOptionalParams,
|
|
18
|
+
EntitiesListOptionalParams,
|
|
19
|
+
EntitiesListResponse,
|
|
20
|
+
EntitiesGetOptionalParams,
|
|
21
|
+
EntitiesGetResponse,
|
|
22
|
+
EntityExpandParameters,
|
|
23
|
+
EntitiesExpandOptionalParams,
|
|
24
|
+
EntitiesExpandResponse,
|
|
25
|
+
EntityItemQueryKind,
|
|
26
|
+
EntitiesQueriesOptionalParams,
|
|
27
|
+
EntitiesQueriesResponse,
|
|
28
|
+
EntityGetInsightsParameters,
|
|
29
|
+
EntitiesGetInsightsOptionalParams,
|
|
30
|
+
EntitiesGetInsightsResponse,
|
|
31
|
+
EntitiesListNextResponse
|
|
32
|
+
} from "../models";
|
|
33
|
+
|
|
34
|
+
/// <reference lib="esnext.asynciterable" />
|
|
35
|
+
/** Class containing Entities operations. */
|
|
36
|
+
export class EntitiesImpl implements Entities {
|
|
37
|
+
private readonly client: SecurityInsights;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Initialize a new instance of the class Entities class.
|
|
41
|
+
* @param client Reference to the service client
|
|
42
|
+
*/
|
|
43
|
+
constructor(client: SecurityInsights) {
|
|
44
|
+
this.client = client;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Gets all entities.
|
|
49
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
50
|
+
* @param workspaceName The name of the workspace.
|
|
51
|
+
* @param options The options parameters.
|
|
52
|
+
*/
|
|
53
|
+
public list(
|
|
54
|
+
resourceGroupName: string,
|
|
55
|
+
workspaceName: string,
|
|
56
|
+
options?: EntitiesListOptionalParams
|
|
57
|
+
): PagedAsyncIterableIterator<EntityUnion> {
|
|
58
|
+
const iter = this.listPagingAll(resourceGroupName, workspaceName, options);
|
|
59
|
+
return {
|
|
60
|
+
next() {
|
|
61
|
+
return iter.next();
|
|
62
|
+
},
|
|
63
|
+
[Symbol.asyncIterator]() {
|
|
64
|
+
return this;
|
|
65
|
+
},
|
|
66
|
+
byPage: () => {
|
|
67
|
+
return this.listPagingPage(resourceGroupName, workspaceName, options);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
private async *listPagingPage(
|
|
73
|
+
resourceGroupName: string,
|
|
74
|
+
workspaceName: string,
|
|
75
|
+
options?: EntitiesListOptionalParams
|
|
76
|
+
): AsyncIterableIterator<EntityUnion[]> {
|
|
77
|
+
let result = await this._list(resourceGroupName, workspaceName, options);
|
|
78
|
+
yield result.value || [];
|
|
79
|
+
let continuationToken = result.nextLink;
|
|
80
|
+
while (continuationToken) {
|
|
81
|
+
result = await this._listNext(
|
|
82
|
+
resourceGroupName,
|
|
83
|
+
workspaceName,
|
|
84
|
+
continuationToken,
|
|
85
|
+
options
|
|
86
|
+
);
|
|
87
|
+
continuationToken = result.nextLink;
|
|
88
|
+
yield result.value || [];
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
private async *listPagingAll(
|
|
93
|
+
resourceGroupName: string,
|
|
94
|
+
workspaceName: string,
|
|
95
|
+
options?: EntitiesListOptionalParams
|
|
96
|
+
): AsyncIterableIterator<EntityUnion> {
|
|
97
|
+
for await (const page of this.listPagingPage(
|
|
98
|
+
resourceGroupName,
|
|
99
|
+
workspaceName,
|
|
100
|
+
options
|
|
101
|
+
)) {
|
|
102
|
+
yield* page;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Gets all entities.
|
|
108
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
109
|
+
* @param workspaceName The name of the workspace.
|
|
110
|
+
* @param options The options parameters.
|
|
111
|
+
*/
|
|
112
|
+
private _list(
|
|
113
|
+
resourceGroupName: string,
|
|
114
|
+
workspaceName: string,
|
|
115
|
+
options?: EntitiesListOptionalParams
|
|
116
|
+
): Promise<EntitiesListResponse> {
|
|
117
|
+
return this.client.sendOperationRequest(
|
|
118
|
+
{ resourceGroupName, workspaceName, options },
|
|
119
|
+
listOperationSpec
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Gets an entity.
|
|
125
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
126
|
+
* @param workspaceName The name of the workspace.
|
|
127
|
+
* @param entityId entity ID
|
|
128
|
+
* @param options The options parameters.
|
|
129
|
+
*/
|
|
130
|
+
get(
|
|
131
|
+
resourceGroupName: string,
|
|
132
|
+
workspaceName: string,
|
|
133
|
+
entityId: string,
|
|
134
|
+
options?: EntitiesGetOptionalParams
|
|
135
|
+
): Promise<EntitiesGetResponse> {
|
|
136
|
+
return this.client.sendOperationRequest(
|
|
137
|
+
{ resourceGroupName, workspaceName, entityId, options },
|
|
138
|
+
getOperationSpec
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Expands an entity.
|
|
144
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
145
|
+
* @param workspaceName The name of the workspace.
|
|
146
|
+
* @param entityId entity ID
|
|
147
|
+
* @param parameters The parameters required to execute an expand operation on the given entity.
|
|
148
|
+
* @param options The options parameters.
|
|
149
|
+
*/
|
|
150
|
+
expand(
|
|
151
|
+
resourceGroupName: string,
|
|
152
|
+
workspaceName: string,
|
|
153
|
+
entityId: string,
|
|
154
|
+
parameters: EntityExpandParameters,
|
|
155
|
+
options?: EntitiesExpandOptionalParams
|
|
156
|
+
): Promise<EntitiesExpandResponse> {
|
|
157
|
+
return this.client.sendOperationRequest(
|
|
158
|
+
{ resourceGroupName, workspaceName, entityId, parameters, options },
|
|
159
|
+
expandOperationSpec
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Get Insights and Activities for an entity.
|
|
165
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
166
|
+
* @param workspaceName The name of the workspace.
|
|
167
|
+
* @param entityId entity ID
|
|
168
|
+
* @param kind The Kind parameter for queries
|
|
169
|
+
* @param options The options parameters.
|
|
170
|
+
*/
|
|
171
|
+
queries(
|
|
172
|
+
resourceGroupName: string,
|
|
173
|
+
workspaceName: string,
|
|
174
|
+
entityId: string,
|
|
175
|
+
kind: EntityItemQueryKind,
|
|
176
|
+
options?: EntitiesQueriesOptionalParams
|
|
177
|
+
): Promise<EntitiesQueriesResponse> {
|
|
178
|
+
return this.client.sendOperationRequest(
|
|
179
|
+
{ resourceGroupName, workspaceName, entityId, kind, options },
|
|
180
|
+
queriesOperationSpec
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Execute Insights for an entity.
|
|
186
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
187
|
+
* @param workspaceName The name of the workspace.
|
|
188
|
+
* @param entityId entity ID
|
|
189
|
+
* @param parameters The parameters required to execute insights on the given entity.
|
|
190
|
+
* @param options The options parameters.
|
|
191
|
+
*/
|
|
192
|
+
getInsights(
|
|
193
|
+
resourceGroupName: string,
|
|
194
|
+
workspaceName: string,
|
|
195
|
+
entityId: string,
|
|
196
|
+
parameters: EntityGetInsightsParameters,
|
|
197
|
+
options?: EntitiesGetInsightsOptionalParams
|
|
198
|
+
): Promise<EntitiesGetInsightsResponse> {
|
|
199
|
+
return this.client.sendOperationRequest(
|
|
200
|
+
{ resourceGroupName, workspaceName, entityId, parameters, options },
|
|
201
|
+
getInsightsOperationSpec
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* ListNext
|
|
207
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
208
|
+
* @param workspaceName The name of the workspace.
|
|
209
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
210
|
+
* @param options The options parameters.
|
|
211
|
+
*/
|
|
212
|
+
private _listNext(
|
|
213
|
+
resourceGroupName: string,
|
|
214
|
+
workspaceName: string,
|
|
215
|
+
nextLink: string,
|
|
216
|
+
options?: EntitiesListNextOptionalParams
|
|
217
|
+
): Promise<EntitiesListNextResponse> {
|
|
218
|
+
return this.client.sendOperationRequest(
|
|
219
|
+
{ resourceGroupName, workspaceName, nextLink, options },
|
|
220
|
+
listNextOperationSpec
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
// Operation Specifications
|
|
225
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
226
|
+
|
|
227
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
228
|
+
path:
|
|
229
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/entities",
|
|
230
|
+
httpMethod: "GET",
|
|
231
|
+
responses: {
|
|
232
|
+
200: {
|
|
233
|
+
bodyMapper: Mappers.EntityList
|
|
234
|
+
},
|
|
235
|
+
default: {
|
|
236
|
+
bodyMapper: Mappers.CloudError
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
queryParameters: [Parameters.apiVersion],
|
|
240
|
+
urlParameters: [
|
|
241
|
+
Parameters.$host,
|
|
242
|
+
Parameters.subscriptionId,
|
|
243
|
+
Parameters.resourceGroupName,
|
|
244
|
+
Parameters.workspaceName
|
|
245
|
+
],
|
|
246
|
+
headerParameters: [Parameters.accept],
|
|
247
|
+
serializer
|
|
248
|
+
};
|
|
249
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
250
|
+
path:
|
|
251
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/entities/{entityId}",
|
|
252
|
+
httpMethod: "GET",
|
|
253
|
+
responses: {
|
|
254
|
+
200: {
|
|
255
|
+
bodyMapper: Mappers.Entity
|
|
256
|
+
},
|
|
257
|
+
default: {
|
|
258
|
+
bodyMapper: Mappers.CloudError
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
queryParameters: [Parameters.apiVersion],
|
|
262
|
+
urlParameters: [
|
|
263
|
+
Parameters.$host,
|
|
264
|
+
Parameters.subscriptionId,
|
|
265
|
+
Parameters.resourceGroupName,
|
|
266
|
+
Parameters.workspaceName,
|
|
267
|
+
Parameters.entityId
|
|
268
|
+
],
|
|
269
|
+
headerParameters: [Parameters.accept],
|
|
270
|
+
serializer
|
|
271
|
+
};
|
|
272
|
+
const expandOperationSpec: coreClient.OperationSpec = {
|
|
273
|
+
path:
|
|
274
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/entities/{entityId}/expand",
|
|
275
|
+
httpMethod: "POST",
|
|
276
|
+
responses: {
|
|
277
|
+
200: {
|
|
278
|
+
bodyMapper: Mappers.EntityExpandResponse
|
|
279
|
+
},
|
|
280
|
+
default: {
|
|
281
|
+
bodyMapper: Mappers.CloudError
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
requestBody: Parameters.parameters1,
|
|
285
|
+
queryParameters: [Parameters.apiVersion],
|
|
286
|
+
urlParameters: [
|
|
287
|
+
Parameters.$host,
|
|
288
|
+
Parameters.subscriptionId,
|
|
289
|
+
Parameters.resourceGroupName,
|
|
290
|
+
Parameters.workspaceName,
|
|
291
|
+
Parameters.entityId
|
|
292
|
+
],
|
|
293
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
294
|
+
mediaType: "json",
|
|
295
|
+
serializer
|
|
296
|
+
};
|
|
297
|
+
const queriesOperationSpec: coreClient.OperationSpec = {
|
|
298
|
+
path:
|
|
299
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/entities/{entityId}/queries",
|
|
300
|
+
httpMethod: "GET",
|
|
301
|
+
responses: {
|
|
302
|
+
200: {
|
|
303
|
+
bodyMapper: Mappers.GetQueriesResponse
|
|
304
|
+
},
|
|
305
|
+
default: {
|
|
306
|
+
bodyMapper: Mappers.CloudError
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
queryParameters: [Parameters.apiVersion, Parameters.kind1],
|
|
310
|
+
urlParameters: [
|
|
311
|
+
Parameters.$host,
|
|
312
|
+
Parameters.subscriptionId,
|
|
313
|
+
Parameters.resourceGroupName,
|
|
314
|
+
Parameters.workspaceName,
|
|
315
|
+
Parameters.entityId
|
|
316
|
+
],
|
|
317
|
+
headerParameters: [Parameters.accept],
|
|
318
|
+
serializer
|
|
319
|
+
};
|
|
320
|
+
const getInsightsOperationSpec: coreClient.OperationSpec = {
|
|
321
|
+
path:
|
|
322
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/entities/{entityId}/getInsights",
|
|
323
|
+
httpMethod: "POST",
|
|
324
|
+
responses: {
|
|
325
|
+
200: {
|
|
326
|
+
bodyMapper: Mappers.EntityGetInsightsResponse
|
|
327
|
+
},
|
|
328
|
+
default: {
|
|
329
|
+
bodyMapper: Mappers.CloudError
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
requestBody: Parameters.parameters2,
|
|
333
|
+
queryParameters: [Parameters.apiVersion],
|
|
334
|
+
urlParameters: [
|
|
335
|
+
Parameters.$host,
|
|
336
|
+
Parameters.subscriptionId,
|
|
337
|
+
Parameters.resourceGroupName,
|
|
338
|
+
Parameters.workspaceName,
|
|
339
|
+
Parameters.entityId
|
|
340
|
+
],
|
|
341
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
342
|
+
mediaType: "json",
|
|
343
|
+
serializer
|
|
344
|
+
};
|
|
345
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
346
|
+
path: "{nextLink}",
|
|
347
|
+
httpMethod: "GET",
|
|
348
|
+
responses: {
|
|
349
|
+
200: {
|
|
350
|
+
bodyMapper: Mappers.EntityList
|
|
351
|
+
},
|
|
352
|
+
default: {
|
|
353
|
+
bodyMapper: Mappers.CloudError
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
queryParameters: [Parameters.apiVersion],
|
|
357
|
+
urlParameters: [
|
|
358
|
+
Parameters.$host,
|
|
359
|
+
Parameters.subscriptionId,
|
|
360
|
+
Parameters.resourceGroupName,
|
|
361
|
+
Parameters.workspaceName,
|
|
362
|
+
Parameters.nextLink
|
|
363
|
+
],
|
|
364
|
+
headerParameters: [Parameters.accept],
|
|
365
|
+
serializer
|
|
366
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
|
|
9
|
+
import { EntitiesGetTimeline } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
|
+
import * as Parameters from "../models/parameters";
|
|
13
|
+
import { SecurityInsights } from "../securityInsights";
|
|
14
|
+
import {
|
|
15
|
+
EntityTimelineParameters,
|
|
16
|
+
EntitiesGetTimelineListOptionalParams,
|
|
17
|
+
EntitiesGetTimelineListResponse
|
|
18
|
+
} from "../models";
|
|
19
|
+
|
|
20
|
+
/** Class containing EntitiesGetTimeline operations. */
|
|
21
|
+
export class EntitiesGetTimelineImpl implements EntitiesGetTimeline {
|
|
22
|
+
private readonly client: SecurityInsights;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Initialize a new instance of the class EntitiesGetTimeline class.
|
|
26
|
+
* @param client Reference to the service client
|
|
27
|
+
*/
|
|
28
|
+
constructor(client: SecurityInsights) {
|
|
29
|
+
this.client = client;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Timeline for an entity.
|
|
34
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
35
|
+
* @param workspaceName The name of the workspace.
|
|
36
|
+
* @param entityId entity ID
|
|
37
|
+
* @param parameters The parameters required to execute an timeline operation on the given entity.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
list(
|
|
41
|
+
resourceGroupName: string,
|
|
42
|
+
workspaceName: string,
|
|
43
|
+
entityId: string,
|
|
44
|
+
parameters: EntityTimelineParameters,
|
|
45
|
+
options?: EntitiesGetTimelineListOptionalParams
|
|
46
|
+
): Promise<EntitiesGetTimelineListResponse> {
|
|
47
|
+
return this.client.sendOperationRequest(
|
|
48
|
+
{ resourceGroupName, workspaceName, entityId, parameters, options },
|
|
49
|
+
listOperationSpec
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
// Operation Specifications
|
|
54
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
55
|
+
|
|
56
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
57
|
+
path:
|
|
58
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/entities/{entityId}/getTimeline",
|
|
59
|
+
httpMethod: "POST",
|
|
60
|
+
responses: {
|
|
61
|
+
200: {
|
|
62
|
+
bodyMapper: Mappers.EntityTimelineResponse
|
|
63
|
+
},
|
|
64
|
+
default: {
|
|
65
|
+
bodyMapper: Mappers.CloudError
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
requestBody: Parameters.parameters3,
|
|
69
|
+
queryParameters: [Parameters.apiVersion],
|
|
70
|
+
urlParameters: [
|
|
71
|
+
Parameters.$host,
|
|
72
|
+
Parameters.subscriptionId,
|
|
73
|
+
Parameters.resourceGroupName,
|
|
74
|
+
Parameters.workspaceName,
|
|
75
|
+
Parameters.entityId
|
|
76
|
+
],
|
|
77
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
78
|
+
mediaType: "json",
|
|
79
|
+
serializer
|
|
80
|
+
};
|
|
@@ -0,0 +1,216 @@
|
|
|
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
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { EntitiesRelations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { SecurityInsights } from "../securityInsights";
|
|
15
|
+
import {
|
|
16
|
+
Relation,
|
|
17
|
+
EntitiesRelationsListNextOptionalParams,
|
|
18
|
+
EntitiesRelationsListOptionalParams,
|
|
19
|
+
EntitiesRelationsListResponse,
|
|
20
|
+
EntitiesRelationsListNextResponse
|
|
21
|
+
} from "../models";
|
|
22
|
+
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing EntitiesRelations operations. */
|
|
25
|
+
export class EntitiesRelationsImpl implements EntitiesRelations {
|
|
26
|
+
private readonly client: SecurityInsights;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Initialize a new instance of the class EntitiesRelations class.
|
|
30
|
+
* @param client Reference to the service client
|
|
31
|
+
*/
|
|
32
|
+
constructor(client: SecurityInsights) {
|
|
33
|
+
this.client = client;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Gets all relations of an entity.
|
|
38
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
39
|
+
* @param workspaceName The name of the workspace.
|
|
40
|
+
* @param entityId entity ID
|
|
41
|
+
* @param options The options parameters.
|
|
42
|
+
*/
|
|
43
|
+
public list(
|
|
44
|
+
resourceGroupName: string,
|
|
45
|
+
workspaceName: string,
|
|
46
|
+
entityId: string,
|
|
47
|
+
options?: EntitiesRelationsListOptionalParams
|
|
48
|
+
): PagedAsyncIterableIterator<Relation> {
|
|
49
|
+
const iter = this.listPagingAll(
|
|
50
|
+
resourceGroupName,
|
|
51
|
+
workspaceName,
|
|
52
|
+
entityId,
|
|
53
|
+
options
|
|
54
|
+
);
|
|
55
|
+
return {
|
|
56
|
+
next() {
|
|
57
|
+
return iter.next();
|
|
58
|
+
},
|
|
59
|
+
[Symbol.asyncIterator]() {
|
|
60
|
+
return this;
|
|
61
|
+
},
|
|
62
|
+
byPage: () => {
|
|
63
|
+
return this.listPagingPage(
|
|
64
|
+
resourceGroupName,
|
|
65
|
+
workspaceName,
|
|
66
|
+
entityId,
|
|
67
|
+
options
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
private async *listPagingPage(
|
|
74
|
+
resourceGroupName: string,
|
|
75
|
+
workspaceName: string,
|
|
76
|
+
entityId: string,
|
|
77
|
+
options?: EntitiesRelationsListOptionalParams
|
|
78
|
+
): AsyncIterableIterator<Relation[]> {
|
|
79
|
+
let result = await this._list(
|
|
80
|
+
resourceGroupName,
|
|
81
|
+
workspaceName,
|
|
82
|
+
entityId,
|
|
83
|
+
options
|
|
84
|
+
);
|
|
85
|
+
yield result.value || [];
|
|
86
|
+
let continuationToken = result.nextLink;
|
|
87
|
+
while (continuationToken) {
|
|
88
|
+
result = await this._listNext(
|
|
89
|
+
resourceGroupName,
|
|
90
|
+
workspaceName,
|
|
91
|
+
entityId,
|
|
92
|
+
continuationToken,
|
|
93
|
+
options
|
|
94
|
+
);
|
|
95
|
+
continuationToken = result.nextLink;
|
|
96
|
+
yield result.value || [];
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
private async *listPagingAll(
|
|
101
|
+
resourceGroupName: string,
|
|
102
|
+
workspaceName: string,
|
|
103
|
+
entityId: string,
|
|
104
|
+
options?: EntitiesRelationsListOptionalParams
|
|
105
|
+
): AsyncIterableIterator<Relation> {
|
|
106
|
+
for await (const page of this.listPagingPage(
|
|
107
|
+
resourceGroupName,
|
|
108
|
+
workspaceName,
|
|
109
|
+
entityId,
|
|
110
|
+
options
|
|
111
|
+
)) {
|
|
112
|
+
yield* page;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Gets all relations of an entity.
|
|
118
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
119
|
+
* @param workspaceName The name of the workspace.
|
|
120
|
+
* @param entityId entity ID
|
|
121
|
+
* @param options The options parameters.
|
|
122
|
+
*/
|
|
123
|
+
private _list(
|
|
124
|
+
resourceGroupName: string,
|
|
125
|
+
workspaceName: string,
|
|
126
|
+
entityId: string,
|
|
127
|
+
options?: EntitiesRelationsListOptionalParams
|
|
128
|
+
): Promise<EntitiesRelationsListResponse> {
|
|
129
|
+
return this.client.sendOperationRequest(
|
|
130
|
+
{ resourceGroupName, workspaceName, entityId, options },
|
|
131
|
+
listOperationSpec
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* ListNext
|
|
137
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
138
|
+
* @param workspaceName The name of the workspace.
|
|
139
|
+
* @param entityId entity ID
|
|
140
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
141
|
+
* @param options The options parameters.
|
|
142
|
+
*/
|
|
143
|
+
private _listNext(
|
|
144
|
+
resourceGroupName: string,
|
|
145
|
+
workspaceName: string,
|
|
146
|
+
entityId: string,
|
|
147
|
+
nextLink: string,
|
|
148
|
+
options?: EntitiesRelationsListNextOptionalParams
|
|
149
|
+
): Promise<EntitiesRelationsListNextResponse> {
|
|
150
|
+
return this.client.sendOperationRequest(
|
|
151
|
+
{ resourceGroupName, workspaceName, entityId, nextLink, options },
|
|
152
|
+
listNextOperationSpec
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
// Operation Specifications
|
|
157
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
158
|
+
|
|
159
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
160
|
+
path:
|
|
161
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/entities/{entityId}/relations",
|
|
162
|
+
httpMethod: "GET",
|
|
163
|
+
responses: {
|
|
164
|
+
200: {
|
|
165
|
+
bodyMapper: Mappers.RelationList
|
|
166
|
+
},
|
|
167
|
+
default: {
|
|
168
|
+
bodyMapper: Mappers.CloudError
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
queryParameters: [
|
|
172
|
+
Parameters.apiVersion,
|
|
173
|
+
Parameters.filter,
|
|
174
|
+
Parameters.orderby,
|
|
175
|
+
Parameters.top,
|
|
176
|
+
Parameters.skipToken
|
|
177
|
+
],
|
|
178
|
+
urlParameters: [
|
|
179
|
+
Parameters.$host,
|
|
180
|
+
Parameters.subscriptionId,
|
|
181
|
+
Parameters.resourceGroupName,
|
|
182
|
+
Parameters.workspaceName,
|
|
183
|
+
Parameters.entityId
|
|
184
|
+
],
|
|
185
|
+
headerParameters: [Parameters.accept],
|
|
186
|
+
serializer
|
|
187
|
+
};
|
|
188
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
189
|
+
path: "{nextLink}",
|
|
190
|
+
httpMethod: "GET",
|
|
191
|
+
responses: {
|
|
192
|
+
200: {
|
|
193
|
+
bodyMapper: Mappers.RelationList
|
|
194
|
+
},
|
|
195
|
+
default: {
|
|
196
|
+
bodyMapper: Mappers.CloudError
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
queryParameters: [
|
|
200
|
+
Parameters.apiVersion,
|
|
201
|
+
Parameters.filter,
|
|
202
|
+
Parameters.orderby,
|
|
203
|
+
Parameters.top,
|
|
204
|
+
Parameters.skipToken
|
|
205
|
+
],
|
|
206
|
+
urlParameters: [
|
|
207
|
+
Parameters.$host,
|
|
208
|
+
Parameters.subscriptionId,
|
|
209
|
+
Parameters.resourceGroupName,
|
|
210
|
+
Parameters.workspaceName,
|
|
211
|
+
Parameters.nextLink,
|
|
212
|
+
Parameters.entityId
|
|
213
|
+
],
|
|
214
|
+
headerParameters: [Parameters.accept],
|
|
215
|
+
serializer
|
|
216
|
+
};
|