@azure-rest/arm-servicefabric 1.0.0-alpha.20250214.1 → 1.0.0-alpha.20250219.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/CHANGELOG.md +21 -0
- package/README.md +26 -16
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/package.json +15 -13
- package/review/arm-servicefabric.api.md +2067 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Release History
|
|
2
|
+
|
|
3
|
+
## 1.0.0-beta.3 (Unreleased)
|
|
4
|
+
|
|
5
|
+
### Features Added
|
|
6
|
+
|
|
7
|
+
### Breaking Changes
|
|
8
|
+
|
|
9
|
+
### Bugs Fixed
|
|
10
|
+
|
|
11
|
+
### Other Changes
|
|
12
|
+
|
|
13
|
+
## 1.0.0-beta.2 (2025-02-10)
|
|
14
|
+
|
|
15
|
+
### Features Added
|
|
16
|
+
|
|
17
|
+
- Refresh sdk with latest codegen
|
|
18
|
+
|
|
19
|
+
## 1.0.0-beta.1 (2022-07-15)
|
|
20
|
+
|
|
21
|
+
- First release of package, see README.md for details.
|
package/README.md
CHANGED
|
@@ -50,24 +50,34 @@ The following section shows you how to initialize and authenticate your client,
|
|
|
50
50
|
|
|
51
51
|
### List All Clusters
|
|
52
52
|
|
|
53
|
-
```
|
|
54
|
-
import ServiceFabricManagementClient from "@azure-rest/arm-servicefabric";
|
|
53
|
+
```ts snippet:ReadmeSampleListAllClusters
|
|
55
54
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
55
|
+
import ServiceFabricManagementClient, {
|
|
56
|
+
isUnexpected,
|
|
57
|
+
paginate,
|
|
58
|
+
} from "@azure-rest/arm-servicefabric";
|
|
59
|
+
|
|
60
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
61
|
+
const credential = new DefaultAzureCredential();
|
|
62
|
+
const client = ServiceFabricManagementClient(credential);
|
|
63
|
+
|
|
64
|
+
const result = await client
|
|
65
|
+
.path(
|
|
66
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/clusters",
|
|
67
|
+
subscriptionId,
|
|
68
|
+
)
|
|
69
|
+
.get();
|
|
70
|
+
|
|
71
|
+
if (isUnexpected(result)) {
|
|
72
|
+
throw result.body.error;
|
|
68
73
|
}
|
|
69
74
|
|
|
70
|
-
|
|
75
|
+
const clusters = paginate(client, result);
|
|
76
|
+
for await (const cluster of clusters) {
|
|
77
|
+
console.log(`Cluster name: ${cluster.name}`);
|
|
78
|
+
console.log(`Cluster id: ${cluster.id}`);
|
|
79
|
+
console.log(`Cluster type: ${cluster.type}`);
|
|
80
|
+
}
|
|
71
81
|
```
|
|
72
82
|
|
|
73
83
|
## Troubleshooting
|
|
@@ -76,7 +86,7 @@ listClusters().catch(console.error);
|
|
|
76
86
|
|
|
77
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`:
|
|
78
88
|
|
|
79
|
-
```
|
|
89
|
+
```ts snippet:SetLogLevel
|
|
80
90
|
import { setLogLevel } from "@azure/logger";
|
|
81
91
|
|
|
82
92
|
setLogLevel("info");
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@azure-rest/arm-servicefabric",
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
|
-
"version": "1.0.0-alpha.
|
|
5
|
+
"version": "1.0.0-alpha.20250219.1",
|
|
6
6
|
"description": "",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"node",
|
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
"files": [
|
|
25
25
|
"dist/",
|
|
26
26
|
"README.md",
|
|
27
|
-
"LICENSE"
|
|
27
|
+
"LICENSE",
|
|
28
|
+
"review/",
|
|
29
|
+
"CHANGELOG.md"
|
|
28
30
|
],
|
|
29
31
|
"//metadata": {
|
|
30
32
|
"constantPaths": [
|
|
@@ -62,19 +64,19 @@
|
|
|
62
64
|
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
63
65
|
"unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
|
|
64
66
|
"unit-test:node": "dev-tool run test:vitest",
|
|
65
|
-
"update-snippets": "
|
|
67
|
+
"update-snippets": "dev-tool run update-snippets"
|
|
66
68
|
},
|
|
67
69
|
"sideEffects": false,
|
|
68
70
|
"autoPublish": false,
|
|
69
71
|
"dependencies": {
|
|
70
72
|
"@azure-rest/core-client": "^1.0.0",
|
|
71
73
|
"@azure/abort-controller": "^2.1.2",
|
|
72
|
-
"@azure/core-auth": "^1.
|
|
74
|
+
"@azure/core-auth": "^1.9.0",
|
|
73
75
|
"@azure/core-lro": "^3.1.0",
|
|
74
|
-
"@azure/core-paging": "^1.2
|
|
75
|
-
"@azure/core-rest-pipeline": "^1.
|
|
76
|
-
"@azure/logger": "^1.
|
|
77
|
-
"tslib": "^2.
|
|
76
|
+
"@azure/core-paging": "^1.6.2",
|
|
77
|
+
"@azure/core-rest-pipeline": "^1.19.0",
|
|
78
|
+
"@azure/logger": "^1.1.4",
|
|
79
|
+
"tslib": "^2.8.1"
|
|
78
80
|
},
|
|
79
81
|
"devDependencies": {
|
|
80
82
|
"@azure-tools/test-credential": "^2.0.0",
|
|
@@ -82,16 +84,16 @@
|
|
|
82
84
|
"@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
|
|
83
85
|
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
|
|
84
86
|
"@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
|
|
85
|
-
"@azure/identity": "^4.0
|
|
87
|
+
"@azure/identity": "^4.7.0",
|
|
86
88
|
"@types/node": "^18.0.0",
|
|
87
|
-
"@vitest/browser": "^3.0.
|
|
88
|
-
"@vitest/coverage-istanbul": "^3.0.
|
|
89
|
+
"@vitest/browser": "^3.0.5",
|
|
90
|
+
"@vitest/coverage-istanbul": "^3.0.5",
|
|
89
91
|
"autorest": "latest",
|
|
90
92
|
"dotenv": "^16.0.0",
|
|
91
93
|
"eslint": "^9.9.0",
|
|
92
|
-
"playwright": "^1.
|
|
94
|
+
"playwright": "^1.50.1",
|
|
93
95
|
"typescript": "~5.7.2",
|
|
94
|
-
"vitest": "^3.0.
|
|
96
|
+
"vitest": "^3.0.5"
|
|
95
97
|
},
|
|
96
98
|
"browser": "./dist/browser/index.js",
|
|
97
99
|
"//sampleConfiguration": {
|