From ccc465f5756259783e8cfaca4ab3326fb1352385 Mon Sep 17 00:00:00 2001
From: SDKAuto <sdkautomation@microsoft.com>
Date: Wed, 5 Jan 2022 15:06:53 +0000
Subject: [PATCH] CodeGen from PR 17107 in Azure/azure-rest-api-specs [DO NOT
 MERGE ] Introduce new scanners resource type (#17107)

* introduce new scanners resource type

* fix error

* fixing errors

* fixing errors

* fix error

* fixing errors

* fixing comments

* adding new tag
---
 sdk/security/arm-security/CHANGELOG.md        | 21 -------------------
 sdk/security/arm-security/LICENSE             |  2 +-
 sdk/security/arm-security/README.md           |  2 +-
 sdk/security/arm-security/_meta.json          |  6 +++---
 sdk/security/arm-security/package.json        | 18 ++++------------
 .../node/my_test/recording_sample_test.js     |  5 -----
 .../arm-security/src/securityCenter.ts        |  2 +-
 7 files changed, 10 insertions(+), 46 deletions(-)
 delete mode 100644 sdk/security/arm-security/CHANGELOG.md
 delete mode 100644 sdk/security/arm-security/recordings/node/my_test/recording_sample_test.js

diff --git a/sdk/security/arm-security/CHANGELOG.md b/sdk/security/arm-security/CHANGELOG.md
deleted file mode 100644
index 6a435b72be0d..000000000000
--- a/sdk/security/arm-security/CHANGELOG.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# Release History
-
-## 4.0.1 (Unreleased)
-
-### Features Added
-
-### Breaking Changes
-
-### Bugs Fixed
-
-### Other Changes
-
-## 4.0.0 (2021-12-14)
-
-The package of @azure/arm-security is using our next generation design principles since version 4.0.0, which contains breaking changes.
-
-To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
-
-To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
-
-To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
diff --git a/sdk/security/arm-security/LICENSE b/sdk/security/arm-security/LICENSE
index ccb63b166732..5d1d36e0af80 100644
--- a/sdk/security/arm-security/LICENSE
+++ b/sdk/security/arm-security/LICENSE
@@ -1,6 +1,6 @@
 The MIT License (MIT)
 
-Copyright (c) 2021 Microsoft
+Copyright (c) 2022 Microsoft
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
diff --git a/sdk/security/arm-security/README.md b/sdk/security/arm-security/README.md
index a54f7902e8d8..52eb7db80de6 100644
--- a/sdk/security/arm-security/README.md
+++ b/sdk/security/arm-security/README.md
@@ -6,7 +6,7 @@ API spec for Microsoft.Security (Azure Security Center) resource provider
 
 [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security) |
 [Package (NPM)](https://www.npmjs.com/package/@azure/arm-security) |
-[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-security) |
+[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-security?view=azure-node-preview) |
 [Samples](https://github.com/Azure-Samples/azure-samples-js-management)
 
 ## Getting started
diff --git a/sdk/security/arm-security/_meta.json b/sdk/security/arm-security/_meta.json
index 6ffc255b94f2..2786d2e1f3ec 100644
--- a/sdk/security/arm-security/_meta.json
+++ b/sdk/security/arm-security/_meta.json
@@ -1,7 +1,7 @@
 {
-  "commit": "ea0f7b072ad3aaff203ea9003246b9e584b819ff",
+  "commit": "30fca88fa23112e4296322f38610e02da522d390",
   "readme": "specification/security/resource-manager/readme.md",
-  "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/security/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211207.1",
+  "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/security/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1",
   "repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
-  "use": "@autorest/typescript@6.0.0-alpha.16.20211207.1"
+  "use": "@autorest/typescript@6.0.0-alpha.16.20211130.1"
 }
\ No newline at end of file
diff --git a/sdk/security/arm-security/package.json b/sdk/security/arm-security/package.json
index 240a145c91aa..06da3e260509 100644
--- a/sdk/security/arm-security/package.json
+++ b/sdk/security/arm-security/package.json
@@ -3,10 +3,8 @@
   "sdk-type": "mgmt",
   "author": "Microsoft Corporation",
   "description": "A generated SDK for SecurityCenter.",
-  "version": "4.0.1",
-  "engines": {
-    "node": ">=12.0.0"
-  },
+  "version": "1.0.0-beta.1",
+  "engines": { "node": ">=12.0.0" },
   "dependencies": {
     "@azure/core-lro": "^2.2.0",
     "@azure/abort-controller": "^1.0.0",
@@ -16,13 +14,7 @@
     "@azure/core-rest-pipeline": "^1.1.0",
     "tslib": "^2.2.0"
   },
-  "keywords": [
-    "node",
-    "azure",
-    "typescript",
-    "browser",
-    "isomorphic"
-  ],
+  "keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
   "license": "MIT",
   "main": "./dist/index.js",
   "module": "./dist-esm/src/index.js",
@@ -49,9 +41,7 @@
     "type": "git",
     "url": "https://github.com/Azure/azure-sdk-for-js.git"
   },
-  "bugs": {
-    "url": "https://github.com/Azure/azure-sdk-for-js/issues"
-  },
+  "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
   "files": [
     "dist/**/*.js",
     "dist/**/*.js.map",
diff --git a/sdk/security/arm-security/recordings/node/my_test/recording_sample_test.js b/sdk/security/arm-security/recordings/node/my_test/recording_sample_test.js
deleted file mode 100644
index 0f6ecb857acf..000000000000
--- a/sdk/security/arm-security/recordings/node/my_test/recording_sample_test.js
+++ /dev/null
@@ -1,5 +0,0 @@
-let nock = require('nock');
-
-module.exports.hash = "7a6be38bb8cb644d64b4094802301751";
-
-module.exports.testInfo = {"uniqueName":{},"newDate":{}}
diff --git a/sdk/security/arm-security/src/securityCenter.ts b/sdk/security/arm-security/src/securityCenter.ts
index 43425ff4cc8b..379d5a489f7d 100644
--- a/sdk/security/arm-security/src/securityCenter.ts
+++ b/sdk/security/arm-security/src/securityCenter.ts
@@ -150,7 +150,7 @@ export class SecurityCenter extends coreClient.ServiceClient {
       credential: credentials
     };
 
-    const packageDetails = `azsdk-js-arm-security/4.0.0`;
+    const packageDetails = `azsdk-js-arm-security/1.0.0-beta.1`;
     const userAgentPrefix =
       options.userAgentOptions && options.userAgentOptions.userAgentPrefix
         ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`