diff --git a/packages/@azure/arm-sql/.npmignore b/packages/@azure/arm-sql/.npmignore index 3b46bc6202d8..a07a455ac10c 100644 --- a/packages/@azure/arm-sql/.npmignore +++ b/packages/@azure/arm-sql/.npmignore @@ -1,35 +1,35 @@ -#git -.git -.gitignore -#gulp -gulpfile.js -#documentation -doc/ -docs/ -#dependencies -node_modules/ -#samples -sample/ -samples/ -#tests -test/ -tests/ -coverage/ -#tools and scripts -tools/ -scripts/ -#IDE settings -*.sln -.vscode/ -.idea -.editorconfig -.ntvs_analysis.* -#build tools -.travis.yml -.jenkins.yml -.codeclimate.yml -appveyor.yml -# Nuget packages # -.nuget/ -packages/ -packages.config +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-sql/LICENSE.txt b/packages/@azure/arm-sql/LICENSE.txt index a70e8cf66038..5431ba98b936 100644 --- a/packages/@azure/arm-sql/LICENSE.txt +++ b/packages/@azure/arm-sql/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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 -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +The MIT License (MIT) + +Copyright (c) 2018 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/@azure/arm-sql/README.md b/packages/@azure/arm-sql/README.md index fb8a6107e748..fd114bf7f2b5 100644 --- a/packages/@azure/arm-sql/README.md +++ b/packages/@azure/arm-sql/README.md @@ -68,7 +68,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to console.log("The result is:"); console.log(result); }).catch((err) => { - console.log('An error occurred:'); + console.log("An error occurred:"); console.error(err); }); }); diff --git a/packages/@azure/arm-sql/lib/models/index.ts b/packages/@azure/arm-sql/lib/models/index.ts index 1b62bfe5b4fb..540a9d64f83b 100644 --- a/packages/@azure/arm-sql/lib/models/index.ts +++ b/packages/@azure/arm-sql/lib/models/index.ts @@ -4216,8 +4216,8 @@ export interface BackupLongTermRetentionPolicy extends ProxyResource { */ weeklyRetention?: string; /** - * @member {string} [monthlyRetention] The montly retention policy for an LTR - * backup in an ISO 8601 format. + * @member {string} [monthlyRetention] The monthly retention policy for an + * LTR backup in an ISO 8601 format. */ monthlyRetention?: string; /** diff --git a/packages/@azure/arm-sql/lib/models/parameters.ts b/packages/@azure/arm-sql/lib/models/parameters.ts index 089818eaf567..3f364f4f144d 100644 --- a/packages/@azure/arm-sql/lib/models/parameters.ts +++ b/packages/@azure/arm-sql/lib/models/parameters.ts @@ -184,45 +184,45 @@ export const credentialName: msRest.OperationURLParameter = { } } }; -export const databaseName: msRest.OperationURLParameter = { - parameterPath: "databaseName", +export const dataMaskingPolicyName: msRest.OperationURLParameter = { + parameterPath: "dataMaskingPolicyName", mapper: { required: true, - serializedName: "databaseName", + isConstant: true, + serializedName: "dataMaskingPolicyName", + defaultValue: 'Default', type: { name: "String" } } }; -export const databaseState: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "databaseState" - ], +export const dataMaskingRuleName: msRest.OperationURLParameter = { + parameterPath: "dataMaskingRuleName", mapper: { - serializedName: "databaseState", + required: true, + serializedName: "dataMaskingRuleName", type: { name: "String" } } }; -export const dataMaskingPolicyName: msRest.OperationURLParameter = { - parameterPath: "dataMaskingPolicyName", +export const databaseName: msRest.OperationURLParameter = { + parameterPath: "databaseName", mapper: { required: true, - isConstant: true, - serializedName: "dataMaskingPolicyName", - defaultValue: 'Default', + serializedName: "databaseName", type: { name: "String" } } }; -export const dataMaskingRuleName: msRest.OperationURLParameter = { - parameterPath: "dataMaskingRuleName", +export const databaseState: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "databaseState" + ], mapper: { - required: true, - serializedName: "dataMaskingRuleName", + serializedName: "databaseState", type: { name: "String" } diff --git a/packages/@azure/arm-sql/package.json b/packages/@azure/arm-sql/package.json index 7e83da845f8b..29af2561c37e 100644 --- a/packages/@azure/arm-sql/package.json +++ b/packages/@azure/arm-sql/package.json @@ -33,10 +33,23 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "lib/**/*.ts", + "rollup.config.js", + "tsconfig.json" + ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-sql.js.map'\" -o ./dist/arm-sql.min.js ./dist/arm-sql.js", - "prepare": "npm run build" + "prepack": "npm install && npm run build" }, "sideEffects": false }