diff --git a/desktop/package-lock.json b/desktop/package-lock.json index 3815b51e6..76067d77f 100644 --- a/desktop/package-lock.json +++ b/desktop/package-lock.json @@ -138,7 +138,7 @@ "to-string-loader": "^1.1.6", "ts-loader": "^5.4.5", "ts-node": "^8.10.2", - "typescript": "~4.1.0", + "typescript": "~4.6.0", "url-loader": "^1.1.2", "webpack": "^4.44.1", "webpack-cli": "^3.3.12", @@ -20078,9 +20078,9 @@ } }, "node_modules/typescript": { - "version": "4.1.6", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.1.6.tgz", - "integrity": "sha512-pxnwLxeb/Z5SP80JDRzVjh58KsM6jZHRAOtTpS7sXLS4ogXNKC9ANxHHZqLLeVHZN35jCtI4JdmLLbLiC1kBow==", + "version": "4.6.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz", + "integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==", "dev": true, "bin": { "tsc": "bin/tsc", diff --git a/desktop/package.json b/desktop/package.json index 91d910700..9e38957aa 100644 --- a/desktop/package.json +++ b/desktop/package.json @@ -177,7 +177,7 @@ "to-string-loader": "^1.1.6", "ts-loader": "^5.4.5", "ts-node": "^8.10.2", - "typescript": "~4.1.0", + "typescript": "~4.6.0", "url-loader": "^1.1.2", "webpack": "^4.44.1", "webpack-cli": "^3.3.12", diff --git a/desktop/tsconfig.browser.json b/desktop/tsconfig.browser.json index d4de32ffe..0123de454 100644 --- a/desktop/tsconfig.browser.json +++ b/desktop/tsconfig.browser.json @@ -5,5 +5,8 @@ "src/test/**/*.ts", "test/**/*.ts", "**/testing**/*" - ] + ], + "angularCompilerOptions": { + "disableTypeScriptVersionCheck": true + } } diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json index d35b93521..3969edac8 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -6,20 +6,22 @@ "": { "name": "typescript-emitter-package", "dependencies": { - "@azure-tools/typespec-autorest": "0.35.0", - "@azure-tools/typespec-azure-core": "0.35.0", - "@azure-tools/typespec-client-generator-core": "0.35.0", - "@azure-tools/typespec-ts": "0.19.0", - "@typespec/compiler": "0.49.0", - "@typespec/http": "0.49.0", - "@typespec/rest": "0.49.0", - "@typespec/versioning": "0.49.0" + "@azure-tools/typespec-autorest": "0.42.1", + "@azure-tools/typespec-azure-core": "0.42.0", + "@azure-tools/typespec-azure-resource-manager": "0.42.1", + "@azure-tools/typespec-azure-rulesets": "0.42.1", + "@azure-tools/typespec-client-generator-core": "0.42.3", + "@azure-tools/typespec-ts": "0.29.0", + "@typespec/compiler": "0.56.0", + "@typespec/http": "0.56.0", + "@typespec/rest": "0.56.0", + "@typespec/versioning": "0.56.0" } }, "node_modules/@azure-tools/rlc-common": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/@azure-tools/rlc-common/-/rlc-common-0.19.0.tgz", - "integrity": "sha512-ljfmTt0aCLhCeyamIptBEt1OFg7r4LydMqWqK2esHio2wWzW9JmndiGvnz+hXVi2uXyPlUX4A93tKuHAQq52ug==", + "version": "0.29.0", + "resolved": "https://registry.npmjs.org/@azure-tools/rlc-common/-/rlc-common-0.29.0.tgz", + "integrity": "sha512-JAvOAYuNPBAXSMo2bLsglsbBA26oCwUKibXG6iUIdwP5oKITuuCFLnBG0rx28qEV/exvCpO9QHvd7WEDQzTv5g==", "dependencies": { "handlebars": "^4.7.7", "lodash": "^4.17.21", @@ -27,96 +29,138 @@ } }, "node_modules/@azure-tools/typespec-autorest": { - "version": "0.35.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.35.0.tgz", - "integrity": "sha512-UGiRhgyBc3WWEUgIsSaT44Jgbw6KD2DwYNDr6Oxl2Ig/8ZIInpIB5Eix7mgdqKoN6ifra1wLn0GDAltwVx+idQ==", + "version": "0.42.1", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.42.1.tgz", + "integrity": "sha512-egWR2Ljxde5PvyDwuVu/8Rq8cSW6FW+qMbvwHfzrtm/sULdSnA6k+VnGD/PQ+dk+1SmFeKG1b+0MlaFuBVz1Hw==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.35.0", - "@typespec/compiler": "~0.49.0", - "@typespec/http": "~0.49.0", - "@typespec/openapi": "~0.49.0", - "@typespec/rest": "~0.49.0", - "@typespec/versioning": "~0.49.0" + "@azure-tools/typespec-azure-core": "~0.42.0", + "@azure-tools/typespec-client-generator-core": "~0.42.0", + "@typespec/compiler": "~0.56.0", + "@typespec/http": "~0.56.0", + "@typespec/openapi": "~0.56.0", + "@typespec/rest": "~0.56.0", + "@typespec/versioning": "~0.56.0" } }, "node_modules/@azure-tools/typespec-azure-core": { - "version": "0.35.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.35.0.tgz", - "integrity": "sha512-BOzR58O6ZeMcvDD9D1gd9/kZvmJUlyXUiF0BSQUouNVWTlOL9yIMVKZE+zgTiaYm8a3z2uIU9Us6y8CULoWiyw==", + "version": "0.42.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.42.0.tgz", + "integrity": "sha512-8C96RkgSWtgqsaHRMWCd2iDltFJZTGmFQiTZazZj/uRy0Wn1ikjSriSN8t1puL5SiUPd0BVJP/YXiwAfjfZYDA==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.49.0", - "@typespec/http": "~0.49.0", - "@typespec/rest": "~0.49.0" + "@typespec/compiler": "~0.56.0", + "@typespec/http": "~0.56.0", + "@typespec/rest": "~0.56.0" + } + }, + "node_modules/@azure-tools/typespec-azure-resource-manager": { + "version": "0.42.1", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.42.1.tgz", + "integrity": "sha512-vUqmHWS9OrN+16jXfpgUdUXXa1RLrr8Pkrzb1HFQGmdXuRxMZZtLCRcyyEHZJIMYE4RmmpPoB3JJeqiGWxlegQ==", + "dependencies": { + "change-case": "~5.4.4", + "pluralize": "^8.0.0" + }, + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "@azure-tools/typespec-autorest": "~0.42.1", + "@azure-tools/typespec-azure-core": "~0.42.0", + "@typespec/compiler": "~0.56.0", + "@typespec/http": "~0.56.0", + "@typespec/openapi": "~0.56.0", + "@typespec/rest": "~0.56.0", + "@typespec/versioning": "~0.56.0" + } + }, + "node_modules/@azure-tools/typespec-azure-rulesets": { + "version": "0.42.1", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-rulesets/-/typespec-azure-rulesets-0.42.1.tgz", + "integrity": "sha512-GRiMErWJ96DvDBQMVgGI1sgMTOegXxpx7w6enZyEF0BaodxGfObJyl1TrMb9Pj6NAZfV5Q6uJAfXFbpF1MVDCw==", + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "@azure-tools/typespec-azure-core": "~0.42.0", + "@azure-tools/typespec-azure-resource-manager": "~0.42.1", + "@azure-tools/typespec-client-generator-core": "~0.42.3", + "@typespec/compiler": "~0.56.0" } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.35.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.35.0.tgz", - "integrity": "sha512-3uItmYVhZVmPKCe+s8UZKAubUsjtTbgqVQI4wNayLuAovB9OrWmq09Wq1XEWFHPboGf+4Irehe/feTDnSHA+UA==", + "version": "0.42.3", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.42.3.tgz", + "integrity": "sha512-ZDVVIY1uJ8EaI4QhCdQmTdKVACm4xYn/I7ySpwv4oxk9X8kZFhxx+PKNHAlx34mhOf4oF0PW3wCN5DMeU6asYg==", + "dependencies": { + "change-case": "~5.4.4", + "pluralize": "^8.0.0" + }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.49.0", - "@typespec/http": "~0.49.0", - "@typespec/rest": "~0.49.0", - "@typespec/versioning": "~0.49.0" + "@azure-tools/typespec-azure-core": "~0.42.0", + "@typespec/compiler": "~0.56.0", + "@typespec/http": "~0.56.0", + "@typespec/rest": "~0.56.0", + "@typespec/versioning": "~0.56.0" } }, "node_modules/@azure-tools/typespec-ts": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-ts/-/typespec-ts-0.19.0.tgz", - "integrity": "sha512-kqMYC/69Hrcj0pNs7oVl4hczJ4ewzn89l8Jwh79++zzbDnML/27wZv1Cd5PLqfVxprDOQjZBhPH+eVkHne/ATQ==", + "version": "0.29.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-ts/-/typespec-ts-0.29.0.tgz", + "integrity": "sha512-jV+yFduauP68OtN7Xc4v1iFA91yIIDszkcqwGGnHMhLTiypD/hVt96ZEqOoVsWYeUkGt6bGrgPKak+bZD3DYtA==", "dependencies": { - "@azure-tools/rlc-common": "^0.19.0", + "@azure-tools/rlc-common": "^0.29.0", "fs-extra": "^11.1.0", - "prettier": "^2.6.1", + "prettier": "^3.1.0", "ts-morph": "^15.1.0", "tslib": "^2.3.1" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": ">=0.35.0 <1.0.0", - "@azure-tools/typespec-client-generator-core": ">=0.35.0 <1.0.0", - "@typespec/compiler": ">=0.49.0 <1.0.0", - "@typespec/http": ">=0.49.0 <1.0.0", - "@typespec/rest": ">=0.49.0 <1.0.0", - "@typespec/versioning": ">=0.49.0 <1.0.0" + "@azure-tools/typespec-azure-core": ">=0.42.0 <1.0.0", + "@azure-tools/typespec-client-generator-core": ">=0.42.2 <1.0.0", + "@typespec/compiler": ">=0.56.0 <1.0.0", + "@typespec/http": ">=0.56.0 <1.0.0", + "@typespec/rest": ">=0.56.0 <1.0.0", + "@typespec/versioning": ">=0.56.0 <1.0.0" } }, "node_modules/@babel/code-frame": { - "version": "7.22.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", - "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", + "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", "dependencies": { - "@babel/highlight": "^7.22.13", - "chalk": "^2.4.2" + "@babel/highlight": "^7.24.7", + "picocolors": "^1.0.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@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==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", + "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", "engines": { "node": ">=6.9.0" } }, "node_modules/@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==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", + "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", "dependencies": { - "@babel/helper-validator-identifier": "^7.22.20", + "@babel/helper-validator-identifier": "^7.24.7", "chalk": "^2.4.2", - "js-tokens": "^4.0.0" + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" }, "engines": { "node": ">=6.9.0" @@ -154,6 +198,17 @@ "node": ">= 8" } }, + "node_modules/@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==", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@ts-morph/common": { "version": "0.16.0", "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.16.0.tgz", @@ -166,22 +221,22 @@ } }, "node_modules/@typespec/compiler": { - "version": "0.49.0", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.49.0.tgz", - "integrity": "sha512-wu0BzCnG6K8GArO1Mo0UIAVvsGnip+Dce3uBuPcW6mGSAv6Y0NljWBHp8dAJNs+uv45wFWpdkZFQvjr3SNUDJw==", + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.56.0.tgz", + "integrity": "sha512-K+VhXycoeqcoSGtB0/l1XYco4V2qRsCOOwqklVM4Yew7kTcKVfz7CT7a6a2OKWDMNg5iijZtRBoM5YF50XtQug==", "dependencies": { - "@babel/code-frame": "~7.22.13", + "@babel/code-frame": "~7.24.2", "ajv": "~8.12.0", - "change-case": "~4.1.2", - "globby": "~13.2.2", + "change-case": "~5.4.4", + "globby": "~14.0.1", "mustache": "~4.2.0", "picocolors": "~1.0.0", - "prettier": "~3.0.3", + "prettier": "~3.2.5", "prompts": "~2.4.2", - "semver": "^7.5.4", - "vscode-languageserver": "~9.0.0", - "vscode-languageserver-textdocument": "~1.0.8", - "yaml": "~2.3.2", + "semver": "^7.6.0", + "vscode-languageserver": "~9.0.1", + "vscode-languageserver-textdocument": "~1.0.11", + "yaml": "~2.4.1", "yargs": "~17.7.2" }, "bin": { @@ -189,13 +244,13 @@ "tsp-server": "cmd/tsp-server.js" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@typespec/compiler/node_modules/prettier": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", - "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==", + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", + "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", "bin": { "prettier": "bin/prettier.cjs" }, @@ -207,50 +262,50 @@ } }, "node_modules/@typespec/http": { - "version": "0.49.0", - "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.49.0.tgz", - "integrity": "sha512-MvDJ0s7CjeA/nmutQ4PSTYOj0Gy+78PNd/xe4W5II5w4Kb32Q1vT/oWI2bVZ9G5MkTugKK9P6jmfzwY7EiHksg==", + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.56.0.tgz", + "integrity": "sha512-f/tpHRWev9bnAtNPFkfCU/5SFou9glA/rPDY0m2W5bK6EG1/6/TKKKz5FoKPA4xvc2dQ5vu/ouGLb4i5UzXvWQ==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.49.0" + "@typespec/compiler": "~0.56.0" } }, "node_modules/@typespec/openapi": { - "version": "0.49.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.49.0.tgz", - "integrity": "sha512-2TQfnGKtiiKYD1eMiRAcEwDByaBf5WgvcIlLWpWJk/nmcKr6ZeOzUDj5V1fGiiY+/1sI0C0qGCz8PIxcvLa9kw==", + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.56.0.tgz", + "integrity": "sha512-q8+IHRglXBm3slvonRLSNYN2fX7plbWA+ugIiMJZTeyc3enqfxPqMGA8BCiAFV3kwP0uPPpIXbCSIVhHgkONbA==", "peer": true, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.49.0", - "@typespec/http": "~0.49.0" + "@typespec/compiler": "~0.56.0", + "@typespec/http": "~0.56.0" } }, "node_modules/@typespec/rest": { - "version": "0.49.0", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.49.0.tgz", - "integrity": "sha512-C5Ym3Dal5MzDkDIAzTekLsGtPDzRSC9cbiagq4LQfFtzfUPA8tJlJOnD8txTw/XIaFg0hvAPNgTZSa+xtiXskQ==", + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.56.0.tgz", + "integrity": "sha512-8w4WhWDcpEQNW8bB1BHhiBxIQUChDJtyq/n9p2OI/Bm1wncd61y/ZNOtcxmlKq8uB9d+dzHiZdEfqFCR8HF8/Q==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.49.0", - "@typespec/http": "~0.49.0" + "@typespec/compiler": "~0.56.0", + "@typespec/http": "~0.56.0" } }, "node_modules/@typespec/versioning": { - "version": "0.49.0", - "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.49.0.tgz", - "integrity": "sha512-SuRcEB0yaD/wPwaXweIRr+lNDB4hgZwFxHi84y7De1xlntutRl+NeRgWd+K4yVS6tpyNHzcqK6Z7bBD30yQK/w==", + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.56.0.tgz", + "integrity": "sha512-j7IN9XFyGn3LH6IOJkinEvk9sDncsxiWPULOAe0VQ+D/dtCfLawDMUALnvklMDRKeD1OOUPSCjjUAp9OB0f7YA==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.49.0" + "@typespec/compiler": "~0.56.0" } }, "node_modules/ajv": { @@ -301,35 +356,16 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" } }, - "node_modules/camel-case": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", - "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", - "dependencies": { - "pascal-case": "^3.1.2", - "tslib": "^2.0.3" - } - }, - "node_modules/capital-case": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/capital-case/-/capital-case-1.0.4.tgz", - "integrity": "sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==", - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3", - "upper-case-first": "^2.0.2" - } - }, "node_modules/chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", @@ -344,23 +380,9 @@ } }, "node_modules/change-case": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/change-case/-/change-case-4.1.2.tgz", - "integrity": "sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A==", - "dependencies": { - "camel-case": "^4.1.2", - "capital-case": "^1.0.4", - "constant-case": "^3.0.4", - "dot-case": "^3.0.4", - "header-case": "^2.0.4", - "no-case": "^3.0.4", - "param-case": "^3.0.4", - "pascal-case": "^3.1.2", - "path-case": "^3.0.4", - "sentence-case": "^3.0.4", - "snake-case": "^3.0.4", - "tslib": "^2.0.3" - } + "version": "5.4.4", + "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.4.tgz", + "integrity": "sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==" }, "node_modules/cliui": { "version": "8.0.1", @@ -393,45 +415,15 @@ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" }, - "node_modules/constant-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/constant-case/-/constant-case-3.0.4.tgz", - "integrity": "sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ==", - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3", - "upper-case": "^2.0.2" - } - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/dot-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", - "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, "node_modules/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==" }, "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", "engines": { "node": ">=6" } @@ -465,17 +457,17 @@ } }, "node_modules/fastq": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", "dependencies": { "reusify": "^1.0.4" } }, "node_modules/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==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -484,9 +476,9 @@ } }, "node_modules/fs-extra": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", - "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", @@ -516,18 +508,19 @@ } }, "node_modules/globby": { - "version": "13.2.2", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.2.2.tgz", - "integrity": "sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==", + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/globby/-/globby-14.0.1.tgz", + "integrity": "sha512-jOMLD2Z7MAhyG8aJpNOpmziMOP4rPLcc95oQPKXBazW82z+CEgPFBQvEpRUa1KeIMUJo4Wsm+q6uzO/Q/4BksQ==", "dependencies": { - "dir-glob": "^3.0.1", - "fast-glob": "^3.3.0", + "@sindresorhus/merge-streams": "^2.1.0", + "fast-glob": "^3.3.2", "ignore": "^5.2.4", - "merge2": "^1.4.1", - "slash": "^4.0.0" + "path-type": "^5.0.0", + "slash": "^5.1.0", + "unicorn-magic": "^0.1.0" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -566,19 +559,10 @@ "node": ">=4" } }, - "node_modules/header-case": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/header-case/-/header-case-2.0.4.tgz", - "integrity": "sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==", - "dependencies": { - "capital-case": "^1.0.4", - "tslib": "^2.0.3" - } - }, "node_modules/ignore": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", - "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", "engines": { "node": ">= 4" } @@ -652,25 +636,6 @@ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, - "node_modules/lower-case": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", - "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", - "dependencies": { - "tslib": "^2.0.3" - } - }, - "node_modules/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==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", @@ -680,11 +645,11 @@ } }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", + "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { @@ -734,59 +699,26 @@ "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" }, - "node_modules/no-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", - "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", - "dependencies": { - "lower-case": "^2.0.2", - "tslib": "^2.0.3" - } - }, - "node_modules/param-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", - "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", - "dependencies": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/pascal-case": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", - "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, "node_modules/path-browserify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==" }, - "node_modules/path-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/path-case/-/path-case-3.0.4.tgz", - "integrity": "sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg==", - "dependencies": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-5.0.0.tgz", + "integrity": "sha512-5HviZNaZcfqP95rwpv+1HDgUamezbqdSYTyzjTvwtJSnIH+3vnbmWsItli8OFEndS984VT55M3jduxZbX351gg==", "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" }, "node_modules/picomatch": { "version": "2.3.1", @@ -799,15 +731,23 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/pluralize": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", + "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", + "engines": { + "node": ">=4" + } + }, "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.1.tgz", + "integrity": "sha512-7CAwy5dRsxs8PHXT3twixW9/OEll8MLE0VRPCJyl7CkS6VHGPSlsVaWTiASPTyGyYRyApxlaWTzwUxVNrhcwDg==", "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" @@ -900,12 +840,9 @@ } }, "node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dependencies": { - "lru-cache": "^6.0.0" - }, + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "bin": { "semver": "bin/semver.js" }, @@ -913,41 +850,22 @@ "node": ">=10" } }, - "node_modules/sentence-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/sentence-case/-/sentence-case-3.0.4.tgz", - "integrity": "sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg==", - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3", - "upper-case-first": "^2.0.2" - } - }, "node_modules/sisteransi": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" }, "node_modules/slash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", - "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-5.1.0.tgz", + "integrity": "sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==", "engines": { - "node": ">=12" + "node": ">=14.16" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/snake-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz", - "integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==", - "dependencies": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -1012,9 +930,9 @@ } }, "node_modules/tslib": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", + "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==" }, "node_modules/uglify-js": { "version": "3.17.4", @@ -1028,6 +946,17 @@ "node": ">=0.8.0" } }, + "node_modules/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==", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/universalify": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", @@ -1036,22 +965,6 @@ "node": ">= 10.0.0" } }, - "node_modules/upper-case": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/upper-case/-/upper-case-2.0.2.tgz", - "integrity": "sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg==", - "dependencies": { - "tslib": "^2.0.3" - } - }, - "node_modules/upper-case-first": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/upper-case-first/-/upper-case-first-2.0.2.tgz", - "integrity": "sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==", - "dependencies": { - "tslib": "^2.0.3" - } - }, "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", @@ -1157,15 +1070,13 @@ "node": ">=10" } }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, "node_modules/yaml": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.4.tgz", - "integrity": "sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==", + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.3.tgz", + "integrity": "sha512-sntgmxj8o7DE7g/Qi60cqpLBA3HG3STcDA0kO+WfB05jEKhZMbY7umNm2rBpQvsmZ16/lPXCJGW2672dgOUkrg==", + "bin": { + "yaml": "bin.mjs" + }, "engines": { "node": ">= 14" } diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 11221c28b..f948f4f1a 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -2,13 +2,15 @@ "name": "typescript-emitter-package", "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-ts": "0.19.0", - "@azure-tools/typespec-azure-core": "0.35.0", - "@azure-tools/typespec-autorest": "0.35.0", - "@azure-tools/typespec-client-generator-core": "0.35.0", - "@typespec/compiler": "0.49.0", - "@typespec/http": "0.49.0", - "@typespec/rest": "0.49.0", - "@typespec/versioning": "0.49.0" + "@azure-tools/typespec-ts": "0.29.0", + "@azure-tools/typespec-azure-core": "0.42.0", + "@azure-tools/typespec-autorest": "0.42.1", + "@azure-tools/typespec-client-generator-core": "0.42.3", + "@azure-tools/typespec-azure-resource-manager": "0.42.1", + "@azure-tools/typespec-azure-rulesets": "0.42.1", + "@typespec/compiler": "0.56.0", + "@typespec/http": "0.56.0", + "@typespec/rest": "0.56.0", + "@typespec/versioning": "0.56.0" } } diff --git a/packages/service/package-lock.json b/packages/service/package-lock.json index fb7e938aa..9175e527a 100644 --- a/packages/service/package-lock.json +++ b/packages/service/package-lock.json @@ -9,11 +9,11 @@ "version": "1.0.1", "license": "MIT", "dependencies": { - "@azure-rest/core-client": "^1.1.4", - "@azure/core-auth": "^1.3.0", + "@azure-rest/core-client": "^1.4.0", + "@azure/core-auth": "^1.6.0", "@azure/core-lro": "^2.2.0", - "@azure/core-paging": "^1.2.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-paging": "^1.5.0", + "@azure/core-rest-pipeline": "^1.16.0", "@azure/logger": "^1.0.0" }, "devDependencies": { @@ -42,19 +42,30 @@ } }, "node_modules/@azure-rest/core-client": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/@azure-rest/core-client/-/core-client-1.1.4.tgz", - "integrity": "sha512-RUIQOA8T0WcbNlddr8hjl2MuC5GVRqmMwPXqBVsgvdKesLy+eg3y/6nf3qe2fvcJMI1gF6VtgU5U4hRaR4w4ag==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@azure-rest/core-client/-/core-client-1.4.0.tgz", + "integrity": "sha512-ozTDPBVUDR5eOnMIwhggbnVmOrka4fXCs8n8mvUo4WLLc38kki6bAOByDoVZZPz/pZy2jMt2kwfpvy/UjALj6w==", "dependencies": { - "@azure/abort-controller": "^1.1.0", + "@azure/abort-controller": "^2.0.0", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.5.0", "@azure/core-tracing": "^1.0.1", "@azure/core-util": "^1.0.0", - "tslib": "^2.2.0" + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=18.0.0" + } + }, + "node_modules/@azure-rest/core-client/node_modules/@azure/abort-controller": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.1.2.tgz", + "integrity": "sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@azure/abort-controller": { @@ -69,16 +80,27 @@ } }, "node_modules/@azure/core-auth": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.5.0.tgz", - "integrity": "sha512-udzoBuYG1VBoHVohDTrvKjyzel34zt77Bhp7dQntVGGD0ehVq48owENbBG8fIgkHRNUBQH5k1r0hpoMu5L8+kw==", + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.7.2.tgz", + "integrity": "sha512-Igm/S3fDYmnMq1uKS38Ae1/m37B3zigdlZw+kocwEhh5GjyKjPrXKO2J6rzpC1wAxrNil/jX9BJRqBshyjnF3g==", "dependencies": { - "@azure/abort-controller": "^1.0.0", + "@azure/abort-controller": "^2.0.0", "@azure/core-util": "^1.1.0", - "tslib": "^2.2.0" + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=18.0.0" + } + }, + "node_modules/@azure/core-auth/node_modules/@azure/abort-controller": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.1.2.tgz", + "integrity": "sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@azure/core-lro": { @@ -107,56 +129,67 @@ } }, "node_modules/@azure/core-rest-pipeline": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.12.2.tgz", - "integrity": "sha512-wLLJQdL4v1yoqYtEtjKNjf8pJ/G/BqVomAWxcKOR1KbZJyCEnCv04yks7Y1NhJ3JzxbDs307W67uX0JzklFdCg==", + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.16.0.tgz", + "integrity": "sha512-CeuTvsXxCUmEuxH5g/aceuSl6w2EugvNHKAtKKVdiX915EjJJxAwfzNNWZreNnbxHZ2fi0zaM6wwS23x2JVqSQ==", "dependencies": { - "@azure/abort-controller": "^1.0.0", + "@azure/abort-controller": "^2.0.0", "@azure/core-auth": "^1.4.0", "@azure/core-tracing": "^1.0.1", - "@azure/core-util": "^1.3.0", + "@azure/core-util": "^1.9.0", "@azure/logger": "^1.0.0", - "form-data": "^4.0.0", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.0", - "tslib": "^2.2.0" + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@azure/core-rest-pipeline/node_modules/@tootallnate/once": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", - "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", + "node_modules/@azure/core-rest-pipeline/node_modules/@azure/abort-controller": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.1.2.tgz", + "integrity": "sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==", + "dependencies": { + "tslib": "^2.6.2" + }, "engines": { - "node": ">= 10" + "node": ">=18.0.0" } }, - "node_modules/@azure/core-rest-pipeline/node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "node_modules/@azure/core-rest-pipeline/node_modules/agent-base": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", + "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" + "debug": "^4.3.4" }, "engines": { - "node": ">= 6" + "node": ">= 14" } }, "node_modules/@azure/core-rest-pipeline/node_modules/http-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", - "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", "dependencies": { - "@tootallnate/once": "2", - "agent-base": "6", + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/@azure/core-rest-pipeline/node_modules/https-proxy-agent": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.4.tgz", + "integrity": "sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg==", + "dependencies": { + "agent-base": "^7.0.2", "debug": "4" }, "engines": { - "node": ">= 6" + "node": ">= 14" } }, "node_modules/@azure/core-tracing": { @@ -171,15 +204,26 @@ } }, "node_modules/@azure/core-util": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@azure/core-util/-/core-util-1.6.1.tgz", - "integrity": "sha512-h5taHeySlsV9qxuK64KZxy4iln1BtMYlNt5jbuEFN3UFSAd1EwKg/Gjl5a6tZ/W8t6li3xPnutOx7zbDyXnPmQ==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@azure/core-util/-/core-util-1.9.0.tgz", + "integrity": "sha512-AfalUQ1ZppaKuxPPMsFEUdX6GZPB3d9paR9d/TTL7Ow2De8cJaC7ibi7kWVlFAVPCYo31OcnGymc0R89DX8Oaw==", "dependencies": { - "@azure/abort-controller": "^1.0.0", - "tslib": "^2.2.0" + "@azure/abort-controller": "^2.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" + } + }, + "node_modules/@azure/core-util/node_modules/@azure/abort-controller": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.1.2.tgz", + "integrity": "sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@azure/logger": { @@ -1310,6 +1354,7 @@ "version": "6.0.2", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, "dependencies": { "debug": "4" }, @@ -1381,7 +1426,8 @@ "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true }, "node_modules/babel-jest": { "version": "27.5.1", @@ -1701,6 +1747,7 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, "dependencies": { "delayed-stream": "~1.0.0" }, @@ -1813,6 +1860,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, "engines": { "node": ">=0.4.0" } @@ -2217,6 +2265,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, "dependencies": { "agent-base": "6", "debug": "4" @@ -3351,6 +3400,7 @@ "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, "engines": { "node": ">= 0.6" } @@ -3359,6 +3409,7 @@ "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, "dependencies": { "mime-db": "1.52.0" }, @@ -4133,9 +4184,9 @@ "dev": true }, "node_modules/tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", + "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==" }, "node_modules/type-detect": { "version": "4.0.8", diff --git a/packages/service/package.json b/packages/service/package.json index 4c3f0d3bd..b49e105b3 100644 --- a/packages/service/package.json +++ b/packages/service/package.json @@ -64,12 +64,12 @@ "tslib": "~2.3.1" }, "dependencies": { - "@azure-rest/core-client": "^1.1.4", + "@azure-rest/core-client": "^1.4.0", "@azure/bonito-core": "^1.0.0", - "@azure/core-auth": "^1.3.0", + "@azure/core-auth": "^1.6.0", "@azure/core-lro": "^2.2.0", - "@azure/core-paging": "^1.2.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-paging": "^1.5.0", + "@azure/core-rest-pipeline": "^1.16.0", "@azure/logger": "^1.0.0" }, "devDependencies": { diff --git a/packages/service/src/constants.ts b/packages/service/src/constants.ts index 873a15960..d8cc7c301 100644 --- a/packages/service/src/constants.ts +++ b/packages/service/src/constants.ts @@ -1,4 +1,4 @@ export const BatchApiVersion = { arm: `2023-11-01`, - data: `2023-05-01.17.0`, + data: `2024-02-01.19.0`, }; diff --git a/packages/service/src/internal/batch-rest/client.ts b/packages/service/src/internal/batch-rest/client.ts index 5718657a6..a1d20f734 100644 --- a/packages/service/src/internal/batch-rest/client.ts +++ b/packages/service/src/internal/batch-rest/client.ts @@ -19,7 +19,7 @@ export function createBatchClient( options = { ...options, httpClient: new BatchHttpClient(), - apiVersion: "2023-05-01.17.0", + apiVersion: "2024-02-01.19.0", }; } // eslint-disable-next-line @typescript-eslint/no-explicit-any diff --git a/packages/service/src/internal/batch-rest/generated/src/batchClient.ts b/packages/service/src/internal/batch-rest/generated/src/batchClient.ts index c2c1b54d9..04831d69b 100644 --- a/packages/service/src/internal/batch-rest/generated/src/batchClient.ts +++ b/packages/service/src/internal/batch-rest/generated/src/batchClient.ts @@ -2,23 +2,23 @@ // Licensed under the MIT license. import { getClient, ClientOptions } from "@azure-rest/core-client"; -import { logger } from "./logger"; +import { logger } from "./logger.js"; import { TokenCredential } from "@azure/core-auth"; -import { BatchClient } from "./clientDefinitions"; +import { BatchClient } from "./clientDefinitions.js"; /** * Initialize a new instance of `BatchClient` - * @param endpoint - Batch account endpoint (for example: https://batchaccount.eastus2.batch.azure.com). + * @param endpointParam - Batch account endpoint (for example: https://batchaccount.eastus2.batch.azure.com). * @param credentials - uniquely identify client credential * @param options - the parameter for all optional parameters */ export default function createClient( - endpoint: string, + endpointParam: string, credentials: TokenCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): BatchClient { - const baseUrl = options.baseUrl ?? `${endpoint}`; - options.apiVersion = options.apiVersion ?? "2023-11-01.18.0"; + const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpointParam}`; + options.apiVersion = options.apiVersion ?? "2024-02-01.19.0"; const userAgentInfo = `azsdk-js-batch-rest/1.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix @@ -44,7 +44,7 @@ export default function createClient( }, }; - const client = getClient(baseUrl, credentials, options) as BatchClient; + const client = getClient(endpointUrl, credentials, options) as BatchClient; return client; } diff --git a/packages/service/src/internal/batch-rest/generated/src/clientDefinitions.ts b/packages/service/src/internal/batch-rest/generated/src/clientDefinitions.ts index a8a57f786..cf6f11b52 100644 --- a/packages/service/src/internal/batch-rest/generated/src/clientDefinitions.ts +++ b/packages/service/src/internal/batch-rest/generated/src/clientDefinitions.ts @@ -32,11 +32,6 @@ import { ListJobsFromScheduleParameters, ListJobPreparationAndReleaseTaskStatusParameters, GetJobTaskCountsParameters, - CreateCertificateParameters, - ListCertificatesParameters, - CancelCertificateDeletionParameters, - DeleteCertificateParameters, - GetCertificateParameters, JobScheduleExistsParameters, DeleteJobScheduleParameters, GetJobScheduleParameters, @@ -65,11 +60,9 @@ import { ReplaceNodeUserParameters, GetNodeParameters, RebootNodeParameters, - ReimageNodeParameters, DisableNodeSchedulingParameters, EnableNodeSchedulingParameters, GetNodeRemoteLoginSettingsParameters, - GetNodeRemoteDesktopFileParameters, UploadNodeLogsParameters, ListNodesParameters, GetNodeExtensionParameters, @@ -78,7 +71,7 @@ import { GetNodeFileParameters, GetNodeFilePropertiesParameters, ListNodeFilesParameters, -} from "./parameters"; +} from "./parameters.js"; import { ListApplications200Response, ListApplicationsDefaultResponse, @@ -141,16 +134,6 @@ import { ListJobPreparationAndReleaseTaskStatusDefaultResponse, GetJobTaskCounts200Response, GetJobTaskCountsDefaultResponse, - CreateCertificate201Response, - CreateCertificateDefaultResponse, - ListCertificates200Response, - ListCertificatesDefaultResponse, - CancelCertificateDeletion204Response, - CancelCertificateDeletionDefaultResponse, - DeleteCertificate202Response, - DeleteCertificateDefaultResponse, - GetCertificate200Response, - GetCertificateDefaultResponse, JobScheduleExists200Response, JobScheduleExists404Response, JobScheduleExistsDefaultResponse, @@ -208,16 +191,12 @@ import { GetNodeDefaultResponse, RebootNode202Response, RebootNodeDefaultResponse, - ReimageNode202Response, - ReimageNodeDefaultResponse, DisableNodeScheduling200Response, DisableNodeSchedulingDefaultResponse, EnableNodeScheduling200Response, EnableNodeSchedulingDefaultResponse, GetNodeRemoteLoginSettings200Response, GetNodeRemoteLoginSettingsDefaultResponse, - GetNodeRemoteDesktopFile200Response, - GetNodeRemoteDesktopFileDefaultResponse, UploadNodeLogs200Response, UploadNodeLogsDefaultResponse, ListNodes200Response, @@ -234,7 +213,7 @@ import { GetNodeFilePropertiesDefaultResponse, ListNodeFiles200Response, ListNodeFilesDefaultResponse, -} from "./responses"; +} from "./responses.js"; import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface ListApplications { @@ -246,7 +225,7 @@ export interface ListApplications { * API. */ get( - options?: ListApplicationsParameters + options?: ListApplicationsParameters, ): StreamableMethod< ListApplications200Response | ListApplicationsDefaultResponse >; @@ -261,7 +240,7 @@ export interface GetApplication { * API. */ get( - options?: GetApplicationParameters + options?: GetApplicationParameters, ): StreamableMethod< GetApplication200Response | GetApplicationDefaultResponse >; @@ -277,7 +256,7 @@ export interface ListPoolUsageMetrics { * last aggregation interval is returned. */ get( - options?: ListPoolUsageMetricsParameters + options?: ListPoolUsageMetricsParameters, ): StreamableMethod< ListPoolUsageMetrics200Response | ListPoolUsageMetricsDefaultResponse >; @@ -290,11 +269,11 @@ export interface CreatePool { * to Microsoft Support engineers. */ post( - options: CreatePoolParameters + options: CreatePoolParameters, ): StreamableMethod; /** Lists all of the Pools in the specified Account. */ get( - options?: ListPoolsParameters + options?: ListPoolsParameters, ): StreamableMethod; } @@ -314,17 +293,17 @@ export interface DeletePool { * error code PoolBeingDeleted. */ delete( - options?: DeletePoolParameters + options?: DeletePoolParameters, ): StreamableMethod; /** Gets basic properties of a Pool. */ head( - options?: PoolExistsParameters + options?: PoolExistsParameters, ): StreamableMethod< PoolExists200Response | PoolExists404Response | PoolExistsDefaultResponse >; /** Gets information about the specified Pool. */ get( - options?: GetPoolParameters + options?: GetPoolParameters, ): StreamableMethod; /** * This only replaces the Pool properties specified in the request. For example, @@ -332,14 +311,14 @@ export interface DeletePool { * a StartTask element, then the Pool keeps the existing StartTask. */ patch( - options: UpdatePoolParameters + options: UpdatePoolParameters, ): StreamableMethod; } export interface DisablePoolAutoScale { /** Disables automatic scaling for a Pool. */ post( - options?: DisablePoolAutoScaleParameters + options?: DisablePoolAutoScaleParameters, ): StreamableMethod< DisablePoolAutoScale200Response | DisablePoolAutoScaleDefaultResponse >; @@ -355,7 +334,7 @@ export interface EnablePoolAutoScale { * more than once every 30 seconds. */ post( - options: EnablePoolAutoScaleParameters + options: EnablePoolAutoScaleParameters, ): StreamableMethod< EnablePoolAutoScale200Response | EnablePoolAutoScaleDefaultResponse >; @@ -368,7 +347,7 @@ export interface EvaluatePoolAutoScale { * scaling enabled in order to evaluate a formula. */ post( - options: EvaluatePoolAutoScaleParameters + options: EvaluatePoolAutoScaleParameters, ): StreamableMethod< EvaluatePoolAutoScale200Response | EvaluatePoolAutoScaleDefaultResponse >; @@ -385,7 +364,7 @@ export interface ResizePool { * Nodes, use the Pool remove Compute Nodes API instead. */ post( - options: ResizePoolParameters + options: ResizePoolParameters, ): StreamableMethod; } @@ -400,7 +379,7 @@ export interface StopPoolResize { * be used to halt the initial sizing of the Pool when it is created. */ post( - options?: StopPoolResizeParameters + options?: StopPoolResizeParameters, ): StreamableMethod< StopPoolResize202Response | StopPoolResizeDefaultResponse >; @@ -413,7 +392,7 @@ export interface ReplacePoolProperties { * with this request, then the Batch service will remove the existing StartTask. */ post( - options: ReplacePoolPropertiesParameters + options: ReplacePoolPropertiesParameters, ): StreamableMethod< ReplacePoolProperties204Response | ReplacePoolPropertiesDefaultResponse >; @@ -426,14 +405,14 @@ export interface RemoveNodes { * Each request may remove up to 100 nodes. */ post( - options: RemoveNodesParameters + options: RemoveNodesParameters, ): StreamableMethod; } export interface ListSupportedImages { /** Lists all Virtual Machine Images supported by the Azure Batch service. */ get( - options?: ListSupportedImagesParameters + options?: ListSupportedImagesParameters, ): StreamableMethod< ListSupportedImages200Response | ListSupportedImagesDefaultResponse >; @@ -446,7 +425,7 @@ export interface ListPoolNodeCounts { * use a list query. */ get( - options?: ListPoolNodeCountsParameters + options?: ListPoolNodeCountsParameters, ): StreamableMethod< ListPoolNodeCounts200Response | ListPoolNodeCountsDefaultResponse >; @@ -464,11 +443,11 @@ export interface DeleteJob { * that the Job is being deleted. */ delete( - options?: DeleteJobParameters + options?: DeleteJobParameters, ): StreamableMethod; /** Gets information about the specified Job. */ get( - options?: GetJobParameters + options?: GetJobParameters, ): StreamableMethod; /** * This replaces only the Job properties specified in the request. For example, if @@ -476,7 +455,7 @@ export interface DeleteJob { * element, then the Job keeps the existing constraints. */ patch( - options: UpdateJobParameters + options: UpdateJobParameters, ): StreamableMethod; /** * This fully replaces all the updatable properties of the Job. For example, if @@ -484,7 +463,7 @@ export interface DeleteJob { * with this request, then the Batch service will remove the existing constraints. */ put( - options: ReplaceJobParameters + options: ReplaceJobParameters, ): StreamableMethod; } @@ -500,7 +479,7 @@ export interface DisableJob { * the request fails with status code 409. */ post( - options: DisableJobParameters + options: DisableJobParameters, ): StreamableMethod; } @@ -514,7 +493,7 @@ export interface EnableJob { * than 180 days ago, those Tasks will not run. */ post( - options?: EnableJobParameters + options?: EnableJobParameters, ): StreamableMethod; } @@ -528,7 +507,7 @@ export interface TerminateJob { * Tasks cannot be added and any remaining active Tasks will not be scheduled. */ post( - options: TerminateJobParameters + options: TerminateJobParameters, ): StreamableMethod; } @@ -545,18 +524,18 @@ export interface CreateJob { * engineers. */ post( - options: CreateJobParameters + options: CreateJobParameters, ): StreamableMethod; /** Lists all of the Jobs in the specified Account. */ get( - options?: ListJobsParameters + options?: ListJobsParameters, ): StreamableMethod; } export interface ListJobsFromSchedule { /** Lists the Jobs that have been created under the specified Job Schedule. */ get( - options?: ListJobsFromScheduleParameters + options?: ListJobsFromScheduleParameters, ): StreamableMethod< ListJobsFromSchedule200Response | ListJobsFromScheduleDefaultResponse >; @@ -572,7 +551,7 @@ export interface ListJobPreparationAndReleaseTaskStatus { * JobPreparationTaskNotSpecified. */ get( - options?: ListJobPreparationAndReleaseTaskStatusParameters + options?: ListJobPreparationAndReleaseTaskStatusParameters, ): StreamableMethod< | ListJobPreparationAndReleaseTaskStatus200Response | ListJobPreparationAndReleaseTaskStatusDefaultResponse @@ -587,74 +566,16 @@ export interface GetJobTaskCounts { * up to date. If you need exact task counts, use a list query. */ get( - options?: GetJobTaskCountsParameters + options?: GetJobTaskCountsParameters, ): StreamableMethod< GetJobTaskCounts200Response | GetJobTaskCountsDefaultResponse >; } -export interface CreateCertificate { - /** Creates a Certificate to the specified Account. */ - post( - options: CreateCertificateParameters - ): StreamableMethod< - CreateCertificate201Response | CreateCertificateDefaultResponse - >; - /** Lists all of the Certificates that have been added to the specified Account. */ - get( - options?: ListCertificatesParameters - ): StreamableMethod< - ListCertificates200Response | ListCertificatesDefaultResponse - >; -} - -export interface CancelCertificateDeletion { - /** - * If you try to delete a Certificate that is being used by a Pool or Compute - * Node, the status of the Certificate changes to deleteFailed. If you decide that - * you want to continue using the Certificate, you can use this operation to set - * the status of the Certificate back to active. If you intend to delete the - * Certificate, you do not need to run this operation after the deletion failed. - * You must make sure that the Certificate is not being used by any resources, and - * then you can try again to delete the Certificate. - */ - post( - options?: CancelCertificateDeletionParameters - ): StreamableMethod< - | CancelCertificateDeletion204Response - | CancelCertificateDeletionDefaultResponse - >; -} - -export interface DeleteCertificate { - /** - * You cannot delete a Certificate if a resource (Pool or Compute Node) is using - * it. Before you can delete a Certificate, you must therefore make sure that the - * Certificate is not associated with any existing Pools, the Certificate is not - * installed on any Nodes (even if you remove a Certificate from a Pool, it is not - * removed from existing Compute Nodes in that Pool until they restart), and no - * running Tasks depend on the Certificate. If you try to delete a Certificate - * that is in use, the deletion fails. The Certificate status changes to - * deleteFailed. You can use Cancel Delete Certificate to set the status back to - * active if you decide that you want to continue using the Certificate. - */ - delete( - options?: DeleteCertificateParameters - ): StreamableMethod< - DeleteCertificate202Response | DeleteCertificateDefaultResponse - >; - /** Gets information about the specified Certificate. */ - get( - options?: GetCertificateParameters - ): StreamableMethod< - GetCertificate200Response | GetCertificateDefaultResponse - >; -} - export interface JobScheduleExists { /** Checks the specified Job Schedule exists. */ head( - options?: JobScheduleExistsParameters + options?: JobScheduleExistsParameters, ): StreamableMethod< | JobScheduleExists200Response | JobScheduleExists404Response @@ -668,13 +589,13 @@ export interface JobScheduleExists { * though they are still counted towards Account lifetime statistics. */ delete( - options?: DeleteJobScheduleParameters + options?: DeleteJobScheduleParameters, ): StreamableMethod< DeleteJobSchedule202Response | DeleteJobScheduleDefaultResponse >; /** Gets information about the specified Job Schedule. */ get( - options?: GetJobScheduleParameters + options?: GetJobScheduleParameters, ): StreamableMethod< GetJobSchedule200Response | GetJobScheduleDefaultResponse >; @@ -686,7 +607,7 @@ export interface JobScheduleExists { * running Jobs are unaffected. */ patch( - options: UpdateJobScheduleParameters + options: UpdateJobScheduleParameters, ): StreamableMethod< UpdateJobSchedule200Response | UpdateJobScheduleDefaultResponse >; @@ -698,7 +619,7 @@ export interface JobScheduleExists { * running Jobs are unaffected. */ put( - options: ReplaceJobScheduleParameters + options: ReplaceJobScheduleParameters, ): StreamableMethod< ReplaceJobSchedule200Response | ReplaceJobScheduleDefaultResponse >; @@ -707,7 +628,7 @@ export interface JobScheduleExists { export interface DisableJobSchedule { /** No new Jobs will be created until the Job Schedule is enabled again. */ post( - options?: DisableJobScheduleParameters + options?: DisableJobScheduleParameters, ): StreamableMethod< DisableJobSchedule204Response | DisableJobScheduleDefaultResponse >; @@ -716,7 +637,7 @@ export interface DisableJobSchedule { export interface EnableJobSchedule { /** Enables a Job Schedule. */ post( - options?: EnableJobScheduleParameters + options?: EnableJobScheduleParameters, ): StreamableMethod< EnableJobSchedule204Response | EnableJobScheduleDefaultResponse >; @@ -725,7 +646,7 @@ export interface EnableJobSchedule { export interface TerminateJobSchedule { /** Terminates a Job Schedule. */ post( - options?: TerminateJobScheduleParameters + options?: TerminateJobScheduleParameters, ): StreamableMethod< TerminateJobSchedule202Response | TerminateJobScheduleDefaultResponse >; @@ -734,13 +655,13 @@ export interface TerminateJobSchedule { export interface CreateJobSchedule { /** Creates a Job Schedule to the specified Account. */ post( - options: CreateJobScheduleParameters + options: CreateJobScheduleParameters, ): StreamableMethod< CreateJobSchedule201Response | CreateJobScheduleDefaultResponse >; /** Lists all of the Job Schedules in the specified Account. */ get( - options?: ListJobSchedulesParameters + options?: ListJobSchedulesParameters, ): StreamableMethod< ListJobSchedules200Response | ListJobSchedulesDefaultResponse >; @@ -753,7 +674,7 @@ export interface CreateTask { * the Batch service and left in whatever state it was in at that time. */ post( - options: CreateTaskParameters + options: CreateTaskParameters, ): StreamableMethod; /** * For multi-instance Tasks, information such as affinityId, executionInfo and @@ -761,7 +682,7 @@ export interface CreateTask { * information about subtasks. */ get( - options?: ListTasksParameters + options?: ListTasksParameters, ): StreamableMethod; } @@ -783,7 +704,7 @@ export interface CreateTaskCollection { * service and left in whatever state it was in at that time. */ post( - options: CreateTaskCollectionParameters + options: CreateTaskCollectionParameters, ): StreamableMethod< CreateTaskCollection200Response | CreateTaskCollectionDefaultResponse >; @@ -798,7 +719,7 @@ export interface DeleteTask { * background. */ delete( - options?: DeleteTaskParameters + options?: DeleteTaskParameters, ): StreamableMethod; /** * For multi-instance Tasks, information such as affinityId, executionInfo and @@ -806,18 +727,18 @@ export interface DeleteTask { * information about subtasks. */ get( - options?: GetTaskParameters + options?: GetTaskParameters, ): StreamableMethod; /** Updates the properties of the specified Task. */ put( - options: ReplaceTaskParameters + options: ReplaceTaskParameters, ): StreamableMethod; } export interface ListSubTasks { /** If the Task is not a multi-instance Task then this returns an empty collection. */ get( - options?: ListSubTasksParameters + options?: ListSubTasksParameters, ): StreamableMethod; } @@ -828,7 +749,7 @@ export interface TerminateTask { * primary task; subtasks are then terminated asynchronously in the background. */ post( - options?: TerminateTaskParameters + options?: TerminateTaskParameters, ): StreamableMethod; } @@ -843,7 +764,7 @@ export interface ReactivateTask { * will fail if the Job has completed (or is terminating or deleting). */ post( - options?: ReactivateTaskParameters + options?: ReactivateTaskParameters, ): StreamableMethod< ReactivateTask204Response | ReactivateTaskDefaultResponse >; @@ -852,17 +773,17 @@ export interface ReactivateTask { export interface DeleteTaskFile { /** Deletes the specified Task file from the Compute Node where the Task ran. */ delete( - options?: DeleteTaskFileParameters + options?: DeleteTaskFileParameters, ): StreamableMethod< DeleteTaskFile200Response | DeleteTaskFileDefaultResponse >; /** Returns the content of the specified Task file. */ get( - options?: GetTaskFileParameters + options?: GetTaskFileParameters, ): StreamableMethod; /** Gets the properties of the specified Task file. */ head( - options?: GetTaskFilePropertiesParameters + options?: GetTaskFilePropertiesParameters, ): StreamableMethod< GetTaskFileProperties200Response | GetTaskFilePropertiesDefaultResponse >; @@ -871,7 +792,7 @@ export interface DeleteTaskFile { export interface ListTaskFiles { /** Lists the files in a Task's directory on its Compute Node. */ get( - options?: ListTaskFilesParameters + options?: ListTaskFilesParameters, ): StreamableMethod; } @@ -881,7 +802,7 @@ export interface CreateNodeUser { * running state. */ post( - options: CreateNodeUserParameters + options: CreateNodeUserParameters, ): StreamableMethod< CreateNodeUser201Response | CreateNodeUserDefaultResponse >; @@ -893,7 +814,7 @@ export interface DeleteNodeUser { * running state. */ delete( - options?: DeleteNodeUserParameters + options?: DeleteNodeUserParameters, ): StreamableMethod< DeleteNodeUser200Response | DeleteNodeUserDefaultResponse >; @@ -904,7 +825,7 @@ export interface DeleteNodeUser { * Account on a Compute Node only when it is in the idle or running state. */ put( - options: ReplaceNodeUserParameters + options: ReplaceNodeUserParameters, ): StreamableMethod< ReplaceNodeUser200Response | ReplaceNodeUserDefaultResponse >; @@ -913,35 +834,24 @@ export interface DeleteNodeUser { export interface GetNode { /** Gets information about the specified Compute Node. */ get( - options?: GetNodeParameters + options?: GetNodeParameters, ): StreamableMethod; } export interface RebootNode { /** You can restart a Compute Node only if it is in an idle or running state. */ post( - options: RebootNodeParameters + options: RebootNodeParameters, ): StreamableMethod; } -export interface ReimageNode { - /** - * You can reinstall the operating system on a Compute Node only if it is in an - * idle or running state. This API can be invoked only on Pools created with the - * cloud service configuration property. - */ - post( - options: ReimageNodeParameters - ): StreamableMethod; -} - export interface DisableNodeScheduling { /** * You can disable Task scheduling on a Compute Node only if its current * scheduling state is enabled. */ post( - options: DisableNodeSchedulingParameters + options: DisableNodeSchedulingParameters, ): StreamableMethod< DisableNodeScheduling200Response | DisableNodeSchedulingDefaultResponse >; @@ -953,7 +863,7 @@ export interface EnableNodeScheduling { * state is disabled */ post( - options?: EnableNodeSchedulingParameters + options?: EnableNodeSchedulingParameters, ): StreamableMethod< EnableNodeScheduling200Response | EnableNodeSchedulingDefaultResponse >; @@ -964,32 +874,15 @@ export interface GetNodeRemoteLoginSettings { * Before you can remotely login to a Compute Node using the remote login * settings, you must create a user Account on the Compute Node. This API can be * invoked only on Pools created with the virtual machine configuration property. - * For Pools created with a cloud service configuration, see the GetRemoteDesktop - * API. */ get( - options?: GetNodeRemoteLoginSettingsParameters + options?: GetNodeRemoteLoginSettingsParameters, ): StreamableMethod< | GetNodeRemoteLoginSettings200Response | GetNodeRemoteLoginSettingsDefaultResponse >; } -export interface GetNodeRemoteDesktopFile { - /** - * Before you can access a Compute Node by using the RDP file, you must create a - * user Account on the Compute Node. This API can only be invoked on Pools created - * with a cloud service configuration. For Pools created with a virtual machine - * configuration, see the GetRemoteLoginSettings API. - */ - get( - options?: GetNodeRemoteDesktopFileParameters - ): StreamableMethod< - | GetNodeRemoteDesktopFile200Response - | GetNodeRemoteDesktopFileDefaultResponse - >; -} - export interface UploadNodeLogs { /** * This is for gathering Azure Batch service log files in an automated fashion @@ -998,7 +891,7 @@ export interface UploadNodeLogs { * support to aid in debugging issues with the Batch service. */ post( - options: UploadNodeLogsParameters + options: UploadNodeLogsParameters, ): StreamableMethod< UploadNodeLogs200Response | UploadNodeLogsDefaultResponse >; @@ -1007,14 +900,14 @@ export interface UploadNodeLogs { export interface ListNodes { /** Lists the Compute Nodes in the specified Pool. */ get( - options?: ListNodesParameters + options?: ListNodesParameters, ): StreamableMethod; } export interface GetNodeExtension { /** Gets information about the specified Compute Node Extension. */ get( - options?: GetNodeExtensionParameters + options?: GetNodeExtensionParameters, ): StreamableMethod< GetNodeExtension200Response | GetNodeExtensionDefaultResponse >; @@ -1023,7 +916,7 @@ export interface GetNodeExtension { export interface ListNodeExtensions { /** Lists the Compute Nodes Extensions in the specified Pool. */ get( - options?: ListNodeExtensionsParameters + options?: ListNodeExtensionsParameters, ): StreamableMethod< ListNodeExtensions200Response | ListNodeExtensionsDefaultResponse >; @@ -1032,17 +925,17 @@ export interface ListNodeExtensions { export interface DeleteNodeFile { /** Deletes the specified file from the Compute Node. */ delete( - options?: DeleteNodeFileParameters + options?: DeleteNodeFileParameters, ): StreamableMethod< DeleteNodeFile200Response | DeleteNodeFileDefaultResponse >; /** Returns the content of the specified Compute Node file. */ get( - options?: GetNodeFileParameters + options?: GetNodeFileParameters, ): StreamableMethod; /** Gets the properties of the specified Compute Node file. */ head( - options?: GetNodeFilePropertiesParameters + options?: GetNodeFilePropertiesParameters, ): StreamableMethod< GetNodeFileProperties200Response | GetNodeFilePropertiesDefaultResponse >; @@ -1051,7 +944,7 @@ export interface DeleteNodeFile { export interface ListNodeFiles { /** Lists all of the files in Task directories on the specified Compute Node. */ get( - options?: ListNodeFilesParameters + options?: ListNodeFilesParameters, ): StreamableMethod; } @@ -1061,7 +954,7 @@ export interface Routes { /** Resource for '/applications/\{applicationId\}' has methods for the following verbs: get */ ( path: "/applications/{applicationId}", - applicationId: string + applicationId: string, ): GetApplication; /** Resource for '/poolusagemetrics' has methods for the following verbs: get */ (path: "/poolusagemetrics"): ListPoolUsageMetrics; @@ -1072,17 +965,17 @@ export interface Routes { /** Resource for '/pools/\{poolId\}/disableautoscale' has methods for the following verbs: post */ ( path: "/pools/{poolId}/disableautoscale", - poolId: string + poolId: string, ): DisablePoolAutoScale; /** Resource for '/pools/\{poolId\}/enableautoscale' has methods for the following verbs: post */ ( path: "/pools/{poolId}/enableautoscale", - poolId: string + poolId: string, ): EnablePoolAutoScale; /** Resource for '/pools/\{poolId\}/evaluateautoscale' has methods for the following verbs: post */ ( path: "/pools/{poolId}/evaluateautoscale", - poolId: string + poolId: string, ): EvaluatePoolAutoScale; /** Resource for '/pools/\{poolId\}/resize' has methods for the following verbs: post */ (path: "/pools/{poolId}/resize", poolId: string): ResizePool; @@ -1091,7 +984,7 @@ export interface Routes { /** Resource for '/pools/\{poolId\}/updateproperties' has methods for the following verbs: post */ ( path: "/pools/{poolId}/updateproperties", - poolId: string + poolId: string, ): ReplacePoolProperties; /** Resource for '/pools/\{poolId\}/removenodes' has methods for the following verbs: post */ (path: "/pools/{poolId}/removenodes", poolId: string): RemoveNodes; @@ -1112,48 +1005,34 @@ export interface Routes { /** Resource for '/jobschedules/\{jobScheduleId\}/jobs' has methods for the following verbs: get */ ( path: "/jobschedules/{jobScheduleId}/jobs", - jobScheduleId: string + jobScheduleId: string, ): ListJobsFromSchedule; /** Resource for '/jobs/\{jobId\}/jobpreparationandreleasetaskstatus' has methods for the following verbs: get */ ( path: "/jobs/{jobId}/jobpreparationandreleasetaskstatus", - jobId: string + jobId: string, ): ListJobPreparationAndReleaseTaskStatus; /** Resource for '/jobs/\{jobId\}/taskcounts' has methods for the following verbs: get */ (path: "/jobs/{jobId}/taskcounts", jobId: string): GetJobTaskCounts; - /** Resource for '/certificates' has methods for the following verbs: post, get */ - (path: "/certificates"): CreateCertificate; - /** Resource for '/certificates(thumbprintAlgorithm=\{thumbprintAlgorithm\},thumbprint=\{thumbprint\})/canceldelete' has methods for the following verbs: post */ - ( - path: "/certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})/canceldelete", - thumbprintAlgorithm: string, - thumbprint: string - ): CancelCertificateDeletion; - /** Resource for '/certificates(thumbprintAlgorithm=\{thumbprintAlgorithm\},thumbprint=\{thumbprint\})' has methods for the following verbs: delete, get */ - ( - path: "/certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})", - thumbprintAlgorithm: string, - thumbprint: string - ): DeleteCertificate; /** Resource for '/jobschedules/\{jobScheduleId\}' has methods for the following verbs: head, delete, get, patch, put */ ( path: "/jobschedules/{jobScheduleId}", - jobScheduleId: string + jobScheduleId: string, ): JobScheduleExists; /** Resource for '/jobschedules/\{jobScheduleId\}/disable' has methods for the following verbs: post */ ( path: "/jobschedules/{jobScheduleId}/disable", - jobScheduleId: string + jobScheduleId: string, ): DisableJobSchedule; /** Resource for '/jobschedules/\{jobScheduleId\}/enable' has methods for the following verbs: post */ ( path: "/jobschedules/{jobScheduleId}/enable", - jobScheduleId: string + jobScheduleId: string, ): EnableJobSchedule; /** Resource for '/jobschedules/\{jobScheduleId\}/terminate' has methods for the following verbs: post */ ( path: "/jobschedules/{jobScheduleId}/terminate", - jobScheduleId: string + jobScheduleId: string, ): TerminateJobSchedule; /** Resource for '/jobschedules' has methods for the following verbs: post, get */ (path: "/jobschedules"): CreateJobSchedule; @@ -1162,105 +1041,93 @@ export interface Routes { /** Resource for '/jobs/\{jobId\}/addtaskcollection' has methods for the following verbs: post */ ( path: "/jobs/{jobId}/addtaskcollection", - jobId: string + jobId: string, ): CreateTaskCollection; /** Resource for '/jobs/\{jobId\}/tasks/\{taskId\}' has methods for the following verbs: delete, get, put */ ( path: "/jobs/{jobId}/tasks/{taskId}", jobId: string, - taskId: string + taskId: string, ): DeleteTask; /** Resource for '/jobs/\{jobId\}/tasks/\{taskId\}/subtasksinfo' has methods for the following verbs: get */ ( path: "/jobs/{jobId}/tasks/{taskId}/subtasksinfo", jobId: string, - taskId: string + taskId: string, ): ListSubTasks; /** Resource for '/jobs/\{jobId\}/tasks/\{taskId\}/terminate' has methods for the following verbs: post */ ( path: "/jobs/{jobId}/tasks/{taskId}/terminate", jobId: string, - taskId: string + taskId: string, ): TerminateTask; /** Resource for '/jobs/\{jobId\}/tasks/\{taskId\}/reactivate' has methods for the following verbs: post */ ( path: "/jobs/{jobId}/tasks/{taskId}/reactivate", jobId: string, - taskId: string + taskId: string, ): ReactivateTask; /** Resource for '/jobs/\{jobId\}/tasks/\{taskId\}/files/\{filePath\}' has methods for the following verbs: delete, get, head */ ( path: "/jobs/{jobId}/tasks/{taskId}/files/{filePath}", jobId: string, taskId: string, - filePath: string + filePath: string, ): DeleteTaskFile; /** Resource for '/jobs/\{jobId\}/tasks/\{taskId\}/files' has methods for the following verbs: get */ ( path: "/jobs/{jobId}/tasks/{taskId}/files", jobId: string, - taskId: string + taskId: string, ): ListTaskFiles; /** Resource for '/pools/\{poolId\}/nodes/\{nodeId\}/users' has methods for the following verbs: post */ ( path: "/pools/{poolId}/nodes/{nodeId}/users", poolId: string, - nodeId: string + nodeId: string, ): CreateNodeUser; /** Resource for '/pools/\{poolId\}/nodes/\{nodeId\}/users/\{userName\}' has methods for the following verbs: delete, put */ ( path: "/pools/{poolId}/nodes/{nodeId}/users/{userName}", poolId: string, nodeId: string, - userName: string + userName: string, ): DeleteNodeUser; /** Resource for '/pools/\{poolId\}/nodes/\{nodeId\}' has methods for the following verbs: get */ ( path: "/pools/{poolId}/nodes/{nodeId}", poolId: string, - nodeId: string + nodeId: string, ): GetNode; /** Resource for '/pools/\{poolId\}/nodes/\{nodeId\}/reboot' has methods for the following verbs: post */ ( path: "/pools/{poolId}/nodes/{nodeId}/reboot", poolId: string, - nodeId: string + nodeId: string, ): RebootNode; - /** Resource for '/pools/\{poolId\}/nodes/\{nodeId\}/reimage' has methods for the following verbs: post */ - ( - path: "/pools/{poolId}/nodes/{nodeId}/reimage", - poolId: string, - nodeId: string - ): ReimageNode; /** Resource for '/pools/\{poolId\}/nodes/\{nodeId\}/disablescheduling' has methods for the following verbs: post */ ( path: "/pools/{poolId}/nodes/{nodeId}/disablescheduling", poolId: string, - nodeId: string + nodeId: string, ): DisableNodeScheduling; /** Resource for '/pools/\{poolId\}/nodes/\{nodeId\}/enablescheduling' has methods for the following verbs: post */ ( path: "/pools/{poolId}/nodes/{nodeId}/enablescheduling", poolId: string, - nodeId: string + nodeId: string, ): EnableNodeScheduling; /** Resource for '/pools/\{poolId\}/nodes/\{nodeId\}/remoteloginsettings' has methods for the following verbs: get */ ( path: "/pools/{poolId}/nodes/{nodeId}/remoteloginsettings", poolId: string, - nodeId: string + nodeId: string, ): GetNodeRemoteLoginSettings; - /** Resource for '/pools/\{poolId\}/nodes/\{nodeId\}/rdp' has methods for the following verbs: get */ - ( - path: "/pools/{poolId}/nodes/{nodeId}/rdp", - poolId: string, - nodeId: string - ): GetNodeRemoteDesktopFile; /** Resource for '/pools/\{poolId\}/nodes/\{nodeId\}/uploadbatchservicelogs' has methods for the following verbs: post */ ( path: "/pools/{poolId}/nodes/{nodeId}/uploadbatchservicelogs", poolId: string, - nodeId: string + nodeId: string, ): UploadNodeLogs; /** Resource for '/pools/\{poolId\}/nodes' has methods for the following verbs: get */ (path: "/pools/{poolId}/nodes", poolId: string): ListNodes; @@ -1269,26 +1136,26 @@ export interface Routes { path: "/pools/{poolId}/nodes/{nodeId}/extensions/{extensionName}", poolId: string, nodeId: string, - extensionName: string + extensionName: string, ): GetNodeExtension; /** Resource for '/pools/\{poolId\}/nodes/\{nodeId\}/extensions' has methods for the following verbs: get */ ( path: "/pools/{poolId}/nodes/{nodeId}/extensions", poolId: string, - nodeId: string + nodeId: string, ): ListNodeExtensions; /** Resource for '/pools/\{poolId\}/nodes/\{nodeId\}/files/\{filePath\}' has methods for the following verbs: delete, get, head */ ( path: "/pools/{poolId}/nodes/{nodeId}/files/{filePath}", poolId: string, nodeId: string, - filePath: string + filePath: string, ): DeleteNodeFile; /** Resource for '/pools/\{poolId\}/nodes/\{nodeId\}/files' has methods for the following verbs: get */ ( path: "/pools/{poolId}/nodes/{nodeId}/files", poolId: string, - nodeId: string + nodeId: string, ): ListNodeFiles; } diff --git a/packages/service/src/internal/batch-rest/generated/src/index.ts b/packages/service/src/internal/batch-rest/generated/src/index.ts index 973b06150..93712575e 100644 --- a/packages/service/src/internal/batch-rest/generated/src/index.ts +++ b/packages/service/src/internal/batch-rest/generated/src/index.ts @@ -1,15 +1,15 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import BatchClient from "./batchClient"; +import BatchClient from "./batchClient.js"; -export * from "./batchClient"; -export * from "./parameters"; -export * from "./responses"; -export * from "./clientDefinitions"; -export * from "./isUnexpected"; -export * from "./models"; -export * from "./outputModels"; -export * from "./paginateHelper"; +export * from "./batchClient.js"; +export * from "./parameters.js"; +export * from "./responses.js"; +export * from "./clientDefinitions.js"; +export * from "./isUnexpected.js"; +export * from "./models.js"; +export * from "./outputModels.js"; +export * from "./paginateHelper.js"; export default BatchClient; diff --git a/packages/service/src/internal/batch-rest/generated/src/isUnexpected.ts b/packages/service/src/internal/batch-rest/generated/src/isUnexpected.ts index ea7d6cc06..22d1a53b0 100644 --- a/packages/service/src/internal/batch-rest/generated/src/isUnexpected.ts +++ b/packages/service/src/internal/batch-rest/generated/src/isUnexpected.ts @@ -63,16 +63,6 @@ import { ListJobPreparationAndReleaseTaskStatusDefaultResponse, GetJobTaskCounts200Response, GetJobTaskCountsDefaultResponse, - CreateCertificate201Response, - CreateCertificateDefaultResponse, - ListCertificates200Response, - ListCertificatesDefaultResponse, - CancelCertificateDeletion204Response, - CancelCertificateDeletionDefaultResponse, - DeleteCertificate202Response, - DeleteCertificateDefaultResponse, - GetCertificate200Response, - GetCertificateDefaultResponse, JobScheduleExists200Response, JobScheduleExists404Response, JobScheduleExistsDefaultResponse, @@ -130,16 +120,12 @@ import { GetNodeDefaultResponse, RebootNode202Response, RebootNodeDefaultResponse, - ReimageNode202Response, - ReimageNodeDefaultResponse, DisableNodeScheduling200Response, DisableNodeSchedulingDefaultResponse, EnableNodeScheduling200Response, EnableNodeSchedulingDefaultResponse, GetNodeRemoteLoginSettings200Response, GetNodeRemoteLoginSettingsDefaultResponse, - GetNodeRemoteDesktopFile200Response, - GetNodeRemoteDesktopFileDefaultResponse, UploadNodeLogs200Response, UploadNodeLogsDefaultResponse, ListNodes200Response, @@ -156,7 +142,7 @@ import { GetNodeFilePropertiesDefaultResponse, ListNodeFiles200Response, ListNodeFilesDefaultResponse, -} from "./responses"; +} from "./responses.js"; const responseMap: Record = { "GET /applications": ["200"], @@ -189,14 +175,6 @@ const responseMap: Record = { "GET /jobschedules/{jobScheduleId}/jobs": ["200"], "GET /jobs/{jobId}/jobpreparationandreleasetaskstatus": ["200"], "GET /jobs/{jobId}/taskcounts": ["200"], - "POST /certificates": ["201"], - "GET /certificates": ["200"], - "POST /certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})/canceldelete": - ["204"], - "DELETE /certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})": - ["202"], - "GET /certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})": - ["200"], "HEAD /jobschedules/{jobScheduleId}": ["200", "404"], "DELETE /jobschedules/{jobScheduleId}": ["202"], "GET /jobschedules/{jobScheduleId}": ["200"], @@ -225,11 +203,9 @@ const responseMap: Record = { "PUT /pools/{poolId}/nodes/{nodeId}/users/{userName}": ["200"], "GET /pools/{poolId}/nodes/{nodeId}": ["200"], "POST /pools/{poolId}/nodes/{nodeId}/reboot": ["202"], - "POST /pools/{poolId}/nodes/{nodeId}/reimage": ["202"], "POST /pools/{poolId}/nodes/{nodeId}/disablescheduling": ["200"], "POST /pools/{poolId}/nodes/{nodeId}/enablescheduling": ["200"], "GET /pools/{poolId}/nodes/{nodeId}/remoteloginsettings": ["200"], - "GET /pools/{poolId}/nodes/{nodeId}/rdp": ["200"], "POST /pools/{poolId}/nodes/{nodeId}/uploadbatchservicelogs": ["200"], "GET /pools/{poolId}/nodes": ["200"], "GET /pools/{poolId}/nodes/{nodeId}/extensions/{extensionName}": ["200"], @@ -241,268 +217,243 @@ const responseMap: Record = { }; export function isUnexpected( - response: ListApplications200Response | ListApplicationsDefaultResponse + response: ListApplications200Response | ListApplicationsDefaultResponse, ): response is ListApplicationsDefaultResponse; export function isUnexpected( - response: GetApplication200Response | GetApplicationDefaultResponse + response: GetApplication200Response | GetApplicationDefaultResponse, ): response is GetApplicationDefaultResponse; export function isUnexpected( response: | ListPoolUsageMetrics200Response - | ListPoolUsageMetricsDefaultResponse + | ListPoolUsageMetricsDefaultResponse, ): response is ListPoolUsageMetricsDefaultResponse; export function isUnexpected( - response: CreatePool201Response | CreatePoolDefaultResponse + response: CreatePool201Response | CreatePoolDefaultResponse, ): response is CreatePoolDefaultResponse; export function isUnexpected( - response: ListPools200Response | ListPoolsDefaultResponse + response: ListPools200Response | ListPoolsDefaultResponse, ): response is ListPoolsDefaultResponse; export function isUnexpected( - response: DeletePool202Response | DeletePoolDefaultResponse + response: DeletePool202Response | DeletePoolDefaultResponse, ): response is DeletePoolDefaultResponse; export function isUnexpected( response: | PoolExists200Response | PoolExists404Response - | PoolExistsDefaultResponse + | PoolExistsDefaultResponse, ): response is PoolExistsDefaultResponse; export function isUnexpected( - response: GetPool200Response | GetPoolDefaultResponse + response: GetPool200Response | GetPoolDefaultResponse, ): response is GetPoolDefaultResponse; export function isUnexpected( - response: UpdatePool200Response | UpdatePoolDefaultResponse + response: UpdatePool200Response | UpdatePoolDefaultResponse, ): response is UpdatePoolDefaultResponse; export function isUnexpected( response: | DisablePoolAutoScale200Response - | DisablePoolAutoScaleDefaultResponse + | DisablePoolAutoScaleDefaultResponse, ): response is DisablePoolAutoScaleDefaultResponse; export function isUnexpected( - response: EnablePoolAutoScale200Response | EnablePoolAutoScaleDefaultResponse + response: EnablePoolAutoScale200Response | EnablePoolAutoScaleDefaultResponse, ): response is EnablePoolAutoScaleDefaultResponse; export function isUnexpected( response: | EvaluatePoolAutoScale200Response - | EvaluatePoolAutoScaleDefaultResponse + | EvaluatePoolAutoScaleDefaultResponse, ): response is EvaluatePoolAutoScaleDefaultResponse; export function isUnexpected( - response: ResizePool202Response | ResizePoolDefaultResponse + response: ResizePool202Response | ResizePoolDefaultResponse, ): response is ResizePoolDefaultResponse; export function isUnexpected( - response: StopPoolResize202Response | StopPoolResizeDefaultResponse + response: StopPoolResize202Response | StopPoolResizeDefaultResponse, ): response is StopPoolResizeDefaultResponse; export function isUnexpected( response: | ReplacePoolProperties204Response - | ReplacePoolPropertiesDefaultResponse + | ReplacePoolPropertiesDefaultResponse, ): response is ReplacePoolPropertiesDefaultResponse; export function isUnexpected( - response: RemoveNodes202Response | RemoveNodesDefaultResponse + response: RemoveNodes202Response | RemoveNodesDefaultResponse, ): response is RemoveNodesDefaultResponse; export function isUnexpected( - response: ListSupportedImages200Response | ListSupportedImagesDefaultResponse + response: ListSupportedImages200Response | ListSupportedImagesDefaultResponse, ): response is ListSupportedImagesDefaultResponse; export function isUnexpected( - response: ListPoolNodeCounts200Response | ListPoolNodeCountsDefaultResponse + response: ListPoolNodeCounts200Response | ListPoolNodeCountsDefaultResponse, ): response is ListPoolNodeCountsDefaultResponse; export function isUnexpected( - response: DeleteJob202Response | DeleteJobDefaultResponse + response: DeleteJob202Response | DeleteJobDefaultResponse, ): response is DeleteJobDefaultResponse; export function isUnexpected( - response: GetJob200Response | GetJobDefaultResponse + response: GetJob200Response | GetJobDefaultResponse, ): response is GetJobDefaultResponse; export function isUnexpected( - response: UpdateJob200Response | UpdateJobDefaultResponse + response: UpdateJob200Response | UpdateJobDefaultResponse, ): response is UpdateJobDefaultResponse; export function isUnexpected( - response: ReplaceJob200Response | ReplaceJobDefaultResponse + response: ReplaceJob200Response | ReplaceJobDefaultResponse, ): response is ReplaceJobDefaultResponse; export function isUnexpected( - response: DisableJob202Response | DisableJobDefaultResponse + response: DisableJob202Response | DisableJobDefaultResponse, ): response is DisableJobDefaultResponse; export function isUnexpected( - response: EnableJob202Response | EnableJobDefaultResponse + response: EnableJob202Response | EnableJobDefaultResponse, ): response is EnableJobDefaultResponse; export function isUnexpected( - response: TerminateJob202Response | TerminateJobDefaultResponse + response: TerminateJob202Response | TerminateJobDefaultResponse, ): response is TerminateJobDefaultResponse; export function isUnexpected( - response: CreateJob201Response | CreateJobDefaultResponse + response: CreateJob201Response | CreateJobDefaultResponse, ): response is CreateJobDefaultResponse; export function isUnexpected( - response: ListJobs200Response | ListJobsDefaultResponse + response: ListJobs200Response | ListJobsDefaultResponse, ): response is ListJobsDefaultResponse; export function isUnexpected( response: | ListJobsFromSchedule200Response - | ListJobsFromScheduleDefaultResponse + | ListJobsFromScheduleDefaultResponse, ): response is ListJobsFromScheduleDefaultResponse; export function isUnexpected( response: | ListJobPreparationAndReleaseTaskStatus200Response - | ListJobPreparationAndReleaseTaskStatusDefaultResponse + | ListJobPreparationAndReleaseTaskStatusDefaultResponse, ): response is ListJobPreparationAndReleaseTaskStatusDefaultResponse; export function isUnexpected( - response: GetJobTaskCounts200Response | GetJobTaskCountsDefaultResponse + response: GetJobTaskCounts200Response | GetJobTaskCountsDefaultResponse, ): response is GetJobTaskCountsDefaultResponse; -export function isUnexpected( - response: CreateCertificate201Response | CreateCertificateDefaultResponse -): response is CreateCertificateDefaultResponse; -export function isUnexpected( - response: ListCertificates200Response | ListCertificatesDefaultResponse -): response is ListCertificatesDefaultResponse; -export function isUnexpected( - response: - | CancelCertificateDeletion204Response - | CancelCertificateDeletionDefaultResponse -): response is CancelCertificateDeletionDefaultResponse; -export function isUnexpected( - response: DeleteCertificate202Response | DeleteCertificateDefaultResponse -): response is DeleteCertificateDefaultResponse; -export function isUnexpected( - response: GetCertificate200Response | GetCertificateDefaultResponse -): response is GetCertificateDefaultResponse; export function isUnexpected( response: | JobScheduleExists200Response | JobScheduleExists404Response - | JobScheduleExistsDefaultResponse + | JobScheduleExistsDefaultResponse, ): response is JobScheduleExistsDefaultResponse; export function isUnexpected( - response: DeleteJobSchedule202Response | DeleteJobScheduleDefaultResponse + response: DeleteJobSchedule202Response | DeleteJobScheduleDefaultResponse, ): response is DeleteJobScheduleDefaultResponse; export function isUnexpected( - response: GetJobSchedule200Response | GetJobScheduleDefaultResponse + response: GetJobSchedule200Response | GetJobScheduleDefaultResponse, ): response is GetJobScheduleDefaultResponse; export function isUnexpected( - response: UpdateJobSchedule200Response | UpdateJobScheduleDefaultResponse + response: UpdateJobSchedule200Response | UpdateJobScheduleDefaultResponse, ): response is UpdateJobScheduleDefaultResponse; export function isUnexpected( - response: ReplaceJobSchedule200Response | ReplaceJobScheduleDefaultResponse + response: ReplaceJobSchedule200Response | ReplaceJobScheduleDefaultResponse, ): response is ReplaceJobScheduleDefaultResponse; export function isUnexpected( - response: DisableJobSchedule204Response | DisableJobScheduleDefaultResponse + response: DisableJobSchedule204Response | DisableJobScheduleDefaultResponse, ): response is DisableJobScheduleDefaultResponse; export function isUnexpected( - response: EnableJobSchedule204Response | EnableJobScheduleDefaultResponse + response: EnableJobSchedule204Response | EnableJobScheduleDefaultResponse, ): response is EnableJobScheduleDefaultResponse; export function isUnexpected( response: | TerminateJobSchedule202Response - | TerminateJobScheduleDefaultResponse + | TerminateJobScheduleDefaultResponse, ): response is TerminateJobScheduleDefaultResponse; export function isUnexpected( - response: CreateJobSchedule201Response | CreateJobScheduleDefaultResponse + response: CreateJobSchedule201Response | CreateJobScheduleDefaultResponse, ): response is CreateJobScheduleDefaultResponse; export function isUnexpected( - response: ListJobSchedules200Response | ListJobSchedulesDefaultResponse + response: ListJobSchedules200Response | ListJobSchedulesDefaultResponse, ): response is ListJobSchedulesDefaultResponse; export function isUnexpected( - response: CreateTask201Response | CreateTaskDefaultResponse + response: CreateTask201Response | CreateTaskDefaultResponse, ): response is CreateTaskDefaultResponse; export function isUnexpected( - response: ListTasks200Response | ListTasksDefaultResponse + response: ListTasks200Response | ListTasksDefaultResponse, ): response is ListTasksDefaultResponse; export function isUnexpected( response: | CreateTaskCollection200Response - | CreateTaskCollectionDefaultResponse + | CreateTaskCollectionDefaultResponse, ): response is CreateTaskCollectionDefaultResponse; export function isUnexpected( - response: DeleteTask200Response | DeleteTaskDefaultResponse + response: DeleteTask200Response | DeleteTaskDefaultResponse, ): response is DeleteTaskDefaultResponse; export function isUnexpected( - response: GetTask200Response | GetTaskDefaultResponse + response: GetTask200Response | GetTaskDefaultResponse, ): response is GetTaskDefaultResponse; export function isUnexpected( - response: ReplaceTask200Response | ReplaceTaskDefaultResponse + response: ReplaceTask200Response | ReplaceTaskDefaultResponse, ): response is ReplaceTaskDefaultResponse; export function isUnexpected( - response: ListSubTasks200Response | ListSubTasksDefaultResponse + response: ListSubTasks200Response | ListSubTasksDefaultResponse, ): response is ListSubTasksDefaultResponse; export function isUnexpected( - response: TerminateTask204Response | TerminateTaskDefaultResponse + response: TerminateTask204Response | TerminateTaskDefaultResponse, ): response is TerminateTaskDefaultResponse; export function isUnexpected( - response: ReactivateTask204Response | ReactivateTaskDefaultResponse + response: ReactivateTask204Response | ReactivateTaskDefaultResponse, ): response is ReactivateTaskDefaultResponse; export function isUnexpected( - response: DeleteTaskFile200Response | DeleteTaskFileDefaultResponse + response: DeleteTaskFile200Response | DeleteTaskFileDefaultResponse, ): response is DeleteTaskFileDefaultResponse; export function isUnexpected( - response: GetTaskFile200Response | GetTaskFileDefaultResponse + response: GetTaskFile200Response | GetTaskFileDefaultResponse, ): response is GetTaskFileDefaultResponse; export function isUnexpected( response: | GetTaskFileProperties200Response - | GetTaskFilePropertiesDefaultResponse + | GetTaskFilePropertiesDefaultResponse, ): response is GetTaskFilePropertiesDefaultResponse; export function isUnexpected( - response: ListTaskFiles200Response | ListTaskFilesDefaultResponse + response: ListTaskFiles200Response | ListTaskFilesDefaultResponse, ): response is ListTaskFilesDefaultResponse; export function isUnexpected( - response: CreateNodeUser201Response | CreateNodeUserDefaultResponse + response: CreateNodeUser201Response | CreateNodeUserDefaultResponse, ): response is CreateNodeUserDefaultResponse; export function isUnexpected( - response: DeleteNodeUser200Response | DeleteNodeUserDefaultResponse + response: DeleteNodeUser200Response | DeleteNodeUserDefaultResponse, ): response is DeleteNodeUserDefaultResponse; export function isUnexpected( - response: ReplaceNodeUser200Response | ReplaceNodeUserDefaultResponse + response: ReplaceNodeUser200Response | ReplaceNodeUserDefaultResponse, ): response is ReplaceNodeUserDefaultResponse; export function isUnexpected( - response: GetNode200Response | GetNodeDefaultResponse + response: GetNode200Response | GetNodeDefaultResponse, ): response is GetNodeDefaultResponse; export function isUnexpected( - response: RebootNode202Response | RebootNodeDefaultResponse + response: RebootNode202Response | RebootNodeDefaultResponse, ): response is RebootNodeDefaultResponse; -export function isUnexpected( - response: ReimageNode202Response | ReimageNodeDefaultResponse -): response is ReimageNodeDefaultResponse; export function isUnexpected( response: | DisableNodeScheduling200Response - | DisableNodeSchedulingDefaultResponse + | DisableNodeSchedulingDefaultResponse, ): response is DisableNodeSchedulingDefaultResponse; export function isUnexpected( response: | EnableNodeScheduling200Response - | EnableNodeSchedulingDefaultResponse + | EnableNodeSchedulingDefaultResponse, ): response is EnableNodeSchedulingDefaultResponse; export function isUnexpected( response: | GetNodeRemoteLoginSettings200Response - | GetNodeRemoteLoginSettingsDefaultResponse + | GetNodeRemoteLoginSettingsDefaultResponse, ): response is GetNodeRemoteLoginSettingsDefaultResponse; export function isUnexpected( - response: - | GetNodeRemoteDesktopFile200Response - | GetNodeRemoteDesktopFileDefaultResponse -): response is GetNodeRemoteDesktopFileDefaultResponse; -export function isUnexpected( - response: UploadNodeLogs200Response | UploadNodeLogsDefaultResponse + response: UploadNodeLogs200Response | UploadNodeLogsDefaultResponse, ): response is UploadNodeLogsDefaultResponse; export function isUnexpected( - response: ListNodes200Response | ListNodesDefaultResponse + response: ListNodes200Response | ListNodesDefaultResponse, ): response is ListNodesDefaultResponse; export function isUnexpected( - response: GetNodeExtension200Response | GetNodeExtensionDefaultResponse + response: GetNodeExtension200Response | GetNodeExtensionDefaultResponse, ): response is GetNodeExtensionDefaultResponse; export function isUnexpected( - response: ListNodeExtensions200Response | ListNodeExtensionsDefaultResponse + response: ListNodeExtensions200Response | ListNodeExtensionsDefaultResponse, ): response is ListNodeExtensionsDefaultResponse; export function isUnexpected( - response: DeleteNodeFile200Response | DeleteNodeFileDefaultResponse + response: DeleteNodeFile200Response | DeleteNodeFileDefaultResponse, ): response is DeleteNodeFileDefaultResponse; export function isUnexpected( - response: GetNodeFile200Response | GetNodeFileDefaultResponse + response: GetNodeFile200Response | GetNodeFileDefaultResponse, ): response is GetNodeFileDefaultResponse; export function isUnexpected( response: | GetNodeFileProperties200Response - | GetNodeFilePropertiesDefaultResponse + | GetNodeFilePropertiesDefaultResponse, ): response is GetNodeFilePropertiesDefaultResponse; export function isUnexpected( - response: ListNodeFiles200Response | ListNodeFilesDefaultResponse + response: ListNodeFiles200Response | ListNodeFilesDefaultResponse, ): response is ListNodeFilesDefaultResponse; export function isUnexpected( response: @@ -567,16 +518,6 @@ export function isUnexpected( | ListJobPreparationAndReleaseTaskStatusDefaultResponse | GetJobTaskCounts200Response | GetJobTaskCountsDefaultResponse - | CreateCertificate201Response - | CreateCertificateDefaultResponse - | ListCertificates200Response - | ListCertificatesDefaultResponse - | CancelCertificateDeletion204Response - | CancelCertificateDeletionDefaultResponse - | DeleteCertificate202Response - | DeleteCertificateDefaultResponse - | GetCertificate200Response - | GetCertificateDefaultResponse | JobScheduleExists200Response | JobScheduleExists404Response | JobScheduleExistsDefaultResponse @@ -634,16 +575,12 @@ export function isUnexpected( | GetNodeDefaultResponse | RebootNode202Response | RebootNodeDefaultResponse - | ReimageNode202Response - | ReimageNodeDefaultResponse | DisableNodeScheduling200Response | DisableNodeSchedulingDefaultResponse | EnableNodeScheduling200Response | EnableNodeSchedulingDefaultResponse | GetNodeRemoteLoginSettings200Response | GetNodeRemoteLoginSettingsDefaultResponse - | GetNodeRemoteDesktopFile200Response - | GetNodeRemoteDesktopFileDefaultResponse | UploadNodeLogs200Response | UploadNodeLogsDefaultResponse | ListNodes200Response @@ -659,7 +596,7 @@ export function isUnexpected( | GetNodeFileProperties200Response | GetNodeFilePropertiesDefaultResponse | ListNodeFiles200Response - | ListNodeFilesDefaultResponse + | ListNodeFilesDefaultResponse, ): response is | ListApplicationsDefaultResponse | GetApplicationDefaultResponse @@ -691,11 +628,6 @@ export function isUnexpected( | ListJobsFromScheduleDefaultResponse | ListJobPreparationAndReleaseTaskStatusDefaultResponse | GetJobTaskCountsDefaultResponse - | CreateCertificateDefaultResponse - | ListCertificatesDefaultResponse - | CancelCertificateDeletionDefaultResponse - | DeleteCertificateDefaultResponse - | GetCertificateDefaultResponse | JobScheduleExistsDefaultResponse | DeleteJobScheduleDefaultResponse | GetJobScheduleDefaultResponse @@ -724,11 +656,9 @@ export function isUnexpected( | ReplaceNodeUserDefaultResponse | GetNodeDefaultResponse | RebootNodeDefaultResponse - | ReimageNodeDefaultResponse | DisableNodeSchedulingDefaultResponse | EnableNodeSchedulingDefaultResponse | GetNodeRemoteLoginSettingsDefaultResponse - | GetNodeRemoteDesktopFileDefaultResponse | UploadNodeLogsDefaultResponse | ListNodesDefaultResponse | GetNodeExtensionDefaultResponse @@ -785,7 +715,7 @@ function getParametrizedPathSuccess(method: string, path: string): string[] { // {guid} ==> $ // {guid}:export ==> :export$ const isMatched = new RegExp( - `${candidateParts[i]?.slice(start, end)}` + `${candidateParts[i]?.slice(start, end)}`, ).test(pathParts[j] || ""); if (!isMatched) { diff --git a/packages/service/src/internal/batch-rest/generated/src/models.ts b/packages/service/src/internal/batch-rest/generated/src/models.ts index affe1e5bf..e10f7a10d 100644 --- a/packages/service/src/internal/batch-rest/generated/src/models.ts +++ b/packages/service/src/internal/batch-rest/generated/src/models.ts @@ -2,16 +2,14 @@ // Licensed under the MIT license. /** Parameters for creating an Azure Batch Pool. */ -export interface BatchPoolCreateParameters { +export interface BatchPoolCreateContent { /** A string that uniquely identifies the Pool within the Account. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two Pool IDs within an Account that differ only by case). */ id: string; /** The display name for the Pool. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. */ displayName?: string; - /** The size of virtual machines in the Pool. All virtual machines in a Pool are the same size. For information about available sizes of virtual machines for Cloud Services Pools (pools created with cloudServiceConfiguration), see Sizes for Cloud Services (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). Batch supports all Cloud Services VM sizes except ExtraSmall, A1V2 and A2V2. For information about available VM sizes for Pools using Images from the Virtual Machines Marketplace (pools created with virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). */ + /** The size of virtual machines in the Pool. All virtual machines in a Pool are the same size. For information about available VM sizes for Pools using Images from the Virtual Machines Marketplace (pools created with virtualMachineConfiguration), see Sizes for Virtual Machines (Linux) (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). */ vmSize: string; - /** The cloud service configuration for the Pool. This property and virtualMachineConfiguration are mutually exclusive and one of the properties must be specified. This property cannot be specified if the Batch Account was created with its poolAllocationMode property set to 'UserSubscription'. */ - cloudServiceConfiguration?: CloudServiceConfiguration; - /** The virtual machine configuration for the Pool. This property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified. */ + /** The virtual machine configuration for the Pool. This property must be specified. */ virtualMachineConfiguration?: VirtualMachineConfiguration; /** The timeout for allocation of Compute Nodes to the Pool. This timeout applies only to manual scaling; it has no effect when enableAutoScale is set to true. The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). */ resizeTimeout?: string; @@ -33,17 +31,8 @@ export interface BatchPoolCreateParameters { networkConfiguration?: NetworkConfiguration; /** A Task specified to run on each Compute Node as it joins the Pool. The Task runs when the Compute Node is added to the Pool or when the Compute Node is restarted. */ startTask?: BatchStartTask; - /** - * For Windows Nodes, the Batch service installs the Certificates to the specified Certificate store and location. - * For Linux Compute Nodes, the Certificates are stored in a directory inside the Task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the Task to query for this location. - * For Certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and Certificates are placed in that directory. - * Warning: This property is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - */ - certificateReferences?: Array; /** The list of Packages to be installed on each Compute Node in the Pool. When creating a pool, the package's application ID must be fully qualified (/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}). Changes to Package references affect all new Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. There is a maximum of 10 Package references on any given Pool. */ applicationPackageReferences?: Array; - /** The list of application licenses the Batch service will make available on each Compute Node in the Pool. The list of application licenses must be a subset of available Batch service application licenses. If a license is requested which is not supported, Pool creation will fail. */ - applicationLicenses?: string[]; /** The number of task slots that can be used to run concurrent tasks on a single compute node in the pool. The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256. */ taskSlotsPerNode?: number; /** How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread. */ @@ -54,35 +43,10 @@ export interface BatchPoolCreateParameters { metadata?: Array; /** Mount storage using specified file system for the entire lifetime of the pool. Mount the storage using Azure fileshare, NFS, CIFS or Blobfuse based file system. */ mountConfiguration?: Array; - /** - * The desired node communication mode for the pool. If omitted, the default value is Default. - * - * Possible values: default, classic, simplified - */ - targetNodeCommunicationMode?: string; -} - -/** - * The configuration for Compute Nodes in a Pool based on the Azure Cloud Services - * platform. - */ -export interface CloudServiceConfiguration { - /** - * Possible values are: - * 2 - OS Family 2, equivalent to Windows Server 2008 R2 - * SP1. - * 3 - OS Family 3, equivalent to Windows Server 2012. - * 4 - OS Family 4, - * equivalent to Windows Server 2012 R2. - * 5 - OS Family 5, equivalent to Windows - * Server 2016. - * 6 - OS Family 6, equivalent to Windows Server 2019. For more - * information, see Azure Guest OS Releases - * (https://azure.microsoft.com/documentation/articles/cloud-services-guestos-update-matrix/#releases). - */ - osFamily: string; - /** The Azure Guest OS version to be installed on the virtual machines in the Pool. The default value is * which specifies the latest operating system version for the specified OS family. */ - osVersion?: string; + /** The desired node communication mode for the pool. If omitted, the default value is Default. */ + targetNodeCommunicationMode?: BatchNodeCommunicationMode; + /** The upgrade policy for the Pool. Describes an upgrade policy - automatic, manual, or rolling. */ + upgradePolicy?: UpgradePolicy; } /** @@ -156,40 +120,28 @@ export interface WindowsConfiguration { * disks from within a VM to use them. */ export interface DataDisk { - /** The logical unit number. The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. The value must be between 0 and 63, inclusive. */ + /** The logical unit number. The logicalUnitNumber is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct logicalUnitNumber. The value must be between 0 and 63, inclusive. */ lun: number; - /** - * The type of caching to be enabled for the data disks. The default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. - * - * Possible values: none, readonly, readwrite - */ - caching?: string; + /** The type of caching to be enabled for the data disks. The default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. */ + caching?: CachingType; /** The initial disk size in gigabytes. */ diskSizeGB: number; - /** - * The storage Account type to be used for the data disk. If omitted, the default is "standard_lrs". - * - * Possible values: standard_lrs, premium_lrs, standardssd_lrs - */ - storageAccountType?: string; + /** The storage Account type to be used for the data disk. If omitted, the default is "standard_lrs". */ + storageAccountType?: StorageAccountType; } /** The configuration for container-enabled Pools. */ export interface ContainerConfiguration { - /** - * The container technology to be used. - * - * Possible values: dockerCompatible, criCompatible - */ - type: string; + /** The container technology to be used. */ + type: ContainerType; /** The collection of container Image names. This is the full Image reference, as would be specified to "docker pull". An Image will be sourced from the default Docker registry unless the Image is fully qualified with an alternative registry. */ containerImageNames?: string[]; /** Additional private registries from which containers can be pulled. If any Images must be downloaded from a private registry which requires credentials, then those credentials must be provided here. */ - containerRegistries?: Array; + containerRegistries?: Array; } /** A private container registry. */ -export interface ContainerRegistry { +export interface ContainerRegistryReference { /** The user name to log into the registry server. */ username?: string; /** The password to log into the registry server. */ @@ -216,7 +168,7 @@ export interface BatchNodeIdentityReference { */ export interface DiskEncryptionConfiguration { /** The list of disk targets Batch Service will encrypt on the compute node. If omitted, no disks on the compute nodes in the pool will be encrypted. On Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and "TemporaryDisk" must be specified. */ - targets?: string[]; + targets?: DiskEncryptionTarget[]; } /** @@ -225,12 +177,8 @@ export interface DiskEncryptionConfiguration { * with best effort balancing. */ export interface BatchNodePlacementConfiguration { - /** - * Node placement Policy type on Batch Pools. Allocation policy used by Batch Service to provision the nodes. If not specified, Batch will use the regional policy. - * - * Possible values: regional, zonal - */ - policy?: string; + /** Node placement Policy type on Batch Pools. Allocation policy used by Batch Service to provision the nodes. If not specified, Batch will use the regional policy. */ + policy?: BatchNodePlacementPolicyType; } /** The configuration for virtual machine extensions. */ @@ -259,12 +207,8 @@ export interface VMExtension { export interface OSDisk { /** Specifies the ephemeral Disk Settings for the operating system disk used by the compute node (VM). */ ephemeralOSDiskSettings?: DiffDiskSettings; - /** - * Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: None for Standard storage. ReadOnly for Premium storage. - * - * Possible values: none, readonly, readwrite - */ - caching?: string; + /** Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: None for Standard storage. ReadOnly for Premium storage. */ + caching?: CachingType; /** The initial disk size in GB when creating new OS disk. */ diskSizeGB?: number; /** The managed disk parameters. */ @@ -278,34 +222,22 @@ export interface OSDisk { * compute node (VM). */ export interface DiffDiskSettings { - /** - * Specifies the ephemeral disk placement for operating system disk for all VMs in the pool. This property can be used by user in the request to choose the location e.g., cache disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer to Ephemeral OS disk size requirements for Windows VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements. - * - * Possible values: cachedisk - */ - placement?: string; + /** Specifies the ephemeral disk placement for operating system disk for all VMs in the pool. This property can be used by user in the request to choose the location e.g., cache disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer to Ephemeral OS disk size requirements for Windows VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements. */ + placement?: DiffDiskPlacement; } /** The managed disk parameters. */ export interface ManagedDisk { - /** - * The storage account type for managed disk. - * - * Possible values: standard_lrs, premium_lrs, standardssd_lrs - */ - storageAccountType: string; + /** The storage account type for managed disk. */ + storageAccountType: StorageAccountType; } /** Specifies the security profile settings for the virtual machine or virtual machine scale set. */ export interface SecurityProfile { /** This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself. */ encryptionAtHost: boolean; - /** - * Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. - * - * Possible values: trustedLaunch - */ - securityType: string; + /** Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. */ + securityType: SecurityTypes; /** Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Specifies the security settings like secure boot and vTPM used while creating the virtual machine. */ uefiSettings: UefiSettings; } @@ -329,18 +261,14 @@ export interface ServiceArtifactReference { /** The network configuration for a Pool. */ export interface NetworkConfiguration { - /** The ARM resource identifier of the virtual network subnet which the Compute Nodes of the Pool will join. This is of the form /subscriptions/{subscription}/resourceGroups/{group}/providers/{provider}/virtualNetworks/{network}/subnets/{subnet}. The virtual network must be in the same region and subscription as the Azure Batch Account. The specified subnet should have enough free IP addresses to accommodate the number of Compute Nodes in the Pool. If the subnet doesn't have enough free IP addresses, the Pool will partially allocate Nodes and a resize error will occur. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule Tasks on the Nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the Nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the Compute Nodes to unusable. For Pools created with virtualMachineConfiguration only ARM virtual networks ('Microsoft.Network/virtualNetworks') are supported, but for Pools created with cloudServiceConfiguration both ARM and classic virtual networks are supported. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. For Pools created with a virtual machine configuration, enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. For Pools created with a cloud service configuration, enable ports 10100, 20100, and 30100. Also enable outbound connections to Azure Storage on port 443. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. */ + /** The ARM resource identifier of the virtual network subnet which the Compute Nodes of the Pool will join. This is of the form /subscriptions/{subscription}/resourceGroups/{group}/providers/{provider}/virtualNetworks/{network}/subnets/{subnet}. The virtual network must be in the same region and subscription as the Azure Batch Account. The specified subnet should have enough free IP addresses to accommodate the number of Compute Nodes in the Pool. If the subnet doesn't have enough free IP addresses, the Pool will partially allocate Nodes and a resize error will occur. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule Tasks on the Nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the Nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the Compute Nodes to unusable. For Pools created with virtualMachineConfiguration only ARM virtual networks ('Microsoft.Network/virtualNetworks') are supported. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. For Pools created with a virtual machine configuration, enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. Also enable outbound connections to Azure Storage on port 443. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. */ subnetId?: string; - /** - * The scope of dynamic vnet assignment. - * - * Possible values: none, job - */ - dynamicVNetAssignmentScope?: string; + /** The scope of dynamic vnet assignment. */ + dynamicVNetAssignmentScope?: DynamicVNetAssignmentScope; /** The configuration for endpoints on Compute Nodes in the Batch Pool. Pool endpoint configuration is only supported on Pools with the virtualMachineConfiguration property. */ endpointConfiguration?: BatchPoolEndpointConfiguration; /** The Public IPAddress configuration for Compute Nodes in the Batch Pool. Public IP configuration property is only supported on Pools with the virtualMachineConfiguration property. */ - publicIPAddressConfiguration?: PublicIPAddressConfiguration; + publicIPAddressConfiguration?: PublicIpAddressConfiguration; /** Whether this pool should enable accelerated networking. Accelerated networking enables single root I/O virtualization (SR-IOV) to a VM, which may lead to improved networking performance. For more details, see: https://learn.microsoft.com/azure/virtual-network/accelerated-networking-overview. */ enableAcceleratedNetworking?: boolean; } @@ -348,22 +276,18 @@ export interface NetworkConfiguration { /** The endpoint configuration for a Pool. */ export interface BatchPoolEndpointConfiguration { /** A list of inbound NAT Pools that can be used to address specific ports on an individual Compute Node externally. The maximum number of inbound NAT Pools per Batch Pool is 5. If the maximum number of inbound NAT Pools is exceeded the request fails with HTTP status code 400. This cannot be specified if the IPAddressProvisioningType is NoPublicIPAddresses. */ - inboundNATPools: Array; + inboundNATPools: Array; } /** * A inbound NAT Pool that can be used to address specific ports on Compute Nodes * in a Batch Pool externally. */ -export interface InboundNATPool { +export interface InboundNatPool { /** The name of the endpoint. The name must be unique within a Batch Pool, can contain letters, numbers, underscores, periods, and hyphens. Names must start with a letter or number, must end with a letter, number, or underscore, and cannot exceed 77 characters. If any invalid values are provided the request fails with HTTP status code 400. */ name: string; - /** - * The protocol of the endpoint. - * - * Possible values: tcp, udp - */ - protocol: string; + /** The protocol of the endpoint. */ + protocol: InboundEndpointProtocol; /** The port number on the Compute Node. This must be unique within a Batch Pool. Acceptable values are between 1 and 65535 except for 22, 3389, 29876 and 29877 as these are reserved. If any reserved values are provided the request fails with HTTP status code 400. */ backendPort: number; /** The first port number in the range of external ports that will be used to provide inbound access to the backendPort on individual Compute Nodes. Acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved. All ranges within a Pool must be distinct and cannot overlap. Each range must contain at least 40 ports. If any reserved or overlapping values are provided the request fails with HTTP status code 400. */ @@ -378,12 +302,8 @@ export interface InboundNATPool { export interface NetworkSecurityGroupRule { /** The priority for this rule. Priorities within a Pool must be unique and are evaluated in order of priority. The lower the number the higher the priority. For example, rules could be specified with order numbers of 150, 250, and 350. The rule with the order number of 150 takes precedence over the rule that has an order of 250. Allowed priorities are 150 to 4096. If any reserved or duplicate values are provided the request fails with HTTP status code 400. */ priority: number; - /** - * The action that should be taken for a specified IP address, subnet range or tag. - * - * Possible values: allow, deny - */ - access: string; + /** The action that should be taken for a specified IP address, subnet range or tag. */ + access: NetworkSecurityGroupRuleAccess; /** The source address prefix or tag to match for the rule. Valid values are a single IP address (i.e. 10.10.10.10), IP subnet (i.e. 192.168.1.0/24), default tag, or * (for all addresses). If any other values are provided the request fails with HTTP status code 400. */ sourceAddressPrefix: string; /** The source port ranges to match for the rule. Valid values are '*' (for all ports 0 - 65535), a specific port (i.e. 22), or a port range (i.e. 100-200). The ports must be in the range of 0 to 65535. Each entry in this collection must not overlap any other entry (either a range or an individual port). If any other values are provided the request fails with HTTP status code 400. The default value is '*'. */ @@ -391,13 +311,9 @@ export interface NetworkSecurityGroupRule { } /** The public IP Address configuration of the networking configuration of a Pool. */ -export interface PublicIPAddressConfiguration { - /** - * The provisioning type for Public IP Addresses for the Pool. The default value is BatchManaged. - * - * Possible values: batchmanaged, usermanaged, nopublicipaddresses - */ - provision?: string; +export interface PublicIpAddressConfiguration { + /** The provisioning type for Public IP Addresses for the Pool. The default value is BatchManaged. */ + provision?: IpAddressProvisioningType; /** The list of public IPs which the Batch service will use when provisioning Compute Nodes. The number of IPs specified here limits the maximum size of the Pool - 100 dedicated nodes or 100 Spot/Low-priority nodes can be allocated for each public IP. For example, a pool needing 250 dedicated VMs would need at least 3 public IPs specified. Each element of this collection is of the form: /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}. */ ipAddressIds?: string[]; } @@ -441,13 +357,9 @@ export interface BatchTaskContainerSettings { /** The Image to use to create the container in which the Task will run. This is the full Image reference, as would be specified to "docker pull". If no tag is provided as part of the Image name, the tag ":latest" is used as a default. */ imageName: string; /** The private registry which contains the container Image. This setting can be omitted if was already provided at Pool creation. */ - registry?: ContainerRegistry; - /** - * The location of the container Task working directory. The default is 'taskWorkingDirectory'. - * - * Possible values: taskWorkingDirectory, containerImageDefault - */ - workingDirectory?: string; + registry?: ContainerRegistryReference; + /** The location of the container Task working directory. The default is 'taskWorkingDirectory'. */ + workingDirectory?: ContainerWorkingDirectory; } /** A single file or multiple files to be downloaded to a Compute Node. */ @@ -486,36 +398,10 @@ export interface UserIdentity { /** Specifies the options for the auto user that runs an Azure Batch Task. */ export interface AutoUserSpecification { - /** - * The scope for the auto user. The default value is pool. If the pool is running Windows a value of Task should be specified if stricter isolation between tasks is required. For example, if the task mutates the registry in a way which could impact other tasks, or if certificates have been specified on the pool which should not be accessible by normal tasks but should be accessible by StartTasks. - * - * Possible values: task, pool - */ - scope?: string; - /** - * The elevation level of the auto user. The default value is nonAdmin. - * - * Possible values: nonadmin, admin - */ - elevationLevel?: string; -} - -/** A reference to a Certificate to be installed on Compute Nodes in a Pool. Warning: This object is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. */ -export interface BatchCertificateReference { - /** The thumbprint of the Certificate. */ - thumbprint: string; - /** The algorithm with which the thumbprint is associated. This must be sha1. */ - thumbprintAlgorithm: string; - /** - * The location of the Certificate store on the Compute Node into which to install the Certificate. The default value is currentuser. This property is applicable only for Pools configured with Windows Compute Nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows Image reference). For Linux Compute Nodes, the Certificates are stored in a directory inside the Task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the Task to query for this location. For Certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and Certificates are placed in that directory. - * - * Possible values: currentuser, localmachine - */ - storeLocation?: string; - /** The name of the Certificate store on the Compute Node into which to install the Certificate. This property is applicable only for Pools configured with Windows Compute Nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows Image reference). Common store names include: My, Root, CA, Trust, Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but any custom store name can also be used. The default value is My. */ - storeName?: string; - /** Which user Accounts on the Compute Node should have access to the private data of the Certificate. You can specify more than one visibility in this collection. The default is all Accounts. */ - visibility?: string[]; + /** The scope for the auto user. The default value is pool. If the pool is running Windows, a value of Task should be specified if stricter isolation between tasks is required, such as if the task mutates the registry in a way which could impact other tasks. */ + scope?: AutoUserScope; + /** The elevation level of the auto user. The default value is nonAdmin. */ + elevationLevel?: ElevationLevel; } /** A reference to an Package to be deployed to Compute Nodes. */ @@ -528,12 +414,8 @@ export interface BatchApplicationPackageReference { /** Specifies how Tasks should be distributed across Compute Nodes. */ export interface BatchTaskSchedulingPolicy { - /** - * How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread. - * - * Possible values: spread, pack - */ - nodeFillType: string; + /** How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread. */ + nodeFillType: BatchNodeFillType; } /** @@ -545,12 +427,8 @@ export interface UserAccount { name: string; /** The password for the user Account. */ password: string; - /** - * The elevation level of the user Account. The default value is nonAdmin. - * - * Possible values: nonadmin, admin - */ - elevationLevel?: string; + /** The elevation level of the user Account. The default value is nonAdmin. */ + elevationLevel?: ElevationLevel; /** The Linux-specific user configuration for the user Account. This property is ignored if specified on a Windows Pool. If not specified, the user is created with the default options. */ linuxUserConfiguration?: LinuxUserConfiguration; /** The Windows-specific user configuration for the user Account. This property can only be specified if the user is on a Windows Pool. If not specified and on a Windows Pool, the user is created with the default options. */ @@ -569,12 +447,8 @@ export interface LinuxUserConfiguration { /** Properties used to create a user Account on a Windows Compute Node. */ export interface WindowsUserConfiguration { - /** - * The login mode for the user. The default value for VirtualMachineConfiguration Pools is 'batch' and for CloudServiceConfiguration Pools is 'interactive'. - * - * Possible values: batch, interactive - */ - loginMode?: string; + /** The login mode for the user. The default value for VirtualMachineConfiguration Pools is 'batch'. */ + loginMode?: LoginMode; } /** @@ -593,7 +467,7 @@ export interface MountConfiguration { /** The Azure Storage Container to mount using blob FUSE on each node. This property is mutually exclusive with all other properties. */ azureBlobFileSystemConfiguration?: AzureBlobFileSystemConfiguration; /** The NFS file system to mount on each node. This property is mutually exclusive with all other properties. */ - nfsMountConfiguration?: NFSMountConfiguration; + nfsMountConfiguration?: NfsMountConfiguration; /** The CIFS/SMB file system to mount on each node. This property is mutually exclusive with all other properties. */ cifsMountConfiguration?: CifsMountConfiguration; /** The Azure File Share to mount on each node. This property is mutually exclusive with all other properties. */ @@ -619,7 +493,7 @@ export interface AzureBlobFileSystemConfiguration { } /** Information used to connect to an NFS file system. */ -export interface NFSMountConfiguration { +export interface NfsMountConfiguration { /** The URI of the file system to mount. */ source: string; /** The relative path on the compute node where the file system will be mounted. All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable. */ @@ -656,6 +530,46 @@ export interface AzureFileShareConfiguration { mountOptions?: string; } +/** Describes an upgrade policy - automatic, manual, or rolling. */ +export interface UpgradePolicy { + /** Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

**Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

**Automatic** - All virtual machines in the scale set are automatically updated at the same time.

**Rolling** - Scale set performs updates in batches with an optional pause time in between. */ + mode: UpgradeMode; + /** Configuration parameters used for performing automatic OS Upgrade. The configuration parameters used for performing automatic OS upgrade. */ + automaticOSUpgradePolicy?: AutomaticOsUpgradePolicy; + /** The configuration parameters used while performing a rolling upgrade. This property is only supported on Pools with the virtualMachineConfiguration property. */ + rollingUpgradePolicy?: RollingUpgradePolicy; +} + +/** The configuration parameters used for performing automatic OS upgrade. */ +export interface AutomaticOsUpgradePolicy { + /** Whether OS image rollback feature should be disabled. */ + disableAutomaticRollback?: boolean; + /** Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available.

If this is set to true for Windows based pools, [WindowsConfiguration.enableAutomaticUpdates](https://learn.microsoft.com/en-us/rest/api/batchservice/pool/add?tabs=HTTP#windowsconfiguration) cannot be set to true. */ + enableAutomaticOSUpgrade?: boolean; + /** Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS. */ + useRollingUpgradePolicy?: boolean; + /** Defer OS upgrades on the TVMs if they are running tasks. */ + osRollingUpgradeDeferral?: boolean; +} + +/** The configuration parameters used while performing a rolling upgrade. */ +export interface RollingUpgradePolicy { + /** Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size. This field is able to be set to true or false only when using NodePlacementConfiguration as Zonal. */ + enableCrossZoneUpgrade?: boolean; + /** The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent. */ + maxBatchInstancePercent?: number; + /** The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent. */ + maxUnhealthyInstancePercent?: number; + /** The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The value of this field should be between 0 and 100, inclusive. */ + maxUnhealthyUpgradedInstancePercent?: number; + /** The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format.. */ + pauseTimeBetweenBatches?: string; + /** Upgrade all unhealthy instances in a scale set before any healthy instances. */ + prioritizeUnhealthyInstances?: boolean; + /** Rollback failed instances to previous model if the Rolling Upgrade policy is violated. */ + rollbackFailedInstancesOnPolicyBreach?: boolean; +} + /** Represents a name-value pair. */ export interface NameValuePair { /** The name in the name-value pair. */ @@ -665,32 +579,19 @@ export interface NameValuePair { } /** Parameters for updating an Azure Batch Pool. */ -export interface BatchPoolUpdateParameters { +export interface BatchPoolUpdateContent { /** A Task to run on each Compute Node as it joins the Pool. The Task runs when the Compute Node is added to the Pool or when the Compute Node is restarted. If this element is present, it overwrites any existing StartTask. If omitted, any existing StartTask is left unchanged. */ startTask?: BatchStartTask; - /** - * If this element is present, it replaces any existing Certificate references configured on the Pool. - * If omitted, any existing Certificate references are left unchanged. - * For Windows Nodes, the Batch service installs the Certificates to the specified Certificate store and location. - * For Linux Compute Nodes, the Certificates are stored in a directory inside the Task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the Task to query for this location. - * For Certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and Certificates are placed in that directory. - * Warning: This property is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - */ - certificateReferences?: Array; /** A list of Packages to be installed on each Compute Node in the Pool. Changes to Package references affect all new Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. If this element is present, it replaces any existing Package references. If you specify an empty collection, then all Package references are removed from the Pool. If omitted, any existing Package references are left unchanged. */ applicationPackageReferences?: Array; /** A list of name-value pairs associated with the Pool as metadata. If this element is present, it replaces any existing metadata configured on the Pool. If you specify an empty collection, any metadata is removed from the Pool. If omitted, any existing metadata is left unchanged. */ metadata?: Array; - /** - * The desired node communication mode for the pool. If this element is present, it replaces the existing targetNodeCommunicationMode configured on the Pool. If omitted, any existing metadata is left unchanged. - * - * Possible values: default, classic, simplified - */ - targetNodeCommunicationMode?: string; + /** The desired node communication mode for the pool. If this element is present, it replaces the existing targetNodeCommunicationMode configured on the Pool. If omitted, any existing metadata is left unchanged. */ + targetNodeCommunicationMode?: BatchNodeCommunicationMode; } /** Parameters for enabling automatic scaling on an Azure Batch Pool. */ -export interface BatchPoolEnableAutoScaleParameters { +export interface BatchPoolEnableAutoScaleContent { /** The formula for the desired number of Compute Nodes in the Pool. The formula is checked for validity before it is applied to the Pool. If the formula is not valid, the Batch service rejects the request with detailed error information. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling). */ autoScaleFormula?: string; /** The time interval at which to automatically adjust the Pool size according to the autoscale formula. The default value is 15 minutes. The minimum and maximum value are 5 minutes and 168 hours respectively. If you specify a value less than 5 minutes or greater than 168 hours, the Batch service rejects the request with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). If you specify a new interval, then the existing autoscale evaluation schedule will be stopped and a new autoscale evaluation schedule will be started, with its starting time being the time when this request was issued. */ @@ -698,64 +599,43 @@ export interface BatchPoolEnableAutoScaleParameters { } /** Parameters for evaluating an automatic scaling formula on an Azure Batch Pool. */ -export interface BatchPoolEvaluateAutoScaleParameters { +export interface BatchPoolEvaluateAutoScaleContent { /** The formula for the desired number of Compute Nodes in the Pool. The formula is validated and its results calculated, but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling on a Pool'. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling). */ autoScaleFormula: string; } /** Parameters for changing the size of an Azure Batch Pool. */ -export interface BatchPoolResizeParameters { +export interface BatchPoolResizeContent { /** The desired number of dedicated Compute Nodes in the Pool. */ targetDedicatedNodes?: number; /** The desired number of Spot/Low-priority Compute Nodes in the Pool. */ targetLowPriorityNodes?: number; /** The timeout for allocation of Nodes to the Pool or removal of Compute Nodes from the Pool. The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). */ resizeTimeout?: string; - /** - * Determines what to do with a Compute Node and its running task(s) if the Pool size is decreasing. The default value is requeue. - * - * Possible values: requeue, terminate, taskcompletion, retaineddata - */ - nodeDeallocationOption?: string; + /** Determines what to do with a Compute Node and its running task(s) if the Pool size is decreasing. The default value is requeue. */ + nodeDeallocationOption?: BatchNodeDeallocationOption; } /** Parameters for replacing properties on an Azure Batch Pool. */ -export interface BatchPoolReplaceParameters { +export interface BatchPoolReplaceContent { /** A Task to run on each Compute Node as it joins the Pool. The Task runs when the Compute Node is added to the Pool or when the Compute Node is restarted. If this element is present, it overwrites any existing StartTask. If omitted, any existing StartTask is removed from the Pool. */ startTask?: BatchStartTask; - /** - * This list replaces any existing Certificate references configured on the Pool. - * If you specify an empty collection, any existing Certificate references are removed from the Pool. - * For Windows Nodes, the Batch service installs the Certificates to the specified Certificate store and location. - * For Linux Compute Nodes, the Certificates are stored in a directory inside the Task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the Task to query for this location. - * For Certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and Certificates are placed in that directory. - * Warning: This property is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - */ - certificateReferences: Array; /** The list of Application Packages to be installed on each Compute Node in the Pool. The list replaces any existing Application Package references on the Pool. Changes to Application Package references affect all new Compute Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. There is a maximum of 10 Application Package references on any given Pool. If omitted, or if you specify an empty collection, any existing Application Packages references are removed from the Pool. A maximum of 10 references may be specified on a given Pool. */ applicationPackageReferences: Array; /** A list of name-value pairs associated with the Pool as metadata. This list replaces any existing metadata configured on the Pool. If omitted, or if you specify an empty collection, any existing metadata is removed from the Pool. */ metadata: Array; - /** - * The desired node communication mode for the pool. This setting replaces any existing targetNodeCommunication setting on the Pool. If omitted, the existing setting is default. - * - * Possible values: default, classic, simplified - */ - targetNodeCommunicationMode?: string; + /** The desired node communication mode for the pool. This setting replaces any existing targetNodeCommunication setting on the Pool. If omitted, the existing setting is default. */ + targetNodeCommunicationMode?: BatchNodeCommunicationMode; } /** Parameters for removing nodes from an Azure Batch Pool. */ -export interface BatchNodeRemoveParameters { +export interface BatchNodeRemoveContent { /** A list containing the IDs of the Compute Nodes to be removed from the specified Pool. A maximum of 100 nodes may be removed per request. */ nodeList: string[]; /** The timeout for removal of Compute Nodes to the Pool. The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). */ resizeTimeout?: string; - /** - * Determines what to do with a Compute Node and its running task(s) after it has been selected for deallocation. The default value is requeue. - * - * Possible values: requeue, terminate, taskcompletion, retaineddata - */ - nodeDeallocationOption?: string; + /** Determines what to do with a Compute Node and its running task(s) after it has been selected for deallocation. The default value is requeue. */ + nodeDeallocationOption?: BatchNodeDeallocationOption; } /** An Azure Batch Job. */ @@ -770,12 +650,8 @@ export interface BatchJob { constraints?: BatchJobConstraints; /** The Pool settings associated with the Job. */ poolInfo: BatchPoolInfo; - /** - * The action the Batch service should take when all Tasks in the Job are in the completed state. The default is noaction. - * - * Possible values: noaction, terminatejob - */ - onAllTasksComplete?: string; + /** The action the Batch service should take when all Tasks in the Job are in the completed state. The default is noaction. */ + onAllTasksComplete?: OnAllBatchTasksComplete; /** A list of name-value pairs associated with the Job as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code. */ metadata?: Array; } @@ -862,7 +738,7 @@ export interface OutputFile { /** The destination for the output file(s). */ destination: OutputFileDestination; /** Additional options for the upload operation, including under what conditions to perform the upload. */ - uploadOptions: OutputFileUploadOptions; + uploadOptions: OutputFileUploadConfig; } /** The destination to which a file should be uploaded. */ @@ -895,13 +771,9 @@ export interface HttpHeader { * Options for an output file upload operation, including under what conditions * to perform the upload. */ -export interface OutputFileUploadOptions { - /** - * The conditions under which the Task output file or set of files should be uploaded. The default is taskcompletion. - * - * Possible values: tasksuccess, taskfailure, taskcompletion - */ - uploadCondition: string; +export interface OutputFileUploadConfig { + /** The conditions under which the Task output file or set of files should be uploaded. The default is taskcompletion. */ + uploadCondition: OutputFileUploadCondition; } /** Execution constraints to apply to a Task. */ @@ -920,7 +792,7 @@ export interface BatchTaskConstraints { */ export interface AuthenticationTokenSettings { /** The Batch resources to which the token grants access. The authentication token grants access to a limited set of Batch service operations. Currently the only supported value for the access property is 'job', which grants access to all operations related to the Job which contains the Task. */ - access?: string[]; + access?: AccessScope[]; } /** @@ -1024,12 +896,8 @@ export interface BatchPoolInfo { export interface BatchAutoPoolSpecification { /** A prefix to be added to the unique identifier when a Pool is automatically created. The Batch service assigns each auto Pool a unique identifier on creation. To distinguish between Pools created for different purposes, you can specify this element to add a prefix to the ID that is assigned. The prefix can be up to 20 characters long. */ autoPoolIdPrefix?: string; - /** - * The minimum lifetime of created auto Pools, and how multiple Jobs on a schedule are assigned to Pools. - * - * Possible values: jobschedule, job - */ - poolLifetimeOption: string; + /** The minimum lifetime of created auto Pools, and how multiple Jobs on a schedule are assigned to Pools. */ + poolLifetimeOption: BatchPoolLifetimeOption; /** Whether to keep an auto Pool alive after its lifetime expires. If false, the Batch service deletes the Pool once its lifetime (as determined by the poolLifetimeOption setting) expires; that is, when the Job or Job Schedule completes. If true, the Batch service does not delete the Pool automatically. It is up to the user to delete auto Pools created with this option. */ keepAlive?: boolean; /** The Pool specification for the auto Pool. */ @@ -1042,9 +910,7 @@ export interface BatchPoolSpecification { displayName?: string; /** The size of the virtual machines in the Pool. All virtual machines in a Pool are the same size. For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). */ vmSize: string; - /** The cloud service configuration for the Pool. This property must be specified if the Pool needs to be created with Azure PaaS VMs. This property and virtualMachineConfiguration are mutually exclusive and one of the properties must be specified. If neither is specified then the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). This property cannot be specified if the Batch Account was created with its poolAllocationMode property set to 'UserSubscription'. */ - cloudServiceConfiguration?: CloudServiceConfiguration; - /** The virtual machine configuration for the Pool. This property must be specified if the Pool needs to be created with Azure IaaS VMs. This property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified. If neither is specified then the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). */ + /** The virtual machine configuration for the Pool. This property must be specified if the Pool needs to be created with Azure IaaS VMs. If it is not specified then the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). */ virtualMachineConfiguration?: VirtualMachineConfiguration; /** The number of task slots that can be used to run concurrent tasks on a single compute node in the pool. The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256. */ taskSlotsPerNode?: number; @@ -1070,28 +936,18 @@ export interface BatchPoolSpecification { networkConfiguration?: NetworkConfiguration; /** A Task to run on each Compute Node as it joins the Pool. The Task runs when the Compute Node is added to the Pool or when the Compute Node is restarted. */ startTask?: BatchStartTask; - /** - * For Windows Nodes, the Batch service installs the Certificates to the specified Certificate store and location. For Linux Compute Nodes, the Certificates are stored in a directory inside the Task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the Task to query for this location. For Certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and Certificates are placed in that directory. - * Warning: This property is deprecated and will be removed after February, 2024. - * Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - */ - certificateReferences?: Array; /** The list of Packages to be installed on each Compute Node in the Pool. When creating a pool, the package's application ID must be fully qualified (/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}). Changes to Package references affect all new Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. There is a maximum of 10 Package references on any given Pool. */ applicationPackageReferences?: Array; - /** The list of application licenses the Batch service will make available on each Compute Node in the Pool. The list of application licenses must be a subset of available Batch service application licenses. If a license is requested which is not supported, Pool creation will fail. The permitted licenses available on the Pool are 'maya', 'vray', '3dsmax', 'arnold'. An additional charge applies for each application license added to the Pool. */ - applicationLicenses?: string[]; /** The list of user Accounts to be created on each Compute Node in the Pool. */ userAccounts?: Array; /** A list of name-value pairs associated with the Pool as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code. */ metadata?: Array; /** A list of file systems to mount on each node in the pool. This supports Azure Files, NFS, CIFS/SMB, and Blobfuse. */ mountConfiguration?: Array; - /** - * The desired node communication mode for the pool. If omitted, the default value is Default. - * - * Possible values: default, classic, simplified - */ - targetNodeCommunicationMode?: string; + /** The desired node communication mode for the pool. If omitted, the default value is Default. */ + targetNodeCommunicationMode?: BatchNodeCommunicationMode; + /** The upgrade policy for the Pool. Describes an upgrade policy - automatic, manual, or rolling. */ + upgradePolicy?: UpgradePolicy; } /** The network configuration for the Job. */ @@ -1116,12 +972,8 @@ export interface BatchJobExecutionInfo { /** An error encountered by the Batch service when scheduling a Job. */ export interface BatchJobSchedulingError { - /** - * The category of the Job scheduling error. - * - * Possible values: usererror, servererror - */ - category: string; + /** The category of the Job scheduling error. */ + category: ErrorCategory; /** An identifier for the Job scheduling error. Codes are invariant and are intended to be consumed programmatically. */ code?: string; /** A message describing the Job scheduling error, intended to be suitable for display in a user interface. */ @@ -1163,7 +1015,7 @@ export interface BatchJobStatistics { } /** Parameters for updating an Azure Batch Job. */ -export interface BatchJobUpdateParameters { +export interface BatchJobUpdateContent { /** The priority of the Job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. If omitted, the priority of the Job is left unchanged. */ priority?: number; /** Whether Tasks in this job can be preempted by other high priority jobs. If the value is set to True, other high priority jobs submitted to the system will take precedence and will be able requeue tasks from this job. You can update a job's allowTaskPreemption after it has been created using the update job API. */ @@ -1174,34 +1026,26 @@ export interface BatchJobUpdateParameters { constraints?: BatchJobConstraints; /** The Pool on which the Batch service runs the Job's Tasks. You may change the Pool for a Job only when the Job is disabled. The Patch Job call will fail if you include the poolInfo element and the Job is not disabled. If you specify an autoPoolSpecification in the poolInfo, only the keepAlive property of the autoPoolSpecification can be updated, and then only if the autoPoolSpecification has a poolLifetimeOption of Job (other job properties can be updated as normal). If omitted, the Job continues to run on its current Pool. */ poolInfo?: BatchPoolInfo; - /** - * The action the Batch service should take when all Tasks in the Job are in the completed state. If omitted, the completion behavior is left unchanged. You may not change the value from terminatejob to noaction - that is, once you have engaged automatic Job termination, you cannot turn it off again. If you try to do this, the request fails with an 'invalid property value' error response; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). - * - * Possible values: noaction, terminatejob - */ - onAllTasksComplete?: string; + /** The action the Batch service should take when all Tasks in the Job are in the completed state. If omitted, the completion behavior is left unchanged. You may not change the value from terminatejob to noaction - that is, once you have engaged automatic Job termination, you cannot turn it off again. If you try to do this, the request fails with an 'invalid property value' error response; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). */ + onAllTasksComplete?: OnAllBatchTasksComplete; /** A list of name-value pairs associated with the Job as metadata. If omitted, the existing Job metadata is left unchanged. */ metadata?: Array; } /** Parameters for disabling an Azure Batch Job. */ -export interface BatchJobDisableParameters { - /** - * What to do with active Tasks associated with the Job. - * - * Possible values: requeue, terminate, wait - */ - disableTasks: string; +export interface BatchJobDisableContent { + /** What to do with active Tasks associated with the Job. */ + disableTasks: DisableBatchJobOption; } /** Parameters for terminating an Azure Batch Job. */ -export interface BatchJobTerminateParameters { - /** The text you want to appear as the Job's TerminateReason. The default is 'UserTerminate'. */ +export interface BatchJobTerminateContent { + /** The text you want to appear as the Job's TerminationReason. The default is 'UserTerminate'. */ terminateReason?: string; } /** Parameters for creating an Azure Batch Job. */ -export interface BatchJobCreateParameters { +export interface BatchJobCreateContent { /** A string that uniquely identifies the Job within the Account. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within an Account that differ only by case). */ id: string; /** The display name for the Job. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. */ @@ -1226,18 +1070,10 @@ export interface BatchJobCreateParameters { commonEnvironmentSettings?: Array; /** The Pool on which the Batch service runs the Job's Tasks. */ poolInfo: BatchPoolInfo; - /** - * The action the Batch service should take when all Tasks in the Job are in the completed state. Note that if a Job contains no Tasks, then all Tasks are considered complete. This option is therefore most commonly used with a Job Manager task; if you want to use automatic Job termination without a Job Manager, you should initially set onAllTasksComplete to noaction and update the Job properties to set onAllTasksComplete to terminatejob once you have finished adding Tasks. The default is noaction. - * - * Possible values: noaction, terminatejob - */ - onAllTasksComplete?: string; - /** - * The action the Batch service should take when any Task in the Job fails. A Task is considered to have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download error. The default is noaction. - * - * Possible values: noaction, performexitoptionsjobaction - */ - onTaskFailure?: string; + /** The action the Batch service should take when all Tasks in the Job are in the completed state. Note that if a Job contains no Tasks, then all Tasks are considered complete. This option is therefore most commonly used with a Job Manager task; if you want to use automatic Job termination without a Job Manager, you should initially set onAllTasksComplete to noaction and update the Job properties to set onAllTasksComplete to terminatejob once you have finished adding Tasks. The default is noaction. */ + onAllTasksComplete?: OnAllBatchTasksComplete; + /** The action the Batch service should take when any Task in the Job fails. A Task is considered to have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download error. The default is noaction. */ + onTaskFailure?: OnBatchTaskFailure; /** The network configuration for the Job. */ networkConfiguration?: BatchJobNetworkConfiguration; /** A list of name-value pairs associated with the Job as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code. */ @@ -1256,12 +1092,8 @@ export interface BatchTaskContainerExecutionInfo { /** Information about a Task failure. */ export interface BatchTaskFailureInfo { - /** - * The category of the Task error. - * - * Possible values: usererror, servererror - */ - category: string; + /** The category of the Task error. */ + category: ErrorCategory; /** An identifier for the Task error. Codes are invariant and are intended to be consumed programmatically. */ code?: string; /** A message describing the Task error, intended to be suitable for display in a user interface. */ @@ -1270,44 +1102,13 @@ export interface BatchTaskFailureInfo { details?: Array; } -/** - * A Certificate that can be installed on Compute Nodes and can be used to - * authenticate operations on the machine. - */ -export interface BatchCertificate { - /** The X.509 thumbprint of the Certificate. This is a sequence of up to 40 hex digits (it may include spaces but these are removed). */ - thumbprint: string; - /** The algorithm used to derive the thumbprint. This must be sha1. */ - thumbprintAlgorithm: string; - /** The base64-encoded contents of the Certificate. The maximum size is 10KB. */ - data: string; - /** - * The format of the Certificate data. - * - * Possible values: pfx, cer - */ - certificateFormat?: string; - /** The password to access the Certificate's private key. This must be omitted if the Certificate format is cer. */ - password?: string; -} - -/** An error encountered by the Batch service when deleting a Certificate. */ -export interface DeleteBatchCertificateError { - /** An identifier for the Certificate deletion error. Codes are invariant and are intended to be consumed programmatically. */ - code?: string; - /** A message describing the Certificate deletion error, intended to be suitable for display in a user interface. */ - message?: string; - /** A list of additional error details related to the Certificate deletion error. This list includes details such as the active Pools and Compute Nodes referencing this Certificate. However, if a large number of resources reference the Certificate, the list contains only about the first hundred. */ - values?: Array; -} - /** * A Job Schedule that allows recurring Jobs by specifying when to run Jobs and a * specification used to create each Job. */ export interface BatchJobSchedule { /** The schedule according to which Jobs will be created. All times are fixed respective to UTC and are not impacted by daylight saving time. */ - schedule?: Schedule; + schedule?: BatchJobScheduleConfiguration; /** The details of the Jobs to be created on this schedule. */ jobSpecification: BatchJobSpecification; /** A list of name-value pairs associated with the schedule as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code. */ @@ -1318,7 +1119,7 @@ export interface BatchJobSchedule { * The schedule according to which Jobs will be created. All times are fixed * respective to UTC and are not impacted by daylight saving time. */ -export interface Schedule { +export interface BatchJobScheduleConfiguration { /** The earliest time at which any Job may be created under this Job Schedule. If you do not specify a doNotRunUntil time, the schedule becomes ready to create Jobs immediately. */ doNotRunUntil?: Date | string; /** A time after which no Job will be created under this Job Schedule. The schedule will move to the completed state as soon as this deadline is past and there is no active Job under this Job Schedule. If you do not specify a doNotRunAfter time, and you are creating a recurring Job Schedule, the Job Schedule will remain active until you explicitly terminate it. */ @@ -1341,18 +1142,10 @@ export interface BatchJobSpecification { displayName?: string; /** Whether Tasks in the Job can define dependencies on each other. The default is false. */ usesTaskDependencies?: boolean; - /** - * The action the Batch service should take when all Tasks in a Job created under this schedule are in the completed state. Note that if a Job contains no Tasks, then all Tasks are considered complete. This option is therefore most commonly used with a Job Manager task; if you want to use automatic Job termination without a Job Manager, you should initially set onAllTasksComplete to noaction and update the Job properties to set onAllTasksComplete to terminatejob once you have finished adding Tasks. The default is noaction. - * - * Possible values: noaction, terminatejob - */ - onAllTasksComplete?: string; - /** - * The action the Batch service should take when any Task fails in a Job created under this schedule. A Task is considered to have failed if it have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download error. The default is noaction. - * - * Possible values: noaction, performexitoptionsjobaction - */ - onTaskFailure?: string; + /** The action the Batch service should take when all Tasks in a Job created under this schedule are in the completed state. Note that if a Job contains no Tasks, then all Tasks are considered complete. This option is therefore most commonly used with a Job Manager task; if you want to use automatic Job termination without a Job Manager, you should initially set onAllTasksComplete to noaction and update the Job properties to set onAllTasksComplete to terminatejob once you have finished adding Tasks. The default is noaction. */ + onAllTasksComplete?: OnAllBatchTasksComplete; + /** The action the Batch service should take when any Task fails in a Job created under this schedule. A Task is considered to have failed if it have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download error. The default is noaction. */ + onTaskFailure?: OnBatchTaskFailure; /** The network configuration for the Job. */ networkConfiguration?: BatchJobNetworkConfiguration; /** The execution constraints for Jobs created under this schedule. */ @@ -1425,9 +1218,9 @@ export interface BatchJobScheduleStatistics { } /** Parameters for updating an Azure Batch Job Schedule. */ -export interface BatchJobScheduleUpdateParameters { +export interface BatchJobScheduleUpdateContent { /** The schedule according to which Jobs will be created. All times are fixed respective to UTC and are not impacted by daylight saving time. If you do not specify this element, the existing schedule is left unchanged. */ - schedule?: Schedule; + schedule?: BatchJobScheduleConfiguration; /** The details of the Jobs to be created on this schedule. Updates affect only Jobs that are started after the update has taken place. Any currently active Job continues with the older specification. */ jobSpecification?: BatchJobSpecification; /** A list of name-value pairs associated with the Job Schedule as metadata. If you do not specify this element, existing metadata is left unchanged. */ @@ -1435,13 +1228,13 @@ export interface BatchJobScheduleUpdateParameters { } /** Parameters for creating an Azure Batch Job Schedule */ -export interface BatchJobScheduleCreateParameters { +export interface BatchJobScheduleCreateContent { /** A string that uniquely identifies the schedule within the Account. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within an Account that differ only by case). */ id: string; /** The display name for the schedule. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. */ displayName?: string; /** The schedule according to which Jobs will be created. All times are fixed respective to UTC and are not impacted by daylight saving time. */ - schedule: Schedule; + schedule: BatchJobScheduleConfiguration; /** The details of the Jobs to be created on this schedule. */ jobSpecification: BatchJobSpecification; /** A list of name-value pairs associated with the schedule as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code. */ @@ -1449,7 +1242,7 @@ export interface BatchJobScheduleCreateParameters { } /** Parameters for creating an Azure Batch Task. */ -export interface BatchTaskCreateParameters { +export interface BatchTaskCreateContent { /** A string that uniquely identifies the Task within the Job. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within a Job that differ only by case). */ id: string; /** A display name for the Task. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. */ @@ -1511,18 +1304,10 @@ export interface ExitCodeMapping { /** Specifies how the Batch service responds to a particular exit condition. */ export interface ExitOptions { - /** - * An action to take on the Job containing the Task, if the Task completes with the given exit condition and the Job's onTaskFailed property is 'performExitOptionsJobAction'. The default is none for exit code 0 and terminate for all other exit conditions. If the Job's onTaskFailed property is noaction, then specifying this property returns an error and the add Task request fails with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). - * - * Possible values: none, disable, terminate - */ - jobAction?: string; - /** - * An action that the Batch service performs on Tasks that depend on this Task. Possible values are 'satisfy' (allowing dependent tasks to progress) and 'block' (dependent tasks continue to wait). Batch does not yet support cancellation of dependent tasks. - * - * Possible values: satisfy, block - */ - dependencyAction?: string; + /** An action to take on the Job containing the Task, if the Task completes with the given exit condition and the Job's onTaskFailed property is 'performExitOptionsJobAction'. The default is none for exit code 0 and terminate for all other exit conditions. If the Job's onTaskFailed property is noaction, then specifying this property returns an error and the add Task request fails with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). */ + jobAction?: BatchJobAction; + /** An action that the Batch service performs on Tasks that depend on this Task. Possible values are 'satisfy' (allowing dependent tasks to progress) and 'block' (dependent tasks continue to wait). Batch does not yet support cancellation of dependent tasks. */ + dependencyAction?: DependencyAction; } /** @@ -1621,12 +1406,8 @@ export interface BatchTaskExecutionInfo { requeueCount: number; /** The most recent time at which the Task has been requeued by the Batch service as the result of a user request. This property is set only if the requeueCount is nonzero. */ lastRequeueTime?: Date | string; - /** - * The result of the Task execution. If the value is 'failed', then the details of the failure can be found in the failureInfo property. - * - * Possible values: success, failure - */ - result?: string; + /** The result of the Task execution. If the value is 'failed', then the details of the failure can be found in the failureInfo property. */ + result?: BatchTaskExecutionResult; } /** Information about the Compute Node on which a Task ran. */ @@ -1672,28 +1453,28 @@ export interface BatchTaskStatistics { } /** A collection of Azure Batch Tasks to add. */ -export interface BatchTaskCollection { +export interface BatchTaskGroup { /** The collection of Tasks to add. The maximum count of Tasks is 100. The total serialized size of this collection must be less than 1MB. If it is greater than 1MB (for example if each Task has 100's of resource files or environment variables), the request will fail with code 'RequestBodyTooLarge' and should be retried again with fewer Tasks. */ - value: Array; + value: Array; } /** Parameters for creating a user account for RDP or SSH access on an Azure Batch Compute Node. */ -export interface BatchNodeUserCreateParameters { +export interface BatchNodeUserCreateContent { /** The user name of the Account. */ name: string; /** Whether the Account should be an administrator on the Compute Node. The default value is false. */ isAdmin?: boolean; /** The time at which the Account should expire. If omitted, the default is 1 day from the current time. For Linux Compute Nodes, the expiryTime has a precision up to a day. */ expiryTime?: Date | string; - /** The password of the Account. The password is required for Windows Compute Nodes (those created with 'cloudServiceConfiguration', or created with 'virtualMachineConfiguration' using a Windows Image reference). For Linux Compute Nodes, the password can optionally be specified along with the sshPublicKey property. */ + /** The password of the Account. The password is required for Windows Compute Nodes (those created with 'virtualMachineConfiguration' using a Windows Image reference). For Linux Compute Nodes, the password can optionally be specified along with the sshPublicKey property. */ password?: string; /** The SSH public key that can be used for remote login to the Compute Node. The public key should be compatible with OpenSSH encoding and should be base 64 encoded. This property can be specified only for Linux Compute Nodes. If this is specified for a Windows Compute Node, then the Batch service rejects the request; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). */ sshPublicKey?: string; } /** Parameters for updating a user account for RDP or SSH access on an Azure Batch Compute Node. */ -export interface BatchNodeUserUpdateParameters { - /** The password of the Account. The password is required for Windows Compute Nodes (those created with 'cloudServiceConfiguration', or created with 'virtualMachineConfiguration' using a Windows Image reference). For Linux Compute Nodes, the password can optionally be specified along with the sshPublicKey property. If omitted, any existing password is removed. */ +export interface BatchNodeUserUpdateContent { + /** The password of the Account. The password is required for Windows Compute Nodes (those created with 'virtualMachineConfiguration' using a Windows Image reference). For Linux Compute Nodes, the password can optionally be specified along with the sshPublicKey property. If omitted, any existing password is removed. */ password?: string; /** The time at which the Account should expire. If omitted, the default is 1 day from the current time. For Linux Compute Nodes, the expiryTime has a precision up to a day. */ expiryTime?: Date | string; @@ -1702,37 +1483,19 @@ export interface BatchNodeUserUpdateParameters { } /** Parameters for rebooting an Azure Batch Compute Node. */ -export interface BatchNodeRebootParameters { - /** - * When to reboot the Compute Node and what to do with currently running Tasks. The default value is requeue. - * - * Possible values: requeue, terminate, taskcompletion, retaineddata - */ - nodeRebootOption?: string; -} - -/** Parameters for reimaging an Azure Batch Compute Node. */ -export interface BatchNodeReimageParameters { - /** - * When to reimage the Compute Node and what to do with currently running Tasks. The default value is requeue. - * - * Possible values: requeue, terminate, taskcompletion, retaineddata - */ - nodeReimageOption?: string; +export interface BatchNodeRebootContent { + /** When to reboot the Compute Node and what to do with currently running Tasks. The default value is requeue. */ + nodeRebootOption?: BatchNodeRebootOption; } /** Parameters for disabling scheduling on an Azure Batch Compute Node. */ -export interface BatchNodeDisableSchedulingParameters { - /** - * What to do with currently running Tasks when disabling Task scheduling on the Compute Node. The default value is requeue. - * - * Possible values: requeue, terminate, taskcompletion - */ - nodeDisableSchedulingOption?: string; +export interface BatchNodeDisableSchedulingContent { + /** What to do with currently running Tasks when disabling Task scheduling on the Compute Node. The default value is requeue. */ + nodeDisableSchedulingOption?: BatchNodeDisableSchedulingOption; } /** The Azure Batch service log files upload parameters for a Compute Node. */ -export interface UploadBatchServiceLogsParameters { +export interface UploadBatchServiceLogsContent { /** The URL of the container within Azure Blob Storage to which to upload the Batch Service log file(s). If a user assigned managed identity is not being used, the URL must include a Shared Access Signature (SAS) granting write permissions to the container. The SAS duration must allow enough time for the upload to finish. The start time for SAS is optional and recommended to not be specified. */ containerUrl: string; /** The start of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested. */ @@ -1742,3 +1505,127 @@ export interface UploadBatchServiceLogsParameters { /** The reference to the user assigned identity to use to access Azure Blob Storage specified by containerUrl. The identity must have write access to the Azure Blob Storage container. */ identityReference?: BatchNodeIdentityReference; } + +/** Alias for CachingType */ +export type CachingType = string | "none" | "readonly" | "readwrite"; +/** Alias for StorageAccountType */ +export type StorageAccountType = + | string + | "standard_lrs" + | "premium_lrs" + | "standardssd_lrs"; +/** Alias for ContainerType */ +export type ContainerType = string | "dockerCompatible" | "criCompatible"; +/** Alias for DiskEncryptionTarget */ +export type DiskEncryptionTarget = string | "osdisk" | "temporarydisk"; +/** Alias for BatchNodePlacementPolicyType */ +export type BatchNodePlacementPolicyType = string | "regional" | "zonal"; +/** Alias for DiffDiskPlacement */ +export type DiffDiskPlacement = string | "cachedisk"; +/** Alias for SecurityTypes */ +export type SecurityTypes = string | "trustedLaunch"; +/** Alias for DynamicVNetAssignmentScope */ +export type DynamicVNetAssignmentScope = string | "none" | "job"; +/** Alias for InboundEndpointProtocol */ +export type InboundEndpointProtocol = string | "tcp" | "udp"; +/** Alias for NetworkSecurityGroupRuleAccess */ +export type NetworkSecurityGroupRuleAccess = string | "allow" | "deny"; +/** Alias for IpAddressProvisioningType */ +export type IpAddressProvisioningType = + | string + | "batchmanaged" + | "usermanaged" + | "nopublicipaddresses"; +/** Alias for ContainerWorkingDirectory */ +export type ContainerWorkingDirectory = + | string + | "taskWorkingDirectory" + | "containerImageDefault"; +/** Alias for AutoUserScope */ +export type AutoUserScope = string | "task" | "pool"; +/** Alias for ElevationLevel */ +export type ElevationLevel = string | "nonadmin" | "admin"; +/** Alias for BatchNodeFillType */ +export type BatchNodeFillType = string | "spread" | "pack"; +/** Alias for LoginMode */ +export type LoginMode = string | "batch" | "interactive"; +/** Alias for BatchNodeCommunicationMode */ +export type BatchNodeCommunicationMode = + | string + | "default" + | "classic" + | "simplified"; +/** Alias for UpgradeMode */ +export type UpgradeMode = string | "automatic" | "manual" | "rolling"; +/** Alias for BatchNodeDeallocationOption */ +export type BatchNodeDeallocationOption = + | string + | "requeue" + | "terminate" + | "taskcompletion" + | "retaineddata"; +/** Alias for BatchJobState */ +export type BatchJobState = + | string + | "active" + | "disabling" + | "disabled" + | "enabling" + | "terminating" + | "completed" + | "deleting"; +/** Alias for OutputFileUploadCondition */ +export type OutputFileUploadCondition = + | string + | "tasksuccess" + | "taskfailure" + | "taskcompletion"; +/** Alias for AccessScope */ +export type AccessScope = string | "job"; +/** Alias for BatchPoolLifetimeOption */ +export type BatchPoolLifetimeOption = string | "jobschedule" | "job"; +/** Alias for OnAllBatchTasksComplete */ +export type OnAllBatchTasksComplete = string | "noaction" | "terminatejob"; +/** Alias for OnBatchTaskFailure */ +export type OnBatchTaskFailure = + | string + | "noaction" + | "performexitoptionsjobaction"; +/** Alias for ErrorCategory */ +export type ErrorCategory = string | "usererror" | "servererror"; +/** Alias for DisableBatchJobOption */ +export type DisableBatchJobOption = string | "requeue" | "terminate" | "wait"; +/** Alias for BatchTaskExecutionResult */ +export type BatchTaskExecutionResult = string | "success" | "failure"; +/** Alias for BatchJobScheduleState */ +export type BatchJobScheduleState = + | string + | "active" + | "completed" + | "disabled" + | "terminating" + | "deleting"; +/** Alias for BatchJobAction */ +export type BatchJobAction = string | "none" | "disable" | "terminate"; +/** Alias for DependencyAction */ +export type DependencyAction = string | "satisfy" | "block"; +/** Alias for BatchTaskState */ +export type BatchTaskState = + | string + | "active" + | "preparing" + | "running" + | "completed"; +/** Alias for BatchNodeRebootOption */ +export type BatchNodeRebootOption = + | string + | "requeue" + | "terminate" + | "taskcompletion" + | "retaineddata"; +/** Alias for BatchNodeDisableSchedulingOption */ +export type BatchNodeDisableSchedulingOption = + | string + | "requeue" + | "terminate" + | "taskcompletion"; diff --git a/packages/service/src/internal/batch-rest/generated/src/outputModels.ts b/packages/service/src/internal/batch-rest/generated/src/outputModels.ts index 9fff150a7..f42982008 100644 --- a/packages/service/src/internal/batch-rest/generated/src/outputModels.ts +++ b/packages/service/src/internal/batch-rest/generated/src/outputModels.ts @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export interface BatchApplicationListResultListOutput {} - /** The result of listing the applications available in an Account. */ export interface BatchApplicationListResultOutput { /** The list of applications available in the Account. */ @@ -47,8 +45,6 @@ export interface BatchErrorDetailOutput { value?: string; } -export interface BatchPoolListUsageMetricsResultListOutput {} - /** The result of a listing the usage metrics for an Account. */ export interface BatchPoolListUsageMetricsResultOutput { /** The Pool usage metrics data. */ @@ -71,29 +67,6 @@ export interface BatchPoolUsageMetricsOutput { totalCoreHours: number; } -/** - * The configuration for Compute Nodes in a Pool based on the Azure Cloud Services - * platform. - */ -export interface CloudServiceConfigurationOutput { - /** - * Possible values are: - * 2 - OS Family 2, equivalent to Windows Server 2008 R2 - * SP1. - * 3 - OS Family 3, equivalent to Windows Server 2012. - * 4 - OS Family 4, - * equivalent to Windows Server 2012 R2. - * 5 - OS Family 5, equivalent to Windows - * Server 2016. - * 6 - OS Family 6, equivalent to Windows Server 2019. For more - * information, see Azure Guest OS Releases - * (https://azure.microsoft.com/documentation/articles/cloud-services-guestos-update-matrix/#releases). - */ - osFamily: string; - /** The Azure Guest OS version to be installed on the virtual machines in the Pool. The default value is * which specifies the latest operating system version for the specified OS family. */ - osVersion?: string; -} - /** * The configuration for Compute Nodes in a Pool based on the Azure Virtual * Machines infrastructure. @@ -167,40 +140,28 @@ export interface WindowsConfigurationOutput { * disks from within a VM to use them. */ export interface DataDiskOutput { - /** The logical unit number. The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. The value must be between 0 and 63, inclusive. */ + /** The logical unit number. The logicalUnitNumber is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct logicalUnitNumber. The value must be between 0 and 63, inclusive. */ lun: number; - /** - * The type of caching to be enabled for the data disks. The default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. - * - * Possible values: none, readonly, readwrite - */ - caching?: string; + /** The type of caching to be enabled for the data disks. The default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. */ + caching?: CachingTypeOutput; /** The initial disk size in gigabytes. */ diskSizeGB: number; - /** - * The storage Account type to be used for the data disk. If omitted, the default is "standard_lrs". - * - * Possible values: standard_lrs, premium_lrs, standardssd_lrs - */ - storageAccountType?: string; + /** The storage Account type to be used for the data disk. If omitted, the default is "standard_lrs". */ + storageAccountType?: StorageAccountTypeOutput; } /** The configuration for container-enabled Pools. */ export interface ContainerConfigurationOutput { - /** - * The container technology to be used. - * - * Possible values: dockerCompatible, criCompatible - */ - type: string; + /** The container technology to be used. */ + type: ContainerTypeOutput; /** The collection of container Image names. This is the full Image reference, as would be specified to "docker pull". An Image will be sourced from the default Docker registry unless the Image is fully qualified with an alternative registry. */ containerImageNames?: string[]; /** Additional private registries from which containers can be pulled. If any Images must be downloaded from a private registry which requires credentials, then those credentials must be provided here. */ - containerRegistries?: Array; + containerRegistries?: Array; } /** A private container registry. */ -export interface ContainerRegistryOutput { +export interface ContainerRegistryReferenceOutput { /** The user name to log into the registry server. */ username?: string; /** The password to log into the registry server. */ @@ -227,7 +188,7 @@ export interface BatchNodeIdentityReferenceOutput { */ export interface DiskEncryptionConfigurationOutput { /** The list of disk targets Batch Service will encrypt on the compute node. If omitted, no disks on the compute nodes in the pool will be encrypted. On Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and "TemporaryDisk" must be specified. */ - targets?: string[]; + targets?: DiskEncryptionTargetOutput[]; } /** @@ -236,12 +197,8 @@ export interface DiskEncryptionConfigurationOutput { * with best effort balancing. */ export interface BatchNodePlacementConfigurationOutput { - /** - * Node placement Policy type on Batch Pools. Allocation policy used by Batch Service to provision the nodes. If not specified, Batch will use the regional policy. - * - * Possible values: regional, zonal - */ - policy?: string; + /** Node placement Policy type on Batch Pools. Allocation policy used by Batch Service to provision the nodes. If not specified, Batch will use the regional policy. */ + policy?: BatchNodePlacementPolicyTypeOutput; } /** The configuration for virtual machine extensions. */ @@ -270,12 +227,8 @@ export interface VMExtensionOutput { export interface OSDiskOutput { /** Specifies the ephemeral Disk Settings for the operating system disk used by the compute node (VM). */ ephemeralOSDiskSettings?: DiffDiskSettingsOutput; - /** - * Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: None for Standard storage. ReadOnly for Premium storage. - * - * Possible values: none, readonly, readwrite - */ - caching?: string; + /** Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: None for Standard storage. ReadOnly for Premium storage. */ + caching?: CachingTypeOutput; /** The initial disk size in GB when creating new OS disk. */ diskSizeGB?: number; /** The managed disk parameters. */ @@ -289,34 +242,22 @@ export interface OSDiskOutput { * compute node (VM). */ export interface DiffDiskSettingsOutput { - /** - * Specifies the ephemeral disk placement for operating system disk for all VMs in the pool. This property can be used by user in the request to choose the location e.g., cache disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer to Ephemeral OS disk size requirements for Windows VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements. - * - * Possible values: cachedisk - */ - placement?: string; + /** Specifies the ephemeral disk placement for operating system disk for all VMs in the pool. This property can be used by user in the request to choose the location e.g., cache disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer to Ephemeral OS disk size requirements for Windows VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements. */ + placement?: DiffDiskPlacementOutput; } /** The managed disk parameters. */ export interface ManagedDiskOutput { - /** - * The storage account type for managed disk. - * - * Possible values: standard_lrs, premium_lrs, standardssd_lrs - */ - storageAccountType: string; + /** The storage account type for managed disk. */ + storageAccountType: StorageAccountTypeOutput; } /** Specifies the security profile settings for the virtual machine or virtual machine scale set. */ export interface SecurityProfileOutput { /** This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself. */ encryptionAtHost: boolean; - /** - * Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. - * - * Possible values: trustedLaunch - */ - securityType: string; + /** Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. */ + securityType: SecurityTypesOutput; /** Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Specifies the security settings like secure boot and vTPM used while creating the virtual machine. */ uefiSettings: UefiSettingsOutput; } @@ -340,18 +281,14 @@ export interface ServiceArtifactReferenceOutput { /** The network configuration for a Pool. */ export interface NetworkConfigurationOutput { - /** The ARM resource identifier of the virtual network subnet which the Compute Nodes of the Pool will join. This is of the form /subscriptions/{subscription}/resourceGroups/{group}/providers/{provider}/virtualNetworks/{network}/subnets/{subnet}. The virtual network must be in the same region and subscription as the Azure Batch Account. The specified subnet should have enough free IP addresses to accommodate the number of Compute Nodes in the Pool. If the subnet doesn't have enough free IP addresses, the Pool will partially allocate Nodes and a resize error will occur. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule Tasks on the Nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the Nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the Compute Nodes to unusable. For Pools created with virtualMachineConfiguration only ARM virtual networks ('Microsoft.Network/virtualNetworks') are supported, but for Pools created with cloudServiceConfiguration both ARM and classic virtual networks are supported. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. For Pools created with a virtual machine configuration, enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. For Pools created with a cloud service configuration, enable ports 10100, 20100, and 30100. Also enable outbound connections to Azure Storage on port 443. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. */ + /** The ARM resource identifier of the virtual network subnet which the Compute Nodes of the Pool will join. This is of the form /subscriptions/{subscription}/resourceGroups/{group}/providers/{provider}/virtualNetworks/{network}/subnets/{subnet}. The virtual network must be in the same region and subscription as the Azure Batch Account. The specified subnet should have enough free IP addresses to accommodate the number of Compute Nodes in the Pool. If the subnet doesn't have enough free IP addresses, the Pool will partially allocate Nodes and a resize error will occur. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule Tasks on the Nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the Nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the Compute Nodes to unusable. For Pools created with virtualMachineConfiguration only ARM virtual networks ('Microsoft.Network/virtualNetworks') are supported. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. For Pools created with a virtual machine configuration, enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. Also enable outbound connections to Azure Storage on port 443. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. */ subnetId?: string; - /** - * The scope of dynamic vnet assignment. - * - * Possible values: none, job - */ - dynamicVNetAssignmentScope?: string; + /** The scope of dynamic vnet assignment. */ + dynamicVNetAssignmentScope?: DynamicVNetAssignmentScopeOutput; /** The configuration for endpoints on Compute Nodes in the Batch Pool. Pool endpoint configuration is only supported on Pools with the virtualMachineConfiguration property. */ endpointConfiguration?: BatchPoolEndpointConfigurationOutput; /** The Public IPAddress configuration for Compute Nodes in the Batch Pool. Public IP configuration property is only supported on Pools with the virtualMachineConfiguration property. */ - publicIPAddressConfiguration?: PublicIPAddressConfigurationOutput; + publicIPAddressConfiguration?: PublicIpAddressConfigurationOutput; /** Whether this pool should enable accelerated networking. Accelerated networking enables single root I/O virtualization (SR-IOV) to a VM, which may lead to improved networking performance. For more details, see: https://learn.microsoft.com/azure/virtual-network/accelerated-networking-overview. */ enableAcceleratedNetworking?: boolean; } @@ -359,22 +296,18 @@ export interface NetworkConfigurationOutput { /** The endpoint configuration for a Pool. */ export interface BatchPoolEndpointConfigurationOutput { /** A list of inbound NAT Pools that can be used to address specific ports on an individual Compute Node externally. The maximum number of inbound NAT Pools per Batch Pool is 5. If the maximum number of inbound NAT Pools is exceeded the request fails with HTTP status code 400. This cannot be specified if the IPAddressProvisioningType is NoPublicIPAddresses. */ - inboundNATPools: Array; + inboundNATPools: Array; } /** * A inbound NAT Pool that can be used to address specific ports on Compute Nodes * in a Batch Pool externally. */ -export interface InboundNATPoolOutput { +export interface InboundNatPoolOutput { /** The name of the endpoint. The name must be unique within a Batch Pool, can contain letters, numbers, underscores, periods, and hyphens. Names must start with a letter or number, must end with a letter, number, or underscore, and cannot exceed 77 characters. If any invalid values are provided the request fails with HTTP status code 400. */ name: string; - /** - * The protocol of the endpoint. - * - * Possible values: tcp, udp - */ - protocol: string; + /** The protocol of the endpoint. */ + protocol: InboundEndpointProtocolOutput; /** The port number on the Compute Node. This must be unique within a Batch Pool. Acceptable values are between 1 and 65535 except for 22, 3389, 29876 and 29877 as these are reserved. If any reserved values are provided the request fails with HTTP status code 400. */ backendPort: number; /** The first port number in the range of external ports that will be used to provide inbound access to the backendPort on individual Compute Nodes. Acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved. All ranges within a Pool must be distinct and cannot overlap. Each range must contain at least 40 ports. If any reserved or overlapping values are provided the request fails with HTTP status code 400. */ @@ -389,12 +322,8 @@ export interface InboundNATPoolOutput { export interface NetworkSecurityGroupRuleOutput { /** The priority for this rule. Priorities within a Pool must be unique and are evaluated in order of priority. The lower the number the higher the priority. For example, rules could be specified with order numbers of 150, 250, and 350. The rule with the order number of 150 takes precedence over the rule that has an order of 250. Allowed priorities are 150 to 4096. If any reserved or duplicate values are provided the request fails with HTTP status code 400. */ priority: number; - /** - * The action that should be taken for a specified IP address, subnet range or tag. - * - * Possible values: allow, deny - */ - access: string; + /** The action that should be taken for a specified IP address, subnet range or tag. */ + access: NetworkSecurityGroupRuleAccessOutput; /** The source address prefix or tag to match for the rule. Valid values are a single IP address (i.e. 10.10.10.10), IP subnet (i.e. 192.168.1.0/24), default tag, or * (for all addresses). If any other values are provided the request fails with HTTP status code 400. */ sourceAddressPrefix: string; /** The source port ranges to match for the rule. Valid values are '*' (for all ports 0 - 65535), a specific port (i.e. 22), or a port range (i.e. 100-200). The ports must be in the range of 0 to 65535. Each entry in this collection must not overlap any other entry (either a range or an individual port). If any other values are provided the request fails with HTTP status code 400. The default value is '*'. */ @@ -402,13 +331,9 @@ export interface NetworkSecurityGroupRuleOutput { } /** The public IP Address configuration of the networking configuration of a Pool. */ -export interface PublicIPAddressConfigurationOutput { - /** - * The provisioning type for Public IP Addresses for the Pool. The default value is BatchManaged. - * - * Possible values: batchmanaged, usermanaged, nopublicipaddresses - */ - provision?: string; +export interface PublicIpAddressConfigurationOutput { + /** The provisioning type for Public IP Addresses for the Pool. The default value is BatchManaged. */ + provision?: IpAddressProvisioningTypeOutput; /** The list of public IPs which the Batch service will use when provisioning Compute Nodes. The number of IPs specified here limits the maximum size of the Pool - 100 dedicated nodes or 100 Spot/Low-priority nodes can be allocated for each public IP. For example, a pool needing 250 dedicated VMs would need at least 3 public IPs specified. Each element of this collection is of the form: /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}. */ ipAddressIds?: string[]; } @@ -452,13 +377,9 @@ export interface BatchTaskContainerSettingsOutput { /** The Image to use to create the container in which the Task will run. This is the full Image reference, as would be specified to "docker pull". If no tag is provided as part of the Image name, the tag ":latest" is used as a default. */ imageName: string; /** The private registry which contains the container Image. This setting can be omitted if was already provided at Pool creation. */ - registry?: ContainerRegistryOutput; - /** - * The location of the container Task working directory. The default is 'taskWorkingDirectory'. - * - * Possible values: taskWorkingDirectory, containerImageDefault - */ - workingDirectory?: string; + registry?: ContainerRegistryReferenceOutput; + /** The location of the container Task working directory. The default is 'taskWorkingDirectory'. */ + workingDirectory?: ContainerWorkingDirectoryOutput; } /** A single file or multiple files to be downloaded to a Compute Node. */ @@ -497,36 +418,10 @@ export interface UserIdentityOutput { /** Specifies the options for the auto user that runs an Azure Batch Task. */ export interface AutoUserSpecificationOutput { - /** - * The scope for the auto user. The default value is pool. If the pool is running Windows a value of Task should be specified if stricter isolation between tasks is required. For example, if the task mutates the registry in a way which could impact other tasks, or if certificates have been specified on the pool which should not be accessible by normal tasks but should be accessible by StartTasks. - * - * Possible values: task, pool - */ - scope?: string; - /** - * The elevation level of the auto user. The default value is nonAdmin. - * - * Possible values: nonadmin, admin - */ - elevationLevel?: string; -} - -/** A reference to a Certificate to be installed on Compute Nodes in a Pool. Warning: This object is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. */ -export interface BatchCertificateReferenceOutput { - /** The thumbprint of the Certificate. */ - thumbprint: string; - /** The algorithm with which the thumbprint is associated. This must be sha1. */ - thumbprintAlgorithm: string; - /** - * The location of the Certificate store on the Compute Node into which to install the Certificate. The default value is currentuser. This property is applicable only for Pools configured with Windows Compute Nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows Image reference). For Linux Compute Nodes, the Certificates are stored in a directory inside the Task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the Task to query for this location. For Certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and Certificates are placed in that directory. - * - * Possible values: currentuser, localmachine - */ - storeLocation?: string; - /** The name of the Certificate store on the Compute Node into which to install the Certificate. This property is applicable only for Pools configured with Windows Compute Nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows Image reference). Common store names include: My, Root, CA, Trust, Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but any custom store name can also be used. The default value is My. */ - storeName?: string; - /** Which user Accounts on the Compute Node should have access to the private data of the Certificate. You can specify more than one visibility in this collection. The default is all Accounts. */ - visibility?: string[]; + /** The scope for the auto user. The default value is pool. If the pool is running Windows, a value of Task should be specified if stricter isolation between tasks is required, such as if the task mutates the registry in a way which could impact other tasks. */ + scope?: AutoUserScopeOutput; + /** The elevation level of the auto user. The default value is nonAdmin. */ + elevationLevel?: ElevationLevelOutput; } /** A reference to an Package to be deployed to Compute Nodes. */ @@ -539,12 +434,8 @@ export interface BatchApplicationPackageReferenceOutput { /** Specifies how Tasks should be distributed across Compute Nodes. */ export interface BatchTaskSchedulingPolicyOutput { - /** - * How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread. - * - * Possible values: spread, pack - */ - nodeFillType: string; + /** How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread. */ + nodeFillType: BatchNodeFillTypeOutput; } /** @@ -556,12 +447,8 @@ export interface UserAccountOutput { name: string; /** The password for the user Account. */ password: string; - /** - * The elevation level of the user Account. The default value is nonAdmin. - * - * Possible values: nonadmin, admin - */ - elevationLevel?: string; + /** The elevation level of the user Account. The default value is nonAdmin. */ + elevationLevel?: ElevationLevelOutput; /** The Linux-specific user configuration for the user Account. This property is ignored if specified on a Windows Pool. If not specified, the user is created with the default options. */ linuxUserConfiguration?: LinuxUserConfigurationOutput; /** The Windows-specific user configuration for the user Account. This property can only be specified if the user is on a Windows Pool. If not specified and on a Windows Pool, the user is created with the default options. */ @@ -580,12 +467,8 @@ export interface LinuxUserConfigurationOutput { /** Properties used to create a user Account on a Windows Compute Node. */ export interface WindowsUserConfigurationOutput { - /** - * The login mode for the user. The default value for VirtualMachineConfiguration Pools is 'batch' and for CloudServiceConfiguration Pools is 'interactive'. - * - * Possible values: batch, interactive - */ - loginMode?: string; + /** The login mode for the user. The default value for VirtualMachineConfiguration Pools is 'batch'. */ + loginMode?: LoginModeOutput; } /** @@ -604,7 +487,7 @@ export interface MountConfigurationOutput { /** The Azure Storage Container to mount using blob FUSE on each node. This property is mutually exclusive with all other properties. */ azureBlobFileSystemConfiguration?: AzureBlobFileSystemConfigurationOutput; /** The NFS file system to mount on each node. This property is mutually exclusive with all other properties. */ - nfsMountConfiguration?: NFSMountConfigurationOutput; + nfsMountConfiguration?: NfsMountConfigurationOutput; /** The CIFS/SMB file system to mount on each node. This property is mutually exclusive with all other properties. */ cifsMountConfiguration?: CifsMountConfigurationOutput; /** The Azure File Share to mount on each node. This property is mutually exclusive with all other properties. */ @@ -630,7 +513,7 @@ export interface AzureBlobFileSystemConfigurationOutput { } /** Information used to connect to an NFS file system. */ -export interface NFSMountConfigurationOutput { +export interface NfsMountConfigurationOutput { /** The URI of the file system to mount. */ source: string; /** The relative path on the compute node where the file system will be mounted. All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable. */ @@ -667,7 +550,45 @@ export interface AzureFileShareConfigurationOutput { mountOptions?: string; } -export interface BatchPoolListResultListOutput {} +/** Describes an upgrade policy - automatic, manual, or rolling. */ +export interface UpgradePolicyOutput { + /** Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

**Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

**Automatic** - All virtual machines in the scale set are automatically updated at the same time.

**Rolling** - Scale set performs updates in batches with an optional pause time in between. */ + mode: UpgradeModeOutput; + /** Configuration parameters used for performing automatic OS Upgrade. The configuration parameters used for performing automatic OS upgrade. */ + automaticOSUpgradePolicy?: AutomaticOsUpgradePolicyOutput; + /** The configuration parameters used while performing a rolling upgrade. This property is only supported on Pools with the virtualMachineConfiguration property. */ + rollingUpgradePolicy?: RollingUpgradePolicyOutput; +} + +/** The configuration parameters used for performing automatic OS upgrade. */ +export interface AutomaticOsUpgradePolicyOutput { + /** Whether OS image rollback feature should be disabled. */ + disableAutomaticRollback?: boolean; + /** Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available.

If this is set to true for Windows based pools, [WindowsConfiguration.enableAutomaticUpdates](https://learn.microsoft.com/en-us/rest/api/batchservice/pool/add?tabs=HTTP#windowsconfiguration) cannot be set to true. */ + enableAutomaticOSUpgrade?: boolean; + /** Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS. */ + useRollingUpgradePolicy?: boolean; + /** Defer OS upgrades on the TVMs if they are running tasks. */ + osRollingUpgradeDeferral?: boolean; +} + +/** The configuration parameters used while performing a rolling upgrade. */ +export interface RollingUpgradePolicyOutput { + /** Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size. This field is able to be set to true or false only when using NodePlacementConfiguration as Zonal. */ + enableCrossZoneUpgrade?: boolean; + /** The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent. */ + maxBatchInstancePercent?: number; + /** The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent. */ + maxUnhealthyInstancePercent?: number; + /** The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The value of this field should be between 0 and 100, inclusive. */ + maxUnhealthyUpgradedInstancePercent?: number; + /** The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format.. */ + pauseTimeBetweenBatches?: string; + /** Upgrade all unhealthy instances in a scale set before any healthy instances. */ + prioritizeUnhealthyInstances?: boolean; + /** Rollback failed instances to previous model if the Rolling Upgrade policy is violated. */ + rollbackFailedInstancesOnPolicyBreach?: boolean; +} /** The result of listing the Pools in an Account. */ export interface BatchPoolListResultOutput { @@ -691,27 +612,17 @@ export interface BatchPoolOutput { readonly lastModified?: string; /** The creation time of the Pool. */ readonly creationTime?: string; - /** - * The current state of the Pool. - * - * Possible values: active, deleting - */ - readonly state?: string; + /** The current state of the Pool. */ + readonly state?: BatchPoolStateOutput; /** The time at which the Pool entered its current state. */ readonly stateTransitionTime?: string; - /** - * Whether the Pool is resizing. - * - * Possible values: steady, resizing, stopping - */ - readonly allocationState?: string; + /** Whether the Pool is resizing. */ + readonly allocationState?: AllocationStateOutput; /** The time at which the Pool entered its current allocation state. */ readonly allocationStateTransitionTime?: string; /** The size of virtual machines in the Pool. All virtual machines in a Pool are the same size. For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). */ readonly vmSize?: string; - /** The cloud service configuration for the Pool. This property and virtualMachineConfiguration are mutually exclusive and one of the properties must be specified. This property cannot be specified if the Batch Account was created with its poolAllocationMode property set to 'UserSubscription'. */ - readonly cloudServiceConfiguration?: CloudServiceConfigurationOutput; - /** The virtual machine configuration for the Pool. This property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified. */ + /** The virtual machine configuration for the Pool. This property must be specified. */ readonly virtualMachineConfiguration?: VirtualMachineConfigurationOutput; /** The timeout for allocation of Compute Nodes to the Pool. This is the timeout for the most recent resize operation. (The initial sizing when the Pool is created counts as a resize.) The default value is 15 minutes. */ readonly resizeTimeout?: string; @@ -741,17 +652,8 @@ export interface BatchPoolOutput { readonly networkConfiguration?: NetworkConfigurationOutput; /** A Task specified to run on each Compute Node as it joins the Pool. */ startTask?: BatchStartTaskOutput; - /** - * For Windows Nodes, the Batch service installs the Certificates to the specified Certificate store and location. - * For Linux Compute Nodes, the Certificates are stored in a directory inside the Task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the Task to query for this location. - * For Certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and Certificates are placed in that directory. - * Warning: This property is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - */ - readonly certificateReferences?: Array; /** The list of Packages to be installed on each Compute Node in the Pool. Changes to Package references affect all new Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. There is a maximum of 10 Package references on any given Pool. */ readonly applicationPackageReferences?: Array; - /** The list of application licenses the Batch service will make available on each Compute Node in the Pool. The list of application licenses must be a subset of available Batch service application licenses. If a license is requested which is not supported, Pool creation will fail. */ - readonly applicationLicenses?: string[]; /** The number of task slots that can be used to run concurrent tasks on a single compute node in the pool. The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256. */ readonly taskSlotsPerNode?: number; /** How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread. */ @@ -766,18 +668,12 @@ export interface BatchPoolOutput { readonly mountConfiguration?: Array; /** The identity of the Batch pool, if configured. The list of user identities associated with the Batch pool. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ readonly identity?: BatchPoolIdentityOutput; - /** - * The desired node communication mode for the pool. If omitted, the default value is Default. - * - * Possible values: default, classic, simplified - */ - targetNodeCommunicationMode?: string; - /** - * The current state of the pool communication mode. - * - * Possible values: default, classic, simplified - */ - readonly currentNodeCommunicationMode?: string; + /** The desired node communication mode for the pool. If omitted, the default value is Default. */ + targetNodeCommunicationMode?: BatchNodeCommunicationModeOutput; + /** The current state of the pool communication mode. */ + readonly currentNodeCommunicationMode?: BatchNodeCommunicationModeOutput; + /** The upgrade policy for the Pool. Describes an upgrade policy - automatic, manual, or rolling. */ + upgradePolicy?: UpgradePolicyOutput; } /** An error that occurred when resizing a Pool. */ @@ -874,12 +770,8 @@ export interface BatchPoolResourceStatisticsOutput { /** The identity of the Batch pool, if configured. */ export interface BatchPoolIdentityOutput { - /** - * The identity of the Batch pool, if configured. The list of user identities associated with the Batch pool. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - * - * Possible values: UserAssigned, None - */ - type: string; + /** The identity of the Batch pool, if configured. The list of user identities associated with the Batch pool. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ + type: BatchPoolIdentityTypeOutput; /** The list of user identities associated with the Batch account. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ userAssignedIdentities?: Array; } @@ -894,18 +786,10 @@ export interface UserAssignedIdentityOutput { readonly principalId?: string; } -/** Parameters for evaluating an automatic scaling formula on an Azure Batch Pool. */ -export interface BatchPoolEvaluateAutoScaleParametersOutput { - /** The formula for the desired number of Compute Nodes in the Pool. The formula is validated and its results calculated, but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling on a Pool'. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling). */ - autoScaleFormula: string; -} - -export interface BatchAccountListSupportedImagesResultListOutput {} - /** The result of listing the supported Virtual Machine Images. */ export interface BatchAccountListSupportedImagesResultOutput { /** The list of supported Virtual Machine Images. */ - value?: Array; + value?: Array; /** The URL to get the next set of results. */ "odata.nextLink"?: string; } @@ -914,31 +798,21 @@ export interface BatchAccountListSupportedImagesResultOutput { * A reference to the Azure Virtual Machines Marketplace Image and additional * information about the Image. */ -export interface ImageInfoOutput { +export interface BatchSupportedImageOutput { /** The ID of the Compute Node agent SKU which the Image supports. */ nodeAgentSKUId: string; /** The reference to the Azure Virtual Machine's Marketplace Image. */ imageReference: ImageReferenceOutput; - /** - * The type of operating system (e.g. Windows or Linux) of the Image. - * - * Possible values: linux, windows - */ - osType: string; + /** The type of operating system (e.g. Windows or Linux) of the Image. */ + osType: OSTypeOutput; /** The capabilities or features which the Image supports. Not every capability of the Image is listed. Capabilities in this list are considered of special interest and are generally related to integration with other features in the Azure Batch service. */ capabilities?: string[]; /** The time when the Azure Batch service will stop accepting create Pool requests for the Image. */ batchSupportEndOfLife?: string; - /** - * Whether the Azure Batch service actively verifies that the Image is compatible with the associated Compute Node agent SKU. - * - * Possible values: verified, unverified - */ - verificationType: string; + /** Whether the Azure Batch service actively verifies that the Image is compatible with the associated Compute Node agent SKU. */ + verificationType: ImageVerificationTypeOutput; } -export interface BatchPoolNodeCountsListResultListOutput {} - /** The result of listing the Compute Node counts in the Account. */ export interface BatchPoolNodeCountsListResultOutput { /** A list of Compute Node counts by Pool. */ @@ -987,6 +861,8 @@ export interface BatchNodeCountsOutput { waitingForStartTask: number; /** The total number of Compute Nodes. */ total: number; + /** The number of Compute Nodes in the upgradingOS state. */ + upgradingOS: number; } /** An Azure Batch Job. */ @@ -1005,20 +881,12 @@ export interface BatchJobOutput { readonly lastModified?: string; /** The creation time of the Job. */ readonly creationTime?: string; - /** - * The current state of the Job. - * - * Possible values: active, disabling, disabled, enabling, terminating, completed, deleting - */ - readonly state?: string; + /** The current state of the Job. */ + readonly state?: BatchJobStateOutput; /** The time at which the Job entered its current state. */ readonly stateTransitionTime?: string; - /** - * The previous state of the Job. This property is not set if the Job is in its initial Active state. - * - * Possible values: active, disabling, disabled, enabling, terminating, completed, deleting - */ - readonly previousState?: string; + /** The previous state of the Job. This property is not set if the Job is in its initial Active state. */ + readonly previousState?: BatchJobStateOutput; /** The time at which the Job entered its previous state. This property is not set if the Job is in its initial Active state. */ readonly previousStateTransitionTime?: string; /** The priority of the Job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0. */ @@ -1039,18 +907,10 @@ export interface BatchJobOutput { readonly commonEnvironmentSettings?: Array; /** The Pool settings associated with the Job. */ poolInfo: BatchPoolInfoOutput; - /** - * The action the Batch service should take when all Tasks in the Job are in the completed state. The default is noaction. - * - * Possible values: noaction, terminatejob - */ - onAllTasksComplete?: string; - /** - * The action the Batch service should take when any Task in the Job fails. A Task is considered to have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download error. The default is noaction. - * - * Possible values: noaction, performexitoptionsjobaction - */ - readonly onTaskFailure?: string; + /** The action the Batch service should take when all Tasks in the Job are in the completed state. The default is noaction. */ + onAllTasksComplete?: OnAllBatchTasksCompleteOutput; + /** The action the Batch service should take when any Task in the Job fails. A Task is considered to have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download error. The default is noaction. */ + readonly onTaskFailure?: OnBatchTaskFailureOutput; /** The network configuration for the Job. */ readonly networkConfiguration?: BatchJobNetworkConfigurationOutput; /** A list of name-value pairs associated with the Job as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code. */ @@ -1143,7 +1003,7 @@ export interface OutputFileOutput { /** The destination for the output file(s). */ destination: OutputFileDestinationOutput; /** Additional options for the upload operation, including under what conditions to perform the upload. */ - uploadOptions: OutputFileUploadOptionsOutput; + uploadOptions: OutputFileUploadConfigOutput; } /** The destination to which a file should be uploaded. */ @@ -1176,13 +1036,9 @@ export interface HttpHeaderOutput { * Options for an output file upload operation, including under what conditions * to perform the upload. */ -export interface OutputFileUploadOptionsOutput { - /** - * The conditions under which the Task output file or set of files should be uploaded. The default is taskcompletion. - * - * Possible values: tasksuccess, taskfailure, taskcompletion - */ - uploadCondition: string; +export interface OutputFileUploadConfigOutput { + /** The conditions under which the Task output file or set of files should be uploaded. The default is taskcompletion. */ + uploadCondition: OutputFileUploadConditionOutput; } /** Execution constraints to apply to a Task. */ @@ -1201,7 +1057,7 @@ export interface BatchTaskConstraintsOutput { */ export interface AuthenticationTokenSettingsOutput { /** The Batch resources to which the token grants access. The authentication token grants access to a limited set of Batch service operations. Currently the only supported value for the access property is 'job', which grants access to all operations related to the Job which contains the Task. */ - access?: string[]; + access?: AccessScopeOutput[]; } /** @@ -1305,12 +1161,8 @@ export interface BatchPoolInfoOutput { export interface BatchAutoPoolSpecificationOutput { /** A prefix to be added to the unique identifier when a Pool is automatically created. The Batch service assigns each auto Pool a unique identifier on creation. To distinguish between Pools created for different purposes, you can specify this element to add a prefix to the ID that is assigned. The prefix can be up to 20 characters long. */ autoPoolIdPrefix?: string; - /** - * The minimum lifetime of created auto Pools, and how multiple Jobs on a schedule are assigned to Pools. - * - * Possible values: jobschedule, job - */ - poolLifetimeOption: string; + /** The minimum lifetime of created auto Pools, and how multiple Jobs on a schedule are assigned to Pools. */ + poolLifetimeOption: BatchPoolLifetimeOptionOutput; /** Whether to keep an auto Pool alive after its lifetime expires. If false, the Batch service deletes the Pool once its lifetime (as determined by the poolLifetimeOption setting) expires; that is, when the Job or Job Schedule completes. If true, the Batch service does not delete the Pool automatically. It is up to the user to delete auto Pools created with this option. */ keepAlive?: boolean; /** The Pool specification for the auto Pool. */ @@ -1323,9 +1175,7 @@ export interface BatchPoolSpecificationOutput { displayName?: string; /** The size of the virtual machines in the Pool. All virtual machines in a Pool are the same size. For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). */ vmSize: string; - /** The cloud service configuration for the Pool. This property must be specified if the Pool needs to be created with Azure PaaS VMs. This property and virtualMachineConfiguration are mutually exclusive and one of the properties must be specified. If neither is specified then the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). This property cannot be specified if the Batch Account was created with its poolAllocationMode property set to 'UserSubscription'. */ - cloudServiceConfiguration?: CloudServiceConfigurationOutput; - /** The virtual machine configuration for the Pool. This property must be specified if the Pool needs to be created with Azure IaaS VMs. This property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified. If neither is specified then the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). */ + /** The virtual machine configuration for the Pool. This property must be specified if the Pool needs to be created with Azure IaaS VMs. If it is not specified then the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). */ virtualMachineConfiguration?: VirtualMachineConfigurationOutput; /** The number of task slots that can be used to run concurrent tasks on a single compute node in the pool. The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256. */ taskSlotsPerNode?: number; @@ -1351,28 +1201,18 @@ export interface BatchPoolSpecificationOutput { networkConfiguration?: NetworkConfigurationOutput; /** A Task to run on each Compute Node as it joins the Pool. The Task runs when the Compute Node is added to the Pool or when the Compute Node is restarted. */ startTask?: BatchStartTaskOutput; - /** - * For Windows Nodes, the Batch service installs the Certificates to the specified Certificate store and location. For Linux Compute Nodes, the Certificates are stored in a directory inside the Task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the Task to query for this location. For Certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and Certificates are placed in that directory. - * Warning: This property is deprecated and will be removed after February, 2024. - * Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - */ - certificateReferences?: Array; /** The list of Packages to be installed on each Compute Node in the Pool. When creating a pool, the package's application ID must be fully qualified (/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}). Changes to Package references affect all new Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. There is a maximum of 10 Package references on any given Pool. */ applicationPackageReferences?: Array; - /** The list of application licenses the Batch service will make available on each Compute Node in the Pool. The list of application licenses must be a subset of available Batch service application licenses. If a license is requested which is not supported, Pool creation will fail. The permitted licenses available on the Pool are 'maya', 'vray', '3dsmax', 'arnold'. An additional charge applies for each application license added to the Pool. */ - applicationLicenses?: string[]; /** The list of user Accounts to be created on each Compute Node in the Pool. */ userAccounts?: Array; /** A list of name-value pairs associated with the Pool as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code. */ metadata?: Array; /** A list of file systems to mount on each node in the pool. This supports Azure Files, NFS, CIFS/SMB, and Blobfuse. */ mountConfiguration?: Array; - /** - * The desired node communication mode for the pool. If omitted, the default value is Default. - * - * Possible values: default, classic, simplified - */ - targetNodeCommunicationMode?: string; + /** The desired node communication mode for the pool. If omitted, the default value is Default. */ + targetNodeCommunicationMode?: BatchNodeCommunicationModeOutput; + /** The upgrade policy for the Pool. Describes an upgrade policy - automatic, manual, or rolling. */ + upgradePolicy?: UpgradePolicyOutput; } /** The network configuration for the Job. */ @@ -1397,12 +1237,8 @@ export interface BatchJobExecutionInfoOutput { /** An error encountered by the Batch service when scheduling a Job. */ export interface BatchJobSchedulingErrorOutput { - /** - * The category of the Job scheduling error. - * - * Possible values: usererror, servererror - */ - category: string; + /** The category of the Job scheduling error. */ + category: ErrorCategoryOutput; /** An identifier for the Job scheduling error. Codes are invariant and are intended to be consumed programmatically. */ code?: string; /** A message describing the Job scheduling error, intended to be suitable for display in a user interface. */ @@ -1443,8 +1279,6 @@ export interface BatchJobStatisticsOutput { waitTime: string; } -export interface BatchJobListResultListOutput {} - /** The result of listing the Jobs in an Account. */ export interface BatchJobListResultOutput { /** The list of Jobs. */ @@ -1453,8 +1287,6 @@ export interface BatchJobListResultOutput { "odata.nextLink"?: string; } -export interface BatchJobPreparationAndReleaseTaskStatusListResultListOutput {} - /** * The result of listing the status of the Job Preparation and Job Release Tasks * for a Job. @@ -1489,12 +1321,8 @@ export interface BatchJobPreparationTaskExecutionInfoOutput { startTime: string; /** The time at which the Job Preparation Task completed. This property is set only if the Task is in the Completed state. */ endTime?: string; - /** - * The current state of the Job Preparation Task on the Compute Node. - * - * Possible values: running, completed - */ - state: string; + /** The current state of the Job Preparation Task on the Compute Node. */ + state: BatchJobPreparationTaskStateOutput; /** The root directory of the Job Preparation Task on the Compute Node. You can use this path to retrieve files created by the Task, such as log files. */ taskRootDirectory?: string; /** The URL to the root directory of the Job Preparation Task on the Compute Node. */ @@ -1509,12 +1337,8 @@ export interface BatchJobPreparationTaskExecutionInfoOutput { retryCount: number; /** The most recent time at which a retry of the Job Preparation Task started running. This property is set only if the Task was retried (i.e. retryCount is nonzero). If present, this is typically the same as startTime, but may be different if the Task has been restarted for reasons other than retry; for example, if the Compute Node was rebooted during a retry, then the startTime is updated but the lastRetryTime is not. */ lastRetryTime?: string; - /** - * The result of the Task execution. If the value is 'failed', then the details of the failure can be found in the failureInfo property. - * - * Possible values: success, failure - */ - result?: string; + /** The result of the Task execution. If the value is 'failed', then the details of the failure can be found in the failureInfo property. */ + result?: BatchTaskExecutionResultOutput; } /** Contains information about the container which a Task is executing. */ @@ -1529,12 +1353,8 @@ export interface BatchTaskContainerExecutionInfoOutput { /** Information about a Task failure. */ export interface BatchTaskFailureInfoOutput { - /** - * The category of the Task error. - * - * Possible values: usererror, servererror - */ - category: string; + /** The category of the Task error. */ + category: ErrorCategoryOutput; /** An identifier for the Task error. Codes are invariant and are intended to be consumed programmatically. */ code?: string; /** A message describing the Task error, intended to be suitable for display in a user interface. */ @@ -1552,12 +1372,8 @@ export interface BatchJobReleaseTaskExecutionInfoOutput { startTime: string; /** The time at which the Job Release Task completed. This property is set only if the Task is in the Completed state. */ endTime?: string; - /** - * The current state of the Job Release Task on the Compute Node. - * - * Possible values: running, completed - */ - state: string; + /** The current state of the Job Release Task on the Compute Node. */ + state: BatchJobReleaseTaskStateOutput; /** The root directory of the Job Release Task on the Compute Node. You can use this path to retrieve files created by the Task, such as log files. */ taskRootDirectory?: string; /** The URL to the root directory of the Job Release Task on the Compute Node. */ @@ -1568,12 +1384,8 @@ export interface BatchJobReleaseTaskExecutionInfoOutput { containerInfo?: BatchTaskContainerExecutionInfoOutput; /** Information describing the Task failure, if any. This property is set only if the Task is in the completed state and encountered a failure. */ failureInfo?: BatchTaskFailureInfoOutput; - /** - * The result of the Task execution. If the value is 'failed', then the details of the failure can be found in the failureInfo property. - * - * Possible values: success, failure - */ - result?: string; + /** The result of the Task execution. If the value is 'failed', then the details of the failure can be found in the failureInfo property. */ + result?: BatchTaskExecutionResultOutput; } /** The Task and TaskSlot counts for a Job. */ @@ -1612,69 +1424,6 @@ export interface BatchTaskSlotCountsOutput { failed: number; } -/** - * A Certificate that can be installed on Compute Nodes and can be used to - * authenticate operations on the machine. - */ -export interface BatchCertificateOutput { - /** The X.509 thumbprint of the Certificate. This is a sequence of up to 40 hex digits (it may include spaces but these are removed). */ - thumbprint: string; - /** The algorithm used to derive the thumbprint. This must be sha1. */ - thumbprintAlgorithm: string; - /** The URL of the Certificate. */ - readonly url?: string; - /** - * The state of the Certificate. - * - * Possible values: active, deleting, deletefailed - */ - readonly state?: string; - /** The time at which the Certificate entered its current state. */ - readonly stateTransitionTime?: string; - /** - * The previous state of the Certificate. This property is not set if the Certificate is in its initial active state. - * - * Possible values: active, deleting, deletefailed - */ - readonly previousState?: string; - /** The time at which the Certificate entered its previous state. This property is not set if the Certificate is in its initial Active state. */ - readonly previousStateTransitionTime?: string; - /** The public part of the Certificate as a base-64 encoded .cer file. */ - readonly publicData?: string; - /** The error that occurred on the last attempt to delete this Certificate. This property is set only if the Certificate is in the DeleteFailed state. */ - readonly deleteCertificateError?: DeleteBatchCertificateErrorOutput; - /** The base64-encoded contents of the Certificate. The maximum size is 10KB. */ - data: string; - /** - * The format of the Certificate data. - * - * Possible values: pfx, cer - */ - certificateFormat?: string; - /** The password to access the Certificate's private key. This must be omitted if the Certificate format is cer. */ - password?: string; -} - -/** An error encountered by the Batch service when deleting a Certificate. */ -export interface DeleteBatchCertificateErrorOutput { - /** An identifier for the Certificate deletion error. Codes are invariant and are intended to be consumed programmatically. */ - code?: string; - /** A message describing the Certificate deletion error, intended to be suitable for display in a user interface. */ - message?: string; - /** A list of additional error details related to the Certificate deletion error. This list includes details such as the active Pools and Compute Nodes referencing this Certificate. However, if a large number of resources reference the Certificate, the list contains only about the first hundred. */ - values?: Array; -} - -export interface BatchCertificateListResultListOutput {} - -/** The result of listing the Certificates in the Account. */ -export interface BatchCertificateListResultOutput { - /** The list of Certificates. */ - value?: Array; - /** The URL to get the next set of results. */ - "odata.nextLink"?: string; -} - /** * A Job Schedule that allows recurring Jobs by specifying when to run Jobs and a * specification used to create each Job. @@ -1692,24 +1441,16 @@ export interface BatchJobScheduleOutput { readonly lastModified?: string; /** The creation time of the Job Schedule. */ readonly creationTime?: string; - /** - * The current state of the Job Schedule. - * - * Possible values: active, completed, disabled, terminating, deleting - */ - readonly state?: string; + /** The current state of the Job Schedule. */ + readonly state?: BatchJobScheduleStateOutput; /** The time at which the Job Schedule entered the current state. */ readonly stateTransitionTime?: string; - /** - * The previous state of the Job Schedule. This property is not present if the Job Schedule is in its initial active state. - * - * Possible values: active, completed, disabled, terminating, deleting - */ - readonly previousState?: string; + /** The previous state of the Job Schedule. This property is not present if the Job Schedule is in its initial active state. */ + readonly previousState?: BatchJobScheduleStateOutput; /** The time at which the Job Schedule entered its previous state. This property is not present if the Job Schedule is in its initial active state. */ readonly previousStateTransitionTime?: string; /** The schedule according to which Jobs will be created. All times are fixed respective to UTC and are not impacted by daylight saving time. */ - schedule?: ScheduleOutput; + schedule?: BatchJobScheduleConfigurationOutput; /** The details of the Jobs to be created on this schedule. */ jobSpecification: BatchJobSpecificationOutput; /** Information about Jobs that have been and will be run under this schedule. */ @@ -1724,7 +1465,7 @@ export interface BatchJobScheduleOutput { * The schedule according to which Jobs will be created. All times are fixed * respective to UTC and are not impacted by daylight saving time. */ -export interface ScheduleOutput { +export interface BatchJobScheduleConfigurationOutput { /** The earliest time at which any Job may be created under this Job Schedule. If you do not specify a doNotRunUntil time, the schedule becomes ready to create Jobs immediately. */ doNotRunUntil?: string; /** A time after which no Job will be created under this Job Schedule. The schedule will move to the completed state as soon as this deadline is past and there is no active Job under this Job Schedule. If you do not specify a doNotRunAfter time, and you are creating a recurring Job Schedule, the Job Schedule will remain active until you explicitly terminate it. */ @@ -1747,18 +1488,10 @@ export interface BatchJobSpecificationOutput { displayName?: string; /** Whether Tasks in the Job can define dependencies on each other. The default is false. */ usesTaskDependencies?: boolean; - /** - * The action the Batch service should take when all Tasks in a Job created under this schedule are in the completed state. Note that if a Job contains no Tasks, then all Tasks are considered complete. This option is therefore most commonly used with a Job Manager task; if you want to use automatic Job termination without a Job Manager, you should initially set onAllTasksComplete to noaction and update the Job properties to set onAllTasksComplete to terminatejob once you have finished adding Tasks. The default is noaction. - * - * Possible values: noaction, terminatejob - */ - onAllTasksComplete?: string; - /** - * The action the Batch service should take when any Task fails in a Job created under this schedule. A Task is considered to have failed if it have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download error. The default is noaction. - * - * Possible values: noaction, performexitoptionsjobaction - */ - onTaskFailure?: string; + /** The action the Batch service should take when all Tasks in a Job created under this schedule are in the completed state. Note that if a Job contains no Tasks, then all Tasks are considered complete. This option is therefore most commonly used with a Job Manager task; if you want to use automatic Job termination without a Job Manager, you should initially set onAllTasksComplete to noaction and update the Job properties to set onAllTasksComplete to terminatejob once you have finished adding Tasks. The default is noaction. */ + onAllTasksComplete?: OnAllBatchTasksCompleteOutput; + /** The action the Batch service should take when any Task fails in a Job created under this schedule. A Task is considered to have failed if it have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download error. The default is noaction. */ + onTaskFailure?: OnBatchTaskFailureOutput; /** The network configuration for the Job. */ networkConfiguration?: BatchJobNetworkConfigurationOutput; /** The execution constraints for Jobs created under this schedule. */ @@ -1830,8 +1563,6 @@ export interface BatchJobScheduleStatisticsOutput { waitTime: string; } -export interface BatchJobScheduleListResultListOutput {} - /** The result of listing the Job Schedules in an Account. */ export interface BatchJobScheduleListResultOutput { /** The list of Job Schedules. */ @@ -1840,42 +1571,6 @@ export interface BatchJobScheduleListResultOutput { "odata.nextLink"?: string; } -/** Parameters for creating an Azure Batch Task. */ -export interface BatchTaskCreateParametersOutput { - /** A string that uniquely identifies the Task within the Job. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within a Job that differ only by case). */ - id: string; - /** A display name for the Task. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. */ - displayName?: string; - /** How the Batch service should respond when the Task completes. */ - exitConditions?: ExitConditionsOutput; - /** The command line of the Task. For multi-instance Tasks, the command line is executed as the primary Task, after the primary Task and all subtasks have finished executing the coordination command line. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using "cmd /c MyCommand" in Windows or "/bin/sh -c MyCommand" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables). */ - commandLine: string; - /** The settings for the container under which the Task runs. If the Pool that will run this Task has containerConfiguration set, this must be set as well. If the Pool that will run this Task doesn't have containerConfiguration set, this must not be set. When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all Task environment variables are mapped into the container, and the Task command line is executed in the container. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files. */ - containerSettings?: BatchTaskContainerSettingsOutput; - /** A list of files that the Batch service will download to the Compute Node before running the command line. For multi-instance Tasks, the resource files will only be downloaded to the Compute Node on which the primary Task is executed. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers. */ - resourceFiles?: Array; - /** A list of files that the Batch service will upload from the Compute Node after running the command line. For multi-instance Tasks, the files will only be uploaded from the Compute Node on which the primary Task is executed. */ - outputFiles?: Array; - /** A list of environment variable settings for the Task. */ - environmentSettings?: Array; - /** A locality hint that can be used by the Batch service to select a Compute Node on which to start the new Task. */ - affinityInfo?: AffinityInfoOutput; - /** The execution constraints that apply to this Task. If you do not specify constraints, the maxTaskRetryCount is the maxTaskRetryCount specified for the Job, the maxWallClockTime is infinite, and the retentionTime is 7 days. */ - constraints?: BatchTaskConstraintsOutput; - /** The number of scheduling slots that the Task required to run. The default is 1. A Task can only be scheduled to run on a compute node if the node has enough free scheduling slots available. For multi-instance Tasks, this must be 1. */ - requiredSlots?: number; - /** The user identity under which the Task runs. If omitted, the Task runs as a non-administrative user unique to the Task. */ - userIdentity?: UserIdentityOutput; - /** An object that indicates that the Task is a multi-instance Task, and contains information about how to run the multi-instance Task. */ - multiInstanceSettings?: MultiInstanceSettingsOutput; - /** The Tasks that this Task depends on. This Task will not be scheduled until all Tasks that it depends on have completed successfully. If any of those Tasks fail and exhaust their retry counts, this Task will never be scheduled. If the Job does not have usesTaskDependencies set to true, and this element is present, the request fails with error code TaskDependenciesNotSpecifiedOnJob. */ - dependsOn?: BatchTaskDependenciesOutput; - /** A list of Packages that the Batch service will deploy to the Compute Node before running the command line. Application packages are downloaded and deployed to a shared directory, not the Task working directory. Therefore, if a referenced package is already on the Node, and is up to date, then it is not re-downloaded; the existing copy on the Compute Node is used. If a referenced Package cannot be installed, for example because the package has been deleted or because download failed, the Task fails. */ - applicationPackageReferences?: Array; - /** The settings for an authentication token that the Task can use to perform Batch service operations. If this property is set, the Batch service provides the Task with an authentication token which can be used to authenticate Batch service operations without requiring an Account access key. The token is provided via the AZ_BATCH_AUTHENTICATION_TOKEN environment variable. The operations that the Task can carry out using the token depend on the settings. For example, a Task can request Job permissions in order to add other Tasks to the Job, or check the status of the Job or of other Tasks under the Job. */ - authenticationTokenSettings?: AuthenticationTokenSettingsOutput; -} - /** Specifies how the Batch service should respond when the Task completes. */ export interface ExitConditionsOutput { /** A list of individual Task exit codes and how the Batch service should respond to them. */ @@ -1903,18 +1598,10 @@ export interface ExitCodeMappingOutput { /** Specifies how the Batch service responds to a particular exit condition. */ export interface ExitOptionsOutput { - /** - * An action to take on the Job containing the Task, if the Task completes with the given exit condition and the Job's onTaskFailed property is 'performExitOptionsJobAction'. The default is none for exit code 0 and terminate for all other exit conditions. If the Job's onTaskFailed property is noaction, then specifying this property returns an error and the add Task request fails with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). - * - * Possible values: none, disable, terminate - */ - jobAction?: string; - /** - * An action that the Batch service performs on Tasks that depend on this Task. Possible values are 'satisfy' (allowing dependent tasks to progress) and 'block' (dependent tasks continue to wait). Batch does not yet support cancellation of dependent tasks. - * - * Possible values: satisfy, block - */ - dependencyAction?: string; + /** An action to take on the Job containing the Task, if the Task completes with the given exit condition and the Job's onTaskFailed property is 'performExitOptionsJobAction'. The default is none for exit code 0 and terminate for all other exit conditions. If the Job's onTaskFailed property is noaction, then specifying this property returns an error and the add Task request fails with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). */ + jobAction?: BatchJobActionOutput; + /** An action that the Batch service performs on Tasks that depend on this Task. Possible values are 'satisfy' (allowing dependent tasks to progress) and 'block' (dependent tasks continue to wait). Batch does not yet support cancellation of dependent tasks. */ + dependencyAction?: DependencyActionOutput; } /** @@ -1977,8 +1664,6 @@ export interface BatchTaskIdRangeOutput { end: number; } -export interface BatchTaskListResultListOutput {} - /** The result of listing the Tasks in a Job. */ export interface BatchTaskListResultOutput { /** The list of Tasks. */ @@ -2013,20 +1698,12 @@ export interface BatchTaskOutput { readonly creationTime?: string; /** How the Batch service should respond when the Task completes. */ readonly exitConditions?: ExitConditionsOutput; - /** - * The current state of the Task. - * - * Possible values: active, preparing, running, completed - */ - readonly state?: string; + /** The current state of the Task. */ + readonly state?: BatchTaskStateOutput; /** The time at which the Task entered its current state. */ readonly stateTransitionTime?: string; - /** - * The previous state of the Task. This property is not set if the Task is in its initial Active state. - * - * Possible values: active, preparing, running, completed - */ - readonly previousState?: string; + /** The previous state of the Task. This property is not set if the Task is in its initial Active state. */ + readonly previousState?: BatchTaskStateOutput; /** The time at which the Task entered its previous state. This property is not set if the Task is in its initial Active state. */ readonly previousStateTransitionTime?: string; /** The command line of the Task. For multi-instance Tasks, the command line is executed as the primary Task, after the primary Task and all subtasks have finished executing the coordination command line. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using "cmd /c MyCommand" in Windows or "/bin/sh -c MyCommand" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables). */ @@ -2083,12 +1760,8 @@ export interface BatchTaskExecutionInfoOutput { requeueCount: number; /** The most recent time at which the Task has been requeued by the Batch service as the result of a user request. This property is set only if the requeueCount is nonzero. */ lastRequeueTime?: string; - /** - * The result of the Task execution. If the value is 'failed', then the details of the failure can be found in the failureInfo property. - * - * Possible values: success, failure - */ - result?: string; + /** The result of the Task execution. If the value is 'failed', then the details of the failure can be found in the failureInfo property. */ + result?: BatchTaskExecutionResultOutput; } /** Information about the Compute Node on which a Task ran. */ @@ -2133,12 +1806,6 @@ export interface BatchTaskStatisticsOutput { waitTime: string; } -/** A collection of Azure Batch Tasks to add. */ -export interface BatchTaskCollectionOutput { - /** The collection of Tasks to add. The maximum count of Tasks is 100. The total serialized size of this collection must be less than 1MB. If it is greater than 1MB (for example if each Task has 100's of resource files or environment variables), the request will fail with code 'RequestBodyTooLarge' and should be retried again with fewer Tasks. */ - value: Array; -} - /** The result of adding a collection of Tasks to a Job. */ export interface BatchTaskAddCollectionResultOutput { /** The results of the add Task collection operation. */ @@ -2147,12 +1814,8 @@ export interface BatchTaskAddCollectionResultOutput { /** Result for a single Task added as part of an add Task collection operation. */ export interface BatchTaskAddResultOutput { - /** - * The status of the add Task request. - * - * Possible values: success, clienterror, servererror - */ - status: string; + /** The status of the add Task request. */ + status: BatchTaskAddStatusOutput; /** The ID of the Task for which this is the result. */ taskId: string; /** The ETag of the Task, if the Task was successfully added. You can use this to detect whether the Task has changed between requests. In particular, you can be pass the ETag with an Update Task request to specify that your changes should take effect only if nobody else has modified the Job in the meantime. */ @@ -2165,8 +1828,6 @@ export interface BatchTaskAddResultOutput { error?: BatchErrorOutput; } -export interface BatchTaskListSubtasksResultListOutput {} - /** The result of listing the subtasks of a Task. */ export interface BatchTaskListSubtasksResultOutput { /** The list of subtasks. */ @@ -2191,32 +1852,18 @@ export interface BatchSubtaskOutput { containerInfo?: BatchTaskContainerExecutionInfoOutput; /** Information describing the Task failure, if any. This property is set only if the Task is in the completed state and encountered a failure. */ failureInfo?: BatchTaskFailureInfoOutput; - /** - * The current state of the subtask. - * - * Possible values: preparing, running, completed - */ - state?: string; + /** The current state of the subtask. */ + state?: BatchSubtaskStateOutput; /** The time at which the subtask entered its current state. */ stateTransitionTime?: string; - /** - * The previous state of the subtask. This property is not set if the subtask is in its initial running state. - * - * Possible values: preparing, running, completed - */ - previousState?: string; + /** The previous state of the subtask. This property is not set if the subtask is in its initial running state. */ + previousState?: BatchSubtaskStateOutput; /** The time at which the subtask entered its previous state. This property is not set if the subtask is in its initial running state. */ previousStateTransitionTime?: string; - /** - * The result of the Task execution. If the value is 'failed', then the details of the failure can be found in the failureInfo property. - * - * Possible values: success, failure - */ - result?: string; + /** The result of the Task execution. If the value is 'failed', then the details of the failure can be found in the failureInfo property. */ + result?: BatchTaskExecutionResultOutput; } -export interface BatchNodeFileListResultListOutput {} - /** * The result of listing the files on a Compute Node, or the files associated with * a Task on a Compute Node. @@ -2260,18 +1907,10 @@ export interface BatchNodeOutput { id?: string; /** The URL of the Compute Node. */ url?: string; - /** - * The current state of the Compute Node. The Spot/Low-priority Compute Node has been preempted. Tasks which were running on the Compute Node when it was preempted will be rescheduled when another Compute Node becomes available. - * - * Possible values: idle, rebooting, reimaging, running, unusable, creating, starting, waitingforstarttask, starttaskfailed, unknown, leavingpool, offline, preempted - */ - state?: string; - /** - * Whether the Compute Node is available for Task scheduling. - * - * Possible values: enabled, disabled - */ - schedulingState?: string; + /** The current state of the Compute Node. The Spot/Low-priority Compute Node has been preempted. Tasks which were running on the Compute Node when it was preempted will be rescheduled when another Compute Node becomes available. */ + state?: BatchNodeStateOutput; + /** Whether the Compute Node is available for Task scheduling. */ + schedulingState?: SchedulingStateOutput; /** The time at which the Compute Node entered its current state. */ stateTransitionTime?: string; /** The last time at which the Compute Node was started. This property may not be present if the Compute Node state is unusable. */ @@ -2298,13 +1937,6 @@ export interface BatchNodeOutput { startTask?: BatchStartTaskOutput; /** Runtime information about the execution of the StartTask on the Compute Node. */ startTaskInfo?: BatchStartTaskInfoOutput; - /** - * For Windows Nodes, the Batch service installs the Certificates to the specified Certificate store and location. - * For Linux Compute Nodes, the Certificates are stored in a directory inside the Task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the Task to query for this location. - * For Certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and Certificates are placed in that directory. - * Warning: This property is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - */ - certificateReferences?: Array; /** The list of errors that are currently being encountered by the Compute Node. */ errors?: Array; /** Whether this Compute Node is a dedicated Compute Node. If false, the Compute Node is a Spot/Low-priority Compute Node. */ @@ -2327,24 +1959,16 @@ export interface BatchTaskInfoOutput { taskId?: string; /** The ID of the subtask if the Task is a multi-instance Task. */ subtaskId?: number; - /** - * The current state of the Task. - * - * Possible values: active, preparing, running, completed - */ - taskState: string; + /** The current state of the Task. */ + taskState: BatchTaskStateOutput; /** Information about the execution of the Task. */ executionInfo?: BatchTaskExecutionInfoOutput; } /** Information about a StartTask running on a Compute Node. */ export interface BatchStartTaskInfoOutput { - /** - * The state of the StartTask on the Compute Node. - * - * Possible values: running, completed - */ - state: string; + /** The state of the StartTask on the Compute Node. */ + state: BatchStartTaskStateOutput; /** The time at which the StartTask started running. This value is reset every time the Task is restarted or retried (that is, this is the most recent time at which the StartTask started running). */ startTime: string; /** The time at which the StartTask stopped running. This is the end time of the most recent run of the StartTask, if that run has completed (even if that run failed and a retry is pending). This element is not present if the StartTask is currently running. */ @@ -2359,12 +1983,8 @@ export interface BatchStartTaskInfoOutput { retryCount: number; /** The most recent time at which a retry of the Task started running. This element is present only if the Task was retried (i.e. retryCount is nonzero). If present, this is typically the same as startTime, but may be different if the Task has been restarted for reasons other than retry; for example, if the Compute Node was rebooted during a retry, then the startTime is updated but the lastRetryTime is not. */ lastRetryTime?: string; - /** - * The result of the Task execution. If the value is 'failed', then the details of the failure can be found in the failureInfo property. - * - * Possible values: success, failure - */ - result?: string; + /** The result of the Task execution. If the value is 'failed', then the details of the failure can be found in the failureInfo property. */ + result?: BatchTaskExecutionResultOutput; } /** An error encountered by a Compute Node. */ @@ -2387,12 +2007,8 @@ export interface BatchNodeEndpointConfigurationOutput { export interface InboundEndpointOutput { /** The name of the endpoint. */ name: string; - /** - * The protocol of the endpoint. - * - * Possible values: tcp, udp - */ - protocol: string; + /** The protocol of the endpoint. */ + protocol: InboundEndpointProtocolOutput; /** The public IP address of the Compute Node. */ publicIPAddress: string; /** The public fully qualified domain name for the Compute Node. */ @@ -2430,18 +2046,6 @@ export interface BatchNodeRemoteLoginSettingsOutput { remoteLoginPort: number; } -/** The Azure Batch service log files upload parameters for a Compute Node. */ -export interface UploadBatchServiceLogsParametersOutput { - /** The URL of the container within Azure Blob Storage to which to upload the Batch Service log file(s). If a user assigned managed identity is not being used, the URL must include a Shared Access Signature (SAS) granting write permissions to the container. The SAS duration must allow enough time for the upload to finish. The start time for SAS is optional and recommended to not be specified. */ - containerUrl: string; - /** The start of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested. */ - startTime: string; - /** The end of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested. If omitted, the default is to upload all logs available after the startTime. */ - endTime?: string; - /** The reference to the user assigned identity to use to access Azure Blob Storage specified by containerUrl. The identity must have write access to the Azure Blob Storage container. */ - identityReference?: BatchNodeIdentityReferenceOutput; -} - /** The result of uploading Batch service log files from a specific Compute Node. */ export interface UploadBatchServiceLogsResultOutput { /** The virtual directory within Azure Blob Storage container to which the Batch Service log file(s) will be uploaded. The virtual directory name is part of the blob name for each log file uploaded, and it is built based poolId, nodeId and a unique identifier. */ @@ -2450,8 +2054,6 @@ export interface UploadBatchServiceLogsResultOutput { numberOfFilesUploaded: number; } -export interface BatchNodeListResultListOutput {} - /** The result of listing the Compute Nodes in a Pool. */ export interface BatchNodeListResultOutput { /** The list of Compute Nodes. */ @@ -2486,20 +2088,14 @@ export interface InstanceViewStatusOutput { code?: string; /** The localized label for the status. */ displayStatus?: string; - /** - * Level code. - * - * Possible values: Error, Info, Warning - */ - level?: string; + /** Level code. */ + level?: StatusLevelTypesOutput; /** The detailed status message. */ message?: string; /** The time of the status. */ time?: string; } -export interface BatchNodeVMExtensionListResultListOutput {} - /** The result of listing the Compute Node extensions in a Node. */ export interface BatchNodeVMExtensionListResultOutput { /** The list of Compute Node extensions. */ @@ -2507,3 +2103,160 @@ export interface BatchNodeVMExtensionListResultOutput { /** The URL to get the next set of results. */ "odata.nextLink"?: string; } + +/** Alias for CachingTypeOutput */ +export type CachingTypeOutput = string | "none" | "readonly" | "readwrite"; +/** Alias for StorageAccountTypeOutput */ +export type StorageAccountTypeOutput = + | string + | "standard_lrs" + | "premium_lrs" + | "standardssd_lrs"; +/** Alias for ContainerTypeOutput */ +export type ContainerTypeOutput = string | "dockerCompatible" | "criCompatible"; +/** Alias for DiskEncryptionTargetOutput */ +export type DiskEncryptionTargetOutput = string | "osdisk" | "temporarydisk"; +/** Alias for BatchNodePlacementPolicyTypeOutput */ +export type BatchNodePlacementPolicyTypeOutput = string | "regional" | "zonal"; +/** Alias for DiffDiskPlacementOutput */ +export type DiffDiskPlacementOutput = string | "cachedisk"; +/** Alias for SecurityTypesOutput */ +export type SecurityTypesOutput = string | "trustedLaunch"; +/** Alias for DynamicVNetAssignmentScopeOutput */ +export type DynamicVNetAssignmentScopeOutput = string | "none" | "job"; +/** Alias for InboundEndpointProtocolOutput */ +export type InboundEndpointProtocolOutput = string | "tcp" | "udp"; +/** Alias for NetworkSecurityGroupRuleAccessOutput */ +export type NetworkSecurityGroupRuleAccessOutput = string | "allow" | "deny"; +/** Alias for IpAddressProvisioningTypeOutput */ +export type IpAddressProvisioningTypeOutput = + | string + | "batchmanaged" + | "usermanaged" + | "nopublicipaddresses"; +/** Alias for ContainerWorkingDirectoryOutput */ +export type ContainerWorkingDirectoryOutput = + | string + | "taskWorkingDirectory" + | "containerImageDefault"; +/** Alias for AutoUserScopeOutput */ +export type AutoUserScopeOutput = string | "task" | "pool"; +/** Alias for ElevationLevelOutput */ +export type ElevationLevelOutput = string | "nonadmin" | "admin"; +/** Alias for BatchNodeFillTypeOutput */ +export type BatchNodeFillTypeOutput = string | "spread" | "pack"; +/** Alias for LoginModeOutput */ +export type LoginModeOutput = string | "batch" | "interactive"; +/** Alias for BatchNodeCommunicationModeOutput */ +export type BatchNodeCommunicationModeOutput = + | string + | "default" + | "classic" + | "simplified"; +/** Alias for UpgradeModeOutput */ +export type UpgradeModeOutput = string | "automatic" | "manual" | "rolling"; +/** Alias for BatchPoolStateOutput */ +export type BatchPoolStateOutput = string | "active" | "deleting"; +/** Alias for AllocationStateOutput */ +export type AllocationStateOutput = string | "steady" | "resizing" | "stopping"; +/** Alias for BatchPoolIdentityTypeOutput */ +export type BatchPoolIdentityTypeOutput = string | "UserAssigned" | "None"; +/** Alias for OSTypeOutput */ +export type OSTypeOutput = string | "linux" | "windows"; +/** Alias for ImageVerificationTypeOutput */ +export type ImageVerificationTypeOutput = string | "verified" | "unverified"; +/** Alias for BatchJobStateOutput */ +export type BatchJobStateOutput = + | string + | "active" + | "disabling" + | "disabled" + | "enabling" + | "terminating" + | "completed" + | "deleting"; +/** Alias for OutputFileUploadConditionOutput */ +export type OutputFileUploadConditionOutput = + | string + | "tasksuccess" + | "taskfailure" + | "taskcompletion"; +/** Alias for AccessScopeOutput */ +export type AccessScopeOutput = string | "job"; +/** Alias for BatchPoolLifetimeOptionOutput */ +export type BatchPoolLifetimeOptionOutput = string | "jobschedule" | "job"; +/** Alias for OnAllBatchTasksCompleteOutput */ +export type OnAllBatchTasksCompleteOutput = + | string + | "noaction" + | "terminatejob"; +/** Alias for OnBatchTaskFailureOutput */ +export type OnBatchTaskFailureOutput = + | string + | "noaction" + | "performexitoptionsjobaction"; +/** Alias for ErrorCategoryOutput */ +export type ErrorCategoryOutput = string | "usererror" | "servererror"; +/** Alias for BatchJobPreparationTaskStateOutput */ +export type BatchJobPreparationTaskStateOutput = + | string + | "running" + | "completed"; +/** Alias for BatchTaskExecutionResultOutput */ +export type BatchTaskExecutionResultOutput = string | "success" | "failure"; +/** Alias for BatchJobReleaseTaskStateOutput */ +export type BatchJobReleaseTaskStateOutput = string | "running" | "completed"; +/** Alias for BatchJobScheduleStateOutput */ +export type BatchJobScheduleStateOutput = + | string + | "active" + | "completed" + | "disabled" + | "terminating" + | "deleting"; +/** Alias for BatchJobActionOutput */ +export type BatchJobActionOutput = string | "none" | "disable" | "terminate"; +/** Alias for DependencyActionOutput */ +export type DependencyActionOutput = string | "satisfy" | "block"; +/** Alias for BatchTaskStateOutput */ +export type BatchTaskStateOutput = + | string + | "active" + | "preparing" + | "running" + | "completed"; +/** Alias for BatchTaskAddStatusOutput */ +export type BatchTaskAddStatusOutput = + | string + | "success" + | "clienterror" + | "servererror"; +/** Alias for BatchSubtaskStateOutput */ +export type BatchSubtaskStateOutput = + | string + | "preparing" + | "running" + | "completed"; +/** Alias for BatchNodeStateOutput */ +export type BatchNodeStateOutput = + | string + | "idle" + | "rebooting" + | "reimaging" + | "running" + | "unusable" + | "creating" + | "starting" + | "waitingforstarttask" + | "starttaskfailed" + | "unknown" + | "leavingpool" + | "offline" + | "preempted" + | "upgradingos"; +/** Alias for SchedulingStateOutput */ +export type SchedulingStateOutput = string | "enabled" | "disabled"; +/** Alias for BatchStartTaskStateOutput */ +export type BatchStartTaskStateOutput = string | "running" | "completed"; +/** Alias for StatusLevelTypesOutput */ +export type StatusLevelTypesOutput = string | "Error" | "Info" | "Warning"; diff --git a/packages/service/src/internal/batch-rest/generated/src/paginateHelper.ts b/packages/service/src/internal/batch-rest/generated/src/paginateHelper.ts index 95baa6a40..3fde5021f 100644 --- a/packages/service/src/internal/batch-rest/generated/src/paginateHelper.ts +++ b/packages/service/src/internal/batch-rest/generated/src/paginateHelper.ts @@ -22,7 +22,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -61,7 +61,7 @@ export type PaginateReturn = TResult extends { export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -106,7 +106,7 @@ function getNextLink(body: unknown, nextLinkName?: string): string | undefined { if (typeof nextLink !== "string" && typeof nextLink !== "undefined") { throw new Error( - `Body Property ${nextLinkName} should be a string or undefined` + `Body Property ${nextLinkName} should be a string or undefined`, ); } @@ -124,7 +124,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -150,7 +150,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } @@ -192,7 +192,7 @@ function getPaginationProperties(initialResponse: PathUncheckedResponse) { throw new Error( `Couldn't paginate response\n Body doesn't contain an array property with name: ${[ ...itemNames, - ].join(" OR ")}` + ].join(" OR ")}`, ); } diff --git a/packages/service/src/internal/batch-rest/generated/src/parameters.ts b/packages/service/src/internal/batch-rest/generated/src/parameters.ts index 06b251179..8020b6f69 100644 --- a/packages/service/src/internal/batch-rest/generated/src/parameters.ts +++ b/packages/service/src/internal/batch-rest/generated/src/parameters.ts @@ -4,32 +4,30 @@ import { RawHttpHeadersInput } from "@azure/core-rest-pipeline"; import { RequestParameters } from "@azure-rest/core-client"; import { - BatchPoolCreateParameters, - BatchPoolUpdateParameters, - BatchPoolEnableAutoScaleParameters, - BatchPoolEvaluateAutoScaleParameters, - BatchPoolResizeParameters, - BatchPoolReplaceParameters, - BatchNodeRemoveParameters, - BatchJobUpdateParameters, + BatchPoolCreateContent, + BatchPoolUpdateContent, + BatchPoolEnableAutoScaleContent, + BatchPoolEvaluateAutoScaleContent, + BatchPoolResizeContent, + BatchPoolReplaceContent, + BatchNodeRemoveContent, + BatchJobUpdateContent, BatchJob, - BatchJobDisableParameters, - BatchJobTerminateParameters, - BatchJobCreateParameters, - BatchCertificate, - BatchJobScheduleUpdateParameters, + BatchJobDisableContent, + BatchJobTerminateContent, + BatchJobCreateContent, + BatchJobScheduleUpdateContent, BatchJobSchedule, - BatchJobScheduleCreateParameters, - BatchTaskCreateParameters, - BatchTaskCollection, + BatchJobScheduleCreateContent, + BatchTaskCreateContent, + BatchTaskGroup, BatchTask, - BatchNodeUserCreateParameters, - BatchNodeUserUpdateParameters, - BatchNodeRebootParameters, - BatchNodeReimageParameters, - BatchNodeDisableSchedulingParameters, - UploadBatchServiceLogsParameters, -} from "./models"; + BatchNodeUserCreateContent, + BatchNodeUserUpdateContent, + BatchNodeRebootContent, + BatchNodeDisableSchedulingContent, + UploadBatchServiceLogsContent, +} from "./models.js"; export interface ListApplicationsHeaders { /** @@ -48,10 +46,7 @@ export interface ListApplicationsHeaders { } export interface ListApplicationsQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** * The maximum number of items to return in the response. A maximum of 1000 @@ -89,10 +84,7 @@ export interface GetApplicationHeaders { } export interface GetApplicationQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -125,10 +117,7 @@ export interface ListPoolUsageMetricsHeaders { } export interface ListPoolUsageMetricsQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** * The maximum number of items to return in the response. A maximum of 1000 @@ -184,14 +173,11 @@ export interface CreatePoolHeaders { export interface CreatePoolBodyParam { /** The Pool to be created. */ - body: BatchPoolCreateParameters; + body: BatchPoolCreateContent; } export interface CreatePoolQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -231,10 +217,7 @@ export interface ListPoolsHeaders { } export interface ListPoolsQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** * The maximum number of items to return in the response. A maximum of 1000 @@ -305,10 +288,7 @@ export interface DeletePoolHeaders { } export interface DeletePoolQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -365,10 +345,7 @@ export interface PoolExistsHeaders { } export interface PoolExistsQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -425,10 +402,7 @@ export interface GetPoolHeaders { } export interface GetPoolQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** An OData $select clause. */ $select?: string[]; @@ -490,14 +464,11 @@ export interface UpdatePoolHeaders { export interface UpdatePoolBodyParam { /** The pool properties to update. */ - body: BatchPoolUpdateParameters; + body: BatchPoolUpdateContent; } export interface UpdatePoolQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -537,10 +508,7 @@ export interface DisablePoolAutoScaleHeaders { } export interface DisablePoolAutoScaleQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -598,14 +566,11 @@ export interface EnablePoolAutoScaleHeaders { export interface EnablePoolAutoScaleBodyParam { /** The options to use for enabling automatic scaling. */ - body: BatchPoolEnableAutoScaleParameters; + body: BatchPoolEnableAutoScaleContent; } export interface EnablePoolAutoScaleQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -646,14 +611,11 @@ export interface EvaluatePoolAutoScaleHeaders { export interface EvaluatePoolAutoScaleBodyParam { /** The options to use for evaluating the automatic scaling formula. */ - body: BatchPoolEvaluateAutoScaleParameters; + body: BatchPoolEvaluateAutoScaleContent; } export interface EvaluatePoolAutoScaleQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -718,14 +680,11 @@ export interface ResizePoolHeaders { export interface ResizePoolBodyParam { /** The options to use for resizing the pool. */ - body: BatchPoolResizeParameters; + body: BatchPoolResizeContent; } export interface ResizePoolQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -789,10 +748,7 @@ export interface StopPoolResizeHeaders { } export interface StopPoolResizeQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -826,14 +782,11 @@ export interface ReplacePoolPropertiesHeaders { export interface ReplacePoolPropertiesBodyParam { /** The options to use for replacing properties on the pool. */ - body: BatchPoolReplaceParameters; + body: BatchPoolReplaceContent; } export interface ReplacePoolPropertiesQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -898,14 +851,11 @@ export interface RemoveNodesHeaders { export interface RemoveNodesBodyParam { /** The options to use for removing the node. */ - body: BatchNodeRemoveParameters; + body: BatchNodeRemoveContent; } export interface RemoveNodesQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -945,10 +895,7 @@ export interface ListSupportedImagesHeaders { } export interface ListSupportedImagesQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** * The maximum number of items to return in the response. A maximum of 1000 @@ -991,10 +938,7 @@ export interface ListPoolNodeCountsHeaders { } export interface ListPoolNodeCountsQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** * The maximum number of items to return in the response. A maximum of 1000 @@ -1061,10 +1005,7 @@ export interface DeleteJobHeaders { } export interface DeleteJobQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -1121,10 +1062,7 @@ export interface GetJobHeaders { } export interface GetJobQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** An OData $select clause. */ $select?: string[]; @@ -1186,14 +1124,11 @@ export interface UpdateJobHeaders { export interface UpdateJobBodyParam { /** The options to use for updating the Job. */ - body: BatchJobUpdateParameters; + body: BatchJobUpdateContent; } export interface UpdateJobQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -1262,10 +1197,7 @@ export interface ReplaceJobBodyParam { } export interface ReplaceJobQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -1330,14 +1262,11 @@ export interface DisableJobHeaders { export interface DisableJobBodyParam { /** The options to use for disabling the Job. */ - body: BatchJobDisableParameters; + body: BatchJobDisableContent; } export interface DisableJobQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -1401,10 +1330,7 @@ export interface EnableJobHeaders { } export interface EnableJobQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -1462,14 +1388,11 @@ export interface TerminateJobHeaders { export interface TerminateJobBodyParam { /** The options to use for terminating the Job. */ - body?: BatchJobTerminateParameters; + body?: BatchJobTerminateContent; } export interface TerminateJobQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -1510,14 +1433,11 @@ export interface CreateJobHeaders { export interface CreateJobBodyParam { /** The Job to be created. */ - body: BatchJobCreateParameters; + body: BatchJobCreateContent; } export interface CreateJobQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -1557,10 +1477,7 @@ export interface ListJobsHeaders { } export interface ListJobsQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** * The maximum number of items to return in the response. A maximum of 1000 @@ -1607,10 +1524,7 @@ export interface ListJobsFromScheduleHeaders { } export interface ListJobsFromScheduleQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** * The maximum number of items to return in the response. A maximum of 1000 @@ -1657,10 +1571,7 @@ export interface ListJobPreparationAndReleaseTaskStatusHeaders { } export interface ListJobPreparationAndReleaseTaskStatusQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** * The maximum number of items to return in the response. A maximum of 1000 @@ -1706,10 +1617,7 @@ export interface GetJobTaskCountsHeaders { } export interface GetJobTaskCountsQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -1725,213 +1633,6 @@ export type GetJobTaskCountsParameters = GetJobTaskCountsQueryParam & GetJobTaskCountsHeaderParam & RequestParameters; -export interface CreateCertificateHeaders { - /** - * The caller-generated request identity, in the form of a GUID with no decoration - * such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. - */ - "client-request-id"?: string; - /** Whether the server should return the client-request-id in the response. */ - "return-client-request-id"?: boolean; - /** - * The time the request was issued. Client libraries typically set this to the - * current system clock time; set it explicitly if you are calling the REST API - * directly. - */ - "ocp-date"?: string; -} - -export interface CreateCertificateBodyParam { - /** The Certificate to be created. */ - body: BatchCertificate; -} - -export interface CreateCertificateQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ - timeOut?: number; -} - -export interface CreateCertificateQueryParam { - queryParameters?: CreateCertificateQueryParamProperties; -} - -export interface CreateCertificateHeaderParam { - headers?: RawHttpHeadersInput & CreateCertificateHeaders; -} - -export interface CreateCertificateMediaTypesParam { - /** Type of content */ - contentType: "application/json; odata=minimalmetadata"; -} - -export type CreateCertificateParameters = CreateCertificateQueryParam & - CreateCertificateHeaderParam & - CreateCertificateMediaTypesParam & - CreateCertificateBodyParam & - RequestParameters; - -export interface ListCertificatesHeaders { - /** - * The caller-generated request identity, in the form of a GUID with no decoration - * such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. - */ - "client-request-id"?: string; - /** Whether the server should return the client-request-id in the response. */ - "return-client-request-id"?: boolean; - /** - * The time the request was issued. Client libraries typically set this to the - * current system clock time; set it explicitly if you are calling the REST API - * directly. - */ - "ocp-date"?: string; -} - -export interface ListCertificatesQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ - timeOut?: number; - /** - * The maximum number of items to return in the response. A maximum of 1000 - * applications can be returned. - */ - maxresults?: number; - /** - * An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-certificates. - */ - $filter?: string; - /** An OData $select clause. */ - $select?: string[]; -} - -export interface ListCertificatesQueryParam { - queryParameters?: ListCertificatesQueryParamProperties; -} - -export interface ListCertificatesHeaderParam { - headers?: RawHttpHeadersInput & ListCertificatesHeaders; -} - -export type ListCertificatesParameters = ListCertificatesQueryParam & - ListCertificatesHeaderParam & - RequestParameters; - -export interface CancelCertificateDeletionHeaders { - /** - * The caller-generated request identity, in the form of a GUID with no decoration - * such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. - */ - "client-request-id"?: string; - /** Whether the server should return the client-request-id in the response. */ - "return-client-request-id"?: boolean; - /** - * The time the request was issued. Client libraries typically set this to the - * current system clock time; set it explicitly if you are calling the REST API - * directly. - */ - "ocp-date"?: string; -} - -export interface CancelCertificateDeletionQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ - timeOut?: number; -} - -export interface CancelCertificateDeletionQueryParam { - queryParameters?: CancelCertificateDeletionQueryParamProperties; -} - -export interface CancelCertificateDeletionHeaderParam { - headers?: RawHttpHeadersInput & CancelCertificateDeletionHeaders; -} - -export type CancelCertificateDeletionParameters = - CancelCertificateDeletionQueryParam & - CancelCertificateDeletionHeaderParam & - RequestParameters; - -export interface DeleteCertificateHeaders { - /** - * The caller-generated request identity, in the form of a GUID with no decoration - * such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. - */ - "client-request-id"?: string; - /** Whether the server should return the client-request-id in the response. */ - "return-client-request-id"?: boolean; - /** - * The time the request was issued. Client libraries typically set this to the - * current system clock time; set it explicitly if you are calling the REST API - * directly. - */ - "ocp-date"?: string; -} - -export interface DeleteCertificateQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ - timeOut?: number; -} - -export interface DeleteCertificateQueryParam { - queryParameters?: DeleteCertificateQueryParamProperties; -} - -export interface DeleteCertificateHeaderParam { - headers?: RawHttpHeadersInput & DeleteCertificateHeaders; -} - -export type DeleteCertificateParameters = DeleteCertificateQueryParam & - DeleteCertificateHeaderParam & - RequestParameters; - -export interface GetCertificateHeaders { - /** - * The caller-generated request identity, in the form of a GUID with no decoration - * such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. - */ - "client-request-id"?: string; - /** Whether the server should return the client-request-id in the response. */ - "return-client-request-id"?: boolean; - /** - * The time the request was issued. Client libraries typically set this to the - * current system clock time; set it explicitly if you are calling the REST API - * directly. - */ - "ocp-date"?: string; -} - -export interface GetCertificateQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ - timeOut?: number; - /** An OData $select clause. */ - $select?: string[]; -} - -export interface GetCertificateQueryParam { - queryParameters?: GetCertificateQueryParamProperties; -} - -export interface GetCertificateHeaderParam { - headers?: RawHttpHeadersInput & GetCertificateHeaders; -} - -export type GetCertificateParameters = GetCertificateQueryParam & - GetCertificateHeaderParam & - RequestParameters; - export interface JobScheduleExistsHeaders { /** * The caller-generated request identity, in the form of a GUID with no decoration @@ -1973,10 +1674,7 @@ export interface JobScheduleExistsHeaders { } export interface JobScheduleExistsQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -2033,10 +1731,7 @@ export interface DeleteJobScheduleHeaders { } export interface DeleteJobScheduleQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -2093,10 +1788,7 @@ export interface GetJobScheduleHeaders { } export interface GetJobScheduleQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** An OData $select clause. */ $select?: string[]; @@ -2158,14 +1850,11 @@ export interface UpdateJobScheduleHeaders { export interface UpdateJobScheduleBodyParam { /** The options to use for updating the Job Schedule. */ - body: BatchJobScheduleUpdateParameters; + body: BatchJobScheduleUpdateContent; } export interface UpdateJobScheduleQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -2234,10 +1923,7 @@ export interface ReplaceJobScheduleBodyParam { } export interface ReplaceJobScheduleQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -2301,10 +1987,7 @@ export interface DisableJobScheduleHeaders { } export interface DisableJobScheduleQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -2361,10 +2044,7 @@ export interface EnableJobScheduleHeaders { } export interface EnableJobScheduleQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -2421,10 +2101,7 @@ export interface TerminateJobScheduleHeaders { } export interface TerminateJobScheduleQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -2458,14 +2135,11 @@ export interface CreateJobScheduleHeaders { export interface CreateJobScheduleBodyParam { /** The Job Schedule to be created. */ - body: BatchJobScheduleCreateParameters; + body: BatchJobScheduleCreateContent; } export interface CreateJobScheduleQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -2505,10 +2179,7 @@ export interface ListJobSchedulesHeaders { } export interface ListJobSchedulesQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** * The maximum number of items to return in the response. A maximum of 1000 @@ -2556,14 +2227,11 @@ export interface CreateTaskHeaders { export interface CreateTaskBodyParam { /** The Task to be created. */ - body: BatchTaskCreateParameters; + body: BatchTaskCreateContent; } export interface CreateTaskQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -2603,10 +2271,7 @@ export interface ListTasksHeaders { } export interface ListTasksQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** * The maximum number of items to return in the response. A maximum of 1000 @@ -2654,14 +2319,11 @@ export interface CreateTaskCollectionHeaders { export interface CreateTaskCollectionBodyParam { /** The Tasks to be added. */ - body: BatchTaskCollection; + body: BatchTaskGroup; } export interface CreateTaskCollectionQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -2725,10 +2387,7 @@ export interface DeleteTaskHeaders { } export interface DeleteTaskQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -2785,10 +2444,7 @@ export interface GetTaskHeaders { } export interface GetTaskQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** An OData $select clause. */ $select?: string[]; @@ -2854,10 +2510,7 @@ export interface ReplaceTaskBodyParam { } export interface ReplaceTaskQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -2897,10 +2550,7 @@ export interface ListSubTasksHeaders { } export interface ListSubTasksQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** An OData $select clause. */ $select?: string[]; @@ -2959,10 +2609,7 @@ export interface TerminateTaskHeaders { } export interface TerminateTaskQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -3019,10 +2666,7 @@ export interface ReactivateTaskHeaders { } export interface ReactivateTaskQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -3055,10 +2699,7 @@ export interface DeleteTaskFileHeaders { } export interface DeleteTaskFileQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** * Whether to delete children of a directory. If the filePath parameter represents @@ -3115,10 +2756,7 @@ export interface GetTaskFileHeaders { } export interface GetTaskFileQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -3163,10 +2801,7 @@ export interface GetTaskFilePropertiesHeaders { } export interface GetTaskFilePropertiesQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -3199,10 +2834,7 @@ export interface ListTaskFilesHeaders { } export interface ListTaskFilesQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** * The maximum number of items to return in the response. A maximum of 1000 @@ -3251,14 +2883,11 @@ export interface CreateNodeUserHeaders { export interface CreateNodeUserBodyParam { /** The options to use for creating the user. */ - body: BatchNodeUserCreateParameters; + body: BatchNodeUserCreateContent; } export interface CreateNodeUserQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -3298,10 +2927,7 @@ export interface DeleteNodeUserHeaders { } export interface DeleteNodeUserQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -3335,14 +2961,11 @@ export interface ReplaceNodeUserHeaders { export interface ReplaceNodeUserBodyParam { /** The options to use for updating the user. */ - body: BatchNodeUserUpdateParameters; + body: BatchNodeUserUpdateContent; } export interface ReplaceNodeUserQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -3382,10 +3005,7 @@ export interface GetNodeHeaders { } export interface GetNodeQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** An OData $select clause. */ $select?: string[]; @@ -3421,14 +3041,11 @@ export interface RebootNodeHeaders { export interface RebootNodeBodyParam { /** The options to use for rebooting the Compute Node. */ - body?: BatchNodeRebootParameters; + body?: BatchNodeRebootContent; } export interface RebootNodeQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -3451,54 +3068,6 @@ export type RebootNodeParameters = RebootNodeQueryParam & RebootNodeBodyParam & RequestParameters; -export interface ReimageNodeHeaders { - /** - * The caller-generated request identity, in the form of a GUID with no decoration - * such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. - */ - "client-request-id"?: string; - /** Whether the server should return the client-request-id in the response. */ - "return-client-request-id"?: boolean; - /** - * The time the request was issued. Client libraries typically set this to the - * current system clock time; set it explicitly if you are calling the REST API - * directly. - */ - "ocp-date"?: string; -} - -export interface ReimageNodeBodyParam { - /** The options to use for reimaging the Compute Node. */ - body?: BatchNodeReimageParameters; -} - -export interface ReimageNodeQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ - timeOut?: number; -} - -export interface ReimageNodeQueryParam { - queryParameters?: ReimageNodeQueryParamProperties; -} - -export interface ReimageNodeHeaderParam { - headers?: RawHttpHeadersInput & ReimageNodeHeaders; -} - -export interface ReimageNodeMediaTypesParam { - /** Type of content */ - contentType: "application/json; odata=minimalmetadata"; -} - -export type ReimageNodeParameters = ReimageNodeQueryParam & - ReimageNodeHeaderParam & - ReimageNodeMediaTypesParam & - ReimageNodeBodyParam & - RequestParameters; - export interface DisableNodeSchedulingHeaders { /** * The caller-generated request identity, in the form of a GUID with no decoration @@ -3517,14 +3086,11 @@ export interface DisableNodeSchedulingHeaders { export interface DisableNodeSchedulingBodyParam { /** The options to use for disabling scheduling on the Compute Node. */ - body?: BatchNodeDisableSchedulingParameters; + body?: BatchNodeDisableSchedulingContent; } export interface DisableNodeSchedulingQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -3564,10 +3130,7 @@ export interface EnableNodeSchedulingHeaders { } export interface EnableNodeSchedulingQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -3600,10 +3163,7 @@ export interface GetNodeRemoteLoginSettingsHeaders { } export interface GetNodeRemoteLoginSettingsQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -3620,43 +3180,6 @@ export type GetNodeRemoteLoginSettingsParameters = GetNodeRemoteLoginSettingsHeaderParam & RequestParameters; -export interface GetNodeRemoteDesktopFileHeaders { - /** - * The caller-generated request identity, in the form of a GUID with no decoration - * such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. - */ - "client-request-id"?: string; - /** Whether the server should return the client-request-id in the response. */ - "return-client-request-id"?: boolean; - /** - * The time the request was issued. Client libraries typically set this to the - * current system clock time; set it explicitly if you are calling the REST API - * directly. - */ - "ocp-date"?: string; -} - -export interface GetNodeRemoteDesktopFileQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ - timeOut?: number; -} - -export interface GetNodeRemoteDesktopFileQueryParam { - queryParameters?: GetNodeRemoteDesktopFileQueryParamProperties; -} - -export interface GetNodeRemoteDesktopFileHeaderParam { - headers?: RawHttpHeadersInput & GetNodeRemoteDesktopFileHeaders; -} - -export type GetNodeRemoteDesktopFileParameters = - GetNodeRemoteDesktopFileQueryParam & - GetNodeRemoteDesktopFileHeaderParam & - RequestParameters; - export interface UploadNodeLogsHeaders { /** * The caller-generated request identity, in the form of a GUID with no decoration @@ -3675,14 +3198,11 @@ export interface UploadNodeLogsHeaders { export interface UploadNodeLogsBodyParam { /** The Azure Batch service log files upload options. */ - body: UploadBatchServiceLogsParameters; + body: UploadBatchServiceLogsContent; } export interface UploadNodeLogsQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -3722,10 +3242,7 @@ export interface ListNodesHeaders { } export interface ListNodesQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** * The maximum number of items to return in the response. A maximum of 1000 @@ -3770,10 +3287,7 @@ export interface GetNodeExtensionHeaders { } export interface GetNodeExtensionQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** An OData $select clause. */ $select?: string[]; @@ -3808,10 +3322,7 @@ export interface ListNodeExtensionsHeaders { } export interface ListNodeExtensionsQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** * The maximum number of items to return in the response. A maximum of 1000 @@ -3851,10 +3362,7 @@ export interface DeleteNodeFileHeaders { } export interface DeleteNodeFileQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** * Whether to delete children of a directory. If the filePath parameter represents @@ -3911,10 +3419,7 @@ export interface GetNodeFileHeaders { } export interface GetNodeFileQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -3959,10 +3464,7 @@ export interface GetNodeFilePropertiesHeaders { } export interface GetNodeFilePropertiesQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; } @@ -3995,10 +3497,7 @@ export interface ListNodeFilesHeaders { } export interface ListNodeFilesQueryParamProperties { - /** - * Sets the maximum time that the server can spend processing the request, - * in seconds. The default is 30 seconds. - */ + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". */ timeOut?: number; /** * The maximum number of items to return in the response. A maximum of 1000 diff --git a/packages/service/src/internal/batch-rest/generated/src/responses.ts b/packages/service/src/internal/batch-rest/generated/src/responses.ts index 0a835fa2e..693ba8239 100644 --- a/packages/service/src/internal/batch-rest/generated/src/responses.ts +++ b/packages/service/src/internal/batch-rest/generated/src/responses.ts @@ -17,8 +17,6 @@ import { BatchJobListResultOutput, BatchJobPreparationAndReleaseTaskStatusListResultOutput, BatchTaskCountsResultOutput, - BatchCertificateListResultOutput, - BatchCertificateOutput, BatchJobScheduleOutput, BatchJobScheduleListResultOutput, BatchTaskListResultOutput, @@ -32,17 +30,17 @@ import { BatchNodeListResultOutput, BatchNodeVMExtensionOutput, BatchNodeVMExtensionListResultOutput, -} from "./outputModels"; +} from "./outputModels.js"; export interface ListApplications200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -58,14 +56,14 @@ export interface ListApplicationsDefaultResponse extends HttpResponse { } export interface GetApplication200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -81,14 +79,14 @@ export interface GetApplicationDefaultResponse extends HttpResponse { } export interface ListPoolUsageMetrics200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -104,16 +102,16 @@ export interface ListPoolUsageMetricsDefaultResponse extends HttpResponse { } export interface CreatePool201Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded and a new resource has been created as a result. */ @@ -128,14 +126,14 @@ export interface CreatePoolDefaultResponse extends HttpResponse { } export interface ListPools200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -169,14 +167,14 @@ export interface DeletePoolDefaultResponse extends HttpResponse { } export interface PoolExists200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -196,14 +194,14 @@ export interface PoolExistsDefaultResponse extends HttpResponse { } export interface GetPool200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -219,16 +217,16 @@ export interface GetPoolDefaultResponse extends HttpResponse { } export interface UpdatePool200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -243,16 +241,16 @@ export interface UpdatePoolDefaultResponse extends HttpResponse { } export interface DisablePoolAutoScale200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -267,16 +265,16 @@ export interface DisablePoolAutoScaleDefaultResponse extends HttpResponse { } export interface EnablePoolAutoScale200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -291,16 +289,16 @@ export interface EnablePoolAutoScaleDefaultResponse extends HttpResponse { } export interface EvaluatePoolAutoScale200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -316,16 +314,16 @@ export interface EvaluatePoolAutoScaleDefaultResponse extends HttpResponse { } export interface ResizePool202Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has been accepted for processing, but processing has not yet completed. */ @@ -340,16 +338,16 @@ export interface ResizePoolDefaultResponse extends HttpResponse { } export interface StopPoolResize202Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has been accepted for processing, but processing has not yet completed. */ @@ -364,16 +362,16 @@ export interface StopPoolResizeDefaultResponse extends HttpResponse { } export interface ReplacePoolProperties204Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** There is no content to send for this request, but the headers may be useful. */ @@ -388,16 +386,16 @@ export interface ReplacePoolPropertiesDefaultResponse extends HttpResponse { } export interface RemoveNodes202Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has been accepted for processing, but processing has not yet completed. */ @@ -412,14 +410,14 @@ export interface RemoveNodesDefaultResponse extends HttpResponse { } export interface ListSupportedImages200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -435,14 +433,14 @@ export interface ListSupportedImagesDefaultResponse extends HttpResponse { } export interface ListPoolNodeCounts200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -476,14 +474,14 @@ export interface DeleteJobDefaultResponse extends HttpResponse { } export interface GetJob200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -499,16 +497,16 @@ export interface GetJobDefaultResponse extends HttpResponse { } export interface UpdateJob200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -523,16 +521,16 @@ export interface UpdateJobDefaultResponse extends HttpResponse { } export interface ReplaceJob200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -547,16 +545,16 @@ export interface ReplaceJobDefaultResponse extends HttpResponse { } export interface DisableJob202Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has been accepted for processing, but processing has not yet completed. */ @@ -571,16 +569,16 @@ export interface DisableJobDefaultResponse extends HttpResponse { } export interface EnableJob202Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has been accepted for processing, but processing has not yet completed. */ @@ -595,16 +593,16 @@ export interface EnableJobDefaultResponse extends HttpResponse { } export interface TerminateJob202Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has been accepted for processing, but processing has not yet completed. */ @@ -619,16 +617,16 @@ export interface TerminateJobDefaultResponse extends HttpResponse { } export interface CreateJob201Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded and a new resource has been created as a result. */ @@ -643,14 +641,14 @@ export interface CreateJobDefaultResponse extends HttpResponse { } export interface ListJobs200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -666,14 +664,14 @@ export interface ListJobsDefaultResponse extends HttpResponse { } export interface ListJobsFromSchedule200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -689,14 +687,14 @@ export interface ListJobsFromScheduleDefaultResponse extends HttpResponse { } export interface ListJobPreparationAndReleaseTaskStatus200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -714,153 +712,37 @@ export interface ListJobPreparationAndReleaseTaskStatusDefaultResponse } export interface GetJobTaskCounts200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; - /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ - etag?: string; - /** The time at which the resource was last modified. */ - "last-modified"?: string; -} - -/** The request has succeeded. */ -export interface GetJobTaskCounts200Response extends HttpResponse { - status: "200"; - body: BatchTaskCountsResultOutput; - headers: RawHttpHeaders & GetJobTaskCounts200Headers; -} - -export interface GetJobTaskCountsDefaultResponse extends HttpResponse { - status: string; - body: BatchErrorOutput; -} - -export interface CreateCertificate201Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; -} - -/** The request has succeeded and a new resource has been created as a result. */ -export interface CreateCertificate201Response extends HttpResponse { - status: "201"; - headers: RawHttpHeaders & CreateCertificate201Headers; -} - -export interface CreateCertificateDefaultResponse extends HttpResponse { - status: string; - body: BatchErrorOutput; -} - -export interface ListCertificates200Headers { /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ "client-request-id"?: string; /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ "request-id"?: string; - /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ - etag?: string; - /** The time at which the resource was last modified. */ - "last-modified"?: string; } /** The request has succeeded. */ -export interface ListCertificates200Response extends HttpResponse { +export interface GetJobTaskCounts200Response extends HttpResponse { status: "200"; - body: BatchCertificateListResultOutput; - headers: RawHttpHeaders & ListCertificates200Headers; -} - -export interface ListCertificatesDefaultResponse extends HttpResponse { - status: string; - body: BatchErrorOutput; -} - -export interface CancelCertificateDeletion204Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; - /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ - etag?: string; - /** The time at which the resource was last modified. */ - "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; -} - -/** There is no content to send for this request, but the headers may be useful. */ -export interface CancelCertificateDeletion204Response extends HttpResponse { - status: "204"; - headers: RawHttpHeaders & CancelCertificateDeletion204Headers; -} - -export interface CancelCertificateDeletionDefaultResponse extends HttpResponse { - status: string; - body: BatchErrorOutput; -} - -export interface DeleteCertificate202Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; - /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ - etag?: string; - /** The time at which the resource was last modified. */ - "last-modified"?: string; -} - -/** The request has been accepted for processing, but processing has not yet completed. */ -export interface DeleteCertificate202Response extends HttpResponse { - status: "202"; - headers: RawHttpHeaders & DeleteCertificate202Headers; + body: BatchTaskCountsResultOutput; + headers: RawHttpHeaders & GetJobTaskCounts200Headers; } -export interface DeleteCertificateDefaultResponse extends HttpResponse { +export interface GetJobTaskCountsDefaultResponse extends HttpResponse { status: string; body: BatchErrorOutput; } -export interface GetCertificate200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; +export interface JobScheduleExists200Headers { /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; -} - -/** The request has succeeded. */ -export interface GetCertificate200Response extends HttpResponse { - status: "200"; - body: BatchCertificateOutput; - headers: RawHttpHeaders & GetCertificate200Headers; -} - -export interface GetCertificateDefaultResponse extends HttpResponse { - status: string; - body: BatchErrorOutput; -} - -export interface JobScheduleExists200Headers { /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ "client-request-id"?: string; /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ "request-id"?: string; - /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ - etag?: string; - /** The time at which the resource was last modified. */ - "last-modified"?: string; } /** The request has succeeded. */ @@ -898,14 +780,14 @@ export interface DeleteJobScheduleDefaultResponse extends HttpResponse { } export interface GetJobSchedule200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -921,16 +803,16 @@ export interface GetJobScheduleDefaultResponse extends HttpResponse { } export interface UpdateJobSchedule200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -945,16 +827,16 @@ export interface UpdateJobScheduleDefaultResponse extends HttpResponse { } export interface ReplaceJobSchedule200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -969,16 +851,16 @@ export interface ReplaceJobScheduleDefaultResponse extends HttpResponse { } export interface DisableJobSchedule204Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** There is no content to send for this request, but the headers may be useful. */ @@ -993,16 +875,16 @@ export interface DisableJobScheduleDefaultResponse extends HttpResponse { } export interface EnableJobSchedule204Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** There is no content to send for this request, but the headers may be useful. */ @@ -1017,16 +899,16 @@ export interface EnableJobScheduleDefaultResponse extends HttpResponse { } export interface TerminateJobSchedule202Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has been accepted for processing, but processing has not yet completed. */ @@ -1041,16 +923,16 @@ export interface TerminateJobScheduleDefaultResponse extends HttpResponse { } export interface CreateJobSchedule201Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded and a new resource has been created as a result. */ @@ -1065,14 +947,14 @@ export interface CreateJobScheduleDefaultResponse extends HttpResponse { } export interface ListJobSchedules200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -1088,16 +970,16 @@ export interface ListJobSchedulesDefaultResponse extends HttpResponse { } export interface CreateTask201Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded and a new resource has been created as a result. */ @@ -1112,14 +994,14 @@ export interface CreateTaskDefaultResponse extends HttpResponse { } export interface ListTasks200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -1135,14 +1017,14 @@ export interface ListTasksDefaultResponse extends HttpResponse { } export interface CreateTaskCollection200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -1176,16 +1058,16 @@ export interface DeleteTaskDefaultResponse extends HttpResponse { } export interface GetTask200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -1201,16 +1083,16 @@ export interface GetTaskDefaultResponse extends HttpResponse { } export interface ReplaceTask200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -1225,14 +1107,14 @@ export interface ReplaceTaskDefaultResponse extends HttpResponse { } export interface ListSubTasks200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -1248,16 +1130,16 @@ export interface ListSubTasksDefaultResponse extends HttpResponse { } export interface TerminateTask204Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** There is no content to send for this request, but the headers may be useful. */ @@ -1272,16 +1154,16 @@ export interface TerminateTaskDefaultResponse extends HttpResponse { } export interface ReactivateTask204Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** There is no content to send for this request, but the headers may be useful. */ @@ -1314,24 +1196,24 @@ export interface DeleteTaskFileDefaultResponse extends HttpResponse { } export interface GetTaskFile200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The length of the file. */ + "content-length": number; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The file creation time. */ - "ocp-creation-time"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; /** Whether the object represents a directory. */ "ocp-batch-file-isdirectory": boolean; - /** The URL of the file. */ - "ocp-batch-file-url": string; /** The file mode attribute in octal format. */ "ocp-batch-file-mode": string; - /** The length of the file. */ - "content-length": number; + /** The URL of the file. */ + "ocp-batch-file-url": string; + /** The file creation time. */ + "ocp-creation-time"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -1348,24 +1230,24 @@ export interface GetTaskFileDefaultResponse extends HttpResponse { } export interface GetTaskFileProperties200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The length of the file. */ + "content-length": number; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The file creation time. */ - "ocp-creation-time"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; /** Whether the object represents a directory. */ "ocp-batch-file-isdirectory": boolean; - /** The URL of the file. */ - "ocp-batch-file-url": string; /** The file mode attribute in octal format. */ "ocp-batch-file-mode": string; - /** The length of the file. */ - "content-length": number; + /** The URL of the file. */ + "ocp-batch-file-url": string; + /** The file creation time. */ + "ocp-creation-time"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -1380,14 +1262,14 @@ export interface GetTaskFilePropertiesDefaultResponse extends HttpResponse { } export interface ListTaskFiles200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -1403,16 +1285,16 @@ export interface ListTaskFilesDefaultResponse extends HttpResponse { } export interface CreateNodeUser201Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded and a new resource has been created as a result. */ @@ -1445,16 +1327,16 @@ export interface DeleteNodeUserDefaultResponse extends HttpResponse { } export interface ReplaceNodeUser200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -1469,14 +1351,14 @@ export interface ReplaceNodeUserDefaultResponse extends HttpResponse { } export interface GetNode200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -1492,16 +1374,16 @@ export interface GetNodeDefaultResponse extends HttpResponse { } export interface RebootNode202Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has been accepted for processing, but processing has not yet completed. */ @@ -1515,41 +1397,17 @@ export interface RebootNodeDefaultResponse extends HttpResponse { body: BatchErrorOutput; } -export interface ReimageNode202Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; +export interface DisableNodeScheduling200Headers { + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; -} - -/** The request has been accepted for processing, but processing has not yet completed. */ -export interface ReimageNode202Response extends HttpResponse { - status: "202"; - headers: RawHttpHeaders & ReimageNode202Headers; -} - -export interface ReimageNodeDefaultResponse extends HttpResponse { - status: string; - body: BatchErrorOutput; -} - -export interface DisableNodeScheduling200Headers { /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ "client-request-id"?: string; /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ "request-id"?: string; - /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ - etag?: string; - /** The time at which the resource was last modified. */ - "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; } /** The request has succeeded. */ @@ -1564,16 +1422,16 @@ export interface DisableNodeSchedulingDefaultResponse extends HttpResponse { } export interface EnableNodeScheduling200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The OData ID of the resource to which the request applied. */ + dataserviceid: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The OData ID of the resource to which the request applied. */ - dataserviceid: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -1588,14 +1446,14 @@ export interface EnableNodeSchedulingDefaultResponse extends HttpResponse { } export interface GetNodeRemoteLoginSettings200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -1611,38 +1469,15 @@ export interface GetNodeRemoteLoginSettingsDefaultResponse body: BatchErrorOutput; } -export interface GetNodeRemoteDesktopFile200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; +export interface UploadNodeLogs200Headers { /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; -} - -/** The request has succeeded. */ -export interface GetNodeRemoteDesktopFile200Response extends HttpResponse { - status: "200"; - body: string; - headers: RawHttpHeaders & GetNodeRemoteDesktopFile200Headers; -} - -export interface GetNodeRemoteDesktopFileDefaultResponse extends HttpResponse { - status: string; - body: BatchErrorOutput; -} - -export interface UploadNodeLogs200Headers { /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ "client-request-id"?: string; /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ "request-id"?: string; - /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ - etag?: string; - /** The time at which the resource was last modified. */ - "last-modified"?: string; } /** The request has succeeded. */ @@ -1658,14 +1493,14 @@ export interface UploadNodeLogsDefaultResponse extends HttpResponse { } export interface ListNodes200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -1681,14 +1516,14 @@ export interface ListNodesDefaultResponse extends HttpResponse { } export interface GetNodeExtension200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -1704,14 +1539,14 @@ export interface GetNodeExtensionDefaultResponse extends HttpResponse { } export interface ListNodeExtensions200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -1745,30 +1580,31 @@ export interface DeleteNodeFileDefaultResponse extends HttpResponse { } export interface GetNodeFile200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The length of the file. */ + "content-length": number; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The file creation time. */ - "ocp-creation-time"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; /** Whether the object represents a directory. */ "ocp-batch-file-isdirectory": boolean; - /** The URL of the file. */ - "ocp-batch-file-url": string; /** The file mode attribute in octal format. */ "ocp-batch-file-mode": string; - /** The length of the file. */ - "content-length": number; + /** The URL of the file. */ + "ocp-batch-file-url": string; + /** The file creation time. */ + "ocp-creation-time"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ export interface GetNodeFile200Response extends HttpResponse { status: "200"; - body: string; + /** Value may contain any sequence of octets */ + body: Uint8Array; headers: RawHttpHeaders & GetNodeFile200Headers; } @@ -1778,24 +1614,24 @@ export interface GetNodeFileDefaultResponse extends HttpResponse { } export interface GetNodeFileProperties200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; + /** The length of the file. */ + "content-length": number; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; - /** The file creation time. */ - "ocp-creation-time"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; /** Whether the object represents a directory. */ "ocp-batch-file-isdirectory": boolean; - /** The URL of the file. */ - "ocp-batch-file-url": string; /** The file mode attribute in octal format. */ "ocp-batch-file-mode": string; - /** The length of the file. */ - "content-length": number; + /** The URL of the file. */ + "ocp-batch-file-url": string; + /** The file creation time. */ + "ocp-creation-time"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ @@ -1810,14 +1646,14 @@ export interface GetNodeFilePropertiesDefaultResponse extends HttpResponse { } export interface ListNodeFiles200Headers { - /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ - "client-request-id"?: string; - /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ - "request-id"?: string; /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */ etag?: string; /** The time at which the resource was last modified. */ "last-modified"?: string; + /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */ + "client-request-id"?: string; + /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */ + "request-id"?: string; } /** The request has succeeded. */ diff --git a/packages/service/src/internal/batch-rest/generated/tsp-location.yaml b/packages/service/src/internal/batch-rest/generated/tsp-location.yaml index 520084cd7..ed5de1e9e 100644 --- a/packages/service/src/internal/batch-rest/generated/tsp-location.yaml +++ b/packages/service/src/internal/batch-rest/generated/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/batch/Azure.Batch -commit: e4b9c403b879114eabb38f23071161e5a6cd508e -repo: wiboris/azure-rest-api-specs +commit: 0f8dd4b5c25cb379c87b85a97ddac2e4969da604 +repo: Azure/azure-rest-api-specs additionalDirectories: diff --git a/util/common-config/jest-common.js b/util/common-config/jest-common.js index a83c5ec3e..ab92df244 100644 --- a/util/common-config/jest-common.js +++ b/util/common-config/jest-common.js @@ -45,7 +45,10 @@ module.exports = { ["cobertura", { file: "cobertura.xml" }], ], moduleDirectories: ["src", "node_modules"], - moduleNameMapper: {}, + moduleNameMapper: { + // batch RLC generates import has .js extension, so we need to remove it in test + "(.+)\\.js": "$1", + }, reporters: [ "default", [