@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,413 @@
|
|
|
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 { DataConnectors } 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
|
+
DataConnectorUnion,
|
|
17
|
+
DataConnectorsListNextOptionalParams,
|
|
18
|
+
DataConnectorsListOptionalParams,
|
|
19
|
+
DataConnectorsListResponse,
|
|
20
|
+
DataConnectorsGetOptionalParams,
|
|
21
|
+
DataConnectorsGetResponse,
|
|
22
|
+
DataConnectorsCreateOrUpdateOptionalParams,
|
|
23
|
+
DataConnectorsCreateOrUpdateResponse,
|
|
24
|
+
DataConnectorsDeleteOptionalParams,
|
|
25
|
+
DataConnectorConnectBody,
|
|
26
|
+
DataConnectorsConnectOptionalParams,
|
|
27
|
+
DataConnectorsDisconnectOptionalParams,
|
|
28
|
+
DataConnectorsListNextResponse
|
|
29
|
+
} from "../models";
|
|
30
|
+
|
|
31
|
+
/// <reference lib="esnext.asynciterable" />
|
|
32
|
+
/** Class containing DataConnectors operations. */
|
|
33
|
+
export class DataConnectorsImpl implements DataConnectors {
|
|
34
|
+
private readonly client: SecurityInsights;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Initialize a new instance of the class DataConnectors class.
|
|
38
|
+
* @param client Reference to the service client
|
|
39
|
+
*/
|
|
40
|
+
constructor(client: SecurityInsights) {
|
|
41
|
+
this.client = client;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Gets all data connectors.
|
|
46
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
47
|
+
* @param workspaceName The name of the workspace.
|
|
48
|
+
* @param options The options parameters.
|
|
49
|
+
*/
|
|
50
|
+
public list(
|
|
51
|
+
resourceGroupName: string,
|
|
52
|
+
workspaceName: string,
|
|
53
|
+
options?: DataConnectorsListOptionalParams
|
|
54
|
+
): PagedAsyncIterableIterator<DataConnectorUnion> {
|
|
55
|
+
const iter = this.listPagingAll(resourceGroupName, workspaceName, options);
|
|
56
|
+
return {
|
|
57
|
+
next() {
|
|
58
|
+
return iter.next();
|
|
59
|
+
},
|
|
60
|
+
[Symbol.asyncIterator]() {
|
|
61
|
+
return this;
|
|
62
|
+
},
|
|
63
|
+
byPage: () => {
|
|
64
|
+
return this.listPagingPage(resourceGroupName, workspaceName, options);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
private async *listPagingPage(
|
|
70
|
+
resourceGroupName: string,
|
|
71
|
+
workspaceName: string,
|
|
72
|
+
options?: DataConnectorsListOptionalParams
|
|
73
|
+
): AsyncIterableIterator<DataConnectorUnion[]> {
|
|
74
|
+
let result = await this._list(resourceGroupName, workspaceName, options);
|
|
75
|
+
yield result.value || [];
|
|
76
|
+
let continuationToken = result.nextLink;
|
|
77
|
+
while (continuationToken) {
|
|
78
|
+
result = await this._listNext(
|
|
79
|
+
resourceGroupName,
|
|
80
|
+
workspaceName,
|
|
81
|
+
continuationToken,
|
|
82
|
+
options
|
|
83
|
+
);
|
|
84
|
+
continuationToken = result.nextLink;
|
|
85
|
+
yield result.value || [];
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
private async *listPagingAll(
|
|
90
|
+
resourceGroupName: string,
|
|
91
|
+
workspaceName: string,
|
|
92
|
+
options?: DataConnectorsListOptionalParams
|
|
93
|
+
): AsyncIterableIterator<DataConnectorUnion> {
|
|
94
|
+
for await (const page of this.listPagingPage(
|
|
95
|
+
resourceGroupName,
|
|
96
|
+
workspaceName,
|
|
97
|
+
options
|
|
98
|
+
)) {
|
|
99
|
+
yield* page;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Gets all data connectors.
|
|
105
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
106
|
+
* @param workspaceName The name of the workspace.
|
|
107
|
+
* @param options The options parameters.
|
|
108
|
+
*/
|
|
109
|
+
private _list(
|
|
110
|
+
resourceGroupName: string,
|
|
111
|
+
workspaceName: string,
|
|
112
|
+
options?: DataConnectorsListOptionalParams
|
|
113
|
+
): Promise<DataConnectorsListResponse> {
|
|
114
|
+
return this.client.sendOperationRequest(
|
|
115
|
+
{ resourceGroupName, workspaceName, options },
|
|
116
|
+
listOperationSpec
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Gets a data connector.
|
|
122
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
123
|
+
* @param workspaceName The name of the workspace.
|
|
124
|
+
* @param dataConnectorId Connector ID
|
|
125
|
+
* @param options The options parameters.
|
|
126
|
+
*/
|
|
127
|
+
get(
|
|
128
|
+
resourceGroupName: string,
|
|
129
|
+
workspaceName: string,
|
|
130
|
+
dataConnectorId: string,
|
|
131
|
+
options?: DataConnectorsGetOptionalParams
|
|
132
|
+
): Promise<DataConnectorsGetResponse> {
|
|
133
|
+
return this.client.sendOperationRequest(
|
|
134
|
+
{ resourceGroupName, workspaceName, dataConnectorId, options },
|
|
135
|
+
getOperationSpec
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Creates or updates the data connector.
|
|
141
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
142
|
+
* @param workspaceName The name of the workspace.
|
|
143
|
+
* @param dataConnectorId Connector ID
|
|
144
|
+
* @param dataConnector The data connector
|
|
145
|
+
* @param options The options parameters.
|
|
146
|
+
*/
|
|
147
|
+
createOrUpdate(
|
|
148
|
+
resourceGroupName: string,
|
|
149
|
+
workspaceName: string,
|
|
150
|
+
dataConnectorId: string,
|
|
151
|
+
dataConnector: DataConnectorUnion,
|
|
152
|
+
options?: DataConnectorsCreateOrUpdateOptionalParams
|
|
153
|
+
): Promise<DataConnectorsCreateOrUpdateResponse> {
|
|
154
|
+
return this.client.sendOperationRequest(
|
|
155
|
+
{
|
|
156
|
+
resourceGroupName,
|
|
157
|
+
workspaceName,
|
|
158
|
+
dataConnectorId,
|
|
159
|
+
dataConnector,
|
|
160
|
+
options
|
|
161
|
+
},
|
|
162
|
+
createOrUpdateOperationSpec
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Delete the data connector.
|
|
168
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
169
|
+
* @param workspaceName The name of the workspace.
|
|
170
|
+
* @param dataConnectorId Connector ID
|
|
171
|
+
* @param options The options parameters.
|
|
172
|
+
*/
|
|
173
|
+
delete(
|
|
174
|
+
resourceGroupName: string,
|
|
175
|
+
workspaceName: string,
|
|
176
|
+
dataConnectorId: string,
|
|
177
|
+
options?: DataConnectorsDeleteOptionalParams
|
|
178
|
+
): Promise<void> {
|
|
179
|
+
return this.client.sendOperationRequest(
|
|
180
|
+
{ resourceGroupName, workspaceName, dataConnectorId, options },
|
|
181
|
+
deleteOperationSpec
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Connects a data connector.
|
|
187
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
188
|
+
* @param workspaceName The name of the workspace.
|
|
189
|
+
* @param dataConnectorId Connector ID
|
|
190
|
+
* @param connectBody The data connector
|
|
191
|
+
* @param options The options parameters.
|
|
192
|
+
*/
|
|
193
|
+
connect(
|
|
194
|
+
resourceGroupName: string,
|
|
195
|
+
workspaceName: string,
|
|
196
|
+
dataConnectorId: string,
|
|
197
|
+
connectBody: DataConnectorConnectBody,
|
|
198
|
+
options?: DataConnectorsConnectOptionalParams
|
|
199
|
+
): Promise<void> {
|
|
200
|
+
return this.client.sendOperationRequest(
|
|
201
|
+
{
|
|
202
|
+
resourceGroupName,
|
|
203
|
+
workspaceName,
|
|
204
|
+
dataConnectorId,
|
|
205
|
+
connectBody,
|
|
206
|
+
options
|
|
207
|
+
},
|
|
208
|
+
connectOperationSpec
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Disconnect a data connector.
|
|
214
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
215
|
+
* @param workspaceName The name of the workspace.
|
|
216
|
+
* @param dataConnectorId Connector ID
|
|
217
|
+
* @param options The options parameters.
|
|
218
|
+
*/
|
|
219
|
+
disconnect(
|
|
220
|
+
resourceGroupName: string,
|
|
221
|
+
workspaceName: string,
|
|
222
|
+
dataConnectorId: string,
|
|
223
|
+
options?: DataConnectorsDisconnectOptionalParams
|
|
224
|
+
): Promise<void> {
|
|
225
|
+
return this.client.sendOperationRequest(
|
|
226
|
+
{ resourceGroupName, workspaceName, dataConnectorId, options },
|
|
227
|
+
disconnectOperationSpec
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* ListNext
|
|
233
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
234
|
+
* @param workspaceName The name of the workspace.
|
|
235
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
236
|
+
* @param options The options parameters.
|
|
237
|
+
*/
|
|
238
|
+
private _listNext(
|
|
239
|
+
resourceGroupName: string,
|
|
240
|
+
workspaceName: string,
|
|
241
|
+
nextLink: string,
|
|
242
|
+
options?: DataConnectorsListNextOptionalParams
|
|
243
|
+
): Promise<DataConnectorsListNextResponse> {
|
|
244
|
+
return this.client.sendOperationRequest(
|
|
245
|
+
{ resourceGroupName, workspaceName, nextLink, options },
|
|
246
|
+
listNextOperationSpec
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
// Operation Specifications
|
|
251
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
252
|
+
|
|
253
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
254
|
+
path:
|
|
255
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/dataConnectors",
|
|
256
|
+
httpMethod: "GET",
|
|
257
|
+
responses: {
|
|
258
|
+
200: {
|
|
259
|
+
bodyMapper: Mappers.DataConnectorList
|
|
260
|
+
},
|
|
261
|
+
default: {
|
|
262
|
+
bodyMapper: Mappers.CloudError
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
queryParameters: [Parameters.apiVersion],
|
|
266
|
+
urlParameters: [
|
|
267
|
+
Parameters.$host,
|
|
268
|
+
Parameters.subscriptionId,
|
|
269
|
+
Parameters.resourceGroupName,
|
|
270
|
+
Parameters.workspaceName
|
|
271
|
+
],
|
|
272
|
+
headerParameters: [Parameters.accept],
|
|
273
|
+
serializer
|
|
274
|
+
};
|
|
275
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
276
|
+
path:
|
|
277
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/dataConnectors/{dataConnectorId}",
|
|
278
|
+
httpMethod: "GET",
|
|
279
|
+
responses: {
|
|
280
|
+
200: {
|
|
281
|
+
bodyMapper: Mappers.DataConnector
|
|
282
|
+
},
|
|
283
|
+
default: {
|
|
284
|
+
bodyMapper: Mappers.CloudError
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
queryParameters: [Parameters.apiVersion],
|
|
288
|
+
urlParameters: [
|
|
289
|
+
Parameters.$host,
|
|
290
|
+
Parameters.subscriptionId,
|
|
291
|
+
Parameters.resourceGroupName,
|
|
292
|
+
Parameters.workspaceName,
|
|
293
|
+
Parameters.dataConnectorId
|
|
294
|
+
],
|
|
295
|
+
headerParameters: [Parameters.accept],
|
|
296
|
+
serializer
|
|
297
|
+
};
|
|
298
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
299
|
+
path:
|
|
300
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/dataConnectors/{dataConnectorId}",
|
|
301
|
+
httpMethod: "PUT",
|
|
302
|
+
responses: {
|
|
303
|
+
200: {
|
|
304
|
+
bodyMapper: Mappers.DataConnector
|
|
305
|
+
},
|
|
306
|
+
201: {
|
|
307
|
+
bodyMapper: Mappers.DataConnector
|
|
308
|
+
},
|
|
309
|
+
default: {
|
|
310
|
+
bodyMapper: Mappers.CloudError
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
requestBody: Parameters.dataConnector,
|
|
314
|
+
queryParameters: [Parameters.apiVersion],
|
|
315
|
+
urlParameters: [
|
|
316
|
+
Parameters.$host,
|
|
317
|
+
Parameters.subscriptionId,
|
|
318
|
+
Parameters.resourceGroupName,
|
|
319
|
+
Parameters.workspaceName,
|
|
320
|
+
Parameters.dataConnectorId
|
|
321
|
+
],
|
|
322
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
323
|
+
mediaType: "json",
|
|
324
|
+
serializer
|
|
325
|
+
};
|
|
326
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
327
|
+
path:
|
|
328
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/dataConnectors/{dataConnectorId}",
|
|
329
|
+
httpMethod: "DELETE",
|
|
330
|
+
responses: {
|
|
331
|
+
200: {},
|
|
332
|
+
204: {},
|
|
333
|
+
default: {
|
|
334
|
+
bodyMapper: Mappers.CloudError
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
queryParameters: [Parameters.apiVersion],
|
|
338
|
+
urlParameters: [
|
|
339
|
+
Parameters.$host,
|
|
340
|
+
Parameters.subscriptionId,
|
|
341
|
+
Parameters.resourceGroupName,
|
|
342
|
+
Parameters.workspaceName,
|
|
343
|
+
Parameters.dataConnectorId
|
|
344
|
+
],
|
|
345
|
+
headerParameters: [Parameters.accept],
|
|
346
|
+
serializer
|
|
347
|
+
};
|
|
348
|
+
const connectOperationSpec: coreClient.OperationSpec = {
|
|
349
|
+
path:
|
|
350
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/dataConnectors/{dataConnectorId}/connect",
|
|
351
|
+
httpMethod: "POST",
|
|
352
|
+
responses: {
|
|
353
|
+
200: {},
|
|
354
|
+
default: {
|
|
355
|
+
bodyMapper: Mappers.ErrorResponse
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
requestBody: Parameters.connectBody,
|
|
359
|
+
queryParameters: [Parameters.apiVersion],
|
|
360
|
+
urlParameters: [
|
|
361
|
+
Parameters.$host,
|
|
362
|
+
Parameters.subscriptionId,
|
|
363
|
+
Parameters.resourceGroupName,
|
|
364
|
+
Parameters.workspaceName,
|
|
365
|
+
Parameters.dataConnectorId
|
|
366
|
+
],
|
|
367
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
368
|
+
mediaType: "json",
|
|
369
|
+
serializer
|
|
370
|
+
};
|
|
371
|
+
const disconnectOperationSpec: coreClient.OperationSpec = {
|
|
372
|
+
path:
|
|
373
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/dataConnectors/{dataConnectorId}/disconnect",
|
|
374
|
+
httpMethod: "POST",
|
|
375
|
+
responses: {
|
|
376
|
+
200: {},
|
|
377
|
+
default: {
|
|
378
|
+
bodyMapper: Mappers.ErrorResponse
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
queryParameters: [Parameters.apiVersion],
|
|
382
|
+
urlParameters: [
|
|
383
|
+
Parameters.$host,
|
|
384
|
+
Parameters.subscriptionId,
|
|
385
|
+
Parameters.resourceGroupName,
|
|
386
|
+
Parameters.workspaceName,
|
|
387
|
+
Parameters.dataConnectorId
|
|
388
|
+
],
|
|
389
|
+
headerParameters: [Parameters.accept],
|
|
390
|
+
serializer
|
|
391
|
+
};
|
|
392
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
393
|
+
path: "{nextLink}",
|
|
394
|
+
httpMethod: "GET",
|
|
395
|
+
responses: {
|
|
396
|
+
200: {
|
|
397
|
+
bodyMapper: Mappers.DataConnectorList
|
|
398
|
+
},
|
|
399
|
+
default: {
|
|
400
|
+
bodyMapper: Mappers.CloudError
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
queryParameters: [Parameters.apiVersion],
|
|
404
|
+
urlParameters: [
|
|
405
|
+
Parameters.$host,
|
|
406
|
+
Parameters.subscriptionId,
|
|
407
|
+
Parameters.resourceGroupName,
|
|
408
|
+
Parameters.workspaceName,
|
|
409
|
+
Parameters.nextLink
|
|
410
|
+
],
|
|
411
|
+
headerParameters: [Parameters.accept],
|
|
412
|
+
serializer
|
|
413
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
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 { DataConnectorsCheckRequirementsOperations } 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
|
+
DataConnectorsCheckRequirementsUnion,
|
|
16
|
+
DataConnectorsCheckRequirementsPostOptionalParams,
|
|
17
|
+
DataConnectorsCheckRequirementsPostResponse
|
|
18
|
+
} from "../models";
|
|
19
|
+
|
|
20
|
+
/** Class containing DataConnectorsCheckRequirementsOperations operations. */
|
|
21
|
+
export class DataConnectorsCheckRequirementsOperationsImpl
|
|
22
|
+
implements DataConnectorsCheckRequirementsOperations {
|
|
23
|
+
private readonly client: SecurityInsights;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Initialize a new instance of the class DataConnectorsCheckRequirementsOperations class.
|
|
27
|
+
* @param client Reference to the service client
|
|
28
|
+
*/
|
|
29
|
+
constructor(client: SecurityInsights) {
|
|
30
|
+
this.client = client;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Get requirements state for a data connector type.
|
|
35
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
36
|
+
* @param workspaceName The name of the workspace.
|
|
37
|
+
* @param dataConnectorsCheckRequirements The parameters for requirements check message
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
post(
|
|
41
|
+
resourceGroupName: string,
|
|
42
|
+
workspaceName: string,
|
|
43
|
+
dataConnectorsCheckRequirements: DataConnectorsCheckRequirementsUnion,
|
|
44
|
+
options?: DataConnectorsCheckRequirementsPostOptionalParams
|
|
45
|
+
): Promise<DataConnectorsCheckRequirementsPostResponse> {
|
|
46
|
+
return this.client.sendOperationRequest(
|
|
47
|
+
{
|
|
48
|
+
resourceGroupName,
|
|
49
|
+
workspaceName,
|
|
50
|
+
dataConnectorsCheckRequirements,
|
|
51
|
+
options
|
|
52
|
+
},
|
|
53
|
+
postOperationSpec
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
// Operation Specifications
|
|
58
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
59
|
+
|
|
60
|
+
const postOperationSpec: coreClient.OperationSpec = {
|
|
61
|
+
path:
|
|
62
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/dataConnectorsCheckRequirements",
|
|
63
|
+
httpMethod: "POST",
|
|
64
|
+
responses: {
|
|
65
|
+
200: {
|
|
66
|
+
bodyMapper: Mappers.DataConnectorRequirementsState
|
|
67
|
+
},
|
|
68
|
+
default: {
|
|
69
|
+
bodyMapper: Mappers.CloudError
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
requestBody: Parameters.dataConnectorsCheckRequirements,
|
|
73
|
+
queryParameters: [Parameters.apiVersion],
|
|
74
|
+
urlParameters: [
|
|
75
|
+
Parameters.$host,
|
|
76
|
+
Parameters.subscriptionId,
|
|
77
|
+
Parameters.resourceGroupName,
|
|
78
|
+
Parameters.workspaceName
|
|
79
|
+
],
|
|
80
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
81
|
+
mediaType: "json",
|
|
82
|
+
serializer
|
|
83
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
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 { DomainWhois } 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
|
+
DomainWhoisGetOptionalParams,
|
|
16
|
+
DomainWhoisGetResponse
|
|
17
|
+
} from "../models";
|
|
18
|
+
|
|
19
|
+
/** Class containing DomainWhois operations. */
|
|
20
|
+
export class DomainWhoisImpl implements DomainWhois {
|
|
21
|
+
private readonly client: SecurityInsights;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Initialize a new instance of the class DomainWhois class.
|
|
25
|
+
* @param client Reference to the service client
|
|
26
|
+
*/
|
|
27
|
+
constructor(client: SecurityInsights) {
|
|
28
|
+
this.client = client;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Get whois information for a single domain name
|
|
33
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
34
|
+
* @param domain Domain name to be enriched
|
|
35
|
+
* @param options The options parameters.
|
|
36
|
+
*/
|
|
37
|
+
get(
|
|
38
|
+
resourceGroupName: string,
|
|
39
|
+
domain: string,
|
|
40
|
+
options?: DomainWhoisGetOptionalParams
|
|
41
|
+
): Promise<DomainWhoisGetResponse> {
|
|
42
|
+
return this.client.sendOperationRequest(
|
|
43
|
+
{ resourceGroupName, domain, options },
|
|
44
|
+
getOperationSpec
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
// Operation Specifications
|
|
49
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
50
|
+
|
|
51
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
52
|
+
path:
|
|
53
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityInsights/enrichment/domain/whois/",
|
|
54
|
+
httpMethod: "GET",
|
|
55
|
+
responses: {
|
|
56
|
+
200: {
|
|
57
|
+
bodyMapper: Mappers.EnrichmentDomainWhois
|
|
58
|
+
},
|
|
59
|
+
default: {
|
|
60
|
+
bodyMapper: Mappers.CloudError
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
queryParameters: [Parameters.apiVersion, Parameters.domain],
|
|
64
|
+
urlParameters: [
|
|
65
|
+
Parameters.$host,
|
|
66
|
+
Parameters.subscriptionId,
|
|
67
|
+
Parameters.resourceGroupName
|
|
68
|
+
],
|
|
69
|
+
headerParameters: [Parameters.accept],
|
|
70
|
+
serializer
|
|
71
|
+
};
|