@azure/arm-securityinsight 1.0.0-alpha.20250717.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-node.api.md +5668 -5668
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentinelOnboardingStates.js","sourceRoot":"","sources":["../../../src/operations/sentinelOnboardingStates.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,4DAA4D;AAC5D,MAAa,4BAA4B;IAGvC;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,aAAqB,EACrB,2BAAmC,EACnC,OAAmD;QAEnD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,aAAa;YACb,2BAA2B;YAC3B,OAAO;SACR,EACD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,iBAA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ACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;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;KACzB;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 { SentinelOnboardingStates } 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 SentinelOnboardingStatesGetOptionalParams,\n SentinelOnboardingStatesGetResponse,\n SentinelOnboardingStatesCreateOptionalParams,\n SentinelOnboardingStatesCreateResponse,\n SentinelOnboardingStatesDeleteOptionalParams,\n SentinelOnboardingStatesListOptionalParams,\n SentinelOnboardingStatesListResponse\n} from \"../models/index.js\";\n\n/** Class containing SentinelOnboardingStates operations. */\nexport class SentinelOnboardingStatesImpl implements SentinelOnboardingStates {\n private readonly client: SecurityInsights;\n\n /**\n * Initialize a new instance of the class SentinelOnboardingStates class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityInsights) {\n this.client = client;\n }\n\n /**\n * Get Sentinel onboarding state\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param sentinelOnboardingStateName The Sentinel onboarding state name. Supports - default\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n sentinelOnboardingStateName: string,\n options?: SentinelOnboardingStatesGetOptionalParams\n ): Promise<SentinelOnboardingStatesGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n sentinelOnboardingStateName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Create Sentinel onboarding state\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param sentinelOnboardingStateName The Sentinel onboarding state name. Supports - default\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n workspaceName: string,\n sentinelOnboardingStateName: string,\n options?: SentinelOnboardingStatesCreateOptionalParams\n ): Promise<SentinelOnboardingStatesCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n sentinelOnboardingStateName,\n options\n },\n createOperationSpec\n );\n }\n\n /**\n * Delete Sentinel onboarding state\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param sentinelOnboardingStateName The Sentinel onboarding state name. Supports - default\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n sentinelOnboardingStateName: string,\n options?: SentinelOnboardingStatesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n sentinelOnboardingStateName,\n options\n },\n deleteOperationSpec\n );\n }\n\n /**\n * Gets all Sentinel onboarding states\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 list(\n resourceGroupName: string,\n workspaceName: string,\n options?: SentinelOnboardingStatesListOptionalParams\n ): Promise<SentinelOnboardingStatesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/onboardingStates/{sentinelOnboardingStateName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SentinelOnboardingState\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.sentinelOnboardingStateName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/onboardingStates/{sentinelOnboardingStateName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SentinelOnboardingState\n },\n 201: {\n bodyMapper: Mappers.SentinelOnboardingState\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.sentinelOnboardingStateParameter,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.sentinelOnboardingStateName\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/onboardingStates/{sentinelOnboardingStateName}\",\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.sentinelOnboardingStateName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/onboardingStates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SentinelOnboardingStatesList\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 ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"sentinelOnboardingStates.js","sourceRoot":"","sources":["../../../src/operations/sentinelOnboardingStates.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,4DAA4D;AAC5D,MAAa,4BAA4B;IACtB,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,aAAqB,EACrB,2BAAmC,EACnC,OAAmD;QAEnD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,aAAa;YACb,2BAA2B;YAC3B,OAAO;SACR,EACD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,iBAAyB,EACzB,aAAqB,EACrB,2BAAmC,EACnC,OAAsD;QAEtD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,aAAa;YACb,2BAA2B;YAC3B,OAAO;SACR,EACD,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,iBAAyB,EACzB,aAAqB,EACrB,2BAAmC,EACnC,OAAsD;QAE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ACD,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 { SentinelOnboardingStates } 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 SentinelOnboardingStatesGetOptionalParams,\n SentinelOnboardingStatesGetResponse,\n SentinelOnboardingStatesCreateOptionalParams,\n SentinelOnboardingStatesCreateResponse,\n SentinelOnboardingStatesDeleteOptionalParams,\n SentinelOnboardingStatesListOptionalParams,\n SentinelOnboardingStatesListResponse\n} from \"../models/index.js\";\n\n/** Class containing SentinelOnboardingStates operations. */\nexport class SentinelOnboardingStatesImpl implements SentinelOnboardingStates {\n private readonly client: SecurityInsights;\n\n /**\n * Initialize a new instance of the class SentinelOnboardingStates class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityInsights) {\n this.client = client;\n }\n\n /**\n * Get Sentinel onboarding state\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param sentinelOnboardingStateName The Sentinel onboarding state name. Supports - default\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n sentinelOnboardingStateName: string,\n options?: SentinelOnboardingStatesGetOptionalParams\n ): Promise<SentinelOnboardingStatesGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n sentinelOnboardingStateName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Create Sentinel onboarding state\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param sentinelOnboardingStateName The Sentinel onboarding state name. Supports - default\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n workspaceName: string,\n sentinelOnboardingStateName: string,\n options?: SentinelOnboardingStatesCreateOptionalParams\n ): Promise<SentinelOnboardingStatesCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n sentinelOnboardingStateName,\n options\n },\n createOperationSpec\n );\n }\n\n /**\n * Delete Sentinel onboarding state\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param sentinelOnboardingStateName The Sentinel onboarding state name. Supports - default\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n sentinelOnboardingStateName: string,\n options?: SentinelOnboardingStatesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n sentinelOnboardingStateName,\n options\n },\n deleteOperationSpec\n );\n }\n\n /**\n * Gets all Sentinel onboarding states\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 list(\n resourceGroupName: string,\n workspaceName: string,\n options?: SentinelOnboardingStatesListOptionalParams\n ): Promise<SentinelOnboardingStatesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/onboardingStates/{sentinelOnboardingStateName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SentinelOnboardingState\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.sentinelOnboardingStateName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/onboardingStates/{sentinelOnboardingStateName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SentinelOnboardingState\n },\n 201: {\n bodyMapper: Mappers.SentinelOnboardingState\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.sentinelOnboardingStateParameter,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.sentinelOnboardingStateName\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/onboardingStates/{sentinelOnboardingStateName}\",\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.sentinelOnboardingStateName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/onboardingStates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SentinelOnboardingStatesList\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 ],\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 SourceControlOperations operations. */
|
|
18
18
|
class SourceControlOperationsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class SourceControlOperations class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -40,52 +41,35 @@ class SourceControlOperationsImpl {
|
|
|
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.listRepositoriesPagingPage(resourceGroupName, workspaceName, repoType, options, settings);
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listRepositoriesPagingPage(resourceGroupName, workspaceName, repoType, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
51
|
+
async *listRepositoriesPagingPage(resourceGroupName, workspaceName, repoType, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._listRepositories(resourceGroupName, workspaceName, repoType, 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._listRepositoriesNext(resourceGroupName, workspaceName, repoType, 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
|
-
listRepositoriesPagingAll(resourceGroupName, workspaceName, repoType, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listRepositoriesPagingPage(resourceGroupName, workspaceName, repoType, 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 *listRepositoriesPagingAll(resourceGroupName, workspaceName, repoType, options) {
|
|
70
|
+
for await (const page of this.listRepositoriesPagingPage(resourceGroupName, workspaceName, repoType, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
89
73
|
}
|
|
90
74
|
/**
|
|
91
75
|
* Gets a list of repositories metadata.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sourceControlOperations.js","sourceRoot":"","sources":["../../../src/operations/sourceControlOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AA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AAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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 { SourceControlOperations } 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 Repo,\n RepoType,\n SourceControlListRepositoriesNextOptionalParams,\n SourceControlListRepositoriesOptionalParams,\n SourceControlListRepositoriesResponse,\n SourceControlListRepositoriesNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SourceControlOperations operations. */\nexport class SourceControlOperationsImpl implements SourceControlOperations {\n private readonly client: SecurityInsights;\n\n /**\n * Initialize a new instance of the class SourceControlOperations class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityInsights) {\n this.client = client;\n }\n\n /**\n * Gets a list of repositories metadata.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param repoType The repo type.\n * @param options The options parameters.\n */\n public listRepositories(\n resourceGroupName: string,\n workspaceName: string,\n repoType: RepoType,\n options?: SourceControlListRepositoriesOptionalParams\n ): PagedAsyncIterableIterator<Repo> {\n const iter = this.listRepositoriesPagingAll(\n resourceGroupName,\n workspaceName,\n repoType,\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.listRepositoriesPagingPage(\n resourceGroupName,\n workspaceName,\n repoType,\n options,\n settings\n );\n }\n };\n }\n\n private async *listRepositoriesPagingPage(\n resourceGroupName: string,\n workspaceName: string,\n repoType: RepoType,\n options?: SourceControlListRepositoriesOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Repo[]> {\n let result: SourceControlListRepositoriesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listRepositories(\n resourceGroupName,\n workspaceName,\n repoType,\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._listRepositoriesNext(\n resourceGroupName,\n workspaceName,\n repoType,\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 *listRepositoriesPagingAll(\n resourceGroupName: string,\n workspaceName: string,\n repoType: RepoType,\n options?: SourceControlListRepositoriesOptionalParams\n ): AsyncIterableIterator<Repo> {\n for await (const page of this.listRepositoriesPagingPage(\n resourceGroupName,\n workspaceName,\n repoType,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of repositories metadata.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param repoType The repo type.\n * @param options The options parameters.\n */\n private _listRepositories(\n resourceGroupName: string,\n workspaceName: string,\n repoType: RepoType,\n options?: SourceControlListRepositoriesOptionalParams\n ): Promise<SourceControlListRepositoriesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, repoType, options },\n listRepositoriesOperationSpec\n );\n }\n\n /**\n * ListRepositoriesNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param repoType The repo type.\n * @param nextLink The nextLink from the previous successful call to the ListRepositories method.\n * @param options The options parameters.\n */\n private _listRepositoriesNext(\n resourceGroupName: string,\n workspaceName: string,\n repoType: RepoType,\n nextLink: string,\n options?: SourceControlListRepositoriesNextOptionalParams\n ): Promise<SourceControlListRepositoriesNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, repoType, nextLink, options },\n listRepositoriesNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listRepositoriesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/listRepositories\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RepoList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.repoType,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listRepositoriesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RepoList\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, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"sourceControlOperations.js","sourceRoot":"","sources":["../../../src/operations/sourceControlOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAWtD,4CAA4C;AAC5C,2DAA2D;AAC3D,MAAa,2BAA2B;IACrB,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;Q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3E,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EACF,6LAA6L;IAC/L,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,QAAQ;IAChC,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;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;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,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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 { SourceControlOperations } 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 Repo,\n RepoType,\n SourceControlListRepositoriesNextOptionalParams,\n SourceControlListRepositoriesOptionalParams,\n SourceControlListRepositoriesResponse,\n SourceControlListRepositoriesNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SourceControlOperations operations. */\nexport class SourceControlOperationsImpl implements SourceControlOperations {\n private readonly client: SecurityInsights;\n\n /**\n * Initialize a new instance of the class SourceControlOperations class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityInsights) {\n this.client = client;\n }\n\n /**\n * Gets a list of repositories metadata.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param repoType The repo type.\n * @param options The options parameters.\n */\n public listRepositories(\n resourceGroupName: string,\n workspaceName: string,\n repoType: RepoType,\n options?: SourceControlListRepositoriesOptionalParams\n ): PagedAsyncIterableIterator<Repo> {\n const iter = this.listRepositoriesPagingAll(\n resourceGroupName,\n workspaceName,\n repoType,\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.listRepositoriesPagingPage(\n resourceGroupName,\n workspaceName,\n repoType,\n options,\n settings\n );\n }\n };\n }\n\n private async *listRepositoriesPagingPage(\n resourceGroupName: string,\n workspaceName: string,\n repoType: RepoType,\n options?: SourceControlListRepositoriesOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Repo[]> {\n let result: SourceControlListRepositoriesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listRepositories(\n resourceGroupName,\n workspaceName,\n repoType,\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._listRepositoriesNext(\n resourceGroupName,\n workspaceName,\n repoType,\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 *listRepositoriesPagingAll(\n resourceGroupName: string,\n workspaceName: string,\n repoType: RepoType,\n options?: SourceControlListRepositoriesOptionalParams\n ): AsyncIterableIterator<Repo> {\n for await (const page of this.listRepositoriesPagingPage(\n resourceGroupName,\n workspaceName,\n repoType,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of repositories metadata.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param repoType The repo type.\n * @param options The options parameters.\n */\n private _listRepositories(\n resourceGroupName: string,\n workspaceName: string,\n repoType: RepoType,\n options?: SourceControlListRepositoriesOptionalParams\n ): Promise<SourceControlListRepositoriesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, repoType, options },\n listRepositoriesOperationSpec\n );\n }\n\n /**\n * ListRepositoriesNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param repoType The repo type.\n * @param nextLink The nextLink from the previous successful call to the ListRepositories method.\n * @param options The options parameters.\n */\n private _listRepositoriesNext(\n resourceGroupName: string,\n workspaceName: string,\n repoType: RepoType,\n nextLink: string,\n options?: SourceControlListRepositoriesNextOptionalParams\n ): Promise<SourceControlListRepositoriesNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, repoType, nextLink, options },\n listRepositoriesNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listRepositoriesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/listRepositories\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RepoList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.repoType,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listRepositoriesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RepoList\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, Parameters.contentType],\n mediaType: \"json\",\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 SourceControls operations. */
|
|
18
18
|
class SourceControlsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class SourceControls class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class SourceControlsImpl {
|
|
|
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
|
* Gets all source controls, without source control items.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sourceControls.js","sourceRoot":"","sources":["../../../src/operations/sourceControls.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,aAAqB,EACrB,OAA0C;QAE1C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QAC3E,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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,aAAa,EACb,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,aAAqB,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AU,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 { SourceControls } 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 SourceControl,\n SourceControlsListNextOptionalParams,\n SourceControlsListOptionalParams,\n SourceControlsListResponse,\n SourceControlsGetOptionalParams,\n SourceControlsGetResponse,\n SourceControlsDeleteOptionalParams,\n SourceControlsCreateOptionalParams,\n SourceControlsCreateResponse,\n SourceControlsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SourceControls operations. */\nexport class SourceControlsImpl implements SourceControls {\n private readonly client: SecurityInsights;\n\n /**\n * Initialize a new instance of the class SourceControls class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityInsights) {\n this.client = client;\n }\n\n /**\n * Gets all source controls, without source control items.\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?: SourceControlsListOptionalParams\n ): PagedAsyncIterableIterator<SourceControl> {\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?: SourceControlsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SourceControl[]> {\n let result: SourceControlsListResponse;\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?: SourceControlsListOptionalParams\n ): AsyncIterableIterator<SourceControl> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n workspaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all source controls, without source control items.\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?: SourceControlsListOptionalParams\n ): Promise<SourceControlsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listOperationSpec\n );\n }\n\n /**\n * Gets a source control byt its identifier.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param sourceControlId Source control Id\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n sourceControlId: string,\n options?: SourceControlsGetOptionalParams\n ): Promise<SourceControlsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, sourceControlId, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete a source control.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param sourceControlId Source control Id\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n sourceControlId: string,\n options?: SourceControlsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, sourceControlId, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Creates a source control.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param sourceControlId Source control Id\n * @param sourceControl The SourceControl\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n workspaceName: string,\n sourceControlId: string,\n sourceControl: SourceControl,\n options?: SourceControlsCreateOptionalParams\n ): Promise<SourceControlsCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n sourceControlId,\n sourceControl,\n options\n },\n createOperationSpec\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?: SourceControlsListNextOptionalParams\n ): Promise<SourceControlsListNextResponse> {\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 listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControlList\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 ],\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/sourcecontrols/{sourceControlId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControl\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.sourceControlId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols/{sourceControlId}\",\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.sourceControlId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols/{sourceControlId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControl\n },\n 201: {\n bodyMapper: Mappers.SourceControl\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.sourceControl,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.sourceControlId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControlList\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":"sourceControls.js","sourceRoot":"","sources":["../../../src/operations/sourceControls.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IACZ,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,aAAqB,EACrB,OAA0C;QAE1C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QAC3E,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;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,aAAa,EACb,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,iBAAyB,EACzB,aAAqB,EACrB,OAA0C,EAC1C,QAAuB;QAEvB,IAAI,MAAkC,CAAC;QACv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IAAI,EACF,6MAA6M;IAC/M,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,aAAa;IACrC,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,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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,iBAAiB;SACtC;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 { SourceControls } 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 SourceControl,\n SourceControlsListNextOptionalParams,\n SourceControlsListOptionalParams,\n SourceControlsListResponse,\n SourceControlsGetOptionalParams,\n SourceControlsGetResponse,\n SourceControlsDeleteOptionalParams,\n SourceControlsCreateOptionalParams,\n SourceControlsCreateResponse,\n SourceControlsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SourceControls operations. */\nexport class SourceControlsImpl implements SourceControls {\n private readonly client: SecurityInsights;\n\n /**\n * Initialize a new instance of the class SourceControls class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityInsights) {\n this.client = client;\n }\n\n /**\n * Gets all source controls, without source control items.\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?: SourceControlsListOptionalParams\n ): PagedAsyncIterableIterator<SourceControl> {\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?: SourceControlsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SourceControl[]> {\n let result: SourceControlsListResponse;\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?: SourceControlsListOptionalParams\n ): AsyncIterableIterator<SourceControl> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n workspaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all source controls, without source control items.\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?: SourceControlsListOptionalParams\n ): Promise<SourceControlsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listOperationSpec\n );\n }\n\n /**\n * Gets a source control byt its identifier.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param sourceControlId Source control Id\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n sourceControlId: string,\n options?: SourceControlsGetOptionalParams\n ): Promise<SourceControlsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, sourceControlId, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete a source control.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param sourceControlId Source control Id\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n sourceControlId: string,\n options?: SourceControlsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, sourceControlId, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Creates a source control.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param sourceControlId Source control Id\n * @param sourceControl The SourceControl\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n workspaceName: string,\n sourceControlId: string,\n sourceControl: SourceControl,\n options?: SourceControlsCreateOptionalParams\n ): Promise<SourceControlsCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n sourceControlId,\n sourceControl,\n options\n },\n createOperationSpec\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?: SourceControlsListNextOptionalParams\n ): Promise<SourceControlsListNextResponse> {\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 listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControlList\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 ],\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/sourcecontrols/{sourceControlId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControl\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.sourceControlId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols/{sourceControlId}\",\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.sourceControlId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols/{sourceControlId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControl\n },\n 201: {\n bodyMapper: Mappers.SourceControl\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.sourceControl,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.sourceControlId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControlList\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 ThreatIntelligenceIndicator operations. */
|
|
18
18
|
class ThreatIntelligenceIndicatorImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class ThreatIntelligenceIndicator class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -41,52 +42,35 @@ class ThreatIntelligenceIndicatorImpl {
|
|
|
41
42
|
return this;
|
|
42
43
|
},
|
|
43
44
|
byPage: (settings) => {
|
|
44
|
-
if (settings
|
|
45
|
+
if (settings?.maxPageSize) {
|
|
45
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
47
|
}
|
|
47
48
|
return this.queryIndicatorsPagingPage(resourceGroupName, workspaceName, threatIntelligenceFilteringCriteria, options, settings);
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
queryIndicatorsPagingPage(resourceGroupName, workspaceName, threatIntelligenceFilteringCriteria, options, settings) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
});
|
|
52
|
+
async *queryIndicatorsPagingPage(resourceGroupName, workspaceName, threatIntelligenceFilteringCriteria, options, settings) {
|
|
53
|
+
let result;
|
|
54
|
+
let continuationToken = settings?.continuationToken;
|
|
55
|
+
if (!continuationToken) {
|
|
56
|
+
result = await this._queryIndicators(resourceGroupName, workspaceName, threatIntelligenceFilteringCriteria, options);
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
62
|
+
while (continuationToken) {
|
|
63
|
+
result = await this._queryIndicatorsNext(resourceGroupName, workspaceName, threatIntelligenceFilteringCriteria, continuationToken, options);
|
|
64
|
+
continuationToken = result.nextLink;
|
|
65
|
+
let page = result.value || [];
|
|
66
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
67
|
+
yield page;
|
|
68
|
+
}
|
|
70
69
|
}
|
|
71
|
-
queryIndicatorsPagingAll(resourceGroupName, workspaceName, threatIntelligenceFilteringCriteria, options) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.queryIndicatorsPagingPage(resourceGroupName, workspaceName, threatIntelligenceFilteringCriteria, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
76
|
-
_c = _f.value;
|
|
77
|
-
_d = false;
|
|
78
|
-
const page = _c;
|
|
79
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
83
|
-
finally {
|
|
84
|
-
try {
|
|
85
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
86
|
-
}
|
|
87
|
-
finally { if (e_1) throw e_1.error; }
|
|
88
|
-
}
|
|
89
|
-
});
|
|
70
|
+
async *queryIndicatorsPagingAll(resourceGroupName, workspaceName, threatIntelligenceFilteringCriteria, options) {
|
|
71
|
+
for await (const page of this.queryIndicatorsPagingPage(resourceGroupName, workspaceName, threatIntelligenceFilteringCriteria, options)) {
|
|
72
|
+
yield* page;
|
|
73
|
+
}
|
|
90
74
|
}
|
|
91
75
|
/**
|
|
92
76
|
* Create a new threat intelligence indicator.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"threatIntelligenceIndicator.js","sourceRoot":"","sources":["../../../src/operations/threatIntelligenceInd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ACjB,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 { ThreatIntelligenceIndicator } 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 ThreatIntelligenceInformationUnion,\n ThreatIntelligenceFilteringCriteria,\n ThreatIntelligenceIndicatorQueryIndicatorsNextOptionalParams,\n ThreatIntelligenceIndicatorQueryIndicatorsOptionalParams,\n ThreatIntelligenceIndicatorQueryIndicatorsResponse,\n ThreatIntelligenceIndicatorModel,\n ThreatIntelligenceIndicatorCreateIndicatorOptionalParams,\n ThreatIntelligenceIndicatorCreateIndicatorResponse,\n ThreatIntelligenceIndicatorGetOptionalParams,\n ThreatIntelligenceIndicatorGetResponse,\n ThreatIntelligenceIndicatorCreateOptionalParams,\n ThreatIntelligenceIndicatorCreateResponse,\n ThreatIntelligenceIndicatorDeleteOptionalParams,\n ThreatIntelligenceAppendTags,\n ThreatIntelligenceIndicatorAppendTagsOptionalParams,\n ThreatIntelligenceIndicatorReplaceTagsOptionalParams,\n ThreatIntelligenceIndicatorReplaceTagsResponse,\n ThreatIntelligenceIndicatorQueryIndicatorsNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ThreatIntelligenceIndicator operations. */\nexport class ThreatIntelligenceIndicatorImpl\n implements ThreatIntelligenceIndicator {\n private readonly client: SecurityInsights;\n\n /**\n * Initialize a new instance of the class ThreatIntelligenceIndicator class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityInsights) {\n this.client = client;\n }\n\n /**\n * Query threat intelligence indicators as per filtering criteria.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param threatIntelligenceFilteringCriteria Filtering criteria for querying threat intelligence\n * indicators.\n * @param options The options parameters.\n */\n public listQueryIndicators(\n resourceGroupName: string,\n workspaceName: string,\n threatIntelligenceFilteringCriteria: ThreatIntelligenceFilteringCriteria,\n options?: ThreatIntelligenceIndicatorQueryIndicatorsOptionalParams\n ): PagedAsyncIterableIterator<ThreatIntelligenceInformationUnion> {\n const iter = this.queryIndicatorsPagingAll(\n resourceGroupName,\n workspaceName,\n threatIntelligenceFilteringCriteria,\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.queryIndicatorsPagingPage(\n resourceGroupName,\n workspaceName,\n threatIntelligenceFilteringCriteria,\n options,\n settings\n );\n }\n };\n }\n\n private async *queryIndicatorsPagingPage(\n resourceGroupName: string,\n workspaceName: string,\n threatIntelligenceFilteringCriteria: ThreatIntelligenceFilteringCriteria,\n options?: ThreatIntelligenceIndicatorQueryIndicatorsOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ThreatIntelligenceInformationUnion[]> {\n let result: ThreatIntelligenceIndicatorQueryIndicatorsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._queryIndicators(\n resourceGroupName,\n workspaceName,\n threatIntelligenceFilteringCriteria,\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._queryIndicatorsNext(\n resourceGroupName,\n workspaceName,\n threatIntelligenceFilteringCriteria,\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 *queryIndicatorsPagingAll(\n resourceGroupName: string,\n workspaceName: string,\n threatIntelligenceFilteringCriteria: ThreatIntelligenceFilteringCriteria,\n options?: ThreatIntelligenceIndicatorQueryIndicatorsOptionalParams\n ): AsyncIterableIterator<ThreatIntelligenceInformationUnion> {\n for await (const page of this.queryIndicatorsPagingPage(\n resourceGroupName,\n workspaceName,\n threatIntelligenceFilteringCriteria,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Create a new threat intelligence indicator.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param threatIntelligenceProperties Properties of threat intelligence indicators to create and\n * update.\n * @param options The options parameters.\n */\n createIndicator(\n resourceGroupName: string,\n workspaceName: string,\n threatIntelligenceProperties: ThreatIntelligenceIndicatorModel,\n options?: ThreatIntelligenceIndicatorCreateIndicatorOptionalParams\n ): Promise<ThreatIntelligenceIndicatorCreateIndicatorResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n threatIntelligenceProperties,\n options\n },\n createIndicatorOperationSpec\n );\n }\n\n /**\n * View a threat intelligence indicator by name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param name Threat intelligence indicator name field.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n name: string,\n options?: ThreatIntelligenceIndicatorGetOptionalParams\n ): Promise<ThreatIntelligenceIndicatorGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Update a threat Intelligence indicator.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param name Threat intelligence indicator name field.\n * @param threatIntelligenceProperties Properties of threat intelligence indicators to create and\n * update.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n workspaceName: string,\n name: string,\n threatIntelligenceProperties: ThreatIntelligenceIndicatorModel,\n options?: ThreatIntelligenceIndicatorCreateOptionalParams\n ): Promise<ThreatIntelligenceIndicatorCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n name,\n threatIntelligenceProperties,\n options\n },\n createOperationSpec\n );\n }\n\n /**\n * Delete a threat intelligence indicator.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param name Threat intelligence indicator name field.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n name: string,\n options?: ThreatIntelligenceIndicatorDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, name, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Query threat intelligence indicators as per filtering criteria.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param threatIntelligenceFilteringCriteria Filtering criteria for querying threat intelligence\n * indicators.\n * @param options The options parameters.\n */\n private _queryIndicators(\n resourceGroupName: string,\n workspaceName: string,\n threatIntelligenceFilteringCriteria: ThreatIntelligenceFilteringCriteria,\n options?: ThreatIntelligenceIndicatorQueryIndicatorsOptionalParams\n ): Promise<ThreatIntelligenceIndicatorQueryIndicatorsResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n threatIntelligenceFilteringCriteria,\n options\n },\n queryIndicatorsOperationSpec\n );\n }\n\n /**\n * Append tags to a threat intelligence indicator.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param name Threat intelligence indicator name field.\n * @param threatIntelligenceAppendTags The threat intelligence append tags request body\n * @param options The options parameters.\n */\n appendTags(\n resourceGroupName: string,\n workspaceName: string,\n name: string,\n threatIntelligenceAppendTags: ThreatIntelligenceAppendTags,\n options?: ThreatIntelligenceIndicatorAppendTagsOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n name,\n threatIntelligenceAppendTags,\n options\n },\n appendTagsOperationSpec\n );\n }\n\n /**\n * Replace tags added to a threat intelligence indicator.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param name Threat intelligence indicator name field.\n * @param threatIntelligenceReplaceTags Tags in the threat intelligence indicator to be replaced.\n * @param options The options parameters.\n */\n replaceTags(\n resourceGroupName: string,\n workspaceName: string,\n name: string,\n threatIntelligenceReplaceTags: ThreatIntelligenceIndicatorModel,\n options?: ThreatIntelligenceIndicatorReplaceTagsOptionalParams\n ): Promise<ThreatIntelligenceIndicatorReplaceTagsResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n name,\n threatIntelligenceReplaceTags,\n options\n },\n replaceTagsOperationSpec\n );\n }\n\n /**\n * QueryIndicatorsNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param threatIntelligenceFilteringCriteria Filtering criteria for querying threat intelligence\n * indicators.\n * @param nextLink The nextLink from the previous successful call to the QueryIndicators method.\n * @param options The options parameters.\n */\n private _queryIndicatorsNext(\n resourceGroupName: string,\n workspaceName: string,\n threatIntelligenceFilteringCriteria: ThreatIntelligenceFilteringCriteria,\n nextLink: string,\n options?: ThreatIntelligenceIndicatorQueryIndicatorsNextOptionalParams\n ): Promise<ThreatIntelligenceIndicatorQueryIndicatorsNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n threatIntelligenceFilteringCriteria,\n nextLink,\n options\n },\n queryIndicatorsNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createIndicatorOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/createIndicator\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThreatIntelligenceInformation\n },\n 201: {\n bodyMapper: Mappers.ThreatIntelligenceInformation\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.threatIntelligenceProperties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThreatIntelligenceInformation\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.name\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThreatIntelligenceInformation\n },\n 201: {\n bodyMapper: Mappers.ThreatIntelligenceInformation\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.threatIntelligenceProperties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.name\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/threatIntelligence/main/indicators/{name}\",\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.name\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst queryIndicatorsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/queryIndicators\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThreatIntelligenceInformationList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.threatIntelligenceFilteringCriteria,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst appendTagsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/{name}/appendTags\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.threatIntelligenceAppendTags,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst replaceTagsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/{name}/replaceTags\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThreatIntelligenceInformation\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.threatIntelligenceReplaceTags,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst queryIndicatorsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThreatIntelligenceInformationList\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, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"threatIntelligenceIndicator.js","sourceRoot":"","sources":["../../../src/operations/threatIntelligenceIndicator.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAuBtD,4CAA4C;AAC5C,+DAA+D;AAC/D,MAAa,+BAA+B;IAEzB,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,aAAqB,EACrB,mCAAwE,EACxE,OAAkE;QAElE,MAAM,IAAI,GAAG,IAAI,CAAC,wBAA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ACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,IAAI;KAChB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iCAAiC;SACtD;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,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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 { ThreatIntelligenceIndicator } 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 ThreatIntelligenceInformationUnion,\n ThreatIntelligenceFilteringCriteria,\n ThreatIntelligenceIndicatorQueryIndicatorsNextOptionalParams,\n ThreatIntelligenceIndicatorQueryIndicatorsOptionalParams,\n ThreatIntelligenceIndicatorQueryIndicatorsResponse,\n ThreatIntelligenceIndicatorModel,\n ThreatIntelligenceIndicatorCreateIndicatorOptionalParams,\n ThreatIntelligenceIndicatorCreateIndicatorResponse,\n ThreatIntelligenceIndicatorGetOptionalParams,\n ThreatIntelligenceIndicatorGetResponse,\n ThreatIntelligenceIndicatorCreateOptionalParams,\n ThreatIntelligenceIndicatorCreateResponse,\n ThreatIntelligenceIndicatorDeleteOptionalParams,\n ThreatIntelligenceAppendTags,\n ThreatIntelligenceIndicatorAppendTagsOptionalParams,\n ThreatIntelligenceIndicatorReplaceTagsOptionalParams,\n ThreatIntelligenceIndicatorReplaceTagsResponse,\n ThreatIntelligenceIndicatorQueryIndicatorsNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ThreatIntelligenceIndicator operations. */\nexport class ThreatIntelligenceIndicatorImpl\n implements ThreatIntelligenceIndicator {\n private readonly client: SecurityInsights;\n\n /**\n * Initialize a new instance of the class ThreatIntelligenceIndicator class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityInsights) {\n this.client = client;\n }\n\n /**\n * Query threat intelligence indicators as per filtering criteria.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param threatIntelligenceFilteringCriteria Filtering criteria for querying threat intelligence\n * indicators.\n * @param options The options parameters.\n */\n public listQueryIndicators(\n resourceGroupName: string,\n workspaceName: string,\n threatIntelligenceFilteringCriteria: ThreatIntelligenceFilteringCriteria,\n options?: ThreatIntelligenceIndicatorQueryIndicatorsOptionalParams\n ): PagedAsyncIterableIterator<ThreatIntelligenceInformationUnion> {\n const iter = this.queryIndicatorsPagingAll(\n resourceGroupName,\n workspaceName,\n threatIntelligenceFilteringCriteria,\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.queryIndicatorsPagingPage(\n resourceGroupName,\n workspaceName,\n threatIntelligenceFilteringCriteria,\n options,\n settings\n );\n }\n };\n }\n\n private async *queryIndicatorsPagingPage(\n resourceGroupName: string,\n workspaceName: string,\n threatIntelligenceFilteringCriteria: ThreatIntelligenceFilteringCriteria,\n options?: ThreatIntelligenceIndicatorQueryIndicatorsOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ThreatIntelligenceInformationUnion[]> {\n let result: ThreatIntelligenceIndicatorQueryIndicatorsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._queryIndicators(\n resourceGroupName,\n workspaceName,\n threatIntelligenceFilteringCriteria,\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._queryIndicatorsNext(\n resourceGroupName,\n workspaceName,\n threatIntelligenceFilteringCriteria,\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 *queryIndicatorsPagingAll(\n resourceGroupName: string,\n workspaceName: string,\n threatIntelligenceFilteringCriteria: ThreatIntelligenceFilteringCriteria,\n options?: ThreatIntelligenceIndicatorQueryIndicatorsOptionalParams\n ): AsyncIterableIterator<ThreatIntelligenceInformationUnion> {\n for await (const page of this.queryIndicatorsPagingPage(\n resourceGroupName,\n workspaceName,\n threatIntelligenceFilteringCriteria,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Create a new threat intelligence indicator.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param threatIntelligenceProperties Properties of threat intelligence indicators to create and\n * update.\n * @param options The options parameters.\n */\n createIndicator(\n resourceGroupName: string,\n workspaceName: string,\n threatIntelligenceProperties: ThreatIntelligenceIndicatorModel,\n options?: ThreatIntelligenceIndicatorCreateIndicatorOptionalParams\n ): Promise<ThreatIntelligenceIndicatorCreateIndicatorResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n threatIntelligenceProperties,\n options\n },\n createIndicatorOperationSpec\n );\n }\n\n /**\n * View a threat intelligence indicator by name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param name Threat intelligence indicator name field.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n name: string,\n options?: ThreatIntelligenceIndicatorGetOptionalParams\n ): Promise<ThreatIntelligenceIndicatorGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Update a threat Intelligence indicator.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param name Threat intelligence indicator name field.\n * @param threatIntelligenceProperties Properties of threat intelligence indicators to create and\n * update.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n workspaceName: string,\n name: string,\n threatIntelligenceProperties: ThreatIntelligenceIndicatorModel,\n options?: ThreatIntelligenceIndicatorCreateOptionalParams\n ): Promise<ThreatIntelligenceIndicatorCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n name,\n threatIntelligenceProperties,\n options\n },\n createOperationSpec\n );\n }\n\n /**\n * Delete a threat intelligence indicator.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param name Threat intelligence indicator name field.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n name: string,\n options?: ThreatIntelligenceIndicatorDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, name, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Query threat intelligence indicators as per filtering criteria.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param threatIntelligenceFilteringCriteria Filtering criteria for querying threat intelligence\n * indicators.\n * @param options The options parameters.\n */\n private _queryIndicators(\n resourceGroupName: string,\n workspaceName: string,\n threatIntelligenceFilteringCriteria: ThreatIntelligenceFilteringCriteria,\n options?: ThreatIntelligenceIndicatorQueryIndicatorsOptionalParams\n ): Promise<ThreatIntelligenceIndicatorQueryIndicatorsResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n threatIntelligenceFilteringCriteria,\n options\n },\n queryIndicatorsOperationSpec\n );\n }\n\n /**\n * Append tags to a threat intelligence indicator.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param name Threat intelligence indicator name field.\n * @param threatIntelligenceAppendTags The threat intelligence append tags request body\n * @param options The options parameters.\n */\n appendTags(\n resourceGroupName: string,\n workspaceName: string,\n name: string,\n threatIntelligenceAppendTags: ThreatIntelligenceAppendTags,\n options?: ThreatIntelligenceIndicatorAppendTagsOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n name,\n threatIntelligenceAppendTags,\n options\n },\n appendTagsOperationSpec\n );\n }\n\n /**\n * Replace tags added to a threat intelligence indicator.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param name Threat intelligence indicator name field.\n * @param threatIntelligenceReplaceTags Tags in the threat intelligence indicator to be replaced.\n * @param options The options parameters.\n */\n replaceTags(\n resourceGroupName: string,\n workspaceName: string,\n name: string,\n threatIntelligenceReplaceTags: ThreatIntelligenceIndicatorModel,\n options?: ThreatIntelligenceIndicatorReplaceTagsOptionalParams\n ): Promise<ThreatIntelligenceIndicatorReplaceTagsResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n name,\n threatIntelligenceReplaceTags,\n options\n },\n replaceTagsOperationSpec\n );\n }\n\n /**\n * QueryIndicatorsNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param threatIntelligenceFilteringCriteria Filtering criteria for querying threat intelligence\n * indicators.\n * @param nextLink The nextLink from the previous successful call to the QueryIndicators method.\n * @param options The options parameters.\n */\n private _queryIndicatorsNext(\n resourceGroupName: string,\n workspaceName: string,\n threatIntelligenceFilteringCriteria: ThreatIntelligenceFilteringCriteria,\n nextLink: string,\n options?: ThreatIntelligenceIndicatorQueryIndicatorsNextOptionalParams\n ): Promise<ThreatIntelligenceIndicatorQueryIndicatorsNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n threatIntelligenceFilteringCriteria,\n nextLink,\n options\n },\n queryIndicatorsNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createIndicatorOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/createIndicator\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThreatIntelligenceInformation\n },\n 201: {\n bodyMapper: Mappers.ThreatIntelligenceInformation\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.threatIntelligenceProperties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThreatIntelligenceInformation\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.name\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThreatIntelligenceInformation\n },\n 201: {\n bodyMapper: Mappers.ThreatIntelligenceInformation\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.threatIntelligenceProperties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.name\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/threatIntelligence/main/indicators/{name}\",\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.name\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst queryIndicatorsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/queryIndicators\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThreatIntelligenceInformationList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.threatIntelligenceFilteringCriteria,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst appendTagsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/{name}/appendTags\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.threatIntelligenceAppendTags,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst replaceTagsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/{name}/replaceTags\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThreatIntelligenceInformation\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.threatIntelligenceReplaceTags,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst queryIndicatorsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThreatIntelligenceInformationList\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, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/** Class containing ThreatIntelligenceIndicatorMetrics operations. */
|
|
16
16
|
class ThreatIntelligenceIndicatorMetricsImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class ThreatIntelligenceIndicatorMetrics class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"threatIntelligenceIndicatorMetrics.js","sourceRoot":"","sources":["../../../src/operations/threatIntelligenceIndicatorMetrics.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,sEAAsE;AACtE,MAAa,sCAAsC;
|
|
1
|
+
{"version":3,"file":"threatIntelligenceIndicatorMetrics.js","sourceRoot":"","sources":["../../../src/operations/threatIntelligenceIndicatorMetrics.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,sEAAsE;AACtE,MAAa,sCAAsC;IAEhC,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,iBAAyB,EACzB,aAAqB,EACrB,OAA8D;QAE9D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,EAAE,EAC7C,iBAAiB,CAClB,CAAC;IACJ,CAAC;CACF;AA5BD,wFA4BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,4MAA4M;IAC9M,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;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;KACzB;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 { ThreatIntelligenceIndicatorMetrics } 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 ThreatIntelligenceIndicatorMetricsListOptionalParams,\n ThreatIntelligenceIndicatorMetricsListResponse\n} from \"../models/index.js\";\n\n/** Class containing ThreatIntelligenceIndicatorMetrics operations. */\nexport class ThreatIntelligenceIndicatorMetricsImpl\n implements ThreatIntelligenceIndicatorMetrics {\n private readonly client: SecurityInsights;\n\n /**\n * Initialize a new instance of the class ThreatIntelligenceIndicatorMetrics class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityInsights) {\n this.client = client;\n }\n\n /**\n * Get threat intelligence indicators metrics (Indicators counts by Type, Threat Type, Source).\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 list(\n resourceGroupName: string,\n workspaceName: string,\n options?: ThreatIntelligenceIndicatorMetricsListOptionalParams\n ): Promise<ThreatIntelligenceIndicatorMetricsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listOperationSpec\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/threatIntelligence/main/metrics\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThreatIntelligenceMetricsList\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 ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|