@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 { EntitiesRelations } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -59,12 +60,16 @@ export class EntitiesRelationsImpl implements EntitiesRelations {
|
|
|
59
60
|
[Symbol.asyncIterator]() {
|
|
60
61
|
return this;
|
|
61
62
|
},
|
|
62
|
-
byPage: () => {
|
|
63
|
+
byPage: (settings?: PageSettings) => {
|
|
64
|
+
if (settings?.maxPageSize) {
|
|
65
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
66
|
+
}
|
|
63
67
|
return this.listPagingPage(
|
|
64
68
|
resourceGroupName,
|
|
65
69
|
workspaceName,
|
|
66
70
|
entityId,
|
|
67
|
-
options
|
|
71
|
+
options,
|
|
72
|
+
settings
|
|
68
73
|
);
|
|
69
74
|
}
|
|
70
75
|
};
|
|
@@ -74,16 +79,23 @@ export class EntitiesRelationsImpl implements EntitiesRelations {
|
|
|
74
79
|
resourceGroupName: string,
|
|
75
80
|
workspaceName: string,
|
|
76
81
|
entityId: string,
|
|
77
|
-
options?: EntitiesRelationsListOptionalParams
|
|
82
|
+
options?: EntitiesRelationsListOptionalParams,
|
|
83
|
+
settings?: PageSettings
|
|
78
84
|
): AsyncIterableIterator<Relation[]> {
|
|
79
|
-
let result
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
let result: EntitiesRelationsListResponse;
|
|
86
|
+
let continuationToken = settings?.continuationToken;
|
|
87
|
+
if (!continuationToken) {
|
|
88
|
+
result = await this._list(
|
|
89
|
+
resourceGroupName,
|
|
90
|
+
workspaceName,
|
|
91
|
+
entityId,
|
|
92
|
+
options
|
|
93
|
+
);
|
|
94
|
+
let page = result.value || [];
|
|
95
|
+
continuationToken = result.nextLink;
|
|
96
|
+
setContinuationToken(page, continuationToken);
|
|
97
|
+
yield page;
|
|
98
|
+
}
|
|
87
99
|
while (continuationToken) {
|
|
88
100
|
result = await this._listNext(
|
|
89
101
|
resourceGroupName,
|
|
@@ -93,7 +105,9 @@ export class EntitiesRelationsImpl implements EntitiesRelations {
|
|
|
93
105
|
options
|
|
94
106
|
);
|
|
95
107
|
continuationToken = result.nextLink;
|
|
96
|
-
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
setContinuationToken(page, continuationToken);
|
|
110
|
+
yield page;
|
|
97
111
|
}
|
|
98
112
|
}
|
|
99
113
|
|
|
@@ -196,13 +210,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
196
210
|
bodyMapper: Mappers.CloudError
|
|
197
211
|
}
|
|
198
212
|
},
|
|
199
|
-
queryParameters: [
|
|
200
|
-
Parameters.apiVersion,
|
|
201
|
-
Parameters.filter,
|
|
202
|
-
Parameters.orderby,
|
|
203
|
-
Parameters.top,
|
|
204
|
-
Parameters.skipToken
|
|
205
|
-
],
|
|
206
213
|
urlParameters: [
|
|
207
214
|
Parameters.$host,
|
|
208
215
|
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 { EntityQueries } 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 EntityQueriesImpl implements EntityQueries {
|
|
|
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 EntityQueriesImpl implements EntityQueries {
|
|
|
67
76
|
private async *listPagingPage(
|
|
68
77
|
resourceGroupName: string,
|
|
69
78
|
workspaceName: string,
|
|
70
|
-
options?: EntityQueriesListOptionalParams
|
|
79
|
+
options?: EntityQueriesListOptionalParams,
|
|
80
|
+
settings?: PageSettings
|
|
71
81
|
): AsyncIterableIterator<EntityQueryUnion[]> {
|
|
72
|
-
let result
|
|
73
|
-
|
|
74
|
-
|
|
82
|
+
let result: EntityQueriesListResponse;
|
|
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 EntityQueriesImpl implements EntityQueries {
|
|
|
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
|
|
|
@@ -302,7 +320,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
302
320
|
bodyMapper: Mappers.CloudError
|
|
303
321
|
}
|
|
304
322
|
},
|
|
305
|
-
queryParameters: [Parameters.apiVersion, Parameters.kind1],
|
|
306
323
|
urlParameters: [
|
|
307
324
|
Parameters.$host,
|
|
308
325
|
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 { EntityQueryTemplates } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -54,8 +55,16 @@ export class EntityQueryTemplatesImpl implements EntityQueryTemplates {
|
|
|
54
55
|
[Symbol.asyncIterator]() {
|
|
55
56
|
return this;
|
|
56
57
|
},
|
|
57
|
-
byPage: () => {
|
|
58
|
-
|
|
58
|
+
byPage: (settings?: PageSettings) => {
|
|
59
|
+
if (settings?.maxPageSize) {
|
|
60
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
61
|
+
}
|
|
62
|
+
return this.listPagingPage(
|
|
63
|
+
resourceGroupName,
|
|
64
|
+
workspaceName,
|
|
65
|
+
options,
|
|
66
|
+
settings
|
|
67
|
+
);
|
|
59
68
|
}
|
|
60
69
|
};
|
|
61
70
|
}
|
|
@@ -63,11 +72,18 @@ export class EntityQueryTemplatesImpl implements EntityQueryTemplates {
|
|
|
63
72
|
private async *listPagingPage(
|
|
64
73
|
resourceGroupName: string,
|
|
65
74
|
workspaceName: string,
|
|
66
|
-
options?: EntityQueryTemplatesListOptionalParams
|
|
75
|
+
options?: EntityQueryTemplatesListOptionalParams,
|
|
76
|
+
settings?: PageSettings
|
|
67
77
|
): AsyncIterableIterator<EntityQueryTemplateUnion[]> {
|
|
68
|
-
let result
|
|
69
|
-
|
|
70
|
-
|
|
78
|
+
let result: EntityQueryTemplatesListResponse;
|
|
79
|
+
let continuationToken = settings?.continuationToken;
|
|
80
|
+
if (!continuationToken) {
|
|
81
|
+
result = await this._list(resourceGroupName, workspaceName, options);
|
|
82
|
+
let page = result.value || [];
|
|
83
|
+
continuationToken = result.nextLink;
|
|
84
|
+
setContinuationToken(page, continuationToken);
|
|
85
|
+
yield page;
|
|
86
|
+
}
|
|
71
87
|
while (continuationToken) {
|
|
72
88
|
result = await this._listNext(
|
|
73
89
|
resourceGroupName,
|
|
@@ -76,7 +92,9 @@ export class EntityQueryTemplatesImpl implements EntityQueryTemplates {
|
|
|
76
92
|
options
|
|
77
93
|
);
|
|
78
94
|
continuationToken = result.nextLink;
|
|
79
|
-
|
|
95
|
+
let page = result.value || [];
|
|
96
|
+
setContinuationToken(page, continuationToken);
|
|
97
|
+
yield page;
|
|
80
98
|
}
|
|
81
99
|
}
|
|
82
100
|
|
|
@@ -208,7 +226,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
208
226
|
bodyMapper: Mappers.CloudError
|
|
209
227
|
}
|
|
210
228
|
},
|
|
211
|
-
queryParameters: [Parameters.apiVersion, Parameters.kind2],
|
|
212
229
|
urlParameters: [
|
|
213
230
|
Parameters.$host,
|
|
214
231
|
Parameters.subscriptionId,
|
|
@@ -0,0 +1,421 @@
|
|
|
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, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
+
import { FileImports } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { SecurityInsights } from "../securityInsights";
|
|
16
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
17
|
+
import { LroImpl } from "../lroImpl";
|
|
18
|
+
import {
|
|
19
|
+
FileImport,
|
|
20
|
+
FileImportsListNextOptionalParams,
|
|
21
|
+
FileImportsListOptionalParams,
|
|
22
|
+
FileImportsListResponse,
|
|
23
|
+
FileImportsGetOptionalParams,
|
|
24
|
+
FileImportsGetResponse,
|
|
25
|
+
FileImportsCreateOptionalParams,
|
|
26
|
+
FileImportsCreateResponse,
|
|
27
|
+
FileImportsDeleteOptionalParams,
|
|
28
|
+
FileImportsDeleteResponse,
|
|
29
|
+
FileImportsListNextResponse
|
|
30
|
+
} from "../models";
|
|
31
|
+
|
|
32
|
+
/// <reference lib="esnext.asynciterable" />
|
|
33
|
+
/** Class containing FileImports operations. */
|
|
34
|
+
export class FileImportsImpl implements FileImports {
|
|
35
|
+
private readonly client: SecurityInsights;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Initialize a new instance of the class FileImports class.
|
|
39
|
+
* @param client Reference to the service client
|
|
40
|
+
*/
|
|
41
|
+
constructor(client: SecurityInsights) {
|
|
42
|
+
this.client = client;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Gets all file imports.
|
|
47
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
48
|
+
* @param workspaceName The name of the workspace.
|
|
49
|
+
* @param options The options parameters.
|
|
50
|
+
*/
|
|
51
|
+
public list(
|
|
52
|
+
resourceGroupName: string,
|
|
53
|
+
workspaceName: string,
|
|
54
|
+
options?: FileImportsListOptionalParams
|
|
55
|
+
): PagedAsyncIterableIterator<FileImport> {
|
|
56
|
+
const iter = this.listPagingAll(resourceGroupName, workspaceName, options);
|
|
57
|
+
return {
|
|
58
|
+
next() {
|
|
59
|
+
return iter.next();
|
|
60
|
+
},
|
|
61
|
+
[Symbol.asyncIterator]() {
|
|
62
|
+
return this;
|
|
63
|
+
},
|
|
64
|
+
byPage: (settings?: PageSettings) => {
|
|
65
|
+
if (settings?.maxPageSize) {
|
|
66
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
67
|
+
}
|
|
68
|
+
return this.listPagingPage(
|
|
69
|
+
resourceGroupName,
|
|
70
|
+
workspaceName,
|
|
71
|
+
options,
|
|
72
|
+
settings
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
private async *listPagingPage(
|
|
79
|
+
resourceGroupName: string,
|
|
80
|
+
workspaceName: string,
|
|
81
|
+
options?: FileImportsListOptionalParams,
|
|
82
|
+
settings?: PageSettings
|
|
83
|
+
): AsyncIterableIterator<FileImport[]> {
|
|
84
|
+
let result: FileImportsListResponse;
|
|
85
|
+
let continuationToken = settings?.continuationToken;
|
|
86
|
+
if (!continuationToken) {
|
|
87
|
+
result = await this._list(resourceGroupName, workspaceName, options);
|
|
88
|
+
let page = result.value || [];
|
|
89
|
+
continuationToken = result.nextLink;
|
|
90
|
+
setContinuationToken(page, continuationToken);
|
|
91
|
+
yield page;
|
|
92
|
+
}
|
|
93
|
+
while (continuationToken) {
|
|
94
|
+
result = await this._listNext(
|
|
95
|
+
resourceGroupName,
|
|
96
|
+
workspaceName,
|
|
97
|
+
continuationToken,
|
|
98
|
+
options
|
|
99
|
+
);
|
|
100
|
+
continuationToken = result.nextLink;
|
|
101
|
+
let page = result.value || [];
|
|
102
|
+
setContinuationToken(page, continuationToken);
|
|
103
|
+
yield page;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
private async *listPagingAll(
|
|
108
|
+
resourceGroupName: string,
|
|
109
|
+
workspaceName: string,
|
|
110
|
+
options?: FileImportsListOptionalParams
|
|
111
|
+
): AsyncIterableIterator<FileImport> {
|
|
112
|
+
for await (const page of this.listPagingPage(
|
|
113
|
+
resourceGroupName,
|
|
114
|
+
workspaceName,
|
|
115
|
+
options
|
|
116
|
+
)) {
|
|
117
|
+
yield* page;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Gets all file imports.
|
|
123
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
124
|
+
* @param workspaceName The name of the workspace.
|
|
125
|
+
* @param options The options parameters.
|
|
126
|
+
*/
|
|
127
|
+
private _list(
|
|
128
|
+
resourceGroupName: string,
|
|
129
|
+
workspaceName: string,
|
|
130
|
+
options?: FileImportsListOptionalParams
|
|
131
|
+
): Promise<FileImportsListResponse> {
|
|
132
|
+
return this.client.sendOperationRequest(
|
|
133
|
+
{ resourceGroupName, workspaceName, options },
|
|
134
|
+
listOperationSpec
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Gets a file import.
|
|
140
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
141
|
+
* @param workspaceName The name of the workspace.
|
|
142
|
+
* @param fileImportId File import ID
|
|
143
|
+
* @param options The options parameters.
|
|
144
|
+
*/
|
|
145
|
+
get(
|
|
146
|
+
resourceGroupName: string,
|
|
147
|
+
workspaceName: string,
|
|
148
|
+
fileImportId: string,
|
|
149
|
+
options?: FileImportsGetOptionalParams
|
|
150
|
+
): Promise<FileImportsGetResponse> {
|
|
151
|
+
return this.client.sendOperationRequest(
|
|
152
|
+
{ resourceGroupName, workspaceName, fileImportId, options },
|
|
153
|
+
getOperationSpec
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Creates the file import.
|
|
159
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
160
|
+
* @param workspaceName The name of the workspace.
|
|
161
|
+
* @param fileImportId File import ID
|
|
162
|
+
* @param fileImport The file import
|
|
163
|
+
* @param options The options parameters.
|
|
164
|
+
*/
|
|
165
|
+
create(
|
|
166
|
+
resourceGroupName: string,
|
|
167
|
+
workspaceName: string,
|
|
168
|
+
fileImportId: string,
|
|
169
|
+
fileImport: FileImport,
|
|
170
|
+
options?: FileImportsCreateOptionalParams
|
|
171
|
+
): Promise<FileImportsCreateResponse> {
|
|
172
|
+
return this.client.sendOperationRequest(
|
|
173
|
+
{ resourceGroupName, workspaceName, fileImportId, fileImport, options },
|
|
174
|
+
createOperationSpec
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Delete the file import.
|
|
180
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
181
|
+
* @param workspaceName The name of the workspace.
|
|
182
|
+
* @param fileImportId File import ID
|
|
183
|
+
* @param options The options parameters.
|
|
184
|
+
*/
|
|
185
|
+
async beginDelete(
|
|
186
|
+
resourceGroupName: string,
|
|
187
|
+
workspaceName: string,
|
|
188
|
+
fileImportId: string,
|
|
189
|
+
options?: FileImportsDeleteOptionalParams
|
|
190
|
+
): Promise<
|
|
191
|
+
PollerLike<
|
|
192
|
+
PollOperationState<FileImportsDeleteResponse>,
|
|
193
|
+
FileImportsDeleteResponse
|
|
194
|
+
>
|
|
195
|
+
> {
|
|
196
|
+
const directSendOperation = async (
|
|
197
|
+
args: coreClient.OperationArguments,
|
|
198
|
+
spec: coreClient.OperationSpec
|
|
199
|
+
): Promise<FileImportsDeleteResponse> => {
|
|
200
|
+
return this.client.sendOperationRequest(args, spec);
|
|
201
|
+
};
|
|
202
|
+
const sendOperation = async (
|
|
203
|
+
args: coreClient.OperationArguments,
|
|
204
|
+
spec: coreClient.OperationSpec
|
|
205
|
+
) => {
|
|
206
|
+
let currentRawResponse:
|
|
207
|
+
| coreClient.FullOperationResponse
|
|
208
|
+
| undefined = undefined;
|
|
209
|
+
const providedCallback = args.options?.onResponse;
|
|
210
|
+
const callback: coreClient.RawResponseCallback = (
|
|
211
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
212
|
+
flatResponse: unknown
|
|
213
|
+
) => {
|
|
214
|
+
currentRawResponse = rawResponse;
|
|
215
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
216
|
+
};
|
|
217
|
+
const updatedArgs = {
|
|
218
|
+
...args,
|
|
219
|
+
options: {
|
|
220
|
+
...args.options,
|
|
221
|
+
onResponse: callback
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
225
|
+
return {
|
|
226
|
+
flatResponse,
|
|
227
|
+
rawResponse: {
|
|
228
|
+
statusCode: currentRawResponse!.status,
|
|
229
|
+
body: currentRawResponse!.parsedBody,
|
|
230
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
const lro = new LroImpl(
|
|
236
|
+
sendOperation,
|
|
237
|
+
{ resourceGroupName, workspaceName, fileImportId, options },
|
|
238
|
+
deleteOperationSpec
|
|
239
|
+
);
|
|
240
|
+
const poller = new LroEngine(lro, {
|
|
241
|
+
resumeFrom: options?.resumeFrom,
|
|
242
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
243
|
+
lroResourceLocationConfig: "location"
|
|
244
|
+
});
|
|
245
|
+
await poller.poll();
|
|
246
|
+
return poller;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Delete the file import.
|
|
251
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
252
|
+
* @param workspaceName The name of the workspace.
|
|
253
|
+
* @param fileImportId File import ID
|
|
254
|
+
* @param options The options parameters.
|
|
255
|
+
*/
|
|
256
|
+
async beginDeleteAndWait(
|
|
257
|
+
resourceGroupName: string,
|
|
258
|
+
workspaceName: string,
|
|
259
|
+
fileImportId: string,
|
|
260
|
+
options?: FileImportsDeleteOptionalParams
|
|
261
|
+
): Promise<FileImportsDeleteResponse> {
|
|
262
|
+
const poller = await this.beginDelete(
|
|
263
|
+
resourceGroupName,
|
|
264
|
+
workspaceName,
|
|
265
|
+
fileImportId,
|
|
266
|
+
options
|
|
267
|
+
);
|
|
268
|
+
return poller.pollUntilDone();
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* ListNext
|
|
273
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
274
|
+
* @param workspaceName The name of the workspace.
|
|
275
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
276
|
+
* @param options The options parameters.
|
|
277
|
+
*/
|
|
278
|
+
private _listNext(
|
|
279
|
+
resourceGroupName: string,
|
|
280
|
+
workspaceName: string,
|
|
281
|
+
nextLink: string,
|
|
282
|
+
options?: FileImportsListNextOptionalParams
|
|
283
|
+
): Promise<FileImportsListNextResponse> {
|
|
284
|
+
return this.client.sendOperationRequest(
|
|
285
|
+
{ resourceGroupName, workspaceName, nextLink, options },
|
|
286
|
+
listNextOperationSpec
|
|
287
|
+
);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
// Operation Specifications
|
|
291
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
292
|
+
|
|
293
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
294
|
+
path:
|
|
295
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/fileImports",
|
|
296
|
+
httpMethod: "GET",
|
|
297
|
+
responses: {
|
|
298
|
+
200: {
|
|
299
|
+
bodyMapper: Mappers.FileImportList
|
|
300
|
+
},
|
|
301
|
+
default: {
|
|
302
|
+
bodyMapper: Mappers.CloudError
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
queryParameters: [
|
|
306
|
+
Parameters.apiVersion,
|
|
307
|
+
Parameters.filter,
|
|
308
|
+
Parameters.orderby,
|
|
309
|
+
Parameters.top,
|
|
310
|
+
Parameters.skipToken
|
|
311
|
+
],
|
|
312
|
+
urlParameters: [
|
|
313
|
+
Parameters.$host,
|
|
314
|
+
Parameters.subscriptionId,
|
|
315
|
+
Parameters.resourceGroupName,
|
|
316
|
+
Parameters.workspaceName
|
|
317
|
+
],
|
|
318
|
+
headerParameters: [Parameters.accept],
|
|
319
|
+
serializer
|
|
320
|
+
};
|
|
321
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
322
|
+
path:
|
|
323
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/fileImports/{fileImportId}",
|
|
324
|
+
httpMethod: "GET",
|
|
325
|
+
responses: {
|
|
326
|
+
200: {
|
|
327
|
+
bodyMapper: Mappers.FileImport
|
|
328
|
+
},
|
|
329
|
+
default: {
|
|
330
|
+
bodyMapper: Mappers.CloudError
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
queryParameters: [Parameters.apiVersion],
|
|
334
|
+
urlParameters: [
|
|
335
|
+
Parameters.$host,
|
|
336
|
+
Parameters.subscriptionId,
|
|
337
|
+
Parameters.resourceGroupName,
|
|
338
|
+
Parameters.workspaceName,
|
|
339
|
+
Parameters.fileImportId
|
|
340
|
+
],
|
|
341
|
+
headerParameters: [Parameters.accept],
|
|
342
|
+
serializer
|
|
343
|
+
};
|
|
344
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
345
|
+
path:
|
|
346
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/fileImports/{fileImportId}",
|
|
347
|
+
httpMethod: "PUT",
|
|
348
|
+
responses: {
|
|
349
|
+
201: {
|
|
350
|
+
bodyMapper: Mappers.FileImport
|
|
351
|
+
},
|
|
352
|
+
default: {
|
|
353
|
+
bodyMapper: Mappers.CloudError
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
requestBody: Parameters.fileImport,
|
|
357
|
+
queryParameters: [Parameters.apiVersion],
|
|
358
|
+
urlParameters: [
|
|
359
|
+
Parameters.$host,
|
|
360
|
+
Parameters.subscriptionId,
|
|
361
|
+
Parameters.resourceGroupName,
|
|
362
|
+
Parameters.workspaceName,
|
|
363
|
+
Parameters.fileImportId
|
|
364
|
+
],
|
|
365
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
366
|
+
mediaType: "json",
|
|
367
|
+
serializer
|
|
368
|
+
};
|
|
369
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
370
|
+
path:
|
|
371
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/fileImports/{fileImportId}",
|
|
372
|
+
httpMethod: "DELETE",
|
|
373
|
+
responses: {
|
|
374
|
+
200: {
|
|
375
|
+
bodyMapper: Mappers.FileImport
|
|
376
|
+
},
|
|
377
|
+
201: {
|
|
378
|
+
bodyMapper: Mappers.FileImport
|
|
379
|
+
},
|
|
380
|
+
202: {
|
|
381
|
+
bodyMapper: Mappers.FileImport
|
|
382
|
+
},
|
|
383
|
+
204: {
|
|
384
|
+
bodyMapper: Mappers.FileImport
|
|
385
|
+
},
|
|
386
|
+
default: {
|
|
387
|
+
bodyMapper: Mappers.CloudError
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
queryParameters: [Parameters.apiVersion],
|
|
391
|
+
urlParameters: [
|
|
392
|
+
Parameters.$host,
|
|
393
|
+
Parameters.subscriptionId,
|
|
394
|
+
Parameters.resourceGroupName,
|
|
395
|
+
Parameters.workspaceName,
|
|
396
|
+
Parameters.fileImportId
|
|
397
|
+
],
|
|
398
|
+
headerParameters: [Parameters.accept],
|
|
399
|
+
serializer
|
|
400
|
+
};
|
|
401
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
402
|
+
path: "{nextLink}",
|
|
403
|
+
httpMethod: "GET",
|
|
404
|
+
responses: {
|
|
405
|
+
200: {
|
|
406
|
+
bodyMapper: Mappers.FileImportList
|
|
407
|
+
},
|
|
408
|
+
default: {
|
|
409
|
+
bodyMapper: Mappers.CloudError
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
urlParameters: [
|
|
413
|
+
Parameters.$host,
|
|
414
|
+
Parameters.subscriptionId,
|
|
415
|
+
Parameters.resourceGroupName,
|
|
416
|
+
Parameters.workspaceName,
|
|
417
|
+
Parameters.nextLink
|
|
418
|
+
],
|
|
419
|
+
headerParameters: [Parameters.accept],
|
|
420
|
+
serializer
|
|
421
|
+
};
|