@autorest/java 4.1.20 → 4.1.22
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/androidgen/target/azure-autorest-androidgen-jar-with-dependencies.jar +0 -0
- package/fluentgen/target/azure-autorest-fluentgen-jar-with-dependencies.jar +0 -0
- package/fluentnamer/readme.md +2 -0
- package/fluentnamer/target/azure-autorest-fluentnamer-jar-with-dependencies.jar +0 -0
- package/javagen/target/azure-autorest-javagen-jar-with-dependencies.jar +0 -0
- package/package.json +1 -1
- package/postprocessor/target/azure-autorest-postprocessor-jar-with-dependencies.jar +0 -0
- package/preprocessor/data-plane.md +1 -0
- package/preprocessor/target/azure-autorest-preprocessor-jar-with-dependencies.jar +0 -0
- package/readme.md +4 -3
- package/typespec-extension/package.json +16 -16
- package/typespec-tests/package.json +11 -11
|
Binary file
|
|
Binary file
|
package/fluentnamer/readme.md
CHANGED
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
package/readme.md
CHANGED
|
@@ -71,7 +71,7 @@ Settings can be provided on the command line through `--name:value` or in a READ
|
|
|
71
71
|
|`--generate-client-as-impl`|Append "Impl" to the names of service clients and method groups and place them in the `implementation` sub-package. Default is false.|
|
|
72
72
|
|`--generate-client-interfaces`|Implies `--generate-client-as-impl` and generates interfaces for all the "Impl"s. Default is false.|
|
|
73
73
|
|`--generate-sync-async-clients`|Implies `--generate-client-as-impl` and generates sync and async convenience layer clients for all the "Impl"s. Default is false.|
|
|
74
|
-
|`--generate-builder-per-client`|
|
|
74
|
+
|`--generate-builder-per-client`|Requires `--generate-sync-async-clients`, and generates one ClientBuilder for each Client. Default is false.|
|
|
75
75
|
|`--implementation-subpackage=STRING`|The sub-package that the Service client and Method Group client implementation classes will be put into. Default is `implementation`.|
|
|
76
76
|
|`--models-subpackage=STRING`|The sub-package that Enums, Exceptions, and Model types will be put into. Default is `models`.|
|
|
77
77
|
|`--sync-methods=all\|essential\|none`|Specifies mode for generating sync wrappers. Supported value are <br> `essential` - generates only one sync returning body or header (default) <br> `all` - generates one sync method for each async method<br> `none` - does not generate any sync methods|
|
|
@@ -81,7 +81,7 @@ Settings can be provided on the command line through `--name:value` or in a READ
|
|
|
81
81
|
|`--client-type-prefix=STRING`|The prefix that will be added to each generated client type.|
|
|
82
82
|
|`--service-interface-as-public`|Indicates whether to generate service interfaces as public. This resolves `SecurityManager` issues to prevent reflectively access non-public APIs. Default is true.|
|
|
83
83
|
|`--require-x-ms-flattened-to-flatten`|Indicates whether `x-ms-flattened` is required to annotated a class with `@JsonFlatten` if the discriminator has `.` in its name. Default is false.|
|
|
84
|
-
|`--client-flattened-annotation-target=TYPE,FIELD,NONE`|Indicates the target of `@JsonFlatten` annotation for `x-ms-client-flatten`. Default is `TYPE`. If value is `FIELD`, it implies `require-x-ms-flattened-to-flatten=true`.|
|
|
84
|
+
|`--client-flattened-annotation-target=TYPE,FIELD,NONE,DISABLED`|Indicates the target of `@JsonFlatten` annotation for `x-ms-client-flatten`. Default is `TYPE`. If value is `FIELD`, it implies `require-x-ms-flattened-to-flatten=true`.|
|
|
85
85
|
|`--disable-client-builder`|Indicates whether to disable generating the `ClientBuilder` class. This is for SDK that already contains a hand-written `ClientBuilder` class. Default is false.|
|
|
86
86
|
|`--skip-formatting`|Indicates whether to skip formatting Java file. Default is false.|
|
|
87
87
|
|`--polling`|Configures how to generate long running operations. See [Polling Configuration](#polling-configuration) to see more details on how to use this flag.|
|
|
@@ -98,6 +98,7 @@ Settings can be provided on the command line through `--name:value` or in a READ
|
|
|
98
98
|
|`--use-input-stream-for-binary`|Indicates that `InputStream` is used for binary response body. By default, `BinaryData` is used.|
|
|
99
99
|
|`--enable-page-size`|Indicates that `maxpagesize` query parameter be supplied via `byPage` API in `PagedFlux` or `PagedIterable`, instead of via client method parameter.|
|
|
100
100
|
|`--use-key-credential`|Indicates that builder uses `KeyCredential` for API key.|
|
|
101
|
+
|`--graal-vm-config`|Generates GraalVM config under `resources/META-INF/native-image`.|
|
|
101
102
|
|
|
102
103
|
## Settings for minimal data-plane clients
|
|
103
104
|
|
|
@@ -377,7 +378,7 @@ help-content:
|
|
|
377
378
|
description: The prefix that will be added to each generated client type.
|
|
378
379
|
- key: client-flattened-annotation-target
|
|
379
380
|
type: string
|
|
380
|
-
description: \[TYPE,FIELD] Indicates the target of `@JsonFlatten` annotation for `x-ms-client-flatten`. Default is `TYPE`. If value is `FIELD`, it implies `require-x-ms-flattened-to-flatten=true`.
|
|
381
|
+
description: \[TYPE,FIELD,NONE,DISABLED] Indicates the target of `@JsonFlatten` annotation for `x-ms-client-flatten`. Default is `TYPE`. If value is `FIELD`, it implies `require-x-ms-flattened-to-flatten=true`.
|
|
381
382
|
- key: disable-client-builder
|
|
382
383
|
type: bool
|
|
383
384
|
description: Indicates whether to disable generating the `ClientBuilder` class. This is for SDK that already contains a hand-written `ClientBuilder` class. Default is false.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-java",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"TypeSpec"
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"target/azure-typespec-extension-jar-with-dependencies.jar"
|
|
46
46
|
],
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@typespec/compiler": ">=0.
|
|
49
|
-
"@typespec/rest": ">=0.
|
|
50
|
-
"@typespec/openapi": ">=0.
|
|
51
|
-
"@typespec/versioning": ">=0.
|
|
52
|
-
"@azure-tools/typespec-azure-core": ">=0.
|
|
53
|
-
"@azure-tools/typespec-client-generator-core": ">=0.
|
|
48
|
+
"@typespec/compiler": ">=0.49.0 <1.0.0",
|
|
49
|
+
"@typespec/rest": ">=0.49.0 <1.0.0",
|
|
50
|
+
"@typespec/openapi": ">=0.49.0 <1.0.0",
|
|
51
|
+
"@typespec/versioning": ">=0.49.0 <1.0.0",
|
|
52
|
+
"@azure-tools/typespec-azure-core": ">=0.35.0 <1.0.0",
|
|
53
|
+
"@azure-tools/typespec-client-generator-core": ">=0.35.0 <1.0.0"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@autorest/codemodel": "~4.19.3",
|
|
@@ -58,18 +58,18 @@
|
|
|
58
58
|
"js-yaml": "~4.1.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@types/lodash": "~4.14.
|
|
62
|
-
"@types/js-yaml": "~4.0.
|
|
63
|
-
"@types/mocha": "~10.0.
|
|
64
|
-
"@types/node": "~20.
|
|
61
|
+
"@types/lodash": "~4.14.199",
|
|
62
|
+
"@types/js-yaml": "~4.0.7",
|
|
63
|
+
"@types/mocha": "~10.0.2",
|
|
64
|
+
"@types/node": "~20.8.4",
|
|
65
65
|
"@types/prettier": "~2.7.3",
|
|
66
66
|
"c8": "~8.0.1",
|
|
67
|
-
"eslint": "~8.
|
|
67
|
+
"eslint": "~8.51.0",
|
|
68
68
|
"mocha": "~10.2.0",
|
|
69
|
-
"rimraf": "~5.0.
|
|
69
|
+
"rimraf": "~5.0.5",
|
|
70
70
|
"typescript": "~5.2.2",
|
|
71
|
-
"@typescript-eslint/parser": "~6.7.
|
|
72
|
-
"@typescript-eslint/eslint-plugin": "~6.7.
|
|
73
|
-
"eslint-plugin-deprecation": "~
|
|
71
|
+
"@typescript-eslint/parser": "~6.7.5",
|
|
72
|
+
"@typescript-eslint/eslint-plugin": "~6.7.5",
|
|
73
|
+
"eslint-plugin-deprecation": "~2.0.0"
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -9,23 +9,23 @@
|
|
|
9
9
|
"testserver-run": "npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http --coverageFile ./cadl-ranch-coverage-java.json"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@typespec/openapi": ">=0.
|
|
13
|
-
"@azure-tools/typespec-autorest": ">=0.
|
|
14
|
-
"@azure-tools/cadl-ranch-specs": "0.
|
|
15
|
-
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.
|
|
12
|
+
"@typespec/openapi": ">=0.49.0 <1.0.0",
|
|
13
|
+
"@azure-tools/typespec-autorest": ">=0.35.0 <1.0.0",
|
|
14
|
+
"@azure-tools/cadl-ranch-specs": "0.24.0",
|
|
15
|
+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.10.0.tgz"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@typespec/prettier-plugin-typespec": "~0.
|
|
18
|
+
"@typespec/prettier-plugin-typespec": "~0.49.0",
|
|
19
19
|
"prettier-plugin-organize-imports": "3.2.3",
|
|
20
20
|
"prettier": "~3.0.3"
|
|
21
21
|
},
|
|
22
22
|
"overrides": {
|
|
23
|
-
"@typespec/compiler": ">=0.
|
|
24
|
-
"@typespec/http": ">=0.
|
|
25
|
-
"@typespec/rest": ">=0.
|
|
26
|
-
"@typespec/versioning": ">=0.
|
|
27
|
-
"@azure-tools/typespec-azure-core": ">=0.
|
|
28
|
-
"@azure-tools/typespec-client-generator-core": ">=0.
|
|
23
|
+
"@typespec/compiler": ">=0.49.0 <1.0.0",
|
|
24
|
+
"@typespec/http": ">=0.49.0 <1.0.0",
|
|
25
|
+
"@typespec/rest": ">=0.49.0 <1.0.0",
|
|
26
|
+
"@typespec/versioning": ">=0.49.0 <1.0.0",
|
|
27
|
+
"@azure-tools/typespec-azure-core": ">=0.35.0 <1.0.0",
|
|
28
|
+
"@azure-tools/typespec-client-generator-core": ">=0.35.0 <1.0.0"
|
|
29
29
|
},
|
|
30
30
|
"private": true
|
|
31
31
|
}
|