@azure/arm-connectedvmware 1.0.0-alpha.20250409.1 → 1.0.0-alpha.20250417.2
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 +12 -11
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -51,25 +51,25 @@ For more information about how to create an Azure AD Application check out [this
|
|
|
51
51
|
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
|
|
52
52
|
|
|
53
53
|
```ts snippet:ReadmeSampleCreateClient_Node
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
|
|
54
|
+
import { AzureArcVMwareManagementServiceAPI } from "@azure/arm-connectedvmware";
|
|
55
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
57
56
|
|
|
58
57
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
59
58
|
const client = new AzureArcVMwareManagementServiceAPI(new DefaultAzureCredential(), subscriptionId);
|
|
60
|
-
|
|
61
|
-
// For client-side applications running in the browser, use this code instead:
|
|
62
|
-
// const credential = new InteractiveBrowserCredential({
|
|
63
|
-
// tenantId: "<YOUR_TENANT_ID>",
|
|
64
|
-
// clientId: "<YOUR_CLIENT_ID>"
|
|
65
|
-
// });
|
|
66
|
-
// const client = new AzureArcVMwareManagementServiceAPI(credential, subscriptionId);
|
|
67
59
|
```
|
|
68
60
|
|
|
69
61
|
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
|
|
70
62
|
|
|
71
63
|
```ts snippet:ReadmeSampleCreateClient_Browser
|
|
64
|
+
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
65
|
+
import { AzureArcVMwareManagementServiceAPI } from "@azure/arm-connectedvmware";
|
|
72
66
|
|
|
67
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
68
|
+
const credential = new InteractiveBrowserCredential({
|
|
69
|
+
tenantId: "<YOUR_TENANT_ID>",
|
|
70
|
+
clientId: "<YOUR_CLIENT_ID>",
|
|
71
|
+
});
|
|
72
|
+
const client = new AzureArcVMwareManagementServiceAPI(credential, subscriptionId);
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
### JavaScript Bundle
|
|
@@ -89,7 +89,8 @@ To use this client library in the browser, first you need to use a bundler. For
|
|
|
89
89
|
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`:
|
|
90
90
|
|
|
91
91
|
```ts snippet:SetLogLevel
|
|
92
|
-
|
|
92
|
+
import { setLogLevel } from "@azure/logger";
|
|
93
|
+
|
|
93
94
|
setLogLevel("info");
|
|
94
95
|
```
|
|
95
96
|
|
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 AzureArcVMwareManagementServiceAPI.",
|
|
6
|
-
"version": "1.0.0-alpha.
|
|
6
|
+
"version": "1.0.0-alpha.20250417.2",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=18.0.0"
|
|
9
9
|
},
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"integration-test:browser": "echo skipped",
|
|
70
70
|
"integration-test:node": "dev-tool run test:vitest --esm",
|
|
71
71
|
"lint": "echo skipped",
|
|
72
|
-
"minify": "
|
|
72
|
+
"minify": "echo skipped",
|
|
73
73
|
"pack": "npm pack 2>&1",
|
|
74
74
|
"prepack": "npm run build",
|
|
75
75
|
"test": "npm run integration-test",
|