diff --git a/azure-dataplane-tests/pom.xml b/azure-dataplane-tests/pom.xml
index 9798ae292e..fa963b13c2 100644
--- a/azure-dataplane-tests/pom.xml
+++ b/azure-dataplane-tests/pom.xml
@@ -39,17 +39,17 @@
com.azure
azure-json
- 1.5.0
+ 1.5.1
com.azure
azure-xml
- 1.2.0
+ 1.2.1
com.azure
azure-core-http-netty
- 1.16.2
+ 1.16.3
test
diff --git a/azure-tests/pom.xml b/azure-tests/pom.xml
index 3cee59209e..5c0c906fe2 100644
--- a/azure-tests/pom.xml
+++ b/azure-tests/pom.xml
@@ -26,13 +26,13 @@
com.azure
azure-core-management
- 1.19.2
+ 1.19.3
com.azure
azure-core-http-netty
- 1.16.2
+ 1.16.3
test
diff --git a/core b/core
index 8a5b7685ff..a8ba8b14ad 160000
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit 8a5b7685fff6c5a1d8fe7bf552746706708324c5
+Subproject commit a8ba8b14adf18a90c1b0ed5478b04589f0a79fc1
diff --git a/customization-base/pom.xml b/customization-base/pom.xml
index c76bf8dc12..97aca2cbff 100644
--- a/customization-base/pom.xml
+++ b/customization-base/pom.xml
@@ -33,12 +33,12 @@
com.azure
azure-json
- 1.5.0
+ 1.5.1
com.azure
azure-xml
- 1.2.0
+ 1.2.1
com.azure.tools
diff --git a/customization-base/src/main/resources/pom.xml b/customization-base/src/main/resources/pom.xml
index ef939b6414..87c515a456 100644
--- a/customization-base/src/main/resources/pom.xml
+++ b/customization-base/src/main/resources/pom.xml
@@ -30,29 +30,29 @@
com.azure
azure-json
- 1.5.0
+ 1.5.1
com.azure
azure-xml
- 1.2.0
+ 1.2.1
com.azure
azure-core
- 1.57.0
+ 1.57.1
com.azure
azure-core-http-netty
- 1.16.2
+ 1.16.3
com.azure
azure-core-test
- 1.27.0-beta.13
+ 1.27.0-beta.14
test
diff --git a/customization-tests/pom.xml b/customization-tests/pom.xml
index 38e16c9695..e935dff681 100644
--- a/customization-tests/pom.xml
+++ b/customization-tests/pom.xml
@@ -38,14 +38,14 @@
com.azure
azure-core-http-netty
- 1.16.2
+ 1.16.3
com.azure
azure-core-test
- 1.27.0-beta.13
+ 1.27.0-beta.14
test
diff --git a/extension-base/pom.xml b/extension-base/pom.xml
index 1807f43967..cb4518a5ed 100644
--- a/extension-base/pom.xml
+++ b/extension-base/pom.xml
@@ -29,7 +29,7 @@
com.azure
azure-json
- 1.5.0
+ 1.5.1
org.yaml
diff --git a/fluent-tests/pom.xml b/fluent-tests/pom.xml
index 8f945417b4..ece8134339 100644
--- a/fluent-tests/pom.xml
+++ b/fluent-tests/pom.xml
@@ -106,13 +106,13 @@
com.azure
azure-core-management
- 1.19.2
+ 1.19.3
com.azure
azure-core-test
- 1.27.0-beta.13
+ 1.27.0-beta.14
test
@@ -124,7 +124,7 @@
com.azure
azure-identity
- 1.18.1
+ 1.18.2
test
diff --git a/fluent-tests/swagger/readme.network.md b/fluent-tests/swagger/readme.network.md
index 153e79f90d..68f9e4b3e1 100644
--- a/fluent-tests/swagger/readme.network.md
+++ b/fluent-tests/swagger/readme.network.md
@@ -4,8 +4,8 @@ This is the AutoRest configuration file for Resource.
---
``` yaml $(java)
input-file:
-- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/network.json
-- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/networkInterface.json
-- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/networkSecurityGroup.json
-- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/vmssNetworkInterface.json
+- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/network/resource-manager/Microsoft.Network/Network/stable/2019-06-01/network.json
+- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/network/resource-manager/Microsoft.Network/Network/stable/2019-06-01/networkInterface.json
+- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/network/resource-manager/Microsoft.Network/Network/stable/2019-06-01/networkSecurityGroup.json
+- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/network/resource-manager/Microsoft.Network/Network/stable/2019-06-01/vmssNetworkInterface.json
```
diff --git a/fluentgen/pom.xml b/fluentgen/pom.xml
index ebc0cabc6a..f7ddc3503b 100755
--- a/fluentgen/pom.xml
+++ b/fluentgen/pom.xml
@@ -38,7 +38,7 @@
com.azure
azure-core-management
- 1.19.2
+ 1.19.3
test
diff --git a/pom.xml b/pom.xml
index d3bd910ae7..7d1807fc27 100644
--- a/pom.xml
+++ b/pom.xml
@@ -60,7 +60,7 @@
com.azure
azure-core
- 1.57.0
+ 1.57.1
diff --git a/protocol-sdk-integration-tests/eng/versioning/version_client.txt b/protocol-sdk-integration-tests/eng/versioning/version_client.txt
index bf0b1d8bc0..d4d2f576e4 100644
--- a/protocol-sdk-integration-tests/eng/versioning/version_client.txt
+++ b/protocol-sdk-integration-tests/eng/versioning/version_client.txt
@@ -1,8 +1,8 @@
-com.azure:azure-core;1.57.0;1.57.0
-com.azure:azure-core-experimental;1.0.0-beta.65;1.0.0-beta.65
-com.azure:azure-core-http-netty;1.16.2;1.16.2
-com.azure:azure-core-management;1.19.2;1.19.2
-com.azure:azure-core-test;1.27.0-beta.13;1.27.0-beta.13
+com.azure:azure-core;1.57.1;1.57.1
+com.azure:azure-core-experimental;1.0.0-beta.66;1.0.0-beta.66
+com.azure:azure-core-http-netty;1.16.3;1.16.3
+com.azure:azure-core-management;1.19.3;1.19.3
+com.azure:azure-core-test;1.27.0-beta.14;1.27.0-beta.14
-com.azure:azure-identity;1.18.1;1.18.1
-com.azure:azure-json;1.5.0;1.5.0
+com.azure:azure-identity;1.18.2;1.18.2
+com.azure:azure-json;1.5.1;1.5.1
diff --git a/protocol-tests/pom.xml b/protocol-tests/pom.xml
index 5dc79941db..659b345ee0 100644
--- a/protocol-tests/pom.xml
+++ b/protocol-tests/pom.xml
@@ -26,7 +26,7 @@
com.azure
azure-core-test
- 1.27.0-beta.13
+ 1.27.0-beta.14
test
diff --git a/typespec-extension/changelog.md b/typespec-extension/changelog.md
index 73aa626399..9f38589ba3 100644
--- a/typespec-extension/changelog.md
+++ b/typespec-extension/changelog.md
@@ -1,5 +1,11 @@
# Release History
+## 0.38.7 (2026-02-01)
+
+Compatible with compiler 1.8.0.
+
+- Updated package dependencies to the latest versions.
+
## 0.38.6 (2026-01-27)
Compatible with compiler 1.8.0.
diff --git a/typespec-extension/package-lock.json b/typespec-extension/package-lock.json
index fe7a8f6084..4956f17ede 100644
--- a/typespec-extension/package-lock.json
+++ b/typespec-extension/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@azure-tools/typespec-java",
- "version": "0.38.6",
+ "version": "0.38.7",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@azure-tools/typespec-java",
- "version": "0.38.6",
+ "version": "0.38.7",
"license": "MIT",
"dependencies": {
"@autorest/codemodel": "~4.20.1",
@@ -15,16 +15,16 @@
},
"devDependencies": {
"@azure-tools/openai-typespec": "^1.7.3",
- "@azure-tools/typespec-autorest": "0.64.0",
+ "@azure-tools/typespec-autorest": "0.64.1",
"@azure-tools/typespec-azure-core": "0.64.0",
- "@azure-tools/typespec-azure-resource-manager": "0.64.0",
+ "@azure-tools/typespec-azure-resource-manager": "0.64.1",
"@azure-tools/typespec-azure-rulesets": "0.64.0",
- "@azure-tools/typespec-client-generator-core": "0.64.4",
+ "@azure-tools/typespec-client-generator-core": "0.64.5",
"@azure-tools/typespec-liftr-base": "0.11.0",
- "@microsoft/api-extractor": "^7.55.2",
+ "@microsoft/api-extractor": "^7.56.0",
"@types/js-yaml": "~4.0.9",
"@types/lodash": "~4.17.23",
- "@types/node": "~25.0.10",
+ "@types/node": "~25.1.0",
"@typescript-eslint/eslint-plugin": "~8.54.0",
"@typescript-eslint/parser": "~8.54.0",
"@typespec/compiler": "1.8.0",
@@ -55,11 +55,11 @@
},
"peerDependencies": {
"@azure-tools/openai-typespec": "^1.7.3",
- "@azure-tools/typespec-autorest": ">=0.64.0 <1.0.0",
+ "@azure-tools/typespec-autorest": ">=0.64.1 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.64.0 <1.0.0",
- "@azure-tools/typespec-azure-resource-manager": ">=0.64.0 <1.0.0",
+ "@azure-tools/typespec-azure-resource-manager": ">=0.64.1 <1.0.0",
"@azure-tools/typespec-azure-rulesets": ">=0.64.0 <1.0.0",
- "@azure-tools/typespec-client-generator-core": ">=0.64.4 <1.0.0",
+ "@azure-tools/typespec-client-generator-core": ">=0.64.5 <1.0.0",
"@azure-tools/typespec-liftr-base": ">=0.11.0 <1.0.0",
"@typespec/compiler": "^1.8.0",
"@typespec/http": "^1.8.0",
@@ -167,9 +167,9 @@
}
},
"node_modules/@azure-tools/typespec-autorest": {
- "version": "0.64.0",
- "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.64.0.tgz",
- "integrity": "sha512-zC2e3px+BqGJvE9DeW00S0PZmkydorB3Hm6Fb2vlJUdmHuTTSochPiZFJF7LHNsAL8sDu7azSHzypESFdN0FmA==",
+ "version": "0.64.1",
+ "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.64.1.tgz",
+ "integrity": "sha512-WzSRiX0XS7hCL+uiivLBYMbirEUenxNzPT4giF0J+r54CVNXq/u8PLnA/06F5EHkXPa92swF4BxB1vFWB2TKow==",
"dev": true,
"license": "MIT",
"engines": {
@@ -177,8 +177,8 @@
},
"peerDependencies": {
"@azure-tools/typespec-azure-core": "^0.64.0",
- "@azure-tools/typespec-azure-resource-manager": "^0.64.0",
- "@azure-tools/typespec-client-generator-core": "^0.64.0",
+ "@azure-tools/typespec-azure-resource-manager": "^0.64.1",
+ "@azure-tools/typespec-client-generator-core": "^0.64.4",
"@typespec/compiler": "^1.8.0",
"@typespec/http": "^1.8.0",
"@typespec/openapi": "^1.8.0",
@@ -208,9 +208,9 @@
}
},
"node_modules/@azure-tools/typespec-azure-resource-manager": {
- "version": "0.64.0",
- "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.64.0.tgz",
- "integrity": "sha512-1HwGo3Nt8ksafoPp1rFOopSzgh68SFsyVNCauzjO8ftf0fEqhRXo70OaGwP6wmTZJsLnW7u1DbrBNu6b0z2sOQ==",
+ "version": "0.64.1",
+ "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.64.1.tgz",
+ "integrity": "sha512-qQV/+ZVF1h8PsTNKhmKYyb+vSCgnLA8SoGeEE1oOrevGrrp9VgtOMAZ2xIxj6DpU90QU/8t2+r5P/gcQUV1iqw==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -246,9 +246,9 @@
}
},
"node_modules/@azure-tools/typespec-client-generator-core": {
- "version": "0.64.4",
- "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.64.4.tgz",
- "integrity": "sha512-ZAYdbTe47VVff3MarJTXXiu/xg4iIilipJbjbqROIYbNkXcnIyZSC1IYDkzKHU3qgYrEyHuBjoVZc7rkxAtOLA==",
+ "version": "0.64.5",
+ "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.64.5.tgz",
+ "integrity": "sha512-RaATxsnc9ztdMPoIZ2SuyH97dIGY0BWGKcJBf0hBY+8J3de9o+QH796NA9OsiW+8J9ycCEooDbh/rkAspvA4xA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1664,9 +1664,9 @@
}
},
"node_modules/@microsoft/api-extractor": {
- "version": "7.55.2",
- "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.55.2.tgz",
- "integrity": "sha512-1jlWO4qmgqYoVUcyh+oXYRztZde/pAi7cSVzBz/rc+S7CoVzDasy8QE13dx6sLG4VRo8SfkkLbFORR6tBw4uGQ==",
+ "version": "7.56.0",
+ "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.56.0.tgz",
+ "integrity": "sha512-H0V69QG5jIb9Ayx35NVBv2lOgFSS3q+Eab2oyGEy0POL3ovYPST+rCNPbwYoczOZXNG8IKjWUmmAMxmDTsXlQA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1675,8 +1675,8 @@
"@microsoft/tsdoc-config": "~0.18.0",
"@rushstack/node-core-library": "5.19.1",
"@rushstack/rig-package": "0.6.0",
- "@rushstack/terminal": "0.19.5",
- "@rushstack/ts-command-line": "5.1.5",
+ "@rushstack/terminal": "0.21.0",
+ "@rushstack/ts-command-line": "5.1.7",
"diff": "~8.0.2",
"lodash": "~4.17.15",
"minimatch": "10.0.3",
@@ -2274,9 +2274,9 @@
}
},
"node_modules/@rushstack/terminal": {
- "version": "0.19.5",
- "resolved": "https://registry.npmjs.org/@rushstack/terminal/-/terminal-0.19.5.tgz",
- "integrity": "sha512-6k5tpdB88G0K7QrH/3yfKO84HK9ggftfUZ51p7fePyCE7+RLLHkWZbID9OFWbXuna+eeCFE7AkKnRMHMxNbz7Q==",
+ "version": "0.21.0",
+ "resolved": "https://registry.npmjs.org/@rushstack/terminal/-/terminal-0.21.0.tgz",
+ "integrity": "sha512-cLaI4HwCNYmknM5ns4G+drqdEB6q3dCPV423+d3TZeBusYSSm09+nR7CnhzJMjJqeRcdMAaLnrA4M/3xDz4R3w==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -2310,13 +2310,13 @@
}
},
"node_modules/@rushstack/ts-command-line": {
- "version": "5.1.5",
- "resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-5.1.5.tgz",
- "integrity": "sha512-YmrFTFUdHXblYSa+Xc9OO9FsL/XFcckZy0ycQ6q7VSBsVs5P0uD9vcges5Q9vctGlVdu27w+Ct6IuJ458V0cTQ==",
+ "version": "5.1.7",
+ "resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-5.1.7.tgz",
+ "integrity": "sha512-Ugwl6flarZcL2nqH5IXFYk3UR3mBVDsVFlCQW/Oaqidvdb/5Ota6b/Z3JXWIdqV3rOR2/JrYoAHanWF5rgenXA==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@rushstack/terminal": "0.19.5",
+ "@rushstack/terminal": "0.21.0",
"@types/argparse": "1.0.38",
"argparse": "~1.0.9",
"string-argv": "~0.3.1"
@@ -2475,9 +2475,9 @@
"license": "MIT"
},
"node_modules/@types/node": {
- "version": "25.0.10",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.10.tgz",
- "integrity": "sha512-zWW5KPngR/yvakJgGOmZ5vTBemDoSqF3AcV/LrO5u5wTWyEAVVh+IT39G4gtyAkh3CtTZs8aX/yRM82OfzHJRg==",
+ "version": "25.1.0",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-25.1.0.tgz",
+ "integrity": "sha512-t7frlewr6+cbx+9Ohpl0NOTKXZNV9xHRmNOvql47BFJKcEG1CxtxlPEEe+gR9uhVWM4DwhnvTF110mIL4yP9RA==",
"dev": true,
"license": "MIT",
"dependencies": {
diff --git a/typespec-extension/package.json b/typespec-extension/package.json
index 01349bf532..d248964297 100644
--- a/typespec-extension/package.json
+++ b/typespec-extension/package.json
@@ -1,6 +1,6 @@
{
"name": "@azure-tools/typespec-java",
- "version": "0.38.6",
+ "version": "0.38.7",
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
"keywords": [
"TypeSpec"
@@ -47,11 +47,11 @@
"generator/http-client-generator/target/classes/PerfAutomation.jfc"
],
"peerDependencies": {
- "@azure-tools/typespec-autorest": ">=0.64.0 <1.0.0",
+ "@azure-tools/typespec-autorest": ">=0.64.1 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.64.0 <1.0.0",
- "@azure-tools/typespec-azure-resource-manager": ">=0.64.0 <1.0.0",
+ "@azure-tools/typespec-azure-resource-manager": ">=0.64.1 <1.0.0",
"@azure-tools/typespec-azure-rulesets": ">=0.64.0 <1.0.0",
- "@azure-tools/typespec-client-generator-core": ">=0.64.4 <1.0.0",
+ "@azure-tools/typespec-client-generator-core": ">=0.64.5 <1.0.0",
"@azure-tools/typespec-liftr-base": ">=0.11.0 <1.0.0",
"@azure-tools/openai-typespec": "^1.7.3",
"@typespec/compiler": "^1.8.0",
@@ -67,17 +67,17 @@
"lodash": "~4.17.23"
},
"devDependencies": {
- "@azure-tools/typespec-autorest": "0.64.0",
+ "@azure-tools/typespec-autorest": "0.64.1",
"@azure-tools/typespec-azure-core": "0.64.0",
- "@azure-tools/typespec-azure-resource-manager": "0.64.0",
+ "@azure-tools/typespec-azure-resource-manager": "0.64.1",
"@azure-tools/typespec-azure-rulesets": "0.64.0",
- "@azure-tools/typespec-client-generator-core": "0.64.4",
+ "@azure-tools/typespec-client-generator-core": "0.64.5",
"@azure-tools/typespec-liftr-base": "0.11.0",
"@azure-tools/openai-typespec": "^1.7.3",
- "@microsoft/api-extractor": "^7.55.2",
+ "@microsoft/api-extractor": "^7.56.0",
"@types/js-yaml": "~4.0.9",
"@types/lodash": "~4.17.23",
- "@types/node": "~25.0.10",
+ "@types/node": "~25.1.0",
"@typescript-eslint/eslint-plugin": "~8.54.0",
"@typescript-eslint/parser": "~8.54.0",
"@typespec/compiler": "1.8.0",
diff --git a/typespec-tests/package.json b/typespec-tests/package.json
index 77b890acfa..fc21a14078 100644
--- a/typespec-tests/package.json
+++ b/typespec-tests/package.json
@@ -13,7 +13,7 @@
"@typespec/spector": "0.1.0-alpha.22",
"@typespec/http-specs": "0.1.0-alpha.31",
"@azure-tools/azure-http-specs": "0.1.0-alpha.36",
- "@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.38.6.tgz"
+ "@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.38.7.tgz"
},
"devDependencies": {
"@typespec/prettier-plugin-typespec": "^1.8.0",
@@ -31,9 +31,9 @@
"@typespec/sse": "0.78.0",
"@typespec/streams": "0.78.0",
"@azure-tools/typespec-azure-core": "0.64.0",
- "@azure-tools/typespec-client-generator-core": "0.64.4",
- "@azure-tools/typespec-azure-resource-manager": "0.64.0",
- "@azure-tools/typespec-autorest": "0.64.0",
+ "@azure-tools/typespec-client-generator-core": "0.64.5",
+ "@azure-tools/typespec-azure-resource-manager": "0.64.1",
+ "@azure-tools/typespec-autorest": "0.64.1",
"@azure-tools/typespec-liftr-base": "0.11.0"
},
"private": true
diff --git a/typespec-tests/pom.xml b/typespec-tests/pom.xml
index 8a9c08f621..cc05d97cac 100644
--- a/typespec-tests/pom.xml
+++ b/typespec-tests/pom.xml
@@ -22,12 +22,12 @@
com.azure
azure-identity
- 1.18.1
+ 1.18.2
com.azure
azure-core-management
- 1.19.2
+ 1.19.3
org.junit.jupiter
@@ -69,7 +69,7 @@
com.azure
azure-core-test
- 1.27.0-beta.13
+ 1.27.0-beta.14
test
@@ -85,7 +85,7 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 3.12.0
+ 3.11.3
1.8
Azure SDK for Java Reference Documentation
diff --git a/typespec-tests/src/main/java/azure/resourcemanager/multiservicesharedmodels/combined/implementation/StorageAccountsClientImpl.java b/typespec-tests/src/main/java/azure/resourcemanager/multiservicesharedmodels/combined/implementation/StorageAccountsClientImpl.java
index 50cba1bf45..1008650d0d 100644
--- a/typespec-tests/src/main/java/azure/resourcemanager/multiservicesharedmodels/combined/implementation/StorageAccountsClientImpl.java
+++ b/typespec-tests/src/main/java/azure/resourcemanager/multiservicesharedmodels/combined/implementation/StorageAccountsClientImpl.java
@@ -66,7 +66,7 @@ public final class StorageAccountsClientImpl implements StorageAccountsClient {
@ServiceInterface(name = "CombinedStorageAccounts")
public interface StorageAccountsService {
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/storageAccounts/{accountName}")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> getByResourceGroup(@HostParam("endpoint") String endpoint,
@@ -75,7 +75,7 @@ Mono> getByResourceGroup(@HostParam("endpoint") St
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/storageAccounts/{accountName}")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response getByResourceGroupSync(@HostParam("endpoint") String endpoint,
@@ -83,7 +83,7 @@ Response getByResourceGroupSync(@HostParam("endpoint") Stri
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
@HeaderParam("Accept") String accept, Context context);
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/storageAccounts/{accountName}")
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
@@ -92,7 +92,7 @@ Mono>> createOrUpdate(@HostParam("endpoint") String en
@HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
@BodyParam("application/json") StorageAccountInner resource, Context context);
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/storageAccounts/{accountName}")
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response createOrUpdateSync(@HostParam("endpoint") String endpoint,
diff --git a/typespec-tests/src/main/java/tsptest/armlegacy/implementation/SkusClientImpl.java b/typespec-tests/src/main/java/tsptest/armlegacy/implementation/SkusClientImpl.java
index 094bde3847..a6222f1088 100644
--- a/typespec-tests/src/main/java/tsptest/armlegacy/implementation/SkusClientImpl.java
+++ b/typespec-tests/src/main/java/tsptest/armlegacy/implementation/SkusClientImpl.java
@@ -60,7 +60,7 @@ public final class SkusClientImpl implements SkusClient {
@ServiceInterface(name = "ArmLegacyClientSkus")
public interface SkusService {
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ThisWillBeReplaced/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}")
+ @Get("/subscriptions/{subscriptionId}/providers/TspTest.ArmLegacy/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> getNested(@HostParam("endpoint") String endpoint,
@@ -70,7 +70,7 @@ Mono> getNested(@HostParam("endpoint") String endpoin
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ThisWillBeReplaced/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}")
+ @Get("/subscriptions/{subscriptionId}/providers/TspTest.ArmLegacy/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response getNestedSync(@HostParam("endpoint") String endpoint,
@@ -79,7 +79,7 @@ Response getNestedSync(@HostParam("endpoint") String endpoint,
@PathParam("nestedResourceTypeFirst") String nestedResourceTypeFirst, @PathParam("sku") String sku,
@HeaderParam("Accept") String accept, Context context);
- @Put("/subscriptions/{subscriptionId}/providers/Microsoft.ThisWillBeReplaced/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}")
+ @Put("/subscriptions/{subscriptionId}/providers/TspTest.ArmLegacy/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> createNested(@HostParam("endpoint") String endpoint,
@@ -89,7 +89,7 @@ Mono> createNested(@HostParam("endpoint") String endp
@HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
@BodyParam("application/json") SkuResourceInner resource, Context context);
- @Put("/subscriptions/{subscriptionId}/providers/Microsoft.ThisWillBeReplaced/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}")
+ @Put("/subscriptions/{subscriptionId}/providers/TspTest.ArmLegacy/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response createNestedSync(@HostParam("endpoint") String endpoint,
@@ -100,7 +100,7 @@ Response createNestedSync(@HostParam("endpoint") String endpoi
@BodyParam("application/json") SkuResourceInner resource, Context context);
@Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/providers/Microsoft.ThisWillBeReplaced/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}")
+ @Delete("/subscriptions/{subscriptionId}/providers/TspTest.ArmLegacy/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}")
@ExpectedResponses({ 200, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> deleteNested(@HostParam("endpoint") String endpoint,
@@ -110,7 +110,7 @@ Mono> deleteNested(@HostParam("endpoint") String endpoint,
Context context);
@Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/providers/Microsoft.ThisWillBeReplaced/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}")
+ @Delete("/subscriptions/{subscriptionId}/providers/TspTest.ArmLegacy/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}")
@ExpectedResponses({ 200, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response deleteNestedSync(@HostParam("endpoint") String endpoint,
@@ -120,7 +120,7 @@ Response deleteNestedSync(@HostParam("endpoint") String endpoint,
Context context);
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ThisWillBeReplaced/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}")
+ @Get("/subscriptions/{subscriptionId}/providers/TspTest.ArmLegacy/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> getRoot(@HostParam("endpoint") String endpoint,
@@ -129,7 +129,7 @@ Mono> getRoot(@HostParam("endpoint") String endpoint,
@PathParam("sku") String sku, @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ThisWillBeReplaced/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}")
+ @Get("/subscriptions/{subscriptionId}/providers/TspTest.ArmLegacy/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response getRootSync(@HostParam("endpoint") String endpoint,
@@ -137,7 +137,7 @@ Response getRootSync(@HostParam("endpoint") String endpoint,
@PathParam("providerNamespace") String providerNamespace, @PathParam("resourceType") String resourceType,
@PathParam("sku") String sku, @HeaderParam("Accept") String accept, Context context);
- @Put("/subscriptions/{subscriptionId}/providers/Microsoft.ThisWillBeReplaced/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}")
+ @Put("/subscriptions/{subscriptionId}/providers/TspTest.ArmLegacy/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> createRoot(@HostParam("endpoint") String endpoint,
@@ -147,7 +147,7 @@ Mono> createRoot(@HostParam("endpoint") String endpoi
@HeaderParam("Accept") String accept, @BodyParam("application/json") SkuResourceInner resource,
Context context);
- @Put("/subscriptions/{subscriptionId}/providers/Microsoft.ThisWillBeReplaced/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}")
+ @Put("/subscriptions/{subscriptionId}/providers/TspTest.ArmLegacy/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response createRootSync(@HostParam("endpoint") String endpoint,
@@ -158,7 +158,7 @@ Response createRootSync(@HostParam("endpoint") String endpoint
Context context);
@Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/providers/Microsoft.ThisWillBeReplaced/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}")
+ @Delete("/subscriptions/{subscriptionId}/providers/TspTest.ArmLegacy/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}")
@ExpectedResponses({ 200, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> deleteRoot(@HostParam("endpoint") String endpoint,
@@ -167,7 +167,7 @@ Mono> deleteRoot(@HostParam("endpoint") String endpoint,
@PathParam("sku") String sku, Context context);
@Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/providers/Microsoft.ThisWillBeReplaced/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}")
+ @Delete("/subscriptions/{subscriptionId}/providers/TspTest.ArmLegacy/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}")
@ExpectedResponses({ 200, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response deleteRootSync(@HostParam("endpoint") String endpoint,
diff --git a/typespec-tests/src/main/java/tsptest/armresourceprovider/fluent/TopLevelArmResourceInterfacesClient.java b/typespec-tests/src/main/java/tsptest/armresourceprovider/fluent/TopLevelArmResourceInterfacesClient.java
index 7e3f679951..92fab17d9a 100644
--- a/typespec-tests/src/main/java/tsptest/armresourceprovider/fluent/TopLevelArmResourceInterfacesClient.java
+++ b/typespec-tests/src/main/java/tsptest/armresourceprovider/fluent/TopLevelArmResourceInterfacesClient.java
@@ -10,6 +10,7 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.BinaryData;
import com.azure.core.util.Context;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
@@ -511,4 +512,58 @@ SyncPoller, ResultInner> beginAction(String resourceGrou
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ResultInner action(String resourceGroupName, String topLevelArmResourceName, Context context);
+
+ /**
+ * A synchronous resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param topLevelArmResourceName arm resource name for path.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> publishXmlWithResponseAsync(String resourceGroupName, String topLevelArmResourceName);
+
+ /**
+ * A synchronous resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param topLevelArmResourceName arm resource name for path.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono publishXmlAsync(String resourceGroupName, String topLevelArmResourceName);
+
+ /**
+ * A synchronous resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param topLevelArmResourceName arm resource name for path.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response publishXmlWithResponse(String resourceGroupName, String topLevelArmResourceName,
+ Context context);
+
+ /**
+ * A synchronous resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param topLevelArmResourceName arm resource name for path.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ BinaryData publishXml(String resourceGroupName, String topLevelArmResourceName);
}
diff --git a/typespec-tests/src/main/java/tsptest/armresourceprovider/implementation/TopLevelArmResourceImpl.java b/typespec-tests/src/main/java/tsptest/armresourceprovider/implementation/TopLevelArmResourceImpl.java
index deeec677d4..03c2a46db2 100644
--- a/typespec-tests/src/main/java/tsptest/armresourceprovider/implementation/TopLevelArmResourceImpl.java
+++ b/typespec-tests/src/main/java/tsptest/armresourceprovider/implementation/TopLevelArmResourceImpl.java
@@ -4,8 +4,10 @@
package tsptest.armresourceprovider.implementation;
+import com.azure.core.http.rest.Response;
import com.azure.core.management.Region;
import com.azure.core.management.SystemData;
+import com.azure.core.util.BinaryData;
import com.azure.core.util.Context;
import java.time.OffsetDateTime;
import java.util.Collections;
@@ -191,6 +193,15 @@ public Result action(Context context) {
.action(resourceGroupName, topLevelArmResourceName, context);
}
+ public Response publishXmlWithResponse(Context context) {
+ return serviceManager.topLevelArmResourceInterfaces()
+ .publishXmlWithResponse(resourceGroupName, topLevelArmResourceName, context);
+ }
+
+ public BinaryData publishXml() {
+ return serviceManager.topLevelArmResourceInterfaces().publishXml(resourceGroupName, topLevelArmResourceName);
+ }
+
public TopLevelArmResourceImpl withRegion(Region location) {
this.innerModel().withLocation(location.toString());
return this;
diff --git a/typespec-tests/src/main/java/tsptest/armresourceprovider/implementation/TopLevelArmResourceInterfacesClientImpl.java b/typespec-tests/src/main/java/tsptest/armresourceprovider/implementation/TopLevelArmResourceInterfacesClientImpl.java
index 8b0b0a75bd..35fdf5e2ab 100644
--- a/typespec-tests/src/main/java/tsptest/armresourceprovider/implementation/TopLevelArmResourceInterfacesClientImpl.java
+++ b/typespec-tests/src/main/java/tsptest/armresourceprovider/implementation/TopLevelArmResourceInterfacesClientImpl.java
@@ -207,6 +207,26 @@ Response actionSync(@HostParam("endpoint") String endpoint,
@PathParam("topLevelArmResourceName") String topLevelArmResourceName, @HeaderParam("Accept") String accept,
Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/TspTest.ArmResourceProvider/topLevelArmResources/{topLevelArmResourceName}/publishxml")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> publishXml(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("topLevelArmResourceName") String topLevelArmResourceName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/TspTest.ArmResourceProvider/topLevelArmResources/{topLevelArmResourceName}/publishxml")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response publishXmlSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("topLevelArmResourceName") String topLevelArmResourceName, @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@@ -1088,6 +1108,76 @@ public ResultInner action(String resourceGroupName, String topLevelArmResourceNa
return beginAction(resourceGroupName, topLevelArmResourceName, context).getFinalResult();
}
+ /**
+ * A synchronous resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param topLevelArmResourceName arm resource name for path.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> publishXmlWithResponseAsync(String resourceGroupName,
+ String topLevelArmResourceName) {
+ final String accept = "application/xml";
+ return FluxUtil
+ .withContext(context -> service.publishXml(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, topLevelArmResourceName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * A synchronous resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param topLevelArmResourceName arm resource name for path.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono publishXmlAsync(String resourceGroupName, String topLevelArmResourceName) {
+ return publishXmlWithResponseAsync(resourceGroupName, topLevelArmResourceName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * A synchronous resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param topLevelArmResourceName arm resource name for path.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response publishXmlWithResponse(String resourceGroupName, String topLevelArmResourceName,
+ Context context) {
+ final String accept = "application/xml";
+ return service.publishXmlSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, topLevelArmResourceName, accept, context);
+ }
+
+ /**
+ * A synchronous resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param topLevelArmResourceName arm resource name for path.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BinaryData publishXml(String resourceGroupName, String topLevelArmResourceName) {
+ return publishXmlWithResponse(resourceGroupName, topLevelArmResourceName, Context.NONE).getValue();
+ }
+
/**
* Get the next page of items.
*
diff --git a/typespec-tests/src/main/java/tsptest/armresourceprovider/implementation/TopLevelArmResourceInterfacesImpl.java b/typespec-tests/src/main/java/tsptest/armresourceprovider/implementation/TopLevelArmResourceInterfacesImpl.java
index c99dec9178..85ac6caf84 100644
--- a/typespec-tests/src/main/java/tsptest/armresourceprovider/implementation/TopLevelArmResourceInterfacesImpl.java
+++ b/typespec-tests/src/main/java/tsptest/armresourceprovider/implementation/TopLevelArmResourceInterfacesImpl.java
@@ -7,6 +7,7 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.BinaryData;
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
import tsptest.armresourceprovider.fluent.TopLevelArmResourceInterfacesClient;
@@ -98,6 +99,15 @@ public Result action(String resourceGroupName, String topLevelArmResourceName, C
}
}
+ public Response publishXmlWithResponse(String resourceGroupName, String topLevelArmResourceName,
+ Context context) {
+ return this.serviceClient().publishXmlWithResponse(resourceGroupName, topLevelArmResourceName, context);
+ }
+
+ public BinaryData publishXml(String resourceGroupName, String topLevelArmResourceName) {
+ return this.serviceClient().publishXml(resourceGroupName, topLevelArmResourceName);
+ }
+
public TopLevelArmResource getById(String id) {
String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
diff --git a/typespec-tests/src/main/java/tsptest/armresourceprovider/models/TopLevelArmResource.java b/typespec-tests/src/main/java/tsptest/armresourceprovider/models/TopLevelArmResource.java
index 39641c683a..fabd6c14ab 100644
--- a/typespec-tests/src/main/java/tsptest/armresourceprovider/models/TopLevelArmResource.java
+++ b/typespec-tests/src/main/java/tsptest/armresourceprovider/models/TopLevelArmResource.java
@@ -4,8 +4,10 @@
package tsptest.armresourceprovider.models;
+import com.azure.core.http.rest.Response;
import com.azure.core.management.Region;
import com.azure.core.management.SystemData;
+import com.azure.core.util.BinaryData;
import com.azure.core.util.Context;
import java.time.OffsetDateTime;
import java.util.List;
@@ -393,4 +395,24 @@ interface WithAccuserName {
* @return the response.
*/
Result action(Context context);
+
+ /**
+ * A synchronous resource action.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ Response publishXmlWithResponse(Context context);
+
+ /**
+ * A synchronous resource action.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ BinaryData publishXml();
}
diff --git a/typespec-tests/src/main/java/tsptest/armresourceprovider/models/TopLevelArmResourceInterfaces.java b/typespec-tests/src/main/java/tsptest/armresourceprovider/models/TopLevelArmResourceInterfaces.java
index 33ae363820..60639e2c5d 100644
--- a/typespec-tests/src/main/java/tsptest/armresourceprovider/models/TopLevelArmResourceInterfaces.java
+++ b/typespec-tests/src/main/java/tsptest/armresourceprovider/models/TopLevelArmResourceInterfaces.java
@@ -6,6 +6,7 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
+import com.azure.core.util.BinaryData;
import com.azure.core.util.Context;
/**
@@ -129,6 +130,32 @@ Response getByResourceGroupWithResponse(String resourceGrou
*/
Result action(String resourceGroupName, String topLevelArmResourceName, Context context);
+ /**
+ * A synchronous resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param topLevelArmResourceName arm resource name for path.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ Response publishXmlWithResponse(String resourceGroupName, String topLevelArmResourceName,
+ Context context);
+
+ /**
+ * A synchronous resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param topLevelArmResourceName arm resource name for path.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ BinaryData publishXml(String resourceGroupName, String topLevelArmResourceName);
+
/**
* Get a TopLevelArmResource.
*
diff --git a/typespec-tests/src/main/java/tsptest/armstreamstyleserialization/models/Builtin.java b/typespec-tests/src/main/java/tsptest/armstreamstyleserialization/models/Builtin.java
index 6ed4912ec3..4baa115a2f 100644
--- a/typespec-tests/src/main/java/tsptest/armstreamstyleserialization/models/Builtin.java
+++ b/typespec-tests/src/main/java/tsptest/armstreamstyleserialization/models/Builtin.java
@@ -4,7 +4,8 @@
package tsptest.armstreamstyleserialization.models;
-import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.BinaryData;
import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
@@ -24,7 +25,7 @@
/**
* The Builtin model.
*/
-@Immutable
+@Fluent
public final class Builtin implements JsonSerializable {
/*
* The boolean property.
@@ -107,19 +108,24 @@ public final class Builtin implements JsonSerializable {
private Map nullableFloatDict;
/*
- * The encoded property.
+ * The encoding property.
*/
- private Encoded encoded;
+ private Encoded encoding;
/*
* The uuid property.
*/
private String uuid;
+ /*
+ * The unknown property.
+ */
+ private BinaryData unknown;
+
/**
* Creates an instance of Builtin class.
*/
- private Builtin() {
+ public Builtin() {
}
/**
@@ -131,6 +137,17 @@ public boolean booleanProperty() {
return this.booleanProperty;
}
+ /**
+ * Set the booleanProperty property: The boolean property.
+ *
+ * @param booleanProperty the booleanProperty value to set.
+ * @return the Builtin object itself.
+ */
+ public Builtin withBooleanProperty(boolean booleanProperty) {
+ this.booleanProperty = booleanProperty;
+ return this;
+ }
+
/**
* Get the string property: The string property.
*
@@ -140,6 +157,17 @@ public String string() {
return this.string;
}
+ /**
+ * Set the string property: The string property.
+ *
+ * @param string the string value to set.
+ * @return the Builtin object itself.
+ */
+ public Builtin withString(String string) {
+ this.string = string;
+ return this;
+ }
+
/**
* Get the bytes property: The bytes property.
*
@@ -149,6 +177,17 @@ public byte[] bytes() {
return CoreUtils.clone(this.bytes);
}
+ /**
+ * Set the bytes property: The bytes property.
+ *
+ * @param bytes the bytes value to set.
+ * @return the Builtin object itself.
+ */
+ public Builtin withBytes(byte[] bytes) {
+ this.bytes = CoreUtils.clone(bytes);
+ return this;
+ }
+
/**
* Get the intProperty property: The int property.
*
@@ -158,6 +197,17 @@ public int intProperty() {
return this.intProperty;
}
+ /**
+ * Set the intProperty property: The int property.
+ *
+ * @param intProperty the intProperty value to set.
+ * @return the Builtin object itself.
+ */
+ public Builtin withIntProperty(int intProperty) {
+ this.intProperty = intProperty;
+ return this;
+ }
+
/**
* Get the safeint property: The safeint property.
*
@@ -167,6 +217,17 @@ public long safeint() {
return this.safeint;
}
+ /**
+ * Set the safeint property: The safeint property.
+ *
+ * @param safeint the safeint value to set.
+ * @return the Builtin object itself.
+ */
+ public Builtin withSafeint(long safeint) {
+ this.safeint = safeint;
+ return this;
+ }
+
/**
* Get the decimal property: The decimal property.
*
@@ -176,6 +237,17 @@ public BigDecimal decimal() {
return this.decimal;
}
+ /**
+ * Set the decimal property: The decimal property.
+ *
+ * @param decimal the decimal value to set.
+ * @return the Builtin object itself.
+ */
+ public Builtin withDecimal(BigDecimal decimal) {
+ this.decimal = decimal;
+ return this;
+ }
+
/**
* Get the longProperty property: The long property.
*
@@ -185,6 +257,17 @@ public long longProperty() {
return this.longProperty;
}
+ /**
+ * Set the longProperty property: The long property.
+ *
+ * @param longProperty the longProperty value to set.
+ * @return the Builtin object itself.
+ */
+ public Builtin withLongProperty(long longProperty) {
+ this.longProperty = longProperty;
+ return this;
+ }
+
/**
* Get the floatProperty property: The float property.
*
@@ -194,6 +277,17 @@ public double floatProperty() {
return this.floatProperty;
}
+ /**
+ * Set the floatProperty property: The float property.
+ *
+ * @param floatProperty the floatProperty value to set.
+ * @return the Builtin object itself.
+ */
+ public Builtin withFloatProperty(double floatProperty) {
+ this.floatProperty = floatProperty;
+ return this;
+ }
+
/**
* Get the doubleProperty property: The double property.
*
@@ -203,6 +297,17 @@ public double doubleProperty() {
return this.doubleProperty;
}
+ /**
+ * Set the doubleProperty property: The double property.
+ *
+ * @param doubleProperty the doubleProperty value to set.
+ * @return the Builtin object itself.
+ */
+ public Builtin withDoubleProperty(double doubleProperty) {
+ this.doubleProperty = doubleProperty;
+ return this;
+ }
+
/**
* Get the duration property: The duration property.
*
@@ -212,6 +317,17 @@ public Duration duration() {
return this.duration;
}
+ /**
+ * Set the duration property: The duration property.
+ *
+ * @param duration the duration value to set.
+ * @return the Builtin object itself.
+ */
+ public Builtin withDuration(Duration duration) {
+ this.duration = duration;
+ return this;
+ }
+
/**
* Get the date property: The date property.
*
@@ -221,6 +337,17 @@ public LocalDate date() {
return this.date;
}
+ /**
+ * Set the date property: The date property.
+ *
+ * @param date the date value to set.
+ * @return the Builtin object itself.
+ */
+ public Builtin withDate(LocalDate date) {
+ this.date = date;
+ return this;
+ }
+
/**
* Get the dateTime property: The dateTime property.
*
@@ -230,6 +357,17 @@ public OffsetDateTime dateTime() {
return this.dateTime;
}
+ /**
+ * Set the dateTime property: The dateTime property.
+ *
+ * @param dateTime the dateTime value to set.
+ * @return the Builtin object itself.
+ */
+ public Builtin withDateTime(OffsetDateTime dateTime) {
+ this.dateTime = dateTime;
+ return this;
+ }
+
/**
* Get the stringList property: The stringList property.
*
@@ -239,6 +377,17 @@ public List stringList() {
return this.stringList;
}
+ /**
+ * Set the stringList property: The stringList property.
+ *
+ * @param stringList the stringList value to set.
+ * @return the Builtin object itself.
+ */
+ public Builtin withStringList(List stringList) {
+ this.stringList = stringList;
+ return this;
+ }
+
/**
* Get the bytesDict property: The bytesDict property.
*
@@ -248,6 +397,17 @@ public Map bytesDict() {
return this.bytesDict;
}
+ /**
+ * Set the bytesDict property: The bytesDict property.
+ *
+ * @param bytesDict the bytesDict value to set.
+ * @return the Builtin object itself.
+ */
+ public Builtin withBytesDict(Map bytesDict) {
+ this.bytesDict = bytesDict;
+ return this;
+ }
+
/**
* Get the url property: The url property.
*
@@ -257,6 +417,17 @@ public String url() {
return this.url;
}
+ /**
+ * Set the url property: The url property.
+ *
+ * @param url the url value to set.
+ * @return the Builtin object itself.
+ */
+ public Builtin withUrl(String url) {
+ this.url = url;
+ return this;
+ }
+
/**
* Get the nullableFloatDict property: The nullableFloatDict property.
*
@@ -267,12 +438,34 @@ public Map nullableFloatDict() {
}
/**
- * Get the encoded property: The encoded property.
+ * Set the nullableFloatDict property: The nullableFloatDict property.
+ *
+ * @param nullableFloatDict the nullableFloatDict value to set.
+ * @return the Builtin object itself.
+ */
+ public Builtin withNullableFloatDict(Map nullableFloatDict) {
+ this.nullableFloatDict = nullableFloatDict;
+ return this;
+ }
+
+ /**
+ * Get the encoding property: The encoding property.
*
- * @return the encoded value.
+ * @return the encoding value.
*/
- public Encoded encoded() {
- return this.encoded;
+ public Encoded encoding() {
+ return this.encoding;
+ }
+
+ /**
+ * Set the encoding property: The encoding property.
+ *
+ * @param encoding the encoding value to set.
+ * @return the Builtin object itself.
+ */
+ public Builtin withEncoding(Encoded encoding) {
+ this.encoding = encoding;
+ return this;
}
/**
@@ -284,6 +477,37 @@ public String uuid() {
return this.uuid;
}
+ /**
+ * Set the uuid property: The uuid property.
+ *
+ * @param uuid the uuid value to set.
+ * @return the Builtin object itself.
+ */
+ public Builtin withUuid(String uuid) {
+ this.uuid = uuid;
+ return this;
+ }
+
+ /**
+ * Get the unknown property: The unknown property.
+ *
+ * @return the unknown value.
+ */
+ public BinaryData unknown() {
+ return this.unknown;
+ }
+
+ /**
+ * Set the unknown property: The unknown property.
+ *
+ * @param unknown the unknown value to set.
+ * @return the Builtin object itself.
+ */
+ public Builtin withUnknown(BinaryData unknown) {
+ this.unknown = unknown;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -328,15 +552,19 @@ public void validate() {
throw LOGGER.atError()
.log(new IllegalArgumentException("Missing required property nullableFloatDict in model Builtin"));
}
- if (encoded() == null) {
+ if (encoding() == null) {
throw LOGGER.atError()
- .log(new IllegalArgumentException("Missing required property encoded in model Builtin"));
+ .log(new IllegalArgumentException("Missing required property encoding in model Builtin"));
} else {
- encoded().validate();
+ encoding().validate();
}
if (uuid() == null) {
throw LOGGER.atError().log(new IllegalArgumentException("Missing required property uuid in model Builtin"));
}
+ if (unknown() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property unknown in model Builtin"));
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(Builtin.class);
@@ -365,8 +593,10 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("url", this.url);
jsonWriter.writeMapField("nullableFloatDict", this.nullableFloatDict,
(writer, element) -> writer.writeNumber(element));
- jsonWriter.writeJsonField("encoded", this.encoded);
+ jsonWriter.writeJsonField("encoding", this.encoding);
jsonWriter.writeStringField("uuid", this.uuid);
+ jsonWriter.writeFieldName("unknown");
+ this.unknown.writeTo(jsonWriter);
return jsonWriter.writeEndObject();
}
@@ -426,10 +656,13 @@ public static Builtin fromJson(JsonReader jsonReader) throws IOException {
Map nullableFloatDict
= reader.readMap(reader1 -> reader1.getNullable(JsonReader::getDouble));
deserializedBuiltin.nullableFloatDict = nullableFloatDict;
- } else if ("encoded".equals(fieldName)) {
- deserializedBuiltin.encoded = Encoded.fromJson(reader);
+ } else if ("encoding".equals(fieldName)) {
+ deserializedBuiltin.encoding = Encoded.fromJson(reader);
} else if ("uuid".equals(fieldName)) {
deserializedBuiltin.uuid = reader.getString();
+ } else if ("unknown".equals(fieldName)) {
+ deserializedBuiltin.unknown
+ = reader.getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped()));
} else {
reader.skipChildren();
}
diff --git a/typespec-tests/src/main/java/tsptest/armstreamstyleserialization/models/Encoded.java b/typespec-tests/src/main/java/tsptest/armstreamstyleserialization/models/Encoded.java
index 9588c59222..6f6e1555fa 100644
--- a/typespec-tests/src/main/java/tsptest/armstreamstyleserialization/models/Encoded.java
+++ b/typespec-tests/src/main/java/tsptest/armstreamstyleserialization/models/Encoded.java
@@ -4,7 +4,7 @@
package tsptest.armstreamstyleserialization.models;
-import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.Fluent;
import com.azure.core.util.Base64Url;
import com.azure.core.util.CoreUtils;
import com.azure.core.util.DateTimeRfc1123;
@@ -24,7 +24,7 @@
/**
* The Encoded model.
*/
-@Immutable
+@Fluent
public final class Encoded implements JsonSerializable {
private static final byte[] EMPTY_BYTE_ARRAY = new byte[0];
@@ -96,7 +96,7 @@ public final class Encoded implements JsonSerializable {
/**
* Creates an instance of Encoded class.
*/
- private Encoded() {
+ public Encoded() {
}
/**
@@ -111,6 +111,21 @@ public Duration timeInSeconds() {
return Duration.ofSeconds(this.timeInSeconds);
}
+ /**
+ * Set the timeInSeconds property: The timeInSeconds property.
+ *
+ * @param timeInSeconds the timeInSeconds value to set.
+ * @return the Encoded object itself.
+ */
+ public Encoded withTimeInSeconds(Duration timeInSeconds) {
+ if (timeInSeconds == null) {
+ this.timeInSeconds = null;
+ } else {
+ this.timeInSeconds = timeInSeconds.getSeconds();
+ }
+ return this;
+ }
+
/**
* Get the timeInSecondsPrimitive property: The timeInSecondsPrimitive property.
*
@@ -120,6 +135,21 @@ public Duration timeInSecondsPrimitive() {
return Duration.ofSeconds(this.timeInSecondsPrimitive);
}
+ /**
+ * Set the timeInSecondsPrimitive property: The timeInSecondsPrimitive property.
+ *
+ * @param timeInSecondsPrimitive the timeInSecondsPrimitive value to set.
+ * @return the Encoded object itself.
+ */
+ public Encoded withTimeInSecondsPrimitive(Duration timeInSecondsPrimitive) {
+ if (timeInSecondsPrimitive == null) {
+ this.timeInSecondsPrimitive = 0L;
+ } else {
+ this.timeInSecondsPrimitive = timeInSecondsPrimitive.getSeconds();
+ }
+ return this;
+ }
+
/**
* Get the timeInSecondsFraction property: The timeInSecondsFraction property.
*
@@ -132,6 +162,21 @@ public Duration timeInSecondsFraction() {
return Duration.ofNanos((long) (this.timeInSecondsFraction * 1000_000_000L));
}
+ /**
+ * Set the timeInSecondsFraction property: The timeInSecondsFraction property.
+ *
+ * @param timeInSecondsFraction the timeInSecondsFraction value to set.
+ * @return the Encoded object itself.
+ */
+ public Encoded withTimeInSecondsFraction(Duration timeInSecondsFraction) {
+ if (timeInSecondsFraction == null) {
+ this.timeInSecondsFraction = null;
+ } else {
+ this.timeInSecondsFraction = (double) timeInSecondsFraction.toNanos() / 1000_000_000L;
+ }
+ return this;
+ }
+
/**
* Get the timeInSecondsFractionPrimitive property: The timeInSecondsFractionPrimitive property.
*
@@ -141,6 +186,21 @@ public Duration timeInSecondsFractionPrimitive() {
return Duration.ofNanos((long) (this.timeInSecondsFractionPrimitive * 1000_000_000L));
}
+ /**
+ * Set the timeInSecondsFractionPrimitive property: The timeInSecondsFractionPrimitive property.
+ *
+ * @param timeInSecondsFractionPrimitive the timeInSecondsFractionPrimitive value to set.
+ * @return the Encoded object itself.
+ */
+ public Encoded withTimeInSecondsFractionPrimitive(Duration timeInSecondsFractionPrimitive) {
+ if (timeInSecondsFractionPrimitive == null) {
+ this.timeInSecondsFractionPrimitive = 0.0;
+ } else {
+ this.timeInSecondsFractionPrimitive = (double) timeInSecondsFractionPrimitive.toNanos() / 1000_000_000L;
+ }
+ return this;
+ }
+
/**
* Get the dateTime property: The dateTime property.
*
@@ -150,6 +210,17 @@ public OffsetDateTime dateTime() {
return this.dateTime;
}
+ /**
+ * Set the dateTime property: The dateTime property.
+ *
+ * @param dateTime the dateTime value to set.
+ * @return the Encoded object itself.
+ */
+ public Encoded withDateTime(OffsetDateTime dateTime) {
+ this.dateTime = dateTime;
+ return this;
+ }
+
/**
* Get the dateTimeRfc7231 property: The dateTimeRfc7231 property.
*
@@ -162,6 +233,21 @@ public OffsetDateTime dateTimeRfc7231() {
return this.dateTimeRfc7231.getDateTime();
}
+ /**
+ * Set the dateTimeRfc7231 property: The dateTimeRfc7231 property.
+ *
+ * @param dateTimeRfc7231 the dateTimeRfc7231 value to set.
+ * @return the Encoded object itself.
+ */
+ public Encoded withDateTimeRfc7231(OffsetDateTime dateTimeRfc7231) {
+ if (dateTimeRfc7231 == null) {
+ this.dateTimeRfc7231 = null;
+ } else {
+ this.dateTimeRfc7231 = new DateTimeRfc1123(dateTimeRfc7231);
+ }
+ return this;
+ }
+
/**
* Get the unixTimestamp property: The unixTimestamp property.
*
@@ -174,6 +260,21 @@ public OffsetDateTime unixTimestamp() {
return OffsetDateTime.ofInstant(Instant.ofEpochSecond(this.unixTimestamp), ZoneOffset.UTC);
}
+ /**
+ * Set the unixTimestamp property: The unixTimestamp property.
+ *
+ * @param unixTimestamp the unixTimestamp value to set.
+ * @return the Encoded object itself.
+ */
+ public Encoded withUnixTimestamp(OffsetDateTime unixTimestamp) {
+ if (unixTimestamp == null) {
+ this.unixTimestamp = null;
+ } else {
+ this.unixTimestamp = unixTimestamp.toEpochSecond();
+ }
+ return this;
+ }
+
/**
* Get the unixTimestampPrimitive property: The unixTimestampPrimitive property.
*
@@ -183,6 +284,21 @@ public OffsetDateTime unixTimestampPrimitive() {
return OffsetDateTime.ofInstant(Instant.ofEpochSecond(this.unixTimestampPrimitive), ZoneOffset.UTC);
}
+ /**
+ * Set the unixTimestampPrimitive property: The unixTimestampPrimitive property.
+ *
+ * @param unixTimestampPrimitive the unixTimestampPrimitive value to set.
+ * @return the Encoded object itself.
+ */
+ public Encoded withUnixTimestampPrimitive(OffsetDateTime unixTimestampPrimitive) {
+ if (unixTimestampPrimitive == null) {
+ this.unixTimestampPrimitive = 0L;
+ } else {
+ this.unixTimestampPrimitive = unixTimestampPrimitive.toEpochSecond();
+ }
+ return this;
+ }
+
/**
* Get the base64 property: The base64 property.
*
@@ -192,6 +308,17 @@ public byte[] base64() {
return CoreUtils.clone(this.base64);
}
+ /**
+ * Set the base64 property: The base64 property.
+ *
+ * @param base64 the base64 value to set.
+ * @return the Encoded object itself.
+ */
+ public Encoded withBase64(byte[] base64) {
+ this.base64 = CoreUtils.clone(base64);
+ return this;
+ }
+
/**
* Get the base64url property: The base64url property.
*
@@ -204,6 +331,21 @@ public byte[] base64url() {
return this.base64url.decodedBytes();
}
+ /**
+ * Set the base64url property: The base64url property.
+ *
+ * @param base64url the base64url value to set.
+ * @return the Encoded object itself.
+ */
+ public Encoded withBase64url(byte[] base64url) {
+ if (base64url == null) {
+ this.base64url = null;
+ } else {
+ this.base64url = Base64Url.encode(CoreUtils.clone(base64url));
+ }
+ return this;
+ }
+
/**
* Get the unknownDurationFormat property: The unknownDurationFormat property.
*
@@ -213,6 +355,17 @@ public String unknownDurationFormat() {
return this.unknownDurationFormat;
}
+ /**
+ * Set the unknownDurationFormat property: The unknownDurationFormat property.
+ *
+ * @param unknownDurationFormat the unknownDurationFormat value to set.
+ * @return the Encoded object itself.
+ */
+ public Encoded withUnknownDurationFormat(String unknownDurationFormat) {
+ this.unknownDurationFormat = unknownDurationFormat;
+ return this;
+ }
+
/**
* Get the unknownDateTimeFormat property: The unknownDateTimeFormat property.
*
@@ -222,6 +375,17 @@ public String unknownDateTimeFormat() {
return this.unknownDateTimeFormat;
}
+ /**
+ * Set the unknownDateTimeFormat property: The unknownDateTimeFormat property.
+ *
+ * @param unknownDateTimeFormat the unknownDateTimeFormat value to set.
+ * @return the Encoded object itself.
+ */
+ public Encoded withUnknownDateTimeFormat(String unknownDateTimeFormat) {
+ this.unknownDateTimeFormat = unknownDateTimeFormat;
+ return this;
+ }
+
/**
* Get the unknownBytes property: The unknownBytes property.
*
@@ -231,6 +395,17 @@ public String unknownBytes() {
return this.unknownBytes;
}
+ /**
+ * Set the unknownBytes property: The unknownBytes property.
+ *
+ * @param unknownBytes the unknownBytes value to set.
+ * @return the Encoded object itself.
+ */
+ public Encoded withUnknownBytes(String unknownBytes) {
+ this.unknownBytes = unknownBytes;
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/typespec-tests/src/test/java/azure/resourcemanager/multiservicesharedmodels/ArmMultiServiceSharedModelsTests.java b/typespec-tests/src/test/java/azure/resourcemanager/multiservicesharedmodels/ArmMultiServiceSharedModelsTests.java
index 7dd7e97fb3..9258aa5d4f 100644
--- a/typespec-tests/src/test/java/azure/resourcemanager/multiservicesharedmodels/ArmMultiServiceSharedModelsTests.java
+++ b/typespec-tests/src/test/java/azure/resourcemanager/multiservicesharedmodels/ArmMultiServiceSharedModelsTests.java
@@ -10,7 +10,6 @@
import com.azure.core.management.Region;
import java.util.HashMap;
import java.util.Map;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.utils.ArmUtils;
@@ -24,7 +23,6 @@ public final class ArmMultiServiceSharedModelsTests {
private static final Region REGION_VM = Region.US_EAST;
@Test
- @Disabled("route in code is wrong: /Microsoft.Compute/storageAccounts/account1")
public void testCombinedClient() {
Map storageTags = new HashMap<>();
storageTags.put("department", "engineering");
diff --git a/typespec-tests/tsp/arm-stream-style-serialization.tsp b/typespec-tests/tsp/arm-stream-style-serialization.tsp
index 3d45287f07..4ae6f69c18 100644
--- a/typespec-tests/tsp/arm-stream-style-serialization.tsp
+++ b/typespec-tests/tsp/arm-stream-style-serialization.tsp
@@ -287,6 +287,8 @@ model ResultData {
prop2: string;
}
+// test the serializaton of "unknown"
+@usage(Usage.input | Usage.output)
model Builtin {
boolean: boolean;
string: string;
@@ -304,8 +306,9 @@ model Builtin {
bytesDict: Record;
url: url;
nullableFloatDict: Record;
- encoded: Encoded;
+ encoding: Encoded;
uuid: Azure.Core.uuid;
+ `unknown`: unknown;
}
@encode(DurationKnownEncoding.seconds, float32)
diff --git a/typespec-tests/tsp/arm.tsp b/typespec-tests/tsp/arm.tsp
index ba69491510..f7658dee8e 100644
--- a/typespec-tests/tsp/arm.tsp
+++ b/typespec-tests/tsp/arm.tsp
@@ -306,6 +306,14 @@ interface TopLevelArmResourceInterface
Result,
Azure.ResourceManager.Foundations.BaseParameters
>;
+
+ @action("publishxml")
+ publishXml is ArmResourceActionSync<
+ TopLevelArmResource,
+ void,
+ File<"application/xml", bytes>,
+ Azure.ResourceManager.Foundations.BaseParameters
+ >;
}
@armResourceOperations
diff --git a/vanilla-tests/pom.xml b/vanilla-tests/pom.xml
index b7479ede69..8c5dcb117b 100644
--- a/vanilla-tests/pom.xml
+++ b/vanilla-tests/pom.xml
@@ -27,12 +27,12 @@
com.azure
azure-json
- 1.5.0
+ 1.5.1
com.azure
azure-xml
- 1.2.0
+ 1.2.1
com.fasterxml.jackson.dataformat
@@ -42,7 +42,7 @@
com.azure
azure-core-test
- 1.27.0-beta.13
+ 1.27.0-beta.14
test