@autorest/java 4.1.34 → 4.1.36
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/fluentgen/target/azure-autorest-fluentgen-jar-with-dependencies.jar +0 -0
- package/javagen/target/azure-autorest-javagen-jar-with-dependencies.jar +0 -0
- package/package.json +2 -3
- package/readme.md +3 -1
- package/typespec-extension/package.json +31 -31
- package/typespec-tests/package.json +15 -14
- package/androidgen/README.md +0 -74
- package/androidgen/data-plane.md +0 -23
- package/androidgen/package.json +0 -27
- package/androidgen/target/azure-autorest-androidgen-jar-with-dependencies.jar +0 -0
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autorest/java",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.36",
|
|
4
4
|
"description": "The Java extension for classic generators in AutoRest.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"autorest": "autorest",
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
"files": [
|
|
31
31
|
"*/package.json",
|
|
32
32
|
"/readme.md",
|
|
33
|
-
"/androidgen/*.md",
|
|
34
33
|
"/fluentgen/*.md",
|
|
35
34
|
"/fluentnamer/*.md",
|
|
36
35
|
"/javagen/*.md",
|
|
@@ -40,6 +39,6 @@
|
|
|
40
39
|
],
|
|
41
40
|
"devDependencies": {
|
|
42
41
|
"autorest": "^3.7.1",
|
|
43
|
-
"@microsoft.azure/autorest.testserver": "3.3.
|
|
42
|
+
"@microsoft.azure/autorest.testserver": "3.3.50"
|
|
44
43
|
}
|
|
45
44
|
}
|
package/readme.md
CHANGED
|
@@ -51,6 +51,7 @@ To debug, add `--java.debugger` to the argument list. The JVM will suspend at th
|
|
|
51
51
|
|
|
52
52
|
- `use-default-http-status-code-to-exception-type-mapping: true`, use subclass of `HttpResponseException` defined in azure-core, when service returns unexpected status code.
|
|
53
53
|
- `generic-response-type: true`, use `ResponseBase<>`, instead a subclass of `ResponseBase<>`, for response with HTTP headers. Performance and reflective access improvement.
|
|
54
|
+
- `no-custom-headers: true`, generates overloads of interface methods that exclude typed headers. Performance improvement by removing the need to convert header strings to Java types.
|
|
54
55
|
- `required-fields-as-ctor-args`, create a constructor taking required properties, for model classes. The correctness of this constructor highly depends on the correctness of Swagger.
|
|
55
56
|
- `output-model-immutable: true`, make model classes immutable, if model is used only in response.
|
|
56
57
|
- `enable-sync-stack: true`, let sync method invoke sync RestProxy method.
|
|
@@ -88,6 +89,7 @@ Settings can be provided on the command line through `--name:value` or in a READ
|
|
|
88
89
|
|`--use-default-http-status-code-to-exception-type-mapping`|Indicates whether a default HTTP status code to exception mapping should be used if one isn't provided.|
|
|
89
90
|
|`--http-status-code-to-exception-type-mapping`|The HTTP status code to exception mapping that should be used. All exception types must be fully-qualified and extend from `HttpResponseException`.|
|
|
90
91
|
|`--generic-response-type`|Indicates that generic response types are used instead of named response types that extend the generic type.|
|
|
92
|
+
|`--no-custom-headers`|Indicates that overloads of interface methods that exclude typed headers are generated.|
|
|
91
93
|
|`--enable-sync-stack`|Indicates that sync method invokes sync RestProxy method. By default, sync method invokes async RestProxy method.|
|
|
92
94
|
|`--required-fields-as-ctor-args`|Indicates that class models have constructor taking required properties.|
|
|
93
95
|
|`--output-model-immutable`|Indicates that output-only models be generated as immutable, and without public constructor.|
|
|
@@ -323,7 +325,7 @@ use: $(this-folder)/fluentgen
|
|
|
323
325
|
```
|
|
324
326
|
|
|
325
327
|
``` yaml $(java) && $(android)
|
|
326
|
-
use: $(this-folder)/
|
|
328
|
+
use: $(this-folder)/javagen
|
|
327
329
|
```
|
|
328
330
|
|
|
329
331
|
#### Help
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-java",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"TypeSpec"
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
"target/emitter.jar"
|
|
46
46
|
],
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@azure-tools/typespec-azure-core": ">=0.
|
|
49
|
-
"@azure-tools/typespec-azure-resource-manager": ">=0.
|
|
50
|
-
"@azure-tools/typespec-autorest": ">=0.
|
|
51
|
-
"@azure-tools/typespec-azure-rulesets": ">=0.
|
|
52
|
-
"@azure-tools/typespec-client-generator-core": ">=0.
|
|
53
|
-
"@typespec/compiler": ">=0.
|
|
54
|
-
"@typespec/http": ">=0.
|
|
55
|
-
"@typespec/openapi": ">=0.
|
|
56
|
-
"@typespec/rest": ">=0.
|
|
57
|
-
"@typespec/versioning": ">=0.
|
|
58
|
-
"@typespec/xml": ">=0.
|
|
48
|
+
"@azure-tools/typespec-azure-core": ">=0.45.0 <1.0.0",
|
|
49
|
+
"@azure-tools/typespec-azure-resource-manager": ">=0.45.0 <1.0.0",
|
|
50
|
+
"@azure-tools/typespec-autorest": ">=0.45.0 <1.0.0",
|
|
51
|
+
"@azure-tools/typespec-azure-rulesets": ">=0.45.0 <1.0.0",
|
|
52
|
+
"@azure-tools/typespec-client-generator-core": ">=0.45.4 <1.0.0",
|
|
53
|
+
"@typespec/compiler": ">=0.59.0 <1.0.0",
|
|
54
|
+
"@typespec/http": ">=0.59.0 <1.0.0",
|
|
55
|
+
"@typespec/openapi": ">=0.59.0 <1.0.0",
|
|
56
|
+
"@typespec/rest": ">=0.59.0 <1.0.0",
|
|
57
|
+
"@typespec/versioning": ">=0.59.0 <1.0.0",
|
|
58
|
+
"@typespec/xml": ">=0.59.0 <1.0.0"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@autorest/codemodel": "~4.20.0",
|
|
@@ -63,29 +63,29 @@
|
|
|
63
63
|
"lodash": "~4.17.21"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@azure-tools/typespec-azure-core": "0.
|
|
67
|
-
"@azure-tools/typespec-azure-resource-manager": "0.
|
|
68
|
-
"@azure-tools/typespec-autorest": "0.
|
|
69
|
-
"@azure-tools/typespec-azure-rulesets": "0.
|
|
70
|
-
"@azure-tools/typespec-client-generator-core": "0.
|
|
66
|
+
"@azure-tools/typespec-azure-core": "0.45.0",
|
|
67
|
+
"@azure-tools/typespec-azure-resource-manager": "0.45.0",
|
|
68
|
+
"@azure-tools/typespec-autorest": "0.45.0",
|
|
69
|
+
"@azure-tools/typespec-azure-rulesets": "0.45.0",
|
|
70
|
+
"@azure-tools/typespec-client-generator-core": "0.45.4",
|
|
71
71
|
"@types/js-yaml": "~4.0.9",
|
|
72
|
-
"@types/lodash": "~4.17.
|
|
72
|
+
"@types/lodash": "~4.17.7",
|
|
73
73
|
"@types/mocha": "~10.0.7",
|
|
74
|
-
"@types/node": "~
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "~
|
|
76
|
-
"@typescript-eslint/parser": "~
|
|
77
|
-
"@typespec/compiler": "0.
|
|
78
|
-
"@typespec/http": "0.
|
|
79
|
-
"@typespec/openapi": "0.
|
|
80
|
-
"@typespec/rest": "0.
|
|
81
|
-
"@typespec/versioning": "0.
|
|
82
|
-
"@typespec/xml": "0.
|
|
74
|
+
"@types/node": "~22.5.1",
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "~8.3.0",
|
|
76
|
+
"@typescript-eslint/parser": "~8.3.0",
|
|
77
|
+
"@typespec/compiler": "0.59.1",
|
|
78
|
+
"@typespec/http": "0.59.1",
|
|
79
|
+
"@typespec/openapi": "0.59.0",
|
|
80
|
+
"@typespec/rest": "0.59.1",
|
|
81
|
+
"@typespec/versioning": "0.59.0",
|
|
82
|
+
"@typespec/xml": "0.59.0",
|
|
83
83
|
"c8": "~10.1.2",
|
|
84
84
|
"eslint": "~8.57.0",
|
|
85
85
|
"eslint-plugin-deprecation": "~3.0.0",
|
|
86
|
-
"mocha": "~10.
|
|
87
|
-
"prettier": "~3.3.
|
|
88
|
-
"rimraf": "~6.0.
|
|
89
|
-
"typescript": "~5.5.
|
|
86
|
+
"mocha": "~10.7.3",
|
|
87
|
+
"prettier": "~3.3.3",
|
|
88
|
+
"rimraf": "~6.0.1",
|
|
89
|
+
"typescript": "~5.5.4"
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -9,25 +9,26 @@
|
|
|
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
|
-
"@azure-tools/cadl-ranch-specs": "0.
|
|
13
|
-
"@azure-tools/
|
|
12
|
+
"@azure-tools/cadl-ranch-specs": "0.36.1",
|
|
13
|
+
"@azure-tools/cadl-ranch-expect": "0.15.1",
|
|
14
|
+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.20.1.tgz"
|
|
14
15
|
},
|
|
15
16
|
"devDependencies": {
|
|
16
|
-
"@typespec/prettier-plugin-typespec": "~0.
|
|
17
|
+
"@typespec/prettier-plugin-typespec": "~0.59.0",
|
|
17
18
|
"prettier-plugin-organize-imports": "4.0.0",
|
|
18
|
-
"prettier": "~3.3.
|
|
19
|
+
"prettier": "~3.3.3"
|
|
19
20
|
},
|
|
20
21
|
"overrides": {
|
|
21
|
-
"@typespec/compiler": "
|
|
22
|
-
"@typespec/http": "
|
|
23
|
-
"@typespec/rest": "
|
|
24
|
-
"@typespec/versioning": "
|
|
25
|
-
"@typespec/openapi": "
|
|
26
|
-
"@typespec/xml": "
|
|
27
|
-
"@azure-tools/typespec-azure-core": "
|
|
28
|
-
"@azure-tools/typespec-client-generator-core": "0.
|
|
29
|
-
"@azure-tools/typespec-azure-resource-manager": "
|
|
30
|
-
"@azure-tools/typespec-autorest": "
|
|
22
|
+
"@typespec/compiler": "~0.59.0",
|
|
23
|
+
"@typespec/http": "~0.59.0",
|
|
24
|
+
"@typespec/rest": "~0.59.0",
|
|
25
|
+
"@typespec/versioning": "~0.59.0",
|
|
26
|
+
"@typespec/openapi": "~0.59.0",
|
|
27
|
+
"@typespec/xml": "~0.59.0",
|
|
28
|
+
"@azure-tools/typespec-azure-core": "~0.45.0",
|
|
29
|
+
"@azure-tools/typespec-client-generator-core": "~0.45.0",
|
|
30
|
+
"@azure-tools/typespec-azure-resource-manager": "~0.45.0",
|
|
31
|
+
"@azure-tools/typespec-autorest": "~0.45.0"
|
|
31
32
|
},
|
|
32
33
|
"private": true
|
|
33
34
|
}
|
package/androidgen/README.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
#### Androidgen
|
|
2
|
-
|
|
3
|
-
``` yaml
|
|
4
|
-
pass-thru:
|
|
5
|
-
- model-deduplicator
|
|
6
|
-
- subset-reducer
|
|
7
|
-
|
|
8
|
-
use-extension:
|
|
9
|
-
"@autorest/modelerfour": "4.26.2"
|
|
10
|
-
|
|
11
|
-
pipeline:
|
|
12
|
-
|
|
13
|
-
# --- extension remodeler ---
|
|
14
|
-
|
|
15
|
-
# "Shake the tree", and normalize the model
|
|
16
|
-
modelerfour:
|
|
17
|
-
input: openapi-document/multi-api/identity # the plugin where we get inputs from
|
|
18
|
-
|
|
19
|
-
# allow developer to do transformations on the code model.
|
|
20
|
-
modelerfour/new-transform:
|
|
21
|
-
input: modelerfour
|
|
22
|
-
|
|
23
|
-
androidgen:
|
|
24
|
-
scope: android
|
|
25
|
-
input: modelerfour/identity
|
|
26
|
-
output-artifact: java-files
|
|
27
|
-
|
|
28
|
-
androidgen/emitter:
|
|
29
|
-
input: androidgen
|
|
30
|
-
scope: scope-androidgen/emitter
|
|
31
|
-
|
|
32
|
-
scope-androidgen/emitter:
|
|
33
|
-
input-artifact: java-files
|
|
34
|
-
output-uri-expr: $key
|
|
35
|
-
|
|
36
|
-
output-artifact: java-files
|
|
37
|
-
|
|
38
|
-
modelerfour:
|
|
39
|
-
seal-single-value-enum-by-default: true
|
|
40
|
-
|
|
41
|
-
skip-special-headers:
|
|
42
|
-
- Repeatability-Request-ID
|
|
43
|
-
- Repeatability-First-Sent
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
```yaml !$(data-plane)
|
|
47
|
-
modelerfour:
|
|
48
|
-
flatten-models: true
|
|
49
|
-
flatten-payloads: true
|
|
50
|
-
group-parameters: true
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
```yaml $(data-plane)
|
|
54
|
-
modelerfour:
|
|
55
|
-
flatten-models: false
|
|
56
|
-
flatten-payloads: false
|
|
57
|
-
group-parameters: false
|
|
58
|
-
|
|
59
|
-
lenient-model-deduplication: true
|
|
60
|
-
|
|
61
|
-
naming:
|
|
62
|
-
choiceValue: upper
|
|
63
|
-
preserve-uppercase-max-length: 2
|
|
64
|
-
override:
|
|
65
|
-
ip: Ip
|
|
66
|
-
id: Id
|
|
67
|
-
|
|
68
|
-
require:
|
|
69
|
-
- $(this-folder)data-plane.md
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
```yaml $(data-plane) && $(sdk-integration)
|
|
73
|
-
regenerate-pom: true
|
|
74
|
-
```
|
package/androidgen/data-plane.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
#### data-plane
|
|
2
|
-
|
|
3
|
-
```yaml
|
|
4
|
-
azure-arm: false
|
|
5
|
-
|
|
6
|
-
license-header: MICROSOFT_MIT_SMALL
|
|
7
|
-
|
|
8
|
-
generate-client-interfaces: false
|
|
9
|
-
generate-client-as-impl: true
|
|
10
|
-
generate-sync-async-clients: true
|
|
11
|
-
generate-builder-per-client: true
|
|
12
|
-
sync-methods: all
|
|
13
|
-
enable-sync-stack: true
|
|
14
|
-
required-fields-as-ctor-args: true
|
|
15
|
-
enable-page-size: true
|
|
16
|
-
use-key-credential: true
|
|
17
|
-
|
|
18
|
-
use-default-http-status-code-to-exception-type-mapping: true
|
|
19
|
-
polling: {}
|
|
20
|
-
|
|
21
|
-
models-subpackage: implementation.models
|
|
22
|
-
client-logger: true
|
|
23
|
-
```
|
package/androidgen/package.json
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@autorest/java.android",
|
|
3
|
-
"version": "4.0.0",
|
|
4
|
-
"description": "The Android extension for classic generators in AutoRest.",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"autorest": "autorest",
|
|
7
|
-
"start": "java -jar target/azure-autorest-androidgen-jar-with-dependencies.jar",
|
|
8
|
-
"debug": "java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar target/azure-autorest-androidgen-jar-with-dependencies.jar",
|
|
9
|
-
"build": "mvn package -Dlocal"
|
|
10
|
-
},
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/Azure/autorest.java"
|
|
14
|
-
},
|
|
15
|
-
"readme": "./readme.md",
|
|
16
|
-
"keywords": [
|
|
17
|
-
"autorest",
|
|
18
|
-
"java",
|
|
19
|
-
"android"
|
|
20
|
-
],
|
|
21
|
-
"author": "Microsoft Corporation",
|
|
22
|
-
"license": "MIT",
|
|
23
|
-
"bugs": {
|
|
24
|
-
"url": "https://github.com/Azure/autorest/issues"
|
|
25
|
-
},
|
|
26
|
-
"homepage": "https://github.com/Azure/autorest.java/blob/main/README.md"
|
|
27
|
-
}
|
|
Binary file
|