@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,369 @@
|
|
|
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 { BookmarkRelations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { SecurityInsights } from "../securityInsights";
|
|
15
|
+
import {
|
|
16
|
+
Relation,
|
|
17
|
+
BookmarkRelationsListNextOptionalParams,
|
|
18
|
+
BookmarkRelationsListOptionalParams,
|
|
19
|
+
BookmarkRelationsListResponse,
|
|
20
|
+
BookmarkRelationsGetOptionalParams,
|
|
21
|
+
BookmarkRelationsGetResponse,
|
|
22
|
+
BookmarkRelationsCreateOrUpdateOptionalParams,
|
|
23
|
+
BookmarkRelationsCreateOrUpdateResponse,
|
|
24
|
+
BookmarkRelationsDeleteOptionalParams,
|
|
25
|
+
BookmarkRelationsListNextResponse
|
|
26
|
+
} from "../models";
|
|
27
|
+
|
|
28
|
+
/// <reference lib="esnext.asynciterable" />
|
|
29
|
+
/** Class containing BookmarkRelations operations. */
|
|
30
|
+
export class BookmarkRelationsImpl implements BookmarkRelations {
|
|
31
|
+
private readonly client: SecurityInsights;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Initialize a new instance of the class BookmarkRelations class.
|
|
35
|
+
* @param client Reference to the service client
|
|
36
|
+
*/
|
|
37
|
+
constructor(client: SecurityInsights) {
|
|
38
|
+
this.client = client;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Gets all bookmark relations.
|
|
43
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
44
|
+
* @param workspaceName The name of the workspace.
|
|
45
|
+
* @param bookmarkId Bookmark ID
|
|
46
|
+
* @param options The options parameters.
|
|
47
|
+
*/
|
|
48
|
+
public list(
|
|
49
|
+
resourceGroupName: string,
|
|
50
|
+
workspaceName: string,
|
|
51
|
+
bookmarkId: string,
|
|
52
|
+
options?: BookmarkRelationsListOptionalParams
|
|
53
|
+
): PagedAsyncIterableIterator<Relation> {
|
|
54
|
+
const iter = this.listPagingAll(
|
|
55
|
+
resourceGroupName,
|
|
56
|
+
workspaceName,
|
|
57
|
+
bookmarkId,
|
|
58
|
+
options
|
|
59
|
+
);
|
|
60
|
+
return {
|
|
61
|
+
next() {
|
|
62
|
+
return iter.next();
|
|
63
|
+
},
|
|
64
|
+
[Symbol.asyncIterator]() {
|
|
65
|
+
return this;
|
|
66
|
+
},
|
|
67
|
+
byPage: () => {
|
|
68
|
+
return this.listPagingPage(
|
|
69
|
+
resourceGroupName,
|
|
70
|
+
workspaceName,
|
|
71
|
+
bookmarkId,
|
|
72
|
+
options
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
private async *listPagingPage(
|
|
79
|
+
resourceGroupName: string,
|
|
80
|
+
workspaceName: string,
|
|
81
|
+
bookmarkId: string,
|
|
82
|
+
options?: BookmarkRelationsListOptionalParams
|
|
83
|
+
): AsyncIterableIterator<Relation[]> {
|
|
84
|
+
let result = await this._list(
|
|
85
|
+
resourceGroupName,
|
|
86
|
+
workspaceName,
|
|
87
|
+
bookmarkId,
|
|
88
|
+
options
|
|
89
|
+
);
|
|
90
|
+
yield result.value || [];
|
|
91
|
+
let continuationToken = result.nextLink;
|
|
92
|
+
while (continuationToken) {
|
|
93
|
+
result = await this._listNext(
|
|
94
|
+
resourceGroupName,
|
|
95
|
+
workspaceName,
|
|
96
|
+
bookmarkId,
|
|
97
|
+
continuationToken,
|
|
98
|
+
options
|
|
99
|
+
);
|
|
100
|
+
continuationToken = result.nextLink;
|
|
101
|
+
yield result.value || [];
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
private async *listPagingAll(
|
|
106
|
+
resourceGroupName: string,
|
|
107
|
+
workspaceName: string,
|
|
108
|
+
bookmarkId: string,
|
|
109
|
+
options?: BookmarkRelationsListOptionalParams
|
|
110
|
+
): AsyncIterableIterator<Relation> {
|
|
111
|
+
for await (const page of this.listPagingPage(
|
|
112
|
+
resourceGroupName,
|
|
113
|
+
workspaceName,
|
|
114
|
+
bookmarkId,
|
|
115
|
+
options
|
|
116
|
+
)) {
|
|
117
|
+
yield* page;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Gets all bookmark relations.
|
|
123
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
124
|
+
* @param workspaceName The name of the workspace.
|
|
125
|
+
* @param bookmarkId Bookmark ID
|
|
126
|
+
* @param options The options parameters.
|
|
127
|
+
*/
|
|
128
|
+
private _list(
|
|
129
|
+
resourceGroupName: string,
|
|
130
|
+
workspaceName: string,
|
|
131
|
+
bookmarkId: string,
|
|
132
|
+
options?: BookmarkRelationsListOptionalParams
|
|
133
|
+
): Promise<BookmarkRelationsListResponse> {
|
|
134
|
+
return this.client.sendOperationRequest(
|
|
135
|
+
{ resourceGroupName, workspaceName, bookmarkId, options },
|
|
136
|
+
listOperationSpec
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Gets a bookmark relation.
|
|
142
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
143
|
+
* @param workspaceName The name of the workspace.
|
|
144
|
+
* @param bookmarkId Bookmark ID
|
|
145
|
+
* @param relationName Relation Name
|
|
146
|
+
* @param options The options parameters.
|
|
147
|
+
*/
|
|
148
|
+
get(
|
|
149
|
+
resourceGroupName: string,
|
|
150
|
+
workspaceName: string,
|
|
151
|
+
bookmarkId: string,
|
|
152
|
+
relationName: string,
|
|
153
|
+
options?: BookmarkRelationsGetOptionalParams
|
|
154
|
+
): Promise<BookmarkRelationsGetResponse> {
|
|
155
|
+
return this.client.sendOperationRequest(
|
|
156
|
+
{ resourceGroupName, workspaceName, bookmarkId, relationName, options },
|
|
157
|
+
getOperationSpec
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Creates the bookmark relation.
|
|
163
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
164
|
+
* @param workspaceName The name of the workspace.
|
|
165
|
+
* @param bookmarkId Bookmark ID
|
|
166
|
+
* @param relationName Relation Name
|
|
167
|
+
* @param relation The relation model
|
|
168
|
+
* @param options The options parameters.
|
|
169
|
+
*/
|
|
170
|
+
createOrUpdate(
|
|
171
|
+
resourceGroupName: string,
|
|
172
|
+
workspaceName: string,
|
|
173
|
+
bookmarkId: string,
|
|
174
|
+
relationName: string,
|
|
175
|
+
relation: Relation,
|
|
176
|
+
options?: BookmarkRelationsCreateOrUpdateOptionalParams
|
|
177
|
+
): Promise<BookmarkRelationsCreateOrUpdateResponse> {
|
|
178
|
+
return this.client.sendOperationRequest(
|
|
179
|
+
{
|
|
180
|
+
resourceGroupName,
|
|
181
|
+
workspaceName,
|
|
182
|
+
bookmarkId,
|
|
183
|
+
relationName,
|
|
184
|
+
relation,
|
|
185
|
+
options
|
|
186
|
+
},
|
|
187
|
+
createOrUpdateOperationSpec
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Delete the bookmark relation.
|
|
193
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
194
|
+
* @param workspaceName The name of the workspace.
|
|
195
|
+
* @param bookmarkId Bookmark ID
|
|
196
|
+
* @param relationName Relation Name
|
|
197
|
+
* @param options The options parameters.
|
|
198
|
+
*/
|
|
199
|
+
delete(
|
|
200
|
+
resourceGroupName: string,
|
|
201
|
+
workspaceName: string,
|
|
202
|
+
bookmarkId: string,
|
|
203
|
+
relationName: string,
|
|
204
|
+
options?: BookmarkRelationsDeleteOptionalParams
|
|
205
|
+
): Promise<void> {
|
|
206
|
+
return this.client.sendOperationRequest(
|
|
207
|
+
{ resourceGroupName, workspaceName, bookmarkId, relationName, options },
|
|
208
|
+
deleteOperationSpec
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* ListNext
|
|
214
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
215
|
+
* @param workspaceName The name of the workspace.
|
|
216
|
+
* @param bookmarkId Bookmark ID
|
|
217
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
218
|
+
* @param options The options parameters.
|
|
219
|
+
*/
|
|
220
|
+
private _listNext(
|
|
221
|
+
resourceGroupName: string,
|
|
222
|
+
workspaceName: string,
|
|
223
|
+
bookmarkId: string,
|
|
224
|
+
nextLink: string,
|
|
225
|
+
options?: BookmarkRelationsListNextOptionalParams
|
|
226
|
+
): Promise<BookmarkRelationsListNextResponse> {
|
|
227
|
+
return this.client.sendOperationRequest(
|
|
228
|
+
{ resourceGroupName, workspaceName, bookmarkId, nextLink, options },
|
|
229
|
+
listNextOperationSpec
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
// Operation Specifications
|
|
234
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
235
|
+
|
|
236
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
237
|
+
path:
|
|
238
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks/{bookmarkId}/relations",
|
|
239
|
+
httpMethod: "GET",
|
|
240
|
+
responses: {
|
|
241
|
+
200: {
|
|
242
|
+
bodyMapper: Mappers.RelationList
|
|
243
|
+
},
|
|
244
|
+
default: {
|
|
245
|
+
bodyMapper: Mappers.CloudError
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
queryParameters: [
|
|
249
|
+
Parameters.apiVersion,
|
|
250
|
+
Parameters.filter,
|
|
251
|
+
Parameters.orderby,
|
|
252
|
+
Parameters.top,
|
|
253
|
+
Parameters.skipToken
|
|
254
|
+
],
|
|
255
|
+
urlParameters: [
|
|
256
|
+
Parameters.$host,
|
|
257
|
+
Parameters.subscriptionId,
|
|
258
|
+
Parameters.resourceGroupName,
|
|
259
|
+
Parameters.workspaceName,
|
|
260
|
+
Parameters.bookmarkId
|
|
261
|
+
],
|
|
262
|
+
headerParameters: [Parameters.accept],
|
|
263
|
+
serializer
|
|
264
|
+
};
|
|
265
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
266
|
+
path:
|
|
267
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks/{bookmarkId}/relations/{relationName}",
|
|
268
|
+
httpMethod: "GET",
|
|
269
|
+
responses: {
|
|
270
|
+
200: {
|
|
271
|
+
bodyMapper: Mappers.Relation
|
|
272
|
+
},
|
|
273
|
+
default: {
|
|
274
|
+
bodyMapper: Mappers.CloudError
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
queryParameters: [Parameters.apiVersion],
|
|
278
|
+
urlParameters: [
|
|
279
|
+
Parameters.$host,
|
|
280
|
+
Parameters.subscriptionId,
|
|
281
|
+
Parameters.resourceGroupName,
|
|
282
|
+
Parameters.workspaceName,
|
|
283
|
+
Parameters.bookmarkId,
|
|
284
|
+
Parameters.relationName
|
|
285
|
+
],
|
|
286
|
+
headerParameters: [Parameters.accept],
|
|
287
|
+
serializer
|
|
288
|
+
};
|
|
289
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
290
|
+
path:
|
|
291
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks/{bookmarkId}/relations/{relationName}",
|
|
292
|
+
httpMethod: "PUT",
|
|
293
|
+
responses: {
|
|
294
|
+
200: {
|
|
295
|
+
bodyMapper: Mappers.Relation
|
|
296
|
+
},
|
|
297
|
+
201: {
|
|
298
|
+
bodyMapper: Mappers.Relation
|
|
299
|
+
},
|
|
300
|
+
default: {
|
|
301
|
+
bodyMapper: Mappers.CloudError
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
requestBody: Parameters.relation,
|
|
305
|
+
queryParameters: [Parameters.apiVersion],
|
|
306
|
+
urlParameters: [
|
|
307
|
+
Parameters.$host,
|
|
308
|
+
Parameters.subscriptionId,
|
|
309
|
+
Parameters.resourceGroupName,
|
|
310
|
+
Parameters.workspaceName,
|
|
311
|
+
Parameters.bookmarkId,
|
|
312
|
+
Parameters.relationName
|
|
313
|
+
],
|
|
314
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
315
|
+
mediaType: "json",
|
|
316
|
+
serializer
|
|
317
|
+
};
|
|
318
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
319
|
+
path:
|
|
320
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks/{bookmarkId}/relations/{relationName}",
|
|
321
|
+
httpMethod: "DELETE",
|
|
322
|
+
responses: {
|
|
323
|
+
200: {},
|
|
324
|
+
204: {},
|
|
325
|
+
default: {
|
|
326
|
+
bodyMapper: Mappers.CloudError
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
queryParameters: [Parameters.apiVersion],
|
|
330
|
+
urlParameters: [
|
|
331
|
+
Parameters.$host,
|
|
332
|
+
Parameters.subscriptionId,
|
|
333
|
+
Parameters.resourceGroupName,
|
|
334
|
+
Parameters.workspaceName,
|
|
335
|
+
Parameters.bookmarkId,
|
|
336
|
+
Parameters.relationName
|
|
337
|
+
],
|
|
338
|
+
headerParameters: [Parameters.accept],
|
|
339
|
+
serializer
|
|
340
|
+
};
|
|
341
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
342
|
+
path: "{nextLink}",
|
|
343
|
+
httpMethod: "GET",
|
|
344
|
+
responses: {
|
|
345
|
+
200: {
|
|
346
|
+
bodyMapper: Mappers.RelationList
|
|
347
|
+
},
|
|
348
|
+
default: {
|
|
349
|
+
bodyMapper: Mappers.CloudError
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
queryParameters: [
|
|
353
|
+
Parameters.apiVersion,
|
|
354
|
+
Parameters.filter,
|
|
355
|
+
Parameters.orderby,
|
|
356
|
+
Parameters.top,
|
|
357
|
+
Parameters.skipToken
|
|
358
|
+
],
|
|
359
|
+
urlParameters: [
|
|
360
|
+
Parameters.$host,
|
|
361
|
+
Parameters.subscriptionId,
|
|
362
|
+
Parameters.resourceGroupName,
|
|
363
|
+
Parameters.workspaceName,
|
|
364
|
+
Parameters.nextLink,
|
|
365
|
+
Parameters.bookmarkId
|
|
366
|
+
],
|
|
367
|
+
headerParameters: [Parameters.accept],
|
|
368
|
+
serializer
|
|
369
|
+
};
|
|
@@ -0,0 +1,314 @@
|
|
|
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 { Bookmarks } 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
|
+
Bookmark,
|
|
17
|
+
BookmarksListNextOptionalParams,
|
|
18
|
+
BookmarksListOptionalParams,
|
|
19
|
+
BookmarksListResponse,
|
|
20
|
+
BookmarksGetOptionalParams,
|
|
21
|
+
BookmarksGetResponse,
|
|
22
|
+
BookmarksCreateOrUpdateOptionalParams,
|
|
23
|
+
BookmarksCreateOrUpdateResponse,
|
|
24
|
+
BookmarksDeleteOptionalParams,
|
|
25
|
+
BookmarksListNextResponse
|
|
26
|
+
} from "../models";
|
|
27
|
+
|
|
28
|
+
/// <reference lib="esnext.asynciterable" />
|
|
29
|
+
/** Class containing Bookmarks operations. */
|
|
30
|
+
export class BookmarksImpl implements Bookmarks {
|
|
31
|
+
private readonly client: SecurityInsights;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Initialize a new instance of the class Bookmarks class.
|
|
35
|
+
* @param client Reference to the service client
|
|
36
|
+
*/
|
|
37
|
+
constructor(client: SecurityInsights) {
|
|
38
|
+
this.client = client;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Gets all bookmarks.
|
|
43
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
44
|
+
* @param workspaceName The name of the workspace.
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
public list(
|
|
48
|
+
resourceGroupName: string,
|
|
49
|
+
workspaceName: string,
|
|
50
|
+
options?: BookmarksListOptionalParams
|
|
51
|
+
): PagedAsyncIterableIterator<Bookmark> {
|
|
52
|
+
const iter = this.listPagingAll(resourceGroupName, workspaceName, options);
|
|
53
|
+
return {
|
|
54
|
+
next() {
|
|
55
|
+
return iter.next();
|
|
56
|
+
},
|
|
57
|
+
[Symbol.asyncIterator]() {
|
|
58
|
+
return this;
|
|
59
|
+
},
|
|
60
|
+
byPage: () => {
|
|
61
|
+
return this.listPagingPage(resourceGroupName, workspaceName, options);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
private async *listPagingPage(
|
|
67
|
+
resourceGroupName: string,
|
|
68
|
+
workspaceName: string,
|
|
69
|
+
options?: BookmarksListOptionalParams
|
|
70
|
+
): AsyncIterableIterator<Bookmark[]> {
|
|
71
|
+
let result = await this._list(resourceGroupName, workspaceName, options);
|
|
72
|
+
yield result.value || [];
|
|
73
|
+
let continuationToken = result.nextLink;
|
|
74
|
+
while (continuationToken) {
|
|
75
|
+
result = await this._listNext(
|
|
76
|
+
resourceGroupName,
|
|
77
|
+
workspaceName,
|
|
78
|
+
continuationToken,
|
|
79
|
+
options
|
|
80
|
+
);
|
|
81
|
+
continuationToken = result.nextLink;
|
|
82
|
+
yield result.value || [];
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
private async *listPagingAll(
|
|
87
|
+
resourceGroupName: string,
|
|
88
|
+
workspaceName: string,
|
|
89
|
+
options?: BookmarksListOptionalParams
|
|
90
|
+
): AsyncIterableIterator<Bookmark> {
|
|
91
|
+
for await (const page of this.listPagingPage(
|
|
92
|
+
resourceGroupName,
|
|
93
|
+
workspaceName,
|
|
94
|
+
options
|
|
95
|
+
)) {
|
|
96
|
+
yield* page;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Gets all bookmarks.
|
|
102
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
103
|
+
* @param workspaceName The name of the workspace.
|
|
104
|
+
* @param options The options parameters.
|
|
105
|
+
*/
|
|
106
|
+
private _list(
|
|
107
|
+
resourceGroupName: string,
|
|
108
|
+
workspaceName: string,
|
|
109
|
+
options?: BookmarksListOptionalParams
|
|
110
|
+
): Promise<BookmarksListResponse> {
|
|
111
|
+
return this.client.sendOperationRequest(
|
|
112
|
+
{ resourceGroupName, workspaceName, options },
|
|
113
|
+
listOperationSpec
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Gets a bookmark.
|
|
119
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
120
|
+
* @param workspaceName The name of the workspace.
|
|
121
|
+
* @param bookmarkId Bookmark ID
|
|
122
|
+
* @param options The options parameters.
|
|
123
|
+
*/
|
|
124
|
+
get(
|
|
125
|
+
resourceGroupName: string,
|
|
126
|
+
workspaceName: string,
|
|
127
|
+
bookmarkId: string,
|
|
128
|
+
options?: BookmarksGetOptionalParams
|
|
129
|
+
): Promise<BookmarksGetResponse> {
|
|
130
|
+
return this.client.sendOperationRequest(
|
|
131
|
+
{ resourceGroupName, workspaceName, bookmarkId, options },
|
|
132
|
+
getOperationSpec
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Creates or updates the bookmark.
|
|
138
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
139
|
+
* @param workspaceName The name of the workspace.
|
|
140
|
+
* @param bookmarkId Bookmark ID
|
|
141
|
+
* @param bookmark The bookmark
|
|
142
|
+
* @param options The options parameters.
|
|
143
|
+
*/
|
|
144
|
+
createOrUpdate(
|
|
145
|
+
resourceGroupName: string,
|
|
146
|
+
workspaceName: string,
|
|
147
|
+
bookmarkId: string,
|
|
148
|
+
bookmark: Bookmark,
|
|
149
|
+
options?: BookmarksCreateOrUpdateOptionalParams
|
|
150
|
+
): Promise<BookmarksCreateOrUpdateResponse> {
|
|
151
|
+
return this.client.sendOperationRequest(
|
|
152
|
+
{ resourceGroupName, workspaceName, bookmarkId, bookmark, options },
|
|
153
|
+
createOrUpdateOperationSpec
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Delete the bookmark.
|
|
159
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
160
|
+
* @param workspaceName The name of the workspace.
|
|
161
|
+
* @param bookmarkId Bookmark ID
|
|
162
|
+
* @param options The options parameters.
|
|
163
|
+
*/
|
|
164
|
+
delete(
|
|
165
|
+
resourceGroupName: string,
|
|
166
|
+
workspaceName: string,
|
|
167
|
+
bookmarkId: string,
|
|
168
|
+
options?: BookmarksDeleteOptionalParams
|
|
169
|
+
): Promise<void> {
|
|
170
|
+
return this.client.sendOperationRequest(
|
|
171
|
+
{ resourceGroupName, workspaceName, bookmarkId, options },
|
|
172
|
+
deleteOperationSpec
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* ListNext
|
|
178
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
179
|
+
* @param workspaceName The name of the workspace.
|
|
180
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
181
|
+
* @param options The options parameters.
|
|
182
|
+
*/
|
|
183
|
+
private _listNext(
|
|
184
|
+
resourceGroupName: string,
|
|
185
|
+
workspaceName: string,
|
|
186
|
+
nextLink: string,
|
|
187
|
+
options?: BookmarksListNextOptionalParams
|
|
188
|
+
): Promise<BookmarksListNextResponse> {
|
|
189
|
+
return this.client.sendOperationRequest(
|
|
190
|
+
{ resourceGroupName, workspaceName, nextLink, options },
|
|
191
|
+
listNextOperationSpec
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
// Operation Specifications
|
|
196
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
197
|
+
|
|
198
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
199
|
+
path:
|
|
200
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks",
|
|
201
|
+
httpMethod: "GET",
|
|
202
|
+
responses: {
|
|
203
|
+
200: {
|
|
204
|
+
bodyMapper: Mappers.BookmarkList
|
|
205
|
+
},
|
|
206
|
+
default: {
|
|
207
|
+
bodyMapper: Mappers.CloudError
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
queryParameters: [Parameters.apiVersion],
|
|
211
|
+
urlParameters: [
|
|
212
|
+
Parameters.$host,
|
|
213
|
+
Parameters.subscriptionId,
|
|
214
|
+
Parameters.resourceGroupName,
|
|
215
|
+
Parameters.workspaceName
|
|
216
|
+
],
|
|
217
|
+
headerParameters: [Parameters.accept],
|
|
218
|
+
serializer
|
|
219
|
+
};
|
|
220
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
221
|
+
path:
|
|
222
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks/{bookmarkId}",
|
|
223
|
+
httpMethod: "GET",
|
|
224
|
+
responses: {
|
|
225
|
+
200: {
|
|
226
|
+
bodyMapper: Mappers.Bookmark
|
|
227
|
+
},
|
|
228
|
+
default: {
|
|
229
|
+
bodyMapper: Mappers.CloudError
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
queryParameters: [Parameters.apiVersion],
|
|
233
|
+
urlParameters: [
|
|
234
|
+
Parameters.$host,
|
|
235
|
+
Parameters.subscriptionId,
|
|
236
|
+
Parameters.resourceGroupName,
|
|
237
|
+
Parameters.workspaceName,
|
|
238
|
+
Parameters.bookmarkId
|
|
239
|
+
],
|
|
240
|
+
headerParameters: [Parameters.accept],
|
|
241
|
+
serializer
|
|
242
|
+
};
|
|
243
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
244
|
+
path:
|
|
245
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks/{bookmarkId}",
|
|
246
|
+
httpMethod: "PUT",
|
|
247
|
+
responses: {
|
|
248
|
+
200: {
|
|
249
|
+
bodyMapper: Mappers.Bookmark
|
|
250
|
+
},
|
|
251
|
+
201: {
|
|
252
|
+
bodyMapper: Mappers.Bookmark
|
|
253
|
+
},
|
|
254
|
+
default: {
|
|
255
|
+
bodyMapper: Mappers.CloudError
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
requestBody: Parameters.bookmark,
|
|
259
|
+
queryParameters: [Parameters.apiVersion],
|
|
260
|
+
urlParameters: [
|
|
261
|
+
Parameters.$host,
|
|
262
|
+
Parameters.subscriptionId,
|
|
263
|
+
Parameters.resourceGroupName,
|
|
264
|
+
Parameters.workspaceName,
|
|
265
|
+
Parameters.bookmarkId
|
|
266
|
+
],
|
|
267
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
268
|
+
mediaType: "json",
|
|
269
|
+
serializer
|
|
270
|
+
};
|
|
271
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
272
|
+
path:
|
|
273
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks/{bookmarkId}",
|
|
274
|
+
httpMethod: "DELETE",
|
|
275
|
+
responses: {
|
|
276
|
+
200: {},
|
|
277
|
+
204: {},
|
|
278
|
+
default: {
|
|
279
|
+
bodyMapper: Mappers.CloudError
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
queryParameters: [Parameters.apiVersion],
|
|
283
|
+
urlParameters: [
|
|
284
|
+
Parameters.$host,
|
|
285
|
+
Parameters.subscriptionId,
|
|
286
|
+
Parameters.resourceGroupName,
|
|
287
|
+
Parameters.workspaceName,
|
|
288
|
+
Parameters.bookmarkId
|
|
289
|
+
],
|
|
290
|
+
headerParameters: [Parameters.accept],
|
|
291
|
+
serializer
|
|
292
|
+
};
|
|
293
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
294
|
+
path: "{nextLink}",
|
|
295
|
+
httpMethod: "GET",
|
|
296
|
+
responses: {
|
|
297
|
+
200: {
|
|
298
|
+
bodyMapper: Mappers.BookmarkList
|
|
299
|
+
},
|
|
300
|
+
default: {
|
|
301
|
+
bodyMapper: Mappers.CloudError
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
queryParameters: [Parameters.apiVersion],
|
|
305
|
+
urlParameters: [
|
|
306
|
+
Parameters.$host,
|
|
307
|
+
Parameters.subscriptionId,
|
|
308
|
+
Parameters.resourceGroupName,
|
|
309
|
+
Parameters.workspaceName,
|
|
310
|
+
Parameters.nextLink
|
|
311
|
+
],
|
|
312
|
+
headerParameters: [Parameters.accept],
|
|
313
|
+
serializer
|
|
314
|
+
};
|