@azure/arm-securityinsight 1.0.0-beta.4 → 1.0.0-beta.5

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.
Files changed (185) hide show
  1. package/CHANGELOG.md +118 -0
  2. package/dist/index.js +1116 -367
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/actionsCreateOrUpdateSample.js +1 -1
  7. package/dist-esm/samples-dev/actionsDeleteSample.js +1 -1
  8. package/dist-esm/samples-dev/actionsGetSample.js +1 -1
  9. package/dist-esm/samples-dev/actionsListByAlertRuleSample.js +1 -1
  10. package/dist-esm/samples-dev/alertRuleTemplatesGetSample.js +1 -1
  11. package/dist-esm/samples-dev/alertRuleTemplatesListSample.js +1 -1
  12. package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.js +6 -5
  13. package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.js.map +1 -1
  14. package/dist-esm/samples-dev/alertRulesDeleteSample.js +1 -1
  15. package/dist-esm/samples-dev/alertRulesGetSample.js +4 -4
  16. package/dist-esm/samples-dev/alertRulesListSample.js +1 -1
  17. package/dist-esm/samples-dev/automationRulesCreateOrUpdateSample.js +1 -1
  18. package/dist-esm/samples-dev/automationRulesDeleteSample.js +1 -1
  19. package/dist-esm/samples-dev/automationRulesGetSample.js +1 -1
  20. package/dist-esm/samples-dev/automationRulesListSample.js +1 -1
  21. package/dist-esm/samples-dev/bookmarkExpandSample.js +1 -1
  22. package/dist-esm/samples-dev/bookmarkRelationsCreateOrUpdateSample.js +1 -1
  23. package/dist-esm/samples-dev/bookmarkRelationsDeleteSample.js +1 -1
  24. package/dist-esm/samples-dev/bookmarkRelationsGetSample.js +1 -1
  25. package/dist-esm/samples-dev/bookmarkRelationsListSample.js +1 -1
  26. package/dist-esm/samples-dev/bookmarksCreateOrUpdateSample.js +1 -1
  27. package/dist-esm/samples-dev/bookmarksDeleteSample.js +1 -1
  28. package/dist-esm/samples-dev/bookmarksGetSample.js +1 -1
  29. package/dist-esm/samples-dev/bookmarksListSample.js +1 -1
  30. package/dist-esm/samples-dev/dataConnectorsCheckRequirementsPostSample.js +16 -16
  31. package/dist-esm/samples-dev/dataConnectorsConnectSample.js +2 -2
  32. package/dist-esm/samples-dev/dataConnectorsCreateOrUpdateSample.js +8 -8
  33. package/dist-esm/samples-dev/dataConnectorsDeleteSample.js +5 -5
  34. package/dist-esm/samples-dev/dataConnectorsDisconnectSample.js +1 -1
  35. package/dist-esm/samples-dev/dataConnectorsGetSample.js +20 -20
  36. package/dist-esm/samples-dev/dataConnectorsListSample.js +1 -1
  37. package/dist-esm/samples-dev/domainWhoisGetSample.js +1 -1
  38. package/dist-esm/samples-dev/entitiesExpandSample.js +1 -1
  39. package/dist-esm/samples-dev/entitiesGetInsightsSample.js +1 -1
  40. package/dist-esm/samples-dev/entitiesGetSample.js +20 -20
  41. package/dist-esm/samples-dev/entitiesGetTimelineListSample.js +1 -1
  42. package/dist-esm/samples-dev/entitiesListSample.js +1 -1
  43. package/dist-esm/samples-dev/entitiesQueriesSample.js +1 -1
  44. package/dist-esm/samples-dev/entitiesRelationsListSample.js +1 -1
  45. package/dist-esm/samples-dev/entityQueriesCreateOrUpdateSample.js +1 -1
  46. package/dist-esm/samples-dev/entityQueriesDeleteSample.js +1 -1
  47. package/dist-esm/samples-dev/entityQueriesGetSample.js +2 -2
  48. package/dist-esm/samples-dev/entityQueriesListSample.js +1 -1
  49. package/dist-esm/samples-dev/entityQueryTemplatesGetSample.js +1 -1
  50. package/dist-esm/samples-dev/entityQueryTemplatesListSample.js +1 -1
  51. package/dist-esm/samples-dev/entityRelationsGetRelationSample.js +1 -1
  52. package/dist-esm/samples-dev/fileImportsCreateSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/fileImportsCreateSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/fileImportsCreateSample.js +38 -0
  55. package/dist-esm/samples-dev/fileImportsCreateSample.js.map +1 -0
  56. package/dist-esm/samples-dev/fileImportsDeleteSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/fileImportsDeleteSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/fileImportsDeleteSample.js +32 -0
  59. package/dist-esm/samples-dev/fileImportsDeleteSample.js.map +1 -0
  60. package/dist-esm/samples-dev/fileImportsGetSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/fileImportsGetSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/fileImportsGetSample.js +32 -0
  63. package/dist-esm/samples-dev/fileImportsGetSample.js.map +1 -0
  64. package/dist-esm/samples-dev/fileImportsListSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/fileImportsListSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/fileImportsListSample.js +48 -0
  67. package/dist-esm/samples-dev/fileImportsListSample.js.map +1 -0
  68. package/dist-esm/samples-dev/incidentCommentsCreateOrUpdateSample.js +1 -1
  69. package/dist-esm/samples-dev/incidentCommentsDeleteSample.js +1 -1
  70. package/dist-esm/samples-dev/incidentCommentsGetSample.js +1 -1
  71. package/dist-esm/samples-dev/incidentCommentsListSample.js +1 -1
  72. package/dist-esm/samples-dev/incidentRelationsCreateOrUpdateSample.js +1 -1
  73. package/dist-esm/samples-dev/incidentRelationsDeleteSample.js +1 -1
  74. package/dist-esm/samples-dev/incidentRelationsGetSample.js +1 -1
  75. package/dist-esm/samples-dev/incidentRelationsListSample.js +1 -1
  76. package/dist-esm/samples-dev/incidentsCreateOrUpdateSample.js +1 -1
  77. package/dist-esm/samples-dev/incidentsCreateTeamSample.js +1 -1
  78. package/dist-esm/samples-dev/incidentsDeleteSample.js +1 -1
  79. package/dist-esm/samples-dev/incidentsGetSample.js +1 -1
  80. package/dist-esm/samples-dev/incidentsListAlertsSample.js +1 -1
  81. package/dist-esm/samples-dev/incidentsListBookmarksSample.js +1 -1
  82. package/dist-esm/samples-dev/incidentsListEntitiesSample.js +1 -1
  83. package/dist-esm/samples-dev/incidentsListSample.js +1 -1
  84. package/dist-esm/samples-dev/incidentsRunPlaybookSample.js +1 -1
  85. package/dist-esm/samples-dev/ipGeodataGetSample.js +1 -1
  86. package/dist-esm/samples-dev/metadataCreateSample.js +2 -2
  87. package/dist-esm/samples-dev/metadataDeleteSample.js +1 -1
  88. package/dist-esm/samples-dev/metadataGetSample.js +1 -1
  89. package/dist-esm/samples-dev/metadataListSample.js +2 -2
  90. package/dist-esm/samples-dev/metadataUpdateSample.js +1 -1
  91. package/dist-esm/samples-dev/officeConsentsDeleteSample.js +1 -1
  92. package/dist-esm/samples-dev/officeConsentsGetSample.js +1 -1
  93. package/dist-esm/samples-dev/officeConsentsListSample.js +1 -1
  94. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  95. package/dist-esm/samples-dev/productSettingsDeleteSample.js +1 -1
  96. package/dist-esm/samples-dev/productSettingsGetSample.js +1 -1
  97. package/dist-esm/samples-dev/productSettingsListSample.js +1 -1
  98. package/dist-esm/samples-dev/productSettingsUpdateSample.js +1 -1
  99. package/dist-esm/samples-dev/securityMlAnalyticsSettingsCreateOrUpdateSample.js +1 -1
  100. package/dist-esm/samples-dev/securityMlAnalyticsSettingsDeleteSample.js +1 -1
  101. package/dist-esm/samples-dev/securityMlAnalyticsSettingsGetSample.js +1 -1
  102. package/dist-esm/samples-dev/securityMlAnalyticsSettingsListSample.js +1 -1
  103. package/dist-esm/samples-dev/sentinelOnboardingStatesCreateSample.js +1 -1
  104. package/dist-esm/samples-dev/sentinelOnboardingStatesDeleteSample.js +1 -1
  105. package/dist-esm/samples-dev/sentinelOnboardingStatesGetSample.js +1 -1
  106. package/dist-esm/samples-dev/sentinelOnboardingStatesListSample.js +1 -1
  107. package/dist-esm/samples-dev/sourceControlListRepositoriesSample.js +1 -1
  108. package/dist-esm/samples-dev/sourceControlsCreateSample.js +1 -1
  109. package/dist-esm/samples-dev/sourceControlsDeleteSample.js +1 -1
  110. package/dist-esm/samples-dev/sourceControlsGetSample.js +1 -1
  111. package/dist-esm/samples-dev/sourceControlsListSample.js +1 -1
  112. package/dist-esm/samples-dev/threatIntelligenceIndicatorAppendTagsSample.js +1 -1
  113. package/dist-esm/samples-dev/threatIntelligenceIndicatorCreateIndicatorSample.js +1 -1
  114. package/dist-esm/samples-dev/threatIntelligenceIndicatorCreateSample.js +1 -1
  115. package/dist-esm/samples-dev/threatIntelligenceIndicatorDeleteSample.js +1 -1
  116. package/dist-esm/samples-dev/threatIntelligenceIndicatorGetSample.js +1 -1
  117. package/dist-esm/samples-dev/threatIntelligenceIndicatorMetricsListSample.js +1 -1
  118. package/dist-esm/samples-dev/threatIntelligenceIndicatorQueryIndicatorsSample.js +1 -1
  119. package/dist-esm/samples-dev/threatIntelligenceIndicatorReplaceTagsSample.js +1 -1
  120. package/dist-esm/samples-dev/threatIntelligenceIndicatorsListSample.js +1 -1
  121. package/dist-esm/samples-dev/watchlistItemsCreateOrUpdateSample.js +1 -1
  122. package/dist-esm/samples-dev/watchlistItemsDeleteSample.js +1 -1
  123. package/dist-esm/samples-dev/watchlistItemsGetSample.js +1 -1
  124. package/dist-esm/samples-dev/watchlistItemsListSample.js +1 -1
  125. package/dist-esm/samples-dev/watchlistsCreateOrUpdateSample.js +2 -2
  126. package/dist-esm/samples-dev/watchlistsDeleteSample.js +1 -1
  127. package/dist-esm/samples-dev/watchlistsGetSample.js +1 -1
  128. package/dist-esm/samples-dev/watchlistsListSample.js +1 -1
  129. package/dist-esm/src/lroImpl.d.ts +16 -0
  130. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  131. package/dist-esm/src/lroImpl.js +29 -0
  132. package/dist-esm/src/lroImpl.js.map +1 -0
  133. package/dist-esm/src/models/index.d.ts +482 -20
  134. package/dist-esm/src/models/index.d.ts.map +1 -1
  135. package/dist-esm/src/models/index.js +98 -8
  136. package/dist-esm/src/models/index.js.map +1 -1
  137. package/dist-esm/src/models/mappers.d.ts +82 -63
  138. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  139. package/dist-esm/src/models/mappers.js +511 -201
  140. package/dist-esm/src/models/mappers.js.map +1 -1
  141. package/dist-esm/src/models/parameters.d.ts +2 -0
  142. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  143. package/dist-esm/src/models/parameters.js +16 -2
  144. package/dist-esm/src/models/parameters.js.map +1 -1
  145. package/dist-esm/src/operations/fileImports.d.ts +72 -0
  146. package/dist-esm/src/operations/fileImports.d.ts.map +1 -0
  147. package/dist-esm/src/operations/fileImports.js +303 -0
  148. package/dist-esm/src/operations/fileImports.js.map +1 -0
  149. package/dist-esm/src/operations/index.d.ts +1 -0
  150. package/dist-esm/src/operations/index.d.ts.map +1 -1
  151. package/dist-esm/src/operations/index.js +1 -0
  152. package/dist-esm/src/operations/index.js.map +1 -1
  153. package/dist-esm/src/operationsInterfaces/fileImports.d.ts +47 -0
  154. package/dist-esm/src/operationsInterfaces/fileImports.d.ts.map +1 -0
  155. package/dist-esm/src/operationsInterfaces/fileImports.js +9 -0
  156. package/dist-esm/src/operationsInterfaces/fileImports.js.map +1 -0
  157. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  158. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  159. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  160. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  161. package/dist-esm/src/securityInsights.d.ts +2 -1
  162. package/dist-esm/src/securityInsights.d.ts.map +1 -1
  163. package/dist-esm/src/securityInsights.js +4 -3
  164. package/dist-esm/src/securityInsights.js.map +1 -1
  165. package/dist-esm/test/securityinsights_examples.spec.d.ts +4 -0
  166. package/dist-esm/test/securityinsights_examples.spec.d.ts.map +1 -0
  167. package/dist-esm/test/securityinsights_examples.spec.js +98 -0
  168. package/dist-esm/test/securityinsights_examples.spec.js.map +1 -0
  169. package/package.json +6 -4
  170. package/review/arm-securityinsight.api.md +283 -3
  171. package/src/lroImpl.ts +34 -0
  172. package/src/models/index.ts +526 -19
  173. package/src/models/mappers.ts +546 -201
  174. package/src/models/parameters.ts +18 -1
  175. package/src/operations/fileImports.ts +410 -0
  176. package/src/operations/index.ts +1 -0
  177. package/src/operationsInterfaces/fileImports.ts +95 -0
  178. package/src/operationsInterfaces/index.ts +1 -0
  179. package/src/securityInsights.ts +6 -2
  180. package/types/arm-securityinsight.d.ts +548 -5
  181. package/types/tsdoc-metadata.json +1 -1
  182. package/dist-esm/test/sampleTest.d.ts +0 -2
  183. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  184. package/dist-esm/test/sampleTest.js +0 -38
  185. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Creates a source control.
15
15
  *
16
16
  * @summary Creates a source control.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/sourcecontrols/CreateSourceControl.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/sourcecontrols/CreateSourceControl.json
18
18
  */
19
19
  function createsASourceControl() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Delete a source control.
15
15
  *
16
16
  * @summary Delete a source control.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/sourcecontrols/DeleteSourceControl.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/sourcecontrols/DeleteSourceControl.json
18
18
  */
19
19
  function deleteASourceControl() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Gets a source control byt its identifier.
15
15
  *
16
16
  * @summary Gets a source control byt its identifier.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/sourcecontrols/GetSourceControlById.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/sourcecontrols/GetSourceControlById.json
18
18
  */
19
19
  function getASourceControl() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Gets all source controls, without source control items.
15
15
  *
16
16
  * @summary Gets all source controls, without source control items.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/sourcecontrols/GetSourceControls.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/sourcecontrols/GetSourceControls.json
18
18
  */
19
19
  function getAllSourceControls() {
20
20
  var e_1, _a;
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Append tags to a threat intelligence indicator.
15
15
  *
16
16
  * @summary Append tags to a threat intelligence indicator.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/threatintelligence/AppendTagsThreatIntelligence.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/AppendTagsThreatIntelligence.json
18
18
  */
19
19
  function appendTagsToAThreatIntelligenceIndicator() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Create a new threat intelligence indicator.
15
15
  *
16
16
  * @summary Create a new threat intelligence indicator.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/threatintelligence/CreateThreatIntelligence.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/CreateThreatIntelligence.json
18
18
  */
19
19
  function createANewThreatIntelligence() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Update a threat Intelligence indicator.
15
15
  *
16
16
  * @summary Update a threat Intelligence indicator.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/threatintelligence/UpdateThreatIntelligence.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/UpdateThreatIntelligence.json
18
18
  */
19
19
  function updateAThreatIntelligenceIndicator() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Delete a threat intelligence indicator.
15
15
  *
16
16
  * @summary Delete a threat intelligence indicator.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/threatintelligence/DeleteThreatIntelligence.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/DeleteThreatIntelligence.json
18
18
  */
19
19
  function deleteAThreatIntelligenceIndicator() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to View a threat intelligence indicator by name.
15
15
  *
16
16
  * @summary View a threat intelligence indicator by name.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/threatintelligence/GetThreatIntelligenceById.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/GetThreatIntelligenceById.json
18
18
  */
19
19
  function viewAThreatIntelligenceIndicatorByName() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Get threat intelligence indicators metrics (Indicators counts by Type, Threat Type, Source).
15
15
  *
16
16
  * @summary Get threat intelligence indicators metrics (Indicators counts by Type, Threat Type, Source).
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/threatintelligence/CollectThreatIntelligenceMetrics.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/CollectThreatIntelligenceMetrics.json
18
18
  */
19
19
  function getThreatIntelligenceIndicatorsMetrics() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Query threat intelligence indicators as per filtering criteria.
15
15
  *
16
16
  * @summary Query threat intelligence indicators as per filtering criteria.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/threatintelligence/QueryThreatIntelligence.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/QueryThreatIntelligence.json
18
18
  */
19
19
  function queryThreatIntelligenceIndicatorsAsPerFilteringCriteria() {
20
20
  var e_1, _a;
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Replace tags added to a threat intelligence indicator.
15
15
  *
16
16
  * @summary Replace tags added to a threat intelligence indicator.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/threatintelligence/ReplaceTagsThreatIntelligence.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/ReplaceTagsThreatIntelligence.json
18
18
  */
19
19
  function replaceTagsToAThreatIntelligence() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Get all threat intelligence indicators.
15
15
  *
16
16
  * @summary Get all threat intelligence indicators.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/threatintelligence/GetThreatIntelligence.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/GetThreatIntelligence.json
18
18
  */
19
19
  function getAllThreatIntelligenceIndicators() {
20
20
  var e_1, _a;
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Creates or updates a watchlist item.
15
15
  *
16
16
  * @summary Creates or updates a watchlist item.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/watchlists/CreateWatchlistItem.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/CreateWatchlistItem.json
18
18
  */
19
19
  function createsOrUpdatesAWatchlistItem() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Delete a watchlist item.
15
15
  *
16
16
  * @summary Delete a watchlist item.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/watchlists/DeleteWatchlistItem.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/DeleteWatchlistItem.json
18
18
  */
19
19
  function deleteAWatchlistItem() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Gets a watchlist, without its watchlist items.
15
15
  *
16
16
  * @summary Gets a watchlist, without its watchlist items.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/watchlists/GetWatchlistItemById.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/GetWatchlistItemById.json
18
18
  */
19
19
  function getAWatchlistItem() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Gets all watchlist Items.
15
15
  *
16
16
  * @summary Gets all watchlist Items.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/watchlists/GetWatchlistItems.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/GetWatchlistItems.json
18
18
  */
19
19
  function getAllWatchlistItems() {
20
20
  var e_1, _a;
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Create or update a Watchlist and its Watchlist Items (bulk creation, e.g. through text/csv content type). To create a Watchlist and its Items, we should call this endpoint with either rawContent or a valid SAR URI and contentType properties. The rawContent is mainly used for small watchlist (content size below 3.8 MB). The SAS URI enables the creation of large watchlist, where the content size can go up to 500 MB. The status of processing such large file can be polled through the URL returned in Azure-AsyncOperation header.
15
15
  *
16
16
  * @summary Create or update a Watchlist and its Watchlist Items (bulk creation, e.g. through text/csv content type). To create a Watchlist and its Items, we should call this endpoint with either rawContent or a valid SAR URI and contentType properties. The rawContent is mainly used for small watchlist (content size below 3.8 MB). The SAS URI enables the creation of large watchlist, where the content size can go up to 500 MB. The status of processing such large file can be polled through the URL returned in Azure-AsyncOperation header.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/watchlists/CreateWatchlistAndWatchlistItems.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/CreateWatchlistAndWatchlistItems.json
18
18
  */
19
19
  function createsOrUpdatesAWatchlistAndBulkCreatesWatchlistItems() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -45,7 +45,7 @@ createsOrUpdatesAWatchlistAndBulkCreatesWatchlistItems().catch(console.error);
45
45
  * This sample demonstrates how to Create or update a Watchlist and its Watchlist Items (bulk creation, e.g. through text/csv content type). To create a Watchlist and its Items, we should call this endpoint with either rawContent or a valid SAR URI and contentType properties. The rawContent is mainly used for small watchlist (content size below 3.8 MB). The SAS URI enables the creation of large watchlist, where the content size can go up to 500 MB. The status of processing such large file can be polled through the URL returned in Azure-AsyncOperation header.
46
46
  *
47
47
  * @summary Create or update a Watchlist and its Watchlist Items (bulk creation, e.g. through text/csv content type). To create a Watchlist and its Items, we should call this endpoint with either rawContent or a valid SAR URI and contentType properties. The rawContent is mainly used for small watchlist (content size below 3.8 MB). The SAS URI enables the creation of large watchlist, where the content size can go up to 500 MB. The status of processing such large file can be polled through the URL returned in Azure-AsyncOperation header.
48
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/watchlists/CreateWatchlist.json
48
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/CreateWatchlist.json
49
49
  */
50
50
  function createsOrUpdatesAWatchlist() {
51
51
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Delete a watchlist.
15
15
  *
16
16
  * @summary Delete a watchlist.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/watchlists/DeleteWatchlist.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/DeleteWatchlist.json
18
18
  */
19
19
  function deleteAWatchlist() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Gets a watchlist, without its watchlist items.
15
15
  *
16
16
  * @summary Gets a watchlist, without its watchlist items.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/watchlists/GetWatchlistByAlias.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/GetWatchlistByAlias.json
18
18
  */
19
19
  function getAWatchlist() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Gets all watchlists, without watchlist items.
15
15
  *
16
16
  * @summary Gets all watchlists, without watchlist items.
17
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-07-01-preview/examples/watchlists/GetWatchlists.json
17
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/GetWatchlists.json
18
18
  */
19
19
  function getAllWatchlists() {
20
20
  var e_1, _a;
@@ -0,0 +1,16 @@
1
+ import { LongRunningOperation, LroResponse } from "@azure/core-lro";
2
+ export declare class LroImpl<T> implements LongRunningOperation<T> {
3
+ private sendOperationFn;
4
+ private args;
5
+ private spec;
6
+ requestPath: string;
7
+ requestMethod: string;
8
+ constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
9
+ readonly requestBody?: unknown;
10
+ readonly path?: string;
11
+ readonly httpMethod: string;
12
+ } & Record<string, any>, requestPath?: string, requestMethod?: string);
13
+ sendInitialRequest(): Promise<LroResponse<T>>;
14
+ sendPollRequest(path: string): Promise<LroResponse<T>>;
15
+ }
16
+ //# sourceMappingURL=lroImpl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,qBAAa,OAAO,CAAC,CAAC,CAAE,YAAW,oBAAoB,CAAC,CAAC,CAAC;IAEtD,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,IAAI;IAKL,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,MAAM;gBARpB,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAClE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,EAAE;QACZ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAChB,WAAW,GAAE,MAAmB,EAChC,aAAa,GAAE,MAAwB;IAEnC,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAG7C,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CAQpE"}
@@ -0,0 +1,29 @@
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
+ import { __awaiter, __rest } from "tslib";
9
+ export class LroImpl {
10
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
11
+ this.sendOperationFn = sendOperationFn;
12
+ this.args = args;
13
+ this.spec = spec;
14
+ this.requestPath = requestPath;
15
+ this.requestMethod = requestMethod;
16
+ }
17
+ sendInitialRequest() {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ return this.sendOperationFn(this.args, this.spec);
20
+ });
21
+ }
22
+ sendPollRequest(path) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
25
+ return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
26
+ });
27
+ }
28
+ }
29
+ //# sourceMappingURL=lroImpl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACS,kBAAkB;;YAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACpD,CAAC;KAAA;IACY,eAAe,CAAC,IAAY;;YACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;YAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;QACL,CAAC;KAAA;CACF"}