diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json index 55e7152fbbad..b3432517b837 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -1,11 +1,11 @@ { "name": "emitter-consumer", - "lockfileVersion": 2, + "lockfileVersion": 3, "requires": true, "packages": { "": { "dependencies": { - "@azure-tools/typespec-java": "/mnt/c/github/autorest.java/typespec-extension/azure-tools-typespec-java-0.15.2.tgz" + "@azure-tools/typespec-java": "0.15.3" }, "devDependencies": { "@azure-tools/typespec-azure-core": "0.40.0", @@ -96,10 +96,9 @@ } }, "node_modules/@azure-tools/typespec-java": { - "version": "0.15.2", - "resolved": "file:../../../mnt/c/github/autorest.java/typespec-extension/azure-tools-typespec-java-0.15.2.tgz", - "integrity": "sha512-mrA3/BsnwtY1R/3cfyS1uod/e7lLlERVeroibWlcSRBZ9jgtwSWcCDZ6+24k1Wq26bCOTbJMxFCsto8m4PiTnw==", - "license": "MIT", + "version": "0.15.3", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-java/-/typespec-java-0.15.3.tgz", + "integrity": "sha512-KKeA2r1/6DTKYGtCwr+qGNsBRN4KSu92PxUdmi1HatkZvi+YIDzMwRCYz17M61ZQuit2vYTJvvvQAg+powgAag==", "dependencies": { "@autorest/codemodel": "~4.20.0", "js-yaml": "~4.1.0", @@ -1044,720 +1043,5 @@ "node": ">=12" } } - }, - "dependencies": { - "@autorest/codemodel": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/@autorest/codemodel/-/codemodel-4.20.0.tgz", - "integrity": "sha512-Z2GwVwAGNTcfGUmrWT5LJqZv/WDXKBBpxhZrHu6zco/HrEGrqKQcKx5whlLX/GmAB/KmhcOWYr6aIyWomcoisQ==", - "requires": { - "@azure-tools/codegen": "~2.10.0", - "js-yaml": "~4.1.0" - } - }, - "@azure-tools/async-io": { - "version": "3.0.254", - "resolved": "https://registry.npmjs.org/@azure-tools/async-io/-/async-io-3.0.254.tgz", - "integrity": "sha512-X1C7XdyCuo50ch9FzKtTvmK18FgDxxf1Bbt3cSoknQqeDaRegHSSCO+zByq2YA4NvUzKXeZ1engh29IDxZXgpQ==", - "requires": { - "@azure-tools/tasks": "~3.0.255", - "proper-lockfile": "~2.0.1" - } - }, - "@azure-tools/codegen": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/@azure-tools/codegen/-/codegen-2.10.0.tgz", - "integrity": "sha512-gdy0at3BUZAAARgiX9Ye6SNCKhcjLs5FNUewa/KV/dMGcPv7mBvbslt5VO3W8wj0n96ifk970aIFaivjacBxeQ==", - "requires": { - "@azure-tools/async-io": "~3.0.0", - "js-yaml": "~4.1.0", - "semver": "^7.3.5" - } - }, - "@azure-tools/tasks": { - "version": "3.0.255", - "resolved": "https://registry.npmjs.org/@azure-tools/tasks/-/tasks-3.0.255.tgz", - "integrity": "sha512-GjALNLz7kWMEdRVbaN5g0cJHNAr3XVTbP0611Mv2UzMgGL6FOhNZJK+oPHJKLDR8EEDZNnkwPlyi7B+INXUSQA==" - }, - "@azure-tools/typespec-azure-core": { - "version": "0.40.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.40.0.tgz", - "integrity": "sha512-l5U47zXKYQKFbipRQLpjG4EwvPJg0SogdFEe5a3rRr7mUy8sWPkciHpngLZVOd2cKZQD5m7nqwfWL798I9TJnQ==", - "dev": true - }, - "@azure-tools/typespec-client-generator-core": { - "version": "0.40.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.40.0.tgz", - "integrity": "sha512-Nm/OfDtSWBr1lylISbXR37B9QKWlZHK1j4T8L439Y1v3VcvJsC/0F5PLemY0odHpOYZNwu2uevJjAeM5W56wlw==", - "dev": true, - "requires": { - "change-case": "~5.4.2", - "pluralize": "^8.0.0" - } - }, - "@azure-tools/typespec-java": { - "version": "file:/mnt/c/github/autorest.java/typespec-extension/azure-tools-typespec-java-0.15.2.tgz", - "integrity": "sha512-mrA3/BsnwtY1R/3cfyS1uod/e7lLlERVeroibWlcSRBZ9jgtwSWcCDZ6+24k1Wq26bCOTbJMxFCsto8m4PiTnw==", - "requires": { - "@autorest/codemodel": "~4.20.0", - "js-yaml": "~4.1.0", - "lodash": "~4.17.21" - } - }, - "@babel/code-frame": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", - "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", - "dev": true, - "requires": { - "@babel/highlight": "^7.23.4", - "chalk": "^2.4.2" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", - "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", - "dev": true - }, - "@babel/highlight": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", - "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.22.20", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0" - } - }, - "@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - } - }, - "@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true - }, - "@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "requires": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - } - }, - "@sindresorhus/merge-streams": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-2.3.0.tgz", - "integrity": "sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==", - "dev": true - }, - "@typespec/compiler": { - "version": "0.54.0", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.54.0.tgz", - "integrity": "sha512-lxMqlvUq5m1KZUjg+IoM/gEwY+yeSjjnpUsz6wmzjK4cO9cIY4wPJdrZwe8jUc2UFOoqKXN3AK8N1UWxA+w9Dg==", - "dev": true, - "requires": { - "@babel/code-frame": "~7.23.5", - "ajv": "~8.12.0", - "change-case": "~5.4.2", - "globby": "~14.0.0", - "mustache": "~4.2.0", - "picocolors": "~1.0.0", - "prettier": "~3.2.5", - "prompts": "~2.4.2", - "semver": "^7.6.0", - "vscode-languageserver": "~9.0.1", - "vscode-languageserver-textdocument": "~1.0.11", - "yaml": "~2.3.4", - "yargs": "~17.7.2" - } - }, - "@typespec/http": { - "version": "0.54.0", - "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.54.0.tgz", - "integrity": "sha512-/hZd9pkjJh3ogOekyKzZnpVV2kXzxtWDiTt3Gekc6iHTGk/CE1JpRFts8xwXoI5d3FqYotfb4w5ztVw62WjOcA==", - "dev": true - }, - "@typespec/openapi": { - "version": "0.54.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.54.0.tgz", - "integrity": "sha512-QJkwq3whcqKb29ScMD5IQzqvDmPQyLAubRl82Zj6kVMCqabRwegOX9aN+K0083nci65zt9rflZbv9bKY5GRy/A==", - "dev": true - }, - "@typespec/rest": { - "version": "0.54.0", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.54.0.tgz", - "integrity": "sha512-F1hq/Per9epPJQ8Ey84mAtrgrZeLu6fDMIxNao1XlTfDEFZuYgFuCSyg0pyIi0Xg7KUBMvrvSv83WoF3mN2szw==", - "dev": true - }, - "@typespec/versioning": { - "version": "0.54.0", - "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.54.0.tgz", - "integrity": "sha512-IlGpveOJ0WBTbn3w8nfzgSNhJWNd0+H+bo1Ljrjpeb9SFQmS8bX2fDf0vqsHVl50XgvKIZxgOpEXN5TmuzNnRw==", - "dev": true - }, - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "requires": { - "fill-range": "^7.0.1" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "change-case": { - "version": "5.4.3", - "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.3.tgz", - "integrity": "sha512-4cdyvorTy/lViZlVzw2O8/hHCLUuHqp4KpSSP3DlauhFCf3LdnfF+p5s0EAhjKsU7bqrMzu7iQArYfoPiHO2nw==", - "dev": true - }, - "cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "escalade": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", - "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "fast-glob": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", - "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - } - }, - "fastq": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", - "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", - "dev": true, - "requires": { - "reusify": "^1.0.4" - } - }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true - }, - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - }, - "globby": { - "version": "14.0.1", - "resolved": "https://registry.npmjs.org/globby/-/globby-14.0.1.tgz", - "integrity": "sha512-jOMLD2Z7MAhyG8aJpNOpmziMOP4rPLcc95oQPKXBazW82z+CEgPFBQvEpRUa1KeIMUJo4Wsm+q6uzO/Q/4BksQ==", - "dev": true, - "requires": { - "@sindresorhus/merge-streams": "^2.1.0", - "fast-glob": "^3.3.2", - "ignore": "^5.2.4", - "path-type": "^5.0.0", - "slash": "^5.1.0", - "unicorn-magic": "^0.1.0" - } - }, - "graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true - }, - "ignore": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", - "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", - "dev": true - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "requires": { - "argparse": "^2.0.1" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", - "dev": true - }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "requires": { - "yallist": "^4.0.0" - } - }, - "merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true - }, - "micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dev": true, - "requires": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - } - }, - "mustache": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz", - "integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==", - "dev": true - }, - "path-type": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-5.0.0.tgz", - "integrity": "sha512-5HviZNaZcfqP95rwpv+1HDgUamezbqdSYTyzjTvwtJSnIH+3vnbmWsItli8OFEndS984VT55M3jduxZbX351gg==", - "dev": true - }, - "picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true - }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true - }, - "pluralize": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", - "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", - "dev": true - }, - "prettier": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", - "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", - "dev": true - }, - "prompts": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "dev": true, - "requires": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - } - }, - "proper-lockfile": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/proper-lockfile/-/proper-lockfile-2.0.1.tgz", - "integrity": "sha512-rjaeGbsmhNDcDInmwi4MuI6mRwJu6zq8GjYCLuSuE7GF+4UjgzkL69sVKKJ2T2xH61kK7rXvGYpvaTu909oXaQ==", - "requires": { - "graceful-fs": "^4.1.2", - "retry": "^0.10.0" - } - }, - "punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true - }, - "queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true - }, - "require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true - }, - "retry": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.10.1.tgz", - "integrity": "sha512-ZXUSQYTHdl3uS7IuCehYfMzKyIDBNoAuUblvy5oGO5UJSUTmStUUVPXbA9Qxd173Bgre53yCQczQuHgRWAdvJQ==" - }, - "reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true - }, - "run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "requires": { - "queue-microtask": "^1.2.2" - } - }, - "semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "requires": { - "lru-cache": "^6.0.0" - } - }, - "sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true - }, - "slash": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-5.1.0.tgz", - "integrity": "sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==", - "dev": true - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { - "is-number": "^7.0.0" - } - }, - "unicorn-magic": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.1.0.tgz", - "integrity": "sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==", - "dev": true - }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "requires": { - "punycode": "^2.1.0" - } - }, - "vscode-jsonrpc": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-8.2.0.tgz", - "integrity": "sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA==", - "dev": true - }, - "vscode-languageserver": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-9.0.1.tgz", - "integrity": "sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g==", - "dev": true, - "requires": { - "vscode-languageserver-protocol": "3.17.5" - } - }, - "vscode-languageserver-protocol": { - "version": "3.17.5", - "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.5.tgz", - "integrity": "sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg==", - "dev": true, - "requires": { - "vscode-jsonrpc": "8.2.0", - "vscode-languageserver-types": "3.17.5" - } - }, - "vscode-languageserver-textdocument": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.11.tgz", - "integrity": "sha512-X+8T3GoiwTVlJbicx/sIAF+yuJAqz8VvwJyoMVhwEMoEKE/fkDmrqUgDMyBECcM2A2frVZIUj5HI/ErRXCfOeA==", - "dev": true - }, - "vscode-languageserver-types": { - "version": "3.17.5", - "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz", - "integrity": "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==", - "dev": true - }, - "wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - } - } - }, - "y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, - "yaml": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.4.tgz", - "integrity": "sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==", - "dev": true - }, - "yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dev": true, - "requires": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - } - }, - "yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true - } } } diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 0f756848584f..99f7ef0d74a7 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,15 +1,15 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-java": "/mnt/c/github/autorest.java/typespec-extension/azure-tools-typespec-java-0.15.2.tgz" + "@azure-tools/typespec-java": "0.15.3" }, "devDependencies": { - "@typespec/http": "0.54.0", - "@typespec/openapi": "0.54.0", - "@azure-tools/typespec-azure-core": "0.40.0", - "@azure-tools/typespec-client-generator-core": "0.40.0", "@typespec/rest": "0.54.0", "@typespec/versioning": "0.54.0", - "@typespec/compiler": "0.54.0" + "@typespec/compiler": "0.54.0", + "@azure-tools/typespec-client-generator-core": "0.40.0", + "@typespec/http": "0.54.0", + "@azure-tools/typespec-azure-core": "0.40.0", + "@typespec/openapi": "0.54.0" } } diff --git a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterAdministrationAsyncClient.java b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterAdministrationAsyncClient.java index daffff60bbd2..f209473f0057 100644 --- a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterAdministrationAsyncClient.java +++ b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterAdministrationAsyncClient.java @@ -4,26 +4,10 @@ package com.azure.communication.jobrouter; import com.azure.communication.jobrouter.implementation.JobRouterAdministrationClientImpl; -import com.azure.communication.jobrouter.implementation.accesshelpers.ClassificationPolicyConstructorProxy; -import com.azure.communication.jobrouter.implementation.accesshelpers.DistributionPolicyConstructorProxy; -import com.azure.communication.jobrouter.implementation.accesshelpers.ExceptionPolicyConstructorProxy; -import com.azure.communication.jobrouter.implementation.accesshelpers.RouterQueueConstructorProxy; -import com.azure.communication.jobrouter.implementation.converters.ClassificationPolicyAdapter; -import com.azure.communication.jobrouter.implementation.converters.DistributionPolicyAdapter; -import com.azure.communication.jobrouter.implementation.converters.ExceptionPolicyAdapter; -import com.azure.communication.jobrouter.implementation.converters.QueueAdapter; import com.azure.communication.jobrouter.implementation.models.ClassificationPolicyInternal; import com.azure.communication.jobrouter.implementation.models.DistributionPolicyInternal; import com.azure.communication.jobrouter.implementation.models.ExceptionPolicyInternal; import com.azure.communication.jobrouter.implementation.models.RouterQueueInternal; -import com.azure.communication.jobrouter.models.ClassificationPolicy; -import com.azure.communication.jobrouter.models.CreateClassificationPolicyOptions; -import com.azure.communication.jobrouter.models.CreateDistributionPolicyOptions; -import com.azure.communication.jobrouter.models.CreateExceptionPolicyOptions; -import com.azure.communication.jobrouter.models.CreateQueueOptions; -import com.azure.communication.jobrouter.models.DistributionPolicy; -import com.azure.communication.jobrouter.models.ExceptionPolicy; -import com.azure.communication.jobrouter.models.RouterQueue; import com.azure.core.annotation.Generated; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; @@ -43,6 +27,22 @@ import java.util.stream.Collectors; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import com.azure.communication.jobrouter.implementation.accesshelpers.ClassificationPolicyConstructorProxy; +import com.azure.communication.jobrouter.implementation.accesshelpers.DistributionPolicyConstructorProxy; +import com.azure.communication.jobrouter.implementation.accesshelpers.ExceptionPolicyConstructorProxy; +import com.azure.communication.jobrouter.implementation.accesshelpers.RouterQueueConstructorProxy; +import com.azure.communication.jobrouter.implementation.converters.ClassificationPolicyAdapter; +import com.azure.communication.jobrouter.implementation.converters.DistributionPolicyAdapter; +import com.azure.communication.jobrouter.implementation.converters.ExceptionPolicyAdapter; +import com.azure.communication.jobrouter.implementation.converters.QueueAdapter; +import com.azure.communication.jobrouter.models.ClassificationPolicy; +import com.azure.communication.jobrouter.models.CreateClassificationPolicyOptions; +import com.azure.communication.jobrouter.models.CreateDistributionPolicyOptions; +import com.azure.communication.jobrouter.models.CreateExceptionPolicyOptions; +import com.azure.communication.jobrouter.models.CreateQueueOptions; +import com.azure.communication.jobrouter.models.DistributionPolicy; +import com.azure.communication.jobrouter.models.ExceptionPolicy; +import com.azure.communication.jobrouter.models.RouterQueue; /** * Initializes a new instance of the asynchronous JobRouterAdministrationClient type. @@ -65,34 +65,15 @@ public final class JobRouterAdministrationAsyncClient { /** * Creates or updates a distribution policy. - *
- * Header Parameters - *
+ *Header Parameters
*| Name | - *Type | - *Required | - *Description | - *
|---|---|---|---|
| If-Match | - *String | - *No | - *The request should only proceed if an entity matches this string. | - *
| If-Unmodified-Since | - *OffsetDateTime | - *No | - *The request should only proceed if the entity was not modified after this time. | - *
| Name | Type | Required | Description |
| If-Match | String | No | The request should only proceed if an entity matches this string. |
| If-Unmodified-Since | OffsetDateTime | No | The request should only proceed if the entity was not modified after this time. |
- * Request Body Schema - *
+ *Request Body Schema
*{@code
* {
* etag: String (Required)
@@ -100,15 +81,14 @@ public final class JobRouterAdministrationAsyncClient {
* name: String (Optional)
* offerExpiresAfterSeconds: Double (Optional)
* mode (Optional): {
+ * kind: String(bestWorker/longestIdle/roundRobin) (Required)
* minConcurrentOffers: Integer (Optional)
* maxConcurrentOffers: Integer (Optional)
* bypassSelectors: Boolean (Optional)
* }
* }
* }
- * - * Response Body Schema - *
+ *Response Body Schema
*{@code
* {
* etag: String (Required)
@@ -116,6 +96,7 @@ public final class JobRouterAdministrationAsyncClient {
* name: String (Optional)
* offerExpiresAfterSeconds: Double (Optional)
* mode (Optional): {
+ * kind: String(bestWorker/longestIdle/roundRobin) (Required)
* minConcurrentOffers: Integer (Optional)
* maxConcurrentOffers: Integer (Optional)
* bypassSelectors: Boolean (Optional)
@@ -130,15 +111,13 @@ public final class JobRouterAdministrationAsyncClient {
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return policy governing how jobs are distributed to workers along with {@link Response} on successful completion
- * of {@link Mono}.
+ * @return policy governing how jobs are distributed to workers along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> upsertDistributionPolicyWithResponse(String distributionPolicyId, BinaryData resource,
RequestOptions requestOptions) {
- // Convenience API is not generated, as operation 'upsertDistributionPolicy' is 'application/merge-patch+json'
- // and stream-style-serialization is not enabled
+ // Convenience API is not generated, as operation 'upsertDistributionPolicy' is 'application/merge-patch+json' and stream-style-serialization is not enabled
return this.serviceClient.upsertDistributionPolicyWithResponseAsync(distributionPolicyId, resource,
requestOptions);
}
@@ -334,9 +313,7 @@ public Mono updateDistributionPolicy(String distributionPolicyId, Bi
/**
* Retrieves an existing distribution policy by Id.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -344,6 +321,7 @@ public Mono updateDistributionPolicy(String distributionPolicyId, Bi
* name: String (Optional)
* offerExpiresAfterSeconds: Double (Optional)
* mode (Optional): {
+ * kind: String(bestWorker/longestIdle/roundRobin) (Required)
* minConcurrentOffers: Integer (Optional)
* maxConcurrentOffers: Integer (Optional)
* bypassSelectors: Boolean (Optional)
@@ -357,8 +335,7 @@ public Mono updateDistributionPolicy(String distributionPolicyId, Bi
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return policy governing how jobs are distributed to workers along with {@link Response} on successful completion
- * of {@link Mono}.
+ * @return policy governing how jobs are distributed to workers along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -369,28 +346,14 @@ public Mono> getDistributionPolicyWithResponse(String distr
/**
* Retrieves existing distribution policies.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -398,6 +361,7 @@ public Mono> getDistributionPolicyWithResponse(String distr
* name: String (Optional)
* offerExpiresAfterSeconds: Double (Optional)
* mode (Optional): {
+ * kind: String(bestWorker/longestIdle/roundRobin) (Required)
* minConcurrentOffers: Integer (Optional)
* maxConcurrentOffers: Integer (Optional)
* bypassSelectors: Boolean (Optional)
@@ -438,34 +402,15 @@ public Mono> deleteDistributionPolicyWithResponse(String distribu
/**
* Creates or updates a classification policy.
- *
- * Header Parameters
- *
+ * Header Parameters
*
- * Header Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * If-Match
- * String
- * No
- * The request should only proceed if an entity matches this string.
- *
- *
- * If-Unmodified-Since
- * OffsetDateTime
- * No
- * The request should only proceed if the entity was not modified after this time.
- *
+ * Header Parameters
+ * Name Type Required Description
+ * If-Match String No The request should only proceed if an entity matches this string.
+ * If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time.
*
* You can add these to a request with {@link RequestOptions#addHeader}
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* etag: String (Required)
@@ -474,19 +419,20 @@ public Mono> deleteDistributionPolicyWithResponse(String distribu
* fallbackQueueId: String (Optional)
* queueSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* prioritizationRule (Optional): {
+ * kind: String(directMap/expression/function/static/webhook) (Required)
* }
* workerSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -495,12 +441,15 @@ public Mono> deleteDistributionPolicyWithResponse(String distribu
* fallbackQueueId: String (Optional)
* queueSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* prioritizationRule (Optional): {
+ * kind: String(directMap/expression/function/static/webhook) (Required)
* }
* workerSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* }
@@ -513,15 +462,13 @@ public Mono> deleteDistributionPolicyWithResponse(String distribu
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return a container for the rules that govern how jobs are classified along with {@link Response} on successful
- * completion of {@link Mono}.
+ * @return a container for the rules that govern how jobs are classified along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> upsertClassificationPolicyWithResponse(String classificationPolicyId,
BinaryData resource, RequestOptions requestOptions) {
- // Convenience API is not generated, as operation 'upsertClassificationPolicy' is 'application/merge-patch+json'
- // and stream-style-serialization is not enabled
+ // Convenience API is not generated, as operation 'upsertClassificationPolicy' is 'application/merge-patch+json' and stream-style-serialization is not enabled
return this.serviceClient.upsertClassificationPolicyWithResponseAsync(classificationPolicyId, resource,
requestOptions);
}
@@ -740,9 +687,7 @@ public Mono updateClassificationPolicy(String classificationPolicyId
/**
* Retrieves an existing classification policy by Id.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -751,12 +696,15 @@ public Mono updateClassificationPolicy(String classificationPolicyId
* fallbackQueueId: String (Optional)
* queueSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* prioritizationRule (Optional): {
+ * kind: String(directMap/expression/function/static/webhook) (Required)
* }
* workerSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* }
@@ -768,8 +716,7 @@ public Mono updateClassificationPolicy(String classificationPolicyId
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return a container for the rules that govern how jobs are classified along with {@link Response} on successful
- * completion of {@link Mono}.
+ * @return a container for the rules that govern how jobs are classified along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -780,28 +727,14 @@ public Mono> getClassificationPolicyWithResponse(String cla
/**
* Retrieves existing classification policies.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -810,12 +743,15 @@ public Mono> getClassificationPolicyWithResponse(String cla
* fallbackQueueId: String (Optional)
* queueSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* prioritizationRule (Optional): {
+ * kind: String(directMap/expression/function/static/webhook) (Required)
* }
* workerSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* }
@@ -854,34 +790,15 @@ public Mono> deleteClassificationPolicyWithResponse(String classi
/**
* Creates or updates a exception policy.
- *
- * Header Parameters
- *
+ * Header Parameters
*
- * Header Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * If-Match
- * String
- * No
- * The request should only proceed if an entity matches this string.
- *
- *
- * If-Unmodified-Since
- * OffsetDateTime
- * No
- * The request should only proceed if the entity was not modified after this time.
- *
+ * Header Parameters
+ * Name Type Required Description
+ * If-Match String No The request should only proceed if an entity matches this string.
+ * If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time.
*
* You can add these to a request with {@link RequestOptions#addHeader}
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* etag: String (Required)
@@ -891,9 +808,11 @@ public Mono> deleteClassificationPolicyWithResponse(String classi
* (Optional){
* id: String (Required)
* trigger (Required): {
+ * kind: String(queueLength/waitTime) (Required)
* }
* actions (Required): [
* (Required){
+ * kind: String(cancel/manualReclassify/reclassify) (Required)
* id: String (Optional)
* }
* ]
@@ -901,9 +820,7 @@ public Mono> deleteClassificationPolicyWithResponse(String classi
* ]
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -913,9 +830,11 @@ public Mono> deleteClassificationPolicyWithResponse(String classi
* (Optional){
* id: String (Required)
* trigger (Required): {
+ * kind: String(queueLength/waitTime) (Required)
* }
* actions (Required): [
* (Required){
+ * kind: String(cancel/manualReclassify/reclassify) (Required)
* id: String (Optional)
* }
* ]
@@ -931,15 +850,13 @@ public Mono> deleteClassificationPolicyWithResponse(String classi
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return a policy that defines actions to execute when exception are triggered along with {@link Response} on
- * successful completion of {@link Mono}.
+ * @return a policy that defines actions to execute when exception are triggered along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> upsertExceptionPolicyWithResponse(String exceptionPolicyId, BinaryData resource,
RequestOptions requestOptions) {
- // Convenience API is not generated, as operation 'upsertExceptionPolicy' is 'application/merge-patch+json' and
- // stream-style-serialization is not enabled
+ // Convenience API is not generated, as operation 'upsertExceptionPolicy' is 'application/merge-patch+json' and stream-style-serialization is not enabled
return this.serviceClient.upsertExceptionPolicyWithResponseAsync(exceptionPolicyId, resource, requestOptions);
}
@@ -1261,34 +1178,15 @@ public Mono> deleteExceptionPolicyWithResponse(String exceptionPo
/**
* Creates or updates a queue.
- *
- * Header Parameters
- *
+ * Header Parameters
*
- * Header Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * If-Match
- * String
- * No
- * The request should only proceed if an entity matches this string.
- *
- *
- * If-Unmodified-Since
- * OffsetDateTime
- * No
- * The request should only proceed if the entity was not modified after this time.
- *
+ * Header Parameters
+ * Name Type Required Description
+ * If-Match String No The request should only proceed if an entity matches this string.
+ * If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time.
*
* You can add these to a request with {@link RequestOptions#addHeader}
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* etag: String (Required)
@@ -1301,9 +1199,7 @@ public Mono> deleteExceptionPolicyWithResponse(String exceptionPo
* exceptionPolicyId: String (Optional)
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1324,15 +1220,13 @@ public Mono> deleteExceptionPolicyWithResponse(String exceptionPo
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return a queue that can contain jobs to be routed along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return a queue that can contain jobs to be routed along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> upsertQueueWithResponse(String queueId, BinaryData resource,
RequestOptions requestOptions) {
- // Convenience API is not generated, as operation 'upsertQueue' is 'application/merge-patch+json' and
- // stream-style-serialization is not enabled
+ // Convenience API is not generated, as operation 'upsertQueue' is 'application/merge-patch+json' and stream-style-serialization is not enabled
return this.serviceClient.upsertQueueWithResponseAsync(queueId, resource, requestOptions);
}
@@ -1522,9 +1416,7 @@ public Mono createQueue(CreateQueueOptions createQueueOptions) {
/**
* Retrieves an existing queue by Id.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1544,8 +1436,7 @@ public Mono createQueue(CreateQueueOptions createQueueOptions) {
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return a queue that can contain jobs to be routed along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return a queue that can contain jobs to be routed along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1555,28 +1446,14 @@ public Mono> getQueueWithResponse(String queueId, RequestOp
/**
* Retrieves existing queues.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1656,11 +1533,13 @@ public PagedFlux listDistributionPolicies() {
RequestOptions requestOptions = new RequestOptions();
PagedFlux pagedFluxResponse = listDistributionPolicies(requestOptions);
return PagedFlux.create(() -> (continuationToken, pageSize) -> {
- Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+ Flux> flux = (continuationToken == null)
+ ? pagedFluxResponse.byPage().take(1)
: pagedFluxResponse.byPage(continuationToken).take(1);
return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
- pagedResponse.getValue().stream()
+ pagedResponse.getValue()
+ .stream()
.map(protocolMethodData -> protocolMethodData.toObject(DistributionPolicy.class))
.collect(Collectors.toList()),
pagedResponse.getContinuationToken(), null));
@@ -1723,12 +1602,14 @@ public PagedFlux listClassificationPolicies() {
RequestOptions requestOptions = new RequestOptions();
PagedFlux pagedFluxResponse = listClassificationPolicies(requestOptions);
return PagedFlux.create(() -> (continuationToken, pageSize) -> {
- Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+ Flux> flux = (continuationToken == null)
+ ? pagedFluxResponse.byPage().take(1)
: pagedFluxResponse.byPage(continuationToken).take(1);
return flux
.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
- pagedResponse.getValue().stream()
+ pagedResponse.getValue()
+ .stream()
.map(protocolMethodData -> protocolMethodData.toObject(ClassificationPolicy.class))
.collect(Collectors.toList()),
pagedResponse.getContinuationToken(), null));
@@ -1792,11 +1673,13 @@ public PagedFlux listExceptionPolicies() {
RequestOptions requestOptions = new RequestOptions();
PagedFlux pagedFluxResponse = listExceptionPolicies(requestOptions);
return PagedFlux.create(() -> (continuationToken, pageSize) -> {
- Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+ Flux> flux = (continuationToken == null)
+ ? pagedFluxResponse.byPage().take(1)
: pagedFluxResponse.byPage(continuationToken).take(1);
return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
- pagedResponse.getValue().stream()
+ pagedResponse.getValue()
+ .stream()
.map(protocolMethodData -> protocolMethodData.toObject(ExceptionPolicy.class))
.collect(Collectors.toList()),
pagedResponse.getContinuationToken(), null));
@@ -1859,11 +1742,13 @@ public PagedFlux listQueues() {
RequestOptions requestOptions = new RequestOptions();
PagedFlux pagedFluxResponse = listQueues(requestOptions);
return PagedFlux.create(() -> (continuationToken, pageSize) -> {
- Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+ Flux> flux = (continuationToken == null)
+ ? pagedFluxResponse.byPage().take(1)
: pagedFluxResponse.byPage(continuationToken).take(1);
return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
- pagedResponse.getValue().stream()
+ pagedResponse.getValue()
+ .stream()
.map(protocolMethodData -> protocolMethodData.toObject(RouterQueue.class))
.collect(Collectors.toList()),
pagedResponse.getContinuationToken(), null));
diff --git a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterAdministrationClient.java b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterAdministrationClient.java
index 441aed1278c5..e8a9a26a556e 100644
--- a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterAdministrationClient.java
+++ b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterAdministrationClient.java
@@ -4,26 +4,10 @@
package com.azure.communication.jobrouter;
import com.azure.communication.jobrouter.implementation.JobRouterAdministrationClientImpl;
-import com.azure.communication.jobrouter.implementation.accesshelpers.ClassificationPolicyConstructorProxy;
-import com.azure.communication.jobrouter.implementation.accesshelpers.DistributionPolicyConstructorProxy;
-import com.azure.communication.jobrouter.implementation.accesshelpers.ExceptionPolicyConstructorProxy;
-import com.azure.communication.jobrouter.implementation.accesshelpers.RouterQueueConstructorProxy;
-import com.azure.communication.jobrouter.implementation.converters.ClassificationPolicyAdapter;
-import com.azure.communication.jobrouter.implementation.converters.DistributionPolicyAdapter;
-import com.azure.communication.jobrouter.implementation.converters.ExceptionPolicyAdapter;
-import com.azure.communication.jobrouter.implementation.converters.QueueAdapter;
import com.azure.communication.jobrouter.implementation.models.ClassificationPolicyInternal;
import com.azure.communication.jobrouter.implementation.models.DistributionPolicyInternal;
import com.azure.communication.jobrouter.implementation.models.ExceptionPolicyInternal;
import com.azure.communication.jobrouter.implementation.models.RouterQueueInternal;
-import com.azure.communication.jobrouter.models.ClassificationPolicy;
-import com.azure.communication.jobrouter.models.CreateClassificationPolicyOptions;
-import com.azure.communication.jobrouter.models.CreateDistributionPolicyOptions;
-import com.azure.communication.jobrouter.models.CreateExceptionPolicyOptions;
-import com.azure.communication.jobrouter.models.CreateQueueOptions;
-import com.azure.communication.jobrouter.models.DistributionPolicy;
-import com.azure.communication.jobrouter.models.ExceptionPolicy;
-import com.azure.communication.jobrouter.models.RouterQueue;
import com.azure.core.annotation.Generated;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceClient;
@@ -37,6 +21,22 @@
import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.SimpleResponse;
import com.azure.core.util.BinaryData;
+import com.azure.communication.jobrouter.implementation.accesshelpers.ClassificationPolicyConstructorProxy;
+import com.azure.communication.jobrouter.implementation.accesshelpers.DistributionPolicyConstructorProxy;
+import com.azure.communication.jobrouter.implementation.accesshelpers.ExceptionPolicyConstructorProxy;
+import com.azure.communication.jobrouter.implementation.accesshelpers.RouterQueueConstructorProxy;
+import com.azure.communication.jobrouter.implementation.converters.ClassificationPolicyAdapter;
+import com.azure.communication.jobrouter.implementation.converters.DistributionPolicyAdapter;
+import com.azure.communication.jobrouter.implementation.converters.ExceptionPolicyAdapter;
+import com.azure.communication.jobrouter.implementation.converters.QueueAdapter;
+import com.azure.communication.jobrouter.models.ClassificationPolicy;
+import com.azure.communication.jobrouter.models.CreateClassificationPolicyOptions;
+import com.azure.communication.jobrouter.models.CreateDistributionPolicyOptions;
+import com.azure.communication.jobrouter.models.CreateExceptionPolicyOptions;
+import com.azure.communication.jobrouter.models.CreateQueueOptions;
+import com.azure.communication.jobrouter.models.DistributionPolicy;
+import com.azure.communication.jobrouter.models.ExceptionPolicy;
+import com.azure.communication.jobrouter.models.RouterQueue;
/**
* Initializes a new instance of the synchronous JobRouterAdministrationClient type.
@@ -59,34 +59,15 @@ public final class JobRouterAdministrationClient {
/**
* Creates or updates a distribution policy.
- *
- * Header Parameters
- *
+ * Header Parameters
*
- * Header Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * If-Match
- * String
- * No
- * The request should only proceed if an entity matches this string.
- *
- *
- * If-Unmodified-Since
- * OffsetDateTime
- * No
- * The request should only proceed if the entity was not modified after this time.
- *
+ * Header Parameters
+ * Name Type Required Description
+ * If-Match String No The request should only proceed if an entity matches this string.
+ * If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time.
*
* You can add these to a request with {@link RequestOptions#addHeader}
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* etag: String (Required)
@@ -94,15 +75,14 @@ public final class JobRouterAdministrationClient {
* name: String (Optional)
* offerExpiresAfterSeconds: Double (Optional)
* mode (Optional): {
+ * kind: String(bestWorker/longestIdle/roundRobin) (Required)
* minConcurrentOffers: Integer (Optional)
* maxConcurrentOffers: Integer (Optional)
* bypassSelectors: Boolean (Optional)
* }
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -110,6 +90,7 @@ public final class JobRouterAdministrationClient {
* name: String (Optional)
* offerExpiresAfterSeconds: Double (Optional)
* mode (Optional): {
+ * kind: String(bestWorker/longestIdle/roundRobin) (Required)
* minConcurrentOffers: Integer (Optional)
* maxConcurrentOffers: Integer (Optional)
* bypassSelectors: Boolean (Optional)
@@ -130,8 +111,7 @@ public final class JobRouterAdministrationClient {
@ServiceMethod(returns = ReturnType.SINGLE)
Response upsertDistributionPolicyWithResponse(String distributionPolicyId, BinaryData resource,
RequestOptions requestOptions) {
- // Convenience API is not generated, as operation 'upsertDistributionPolicy' is 'application/merge-patch+json'
- // and stream-style-serialization is not enabled
+ // Convenience API is not generated, as operation 'upsertDistributionPolicy' is 'application/merge-patch+json' and stream-style-serialization is not enabled
return this.serviceClient.upsertDistributionPolicyWithResponse(distributionPolicyId, resource, requestOptions);
}
@@ -326,9 +306,7 @@ public Response createDistributionPolicyWithResponse(
/**
* Retrieves an existing distribution policy by Id.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -336,6 +314,7 @@ public Response createDistributionPolicyWithResponse(
* name: String (Optional)
* offerExpiresAfterSeconds: Double (Optional)
* mode (Optional): {
+ * kind: String(bestWorker/longestIdle/roundRobin) (Required)
* minConcurrentOffers: Integer (Optional)
* maxConcurrentOffers: Integer (Optional)
* bypassSelectors: Boolean (Optional)
@@ -360,28 +339,14 @@ public Response getDistributionPolicyWithResponse(String distributio
/**
* Retrieves existing distribution policies.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -389,6 +354,7 @@ public Response getDistributionPolicyWithResponse(String distributio
* name: String (Optional)
* offerExpiresAfterSeconds: Double (Optional)
* mode (Optional): {
+ * kind: String(bestWorker/longestIdle/roundRobin) (Required)
* minConcurrentOffers: Integer (Optional)
* maxConcurrentOffers: Integer (Optional)
* bypassSelectors: Boolean (Optional)
@@ -429,34 +395,15 @@ public Response deleteDistributionPolicyWithResponse(String distributionPo
/**
* Creates or updates a classification policy.
- *
- * Header Parameters
- *
+ * Header Parameters
*
- * Header Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * If-Match
- * String
- * No
- * The request should only proceed if an entity matches this string.
- *
- *
- * If-Unmodified-Since
- * OffsetDateTime
- * No
- * The request should only proceed if the entity was not modified after this time.
- *
+ * Header Parameters
+ * Name Type Required Description
+ * If-Match String No The request should only proceed if an entity matches this string.
+ * If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time.
*
* You can add these to a request with {@link RequestOptions#addHeader}
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* etag: String (Required)
@@ -465,19 +412,20 @@ public Response deleteDistributionPolicyWithResponse(String distributionPo
* fallbackQueueId: String (Optional)
* queueSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* prioritizationRule (Optional): {
+ * kind: String(directMap/expression/function/static/webhook) (Required)
* }
* workerSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -486,12 +434,15 @@ public Response deleteDistributionPolicyWithResponse(String distributionPo
* fallbackQueueId: String (Optional)
* queueSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* prioritizationRule (Optional): {
+ * kind: String(directMap/expression/function/static/webhook) (Required)
* }
* workerSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* }
@@ -510,8 +461,7 @@ public Response deleteDistributionPolicyWithResponse(String distributionPo
@ServiceMethod(returns = ReturnType.SINGLE)
Response upsertClassificationPolicyWithResponse(String classificationPolicyId, BinaryData resource,
RequestOptions requestOptions) {
- // Convenience API is not generated, as operation 'upsertClassificationPolicy' is 'application/merge-patch+json'
- // and stream-style-serialization is not enabled
+ // Convenience API is not generated, as operation 'upsertClassificationPolicy' is 'application/merge-patch+json' and stream-style-serialization is not enabled
return this.serviceClient.upsertClassificationPolicyWithResponse(classificationPolicyId, resource,
requestOptions);
}
@@ -729,9 +679,7 @@ public Response createClassificationPolicyWithResponse(
/**
* Retrieves an existing classification policy by Id.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -740,12 +688,15 @@ public Response createClassificationPolicyWithResponse(
* fallbackQueueId: String (Optional)
* queueSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* prioritizationRule (Optional): {
+ * kind: String(directMap/expression/function/static/webhook) (Required)
* }
* workerSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* }
@@ -768,28 +719,14 @@ public Response getClassificationPolicyWithResponse(String classific
/**
* Retrieves existing classification policies.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -798,12 +735,15 @@ public Response getClassificationPolicyWithResponse(String classific
* fallbackQueueId: String (Optional)
* queueSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* prioritizationRule (Optional): {
+ * kind: String(directMap/expression/function/static/webhook) (Required)
* }
* workerSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* }
@@ -842,34 +782,15 @@ public Response deleteClassificationPolicyWithResponse(String classificati
/**
* Creates or updates a exception policy.
- *
- * Header Parameters
- *
+ * Header Parameters
*
- * Header Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * If-Match
- * String
- * No
- * The request should only proceed if an entity matches this string.
- *
- *
- * If-Unmodified-Since
- * OffsetDateTime
- * No
- * The request should only proceed if the entity was not modified after this time.
- *
+ * Header Parameters
+ * Name Type Required Description
+ * If-Match String No The request should only proceed if an entity matches this string.
+ * If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time.
*
* You can add these to a request with {@link RequestOptions#addHeader}
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* etag: String (Required)
@@ -879,9 +800,11 @@ public Response deleteClassificationPolicyWithResponse(String classificati
* (Optional){
* id: String (Required)
* trigger (Required): {
+ * kind: String(queueLength/waitTime) (Required)
* }
* actions (Required): [
* (Required){
+ * kind: String(cancel/manualReclassify/reclassify) (Required)
* id: String (Optional)
* }
* ]
@@ -889,9 +812,7 @@ public Response deleteClassificationPolicyWithResponse(String classificati
* ]
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -901,9 +822,11 @@ public Response deleteClassificationPolicyWithResponse(String classificati
* (Optional){
* id: String (Required)
* trigger (Required): {
+ * kind: String(queueLength/waitTime) (Required)
* }
* actions (Required): [
* (Required){
+ * kind: String(cancel/manualReclassify/reclassify) (Required)
* id: String (Optional)
* }
* ]
@@ -925,8 +848,7 @@ public Response deleteClassificationPolicyWithResponse(String classificati
@ServiceMethod(returns = ReturnType.SINGLE)
Response upsertExceptionPolicyWithResponse(String exceptionPolicyId, BinaryData resource,
RequestOptions requestOptions) {
- // Convenience API is not generated, as operation 'upsertExceptionPolicy' is 'application/merge-patch+json' and
- // stream-style-serialization is not enabled
+ // Convenience API is not generated, as operation 'upsertExceptionPolicy' is 'application/merge-patch+json' and stream-style-serialization is not enabled
return this.serviceClient.upsertExceptionPolicyWithResponse(exceptionPolicyId, resource, requestOptions);
}
@@ -1248,34 +1170,15 @@ public Response deleteExceptionPolicyWithResponse(String exceptionPolicyId
/**
* Creates or updates a queue.
- *
- * Header Parameters
- *
+ * Header Parameters
*
- * Header Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * If-Match
- * String
- * No
- * The request should only proceed if an entity matches this string.
- *
- *
- * If-Unmodified-Since
- * OffsetDateTime
- * No
- * The request should only proceed if the entity was not modified after this time.
- *
+ * Header Parameters
+ * Name Type Required Description
+ * If-Match String No The request should only proceed if an entity matches this string.
+ * If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time.
*
* You can add these to a request with {@link RequestOptions#addHeader}
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* etag: String (Required)
@@ -1288,9 +1191,7 @@ public Response deleteExceptionPolicyWithResponse(String exceptionPolicyId
* exceptionPolicyId: String (Optional)
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1316,8 +1217,7 @@ public Response deleteExceptionPolicyWithResponse(String exceptionPolicyId
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
Response upsertQueueWithResponse(String queueId, BinaryData resource, RequestOptions requestOptions) {
- // Convenience API is not generated, as operation 'upsertQueue' is 'application/merge-patch+json' and
- // stream-style-serialization is not enabled
+ // Convenience API is not generated, as operation 'upsertQueue' is 'application/merge-patch+json' and stream-style-serialization is not enabled
return this.serviceClient.upsertQueueWithResponse(queueId, resource, requestOptions);
}
@@ -1503,9 +1403,7 @@ public RouterQueue createQueue(CreateQueueOptions createQueueOptions) {
/**
* Retrieves an existing queue by Id.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1535,28 +1433,14 @@ public Response getQueueWithResponse(String queueId, RequestOptions
/**
* Retrieves existing queues.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
diff --git a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterAdministrationClientBuilder.java b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterAdministrationClientBuilder.java
index 55d42b11f47d..e3d36ca9ef21 100644
--- a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterAdministrationClientBuilder.java
+++ b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterAdministrationClientBuilder.java
@@ -3,18 +3,15 @@
// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.communication.jobrouter;
-import com.azure.communication.common.implementation.CommunicationConnectionString;
+import com.azure.core.client.traits.TokenCredentialTrait;
+import com.azure.core.client.traits.KeyCredentialTrait;
+import com.azure.core.client.traits.ConnectionStringTrait;
import com.azure.communication.jobrouter.implementation.JobRouterAdministrationClientImpl;
import com.azure.core.annotation.Generated;
import com.azure.core.annotation.ServiceClientBuilder;
import com.azure.core.client.traits.ConfigurationTrait;
-import com.azure.core.client.traits.ConnectionStringTrait;
import com.azure.core.client.traits.EndpointTrait;
import com.azure.core.client.traits.HttpTrait;
-import com.azure.core.client.traits.KeyCredentialTrait;
-import com.azure.core.client.traits.TokenCredentialTrait;
-import com.azure.core.credential.KeyCredential;
-import com.azure.core.credential.TokenCredential;
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpHeaderName;
import com.azure.core.http.HttpHeaders;
@@ -24,8 +21,8 @@
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
import com.azure.core.http.policy.AddHeadersPolicy;
-import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
@@ -42,6 +39,9 @@
import java.util.List;
import java.util.Map;
import java.util.Objects;
+import com.azure.communication.common.implementation.CommunicationConnectionString;
+import com.azure.core.credential.KeyCredential;
+import com.azure.core.credential.TokenCredential;
/**
* A builder for creating a new instance of the JobRouterAdministrationClient type.
@@ -265,17 +265,21 @@ private HttpPipeline createHttpPipeline() {
if (headers.getSize() > 0) {
policies.add(new AddHeadersPolicy(headers));
}
- this.pipelinePolicies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ this.pipelinePolicies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
.forEach(p -> policies.add(p));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(ClientBuilderUtil.validateAndGetRetryPolicy(retryPolicy, retryOptions, new RetryPolicy()));
policies.add(new AddDatePolicy());
- this.pipelinePolicies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ this.pipelinePolicies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.forEach(p -> policies.add(p));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(localHttpLogOptions));
HttpPipeline httpPipeline = new HttpPipelineBuilder().policies(policies.toArray(new HttpPipelinePolicy[0]))
- .httpClient(httpClient).clientOptions(localClientOptions).build();
+ .httpClient(httpClient)
+ .clientOptions(localClientOptions)
+ .build();
return httpPipeline;
}
diff --git a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterAsyncClient.java b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterAsyncClient.java
index d5e799d9758e..6e4985941079 100644
--- a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterAsyncClient.java
+++ b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterAsyncClient.java
@@ -4,10 +4,6 @@
package com.azure.communication.jobrouter;
import com.azure.communication.jobrouter.implementation.JobRouterClientImpl;
-import com.azure.communication.jobrouter.implementation.accesshelpers.RouterJobConstructorProxy;
-import com.azure.communication.jobrouter.implementation.accesshelpers.RouterWorkerConstructorProxy;
-import com.azure.communication.jobrouter.implementation.converters.JobAdapter;
-import com.azure.communication.jobrouter.implementation.converters.WorkerAdapter;
import com.azure.communication.jobrouter.implementation.models.CancelJobOptionsInternal;
import com.azure.communication.jobrouter.implementation.models.CancelJobResultInternal;
import com.azure.communication.jobrouter.implementation.models.CloseJobOptionsInternal;
@@ -21,13 +17,8 @@
import com.azure.communication.jobrouter.implementation.models.RouterJobInternal;
import com.azure.communication.jobrouter.implementation.models.RouterWorkerInternal;
import com.azure.communication.jobrouter.models.AcceptJobOfferResult;
-import com.azure.communication.jobrouter.models.CreateJobOptions;
-import com.azure.communication.jobrouter.models.CreateWorkerOptions;
-import com.azure.communication.jobrouter.models.RouterJob;
import com.azure.communication.jobrouter.models.RouterJobPositionDetails;
import com.azure.communication.jobrouter.models.RouterJobStatusSelector;
-import com.azure.communication.jobrouter.models.RouterQueueStatistics;
-import com.azure.communication.jobrouter.models.RouterWorker;
import com.azure.communication.jobrouter.models.RouterWorkerStateSelector;
import com.azure.communication.jobrouter.models.UnassignJobOptions;
import com.azure.communication.jobrouter.models.UnassignJobResult;
@@ -51,6 +42,15 @@
import java.util.stream.Collectors;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
+import com.azure.communication.jobrouter.implementation.accesshelpers.RouterJobConstructorProxy;
+import com.azure.communication.jobrouter.implementation.accesshelpers.RouterWorkerConstructorProxy;
+import com.azure.communication.jobrouter.implementation.converters.JobAdapter;
+import com.azure.communication.jobrouter.implementation.converters.WorkerAdapter;
+import com.azure.communication.jobrouter.models.CreateJobOptions;
+import com.azure.communication.jobrouter.models.CreateWorkerOptions;
+import com.azure.communication.jobrouter.models.RouterJob;
+import com.azure.communication.jobrouter.models.RouterQueueStatistics;
+import com.azure.communication.jobrouter.models.RouterWorker;
/**
* Initializes a new instance of the asynchronous JobRouterClient type.
@@ -73,34 +73,15 @@ public final class JobRouterAsyncClient {
/**
* Creates or updates a router job.
- *
- * Header Parameters
- *
+ * Header Parameters
*
- * Header Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * If-Match
- * String
- * No
- * The request should only proceed if an entity matches this string.
- *
- *
- * If-Unmodified-Since
- * OffsetDateTime
- * No
- * The request should only proceed if the entity was not modified after this time.
- *
+ * Header Parameters
+ * Name Type Required Description
+ * If-Match String No The request should only proceed if an entity matches this string.
+ * If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time.
*
* You can add these to a request with {@link RequestOptions#addHeader}
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* etag: String (Required)
@@ -150,12 +131,11 @@ public final class JobRouterAsyncClient {
* ]
* scheduledAt: OffsetDateTime (Optional)
* matchingMode (Optional): {
+ * kind: String(queueAndMatch/scheduleAndSuspend/suspend) (Required)
* }
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -205,6 +185,7 @@ public final class JobRouterAsyncClient {
* ]
* scheduledAt: OffsetDateTime (Optional)
* matchingMode (Optional): {
+ * kind: String(queueAndMatch/scheduleAndSuspend/suspend) (Required)
* }
* }
* }
@@ -221,8 +202,7 @@ public final class JobRouterAsyncClient {
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> upsertJobWithResponse(String jobId, BinaryData resource, RequestOptions requestOptions) {
- // Convenience API is not generated, as operation 'upsertJob' is 'application/merge-patch+json' and
- // stream-style-serialization is not enabled
+ // Convenience API is not generated, as operation 'upsertJob' is 'application/merge-patch+json' and stream-style-serialization is not enabled
return this.serviceClient.upsertJobWithResponseAsync(jobId, resource, requestOptions);
}
@@ -554,9 +534,7 @@ public Mono createJob(CreateJobOptions createJobOptions) {
/**
* Retrieves an existing job by Id.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -606,6 +584,7 @@ public Mono createJob(CreateJobOptions createJobOptions) {
* ]
* scheduledAt: OffsetDateTime (Optional)
* matchingMode (Optional): {
+ * kind: String(queueAndMatch/scheduleAndSuspend/suspend) (Required)
* }
* }
* }
@@ -763,67 +742,20 @@ public Mono cancelJob(String jobId, RequestOptions requestOptions) {
/**
* Retrieves list of jobs based on filter parameters.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
- *
- * status
- * String
- * No
- * If specified, filter jobs by status. Allowed values: "all", "pendingClassification", "queued", "assigned",
- * "completed", "closed", "cancelled", "classificationFailed", "created", "pendingSchedule", "scheduled",
- * "scheduleFailed", "waitingForActivation", "active".
- *
- *
- * queueId
- * String
- * No
- * If specified, filter jobs by queue.
- *
- *
- * channelId
- * String
- * No
- * If specified, filter jobs by channel.
- *
- *
- * classificationPolicyId
- * String
- * No
- * If specified, filter jobs by classificationPolicy.
- *
- *
- * scheduledBefore
- * OffsetDateTime
- * No
- * If specified, filter on jobs that was scheduled before or at given timestamp. Range: (-Inf,
- * scheduledBefore].
- *
- *
- * scheduledAfter
- * OffsetDateTime
- * No
- * If specified, filter on jobs that was scheduled at or after given value. Range: [scheduledAfter, +Inf).
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
+ * status String No If specified, filter jobs by status. Allowed values: "all", "pendingClassification", "queued", "assigned", "completed", "closed", "cancelled", "classificationFailed", "created", "pendingSchedule", "scheduled", "scheduleFailed", "waitingForActivation", "active".
+ * queueId String No If specified, filter jobs by queue.
+ * channelId String No If specified, filter jobs by channel.
+ * classificationPolicyId String No If specified, filter jobs by classificationPolicy.
+ * scheduledBefore OffsetDateTime No If specified, filter on jobs that was scheduled before or at given timestamp. Range: (-Inf, scheduledBefore].
+ * scheduledAfter OffsetDateTime No If specified, filter on jobs that was scheduled at or after given value. Range: [scheduledAfter, +Inf).
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -873,6 +805,7 @@ public Mono cancelJob(String jobId, RequestOptions requestOptions) {
* ]
* scheduledAt: OffsetDateTime (Optional)
* matchingMode (Optional): {
+ * kind: String(queueAndMatch/scheduleAndSuspend/suspend) (Required)
* }
* }
* }
@@ -892,9 +825,7 @@ public PagedFlux listJobs(RequestOptions requestOptions) {
/**
* Gets a job's position details.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* jobId: String (Required)
@@ -921,17 +852,13 @@ public Mono> getQueuePositionWithResponse(String jobId, Req
/**
* Unassign a job.
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* suspendMatching: Boolean (Optional)
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* jobId: String (Required)
@@ -946,8 +873,7 @@ public Mono> getQueuePositionWithResponse(String jobId, Req
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return response payload after a job has been successfully unassigned along with {@link Response} on successful
- * completion of {@link Mono}.
+ * @return response payload after a job has been successfully unassigned along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -958,9 +884,7 @@ public Mono> unassignJobWithResponse(String jobId, String a
/**
* Accepts an offer to work on a job and returns a 409/Conflict if another agent accepted the job already.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* assignmentId: String (Required)
@@ -976,8 +900,7 @@ public Mono> unassignJobWithResponse(String jobId, String a
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return response containing ids for the worker, job, and assignment from an accepted offer along with
- * {@link Response} on successful completion of {@link Mono}.
+ * @return response containing ids for the worker, job, and assignment from an accepted offer along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1052,9 +975,7 @@ public Mono declineJobOffer(String workerId, String offerId, Request
/**
* Retrieves a queue's statistics.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* queueId: String (Required)
@@ -1082,34 +1003,15 @@ public Mono> getQueueStatisticsWithResponse(String queueId,
/**
* Creates or updates a worker.
- *
- * Header Parameters
- *
+ * Header Parameters
*
- * Header Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * If-Match
- * String
- * No
- * The request should only proceed if an entity matches this string.
- *
- *
- * If-Unmodified-Since
- * OffsetDateTime
- * No
- * The request should only proceed if the entity was not modified after this time.
- *
+ * Header Parameters
+ * Name Type Required Description
+ * If-Match String No The request should only proceed if an entity matches this string.
+ * If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time.
*
* You can add these to a request with {@link RequestOptions#addHeader}
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* etag: String (Required)
@@ -1154,9 +1056,7 @@ public Mono> getQueueStatisticsWithResponse(String queueId,
* maxConcurrentOffers: Integer (Optional)
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1215,8 +1115,7 @@ public Mono> getQueueStatisticsWithResponse(String queueId,
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> upsertWorkerWithResponse(String workerId, BinaryData resource,
RequestOptions requestOptions) {
- // Convenience API is not generated, as operation 'upsertWorker' is 'application/merge-patch+json' and
- // stream-style-serialization is not enabled
+ // Convenience API is not generated, as operation 'upsertWorker' is 'application/merge-patch+json' and stream-style-serialization is not enabled
return this.serviceClient.upsertWorkerWithResponseAsync(workerId, resource, requestOptions);
}
@@ -1526,9 +1425,7 @@ public Mono createWorker(CreateWorkerOptions createWorkerOptions)
/**
* Retrieves an existing worker by Id.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1607,54 +1504,18 @@ public Mono> deleteWorkerWithResponse(String workerId, RequestOpt
/**
* Retrieves existing workers.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
- *
- * state
- * String
- * No
- * If specified, select workers by worker state. Allowed values: "active", "draining", "inactive", "all".
- *
- *
- * channelId
- * String
- * No
- * If specified, select workers who have a channel configuration with this channel.
- *
- *
- * queueId
- * String
- * No
- * If specified, select workers who are assigned to this queue.
- *
- *
- * hasCapacity
- * Boolean
- * No
- * If set to true, select only workers who have capacity for the channel specified by `channelId` or for any
- * channel if `channelId` not specified. If set to false, then will return all workers including workers without any
- * capacity for jobs. Defaults to false.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
+ * state String No If specified, select workers by worker state. Allowed values: "active", "draining", "inactive", "all".
+ * channelId String No If specified, select workers who have a channel configuration with this channel.
+ * queueId String No If specified, select workers who are assigned to this queue.
+ * hasCapacity Boolean No If set to true, select only workers who have capacity for the channel specified by `channelId` or for any channel if `channelId` not specified. If set to false, then will return all workers including workers without any capacity for jobs. Defaults to false.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1818,11 +1679,13 @@ public PagedFlux listJobs(RouterJobStatusSelector status, String queu
}
PagedFlux pagedFluxResponse = listJobs(requestOptions);
return PagedFlux.create(() -> (continuationToken, pageSize) -> {
- Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+ Flux> flux = (continuationToken == null)
+ ? pagedFluxResponse.byPage().take(1)
: pagedFluxResponse.byPage(continuationToken).take(1);
return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
- pagedResponse.getValue().stream()
+ pagedResponse.getValue()
+ .stream()
.map(protocolMethodData -> protocolMethodData.toObject(RouterJob.class))
.collect(Collectors.toList()),
pagedResponse.getContinuationToken(), null));
@@ -1845,11 +1708,13 @@ public PagedFlux listJobs() {
RequestOptions requestOptions = new RequestOptions();
PagedFlux pagedFluxResponse = listJobs(requestOptions);
return PagedFlux.create(() -> (continuationToken, pageSize) -> {
- Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+ Flux> flux = (continuationToken == null)
+ ? pagedFluxResponse.byPage().take(1)
: pagedFluxResponse.byPage(continuationToken).take(1);
return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
- pagedResponse.getValue().stream()
+ pagedResponse.getValue()
+ .stream()
.map(protocolMethodData -> protocolMethodData.toObject(RouterJob.class))
.collect(Collectors.toList()),
pagedResponse.getContinuationToken(), null));
@@ -1910,8 +1775,7 @@ public Mono unassignJob(String jobId, String assignmentId) {
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return response containing ids for the worker, job, and assignment from an accepted offer on successful
- * completion of {@link Mono}.
+ * @return response containing ids for the worker, job, and assignment from an accepted offer on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -2040,11 +1904,13 @@ public PagedFlux listWorkers(RouterWorkerStateSelector state, Stri
}
PagedFlux pagedFluxResponse = listWorkers(requestOptions);
return PagedFlux.create(() -> (continuationToken, pageSize) -> {
- Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+ Flux> flux = (continuationToken == null)
+ ? pagedFluxResponse.byPage().take(1)
: pagedFluxResponse.byPage(continuationToken).take(1);
return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
- pagedResponse.getValue().stream()
+ pagedResponse.getValue()
+ .stream()
.map(protocolMethodData -> protocolMethodData.toObject(RouterWorker.class))
.collect(Collectors.toList()),
pagedResponse.getContinuationToken(), null));
@@ -2067,11 +1933,13 @@ public PagedFlux listWorkers() {
RequestOptions requestOptions = new RequestOptions();
PagedFlux pagedFluxResponse = listWorkers(requestOptions);
return PagedFlux.create(() -> (continuationToken, pageSize) -> {
- Flux> flux = (continuationToken == null) ? pagedFluxResponse.byPage().take(1)
+ Flux> flux = (continuationToken == null)
+ ? pagedFluxResponse.byPage().take(1)
: pagedFluxResponse.byPage(continuationToken).take(1);
return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(),
pagedResponse.getStatusCode(), pagedResponse.getHeaders(),
- pagedResponse.getValue().stream()
+ pagedResponse.getValue()
+ .stream()
.map(protocolMethodData -> protocolMethodData.toObject(RouterWorker.class))
.collect(Collectors.toList()),
pagedResponse.getContinuationToken(), null));
diff --git a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterClient.java b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterClient.java
index 84fb6a865702..9545a2891e72 100644
--- a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterClient.java
+++ b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterClient.java
@@ -4,10 +4,6 @@
package com.azure.communication.jobrouter;
import com.azure.communication.jobrouter.implementation.JobRouterClientImpl;
-import com.azure.communication.jobrouter.implementation.accesshelpers.RouterJobConstructorProxy;
-import com.azure.communication.jobrouter.implementation.accesshelpers.RouterWorkerConstructorProxy;
-import com.azure.communication.jobrouter.implementation.converters.JobAdapter;
-import com.azure.communication.jobrouter.implementation.converters.WorkerAdapter;
import com.azure.communication.jobrouter.implementation.models.CancelJobOptionsInternal;
import com.azure.communication.jobrouter.implementation.models.CancelJobResultInternal;
import com.azure.communication.jobrouter.implementation.models.CloseJobOptionsInternal;
@@ -21,13 +17,8 @@
import com.azure.communication.jobrouter.implementation.models.RouterJobInternal;
import com.azure.communication.jobrouter.implementation.models.RouterWorkerInternal;
import com.azure.communication.jobrouter.models.AcceptJobOfferResult;
-import com.azure.communication.jobrouter.models.CreateJobOptions;
-import com.azure.communication.jobrouter.models.CreateWorkerOptions;
-import com.azure.communication.jobrouter.models.RouterJob;
import com.azure.communication.jobrouter.models.RouterJobPositionDetails;
import com.azure.communication.jobrouter.models.RouterJobStatusSelector;
-import com.azure.communication.jobrouter.models.RouterQueueStatistics;
-import com.azure.communication.jobrouter.models.RouterWorker;
import com.azure.communication.jobrouter.models.RouterWorkerStateSelector;
import com.azure.communication.jobrouter.models.UnassignJobOptions;
import com.azure.communication.jobrouter.models.UnassignJobResult;
@@ -45,6 +36,15 @@
import com.azure.core.http.rest.SimpleResponse;
import com.azure.core.util.BinaryData;
import java.time.OffsetDateTime;
+import com.azure.communication.jobrouter.implementation.accesshelpers.RouterJobConstructorProxy;
+import com.azure.communication.jobrouter.implementation.accesshelpers.RouterWorkerConstructorProxy;
+import com.azure.communication.jobrouter.implementation.converters.JobAdapter;
+import com.azure.communication.jobrouter.implementation.converters.WorkerAdapter;
+import com.azure.communication.jobrouter.models.CreateJobOptions;
+import com.azure.communication.jobrouter.models.CreateWorkerOptions;
+import com.azure.communication.jobrouter.models.RouterJob;
+import com.azure.communication.jobrouter.models.RouterQueueStatistics;
+import com.azure.communication.jobrouter.models.RouterWorker;
/**
* Initializes a new instance of the synchronous JobRouterClient type.
@@ -67,34 +67,15 @@ public final class JobRouterClient {
/**
* Creates or updates a router job.
- *
- * Header Parameters
- *
+ * Header Parameters
*
- * Header Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * If-Match
- * String
- * No
- * The request should only proceed if an entity matches this string.
- *
- *
- * If-Unmodified-Since
- * OffsetDateTime
- * No
- * The request should only proceed if the entity was not modified after this time.
- *
+ * Header Parameters
+ * Name Type Required Description
+ * If-Match String No The request should only proceed if an entity matches this string.
+ * If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time.
*
* You can add these to a request with {@link RequestOptions#addHeader}
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* etag: String (Required)
@@ -144,12 +125,11 @@ public final class JobRouterClient {
* ]
* scheduledAt: OffsetDateTime (Optional)
* matchingMode (Optional): {
+ * kind: String(queueAndMatch/scheduleAndSuspend/suspend) (Required)
* }
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -199,6 +179,7 @@ public final class JobRouterClient {
* ]
* scheduledAt: OffsetDateTime (Optional)
* matchingMode (Optional): {
+ * kind: String(queueAndMatch/scheduleAndSuspend/suspend) (Required)
* }
* }
* }
@@ -215,8 +196,7 @@ public final class JobRouterClient {
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
Response upsertJobWithResponse(String jobId, BinaryData resource, RequestOptions requestOptions) {
- // Convenience API is not generated, as operation 'upsertJob' is 'application/merge-patch+json' and
- // stream-style-serialization is not enabled
+ // Convenience API is not generated, as operation 'upsertJob' is 'application/merge-patch+json' and stream-style-serialization is not enabled
return this.serviceClient.upsertJobWithResponse(jobId, resource, requestOptions);
}
@@ -556,9 +536,7 @@ public RouterJob createJob(CreateJobOptions createJobOptions) {
/**
* Retrieves an existing job by Id.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -608,6 +586,7 @@ public RouterJob createJob(CreateJobOptions createJobOptions) {
* ]
* scheduledAt: OffsetDateTime (Optional)
* matchingMode (Optional): {
+ * kind: String(queueAndMatch/scheduleAndSuspend/suspend) (Required)
* }
* }
* }
@@ -769,67 +748,20 @@ public BinaryData cancelJob(String jobId, RequestOptions requestOptions) {
/**
* Retrieves list of jobs based on filter parameters.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
- *
- * status
- * String
- * No
- * If specified, filter jobs by status. Allowed values: "all", "pendingClassification", "queued", "assigned",
- * "completed", "closed", "cancelled", "classificationFailed", "created", "pendingSchedule", "scheduled",
- * "scheduleFailed", "waitingForActivation", "active".
- *
- *
- * queueId
- * String
- * No
- * If specified, filter jobs by queue.
- *
- *
- * channelId
- * String
- * No
- * If specified, filter jobs by channel.
- *
- *
- * classificationPolicyId
- * String
- * No
- * If specified, filter jobs by classificationPolicy.
- *
- *
- * scheduledBefore
- * OffsetDateTime
- * No
- * If specified, filter on jobs that was scheduled before or at given timestamp. Range: (-Inf,
- * scheduledBefore].
- *
- *
- * scheduledAfter
- * OffsetDateTime
- * No
- * If specified, filter on jobs that was scheduled at or after given value. Range: [scheduledAfter, +Inf).
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
+ * status String No If specified, filter jobs by status. Allowed values: "all", "pendingClassification", "queued", "assigned", "completed", "closed", "cancelled", "classificationFailed", "created", "pendingSchedule", "scheduled", "scheduleFailed", "waitingForActivation", "active".
+ * queueId String No If specified, filter jobs by queue.
+ * channelId String No If specified, filter jobs by channel.
+ * classificationPolicyId String No If specified, filter jobs by classificationPolicy.
+ * scheduledBefore OffsetDateTime No If specified, filter on jobs that was scheduled before or at given timestamp. Range: (-Inf, scheduledBefore].
+ * scheduledAfter OffsetDateTime No If specified, filter on jobs that was scheduled at or after given value. Range: [scheduledAfter, +Inf).
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -879,6 +811,7 @@ public BinaryData cancelJob(String jobId, RequestOptions requestOptions) {
* ]
* scheduledAt: OffsetDateTime (Optional)
* matchingMode (Optional): {
+ * kind: String(queueAndMatch/scheduleAndSuspend/suspend) (Required)
* }
* }
* }
@@ -898,9 +831,7 @@ public PagedIterable listJobs(RequestOptions requestOptions) {
/**
* Gets a job's position details.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* jobId: String (Required)
@@ -927,17 +858,13 @@ public Response getQueuePositionWithResponse(String jobId, RequestOp
/**
* Unassign a job.
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* suspendMatching: Boolean (Optional)
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* jobId: String (Required)
@@ -963,9 +890,7 @@ public Response unassignJobWithResponse(String jobId, String assignm
/**
* Accepts an offer to work on a job and returns a 409/Conflict if another agent accepted the job already.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* assignmentId: String (Required)
@@ -981,8 +906,7 @@ public Response unassignJobWithResponse(String jobId, String assignm
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return response containing ids for the worker, job, and assignment from an accepted offer along with
- * {@link Response}.
+ * @return response containing ids for the worker, job, and assignment from an accepted offer along with {@link Response}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1058,9 +982,7 @@ public BinaryData declineJobOffer(String workerId, String offerId, RequestOption
/**
* Retrieves a queue's statistics.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* queueId: String (Required)
@@ -1088,34 +1010,15 @@ public Response getQueueStatisticsWithResponse(String queueId, Reque
/**
* Creates or updates a worker.
- *
- * Header Parameters
- *
+ * Header Parameters
*
- * Header Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * If-Match
- * String
- * No
- * The request should only proceed if an entity matches this string.
- *
- *
- * If-Unmodified-Since
- * OffsetDateTime
- * No
- * The request should only proceed if the entity was not modified after this time.
- *
+ * Header Parameters
+ * Name Type Required Description
+ * If-Match String No The request should only proceed if an entity matches this string.
+ * If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time.
*
* You can add these to a request with {@link RequestOptions#addHeader}
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* etag: String (Required)
@@ -1160,9 +1063,7 @@ public Response getQueueStatisticsWithResponse(String queueId, Reque
* maxConcurrentOffers: Integer (Optional)
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1220,8 +1121,7 @@ public Response getQueueStatisticsWithResponse(String queueId, Reque
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
Response upsertWorkerWithResponse(String workerId, BinaryData resource, RequestOptions requestOptions) {
- // Convenience API is not generated, as operation 'upsertWorker' is 'application/merge-patch+json' and
- // stream-style-serialization is not enabled
+ // Convenience API is not generated, as operation 'upsertWorker' is 'application/merge-patch+json' and stream-style-serialization is not enabled
return this.serviceClient.upsertWorkerWithResponse(workerId, resource, requestOptions);
}
@@ -1535,9 +1435,7 @@ public RouterWorker createWorker(CreateWorkerOptions createWorkerOptions) {
/**
* Retrieves an existing worker by Id.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1616,54 +1514,18 @@ public Response deleteWorkerWithResponse(String workerId, RequestOptions r
/**
* Retrieves existing workers.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
- *
- * state
- * String
- * No
- * If specified, select workers by worker state. Allowed values: "active", "draining", "inactive", "all".
- *
- *
- * channelId
- * String
- * No
- * If specified, select workers who have a channel configuration with this channel.
- *
- *
- * queueId
- * String
- * No
- * If specified, select workers who are assigned to this queue.
- *
- *
- * hasCapacity
- * Boolean
- * No
- * If set to true, select only workers who have capacity for the channel specified by `channelId` or for any
- * channel if `channelId` not specified. If set to false, then will return all workers including workers without any
- * capacity for jobs. Defaults to false.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
+ * state String No If specified, select workers by worker state. Allowed values: "active", "draining", "inactive", "all".
+ * channelId String No If specified, select workers who have a channel configuration with this channel.
+ * queueId String No If specified, select workers who are assigned to this queue.
+ * hasCapacity Boolean No If set to true, select only workers who have capacity for the channel specified by `channelId` or for any channel if `channelId` not specified. If set to false, then will return all workers including workers without any capacity for jobs. Defaults to false.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
diff --git a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterClientBuilder.java b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterClientBuilder.java
index 1b2ca0cc07a9..dc21bd5288ec 100644
--- a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterClientBuilder.java
+++ b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/JobRouterClientBuilder.java
@@ -3,18 +3,15 @@
// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.communication.jobrouter;
-import com.azure.communication.common.implementation.CommunicationConnectionString;
+import com.azure.core.client.traits.TokenCredentialTrait;
+import com.azure.core.client.traits.KeyCredentialTrait;
+import com.azure.core.client.traits.ConnectionStringTrait;
import com.azure.communication.jobrouter.implementation.JobRouterClientImpl;
import com.azure.core.annotation.Generated;
import com.azure.core.annotation.ServiceClientBuilder;
import com.azure.core.client.traits.ConfigurationTrait;
-import com.azure.core.client.traits.ConnectionStringTrait;
import com.azure.core.client.traits.EndpointTrait;
import com.azure.core.client.traits.HttpTrait;
-import com.azure.core.client.traits.KeyCredentialTrait;
-import com.azure.core.client.traits.TokenCredentialTrait;
-import com.azure.core.credential.KeyCredential;
-import com.azure.core.credential.TokenCredential;
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpHeaderName;
import com.azure.core.http.HttpHeaders;
@@ -24,8 +21,8 @@
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
import com.azure.core.http.policy.AddHeadersPolicy;
-import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
@@ -42,6 +39,9 @@
import java.util.List;
import java.util.Map;
import java.util.Objects;
+import com.azure.communication.common.implementation.CommunicationConnectionString;
+import com.azure.core.credential.KeyCredential;
+import com.azure.core.credential.TokenCredential;
/**
* A builder for creating a new instance of the JobRouterClient type.
@@ -263,17 +263,21 @@ private HttpPipeline createHttpPipeline() {
if (headers.getSize() > 0) {
policies.add(new AddHeadersPolicy(headers));
}
- this.pipelinePolicies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ this.pipelinePolicies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
.forEach(p -> policies.add(p));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(ClientBuilderUtil.validateAndGetRetryPolicy(retryPolicy, retryOptions, new RetryPolicy()));
policies.add(new AddDatePolicy());
- this.pipelinePolicies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ this.pipelinePolicies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.forEach(p -> policies.add(p));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(localHttpLogOptions));
HttpPipeline httpPipeline = new HttpPipelineBuilder().policies(policies.toArray(new HttpPipelinePolicy[0]))
- .httpClient(httpClient).clientOptions(localClientOptions).build();
+ .httpClient(httpClient)
+ .clientOptions(localClientOptions)
+ .build();
return httpPipeline;
}
diff --git a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/JobRouterAdministrationClientImpl.java b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/JobRouterAdministrationClientImpl.java
index 1ee22ed8e203..8b8c44a8d6f3 100644
--- a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/JobRouterAdministrationClientImpl.java
+++ b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/JobRouterAdministrationClientImpl.java
@@ -152,8 +152,7 @@ public JobRouterAdministrationClientImpl(HttpPipeline httpPipeline, SerializerAd
}
/**
- * The interface defining all the services for JobRouterAdministrationClient to be used by the proxy service to
- * perform REST calls.
+ * The interface defining all the services for JobRouterAdministrationClient to be used by the proxy service to perform REST calls.
*/
@Host("{endpoint}")
@ServiceInterface(name = "JobRouterAdministrat")
@@ -589,34 +588,15 @@ Response listQueuesNextSync(@PathParam(value = "nextLink", encoded =
/**
* Creates or updates a distribution policy.
- *
- * Header Parameters
- *
+ * Header Parameters
*
- * Header Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * If-Match
- * String
- * No
- * The request should only proceed if an entity matches this string.
- *
- *
- * If-Unmodified-Since
- * OffsetDateTime
- * No
- * The request should only proceed if the entity was not modified after this time.
- *
+ * Header Parameters
+ * Name Type Required Description
+ * If-Match String No The request should only proceed if an entity matches this string.
+ * If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time.
*
* You can add these to a request with {@link RequestOptions#addHeader}
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* etag: String (Required)
@@ -624,15 +604,14 @@ Response listQueuesNextSync(@PathParam(value = "nextLink", encoded =
* name: String (Optional)
* offerExpiresAfterSeconds: Double (Optional)
* mode (Optional): {
+ * kind: String(bestWorker/longestIdle/roundRobin) (Required)
* minConcurrentOffers: Integer (Optional)
* maxConcurrentOffers: Integer (Optional)
* bypassSelectors: Boolean (Optional)
* }
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -640,6 +619,7 @@ Response listQueuesNextSync(@PathParam(value = "nextLink", encoded =
* name: String (Optional)
* offerExpiresAfterSeconds: Double (Optional)
* mode (Optional): {
+ * kind: String(bestWorker/longestIdle/roundRobin) (Required)
* minConcurrentOffers: Integer (Optional)
* maxConcurrentOffers: Integer (Optional)
* bypassSelectors: Boolean (Optional)
@@ -654,8 +634,7 @@ Response listQueuesNextSync(@PathParam(value = "nextLink", encoded =
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return policy governing how jobs are distributed to workers along with {@link Response} on successful completion
- * of {@link Mono}.
+ * @return policy governing how jobs are distributed to workers along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> upsertDistributionPolicyWithResponseAsync(String distributionPolicyId,
@@ -669,34 +648,15 @@ public Mono> upsertDistributionPolicyWithResponseAsync(Stri
/**
* Creates or updates a distribution policy.
- *
- * Header Parameters
- *
+ * Header Parameters
*
- * Header Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * If-Match
- * String
- * No
- * The request should only proceed if an entity matches this string.
- *
- *
- * If-Unmodified-Since
- * OffsetDateTime
- * No
- * The request should only proceed if the entity was not modified after this time.
- *
+ * Header Parameters
+ * Name Type Required Description
+ * If-Match String No The request should only proceed if an entity matches this string.
+ * If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time.
*
* You can add these to a request with {@link RequestOptions#addHeader}
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* etag: String (Required)
@@ -704,15 +664,14 @@ public Mono> upsertDistributionPolicyWithResponseAsync(Stri
* name: String (Optional)
* offerExpiresAfterSeconds: Double (Optional)
* mode (Optional): {
+ * kind: String(bestWorker/longestIdle/roundRobin) (Required)
* minConcurrentOffers: Integer (Optional)
* maxConcurrentOffers: Integer (Optional)
* bypassSelectors: Boolean (Optional)
* }
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -720,6 +679,7 @@ public Mono> upsertDistributionPolicyWithResponseAsync(Stri
* name: String (Optional)
* offerExpiresAfterSeconds: Double (Optional)
* mode (Optional): {
+ * kind: String(bestWorker/longestIdle/roundRobin) (Required)
* minConcurrentOffers: Integer (Optional)
* maxConcurrentOffers: Integer (Optional)
* bypassSelectors: Boolean (Optional)
@@ -747,9 +707,7 @@ public Response upsertDistributionPolicyWithResponse(String distribu
/**
* Retrieves an existing distribution policy by Id.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -757,6 +715,7 @@ public Response upsertDistributionPolicyWithResponse(String distribu
* name: String (Optional)
* offerExpiresAfterSeconds: Double (Optional)
* mode (Optional): {
+ * kind: String(bestWorker/longestIdle/roundRobin) (Required)
* minConcurrentOffers: Integer (Optional)
* maxConcurrentOffers: Integer (Optional)
* bypassSelectors: Boolean (Optional)
@@ -770,8 +729,7 @@ public Response upsertDistributionPolicyWithResponse(String distribu
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return policy governing how jobs are distributed to workers along with {@link Response} on successful completion
- * of {@link Mono}.
+ * @return policy governing how jobs are distributed to workers along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getDistributionPolicyWithResponseAsync(String distributionPolicyId,
@@ -783,9 +741,7 @@ public Mono> getDistributionPolicyWithResponseAsync(String
/**
* Retrieves an existing distribution policy by Id.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -793,6 +749,7 @@ public Mono> getDistributionPolicyWithResponseAsync(String
* name: String (Optional)
* offerExpiresAfterSeconds: Double (Optional)
* mode (Optional): {
+ * kind: String(bestWorker/longestIdle/roundRobin) (Required)
* minConcurrentOffers: Integer (Optional)
* maxConcurrentOffers: Integer (Optional)
* bypassSelectors: Boolean (Optional)
@@ -818,28 +775,14 @@ public Response getDistributionPolicyWithResponse(String distributio
/**
* Retrieves existing distribution policies.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -847,6 +790,7 @@ public Response getDistributionPolicyWithResponse(String distributio
* name: String (Optional)
* offerExpiresAfterSeconds: Double (Optional)
* mode (Optional): {
+ * kind: String(bestWorker/longestIdle/roundRobin) (Required)
* minConcurrentOffers: Integer (Optional)
* maxConcurrentOffers: Integer (Optional)
* bypassSelectors: Boolean (Optional)
@@ -859,8 +803,7 @@ public Response getDistributionPolicyWithResponse(String distributio
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return paged collection of DistributionPolicy items along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return paged collection of DistributionPolicy items along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listDistributionPoliciesSinglePageAsync(RequestOptions requestOptions) {
@@ -874,28 +817,14 @@ private Mono> listDistributionPoliciesSinglePageAsync(
/**
* Retrieves existing distribution policies.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -903,6 +832,7 @@ private Mono> listDistributionPoliciesSinglePageAsync(
* name: String (Optional)
* offerExpiresAfterSeconds: Double (Optional)
* mode (Optional): {
+ * kind: String(bestWorker/longestIdle/roundRobin) (Required)
* minConcurrentOffers: Integer (Optional)
* maxConcurrentOffers: Integer (Optional)
* bypassSelectors: Boolean (Optional)
@@ -948,28 +878,14 @@ public PagedFlux listDistributionPoliciesAsync(RequestOptions reques
/**
* Retrieves existing distribution policies.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -977,6 +893,7 @@ public PagedFlux listDistributionPoliciesAsync(RequestOptions reques
* name: String (Optional)
* offerExpiresAfterSeconds: Double (Optional)
* mode (Optional): {
+ * kind: String(bestWorker/longestIdle/roundRobin) (Required)
* minConcurrentOffers: Integer (Optional)
* maxConcurrentOffers: Integer (Optional)
* bypassSelectors: Boolean (Optional)
@@ -1002,28 +919,14 @@ private PagedResponse listDistributionPoliciesSinglePage(RequestOpti
/**
* Retrieves existing distribution policies.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1031,6 +934,7 @@ private PagedResponse listDistributionPoliciesSinglePage(RequestOpti
* name: String (Optional)
* offerExpiresAfterSeconds: Double (Optional)
* mode (Optional): {
+ * kind: String(bestWorker/longestIdle/roundRobin) (Required)
* minConcurrentOffers: Integer (Optional)
* maxConcurrentOffers: Integer (Optional)
* bypassSelectors: Boolean (Optional)
@@ -1114,34 +1018,15 @@ public Response deleteDistributionPolicyWithResponse(String distributionPo
/**
* Creates or updates a classification policy.
- *
- * Header Parameters
- *
+ * Header Parameters
*
- * Header Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * If-Match
- * String
- * No
- * The request should only proceed if an entity matches this string.
- *
- *
- * If-Unmodified-Since
- * OffsetDateTime
- * No
- * The request should only proceed if the entity was not modified after this time.
- *
+ * Header Parameters
+ * Name Type Required Description
+ * If-Match String No The request should only proceed if an entity matches this string.
+ * If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time.
*
* You can add these to a request with {@link RequestOptions#addHeader}
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* etag: String (Required)
@@ -1150,19 +1035,20 @@ public Response deleteDistributionPolicyWithResponse(String distributionPo
* fallbackQueueId: String (Optional)
* queueSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* prioritizationRule (Optional): {
+ * kind: String(directMap/expression/function/static/webhook) (Required)
* }
* workerSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1171,12 +1057,15 @@ public Response deleteDistributionPolicyWithResponse(String distributionPo
* fallbackQueueId: String (Optional)
* queueSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* prioritizationRule (Optional): {
+ * kind: String(directMap/expression/function/static/webhook) (Required)
* }
* workerSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* }
@@ -1189,8 +1078,7 @@ public Response deleteDistributionPolicyWithResponse(String distributionPo
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return a container for the rules that govern how jobs are classified along with {@link Response} on successful
- * completion of {@link Mono}.
+ * @return a container for the rules that govern how jobs are classified along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> upsertClassificationPolicyWithResponseAsync(String classificationPolicyId,
@@ -1204,34 +1092,15 @@ public Mono> upsertClassificationPolicyWithResponseAsync(St
/**
* Creates or updates a classification policy.
- *
- * Header Parameters
- *
+ * Header Parameters
*
- * Header Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * If-Match
- * String
- * No
- * The request should only proceed if an entity matches this string.
- *
- *
- * If-Unmodified-Since
- * OffsetDateTime
- * No
- * The request should only proceed if the entity was not modified after this time.
- *
+ * Header Parameters
+ * Name Type Required Description
+ * If-Match String No The request should only proceed if an entity matches this string.
+ * If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time.
*
* You can add these to a request with {@link RequestOptions#addHeader}
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* etag: String (Required)
@@ -1240,19 +1109,20 @@ public Mono> upsertClassificationPolicyWithResponseAsync(St
* fallbackQueueId: String (Optional)
* queueSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* prioritizationRule (Optional): {
+ * kind: String(directMap/expression/function/static/webhook) (Required)
* }
* workerSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1261,12 +1131,15 @@ public Mono> upsertClassificationPolicyWithResponseAsync(St
* fallbackQueueId: String (Optional)
* queueSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* prioritizationRule (Optional): {
+ * kind: String(directMap/expression/function/static/webhook) (Required)
* }
* workerSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* }
@@ -1292,9 +1165,7 @@ public Response upsertClassificationPolicyWithResponse(String classi
/**
* Retrieves an existing classification policy by Id.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1303,12 +1174,15 @@ public Response upsertClassificationPolicyWithResponse(String classi
* fallbackQueueId: String (Optional)
* queueSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* prioritizationRule (Optional): {
+ * kind: String(directMap/expression/function/static/webhook) (Required)
* }
* workerSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* }
@@ -1320,8 +1194,7 @@ public Response upsertClassificationPolicyWithResponse(String classi
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return a container for the rules that govern how jobs are classified along with {@link Response} on successful
- * completion of {@link Mono}.
+ * @return a container for the rules that govern how jobs are classified along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getClassificationPolicyWithResponseAsync(String classificationPolicyId,
@@ -1333,9 +1206,7 @@ public Mono> getClassificationPolicyWithResponseAsync(Strin
/**
* Retrieves an existing classification policy by Id.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1344,12 +1215,15 @@ public Mono> getClassificationPolicyWithResponseAsync(Strin
* fallbackQueueId: String (Optional)
* queueSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* prioritizationRule (Optional): {
+ * kind: String(directMap/expression/function/static/webhook) (Required)
* }
* workerSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* }
@@ -1373,28 +1247,14 @@ public Response getClassificationPolicyWithResponse(String classific
/**
* Retrieves existing classification policies.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1403,12 +1263,15 @@ public Response getClassificationPolicyWithResponse(String classific
* fallbackQueueId: String (Optional)
* queueSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* prioritizationRule (Optional): {
+ * kind: String(directMap/expression/function/static/webhook) (Required)
* }
* workerSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* }
@@ -1419,8 +1282,7 @@ public Response getClassificationPolicyWithResponse(String classific
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return paged collection of ClassificationPolicy items along with {@link PagedResponse} on successful completion
- * of {@link Mono}.
+ * @return paged collection of ClassificationPolicy items along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listClassificationPoliciesSinglePageAsync(RequestOptions requestOptions) {
@@ -1434,28 +1296,14 @@ private Mono> listClassificationPoliciesSinglePageAsyn
/**
* Retrieves existing classification policies.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1464,12 +1312,15 @@ private Mono> listClassificationPoliciesSinglePageAsyn
* fallbackQueueId: String (Optional)
* queueSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* prioritizationRule (Optional): {
+ * kind: String(directMap/expression/function/static/webhook) (Required)
* }
* workerSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* }
@@ -1513,28 +1364,14 @@ public PagedFlux listClassificationPoliciesAsync(RequestOptions requ
/**
* Retrieves existing classification policies.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1543,12 +1380,15 @@ public PagedFlux listClassificationPoliciesAsync(RequestOptions requ
* fallbackQueueId: String (Optional)
* queueSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* prioritizationRule (Optional): {
+ * kind: String(directMap/expression/function/static/webhook) (Required)
* }
* workerSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* }
@@ -1572,28 +1412,14 @@ private PagedResponse listClassificationPoliciesSinglePage(RequestOp
/**
* Retrieves existing classification policies.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1602,12 +1428,15 @@ private PagedResponse listClassificationPoliciesSinglePage(RequestOp
* fallbackQueueId: String (Optional)
* queueSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* prioritizationRule (Optional): {
+ * kind: String(directMap/expression/function/static/webhook) (Required)
* }
* workerSelectorAttachments (Optional): [
* (Optional){
+ * kind: String(conditional/passThrough/ruleEngine/static/weightedAllocation) (Required)
* }
* ]
* }
@@ -1689,34 +1518,15 @@ public Response deleteClassificationPolicyWithResponse(String classificati
/**
* Creates or updates a exception policy.
- *
- * Header Parameters
- *
+ * Header Parameters
*
- * Header Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * If-Match
- * String
- * No
- * The request should only proceed if an entity matches this string.
- *
- *
- * If-Unmodified-Since
- * OffsetDateTime
- * No
- * The request should only proceed if the entity was not modified after this time.
- *
+ * Header Parameters
+ * Name Type Required Description
+ * If-Match String No The request should only proceed if an entity matches this string.
+ * If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time.
*
* You can add these to a request with {@link RequestOptions#addHeader}
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* etag: String (Required)
@@ -1726,9 +1536,11 @@ public Response deleteClassificationPolicyWithResponse(String classificati
* (Optional){
* id: String (Required)
* trigger (Required): {
+ * kind: String(queueLength/waitTime) (Required)
* }
* actions (Required): [
* (Required){
+ * kind: String(cancel/manualReclassify/reclassify) (Required)
* id: String (Optional)
* }
* ]
@@ -1736,9 +1548,7 @@ public Response deleteClassificationPolicyWithResponse(String classificati
* ]
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1748,9 +1558,11 @@ public Response deleteClassificationPolicyWithResponse(String classificati
* (Optional){
* id: String (Required)
* trigger (Required): {
+ * kind: String(queueLength/waitTime) (Required)
* }
* actions (Required): [
* (Required){
+ * kind: String(cancel/manualReclassify/reclassify) (Required)
* id: String (Optional)
* }
* ]
@@ -1766,8 +1578,7 @@ public Response deleteClassificationPolicyWithResponse(String classificati
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return a policy that defines actions to execute when exception are triggered along with {@link Response} on
- * successful completion of {@link Mono}.
+ * @return a policy that defines actions to execute when exception are triggered along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> upsertExceptionPolicyWithResponseAsync(String exceptionPolicyId,
@@ -1781,34 +1592,15 @@ public Mono> upsertExceptionPolicyWithResponseAsync(String
/**
* Creates or updates a exception policy.
- *
- * Header Parameters
- *
+ * Header Parameters
*
- * Header Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * If-Match
- * String
- * No
- * The request should only proceed if an entity matches this string.
- *
- *
- * If-Unmodified-Since
- * OffsetDateTime
- * No
- * The request should only proceed if the entity was not modified after this time.
- *
+ * Header Parameters
+ * Name Type Required Description
+ * If-Match String No The request should only proceed if an entity matches this string.
+ * If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time.
*
* You can add these to a request with {@link RequestOptions#addHeader}
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* etag: String (Required)
@@ -1818,9 +1610,11 @@ public Mono> upsertExceptionPolicyWithResponseAsync(String
* (Optional){
* id: String (Required)
* trigger (Required): {
+ * kind: String(queueLength/waitTime) (Required)
* }
* actions (Required): [
* (Required){
+ * kind: String(cancel/manualReclassify/reclassify) (Required)
* id: String (Optional)
* }
* ]
@@ -1828,9 +1622,7 @@ public Mono> upsertExceptionPolicyWithResponseAsync(String
* ]
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1840,9 +1632,11 @@ public Mono> upsertExceptionPolicyWithResponseAsync(String
* (Optional){
* id: String (Required)
* trigger (Required): {
+ * kind: String(queueLength/waitTime) (Required)
* }
* actions (Required): [
* (Required){
+ * kind: String(cancel/manualReclassify/reclassify) (Required)
* id: String (Optional)
* }
* ]
@@ -1871,9 +1665,7 @@ public Response upsertExceptionPolicyWithResponse(String exceptionPo
/**
* Retrieves an existing exception policy by Id.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1883,9 +1675,11 @@ public Response upsertExceptionPolicyWithResponse(String exceptionPo
* (Optional){
* id: String (Required)
* trigger (Required): {
+ * kind: String(queueLength/waitTime) (Required)
* }
* actions (Required): [
* (Required){
+ * kind: String(cancel/manualReclassify/reclassify) (Required)
* id: String (Optional)
* }
* ]
@@ -1900,8 +1694,7 @@ public Response upsertExceptionPolicyWithResponse(String exceptionPo
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return a policy that defines actions to execute when exception are triggered along with {@link Response} on
- * successful completion of {@link Mono}.
+ * @return a policy that defines actions to execute when exception are triggered along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getExceptionPolicyWithResponseAsync(String exceptionPolicyId,
@@ -1913,9 +1706,7 @@ public Mono> getExceptionPolicyWithResponseAsync(String exc
/**
* Retrieves an existing exception policy by Id.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1925,9 +1716,11 @@ public Mono> getExceptionPolicyWithResponseAsync(String exc
* (Optional){
* id: String (Required)
* trigger (Required): {
+ * kind: String(queueLength/waitTime) (Required)
* }
* actions (Required): [
* (Required){
+ * kind: String(cancel/manualReclassify/reclassify) (Required)
* id: String (Optional)
* }
* ]
@@ -1954,28 +1747,14 @@ public Response getExceptionPolicyWithResponse(String exceptionPolic
/**
* Retrieves existing exception policies.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -1985,9 +1764,11 @@ public Response getExceptionPolicyWithResponse(String exceptionPolic
* (Optional){
* id: String (Required)
* trigger (Required): {
+ * kind: String(queueLength/waitTime) (Required)
* }
* actions (Required): [
* (Required){
+ * kind: String(cancel/manualReclassify/reclassify) (Required)
* id: String (Optional)
* }
* ]
@@ -2001,8 +1782,7 @@ public Response getExceptionPolicyWithResponse(String exceptionPolic
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return paged collection of ExceptionPolicy items along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return paged collection of ExceptionPolicy items along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listExceptionPoliciesSinglePageAsync(RequestOptions requestOptions) {
@@ -2016,28 +1796,14 @@ private Mono> listExceptionPoliciesSinglePageAsync(Req
/**
* Retrieves existing exception policies.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -2047,9 +1813,11 @@ private Mono> listExceptionPoliciesSinglePageAsync(Req
* (Optional){
* id: String (Required)
* trigger (Required): {
+ * kind: String(queueLength/waitTime) (Required)
* }
* actions (Required): [
* (Required){
+ * kind: String(cancel/manualReclassify/reclassify) (Required)
* id: String (Optional)
* }
* ]
@@ -2096,28 +1864,14 @@ public PagedFlux listExceptionPoliciesAsync(RequestOptions requestOp
/**
* Retrieves existing exception policies.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -2127,9 +1881,11 @@ public PagedFlux listExceptionPoliciesAsync(RequestOptions requestOp
* (Optional){
* id: String (Required)
* trigger (Required): {
+ * kind: String(queueLength/waitTime) (Required)
* }
* actions (Required): [
* (Required){
+ * kind: String(cancel/manualReclassify/reclassify) (Required)
* id: String (Optional)
* }
* ]
@@ -2156,28 +1912,14 @@ private PagedResponse listExceptionPoliciesSinglePage(RequestOptions
/**
* Retrieves existing exception policies.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -2187,9 +1929,11 @@ private PagedResponse listExceptionPoliciesSinglePage(RequestOptions
* (Optional){
* id: String (Required)
* trigger (Required): {
+ * kind: String(queueLength/waitTime) (Required)
* }
* actions (Required): [
* (Required){
+ * kind: String(cancel/manualReclassify/reclassify) (Required)
* id: String (Optional)
* }
* ]
@@ -2273,34 +2017,15 @@ public Response deleteExceptionPolicyWithResponse(String exceptionPolicyId
/**
* Creates or updates a queue.
- *
- * Header Parameters
- *
+ * Header Parameters
*
- * Header Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * If-Match
- * String
- * No
- * The request should only proceed if an entity matches this string.
- *
- *
- * If-Unmodified-Since
- * OffsetDateTime
- * No
- * The request should only proceed if the entity was not modified after this time.
- *
+ * Header Parameters
+ * Name Type Required Description
+ * If-Match String No The request should only proceed if an entity matches this string.
+ * If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time.
*
* You can add these to a request with {@link RequestOptions#addHeader}
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* etag: String (Required)
@@ -2313,9 +2038,7 @@ public Response deleteExceptionPolicyWithResponse(String exceptionPolicyId
* exceptionPolicyId: String (Optional)
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -2336,8 +2059,7 @@ public Response deleteExceptionPolicyWithResponse(String exceptionPolicyId
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return a queue that can contain jobs to be routed along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return a queue that can contain jobs to be routed along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> upsertQueueWithResponseAsync(String queueId, BinaryData resource,
@@ -2350,34 +2072,15 @@ public Mono> upsertQueueWithResponseAsync(String queueId, B
/**
* Creates or updates a queue.
- *
- * Header Parameters
- *
+ * Header Parameters
*
- * Header Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * If-Match
- * String
- * No
- * The request should only proceed if an entity matches this string.
- *
- *
- * If-Unmodified-Since
- * OffsetDateTime
- * No
- * The request should only proceed if the entity was not modified after this time.
- *
+ * Header Parameters
+ * Name Type Required Description
+ * If-Match String No The request should only proceed if an entity matches this string.
+ * If-Unmodified-Since OffsetDateTime No The request should only proceed if the entity was not modified after this time.
*
* You can add these to a request with {@link RequestOptions#addHeader}
- *
- * Request Body Schema
- *
+ * Request Body Schema
* {@code
* {
* etag: String (Required)
@@ -2390,9 +2093,7 @@ public Mono> upsertQueueWithResponseAsync(String queueId, B
* exceptionPolicyId: String (Optional)
* }
* }
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -2426,9 +2127,7 @@ public Response upsertQueueWithResponse(String queueId, BinaryData r
/**
* Retrieves an existing queue by Id.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -2448,8 +2147,7 @@ public Response upsertQueueWithResponse(String queueId, BinaryData r
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return a queue that can contain jobs to be routed along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return a queue that can contain jobs to be routed along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getQueueWithResponseAsync(String queueId, RequestOptions requestOptions) {
@@ -2460,9 +2158,7 @@ public Mono> getQueueWithResponseAsync(String queueId, Requ
/**
* Retrieves an existing queue by Id.
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -2493,28 +2189,14 @@ public Response getQueueWithResponse(String queueId, RequestOptions
/**
* Retrieves existing queues.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -2533,8 +2215,7 @@ public Response getQueueWithResponse(String queueId, RequestOptions
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
- * @return paged collection of RouterQueue items along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return paged collection of RouterQueue items along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listQueuesSinglePageAsync(RequestOptions requestOptions) {
@@ -2548,28 +2229,14 @@ private Mono> listQueuesSinglePageAsync(RequestOptions
/**
* Retrieves existing queues.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -2621,28 +2288,14 @@ public PagedFlux listQueuesAsync(RequestOptions requestOptions) {
/**
* Retrieves existing queues.
- *
- * Query Parameters
- *
+ * Query Parameters
*
- * Query Parameters
- *
- * Name
- * Type
- * Required
- * Description
- *
- *
- * maxpagesize
- * Integer
- * No
- * Number of objects to return per page.
- *
+ * Query Parameters
+ * Name Type Required Description
+ * maxpagesize Integer No Number of objects to return per page.
*
* You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- * Response Body Schema
- *
+ * Response Body Schema
* {@code
* {
* etag: String (Required)
@@ -2674,28 +2327,14 @@ private PagedResponse listQueuesSinglePage(RequestOptions requestOpt
/**
* Retrieves existing queues.
- *
- *