@azure/arm-securityinsight 1.0.0-beta.4 → 1.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +159 -0
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +1587 -606
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/actionsCreateOrUpdateSample.js +12 -4
- package/dist-esm/samples-dev/actionsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/actionsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/actionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/actionsGetSample.js +12 -4
- package/dist-esm/samples-dev/actionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/actionsListByAlertRuleSample.js +12 -4
- package/dist-esm/samples-dev/actionsListByAlertRuleSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRuleTemplatesGetSample.js +12 -4
- package/dist-esm/samples-dev/alertRuleTemplatesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRuleTemplatesListSample.js +12 -4
- package/dist-esm/samples-dev/alertRuleTemplatesListSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.js +33 -20
- package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRulesDeleteSample.js +12 -4
- package/dist-esm/samples-dev/alertRulesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRulesGetSample.js +27 -16
- package/dist-esm/samples-dev/alertRulesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRulesListSample.js +12 -4
- package/dist-esm/samples-dev/alertRulesListSample.js.map +1 -1
- package/dist-esm/samples-dev/automationRulesCreateOrUpdateSample.js +12 -4
- package/dist-esm/samples-dev/automationRulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/automationRulesDeleteSample.js +12 -4
- package/dist-esm/samples-dev/automationRulesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/automationRulesGetSample.js +12 -4
- package/dist-esm/samples-dev/automationRulesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/automationRulesListSample.js +12 -4
- package/dist-esm/samples-dev/automationRulesListSample.js.map +1 -1
- package/dist-esm/samples-dev/bookmarkExpandSample.js +12 -4
- package/dist-esm/samples-dev/bookmarkExpandSample.js.map +1 -1
- package/dist-esm/samples-dev/bookmarkRelationsCreateOrUpdateSample.js +12 -4
- package/dist-esm/samples-dev/bookmarkRelationsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/bookmarkRelationsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/bookmarkRelationsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/bookmarkRelationsGetSample.js +12 -4
- package/dist-esm/samples-dev/bookmarkRelationsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/bookmarkRelationsListSample.js +12 -4
- package/dist-esm/samples-dev/bookmarkRelationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/bookmarksCreateOrUpdateSample.js +12 -4
- package/dist-esm/samples-dev/bookmarksCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/bookmarksDeleteSample.js +12 -4
- package/dist-esm/samples-dev/bookmarksDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/bookmarksGetSample.js +12 -4
- package/dist-esm/samples-dev/bookmarksGetSample.js.map +1 -1
- package/dist-esm/samples-dev/bookmarksListSample.js +12 -4
- package/dist-esm/samples-dev/bookmarksListSample.js.map +1 -1
- package/dist-esm/samples-dev/dataConnectorsCheckRequirementsPostSample.js +87 -64
- package/dist-esm/samples-dev/dataConnectorsCheckRequirementsPostSample.js.map +1 -1
- package/dist-esm/samples-dev/dataConnectorsConnectSample.js +17 -8
- package/dist-esm/samples-dev/dataConnectorsConnectSample.js.map +1 -1
- package/dist-esm/samples-dev/dataConnectorsCreateOrUpdateSample.js +49 -34
- package/dist-esm/samples-dev/dataConnectorsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/dataConnectorsDeleteSample.js +32 -20
- package/dist-esm/samples-dev/dataConnectorsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/dataConnectorsDisconnectSample.js +12 -4
- package/dist-esm/samples-dev/dataConnectorsDisconnectSample.js.map +1 -1
- package/dist-esm/samples-dev/dataConnectorsGetSample.js +107 -80
- package/dist-esm/samples-dev/dataConnectorsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/dataConnectorsListSample.js +12 -4
- package/dist-esm/samples-dev/dataConnectorsListSample.js.map +1 -1
- package/dist-esm/samples-dev/domainWhoisGetSample.js +12 -4
- package/dist-esm/samples-dev/domainWhoisGetSample.js.map +1 -1
- package/dist-esm/samples-dev/entitiesExpandSample.js +12 -4
- package/dist-esm/samples-dev/entitiesExpandSample.js.map +1 -1
- package/dist-esm/samples-dev/entitiesGetInsightsSample.js +12 -4
- package/dist-esm/samples-dev/entitiesGetInsightsSample.js.map +1 -1
- package/dist-esm/samples-dev/entitiesGetSample.js +107 -80
- package/dist-esm/samples-dev/entitiesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/entitiesGetTimelineListSample.js +12 -4
- package/dist-esm/samples-dev/entitiesGetTimelineListSample.js.map +1 -1
- package/dist-esm/samples-dev/entitiesListSample.js +12 -4
- package/dist-esm/samples-dev/entitiesListSample.js.map +1 -1
- package/dist-esm/samples-dev/entitiesQueriesSample.js +12 -4
- package/dist-esm/samples-dev/entitiesQueriesSample.js.map +1 -1
- package/dist-esm/samples-dev/entitiesRelationsListSample.js +12 -4
- package/dist-esm/samples-dev/entitiesRelationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/entityQueriesCreateOrUpdateSample.js +13 -5
- package/dist-esm/samples-dev/entityQueriesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/entityQueriesDeleteSample.js +12 -4
- package/dist-esm/samples-dev/entityQueriesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/entityQueriesGetSample.js +17 -8
- package/dist-esm/samples-dev/entityQueriesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/entityQueriesListSample.js +12 -4
- package/dist-esm/samples-dev/entityQueriesListSample.js.map +1 -1
- package/dist-esm/samples-dev/entityQueryTemplatesGetSample.js +12 -4
- package/dist-esm/samples-dev/entityQueryTemplatesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/entityQueryTemplatesListSample.js +12 -4
- package/dist-esm/samples-dev/entityQueryTemplatesListSample.js.map +1 -1
- package/dist-esm/samples-dev/entityRelationsGetRelationSample.js +12 -4
- package/dist-esm/samples-dev/entityRelationsGetRelationSample.js.map +1 -1
- package/dist-esm/samples-dev/fileImportsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/fileImportsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fileImportsCreateSample.js +46 -0
- package/dist-esm/samples-dev/fileImportsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/fileImportsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/fileImportsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fileImportsDeleteSample.js +40 -0
- package/dist-esm/samples-dev/fileImportsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/fileImportsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/fileImportsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fileImportsGetSample.js +40 -0
- package/dist-esm/samples-dev/fileImportsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/fileImportsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/fileImportsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fileImportsListSample.js +56 -0
- package/dist-esm/samples-dev/fileImportsListSample.js.map +1 -0
- package/dist-esm/samples-dev/incidentCommentsCreateOrUpdateSample.js +12 -4
- package/dist-esm/samples-dev/incidentCommentsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/incidentCommentsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/incidentCommentsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/incidentCommentsGetSample.js +12 -4
- package/dist-esm/samples-dev/incidentCommentsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/incidentCommentsListSample.js +12 -4
- package/dist-esm/samples-dev/incidentCommentsListSample.js.map +1 -1
- package/dist-esm/samples-dev/incidentRelationsCreateOrUpdateSample.js +12 -4
- package/dist-esm/samples-dev/incidentRelationsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/incidentRelationsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/incidentRelationsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/incidentRelationsGetSample.js +12 -4
- package/dist-esm/samples-dev/incidentRelationsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/incidentRelationsListSample.js +12 -4
- package/dist-esm/samples-dev/incidentRelationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/incidentsCreateOrUpdateSample.js +12 -4
- package/dist-esm/samples-dev/incidentsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/incidentsCreateTeamSample.js +13 -4
- package/dist-esm/samples-dev/incidentsCreateTeamSample.js.map +1 -1
- package/dist-esm/samples-dev/incidentsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/incidentsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/incidentsGetSample.js +12 -4
- package/dist-esm/samples-dev/incidentsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/incidentsListAlertsSample.js +12 -4
- package/dist-esm/samples-dev/incidentsListAlertsSample.js.map +1 -1
- package/dist-esm/samples-dev/incidentsListBookmarksSample.js +12 -4
- package/dist-esm/samples-dev/incidentsListBookmarksSample.js.map +1 -1
- package/dist-esm/samples-dev/incidentsListEntitiesSample.js +12 -4
- package/dist-esm/samples-dev/incidentsListEntitiesSample.js.map +1 -1
- package/dist-esm/samples-dev/incidentsListSample.js +12 -4
- package/dist-esm/samples-dev/incidentsListSample.js.map +1 -1
- package/dist-esm/samples-dev/incidentsRunPlaybookSample.js +12 -4
- package/dist-esm/samples-dev/incidentsRunPlaybookSample.js.map +1 -1
- package/dist-esm/samples-dev/ipGeodataGetSample.js +12 -4
- package/dist-esm/samples-dev/ipGeodataGetSample.js.map +1 -1
- package/dist-esm/samples-dev/metadataCreateSample.js +17 -8
- package/dist-esm/samples-dev/metadataCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/metadataDeleteSample.js +12 -4
- package/dist-esm/samples-dev/metadataDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/metadataGetSample.js +12 -4
- package/dist-esm/samples-dev/metadataGetSample.js.map +1 -1
- package/dist-esm/samples-dev/metadataListSample.js +17 -8
- package/dist-esm/samples-dev/metadataListSample.js.map +1 -1
- package/dist-esm/samples-dev/metadataUpdateSample.js +12 -4
- package/dist-esm/samples-dev/metadataUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/officeConsentsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/officeConsentsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/officeConsentsGetSample.js +12 -4
- package/dist-esm/samples-dev/officeConsentsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/officeConsentsListSample.js +12 -4
- package/dist-esm/samples-dev/officeConsentsListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +11 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/productSettingsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/productSettingsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/productSettingsGetSample.js +12 -4
- package/dist-esm/samples-dev/productSettingsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/productSettingsListSample.js +12 -4
- package/dist-esm/samples-dev/productSettingsListSample.js.map +1 -1
- package/dist-esm/samples-dev/productSettingsUpdateSample.js +12 -4
- package/dist-esm/samples-dev/productSettingsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/securityMlAnalyticsSettingsCreateOrUpdateSample.js +12 -4
- package/dist-esm/samples-dev/securityMlAnalyticsSettingsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/securityMlAnalyticsSettingsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/securityMlAnalyticsSettingsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/securityMlAnalyticsSettingsGetSample.js +12 -4
- package/dist-esm/samples-dev/securityMlAnalyticsSettingsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/securityMlAnalyticsSettingsListSample.js +12 -4
- package/dist-esm/samples-dev/securityMlAnalyticsSettingsListSample.js.map +1 -1
- package/dist-esm/samples-dev/sentinelOnboardingStatesCreateSample.js +12 -4
- package/dist-esm/samples-dev/sentinelOnboardingStatesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/sentinelOnboardingStatesDeleteSample.js +12 -4
- package/dist-esm/samples-dev/sentinelOnboardingStatesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/sentinelOnboardingStatesGetSample.js +12 -4
- package/dist-esm/samples-dev/sentinelOnboardingStatesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/sentinelOnboardingStatesListSample.js +12 -4
- package/dist-esm/samples-dev/sentinelOnboardingStatesListSample.js.map +1 -1
- package/dist-esm/samples-dev/sourceControlListRepositoriesSample.js +12 -4
- package/dist-esm/samples-dev/sourceControlListRepositoriesSample.js.map +1 -1
- package/dist-esm/samples-dev/sourceControlsCreateSample.js +12 -4
- package/dist-esm/samples-dev/sourceControlsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/sourceControlsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/sourceControlsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/sourceControlsGetSample.js +12 -4
- package/dist-esm/samples-dev/sourceControlsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/sourceControlsListSample.js +12 -4
- package/dist-esm/samples-dev/sourceControlsListSample.js.map +1 -1
- package/dist-esm/samples-dev/threatIntelligenceIndicatorAppendTagsSample.js +12 -4
- package/dist-esm/samples-dev/threatIntelligenceIndicatorAppendTagsSample.js.map +1 -1
- package/dist-esm/samples-dev/threatIntelligenceIndicatorCreateIndicatorSample.js +12 -4
- package/dist-esm/samples-dev/threatIntelligenceIndicatorCreateIndicatorSample.js.map +1 -1
- package/dist-esm/samples-dev/threatIntelligenceIndicatorCreateSample.js +12 -4
- package/dist-esm/samples-dev/threatIntelligenceIndicatorCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/threatIntelligenceIndicatorDeleteSample.js +12 -4
- package/dist-esm/samples-dev/threatIntelligenceIndicatorDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/threatIntelligenceIndicatorGetSample.js +12 -4
- package/dist-esm/samples-dev/threatIntelligenceIndicatorGetSample.js.map +1 -1
- package/dist-esm/samples-dev/threatIntelligenceIndicatorMetricsListSample.js +12 -4
- package/dist-esm/samples-dev/threatIntelligenceIndicatorMetricsListSample.js.map +1 -1
- package/dist-esm/samples-dev/threatIntelligenceIndicatorQueryIndicatorsSample.js +12 -4
- package/dist-esm/samples-dev/threatIntelligenceIndicatorQueryIndicatorsSample.js.map +1 -1
- package/dist-esm/samples-dev/threatIntelligenceIndicatorReplaceTagsSample.js +12 -4
- package/dist-esm/samples-dev/threatIntelligenceIndicatorReplaceTagsSample.js.map +1 -1
- package/dist-esm/samples-dev/threatIntelligenceIndicatorsListSample.js +12 -4
- package/dist-esm/samples-dev/threatIntelligenceIndicatorsListSample.js.map +1 -1
- package/dist-esm/samples-dev/watchlistItemsCreateOrUpdateSample.js +12 -4
- package/dist-esm/samples-dev/watchlistItemsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/watchlistItemsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/watchlistItemsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/watchlistItemsGetSample.js +12 -4
- package/dist-esm/samples-dev/watchlistItemsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/watchlistItemsListSample.js +12 -4
- package/dist-esm/samples-dev/watchlistItemsListSample.js.map +1 -1
- package/dist-esm/samples-dev/watchlistsCreateOrUpdateSample.js +17 -8
- package/dist-esm/samples-dev/watchlistsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/watchlistsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/watchlistsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/watchlistsGetSample.js +12 -4
- package/dist-esm/samples-dev/watchlistsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/watchlistsListSample.js +12 -4
- package/dist-esm/samples-dev/watchlistsListSample.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +474 -82
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +98 -8
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +82 -63
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +511 -201
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +2 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +16 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/actions.d.ts.map +1 -1
- package/dist-esm/src/operations/actions.js +19 -8
- package/dist-esm/src/operations/actions.js.map +1 -1
- package/dist-esm/src/operations/alertRuleTemplates.d.ts.map +1 -1
- package/dist-esm/src/operations/alertRuleTemplates.js +19 -8
- package/dist-esm/src/operations/alertRuleTemplates.js.map +1 -1
- package/dist-esm/src/operations/alertRules.d.ts.map +1 -1
- package/dist-esm/src/operations/alertRules.js +19 -8
- package/dist-esm/src/operations/alertRules.js.map +1 -1
- package/dist-esm/src/operations/automationRules.d.ts.map +1 -1
- package/dist-esm/src/operations/automationRules.js +19 -8
- package/dist-esm/src/operations/automationRules.js.map +1 -1
- package/dist-esm/src/operations/bookmarkRelations.d.ts.map +1 -1
- package/dist-esm/src/operations/bookmarkRelations.js +19 -14
- package/dist-esm/src/operations/bookmarkRelations.js.map +1 -1
- package/dist-esm/src/operations/bookmarks.d.ts.map +1 -1
- package/dist-esm/src/operations/bookmarks.js +19 -8
- package/dist-esm/src/operations/bookmarks.js.map +1 -1
- package/dist-esm/src/operations/dataConnectors.d.ts.map +1 -1
- package/dist-esm/src/operations/dataConnectors.js +19 -8
- package/dist-esm/src/operations/dataConnectors.js.map +1 -1
- package/dist-esm/src/operations/entities.d.ts.map +1 -1
- package/dist-esm/src/operations/entities.js +19 -8
- package/dist-esm/src/operations/entities.js.map +1 -1
- package/dist-esm/src/operations/entitiesRelations.d.ts.map +1 -1
- package/dist-esm/src/operations/entitiesRelations.js +19 -14
- package/dist-esm/src/operations/entitiesRelations.js.map +1 -1
- package/dist-esm/src/operations/entityQueries.d.ts.map +1 -1
- package/dist-esm/src/operations/entityQueries.js +19 -8
- package/dist-esm/src/operations/entityQueries.js.map +1 -1
- package/dist-esm/src/operations/entityQueryTemplates.d.ts.map +1 -1
- package/dist-esm/src/operations/entityQueryTemplates.js +19 -8
- package/dist-esm/src/operations/entityQueryTemplates.js.map +1 -1
- package/dist-esm/src/operations/fileImports.d.ts +72 -0
- package/dist-esm/src/operations/fileImports.d.ts.map +1 -0
- package/dist-esm/src/operations/fileImports.js +308 -0
- package/dist-esm/src/operations/fileImports.js.map +1 -0
- package/dist-esm/src/operations/incidentComments.d.ts.map +1 -1
- package/dist-esm/src/operations/incidentComments.js +19 -14
- package/dist-esm/src/operations/incidentComments.js.map +1 -1
- package/dist-esm/src/operations/incidentRelations.d.ts.map +1 -1
- package/dist-esm/src/operations/incidentRelations.js +19 -14
- package/dist-esm/src/operations/incidentRelations.js.map +1 -1
- package/dist-esm/src/operations/incidents.d.ts.map +1 -1
- package/dist-esm/src/operations/incidents.js +19 -14
- package/dist-esm/src/operations/incidents.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/metadata.d.ts.map +1 -1
- package/dist-esm/src/operations/metadata.js +19 -14
- package/dist-esm/src/operations/metadata.js.map +1 -1
- package/dist-esm/src/operations/officeConsents.d.ts.map +1 -1
- package/dist-esm/src/operations/officeConsents.js +19 -8
- package/dist-esm/src/operations/officeConsents.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -8
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/securityMLAnalyticsSettings.d.ts.map +1 -1
- package/dist-esm/src/operations/securityMLAnalyticsSettings.js +19 -8
- package/dist-esm/src/operations/securityMLAnalyticsSettings.js.map +1 -1
- package/dist-esm/src/operations/sourceControlOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/sourceControlOperations.js +19 -8
- package/dist-esm/src/operations/sourceControlOperations.js.map +1 -1
- package/dist-esm/src/operations/sourceControls.d.ts.map +1 -1
- package/dist-esm/src/operations/sourceControls.js +19 -8
- package/dist-esm/src/operations/sourceControls.js.map +1 -1
- package/dist-esm/src/operations/threatIntelligenceIndicator.d.ts.map +1 -1
- package/dist-esm/src/operations/threatIntelligenceIndicator.js +19 -8
- package/dist-esm/src/operations/threatIntelligenceIndicator.js.map +1 -1
- package/dist-esm/src/operations/threatIntelligenceIndicators.d.ts.map +1 -1
- package/dist-esm/src/operations/threatIntelligenceIndicators.js +19 -14
- package/dist-esm/src/operations/threatIntelligenceIndicators.js.map +1 -1
- package/dist-esm/src/operations/watchlistItems.d.ts.map +1 -1
- package/dist-esm/src/operations/watchlistItems.js +19 -8
- package/dist-esm/src/operations/watchlistItems.js.map +1 -1
- package/dist-esm/src/operations/watchlists.d.ts.map +1 -1
- package/dist-esm/src/operations/watchlists.js +19 -8
- package/dist-esm/src/operations/watchlists.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/fileImports.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/fileImports.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/fileImports.js +9 -0
- package/dist-esm/src/operationsInterfaces/fileImports.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/securityInsights.d.ts +2 -1
- package/dist-esm/src/securityInsights.d.ts.map +1 -1
- package/dist-esm/src/securityInsights.js +7 -9
- package/dist-esm/src/securityInsights.js.map +1 -1
- package/dist-esm/test/securityinsights_examples.spec.d.ts +4 -0
- package/dist-esm/test/securityinsights_examples.spec.d.ts.map +1 -0
- package/dist-esm/test/securityinsights_examples.spec.js +98 -0
- package/dist-esm/test/securityinsights_examples.spec.js.map +1 -0
- package/package.json +10 -6
- package/review/arm-securityinsight.api.md +282 -34
- package/src/index.ts +1 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +526 -100
- package/src/models/mappers.ts +546 -201
- package/src/models/parameters.ts +18 -1
- package/src/operations/actions.ts +27 -14
- package/src/operations/alertRuleTemplates.ts +26 -9
- package/src/operations/alertRules.ts +26 -9
- package/src/operations/automationRules.ts +27 -10
- package/src/operations/bookmarkRelations.ts +27 -20
- package/src/operations/bookmarks.ts +26 -9
- package/src/operations/dataConnectors.ts +26 -9
- package/src/operations/entities.ts +26 -9
- package/src/operations/entitiesRelations.ts +27 -20
- package/src/operations/entityQueries.ts +26 -9
- package/src/operations/entityQueryTemplates.ts +26 -9
- package/src/operations/fileImports.ts +421 -0
- package/src/operations/incidentComments.ts +27 -20
- package/src/operations/incidentRelations.ts +27 -20
- package/src/operations/incidents.ts +27 -16
- package/src/operations/index.ts +1 -0
- package/src/operations/metadata.ts +26 -15
- package/src/operations/officeConsents.ts +26 -9
- package/src/operations/operations.ts +21 -9
- package/src/operations/securityMLAnalyticsSettings.ts +26 -9
- package/src/operations/sourceControlOperations.ts +27 -14
- package/src/operations/sourceControls.ts +26 -9
- package/src/operations/threatIntelligenceIndicator.ts +28 -15
- package/src/operations/threatIntelligenceIndicators.ts +26 -15
- package/src/operations/watchlistItems.ts +27 -14
- package/src/operations/watchlists.ts +26 -9
- package/src/operationsInterfaces/fileImports.ts +95 -0
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/pagingHelper.ts +39 -0
- package/src/securityInsights.ts +10 -7
- package/types/arm-securityinsight.d.ts +549 -67
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { SourceControls } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -57,8 +58,16 @@ export class SourceControlsImpl implements SourceControls {
|
|
|
57
58
|
[Symbol.asyncIterator]() {
|
|
58
59
|
return this;
|
|
59
60
|
},
|
|
60
|
-
byPage: () => {
|
|
61
|
-
|
|
61
|
+
byPage: (settings?: PageSettings) => {
|
|
62
|
+
if (settings?.maxPageSize) {
|
|
63
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
64
|
+
}
|
|
65
|
+
return this.listPagingPage(
|
|
66
|
+
resourceGroupName,
|
|
67
|
+
workspaceName,
|
|
68
|
+
options,
|
|
69
|
+
settings
|
|
70
|
+
);
|
|
62
71
|
}
|
|
63
72
|
};
|
|
64
73
|
}
|
|
@@ -66,11 +75,18 @@ export class SourceControlsImpl implements SourceControls {
|
|
|
66
75
|
private async *listPagingPage(
|
|
67
76
|
resourceGroupName: string,
|
|
68
77
|
workspaceName: string,
|
|
69
|
-
options?: SourceControlsListOptionalParams
|
|
78
|
+
options?: SourceControlsListOptionalParams,
|
|
79
|
+
settings?: PageSettings
|
|
70
80
|
): AsyncIterableIterator<SourceControl[]> {
|
|
71
|
-
let result
|
|
72
|
-
|
|
73
|
-
|
|
81
|
+
let result: SourceControlsListResponse;
|
|
82
|
+
let continuationToken = settings?.continuationToken;
|
|
83
|
+
if (!continuationToken) {
|
|
84
|
+
result = await this._list(resourceGroupName, workspaceName, options);
|
|
85
|
+
let page = result.value || [];
|
|
86
|
+
continuationToken = result.nextLink;
|
|
87
|
+
setContinuationToken(page, continuationToken);
|
|
88
|
+
yield page;
|
|
89
|
+
}
|
|
74
90
|
while (continuationToken) {
|
|
75
91
|
result = await this._listNext(
|
|
76
92
|
resourceGroupName,
|
|
@@ -79,7 +95,9 @@ export class SourceControlsImpl implements SourceControls {
|
|
|
79
95
|
options
|
|
80
96
|
);
|
|
81
97
|
continuationToken = result.nextLink;
|
|
82
|
-
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
setContinuationToken(page, continuationToken);
|
|
100
|
+
yield page;
|
|
83
101
|
}
|
|
84
102
|
}
|
|
85
103
|
|
|
@@ -307,7 +325,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
307
325
|
bodyMapper: Mappers.CloudError
|
|
308
326
|
}
|
|
309
327
|
},
|
|
310
|
-
queryParameters: [Parameters.apiVersion],
|
|
311
328
|
urlParameters: [
|
|
312
329
|
Parameters.$host,
|
|
313
330
|
Parameters.subscriptionId,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { ThreatIntelligenceIndicator } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -17,6 +18,7 @@ import {
|
|
|
17
18
|
ThreatIntelligenceFilteringCriteria,
|
|
18
19
|
ThreatIntelligenceIndicatorQueryIndicatorsNextOptionalParams,
|
|
19
20
|
ThreatIntelligenceIndicatorQueryIndicatorsOptionalParams,
|
|
21
|
+
ThreatIntelligenceIndicatorQueryIndicatorsResponse,
|
|
20
22
|
ThreatIntelligenceIndicatorModel,
|
|
21
23
|
ThreatIntelligenceIndicatorCreateIndicatorOptionalParams,
|
|
22
24
|
ThreatIntelligenceIndicatorCreateIndicatorResponse,
|
|
@@ -25,7 +27,6 @@ import {
|
|
|
25
27
|
ThreatIntelligenceIndicatorCreateOptionalParams,
|
|
26
28
|
ThreatIntelligenceIndicatorCreateResponse,
|
|
27
29
|
ThreatIntelligenceIndicatorDeleteOptionalParams,
|
|
28
|
-
ThreatIntelligenceIndicatorQueryIndicatorsResponse,
|
|
29
30
|
ThreatIntelligenceAppendTags,
|
|
30
31
|
ThreatIntelligenceIndicatorAppendTagsOptionalParams,
|
|
31
32
|
ThreatIntelligenceIndicatorReplaceTagsOptionalParams,
|
|
@@ -74,12 +75,16 @@ export class ThreatIntelligenceIndicatorImpl
|
|
|
74
75
|
[Symbol.asyncIterator]() {
|
|
75
76
|
return this;
|
|
76
77
|
},
|
|
77
|
-
byPage: () => {
|
|
78
|
+
byPage: (settings?: PageSettings) => {
|
|
79
|
+
if (settings?.maxPageSize) {
|
|
80
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
81
|
+
}
|
|
78
82
|
return this.queryIndicatorsPagingPage(
|
|
79
83
|
resourceGroupName,
|
|
80
84
|
workspaceName,
|
|
81
85
|
threatIntelligenceFilteringCriteria,
|
|
82
|
-
options
|
|
86
|
+
options,
|
|
87
|
+
settings
|
|
83
88
|
);
|
|
84
89
|
}
|
|
85
90
|
};
|
|
@@ -89,16 +94,23 @@ export class ThreatIntelligenceIndicatorImpl
|
|
|
89
94
|
resourceGroupName: string,
|
|
90
95
|
workspaceName: string,
|
|
91
96
|
threatIntelligenceFilteringCriteria: ThreatIntelligenceFilteringCriteria,
|
|
92
|
-
options?: ThreatIntelligenceIndicatorQueryIndicatorsOptionalParams
|
|
97
|
+
options?: ThreatIntelligenceIndicatorQueryIndicatorsOptionalParams,
|
|
98
|
+
settings?: PageSettings
|
|
93
99
|
): AsyncIterableIterator<ThreatIntelligenceInformationUnion[]> {
|
|
94
|
-
let result
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
let result: ThreatIntelligenceIndicatorQueryIndicatorsResponse;
|
|
101
|
+
let continuationToken = settings?.continuationToken;
|
|
102
|
+
if (!continuationToken) {
|
|
103
|
+
result = await this._queryIndicators(
|
|
104
|
+
resourceGroupName,
|
|
105
|
+
workspaceName,
|
|
106
|
+
threatIntelligenceFilteringCriteria,
|
|
107
|
+
options
|
|
108
|
+
);
|
|
109
|
+
let page = result.value || [];
|
|
110
|
+
continuationToken = result.nextLink;
|
|
111
|
+
setContinuationToken(page, continuationToken);
|
|
112
|
+
yield page;
|
|
113
|
+
}
|
|
102
114
|
while (continuationToken) {
|
|
103
115
|
result = await this._queryIndicatorsNext(
|
|
104
116
|
resourceGroupName,
|
|
@@ -108,7 +120,9 @@ export class ThreatIntelligenceIndicatorImpl
|
|
|
108
120
|
options
|
|
109
121
|
);
|
|
110
122
|
continuationToken = result.nextLink;
|
|
111
|
-
|
|
123
|
+
let page = result.value || [];
|
|
124
|
+
setContinuationToken(page, continuationToken);
|
|
125
|
+
yield page;
|
|
112
126
|
}
|
|
113
127
|
}
|
|
114
128
|
|
|
@@ -512,7 +526,6 @@ const queryIndicatorsNextOperationSpec: coreClient.OperationSpec = {
|
|
|
512
526
|
bodyMapper: Mappers.CloudError
|
|
513
527
|
}
|
|
514
528
|
},
|
|
515
|
-
queryParameters: [Parameters.apiVersion],
|
|
516
529
|
urlParameters: [
|
|
517
530
|
Parameters.$host,
|
|
518
531
|
Parameters.subscriptionId,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { ThreatIntelligenceIndicators } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -53,8 +54,16 @@ export class ThreatIntelligenceIndicatorsImpl
|
|
|
53
54
|
[Symbol.asyncIterator]() {
|
|
54
55
|
return this;
|
|
55
56
|
},
|
|
56
|
-
byPage: () => {
|
|
57
|
-
|
|
57
|
+
byPage: (settings?: PageSettings) => {
|
|
58
|
+
if (settings?.maxPageSize) {
|
|
59
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
60
|
+
}
|
|
61
|
+
return this.listPagingPage(
|
|
62
|
+
resourceGroupName,
|
|
63
|
+
workspaceName,
|
|
64
|
+
options,
|
|
65
|
+
settings
|
|
66
|
+
);
|
|
58
67
|
}
|
|
59
68
|
};
|
|
60
69
|
}
|
|
@@ -62,11 +71,18 @@ export class ThreatIntelligenceIndicatorsImpl
|
|
|
62
71
|
private async *listPagingPage(
|
|
63
72
|
resourceGroupName: string,
|
|
64
73
|
workspaceName: string,
|
|
65
|
-
options?: ThreatIntelligenceIndicatorsListOptionalParams
|
|
74
|
+
options?: ThreatIntelligenceIndicatorsListOptionalParams,
|
|
75
|
+
settings?: PageSettings
|
|
66
76
|
): AsyncIterableIterator<ThreatIntelligenceInformationUnion[]> {
|
|
67
|
-
let result
|
|
68
|
-
|
|
69
|
-
|
|
77
|
+
let result: ThreatIntelligenceIndicatorsListResponse;
|
|
78
|
+
let continuationToken = settings?.continuationToken;
|
|
79
|
+
if (!continuationToken) {
|
|
80
|
+
result = await this._list(resourceGroupName, workspaceName, options);
|
|
81
|
+
let page = result.value || [];
|
|
82
|
+
continuationToken = result.nextLink;
|
|
83
|
+
setContinuationToken(page, continuationToken);
|
|
84
|
+
yield page;
|
|
85
|
+
}
|
|
70
86
|
while (continuationToken) {
|
|
71
87
|
result = await this._listNext(
|
|
72
88
|
resourceGroupName,
|
|
@@ -75,7 +91,9 @@ export class ThreatIntelligenceIndicatorsImpl
|
|
|
75
91
|
options
|
|
76
92
|
);
|
|
77
93
|
continuationToken = result.nextLink;
|
|
78
|
-
|
|
94
|
+
let page = result.value || [];
|
|
95
|
+
setContinuationToken(page, continuationToken);
|
|
96
|
+
yield page;
|
|
79
97
|
}
|
|
80
98
|
}
|
|
81
99
|
|
|
@@ -171,13 +189,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
171
189
|
bodyMapper: Mappers.CloudError
|
|
172
190
|
}
|
|
173
191
|
},
|
|
174
|
-
queryParameters: [
|
|
175
|
-
Parameters.apiVersion,
|
|
176
|
-
Parameters.filter,
|
|
177
|
-
Parameters.orderby,
|
|
178
|
-
Parameters.top,
|
|
179
|
-
Parameters.skipToken
|
|
180
|
-
],
|
|
181
192
|
urlParameters: [
|
|
182
193
|
Parameters.$host,
|
|
183
194
|
Parameters.subscriptionId,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { WatchlistItems } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -64,12 +65,16 @@ export class WatchlistItemsImpl implements WatchlistItems {
|
|
|
64
65
|
[Symbol.asyncIterator]() {
|
|
65
66
|
return this;
|
|
66
67
|
},
|
|
67
|
-
byPage: () => {
|
|
68
|
+
byPage: (settings?: PageSettings) => {
|
|
69
|
+
if (settings?.maxPageSize) {
|
|
70
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
71
|
+
}
|
|
68
72
|
return this.listPagingPage(
|
|
69
73
|
resourceGroupName,
|
|
70
74
|
workspaceName,
|
|
71
75
|
watchlistAlias,
|
|
72
|
-
options
|
|
76
|
+
options,
|
|
77
|
+
settings
|
|
73
78
|
);
|
|
74
79
|
}
|
|
75
80
|
};
|
|
@@ -79,16 +84,23 @@ export class WatchlistItemsImpl implements WatchlistItems {
|
|
|
79
84
|
resourceGroupName: string,
|
|
80
85
|
workspaceName: string,
|
|
81
86
|
watchlistAlias: string,
|
|
82
|
-
options?: WatchlistItemsListOptionalParams
|
|
87
|
+
options?: WatchlistItemsListOptionalParams,
|
|
88
|
+
settings?: PageSettings
|
|
83
89
|
): AsyncIterableIterator<WatchlistItem[]> {
|
|
84
|
-
let result
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
let result: WatchlistItemsListResponse;
|
|
91
|
+
let continuationToken = settings?.continuationToken;
|
|
92
|
+
if (!continuationToken) {
|
|
93
|
+
result = await this._list(
|
|
94
|
+
resourceGroupName,
|
|
95
|
+
workspaceName,
|
|
96
|
+
watchlistAlias,
|
|
97
|
+
options
|
|
98
|
+
);
|
|
99
|
+
let page = result.value || [];
|
|
100
|
+
continuationToken = result.nextLink;
|
|
101
|
+
setContinuationToken(page, continuationToken);
|
|
102
|
+
yield page;
|
|
103
|
+
}
|
|
92
104
|
while (continuationToken) {
|
|
93
105
|
result = await this._listNext(
|
|
94
106
|
resourceGroupName,
|
|
@@ -98,7 +110,9 @@ export class WatchlistItemsImpl implements WatchlistItems {
|
|
|
98
110
|
options
|
|
99
111
|
);
|
|
100
112
|
continuationToken = result.nextLink;
|
|
101
|
-
|
|
113
|
+
let page = result.value || [];
|
|
114
|
+
setContinuationToken(page, continuationToken);
|
|
115
|
+
yield page;
|
|
102
116
|
}
|
|
103
117
|
}
|
|
104
118
|
|
|
@@ -355,7 +369,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
355
369
|
bodyMapper: Mappers.CloudError
|
|
356
370
|
}
|
|
357
371
|
},
|
|
358
|
-
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
359
372
|
urlParameters: [
|
|
360
373
|
Parameters.$host,
|
|
361
374
|
Parameters.subscriptionId,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Watchlists } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -58,8 +59,16 @@ export class WatchlistsImpl implements Watchlists {
|
|
|
58
59
|
[Symbol.asyncIterator]() {
|
|
59
60
|
return this;
|
|
60
61
|
},
|
|
61
|
-
byPage: () => {
|
|
62
|
-
|
|
62
|
+
byPage: (settings?: PageSettings) => {
|
|
63
|
+
if (settings?.maxPageSize) {
|
|
64
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
65
|
+
}
|
|
66
|
+
return this.listPagingPage(
|
|
67
|
+
resourceGroupName,
|
|
68
|
+
workspaceName,
|
|
69
|
+
options,
|
|
70
|
+
settings
|
|
71
|
+
);
|
|
63
72
|
}
|
|
64
73
|
};
|
|
65
74
|
}
|
|
@@ -67,11 +76,18 @@ export class WatchlistsImpl implements Watchlists {
|
|
|
67
76
|
private async *listPagingPage(
|
|
68
77
|
resourceGroupName: string,
|
|
69
78
|
workspaceName: string,
|
|
70
|
-
options?: WatchlistsListOptionalParams
|
|
79
|
+
options?: WatchlistsListOptionalParams,
|
|
80
|
+
settings?: PageSettings
|
|
71
81
|
): AsyncIterableIterator<Watchlist[]> {
|
|
72
|
-
let result
|
|
73
|
-
|
|
74
|
-
|
|
82
|
+
let result: WatchlistsListResponse;
|
|
83
|
+
let continuationToken = settings?.continuationToken;
|
|
84
|
+
if (!continuationToken) {
|
|
85
|
+
result = await this._list(resourceGroupName, workspaceName, options);
|
|
86
|
+
let page = result.value || [];
|
|
87
|
+
continuationToken = result.nextLink;
|
|
88
|
+
setContinuationToken(page, continuationToken);
|
|
89
|
+
yield page;
|
|
90
|
+
}
|
|
75
91
|
while (continuationToken) {
|
|
76
92
|
result = await this._listNext(
|
|
77
93
|
resourceGroupName,
|
|
@@ -80,7 +96,9 @@ export class WatchlistsImpl implements Watchlists {
|
|
|
80
96
|
options
|
|
81
97
|
);
|
|
82
98
|
continuationToken = result.nextLink;
|
|
83
|
-
|
|
99
|
+
let page = result.value || [];
|
|
100
|
+
setContinuationToken(page, continuationToken);
|
|
101
|
+
yield page;
|
|
84
102
|
}
|
|
85
103
|
}
|
|
86
104
|
|
|
@@ -310,7 +328,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
310
328
|
bodyMapper: Mappers.CloudError
|
|
311
329
|
}
|
|
312
330
|
},
|
|
313
|
-
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
314
331
|
urlParameters: [
|
|
315
332
|
Parameters.$host,
|
|
316
333
|
Parameters.subscriptionId,
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
FileImport,
|
|
13
|
+
FileImportsListOptionalParams,
|
|
14
|
+
FileImportsGetOptionalParams,
|
|
15
|
+
FileImportsGetResponse,
|
|
16
|
+
FileImportsCreateOptionalParams,
|
|
17
|
+
FileImportsCreateResponse,
|
|
18
|
+
FileImportsDeleteOptionalParams,
|
|
19
|
+
FileImportsDeleteResponse
|
|
20
|
+
} from "../models";
|
|
21
|
+
|
|
22
|
+
/// <reference lib="esnext.asynciterable" />
|
|
23
|
+
/** Interface representing a FileImports. */
|
|
24
|
+
export interface FileImports {
|
|
25
|
+
/**
|
|
26
|
+
* Gets all file imports.
|
|
27
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
28
|
+
* @param workspaceName The name of the workspace.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
list(
|
|
32
|
+
resourceGroupName: string,
|
|
33
|
+
workspaceName: string,
|
|
34
|
+
options?: FileImportsListOptionalParams
|
|
35
|
+
): PagedAsyncIterableIterator<FileImport>;
|
|
36
|
+
/**
|
|
37
|
+
* Gets a file import.
|
|
38
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
39
|
+
* @param workspaceName The name of the workspace.
|
|
40
|
+
* @param fileImportId File import ID
|
|
41
|
+
* @param options The options parameters.
|
|
42
|
+
*/
|
|
43
|
+
get(
|
|
44
|
+
resourceGroupName: string,
|
|
45
|
+
workspaceName: string,
|
|
46
|
+
fileImportId: string,
|
|
47
|
+
options?: FileImportsGetOptionalParams
|
|
48
|
+
): Promise<FileImportsGetResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Creates the file import.
|
|
51
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
52
|
+
* @param workspaceName The name of the workspace.
|
|
53
|
+
* @param fileImportId File import ID
|
|
54
|
+
* @param fileImport The file import
|
|
55
|
+
* @param options The options parameters.
|
|
56
|
+
*/
|
|
57
|
+
create(
|
|
58
|
+
resourceGroupName: string,
|
|
59
|
+
workspaceName: string,
|
|
60
|
+
fileImportId: string,
|
|
61
|
+
fileImport: FileImport,
|
|
62
|
+
options?: FileImportsCreateOptionalParams
|
|
63
|
+
): Promise<FileImportsCreateResponse>;
|
|
64
|
+
/**
|
|
65
|
+
* Delete the file import.
|
|
66
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
67
|
+
* @param workspaceName The name of the workspace.
|
|
68
|
+
* @param fileImportId File import ID
|
|
69
|
+
* @param options The options parameters.
|
|
70
|
+
*/
|
|
71
|
+
beginDelete(
|
|
72
|
+
resourceGroupName: string,
|
|
73
|
+
workspaceName: string,
|
|
74
|
+
fileImportId: string,
|
|
75
|
+
options?: FileImportsDeleteOptionalParams
|
|
76
|
+
): Promise<
|
|
77
|
+
PollerLike<
|
|
78
|
+
PollOperationState<FileImportsDeleteResponse>,
|
|
79
|
+
FileImportsDeleteResponse
|
|
80
|
+
>
|
|
81
|
+
>;
|
|
82
|
+
/**
|
|
83
|
+
* Delete the file import.
|
|
84
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
85
|
+
* @param workspaceName The name of the workspace.
|
|
86
|
+
* @param fileImportId File import ID
|
|
87
|
+
* @param options The options parameters.
|
|
88
|
+
*/
|
|
89
|
+
beginDeleteAndWait(
|
|
90
|
+
resourceGroupName: string,
|
|
91
|
+
workspaceName: string,
|
|
92
|
+
fileImportId: string,
|
|
93
|
+
options?: FileImportsDeleteOptionalParams
|
|
94
|
+
): Promise<FileImportsDeleteResponse>;
|
|
95
|
+
}
|
|
@@ -22,6 +22,7 @@ export * from "./entitiesRelations";
|
|
|
22
22
|
export * from "./entityRelations";
|
|
23
23
|
export * from "./entityQueries";
|
|
24
24
|
export * from "./entityQueryTemplates";
|
|
25
|
+
export * from "./fileImports";
|
|
25
26
|
export * from "./incidentComments";
|
|
26
27
|
export * from "./incidentRelations";
|
|
27
28
|
export * from "./metadata";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export interface PageInfo {
|
|
10
|
+
continuationToken?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const pageMap = new WeakMap<object, PageInfo>();
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
17
|
+
* returns a continuation token that can be used to begin paging from
|
|
18
|
+
* that point later.
|
|
19
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
20
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
21
|
+
*/
|
|
22
|
+
export function getContinuationToken(page: unknown): string | undefined {
|
|
23
|
+
if (typeof page !== "object" || page === null) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
return pageMap.get(page)?.continuationToken;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function setContinuationToken(
|
|
30
|
+
page: unknown,
|
|
31
|
+
continuationToken: string | undefined
|
|
32
|
+
): void {
|
|
33
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
37
|
+
pageInfo.continuationToken = continuationToken;
|
|
38
|
+
pageMap.set(page, pageInfo);
|
|
39
|
+
}
|
package/src/securityInsights.ts
CHANGED
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
EntityRelationsImpl,
|
|
32
32
|
EntityQueriesImpl,
|
|
33
33
|
EntityQueryTemplatesImpl,
|
|
34
|
+
FileImportsImpl,
|
|
34
35
|
IncidentCommentsImpl,
|
|
35
36
|
IncidentRelationsImpl,
|
|
36
37
|
MetadataImpl,
|
|
@@ -66,6 +67,7 @@ import {
|
|
|
66
67
|
EntityRelations,
|
|
67
68
|
EntityQueries,
|
|
68
69
|
EntityQueryTemplates,
|
|
70
|
+
FileImports,
|
|
69
71
|
IncidentComments,
|
|
70
72
|
IncidentRelations,
|
|
71
73
|
Metadata,
|
|
@@ -118,22 +120,19 @@ export class SecurityInsights extends coreClient.ServiceClient {
|
|
|
118
120
|
credential: credentials
|
|
119
121
|
};
|
|
120
122
|
|
|
121
|
-
const packageDetails = `azsdk-js-arm-securityinsight/1.0.0-beta.
|
|
123
|
+
const packageDetails = `azsdk-js-arm-securityinsight/1.0.0-beta.6`;
|
|
122
124
|
const userAgentPrefix =
|
|
123
125
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
124
126
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
125
127
|
: `${packageDetails}`;
|
|
126
128
|
|
|
127
|
-
if (!options.credentialScopes) {
|
|
128
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
129
|
-
}
|
|
130
129
|
const optionsWithDefaults = {
|
|
131
130
|
...defaults,
|
|
132
131
|
...options,
|
|
133
132
|
userAgentOptions: {
|
|
134
133
|
userAgentPrefix
|
|
135
134
|
},
|
|
136
|
-
|
|
135
|
+
endpoint:
|
|
137
136
|
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
138
137
|
};
|
|
139
138
|
super(optionsWithDefaults);
|
|
@@ -159,7 +158,9 @@ export class SecurityInsights extends coreClient.ServiceClient {
|
|
|
159
158
|
this.pipeline.addPolicy(
|
|
160
159
|
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
161
160
|
credential: credentials,
|
|
162
|
-
scopes:
|
|
161
|
+
scopes:
|
|
162
|
+
optionsWithDefaults.credentialScopes ??
|
|
163
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
163
164
|
challengeCallbacks: {
|
|
164
165
|
authorizeRequestOnChallenge:
|
|
165
166
|
coreClient.authorizeRequestOnClaimChallenge
|
|
@@ -172,7 +173,7 @@ export class SecurityInsights extends coreClient.ServiceClient {
|
|
|
172
173
|
|
|
173
174
|
// Assigning values to Constant parameters
|
|
174
175
|
this.$host = options.$host || "https://management.azure.com";
|
|
175
|
-
this.apiVersion = options.apiVersion || "2022-
|
|
176
|
+
this.apiVersion = options.apiVersion || "2022-09-01-preview";
|
|
176
177
|
this.alertRules = new AlertRulesImpl(this);
|
|
177
178
|
this.actions = new ActionsImpl(this);
|
|
178
179
|
this.alertRuleTemplates = new AlertRuleTemplatesImpl(this);
|
|
@@ -189,6 +190,7 @@ export class SecurityInsights extends coreClient.ServiceClient {
|
|
|
189
190
|
this.entityRelations = new EntityRelationsImpl(this);
|
|
190
191
|
this.entityQueries = new EntityQueriesImpl(this);
|
|
191
192
|
this.entityQueryTemplates = new EntityQueryTemplatesImpl(this);
|
|
193
|
+
this.fileImports = new FileImportsImpl(this);
|
|
192
194
|
this.incidentComments = new IncidentCommentsImpl(this);
|
|
193
195
|
this.incidentRelations = new IncidentRelationsImpl(this);
|
|
194
196
|
this.metadata = new MetadataImpl(this);
|
|
@@ -263,6 +265,7 @@ export class SecurityInsights extends coreClient.ServiceClient {
|
|
|
263
265
|
entityRelations: EntityRelations;
|
|
264
266
|
entityQueries: EntityQueries;
|
|
265
267
|
entityQueryTemplates: EntityQueryTemplates;
|
|
268
|
+
fileImports: FileImports;
|
|
266
269
|
incidentComments: IncidentComments;
|
|
267
270
|
incidentRelations: IncidentRelations;
|
|
268
271
|
metadata: Metadata;
|