@azure-rest/arm-appservice 1.0.0-beta.1

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.
@@ -0,0 +1,21 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT license.
3
+ import { getClient } from "@azure-rest/core-client";
4
+ export default function createClient(credentials, options = {}) {
5
+ var _a, _b;
6
+ const baseUrl = (_a = options.baseUrl) !== null && _a !== void 0 ? _a : "https://management.azure.com";
7
+ options.apiVersion = (_b = options.apiVersion) !== null && _b !== void 0 ? _b : "2021-03-01";
8
+ options = Object.assign(Object.assign({}, options), { credentials: {
9
+ scopes: ["https://management.azure.com/.default"],
10
+ } });
11
+ const userAgentInfo = `azsdk-js-arm-appservice-rest/1.0.0-beta.1`;
12
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
13
+ ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
14
+ : `${userAgentInfo}`;
15
+ options = Object.assign(Object.assign({}, options), { userAgentOptions: {
16
+ userAgentPrefix,
17
+ } });
18
+ const client = getClient(baseUrl, credentials, options);
19
+ return client;
20
+ }
21
+ //# sourceMappingURL=webSiteManagementClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webSiteManagementClient.js","sourceRoot":"","sources":["../../src/webSiteManagementClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,SAAS,EAAiB,MAAM,yBAAyB,CAAC;AAInE,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,WAA4B,EAC5B,UAAyB,EAAE;;IAE3B,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,OAAO,mCAAI,8BAA8B,CAAC;IAClE,OAAO,CAAC,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,YAAY,CAAC;IACxD,OAAO,mCACF,OAAO,KACV,WAAW,EAAE;YACX,MAAM,EAAE,CAAC,uCAAuC,CAAC;SAClD,GACF,CAAC;IAEF,MAAM,aAAa,GAAG,2CAA2C,CAAC;IAClE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,GACF,CAAC;IAEF,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAA4B,CAAC;IAEnF,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { getClient, ClientOptions } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { WebSiteManagementClient } from \"./clientDefinitions\";\n\nexport default function createClient(\n credentials: TokenCredential,\n options: ClientOptions = {}\n): WebSiteManagementClient {\n const baseUrl = options.baseUrl ?? \"https://management.azure.com\";\n options.apiVersion = options.apiVersion ?? \"2021-03-01\";\n options = {\n ...options,\n credentials: {\n scopes: [\"https://management.azure.com/.default\"],\n },\n };\n\n const userAgentInfo = `azsdk-js-arm-appservice-rest/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n };\n\n const client = getClient(baseUrl, credentials, options) as WebSiteManagementClient;\n\n return client;\n}\n"]}
package/package.json ADDED
@@ -0,0 +1,129 @@
1
+ {
2
+ "name": "@azure-rest/arm-appservice",
3
+ "sdk-type": "client",
4
+ "author": "Microsoft Corporation",
5
+ "version": "1.0.0-beta.1",
6
+ "description": "",
7
+ "keywords": [
8
+ "node",
9
+ "azure",
10
+ "cloud",
11
+ "typescript",
12
+ "browser",
13
+ "isomorphic"
14
+ ],
15
+ "license": "MIT",
16
+ "main": "dist/index.js",
17
+ "module": "./dist-esm/src/index.js",
18
+ "types": "./types/arm-appservice.d.ts",
19
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appservice/arm-appservice-rest/README.md",
20
+ "repository": "github:Azure/azure-sdk-for-js",
21
+ "bugs": {
22
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
23
+ },
24
+ "files": [
25
+ "dist/",
26
+ "dist-esm/src/",
27
+ "types/arm-appservice.d.ts",
28
+ "README.md",
29
+ "LICENSE",
30
+ "review/*"
31
+ ],
32
+ "//metadata": {
33
+ "constantPaths": [
34
+ {
35
+ "path": "swagger/README.md",
36
+ "prefix": "package-version"
37
+ }
38
+ ]
39
+ },
40
+ "engines": {
41
+ "node": ">=12.0.0"
42
+ },
43
+ "scripts": {
44
+ "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
45
+ "build:browser": "tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1",
46
+ "build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1",
47
+ "build:samples": "echo skipped.",
48
+ "build:test": "tsc -p . && dev-tool run bundle",
49
+ "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local",
50
+ "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
51
+ "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
52
+ "execute:samples": "echo skipped",
53
+ "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local",
54
+ "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
55
+ "generate:client": "autorest --typescript swagger/README.md && npm run format",
56
+ "integration-test:browser": "dev-tool run test:browser",
57
+ "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'",
58
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
59
+ "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
60
+ "lint": "eslint package.json api-extractor.json src test --ext .ts",
61
+ "pack": "npm pack 2>&1",
62
+ "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
63
+ "test:node": "npm run clean && npm run build:test && npm run unit-test:node",
64
+ "test": "npm run clean && npm run build:test && npm run unit-test",
65
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
66
+ "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'",
67
+ "unit-test:browser": "dev-tool run test:browser",
68
+ "docs": "typedoc --excludePrivate --excludeExternals --out ./dist/docs ./src",
69
+ "build": "npm run clean && tsc -p . && dev-tool run bundle && mkdirp ./review && api-extractor run --local"
70
+ },
71
+ "sideEffects": false,
72
+ "autoPublish": false,
73
+ "dependencies": {
74
+ "@azure/core-auth": "^1.3.0",
75
+ "@azure-rest/core-client": "1.0.0-beta.9",
76
+ "@azure/core-rest-pipeline": "^1.8.0",
77
+ "@azure/logger": "^1.0.0",
78
+ "tslib": "^2.2.0",
79
+ "@azure/core-paging": "^1.2.0",
80
+ "@azure/core-lro": "^2.2.0"
81
+ },
82
+ "devDependencies": {
83
+ "@microsoft/api-extractor": "7.18.11",
84
+ "autorest": "latest",
85
+ "@types/node": "^12.0.0",
86
+ "dotenv": "^8.2.0",
87
+ "eslint": "^7.15.0",
88
+ "mkdirp": "^1.0.4",
89
+ "prettier": "2.2.1",
90
+ "rimraf": "^3.0.0",
91
+ "source-map-support": "^0.5.9",
92
+ "typedoc": "0.15.2",
93
+ "typescript": "~4.2.0",
94
+ "@azure/dev-tool": "^1.0.0",
95
+ "@azure/eslint-plugin-azure-sdk": "^3.0.0",
96
+ "@azure-tools/test-credential": "^1.0.0",
97
+ "@azure/identity": "^2.0.1",
98
+ "@azure-tools/test-recorder": "^2.0.0",
99
+ "mocha": "^7.1.1",
100
+ "mocha-junit-reporter": "^1.18.0",
101
+ "cross-env": "^7.0.2",
102
+ "@types/chai": "^4.2.8",
103
+ "chai": "^4.2.0",
104
+ "karma-chrome-launcher": "^3.0.0",
105
+ "karma-coverage": "^2.0.0",
106
+ "karma-edge-launcher": "^0.4.2",
107
+ "karma-env-preprocessor": "^0.1.1",
108
+ "karma-firefox-launcher": "^1.1.0",
109
+ "karma-ie-launcher": "^1.0.0",
110
+ "karma-junit-reporter": "^2.0.1",
111
+ "karma-mocha-reporter": "^2.2.5",
112
+ "karma-mocha": "^2.0.1",
113
+ "karma-source-map-support": "~1.4.0",
114
+ "karma-sourcemap-loader": "^0.3.8",
115
+ "karma": "^6.2.0",
116
+ "nyc": "^14.0.0"
117
+ },
118
+ "browser": {
119
+ "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js"
120
+ },
121
+ "//sampleConfiguration": {
122
+ "productName": "Azure App Service rest",
123
+ "productSlugs": [
124
+ "azure"
125
+ ],
126
+ "disableDocsMs": true,
127
+ "apiRefLink": "https://docs.microsoft.com/rest/api/appservice"
128
+ }
129
+ }