@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,315 @@
|
|
|
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 { EntityQueries } 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
|
+
EntityQueryUnion,
|
|
17
|
+
EntityQueriesListNextOptionalParams,
|
|
18
|
+
EntityQueriesListOptionalParams,
|
|
19
|
+
EntityQueriesListResponse,
|
|
20
|
+
EntityQueriesGetOptionalParams,
|
|
21
|
+
EntityQueriesGetResponse,
|
|
22
|
+
CustomEntityQueryUnion,
|
|
23
|
+
EntityQueriesCreateOrUpdateOptionalParams,
|
|
24
|
+
EntityQueriesCreateOrUpdateResponse,
|
|
25
|
+
EntityQueriesDeleteOptionalParams,
|
|
26
|
+
EntityQueriesListNextResponse
|
|
27
|
+
} from "../models";
|
|
28
|
+
|
|
29
|
+
/// <reference lib="esnext.asynciterable" />
|
|
30
|
+
/** Class containing EntityQueries operations. */
|
|
31
|
+
export class EntityQueriesImpl implements EntityQueries {
|
|
32
|
+
private readonly client: SecurityInsights;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Initialize a new instance of the class EntityQueries class.
|
|
36
|
+
* @param client Reference to the service client
|
|
37
|
+
*/
|
|
38
|
+
constructor(client: SecurityInsights) {
|
|
39
|
+
this.client = client;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Gets all entity queries.
|
|
44
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
45
|
+
* @param workspaceName The name of the workspace.
|
|
46
|
+
* @param options The options parameters.
|
|
47
|
+
*/
|
|
48
|
+
public list(
|
|
49
|
+
resourceGroupName: string,
|
|
50
|
+
workspaceName: string,
|
|
51
|
+
options?: EntityQueriesListOptionalParams
|
|
52
|
+
): PagedAsyncIterableIterator<EntityQueryUnion> {
|
|
53
|
+
const iter = this.listPagingAll(resourceGroupName, workspaceName, options);
|
|
54
|
+
return {
|
|
55
|
+
next() {
|
|
56
|
+
return iter.next();
|
|
57
|
+
},
|
|
58
|
+
[Symbol.asyncIterator]() {
|
|
59
|
+
return this;
|
|
60
|
+
},
|
|
61
|
+
byPage: () => {
|
|
62
|
+
return this.listPagingPage(resourceGroupName, workspaceName, options);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
private async *listPagingPage(
|
|
68
|
+
resourceGroupName: string,
|
|
69
|
+
workspaceName: string,
|
|
70
|
+
options?: EntityQueriesListOptionalParams
|
|
71
|
+
): AsyncIterableIterator<EntityQueryUnion[]> {
|
|
72
|
+
let result = await this._list(resourceGroupName, workspaceName, options);
|
|
73
|
+
yield result.value || [];
|
|
74
|
+
let continuationToken = result.nextLink;
|
|
75
|
+
while (continuationToken) {
|
|
76
|
+
result = await this._listNext(
|
|
77
|
+
resourceGroupName,
|
|
78
|
+
workspaceName,
|
|
79
|
+
continuationToken,
|
|
80
|
+
options
|
|
81
|
+
);
|
|
82
|
+
continuationToken = result.nextLink;
|
|
83
|
+
yield result.value || [];
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
private async *listPagingAll(
|
|
88
|
+
resourceGroupName: string,
|
|
89
|
+
workspaceName: string,
|
|
90
|
+
options?: EntityQueriesListOptionalParams
|
|
91
|
+
): AsyncIterableIterator<EntityQueryUnion> {
|
|
92
|
+
for await (const page of this.listPagingPage(
|
|
93
|
+
resourceGroupName,
|
|
94
|
+
workspaceName,
|
|
95
|
+
options
|
|
96
|
+
)) {
|
|
97
|
+
yield* page;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Gets all entity queries.
|
|
103
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
104
|
+
* @param workspaceName The name of the workspace.
|
|
105
|
+
* @param options The options parameters.
|
|
106
|
+
*/
|
|
107
|
+
private _list(
|
|
108
|
+
resourceGroupName: string,
|
|
109
|
+
workspaceName: string,
|
|
110
|
+
options?: EntityQueriesListOptionalParams
|
|
111
|
+
): Promise<EntityQueriesListResponse> {
|
|
112
|
+
return this.client.sendOperationRequest(
|
|
113
|
+
{ resourceGroupName, workspaceName, options },
|
|
114
|
+
listOperationSpec
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Gets an entity query.
|
|
120
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
121
|
+
* @param workspaceName The name of the workspace.
|
|
122
|
+
* @param entityQueryId entity query ID
|
|
123
|
+
* @param options The options parameters.
|
|
124
|
+
*/
|
|
125
|
+
get(
|
|
126
|
+
resourceGroupName: string,
|
|
127
|
+
workspaceName: string,
|
|
128
|
+
entityQueryId: string,
|
|
129
|
+
options?: EntityQueriesGetOptionalParams
|
|
130
|
+
): Promise<EntityQueriesGetResponse> {
|
|
131
|
+
return this.client.sendOperationRequest(
|
|
132
|
+
{ resourceGroupName, workspaceName, entityQueryId, options },
|
|
133
|
+
getOperationSpec
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Creates or updates the entity query.
|
|
139
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
140
|
+
* @param workspaceName The name of the workspace.
|
|
141
|
+
* @param entityQueryId entity query ID
|
|
142
|
+
* @param entityQuery The entity query we want to create or update
|
|
143
|
+
* @param options The options parameters.
|
|
144
|
+
*/
|
|
145
|
+
createOrUpdate(
|
|
146
|
+
resourceGroupName: string,
|
|
147
|
+
workspaceName: string,
|
|
148
|
+
entityQueryId: string,
|
|
149
|
+
entityQuery: CustomEntityQueryUnion,
|
|
150
|
+
options?: EntityQueriesCreateOrUpdateOptionalParams
|
|
151
|
+
): Promise<EntityQueriesCreateOrUpdateResponse> {
|
|
152
|
+
return this.client.sendOperationRequest(
|
|
153
|
+
{ resourceGroupName, workspaceName, entityQueryId, entityQuery, options },
|
|
154
|
+
createOrUpdateOperationSpec
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Delete the entity query.
|
|
160
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
161
|
+
* @param workspaceName The name of the workspace.
|
|
162
|
+
* @param entityQueryId entity query ID
|
|
163
|
+
* @param options The options parameters.
|
|
164
|
+
*/
|
|
165
|
+
delete(
|
|
166
|
+
resourceGroupName: string,
|
|
167
|
+
workspaceName: string,
|
|
168
|
+
entityQueryId: string,
|
|
169
|
+
options?: EntityQueriesDeleteOptionalParams
|
|
170
|
+
): Promise<void> {
|
|
171
|
+
return this.client.sendOperationRequest(
|
|
172
|
+
{ resourceGroupName, workspaceName, entityQueryId, options },
|
|
173
|
+
deleteOperationSpec
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* ListNext
|
|
179
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
180
|
+
* @param workspaceName The name of the workspace.
|
|
181
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
182
|
+
* @param options The options parameters.
|
|
183
|
+
*/
|
|
184
|
+
private _listNext(
|
|
185
|
+
resourceGroupName: string,
|
|
186
|
+
workspaceName: string,
|
|
187
|
+
nextLink: string,
|
|
188
|
+
options?: EntityQueriesListNextOptionalParams
|
|
189
|
+
): Promise<EntityQueriesListNextResponse> {
|
|
190
|
+
return this.client.sendOperationRequest(
|
|
191
|
+
{ resourceGroupName, workspaceName, nextLink, options },
|
|
192
|
+
listNextOperationSpec
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
// Operation Specifications
|
|
197
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
198
|
+
|
|
199
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
200
|
+
path:
|
|
201
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/entityQueries",
|
|
202
|
+
httpMethod: "GET",
|
|
203
|
+
responses: {
|
|
204
|
+
200: {
|
|
205
|
+
bodyMapper: Mappers.EntityQueryList
|
|
206
|
+
},
|
|
207
|
+
default: {
|
|
208
|
+
bodyMapper: Mappers.CloudError
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
queryParameters: [Parameters.apiVersion, Parameters.kind],
|
|
212
|
+
urlParameters: [
|
|
213
|
+
Parameters.$host,
|
|
214
|
+
Parameters.subscriptionId,
|
|
215
|
+
Parameters.resourceGroupName,
|
|
216
|
+
Parameters.workspaceName
|
|
217
|
+
],
|
|
218
|
+
headerParameters: [Parameters.accept],
|
|
219
|
+
serializer
|
|
220
|
+
};
|
|
221
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
222
|
+
path:
|
|
223
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/entityQueries/{entityQueryId}",
|
|
224
|
+
httpMethod: "GET",
|
|
225
|
+
responses: {
|
|
226
|
+
200: {
|
|
227
|
+
bodyMapper: Mappers.EntityQuery
|
|
228
|
+
},
|
|
229
|
+
default: {
|
|
230
|
+
bodyMapper: Mappers.CloudError
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
queryParameters: [Parameters.apiVersion],
|
|
234
|
+
urlParameters: [
|
|
235
|
+
Parameters.$host,
|
|
236
|
+
Parameters.subscriptionId,
|
|
237
|
+
Parameters.resourceGroupName,
|
|
238
|
+
Parameters.workspaceName,
|
|
239
|
+
Parameters.entityQueryId
|
|
240
|
+
],
|
|
241
|
+
headerParameters: [Parameters.accept],
|
|
242
|
+
serializer
|
|
243
|
+
};
|
|
244
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
245
|
+
path:
|
|
246
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/entityQueries/{entityQueryId}",
|
|
247
|
+
httpMethod: "PUT",
|
|
248
|
+
responses: {
|
|
249
|
+
200: {
|
|
250
|
+
bodyMapper: Mappers.EntityQuery
|
|
251
|
+
},
|
|
252
|
+
201: {
|
|
253
|
+
bodyMapper: Mappers.EntityQuery
|
|
254
|
+
},
|
|
255
|
+
default: {
|
|
256
|
+
bodyMapper: Mappers.CloudError
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
requestBody: Parameters.entityQuery,
|
|
260
|
+
queryParameters: [Parameters.apiVersion],
|
|
261
|
+
urlParameters: [
|
|
262
|
+
Parameters.$host,
|
|
263
|
+
Parameters.subscriptionId,
|
|
264
|
+
Parameters.resourceGroupName,
|
|
265
|
+
Parameters.workspaceName,
|
|
266
|
+
Parameters.entityQueryId
|
|
267
|
+
],
|
|
268
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
269
|
+
mediaType: "json",
|
|
270
|
+
serializer
|
|
271
|
+
};
|
|
272
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
273
|
+
path:
|
|
274
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/entityQueries/{entityQueryId}",
|
|
275
|
+
httpMethod: "DELETE",
|
|
276
|
+
responses: {
|
|
277
|
+
200: {},
|
|
278
|
+
204: {},
|
|
279
|
+
default: {
|
|
280
|
+
bodyMapper: Mappers.CloudError
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
queryParameters: [Parameters.apiVersion],
|
|
284
|
+
urlParameters: [
|
|
285
|
+
Parameters.$host,
|
|
286
|
+
Parameters.subscriptionId,
|
|
287
|
+
Parameters.resourceGroupName,
|
|
288
|
+
Parameters.workspaceName,
|
|
289
|
+
Parameters.entityQueryId
|
|
290
|
+
],
|
|
291
|
+
headerParameters: [Parameters.accept],
|
|
292
|
+
serializer
|
|
293
|
+
};
|
|
294
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
295
|
+
path: "{nextLink}",
|
|
296
|
+
httpMethod: "GET",
|
|
297
|
+
responses: {
|
|
298
|
+
200: {
|
|
299
|
+
bodyMapper: Mappers.EntityQueryList
|
|
300
|
+
},
|
|
301
|
+
default: {
|
|
302
|
+
bodyMapper: Mappers.CloudError
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
queryParameters: [Parameters.apiVersion, Parameters.kind],
|
|
306
|
+
urlParameters: [
|
|
307
|
+
Parameters.$host,
|
|
308
|
+
Parameters.subscriptionId,
|
|
309
|
+
Parameters.resourceGroupName,
|
|
310
|
+
Parameters.workspaceName,
|
|
311
|
+
Parameters.nextLink
|
|
312
|
+
],
|
|
313
|
+
headerParameters: [Parameters.accept],
|
|
314
|
+
serializer
|
|
315
|
+
};
|
|
@@ -0,0 +1,221 @@
|
|
|
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 { EntityQueryTemplates } 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
|
+
EntityQueryTemplateUnion,
|
|
17
|
+
EntityQueryTemplatesListNextOptionalParams,
|
|
18
|
+
EntityQueryTemplatesListOptionalParams,
|
|
19
|
+
EntityQueryTemplatesListResponse,
|
|
20
|
+
EntityQueryTemplatesGetOptionalParams,
|
|
21
|
+
EntityQueryTemplatesGetResponse,
|
|
22
|
+
EntityQueryTemplatesListNextResponse
|
|
23
|
+
} from "../models";
|
|
24
|
+
|
|
25
|
+
/// <reference lib="esnext.asynciterable" />
|
|
26
|
+
/** Class containing EntityQueryTemplates operations. */
|
|
27
|
+
export class EntityQueryTemplatesImpl implements EntityQueryTemplates {
|
|
28
|
+
private readonly client: SecurityInsights;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Initialize a new instance of the class EntityQueryTemplates class.
|
|
32
|
+
* @param client Reference to the service client
|
|
33
|
+
*/
|
|
34
|
+
constructor(client: SecurityInsights) {
|
|
35
|
+
this.client = client;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Gets all entity query templates.
|
|
40
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
41
|
+
* @param workspaceName The name of the workspace.
|
|
42
|
+
* @param options The options parameters.
|
|
43
|
+
*/
|
|
44
|
+
public list(
|
|
45
|
+
resourceGroupName: string,
|
|
46
|
+
workspaceName: string,
|
|
47
|
+
options?: EntityQueryTemplatesListOptionalParams
|
|
48
|
+
): PagedAsyncIterableIterator<EntityQueryTemplateUnion> {
|
|
49
|
+
const iter = this.listPagingAll(resourceGroupName, workspaceName, options);
|
|
50
|
+
return {
|
|
51
|
+
next() {
|
|
52
|
+
return iter.next();
|
|
53
|
+
},
|
|
54
|
+
[Symbol.asyncIterator]() {
|
|
55
|
+
return this;
|
|
56
|
+
},
|
|
57
|
+
byPage: () => {
|
|
58
|
+
return this.listPagingPage(resourceGroupName, workspaceName, options);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
private async *listPagingPage(
|
|
64
|
+
resourceGroupName: string,
|
|
65
|
+
workspaceName: string,
|
|
66
|
+
options?: EntityQueryTemplatesListOptionalParams
|
|
67
|
+
): AsyncIterableIterator<EntityQueryTemplateUnion[]> {
|
|
68
|
+
let result = await this._list(resourceGroupName, workspaceName, options);
|
|
69
|
+
yield result.value || [];
|
|
70
|
+
let continuationToken = result.nextLink;
|
|
71
|
+
while (continuationToken) {
|
|
72
|
+
result = await this._listNext(
|
|
73
|
+
resourceGroupName,
|
|
74
|
+
workspaceName,
|
|
75
|
+
continuationToken,
|
|
76
|
+
options
|
|
77
|
+
);
|
|
78
|
+
continuationToken = result.nextLink;
|
|
79
|
+
yield result.value || [];
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
private async *listPagingAll(
|
|
84
|
+
resourceGroupName: string,
|
|
85
|
+
workspaceName: string,
|
|
86
|
+
options?: EntityQueryTemplatesListOptionalParams
|
|
87
|
+
): AsyncIterableIterator<EntityQueryTemplateUnion> {
|
|
88
|
+
for await (const page of this.listPagingPage(
|
|
89
|
+
resourceGroupName,
|
|
90
|
+
workspaceName,
|
|
91
|
+
options
|
|
92
|
+
)) {
|
|
93
|
+
yield* page;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Gets all entity query templates.
|
|
99
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
100
|
+
* @param workspaceName The name of the workspace.
|
|
101
|
+
* @param options The options parameters.
|
|
102
|
+
*/
|
|
103
|
+
private _list(
|
|
104
|
+
resourceGroupName: string,
|
|
105
|
+
workspaceName: string,
|
|
106
|
+
options?: EntityQueryTemplatesListOptionalParams
|
|
107
|
+
): Promise<EntityQueryTemplatesListResponse> {
|
|
108
|
+
return this.client.sendOperationRequest(
|
|
109
|
+
{ resourceGroupName, workspaceName, options },
|
|
110
|
+
listOperationSpec
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Gets an entity query.
|
|
116
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
117
|
+
* @param workspaceName The name of the workspace.
|
|
118
|
+
* @param entityQueryTemplateId entity query template ID
|
|
119
|
+
* @param options The options parameters.
|
|
120
|
+
*/
|
|
121
|
+
get(
|
|
122
|
+
resourceGroupName: string,
|
|
123
|
+
workspaceName: string,
|
|
124
|
+
entityQueryTemplateId: string,
|
|
125
|
+
options?: EntityQueryTemplatesGetOptionalParams
|
|
126
|
+
): Promise<EntityQueryTemplatesGetResponse> {
|
|
127
|
+
return this.client.sendOperationRequest(
|
|
128
|
+
{ resourceGroupName, workspaceName, entityQueryTemplateId, options },
|
|
129
|
+
getOperationSpec
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* ListNext
|
|
135
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
136
|
+
* @param workspaceName The name of the workspace.
|
|
137
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
138
|
+
* @param options The options parameters.
|
|
139
|
+
*/
|
|
140
|
+
private _listNext(
|
|
141
|
+
resourceGroupName: string,
|
|
142
|
+
workspaceName: string,
|
|
143
|
+
nextLink: string,
|
|
144
|
+
options?: EntityQueryTemplatesListNextOptionalParams
|
|
145
|
+
): Promise<EntityQueryTemplatesListNextResponse> {
|
|
146
|
+
return this.client.sendOperationRequest(
|
|
147
|
+
{ resourceGroupName, workspaceName, nextLink, options },
|
|
148
|
+
listNextOperationSpec
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
// Operation Specifications
|
|
153
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
154
|
+
|
|
155
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
156
|
+
path:
|
|
157
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/entityQueryTemplates",
|
|
158
|
+
httpMethod: "GET",
|
|
159
|
+
responses: {
|
|
160
|
+
200: {
|
|
161
|
+
bodyMapper: Mappers.EntityQueryTemplateList
|
|
162
|
+
},
|
|
163
|
+
default: {
|
|
164
|
+
bodyMapper: Mappers.CloudError
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
queryParameters: [Parameters.apiVersion, Parameters.kind2],
|
|
168
|
+
urlParameters: [
|
|
169
|
+
Parameters.$host,
|
|
170
|
+
Parameters.subscriptionId,
|
|
171
|
+
Parameters.resourceGroupName,
|
|
172
|
+
Parameters.workspaceName
|
|
173
|
+
],
|
|
174
|
+
headerParameters: [Parameters.accept],
|
|
175
|
+
serializer
|
|
176
|
+
};
|
|
177
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
178
|
+
path:
|
|
179
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/entityQueryTemplates/{entityQueryTemplateId}",
|
|
180
|
+
httpMethod: "GET",
|
|
181
|
+
responses: {
|
|
182
|
+
200: {
|
|
183
|
+
bodyMapper: Mappers.EntityQueryTemplate
|
|
184
|
+
},
|
|
185
|
+
default: {
|
|
186
|
+
bodyMapper: Mappers.CloudError
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
queryParameters: [Parameters.apiVersion],
|
|
190
|
+
urlParameters: [
|
|
191
|
+
Parameters.$host,
|
|
192
|
+
Parameters.subscriptionId,
|
|
193
|
+
Parameters.resourceGroupName,
|
|
194
|
+
Parameters.workspaceName,
|
|
195
|
+
Parameters.entityQueryTemplateId
|
|
196
|
+
],
|
|
197
|
+
headerParameters: [Parameters.accept],
|
|
198
|
+
serializer
|
|
199
|
+
};
|
|
200
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
201
|
+
path: "{nextLink}",
|
|
202
|
+
httpMethod: "GET",
|
|
203
|
+
responses: {
|
|
204
|
+
200: {
|
|
205
|
+
bodyMapper: Mappers.EntityQueryTemplateList
|
|
206
|
+
},
|
|
207
|
+
default: {
|
|
208
|
+
bodyMapper: Mappers.CloudError
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
queryParameters: [Parameters.apiVersion, Parameters.kind2],
|
|
212
|
+
urlParameters: [
|
|
213
|
+
Parameters.$host,
|
|
214
|
+
Parameters.subscriptionId,
|
|
215
|
+
Parameters.resourceGroupName,
|
|
216
|
+
Parameters.workspaceName,
|
|
217
|
+
Parameters.nextLink
|
|
218
|
+
],
|
|
219
|
+
headerParameters: [Parameters.accept],
|
|
220
|
+
serializer
|
|
221
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
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 { EntityRelations } 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
|
+
EntityRelationsGetRelationOptionalParams,
|
|
16
|
+
EntityRelationsGetRelationResponse
|
|
17
|
+
} from "../models";
|
|
18
|
+
|
|
19
|
+
/** Class containing EntityRelations operations. */
|
|
20
|
+
export class EntityRelationsImpl implements EntityRelations {
|
|
21
|
+
private readonly client: SecurityInsights;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Initialize a new instance of the class EntityRelations class.
|
|
25
|
+
* @param client Reference to the service client
|
|
26
|
+
*/
|
|
27
|
+
constructor(client: SecurityInsights) {
|
|
28
|
+
this.client = client;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Gets an entity relation.
|
|
33
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
34
|
+
* @param workspaceName The name of the workspace.
|
|
35
|
+
* @param entityId entity ID
|
|
36
|
+
* @param relationName Relation Name
|
|
37
|
+
* @param options The options parameters.
|
|
38
|
+
*/
|
|
39
|
+
getRelation(
|
|
40
|
+
resourceGroupName: string,
|
|
41
|
+
workspaceName: string,
|
|
42
|
+
entityId: string,
|
|
43
|
+
relationName: string,
|
|
44
|
+
options?: EntityRelationsGetRelationOptionalParams
|
|
45
|
+
): Promise<EntityRelationsGetRelationResponse> {
|
|
46
|
+
return this.client.sendOperationRequest(
|
|
47
|
+
{ resourceGroupName, workspaceName, entityId, relationName, options },
|
|
48
|
+
getRelationOperationSpec
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
// Operation Specifications
|
|
53
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
54
|
+
|
|
55
|
+
const getRelationOperationSpec: coreClient.OperationSpec = {
|
|
56
|
+
path:
|
|
57
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/entities/{entityId}/relations/{relationName}",
|
|
58
|
+
httpMethod: "GET",
|
|
59
|
+
responses: {
|
|
60
|
+
200: {
|
|
61
|
+
bodyMapper: Mappers.Relation
|
|
62
|
+
},
|
|
63
|
+
default: {
|
|
64
|
+
bodyMapper: Mappers.CloudError
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
queryParameters: [Parameters.apiVersion],
|
|
68
|
+
urlParameters: [
|
|
69
|
+
Parameters.$host,
|
|
70
|
+
Parameters.subscriptionId,
|
|
71
|
+
Parameters.resourceGroupName,
|
|
72
|
+
Parameters.workspaceName,
|
|
73
|
+
Parameters.relationName,
|
|
74
|
+
Parameters.entityId
|
|
75
|
+
],
|
|
76
|
+
headerParameters: [Parameters.accept],
|
|
77
|
+
serializer
|
|
78
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
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 { IPGeodata } 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 { IPGeodataGetOptionalParams, IPGeodataGetResponse } from "../models";
|
|
15
|
+
|
|
16
|
+
/** Class containing IPGeodata operations. */
|
|
17
|
+
export class IPGeodataImpl implements IPGeodata {
|
|
18
|
+
private readonly client: SecurityInsights;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Initialize a new instance of the class IPGeodata class.
|
|
22
|
+
* @param client Reference to the service client
|
|
23
|
+
*/
|
|
24
|
+
constructor(client: SecurityInsights) {
|
|
25
|
+
this.client = client;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Get geodata for a single IP address
|
|
30
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
31
|
+
* @param ipAddress IP address (v4 or v6) to be enriched
|
|
32
|
+
* @param options The options parameters.
|
|
33
|
+
*/
|
|
34
|
+
get(
|
|
35
|
+
resourceGroupName: string,
|
|
36
|
+
ipAddress: string,
|
|
37
|
+
options?: IPGeodataGetOptionalParams
|
|
38
|
+
): Promise<IPGeodataGetResponse> {
|
|
39
|
+
return this.client.sendOperationRequest(
|
|
40
|
+
{ resourceGroupName, ipAddress, options },
|
|
41
|
+
getOperationSpec
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
// Operation Specifications
|
|
46
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
47
|
+
|
|
48
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
49
|
+
path:
|
|
50
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityInsights/enrichment/ip/geodata/",
|
|
51
|
+
httpMethod: "GET",
|
|
52
|
+
responses: {
|
|
53
|
+
200: {
|
|
54
|
+
bodyMapper: Mappers.EnrichmentIpGeodata
|
|
55
|
+
},
|
|
56
|
+
default: {
|
|
57
|
+
bodyMapper: Mappers.CloudError
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
queryParameters: [Parameters.apiVersion, Parameters.ipAddress],
|
|
61
|
+
urlParameters: [
|
|
62
|
+
Parameters.$host,
|
|
63
|
+
Parameters.subscriptionId,
|
|
64
|
+
Parameters.resourceGroupName
|
|
65
|
+
],
|
|
66
|
+
headerParameters: [Parameters.accept],
|
|
67
|
+
serializer
|
|
68
|
+
};
|