@azure/arm-securityinsight 1.0.0-alpha.20250619.1 → 1.0.0-alpha.20250718.2
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/dist/browser/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +2617 -1204
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/actions.js +23 -40
- package/dist/browser/operations/actions.js.map +1 -1
- package/dist/browser/operations/alertRuleTemplates.js +23 -40
- package/dist/browser/operations/alertRuleTemplates.js.map +1 -1
- package/dist/browser/operations/alertRules.js +23 -40
- package/dist/browser/operations/alertRules.js.map +1 -1
- package/dist/browser/operations/automationRules.js +23 -40
- package/dist/browser/operations/automationRules.js.map +1 -1
- package/dist/browser/operations/bookmarkOperations.js +1 -0
- package/dist/browser/operations/bookmarkOperations.js.map +1 -1
- package/dist/browser/operations/bookmarkRelations.js +23 -40
- package/dist/browser/operations/bookmarkRelations.js.map +1 -1
- package/dist/browser/operations/bookmarks.js +23 -40
- package/dist/browser/operations/bookmarks.js.map +1 -1
- package/dist/browser/operations/dataConnectors.js +23 -40
- package/dist/browser/operations/dataConnectors.js.map +1 -1
- package/dist/browser/operations/dataConnectorsCheckRequirementsOperations.js +1 -0
- package/dist/browser/operations/dataConnectorsCheckRequirementsOperations.js.map +1 -1
- package/dist/browser/operations/domainWhois.js +1 -0
- package/dist/browser/operations/domainWhois.js.map +1 -1
- package/dist/browser/operations/entities.js +23 -40
- package/dist/browser/operations/entities.js.map +1 -1
- package/dist/browser/operations/entitiesGetTimeline.js +1 -0
- package/dist/browser/operations/entitiesGetTimeline.js.map +1 -1
- package/dist/browser/operations/entitiesRelations.js +23 -40
- package/dist/browser/operations/entitiesRelations.js.map +1 -1
- package/dist/browser/operations/entityQueries.js +23 -40
- package/dist/browser/operations/entityQueries.js.map +1 -1
- package/dist/browser/operations/entityQueryTemplates.js +23 -40
- package/dist/browser/operations/entityQueryTemplates.js.map +1 -1
- package/dist/browser/operations/entityRelations.js +1 -0
- package/dist/browser/operations/entityRelations.js.map +1 -1
- package/dist/browser/operations/fileImports.js +34 -46
- package/dist/browser/operations/fileImports.js.map +1 -1
- package/dist/browser/operations/iPGeodata.js +1 -0
- package/dist/browser/operations/iPGeodata.js.map +1 -1
- package/dist/browser/operations/incidentComments.js +23 -40
- package/dist/browser/operations/incidentComments.js.map +1 -1
- package/dist/browser/operations/incidentRelations.js +23 -40
- package/dist/browser/operations/incidentRelations.js.map +1 -1
- package/dist/browser/operations/incidents.js +23 -40
- package/dist/browser/operations/incidents.js.map +1 -1
- package/dist/browser/operations/metadata.js +23 -40
- package/dist/browser/operations/metadata.js.map +1 -1
- package/dist/browser/operations/officeConsents.js +23 -40
- package/dist/browser/operations/officeConsents.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/productSettings.js +1 -0
- package/dist/browser/operations/productSettings.js.map +1 -1
- package/dist/browser/operations/securityMLAnalyticsSettings.js +23 -40
- package/dist/browser/operations/securityMLAnalyticsSettings.js.map +1 -1
- package/dist/browser/operations/sentinelOnboardingStates.js +1 -0
- package/dist/browser/operations/sentinelOnboardingStates.js.map +1 -1
- package/dist/browser/operations/sourceControlOperations.js +23 -40
- package/dist/browser/operations/sourceControlOperations.js.map +1 -1
- package/dist/browser/operations/sourceControls.js +23 -40
- package/dist/browser/operations/sourceControls.js.map +1 -1
- package/dist/browser/operations/threatIntelligenceIndicator.js +23 -40
- package/dist/browser/operations/threatIntelligenceIndicator.js.map +1 -1
- package/dist/browser/operations/threatIntelligenceIndicatorMetrics.js +1 -0
- package/dist/browser/operations/threatIntelligenceIndicatorMetrics.js.map +1 -1
- package/dist/browser/operations/threatIntelligenceIndicators.js +23 -40
- package/dist/browser/operations/threatIntelligenceIndicators.js.map +1 -1
- package/dist/browser/operations/watchlistItems.js +23 -40
- package/dist/browser/operations/watchlistItems.js.map +1 -1
- package/dist/browser/operations/watchlists.js +23 -40
- package/dist/browser/operations/watchlists.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/securityInsights.js +47 -5
- package/dist/browser/securityInsights.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +2617 -1204
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/actions.js +23 -39
- package/dist/commonjs/operations/actions.js.map +1 -1
- package/dist/commonjs/operations/alertRuleTemplates.js +23 -39
- package/dist/commonjs/operations/alertRuleTemplates.js.map +1 -1
- package/dist/commonjs/operations/alertRules.js +23 -39
- package/dist/commonjs/operations/alertRules.js.map +1 -1
- package/dist/commonjs/operations/automationRules.js +23 -39
- package/dist/commonjs/operations/automationRules.js.map +1 -1
- package/dist/commonjs/operations/bookmarkOperations.js +1 -0
- package/dist/commonjs/operations/bookmarkOperations.js.map +1 -1
- package/dist/commonjs/operations/bookmarkRelations.js +23 -39
- package/dist/commonjs/operations/bookmarkRelations.js.map +1 -1
- package/dist/commonjs/operations/bookmarks.js +23 -39
- package/dist/commonjs/operations/bookmarks.js.map +1 -1
- package/dist/commonjs/operations/dataConnectors.js +23 -39
- package/dist/commonjs/operations/dataConnectors.js.map +1 -1
- package/dist/commonjs/operations/dataConnectorsCheckRequirementsOperations.js +1 -0
- package/dist/commonjs/operations/dataConnectorsCheckRequirementsOperations.js.map +1 -1
- package/dist/commonjs/operations/domainWhois.js +1 -0
- package/dist/commonjs/operations/domainWhois.js.map +1 -1
- package/dist/commonjs/operations/entities.js +23 -39
- package/dist/commonjs/operations/entities.js.map +1 -1
- package/dist/commonjs/operations/entitiesGetTimeline.js +1 -0
- package/dist/commonjs/operations/entitiesGetTimeline.js.map +1 -1
- package/dist/commonjs/operations/entitiesRelations.js +23 -39
- package/dist/commonjs/operations/entitiesRelations.js.map +1 -1
- package/dist/commonjs/operations/entityQueries.js +23 -39
- package/dist/commonjs/operations/entityQueries.js.map +1 -1
- package/dist/commonjs/operations/entityQueryTemplates.js +23 -39
- package/dist/commonjs/operations/entityQueryTemplates.js.map +1 -1
- package/dist/commonjs/operations/entityRelations.js +1 -0
- package/dist/commonjs/operations/entityRelations.js.map +1 -1
- package/dist/commonjs/operations/fileImports.js +34 -45
- package/dist/commonjs/operations/fileImports.js.map +1 -1
- package/dist/commonjs/operations/iPGeodata.js +1 -0
- package/dist/commonjs/operations/iPGeodata.js.map +1 -1
- package/dist/commonjs/operations/incidentComments.js +23 -39
- package/dist/commonjs/operations/incidentComments.js.map +1 -1
- package/dist/commonjs/operations/incidentRelations.js +23 -39
- package/dist/commonjs/operations/incidentRelations.js.map +1 -1
- package/dist/commonjs/operations/incidents.js +23 -39
- package/dist/commonjs/operations/incidents.js.map +1 -1
- package/dist/commonjs/operations/metadata.js +23 -39
- package/dist/commonjs/operations/metadata.js.map +1 -1
- package/dist/commonjs/operations/officeConsents.js +23 -39
- package/dist/commonjs/operations/officeConsents.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/productSettings.js +1 -0
- package/dist/commonjs/operations/productSettings.js.map +1 -1
- package/dist/commonjs/operations/securityMLAnalyticsSettings.js +23 -39
- package/dist/commonjs/operations/securityMLAnalyticsSettings.js.map +1 -1
- package/dist/commonjs/operations/sentinelOnboardingStates.js +1 -0
- package/dist/commonjs/operations/sentinelOnboardingStates.js.map +1 -1
- package/dist/commonjs/operations/sourceControlOperations.js +23 -39
- package/dist/commonjs/operations/sourceControlOperations.js.map +1 -1
- package/dist/commonjs/operations/sourceControls.js +23 -39
- package/dist/commonjs/operations/sourceControls.js.map +1 -1
- package/dist/commonjs/operations/threatIntelligenceIndicator.js +23 -39
- package/dist/commonjs/operations/threatIntelligenceIndicator.js.map +1 -1
- package/dist/commonjs/operations/threatIntelligenceIndicatorMetrics.js +1 -0
- package/dist/commonjs/operations/threatIntelligenceIndicatorMetrics.js.map +1 -1
- package/dist/commonjs/operations/threatIntelligenceIndicators.js +23 -39
- package/dist/commonjs/operations/threatIntelligenceIndicators.js.map +1 -1
- package/dist/commonjs/operations/watchlistItems.js +23 -39
- package/dist/commonjs/operations/watchlistItems.js.map +1 -1
- package/dist/commonjs/operations/watchlists.js +23 -39
- package/dist/commonjs/operations/watchlists.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/securityInsights.js +47 -5
- package/dist/commonjs/securityInsights.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +2617 -1204
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/actions.js +23 -40
- package/dist/esm/operations/actions.js.map +1 -1
- package/dist/esm/operations/alertRuleTemplates.js +23 -40
- package/dist/esm/operations/alertRuleTemplates.js.map +1 -1
- package/dist/esm/operations/alertRules.js +23 -40
- package/dist/esm/operations/alertRules.js.map +1 -1
- package/dist/esm/operations/automationRules.js +23 -40
- package/dist/esm/operations/automationRules.js.map +1 -1
- package/dist/esm/operations/bookmarkOperations.js +1 -0
- package/dist/esm/operations/bookmarkOperations.js.map +1 -1
- package/dist/esm/operations/bookmarkRelations.js +23 -40
- package/dist/esm/operations/bookmarkRelations.js.map +1 -1
- package/dist/esm/operations/bookmarks.js +23 -40
- package/dist/esm/operations/bookmarks.js.map +1 -1
- package/dist/esm/operations/dataConnectors.js +23 -40
- package/dist/esm/operations/dataConnectors.js.map +1 -1
- package/dist/esm/operations/dataConnectorsCheckRequirementsOperations.js +1 -0
- package/dist/esm/operations/dataConnectorsCheckRequirementsOperations.js.map +1 -1
- package/dist/esm/operations/domainWhois.js +1 -0
- package/dist/esm/operations/domainWhois.js.map +1 -1
- package/dist/esm/operations/entities.js +23 -40
- package/dist/esm/operations/entities.js.map +1 -1
- package/dist/esm/operations/entitiesGetTimeline.js +1 -0
- package/dist/esm/operations/entitiesGetTimeline.js.map +1 -1
- package/dist/esm/operations/entitiesRelations.js +23 -40
- package/dist/esm/operations/entitiesRelations.js.map +1 -1
- package/dist/esm/operations/entityQueries.js +23 -40
- package/dist/esm/operations/entityQueries.js.map +1 -1
- package/dist/esm/operations/entityQueryTemplates.js +23 -40
- package/dist/esm/operations/entityQueryTemplates.js.map +1 -1
- package/dist/esm/operations/entityRelations.js +1 -0
- package/dist/esm/operations/entityRelations.js.map +1 -1
- package/dist/esm/operations/fileImports.js +34 -46
- package/dist/esm/operations/fileImports.js.map +1 -1
- package/dist/esm/operations/iPGeodata.js +1 -0
- package/dist/esm/operations/iPGeodata.js.map +1 -1
- package/dist/esm/operations/incidentComments.js +23 -40
- package/dist/esm/operations/incidentComments.js.map +1 -1
- package/dist/esm/operations/incidentRelations.js +23 -40
- package/dist/esm/operations/incidentRelations.js.map +1 -1
- package/dist/esm/operations/incidents.js +23 -40
- package/dist/esm/operations/incidents.js.map +1 -1
- package/dist/esm/operations/metadata.js +23 -40
- package/dist/esm/operations/metadata.js.map +1 -1
- package/dist/esm/operations/officeConsents.js +23 -40
- package/dist/esm/operations/officeConsents.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/productSettings.js +1 -0
- package/dist/esm/operations/productSettings.js.map +1 -1
- package/dist/esm/operations/securityMLAnalyticsSettings.js +23 -40
- package/dist/esm/operations/securityMLAnalyticsSettings.js.map +1 -1
- package/dist/esm/operations/sentinelOnboardingStates.js +1 -0
- package/dist/esm/operations/sentinelOnboardingStates.js.map +1 -1
- package/dist/esm/operations/sourceControlOperations.js +23 -40
- package/dist/esm/operations/sourceControlOperations.js.map +1 -1
- package/dist/esm/operations/sourceControls.js +23 -40
- package/dist/esm/operations/sourceControls.js.map +1 -1
- package/dist/esm/operations/threatIntelligenceIndicator.js +23 -40
- package/dist/esm/operations/threatIntelligenceIndicator.js.map +1 -1
- package/dist/esm/operations/threatIntelligenceIndicatorMetrics.js +1 -0
- package/dist/esm/operations/threatIntelligenceIndicatorMetrics.js.map +1 -1
- package/dist/esm/operations/threatIntelligenceIndicators.js +23 -40
- package/dist/esm/operations/threatIntelligenceIndicators.js.map +1 -1
- package/dist/esm/operations/watchlistItems.js +23 -40
- package/dist/esm/operations/watchlistItems.js.map +1 -1
- package/dist/esm/operations/watchlists.js +23 -40
- package/dist/esm/operations/watchlists.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/securityInsights.js +47 -5
- package/dist/esm/securityInsights.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +2617 -1204
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/actions.js +23 -40
- package/dist/react-native/operations/actions.js.map +1 -1
- package/dist/react-native/operations/alertRuleTemplates.js +23 -40
- package/dist/react-native/operations/alertRuleTemplates.js.map +1 -1
- package/dist/react-native/operations/alertRules.js +23 -40
- package/dist/react-native/operations/alertRules.js.map +1 -1
- package/dist/react-native/operations/automationRules.js +23 -40
- package/dist/react-native/operations/automationRules.js.map +1 -1
- package/dist/react-native/operations/bookmarkOperations.js +1 -0
- package/dist/react-native/operations/bookmarkOperations.js.map +1 -1
- package/dist/react-native/operations/bookmarkRelations.js +23 -40
- package/dist/react-native/operations/bookmarkRelations.js.map +1 -1
- package/dist/react-native/operations/bookmarks.js +23 -40
- package/dist/react-native/operations/bookmarks.js.map +1 -1
- package/dist/react-native/operations/dataConnectors.js +23 -40
- package/dist/react-native/operations/dataConnectors.js.map +1 -1
- package/dist/react-native/operations/dataConnectorsCheckRequirementsOperations.js +1 -0
- package/dist/react-native/operations/dataConnectorsCheckRequirementsOperations.js.map +1 -1
- package/dist/react-native/operations/domainWhois.js +1 -0
- package/dist/react-native/operations/domainWhois.js.map +1 -1
- package/dist/react-native/operations/entities.js +23 -40
- package/dist/react-native/operations/entities.js.map +1 -1
- package/dist/react-native/operations/entitiesGetTimeline.js +1 -0
- package/dist/react-native/operations/entitiesGetTimeline.js.map +1 -1
- package/dist/react-native/operations/entitiesRelations.js +23 -40
- package/dist/react-native/operations/entitiesRelations.js.map +1 -1
- package/dist/react-native/operations/entityQueries.js +23 -40
- package/dist/react-native/operations/entityQueries.js.map +1 -1
- package/dist/react-native/operations/entityQueryTemplates.js +23 -40
- package/dist/react-native/operations/entityQueryTemplates.js.map +1 -1
- package/dist/react-native/operations/entityRelations.js +1 -0
- package/dist/react-native/operations/entityRelations.js.map +1 -1
- package/dist/react-native/operations/fileImports.js +34 -46
- package/dist/react-native/operations/fileImports.js.map +1 -1
- package/dist/react-native/operations/iPGeodata.js +1 -0
- package/dist/react-native/operations/iPGeodata.js.map +1 -1
- package/dist/react-native/operations/incidentComments.js +23 -40
- package/dist/react-native/operations/incidentComments.js.map +1 -1
- package/dist/react-native/operations/incidentRelations.js +23 -40
- package/dist/react-native/operations/incidentRelations.js.map +1 -1
- package/dist/react-native/operations/incidents.js +23 -40
- package/dist/react-native/operations/incidents.js.map +1 -1
- package/dist/react-native/operations/metadata.js +23 -40
- package/dist/react-native/operations/metadata.js.map +1 -1
- package/dist/react-native/operations/officeConsents.js +23 -40
- package/dist/react-native/operations/officeConsents.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/productSettings.js +1 -0
- package/dist/react-native/operations/productSettings.js.map +1 -1
- package/dist/react-native/operations/securityMLAnalyticsSettings.js +23 -40
- package/dist/react-native/operations/securityMLAnalyticsSettings.js.map +1 -1
- package/dist/react-native/operations/sentinelOnboardingStates.js +1 -0
- package/dist/react-native/operations/sentinelOnboardingStates.js.map +1 -1
- package/dist/react-native/operations/sourceControlOperations.js +23 -40
- package/dist/react-native/operations/sourceControlOperations.js.map +1 -1
- package/dist/react-native/operations/sourceControls.js +23 -40
- package/dist/react-native/operations/sourceControls.js.map +1 -1
- package/dist/react-native/operations/threatIntelligenceIndicator.js +23 -40
- package/dist/react-native/operations/threatIntelligenceIndicator.js.map +1 -1
- package/dist/react-native/operations/threatIntelligenceIndicatorMetrics.js +1 -0
- package/dist/react-native/operations/threatIntelligenceIndicatorMetrics.js.map +1 -1
- package/dist/react-native/operations/threatIntelligenceIndicators.js +23 -40
- package/dist/react-native/operations/threatIntelligenceIndicators.js.map +1 -1
- package/dist/react-native/operations/watchlistItems.js +23 -40
- package/dist/react-native/operations/watchlistItems.js.map +1 -1
- package/dist/react-native/operations/watchlists.js +23 -40
- package/dist/react-native/operations/watchlists.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/securityInsights.js +47 -5
- package/dist/react-native/securityInsights.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-securityinsight.api.md → arm-securityinsight-node.api.md} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incidentComments.js","sourceRoot":"","sources":["../../../src/operations/incidentComments.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,oDAAoD;AACpD,MAAa,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB,aAAqB,EACrB,UAAkB,EAClB,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI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,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { IncidentComments } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SecurityInsights } from \"../securityInsights.js\";\nimport {\n IncidentComment,\n IncidentCommentsListNextOptionalParams,\n IncidentCommentsListOptionalParams,\n IncidentCommentsListResponse,\n IncidentCommentsGetOptionalParams,\n IncidentCommentsGetResponse,\n IncidentCommentsCreateOrUpdateOptionalParams,\n IncidentCommentsCreateOrUpdateResponse,\n IncidentCommentsDeleteOptionalParams,\n IncidentCommentsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing IncidentComments operations. */\nexport class IncidentCommentsImpl implements IncidentComments {\n private readonly client: SecurityInsights;\n\n /**\n * Initialize a new instance of the class IncidentComments class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityInsights) {\n this.client = client;\n }\n\n /**\n * Gets all incident comments.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentCommentsListOptionalParams\n ): PagedAsyncIterableIterator<IncidentComment> {\n const iter = this.listPagingAll(\n resourceGroupName,\n workspaceName,\n incidentId,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n workspaceName,\n incidentId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentCommentsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<IncidentComment[]> {\n let result: IncidentCommentsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n workspaceName,\n incidentId,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n workspaceName,\n incidentId,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentCommentsListOptionalParams\n ): AsyncIterableIterator<IncidentComment> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n workspaceName,\n incidentId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all incident comments.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentCommentsListOptionalParams\n ): Promise<IncidentCommentsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, options },\n listOperationSpec\n );\n }\n\n /**\n * Gets an incident comment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param incidentCommentId Incident comment ID\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n incidentCommentId: string,\n options?: IncidentCommentsGetOptionalParams\n ): Promise<IncidentCommentsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n incidentId,\n incidentCommentId,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates the incident comment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param incidentCommentId Incident comment ID\n * @param incidentComment The incident comment\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n incidentCommentId: string,\n incidentComment: IncidentComment,\n options?: IncidentCommentsCreateOrUpdateOptionalParams\n ): Promise<IncidentCommentsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n incidentId,\n incidentCommentId,\n incidentComment,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Delete the incident comment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param incidentCommentId Incident comment ID\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n incidentCommentId: string,\n options?: IncidentCommentsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n incidentId,\n incidentCommentId,\n options\n },\n deleteOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n nextLink: string,\n options?: IncidentCommentsListNextOptionalParams\n ): Promise<IncidentCommentsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/comments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncidentCommentList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderby,\n Parameters.top,\n Parameters.skipToken\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/comments/{incidentCommentId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncidentComment\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId,\n Parameters.incidentCommentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/comments/{incidentCommentId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncidentComment\n },\n 201: {\n bodyMapper: Mappers.IncidentComment\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.incidentComment,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId,\n Parameters.incidentCommentId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/comments/{incidentCommentId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId,\n Parameters.incidentCommentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncidentCommentList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.nextLink,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"incidentComments.js","sourceRoot":"","sources":["../../../src/operations/incidentComments.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,oDAAoD;AACpD,MAAa,oBAAoB;IACd,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB,aAAqB,EACrB,UAAkB,EAClB,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACr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AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { IncidentComments } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SecurityInsights } from \"../securityInsights.js\";\nimport {\n IncidentComment,\n IncidentCommentsListNextOptionalParams,\n IncidentCommentsListOptionalParams,\n IncidentCommentsListResponse,\n IncidentCommentsGetOptionalParams,\n IncidentCommentsGetResponse,\n IncidentCommentsCreateOrUpdateOptionalParams,\n IncidentCommentsCreateOrUpdateResponse,\n IncidentCommentsDeleteOptionalParams,\n IncidentCommentsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing IncidentComments operations. */\nexport class IncidentCommentsImpl implements IncidentComments {\n private readonly client: SecurityInsights;\n\n /**\n * Initialize a new instance of the class IncidentComments class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityInsights) {\n this.client = client;\n }\n\n /**\n * Gets all incident comments.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentCommentsListOptionalParams\n ): PagedAsyncIterableIterator<IncidentComment> {\n const iter = this.listPagingAll(\n resourceGroupName,\n workspaceName,\n incidentId,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n workspaceName,\n incidentId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentCommentsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<IncidentComment[]> {\n let result: IncidentCommentsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n workspaceName,\n incidentId,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n workspaceName,\n incidentId,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentCommentsListOptionalParams\n ): AsyncIterableIterator<IncidentComment> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n workspaceName,\n incidentId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all incident comments.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentCommentsListOptionalParams\n ): Promise<IncidentCommentsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, options },\n listOperationSpec\n );\n }\n\n /**\n * Gets an incident comment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param incidentCommentId Incident comment ID\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n incidentCommentId: string,\n options?: IncidentCommentsGetOptionalParams\n ): Promise<IncidentCommentsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n incidentId,\n incidentCommentId,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates the incident comment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param incidentCommentId Incident comment ID\n * @param incidentComment The incident comment\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n incidentCommentId: string,\n incidentComment: IncidentComment,\n options?: IncidentCommentsCreateOrUpdateOptionalParams\n ): Promise<IncidentCommentsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n incidentId,\n incidentCommentId,\n incidentComment,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Delete the incident comment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param incidentCommentId Incident comment ID\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n incidentCommentId: string,\n options?: IncidentCommentsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n incidentId,\n incidentCommentId,\n options\n },\n deleteOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n nextLink: string,\n options?: IncidentCommentsListNextOptionalParams\n ): Promise<IncidentCommentsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/comments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncidentCommentList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderby,\n Parameters.top,\n Parameters.skipToken\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/comments/{incidentCommentId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncidentComment\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId,\n Parameters.incidentCommentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/comments/{incidentCommentId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncidentComment\n },\n 201: {\n bodyMapper: Mappers.IncidentComment\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.incidentComment,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId,\n Parameters.incidentCommentId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/comments/{incidentCommentId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId,\n Parameters.incidentCommentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncidentCommentList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.nextLink,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing IncidentRelations operations. */
|
|
18
18
|
class IncidentRelationsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class IncidentRelations class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -40,52 +41,35 @@ class IncidentRelationsImpl {
|
|
|
40
41
|
return this;
|
|
41
42
|
},
|
|
42
43
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
44
|
+
if (settings?.maxPageSize) {
|
|
44
45
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
46
|
}
|
|
46
47
|
return this.listPagingPage(resourceGroupName, workspaceName, incidentId, options, settings);
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listPagingPage(resourceGroupName, workspaceName, incidentId, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
51
|
+
async *listPagingPage(resourceGroupName, workspaceName, incidentId, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._list(resourceGroupName, workspaceName, incidentId, options);
|
|
56
|
+
let page = result.value || [];
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
61
|
+
while (continuationToken) {
|
|
62
|
+
result = await this._listNext(resourceGroupName, workspaceName, incidentId, continuationToken, options);
|
|
63
|
+
continuationToken = result.nextLink;
|
|
64
|
+
let page = result.value || [];
|
|
65
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
66
|
+
yield page;
|
|
67
|
+
}
|
|
69
68
|
}
|
|
70
|
-
listPagingAll(resourceGroupName, workspaceName, incidentId, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, workspaceName, incidentId, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
75
|
-
_c = _f.value;
|
|
76
|
-
_d = false;
|
|
77
|
-
const page = _c;
|
|
78
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
-
finally {
|
|
83
|
-
try {
|
|
84
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
85
|
-
}
|
|
86
|
-
finally { if (e_1) throw e_1.error; }
|
|
87
|
-
}
|
|
88
|
-
});
|
|
69
|
+
async *listPagingAll(resourceGroupName, workspaceName, incidentId, options) {
|
|
70
|
+
for await (const page of this.listPagingPage(resourceGroupName, workspaceName, incidentId, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
89
73
|
}
|
|
90
74
|
/**
|
|
91
75
|
* Gets all incident relations.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incidentRelations.js","sourceRoot":"","sources":["../../../src/operations/incidentRelations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,qDAAqD;AACrD,MAAa,qBAAqB;IAGhC;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,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AC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,4NAA4N;IAC9N,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { IncidentRelations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SecurityInsights } from \"../securityInsights.js\";\nimport {\n Relation,\n IncidentRelationsListNextOptionalParams,\n IncidentRelationsListOptionalParams,\n IncidentRelationsListResponse,\n IncidentRelationsGetOptionalParams,\n IncidentRelationsGetResponse,\n IncidentRelationsCreateOrUpdateOptionalParams,\n IncidentRelationsCreateOrUpdateResponse,\n IncidentRelationsDeleteOptionalParams,\n IncidentRelationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing IncidentRelations operations. */\nexport class IncidentRelationsImpl implements IncidentRelations {\n private readonly client: SecurityInsights;\n\n /**\n * Initialize a new instance of the class IncidentRelations class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityInsights) {\n this.client = client;\n }\n\n /**\n * Gets all incident relations.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentRelationsListOptionalParams\n ): PagedAsyncIterableIterator<Relation> {\n const iter = this.listPagingAll(\n resourceGroupName,\n workspaceName,\n incidentId,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n workspaceName,\n incidentId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentRelationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Relation[]> {\n let result: IncidentRelationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n workspaceName,\n incidentId,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n workspaceName,\n incidentId,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentRelationsListOptionalParams\n ): AsyncIterableIterator<Relation> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n workspaceName,\n incidentId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all incident relations.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentRelationsListOptionalParams\n ): Promise<IncidentRelationsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, options },\n listOperationSpec\n );\n }\n\n /**\n * Gets an incident relation.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param relationName Relation Name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n relationName: string,\n options?: IncidentRelationsGetOptionalParams\n ): Promise<IncidentRelationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, relationName, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates the incident relation.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param relationName Relation Name\n * @param relation The relation model\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n relationName: string,\n relation: Relation,\n options?: IncidentRelationsCreateOrUpdateOptionalParams\n ): Promise<IncidentRelationsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n incidentId,\n relationName,\n relation,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Delete the incident relation.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param relationName Relation Name\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n relationName: string,\n options?: IncidentRelationsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, relationName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n nextLink: string,\n options?: IncidentRelationsListNextOptionalParams\n ): Promise<IncidentRelationsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/relations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RelationList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderby,\n Parameters.top,\n Parameters.skipToken\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/relations/{relationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Relation\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId,\n Parameters.relationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/relations/{relationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Relation\n },\n 201: {\n bodyMapper: Mappers.Relation\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.relation,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId,\n Parameters.relationName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/relations/{relationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId,\n Parameters.relationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RelationList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.nextLink,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"incidentRelations.js","sourceRoot":"","sources":["../../../src/operations/incidentRelations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,qDAAqD;AACrD,MAAa,qBAAqB;IACf,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB,aAAqB,EACrB,UAAkB,EAClB,OAA6C;QAE7C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;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;QACrB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { IncidentRelations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SecurityInsights } from \"../securityInsights.js\";\nimport {\n Relation,\n IncidentRelationsListNextOptionalParams,\n IncidentRelationsListOptionalParams,\n IncidentRelationsListResponse,\n IncidentRelationsGetOptionalParams,\n IncidentRelationsGetResponse,\n IncidentRelationsCreateOrUpdateOptionalParams,\n IncidentRelationsCreateOrUpdateResponse,\n IncidentRelationsDeleteOptionalParams,\n IncidentRelationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing IncidentRelations operations. */\nexport class IncidentRelationsImpl implements IncidentRelations {\n private readonly client: SecurityInsights;\n\n /**\n * Initialize a new instance of the class IncidentRelations class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityInsights) {\n this.client = client;\n }\n\n /**\n * Gets all incident relations.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentRelationsListOptionalParams\n ): PagedAsyncIterableIterator<Relation> {\n const iter = this.listPagingAll(\n resourceGroupName,\n workspaceName,\n incidentId,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n workspaceName,\n incidentId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentRelationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Relation[]> {\n let result: IncidentRelationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n workspaceName,\n incidentId,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n workspaceName,\n incidentId,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentRelationsListOptionalParams\n ): AsyncIterableIterator<Relation> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n workspaceName,\n incidentId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all incident relations.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentRelationsListOptionalParams\n ): Promise<IncidentRelationsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, options },\n listOperationSpec\n );\n }\n\n /**\n * Gets an incident relation.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param relationName Relation Name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n relationName: string,\n options?: IncidentRelationsGetOptionalParams\n ): Promise<IncidentRelationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, relationName, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates the incident relation.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param relationName Relation Name\n * @param relation The relation model\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n relationName: string,\n relation: Relation,\n options?: IncidentRelationsCreateOrUpdateOptionalParams\n ): Promise<IncidentRelationsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n incidentId,\n relationName,\n relation,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Delete the incident relation.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param relationName Relation Name\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n relationName: string,\n options?: IncidentRelationsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, relationName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n nextLink: string,\n options?: IncidentRelationsListNextOptionalParams\n ): Promise<IncidentRelationsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/relations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RelationList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderby,\n Parameters.top,\n Parameters.skipToken\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/relations/{relationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Relation\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId,\n Parameters.relationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/relations/{relationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Relation\n },\n 201: {\n bodyMapper: Mappers.Relation\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.relation,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId,\n Parameters.relationName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/relations/{relationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId,\n Parameters.relationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RelationList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.nextLink,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing Incidents operations. */
|
|
18
18
|
class IncidentsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class Incidents class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class IncidentsImpl {
|
|
|
39
40
|
return this;
|
|
40
41
|
},
|
|
41
42
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
45
|
}
|
|
45
46
|
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
50
|
+
async *listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._list(resourceGroupName, workspaceName, options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listNext(resourceGroupName, workspaceName, continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
68
67
|
}
|
|
69
|
-
listPagingAll(resourceGroupName, workspaceName, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
68
|
+
async *listPagingAll(resourceGroupName, workspaceName, options) {
|
|
69
|
+
for await (const page of this.listPagingPage(resourceGroupName, workspaceName, options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
88
72
|
}
|
|
89
73
|
/**
|
|
90
74
|
* Triggers playbook on a specific incident
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incidents.js","sourceRoot":"","sources":["../../../src/operations/incidents.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AA0BtD,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAa,aAAa;IAGxB;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,aAAqB,EACrB,OAAqC;QAErC,MAAM,IAAI,GAAG,IAAI,CAAC,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;IAC9M,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Incidents } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SecurityInsights } from \"../securityInsights.js\";\nimport {\n Incident,\n IncidentsListNextOptionalParams,\n IncidentsListOptionalParams,\n IncidentsListResponse,\n IncidentsRunPlaybookOptionalParams,\n IncidentsRunPlaybookResponse,\n IncidentsGetOptionalParams,\n IncidentsGetResponse,\n IncidentsCreateOrUpdateOptionalParams,\n IncidentsCreateOrUpdateResponse,\n IncidentsDeleteOptionalParams,\n TeamProperties,\n IncidentsCreateTeamOptionalParams,\n IncidentsCreateTeamResponse,\n IncidentsListAlertsOptionalParams,\n IncidentsListAlertsResponse,\n IncidentsListBookmarksOptionalParams,\n IncidentsListBookmarksResponse,\n IncidentsListEntitiesOptionalParams,\n IncidentsListEntitiesResponse,\n IncidentsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Incidents operations. */\nexport class IncidentsImpl implements Incidents {\n private readonly client: SecurityInsights;\n\n /**\n * Initialize a new instance of the class Incidents class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityInsights) {\n this.client = client;\n }\n\n /**\n * Gets all incidents.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n workspaceName: string,\n options?: IncidentsListOptionalParams\n ): PagedAsyncIterableIterator<Incident> {\n const iter = this.listPagingAll(resourceGroupName, workspaceName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n workspaceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n workspaceName: string,\n options?: IncidentsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Incident[]> {\n let result: IncidentsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, workspaceName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n workspaceName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n workspaceName: string,\n options?: IncidentsListOptionalParams\n ): AsyncIterableIterator<Incident> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n workspaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Triggers playbook on a specific incident\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentIdentifier\n * @param options The options parameters.\n */\n runPlaybook(\n resourceGroupName: string,\n workspaceName: string,\n incidentIdentifier: string,\n options?: IncidentsRunPlaybookOptionalParams\n ): Promise<IncidentsRunPlaybookResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentIdentifier, options },\n runPlaybookOperationSpec\n );\n }\n\n /**\n * Gets all incidents.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n workspaceName: string,\n options?: IncidentsListOptionalParams\n ): Promise<IncidentsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listOperationSpec\n );\n }\n\n /**\n * Gets an incident.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentsGetOptionalParams\n ): Promise<IncidentsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates the incident.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param incident The incident\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n incident: Incident,\n options?: IncidentsCreateOrUpdateOptionalParams\n ): Promise<IncidentsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, incident, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Delete the incident.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Creates a Microsoft team to investigate the incident by sharing information and insights between\n * participants.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param teamProperties Team properties\n * @param options The options parameters.\n */\n createTeam(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n teamProperties: TeamProperties,\n options?: IncidentsCreateTeamOptionalParams\n ): Promise<IncidentsCreateTeamResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, teamProperties, options },\n createTeamOperationSpec\n );\n }\n\n /**\n * Gets all incident alerts.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param options The options parameters.\n */\n listAlerts(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentsListAlertsOptionalParams\n ): Promise<IncidentsListAlertsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, options },\n listAlertsOperationSpec\n );\n }\n\n /**\n * Gets all incident bookmarks.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param options The options parameters.\n */\n listBookmarks(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentsListBookmarksOptionalParams\n ): Promise<IncidentsListBookmarksResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, options },\n listBookmarksOperationSpec\n );\n }\n\n /**\n * Gets all incident related entities.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param options The options parameters.\n */\n listEntities(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentsListEntitiesOptionalParams\n ): Promise<IncidentsListEntitiesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, options },\n listEntitiesOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n workspaceName: string,\n nextLink: string,\n options?: IncidentsListNextOptionalParams\n ): Promise<IncidentsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst runPlaybookOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentIdentifier}/runPlaybook\",\n httpMethod: \"POST\",\n responses: {\n 204: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } }\n }\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.requestBody,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentIdentifier\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncidentList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderby,\n Parameters.top,\n Parameters.skipToken\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Incident\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Incident\n },\n 201: {\n bodyMapper: Mappers.Incident\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.incident,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createTeamOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/createTeam\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TeamInformation\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.teamProperties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listAlertsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/alerts\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncidentAlertList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBookmarksOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/bookmarks\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncidentBookmarkList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listEntitiesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/entities\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncidentEntitiesResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncidentList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"incidents.js","sourceRoot":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B;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EACF,4MAA4M;IAC9M,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Incidents } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SecurityInsights } from \"../securityInsights.js\";\nimport {\n Incident,\n IncidentsListNextOptionalParams,\n IncidentsListOptionalParams,\n IncidentsListResponse,\n IncidentsRunPlaybookOptionalParams,\n IncidentsRunPlaybookResponse,\n IncidentsGetOptionalParams,\n IncidentsGetResponse,\n IncidentsCreateOrUpdateOptionalParams,\n IncidentsCreateOrUpdateResponse,\n IncidentsDeleteOptionalParams,\n TeamProperties,\n IncidentsCreateTeamOptionalParams,\n IncidentsCreateTeamResponse,\n IncidentsListAlertsOptionalParams,\n IncidentsListAlertsResponse,\n IncidentsListBookmarksOptionalParams,\n IncidentsListBookmarksResponse,\n IncidentsListEntitiesOptionalParams,\n IncidentsListEntitiesResponse,\n IncidentsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Incidents operations. */\nexport class IncidentsImpl implements Incidents {\n private readonly client: SecurityInsights;\n\n /**\n * Initialize a new instance of the class Incidents class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityInsights) {\n this.client = client;\n }\n\n /**\n * Gets all incidents.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n workspaceName: string,\n options?: IncidentsListOptionalParams\n ): PagedAsyncIterableIterator<Incident> {\n const iter = this.listPagingAll(resourceGroupName, workspaceName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n workspaceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n workspaceName: string,\n options?: IncidentsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Incident[]> {\n let result: IncidentsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, workspaceName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n workspaceName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n workspaceName: string,\n options?: IncidentsListOptionalParams\n ): AsyncIterableIterator<Incident> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n workspaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Triggers playbook on a specific incident\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentIdentifier\n * @param options The options parameters.\n */\n runPlaybook(\n resourceGroupName: string,\n workspaceName: string,\n incidentIdentifier: string,\n options?: IncidentsRunPlaybookOptionalParams\n ): Promise<IncidentsRunPlaybookResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentIdentifier, options },\n runPlaybookOperationSpec\n );\n }\n\n /**\n * Gets all incidents.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n workspaceName: string,\n options?: IncidentsListOptionalParams\n ): Promise<IncidentsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listOperationSpec\n );\n }\n\n /**\n * Gets an incident.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentsGetOptionalParams\n ): Promise<IncidentsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates the incident.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param incident The incident\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n incident: Incident,\n options?: IncidentsCreateOrUpdateOptionalParams\n ): Promise<IncidentsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, incident, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Delete the incident.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Creates a Microsoft team to investigate the incident by sharing information and insights between\n * participants.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param teamProperties Team properties\n * @param options The options parameters.\n */\n createTeam(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n teamProperties: TeamProperties,\n options?: IncidentsCreateTeamOptionalParams\n ): Promise<IncidentsCreateTeamResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, teamProperties, options },\n createTeamOperationSpec\n );\n }\n\n /**\n * Gets all incident alerts.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param options The options parameters.\n */\n listAlerts(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentsListAlertsOptionalParams\n ): Promise<IncidentsListAlertsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, options },\n listAlertsOperationSpec\n );\n }\n\n /**\n * Gets all incident bookmarks.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param options The options parameters.\n */\n listBookmarks(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentsListBookmarksOptionalParams\n ): Promise<IncidentsListBookmarksResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, options },\n listBookmarksOperationSpec\n );\n }\n\n /**\n * Gets all incident related entities.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param incidentId Incident ID\n * @param options The options parameters.\n */\n listEntities(\n resourceGroupName: string,\n workspaceName: string,\n incidentId: string,\n options?: IncidentsListEntitiesOptionalParams\n ): Promise<IncidentsListEntitiesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, incidentId, options },\n listEntitiesOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n workspaceName: string,\n nextLink: string,\n options?: IncidentsListNextOptionalParams\n ): Promise<IncidentsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst runPlaybookOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentIdentifier}/runPlaybook\",\n httpMethod: \"POST\",\n responses: {\n 204: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } }\n }\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.requestBody,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentIdentifier\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncidentList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderby,\n Parameters.top,\n Parameters.skipToken\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Incident\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Incident\n },\n 201: {\n bodyMapper: Mappers.Incident\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.incident,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createTeamOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/createTeam\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TeamInformation\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.teamProperties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listAlertsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/alerts\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncidentAlertList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBookmarksOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/bookmarks\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncidentBookmarkList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listEntitiesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/entities\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncidentEntitiesResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.incidentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncidentList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing Metadata operations. */
|
|
18
18
|
class MetadataImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class Metadata class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class MetadataImpl {
|
|
|
39
40
|
return this;
|
|
40
41
|
},
|
|
41
42
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
45
|
}
|
|
45
46
|
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
50
|
+
async *listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._list(resourceGroupName, workspaceName, options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listNext(resourceGroupName, workspaceName, continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
68
67
|
}
|
|
69
|
-
listPagingAll(resourceGroupName, workspaceName, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
68
|
+
async *listPagingAll(resourceGroupName, workspaceName, options) {
|
|
69
|
+
for await (const page of this.listPagingPage(resourceGroupName, workspaceName, options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
88
72
|
}
|
|
89
73
|
/**
|
|
90
74
|
* List of all metadata
|