@azure/arm-elasticsan 1.2.0-alpha.20250131.1 → 1.2.0-alpha.20250204.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
- The MIT License (MIT)
1
+ Copyright (c) Microsoft Corporation.
2
2
 
3
- Copyright (c) 2024 Microsoft
3
+ MIT License
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -12,10 +12,10 @@ furnished to do so, subject to the following conditions:
12
12
  The above copyright notice and this permission notice shall be included in all
13
13
  copies or substantial portions of the Software.
14
14
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
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
- ```javascript
50
- const { ElasticSanManagement } = require("@azure/arm-elasticsan");
51
- const { DefaultAzureCredential } = require("@azure/identity");
52
- // For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
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 { ElasticSanManagement } from "@azure/arm-elasticsan";
53
+ import { DefaultAzureCredential } from "@azure/identity";
53
54
 
54
55
  const subscriptionId = "00000000-0000-0000-0000-000000000000";
55
56
  const client = new ElasticSanManagement(new DefaultAzureCredential(), subscriptionId);
57
+ ```
58
+
59
+ For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
56
60
 
57
- // For client-side applications running in the browser, use this code instead:
58
- // const credential = new InteractiveBrowserCredential({
59
- // tenantId: "<YOUR_TENANT_ID>",
60
- // clientId: "<YOUR_CLIENT_ID>"
61
- // });
62
- // const client = new ElasticSanManagement(credential, subscriptionId);
61
+ ```ts snippet:ReadmeSampleCreateClient_Browser
62
+ import { InteractiveBrowserCredential } from "@azure/identity";
63
+ import { ElasticSanManagement } from "@azure/arm-elasticsan";
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 ElasticSanManagement(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
- ```javascript
82
- const { setLogLevel } = require("@azure/logger");
89
+ ```ts snippet:SetLogLevel
90
+ import { setLogLevel } from "@azure/logger";
91
+
83
92
  setLogLevel("info");
84
93
  ```
85
94
 
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.49.1"
8
+ "packageVersion": "7.49.2"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for ElasticSanManagement.",
6
- "version": "1.2.0-alpha.20250131.1",
6
+ "version": "1.2.0-alpha.20250204.1",
7
7
  "engines": {
8
8
  "node": ">=18.0.0"
9
9
  },
@@ -21,7 +21,8 @@
21
21
  "azure",
22
22
  "typescript",
23
23
  "browser",
24
- "isomorphic"
24
+ "isomorphic",
25
+ "cloud"
25
26
  ],
26
27
  "license": "MIT",
27
28
  "main": "./dist/commonjs/index.js",
@@ -33,18 +34,16 @@
33
34
  "@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
34
35
  "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
35
36
  "@azure/identity": "^4.6.0",
37
+ "@azure/logger": "^1.1.4",
36
38
  "@types/node": "^18.0.0",
37
39
  "@vitest/browser": "^3.0.3",
38
40
  "@vitest/coverage-istanbul": "^3.0.3",
39
41
  "dotenv": "^16.0.0",
40
- "playwright": "^1.50.0",
42
+ "playwright": "^1.50.1",
41
43
  "typescript": "~5.7.2",
42
44
  "vitest": "^3.0.3"
43
45
  },
44
- "repository": {
45
- "type": "git",
46
- "url": "https://github.com/Azure/azure-sdk-for-js.git"
47
- },
46
+ "repository": "github:Azure/azure-sdk-for-js",
48
47
  "bugs": {
49
48
  "url": "https://github.com/Azure/azure-sdk-for-js/issues"
50
49
  },
@@ -78,7 +77,8 @@
78
77
  "test:node": "echo skipped",
79
78
  "unit-test": "npm run unit-test:node && npm run unit-test:browser",
80
79
  "unit-test:browser": "echo skipped",
81
- "unit-test:node": "dev-tool run test:vitest"
80
+ "unit-test:node": "dev-tool run test:vitest",
81
+ "update-snippets": "dev-tool run update-snippets"
82
82
  },
83
83
  "sideEffects": false,
84
84
  "//metadata": {