@azure/arm-standbypool 1.0.2-alpha.20250218.1 → 1.0.2-alpha.20250220.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.
- package/README.md +21 -12
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/package.json +23 -20
package/README.md
CHANGED
|
@@ -46,20 +46,28 @@ Set the values of the client ID, tenant ID, and client secret of the AAD applica
|
|
|
46
46
|
|
|
47
47
|
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
|
|
50
|
+
|
|
51
|
+
```ts snippet:ReadmeSampleCreateClient_Node
|
|
52
|
+
import { StandbyPoolManagementClient } from "@azure/arm-standbypool";
|
|
53
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
53
54
|
|
|
54
55
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
55
56
|
const client = new StandbyPoolManagementClient(new DefaultAzureCredential(), subscriptionId);
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
|
|
56
60
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
```ts snippet:ReadmeSampleCreateClient_Browser
|
|
62
|
+
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
63
|
+
import { StandbyPoolManagementClient } from "@azure/arm-standbypool";
|
|
64
|
+
|
|
65
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
66
|
+
const credential = new InteractiveBrowserCredential({
|
|
67
|
+
tenantId: "<YOUR_TENANT_ID>",
|
|
68
|
+
clientId: "<YOUR_CLIENT_ID>",
|
|
69
|
+
});
|
|
70
|
+
const client = new StandbyPoolManagementClient(credential, subscriptionId);
|
|
63
71
|
```
|
|
64
72
|
|
|
65
73
|
### JavaScript Bundle
|
|
@@ -78,8 +86,9 @@ To use this client library in the browser, first you need to use a bundler. For
|
|
|
78
86
|
|
|
79
87
|
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
|
|
80
88
|
|
|
81
|
-
```
|
|
82
|
-
|
|
89
|
+
```ts snippet:SetLogLevel
|
|
90
|
+
import { setLogLevel } from "@azure/logger";
|
|
91
|
+
|
|
83
92
|
setLogLevel("info");
|
|
84
93
|
```
|
|
85
94
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/arm-standbypool",
|
|
3
|
-
"version": "1.0.2-alpha.
|
|
3
|
+
"version": "1.0.2-alpha.20250220.1",
|
|
4
4
|
"description": "A generated SDK for StandbyPoolClient.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"autoPublish": false,
|
|
10
10
|
"tshy": {
|
|
11
|
+
"project": "./tsconfig.src.json",
|
|
11
12
|
"exports": {
|
|
12
13
|
"./package.json": "./package.json",
|
|
13
14
|
".": "./src/index.ts",
|
|
@@ -21,8 +22,7 @@
|
|
|
21
22
|
"browser",
|
|
22
23
|
"react-native"
|
|
23
24
|
],
|
|
24
|
-
"selfLink": false
|
|
25
|
-
"project": "./tsconfig.src.json"
|
|
25
|
+
"selfLink": false
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
28
28
|
"keywords": [
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"author": "Microsoft Corporation",
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"files": [
|
|
39
|
-
"dist",
|
|
39
|
+
"dist/",
|
|
40
40
|
"README.md",
|
|
41
41
|
"LICENSE",
|
|
42
|
-
"review
|
|
42
|
+
"review/",
|
|
43
43
|
"CHANGELOG.md"
|
|
44
44
|
],
|
|
45
45
|
"sdk-type": "mgmt",
|
|
@@ -59,28 +59,29 @@
|
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@azure-rest/core-client": "^2.1.0",
|
|
61
61
|
"@azure/abort-controller": "^2.1.2",
|
|
62
|
-
"@azure/core-auth": "^1.
|
|
62
|
+
"@azure/core-auth": "^1.9.0",
|
|
63
63
|
"@azure/core-lro": "^3.0.0",
|
|
64
|
-
"@azure/core-rest-pipeline": "^1.
|
|
65
|
-
"@azure/core-util": "^1.
|
|
66
|
-
"@azure/logger": "^1.
|
|
67
|
-
"tslib": "^2.
|
|
64
|
+
"@azure/core-rest-pipeline": "^1.19.0",
|
|
65
|
+
"@azure/core-util": "^1.11.0",
|
|
66
|
+
"@azure/logger": "^1.1.4",
|
|
67
|
+
"tslib": "^2.8.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@azure-tools/test-credential": "^2.0.0",
|
|
71
|
-
"@azure-tools/test-recorder": "
|
|
71
|
+
"@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
|
|
72
|
+
"@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
|
|
72
73
|
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
|
|
73
74
|
"@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
|
|
74
|
-
"@azure/identity": "^4.
|
|
75
|
+
"@azure/identity": "^4.7.0",
|
|
75
76
|
"@types/node": "^18.0.0",
|
|
76
|
-
"@vitest/browser": "^3.0.
|
|
77
|
-
"@vitest/coverage-istanbul": "^3.0.
|
|
77
|
+
"@vitest/browser": "^3.0.5",
|
|
78
|
+
"@vitest/coverage-istanbul": "^3.0.5",
|
|
78
79
|
"dotenv": "^16.0.0",
|
|
79
80
|
"eslint": "^9.9.0",
|
|
80
|
-
"playwright": "^1.
|
|
81
|
+
"playwright": "^1.50.1",
|
|
81
82
|
"prettier": "^3.2.5",
|
|
82
83
|
"typescript": "~5.7.2",
|
|
83
|
-
"vitest": "^3.0.
|
|
84
|
+
"vitest": "^3.0.5"
|
|
84
85
|
},
|
|
85
86
|
"scripts": {
|
|
86
87
|
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
|
|
@@ -94,7 +95,7 @@
|
|
|
94
95
|
"generate:client": "echo skipped",
|
|
95
96
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
96
97
|
"integration-test:browser": "echo skipped",
|
|
97
|
-
"integration-test:node": "
|
|
98
|
+
"integration-test:node": "dev-tool run test:vitest --esm",
|
|
98
99
|
"lint": "echo skipped",
|
|
99
100
|
"lint:fix": "echo skipped",
|
|
100
101
|
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
@@ -103,9 +104,9 @@
|
|
|
103
104
|
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
|
|
104
105
|
"test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node",
|
|
105
106
|
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
106
|
-
"unit-test:browser": "
|
|
107
|
+
"unit-test:browser": "echo skipped",
|
|
107
108
|
"unit-test:node": "dev-tool run test:vitest",
|
|
108
|
-
"update-snippets": "
|
|
109
|
+
"update-snippets": "dev-tool run update-snippets"
|
|
109
110
|
},
|
|
110
111
|
"//sampleConfiguration": {
|
|
111
112
|
"productName": "@azure/arm-standbypool",
|
|
@@ -156,5 +157,7 @@
|
|
|
156
157
|
},
|
|
157
158
|
"main": "./dist/commonjs/index.js",
|
|
158
159
|
"types": "./dist/commonjs/index.d.ts",
|
|
159
|
-
"module": "./dist/esm/index.js"
|
|
160
|
+
"module": "./dist/esm/index.js",
|
|
161
|
+
"browser": "./dist/browser/index.js",
|
|
162
|
+
"react-native": "./dist/react-native/index.js"
|
|
160
163
|
}
|