@azure-typespec/http-client-csharp-mgmt 1.0.0-alpha.20260416.2 → 1.0.0-alpha.20260418.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 +34 -5
- package/dist/generator/Azure.Generator.Management.deps.json +2 -2
- package/dist/generator/Azure.Generator.Management.dll +0 -0
- package/dist/generator/Azure.Generator.Management.pdb +0 -0
- package/dist/generator/net10.0/Azure.Generator.Management.deps.json +2 -2
- package/dist/generator/net10.0/Azure.Generator.Management.dll +0 -0
- package/dist/generator/net10.0/Azure.Generator.Management.pdb +0 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ TypeSpec library for emitting Azure management libraries for C#.
|
|
|
8
8
|
npm install @azure-typespec/http-client-csharp-mgmt
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Emitter usage
|
|
12
12
|
|
|
13
13
|
1. Via the command line
|
|
14
14
|
|
|
@@ -35,6 +35,13 @@ options:
|
|
|
35
35
|
|
|
36
36
|
## Emitter options
|
|
37
37
|
|
|
38
|
+
### `emitter-output-dir`
|
|
39
|
+
|
|
40
|
+
**Type:** `absolutePath`
|
|
41
|
+
|
|
42
|
+
Defines the emitter output directory. Defaults to `{output-dir}/@azure-typespec/http-client-csharp-mgmt`
|
|
43
|
+
See [Configuring output directory for more info](https://typespec.io/docs/handbook/configuration/configuration/#configuring-output-directory)
|
|
44
|
+
|
|
38
45
|
### `api-version`
|
|
39
46
|
|
|
40
47
|
**Type:** `string`
|
|
@@ -45,10 +52,14 @@ For TypeSpec files using the [`@versioned`](https://typespec.io/docs/libraries/v
|
|
|
45
52
|
|
|
46
53
|
**Type:** `boolean`
|
|
47
54
|
|
|
55
|
+
Set to `false` to skip generation of protocol methods. The default value is `true`.
|
|
56
|
+
|
|
48
57
|
### `generate-convenience-methods`
|
|
49
58
|
|
|
50
59
|
**Type:** `boolean`
|
|
51
60
|
|
|
61
|
+
Set to `false` to skip generation of convenience methods. The default value is `true`.
|
|
62
|
+
|
|
52
63
|
### `unreferenced-types-handling`
|
|
53
64
|
|
|
54
65
|
**Type:** `"removeOrInternalize" | "internalize" | "keepAll"`
|
|
@@ -83,7 +94,7 @@ Set to `true` to automatically attempt to attach to a debugger when executing th
|
|
|
83
94
|
|
|
84
95
|
**Type:** `"info" | "debug" | "verbose"`
|
|
85
96
|
|
|
86
|
-
Set the log level. The default value is `info`.
|
|
97
|
+
Set the log level for which to collect traces. The default value is `info`.
|
|
87
98
|
|
|
88
99
|
### `disable-xml-docs`
|
|
89
100
|
|
|
@@ -103,11 +114,11 @@ The name of the generator. By default this is set to `ScmCodeModelGenerator`. Ge
|
|
|
103
114
|
|
|
104
115
|
Allows emitter authors to specify the path to a custom emitter package, allowing you to extend the emitter behavior. This should be set to `import.meta.url` if you are using a custom emitter.
|
|
105
116
|
|
|
106
|
-
### `
|
|
117
|
+
### `plugins`
|
|
107
118
|
|
|
108
|
-
**Type:** `
|
|
119
|
+
**Type:** `array`
|
|
109
120
|
|
|
110
|
-
|
|
121
|
+
Paths to generator plugin assemblies (DLLs) or directories containing plugin assemblies. Each plugin must contain a class that extends GeneratorPlugin.
|
|
111
122
|
|
|
112
123
|
### `license`
|
|
113
124
|
|
|
@@ -132,3 +143,21 @@ The C# namespace to use for the generated code. This will override the TypeSpec
|
|
|
132
143
|
**Type:** `boolean`
|
|
133
144
|
|
|
134
145
|
Whether to put models under a separate 'Models' sub-namespace. This only applies if the 'namespace' option is set. The default value is 'false'.
|
|
146
|
+
|
|
147
|
+
### `enable-wire-path-attribute`
|
|
148
|
+
|
|
149
|
+
**Type:** `boolean`
|
|
150
|
+
|
|
151
|
+
Whether to enable the WirePathAttribute on model properties. The default value is 'false'.
|
|
152
|
+
|
|
153
|
+
### `use-legacy-resource-detection`
|
|
154
|
+
|
|
155
|
+
**Type:** `boolean`
|
|
156
|
+
|
|
157
|
+
Whether to use the legacy custom resource detection logic instead of the standardized resolveArmResources API from @azure-tools/typespec-azure-resource-manager. When true, uses the legacy logic. When false, uses the resolveArmResources API.
|
|
158
|
+
|
|
159
|
+
### `skip-api-version-override`
|
|
160
|
+
|
|
161
|
+
**Type:** `boolean`
|
|
162
|
+
|
|
163
|
+
Temporary workaround: Whether to pass skipApiVersionOverride: true when instantiating ArmOperation types in generated LRO methods. When true, the LRO polling will not override the api-version from the initial request URI. This option will be removed once the api-version override issue is properly resolved in Azure.Core. The default value is 'false'.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"compilationOptions": {},
|
|
7
7
|
"targets": {
|
|
8
8
|
".NETCoreApp,Version=v10.0": {
|
|
9
|
-
"Azure.Generator.Management/1.0.0-alpha.
|
|
9
|
+
"Azure.Generator.Management/1.0.0-alpha.20260418.1": {
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"Azure.Core": "1.53.0",
|
|
12
12
|
"Azure.Generator": "1.0.0-alpha.20260408.3",
|
|
@@ -729,7 +729,7 @@
|
|
|
729
729
|
}
|
|
730
730
|
},
|
|
731
731
|
"libraries": {
|
|
732
|
-
"Azure.Generator.Management/1.0.0-alpha.
|
|
732
|
+
"Azure.Generator.Management/1.0.0-alpha.20260418.1": {
|
|
733
733
|
"type": "project",
|
|
734
734
|
"serviceable": false,
|
|
735
735
|
"sha512": ""
|
|
Binary file
|
|
Binary file
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"compilationOptions": {},
|
|
7
7
|
"targets": {
|
|
8
8
|
".NETCoreApp,Version=v10.0": {
|
|
9
|
-
"Azure.Generator.Management/1.0.0-alpha.
|
|
9
|
+
"Azure.Generator.Management/1.0.0-alpha.20260418.1": {
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"Azure.Core": "1.53.0",
|
|
12
12
|
"Azure.Generator": "1.0.0-alpha.20260408.3",
|
|
@@ -729,7 +729,7 @@
|
|
|
729
729
|
}
|
|
730
730
|
},
|
|
731
731
|
"libraries": {
|
|
732
|
-
"Azure.Generator.Management/1.0.0-alpha.
|
|
732
|
+
"Azure.Generator.Management/1.0.0-alpha.20260418.1": {
|
|
733
733
|
"type": "project",
|
|
734
734
|
"serviceable": false,
|
|
735
735
|
"sha512": ""
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-typespec/http-client-csharp-mgmt",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.20260418.1",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec library for emitting Azure management libraries for C#.",
|
|
6
6
|
"readme": "https://github.com/Azure/azure-sdk-for-net/blob/main/eng/packages/http-client-csharp-mgmt/README.md",
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
"lint:fix": "eslint . --fix",
|
|
32
32
|
"prettier:fix": "prettier --write --config .prettierrc.json ./**/*.ts package.json",
|
|
33
33
|
"prettier": "prettier --check --config .prettierrc.json ./**/*.ts package.json",
|
|
34
|
-
"regen-docs": "npm run build:emitter &&
|
|
34
|
+
"regen-docs": "npm run build:emitter && npm run regen-docs:only",
|
|
35
|
+
"regen-docs:only": "tspd doc . --enable-experimental --skip-js"
|
|
35
36
|
},
|
|
36
37
|
"files": [
|
|
37
38
|
"dist/**"
|