diff --git a/sdk/batch/batch/LICENSE b/sdk/batch/batch/LICENSE new file mode 100644 index 000000000000..ccb63b166732 --- /dev/null +++ b/sdk/batch/batch/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2021 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/sdk/batch/batch/README.md b/sdk/batch/batch/README.md index b1ca61c0b848..bf64d8444387 100644 --- a/sdk/batch/batch/README.md +++ b/sdk/batch/batch/README.md @@ -1,111 +1,98 @@ -## Azure BatchServiceClient SDK for JavaScript +# Azure BatchService client library for JavaScript -This package contains an isomorphic SDK for BatchServiceClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure BatchService client. + +A client for issuing REST requests to the Azure Batch service. + +[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/batch/batch) | +[Package (NPM)](https://www.npmjs.com/package/@azure/batch) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/batch?view=azure-node-preview) | +[Samples](https://github.com/Azure-Samples/azure-samples-js-management) + +## Getting started ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. + +### Prerequisites + +- An [Azure subscription][azure_sub]. -See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details. +### Install the `@azure/batch` package -### How to Install +Install the Azure BatchService client library for JavaScript with `npm`: ```bash npm install @azure/batch ``` -### How to use +### Create and authenticate a `BatchServiceClient` -#### nodejs - Authentication, client creation and list application as an example written in TypeScript. +To create a client object to access the Azure BatchService API, you will need the `endpoint` of your Azure BatchService resource and a `credential`. The Azure BatchService client can use Azure Active Directory credentials to authenticate. +You can find the endpoint for your Azure BatchService resource in the [Azure Portal][azure_portal]. -##### Install @azure/ms-rest-nodeauth +You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token). + +To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package: ```bash -npm install @azure/ms-rest-nodeauth +npm install @azure/identity ``` -##### Authentication +You will also need to **register a new AAD application and grant access to Azure BatchService** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). +Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. -1. Use the `BatchSharedKeyCredentials` exported from `@azure/batch`. +For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). -```typescript -import { BatchServiceClient, BatchSharedKeyCredentials } from "@azure/batch"; +```javascript +const { BatchServiceClient } = require("@azure/batch"); +const { DefaultAzureCredential } = require("@azure/identity"); +const subscriptionId = "00000000-0000-0000-0000-000000000000"; +const client = new BatchServiceClient(new DefaultAzureCredential(), subscriptionId); +``` -const batchAccountName = process.env["AZURE_BATCH_ACCOUNT_NAME"] || ""; -const batchAccountKey = process.env["AZURE_BATCH_ACCOUNT_KEY"] || ""; -const batchEndpoint = process.env["AZURE_BATCH_ENDPOINT"] || ""; -async function main(): Promise { - try { - const creds = new BatchSharedKeyCredentials(batchAccountName, batchAccountKey); - const client = new BatchServiceClient(creds, batchEndpoint); - } catch (err) { - console.log(err); - } -} -``` +### JavaScript Bundle +To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). -2. Use the `MSIVmTokenCredentials` exported from `@azure/ms-rest-nodeauth`. +## Key concepts -```typescript -import { BatchServiceClient } from "@azure/batch"; -import { loginWithVmMSI } from "@azure/ms-rest-nodeauth"; +### BatchServiceClient -const batchEndpoint = process.env["AZURE_BATCH_ENDPOINT"] || ""; +`BatchServiceClient` is the primary interface for developers using the Azure BatchService client library. Explore the methods on this client object to understand the different features of the Azure BatchService service that you can access. -async function main(): Promise { - try { - const creds = await loginWithVmMSI({ - resource: "https://batch.core.windows.net/" - }); - const client = new BatchServiceClient(creds, batchEndpoint); - } catch (err) { - console.log(err); - } -} -``` +## Troubleshooting -##### Sample code - -```typescript -import { BatchServiceClient, BatchServiceModels, BatchSharedKeyCredentials } from "@azure/batch"; - -const batchAccountName = process.env["AZURE_BATCH_ACCOUNT_NAME"] || ""; -const batchAccountKey = process.env["AZURE_BATCH_ACCOUNT_KEY"] || ""; -const batchEndpoint = process.env["AZURE_BATCH_ENDPOINT"] || ""; - -const creds = new BatchSharedKeyCredentials(batchAccountName, batchAccountKey); -const client = new BatchServiceClient(creds, batchEndpoint); - -const options: BatchServiceModels.JobListOptionalParams = { - jobListOptions: { maxResults: 10 } -}; - -async function loop(res: BatchServiceModels.JobListResponse, nextLink?: string): Promise { - if (nextLink !== undefined) { - const res1 = await client.job.listNext(nextLink); - if (res1.length) { - for (const item of res1) { - res.push(item); - } - } - return loop(res, res1.odatanextLink); - } - return Promise.resolve(); -} - -async function main(): Promise { - const result = await client.job.list(options); - await loop(result, result.odatanextLink); - console.dir(result, { depth: null, colors: true }); -} - -main().catch((err) => console.log("An error occurred: ", err)); +### Logging + +Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`: + +```javascript +const { setLogLevel } = require("@azure/logger"); +setLogLevel("info"); ``` +For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger). + +## Next steps + +Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library. + +## Contributing + +If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code. + ## Related projects -- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fbatch%2Fbatch%2FREADME.png) + +[azure_cli]: https://docs.microsoft.com/cli/azure +[azure_sub]: https://azure.microsoft.com/free/ +[azure_sub]: https://azure.microsoft.com/free/ +[azure_portal]: https://portal.azure.com +[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity +[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential diff --git a/sdk/batch/batch/api-extractor.json b/sdk/batch/batch/api-extractor.json new file mode 100644 index 000000000000..d433ebe56ba4 --- /dev/null +++ b/sdk/batch/batch/api-extractor.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", + "docModel": { "enabled": true }, + "apiReport": { "enabled": true, "reportFolder": "./review" }, + "dtsRollup": { + "enabled": true, + "untrimmedFilePath": "", + "publicTrimmedFilePath": "./types/batch.d.ts" + }, + "messages": { + "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "extractorMessageReporting": { + "ae-missing-release-tag": { "logLevel": "none" }, + "ae-unresolved-link": { "logLevel": "none" } + } + } +} diff --git a/sdk/batch/batch/package.json b/sdk/batch/batch/package.json index 0e58fe964859..0fa09992410a 100644 --- a/sdk/batch/batch/package.json +++ b/sdk/batch/batch/package.json @@ -1,110 +1,89 @@ { "name": "@azure/batch", + "sdk-type": "mgmt", "author": "Microsoft Corporation", - "description": "BatchServiceClient Library with typescript type definitions for node.js and browser.", - "version": "10.0.2", + "description": "A generated SDK for BatchServiceClient.", + "version": "1.0.0-beta.1", + "engines": { "node": ">=12.0.0" }, "dependencies": { - "@azure/ms-rest-azure-js": "^2.1.0", - "@azure/ms-rest-js": "^2.2.0", - "jssha": "^3.2.0", - "tslib": "^1.10.0", - "url-parse": "^1.5.3" + "@azure/core-paging": "^1.2.0", + "@azure/core-client": "^1.0.0", + "@azure/core-auth": "^1.3.0", + "@azure/core-rest-pipeline": "^1.1.0", + "tslib": "^2.2.0" }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], + "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], "license": "MIT", - "main": "./dist/batch.js", - "module": "./esm/batchServiceClient.js", - "types": "./types/src/index.d.ts", + "main": "./dist/index.js", + "module": "./dist-esm/src/index.js", + "types": "./types/batch.d.ts", "devDependencies": { - "@types/chai": "^4.2.21", - "@types/chai-as-promised": "^7.1.4", - "@types/mocha": "^9.0.0", - "@types/node": "^16.4.7", - "@types/url-parse": "^1.4.3", - "@types/uuid": "^8.3.1", - "chai": "^4.3.4", - "chai-as-promised": "^7.1.1", - "cross-env": "^7.0.3", - "dotenv": "^10.0.0", - "eslint": "^7.31.0", - "esm": "^3.2.25", - "karma": "^6.3.4", - "karma-chrome-launcher": "^3.1.0", - "karma-coverage": "^2.0.3", - "karma-edge-launcher": "^0.4.2", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^2.1.1", - "karma-ie-launcher": "^1.0.0", - "karma-json-preprocessor": "^0.3.3", - "karma-json-to-file-reporter": "^1.0.1", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "@azure/identity": "^2.0.1", - "mocha": "^8.3.0", - "mocha-junit-reporter": "^2.0.0", - "moment": "^2.29.1", - "nyc": "^15.1.0", - "puppeteer": "^10.1.0", - "rimraf": "^3.0.2", + "@microsoft/api-extractor": "^7.18.11", + "@rollup/plugin-commonjs": "11.0.2", + "@rollup/plugin-json": "^4.0.0", + "@rollup/plugin-multi-entry": "^3.0.0", + "@rollup/plugin-node-resolve": "^8.0.0", + "mkdirp": "^1.0.4", "rollup": "^1.16.3", - "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", - "source-map-support": "^0.5.19", - "ts-node-dev": "^1.1.8", - "typescript": "^3.9.10", - "uglify-js": "^3.6.0", - "uuid": "^8.3.2" + "typescript": "~4.2.0", + "uglify-js": "^3.4.9", + "rimraf": "^3.0.0", + "@azure/identity": "^2.0.1", + "@azure-tools/test-recorder": "^1.0.0", + "mocha": "^7.1.1", + "cross-env": "^7.0.2" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/batch/batch", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" }, - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, + "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ - "dist/", - "dist-esm/src/", - "types/src/", + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "dist-esm/**/*.js", + "dist-esm/**/*.js.map", + "dist-esm/**/*.d.ts", + "dist-esm/**/*.d.ts.map", + "src/**/*.ts", "README.md", - "LICENSE" + "LICENSE", + "rollup.config.js", + "tsconfig.json", + "review/*", + "CHANGELOG.md", + "types/*" ], "scripts": { - "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", - "build:browser": "tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1", - "build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1", - "build:nodebrowser": "rollup -c 2>&1", - "build:samples": "echo Obsolete.", - "build:test": "tsc -p . && rollup -c 2>&1", - "build:types": "downlevel-dts types/latest types/3.1", - "build": "npm run clean && tsc -p . && npm run build:nodebrowser", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", - "clean": "rimraf dist dist-* temp types *.tgz *.log", - "docs": "typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src", - "execute:samples": "dev-tool samples run samples-dev", - "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", - "integration-test:browser": "karma start --single-run", - "integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}/*.spec.js\"", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", - "lint": "eslint package.json api-extractor.json src test --ext .ts", + "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api", + "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "prepack": "npm run build", "pack": "npm pack 2>&1", - "prepack": "npm install && npm run build", - "test:browser": "npm run build:test && npm run unit-test:browser && npm run integration-test:browser", - "test:node": "npm run build:test && npm run unit-test:node && npm run integration-test:node", - "test": "npm run build:test && npm run unit-test && npm run integration-test", - "unit-test:browser": "karma start --single-run", - "unit-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace \"test/{,!(browser)/**/}/*.spec.ts\"", - "unit-test": "npm run unit-test:node && npm run unit-test:browser" + "extract-api": "api-extractor run --local", + "lint": "echo skipped", + "audit": "echo skipped", + "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "build:node": "echo skipped", + "build:browser": "echo skipped", + "build:test": "echo skipped", + "build:samples": "echo skipped.", + "check-format": "echo skipped", + "execute:samples": "echo skipped", + "format": "echo skipped", + "test": "npm run integration-test", + "test:node": "echo skipped", + "test:browser": "echo skipped", + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", + "unit-test:browser": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js", + "integration-test:browser": "echo skipped", + "docs": "echo skipped" }, "sideEffects": false, "autoPublish": true diff --git a/sdk/batch/batch/rollup.config.js b/sdk/batch/batch/rollup.config.js index b3fe275fbd4d..9be1955eb7f1 100644 --- a/sdk/batch/batch/rollup.config.js +++ b/sdk/batch/batch/rollup.config.js @@ -1,30 +1,188 @@ -import nodeResolve from "rollup-plugin-node-resolve"; -import sourcemaps from "rollup-plugin-sourcemaps"; - -/** - * @type {rollup.RollupFileOptions} - */ -const config = { - input: "./dist-esm/src/batchServiceClient.js", - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], - output: { - file: "./dist/batch.js", - format: "umd", - name: "Azure.Batch", - sourcemap: true, - globals: { - "@azure/ms-rest-js": "msRest", - "@azure/ms-rest-azure-js": "msRestAzure" - }, - banner: `/* +/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */` - }, - plugins: [nodeResolve({ mainFields: ["module", "main"] }), sourcemaps()] + */ + +import nodeResolve from "@rollup/plugin-node-resolve"; +import cjs from "@rollup/plugin-commonjs"; +import sourcemaps from "rollup-plugin-sourcemaps"; +import multiEntry from "@rollup/plugin-multi-entry"; +import json from "@rollup/plugin-json"; + +import nodeBuiltins from "builtin-modules"; + +/** + * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api. + * + * NOTE: this manual configuration is only needed because OpenTelemetry uses an + * __exportStar downleveled helper function to declare its exports which confuses + * rollup's automatic discovery mechanism. + * + * @returns an object reference that can be `...`'d into your cjs() configuration. + */ +export function openTelemetryCommonJs() { + const namedExports = {}; + + for (const key of [ + "@opentelemetry/api", + "@azure/core-tracing/node_modules/@opentelemetry/api" + ]) { + namedExports[key] = [ + "SpanKind", + "TraceFlags", + "getSpan", + "setSpan", + "SpanStatusCode", + "getSpanContext", + "setSpanContext" + ]; + } + + const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"]; + + for (const version of releasedOpenTelemetryVersions) { + namedExports[ + // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path. + `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js` + ] = [ + "SpanKind", + "TraceFlags", + "getSpan", + "setSpan", + "StatusCode", + "CanonicalCode", + "getSpanContext", + "setSpanContext" + ]; + } + + return namedExports; +} + +// #region Warning Handler + +/** + * A function that can determine whether a rollupwarning should be ignored. If + * the function returns `true`, then the warning will not be displayed. + */ + +function ignoreNiseSinonEvalWarnings(warning) { + return ( + warning.code === "EVAL" && + warning.id && + (warning.id.includes("node_modules/nise") || + warning.id.includes("node_modules/sinon")) === true + ); +} + +function ignoreChaiCircularDependencyWarnings(warning) { + return ( + warning.code === "CIRCULAR_DEPENDENCY" && + warning.importer && warning.importer.includes("node_modules/chai") === true + ); +} + +const warningInhibitors = [ + ignoreChaiCircularDependencyWarnings, + ignoreNiseSinonEvalWarnings +]; + +/** + * Construct a warning handler for the shared rollup configuration + * that ignores certain warnings that are not relevant to testing. + */ +function makeOnWarnForTesting() { + return (warning, warn) => { + // If every inhibitor returns false (i.e. no inhibitors), then show the warning + if (warningInhibitors.every((inhib) => !inhib(warning))) { + warn(warning); + } + }; +} + +// #endregion + +function makeBrowserTestConfig() { + const config = { + input: { + include: ["dist-esm/test/**/*.spec.js"], + exclude: ["dist-esm/test/**/node/**"] + }, + output: { + file: `dist-test/index.browser.js`, + format: "umd", + sourcemap: true + }, + preserveSymlinks: false, + plugins: [ + multiEntry({ exports: false }), + nodeResolve({ + mainFields: ["module", "browser"] + }), + cjs({ + namedExports: { + // Chai's strange internal architecture makes it impossible to statically + // analyze its exports. + chai: [ + "version", + "use", + "util", + "config", + "expect", + "should", + "assert" + ], + ...openTelemetryCommonJs() + } + }), + json(), + sourcemaps() + //viz({ filename: "dist-test/browser-stats.html", sourcemap: true }) + ], + onwarn: makeOnWarnForTesting(), + // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0, + // rollup started respecting the "sideEffects" field in package.json. Since + // our package.json sets "sideEffects=false", this also applies to test + // code, which causes all tests to be removed by tree-shaking. + treeshake: false + }; + + return config; +} + +const defaultConfigurationOptions = { + disableBrowserBundle: false }; -export default config; +export function makeConfig(pkg, options) { + options = { + ...defaultConfigurationOptions, + ...(options || {}) + }; + + const baseConfig = { + // Use the package's module field if it has one + input: pkg["module"] || "dist-esm/src/index.js", + external: [ + ...nodeBuiltins, + ...Object.keys(pkg.dependencies), + ...Object.keys(pkg.devDependencies) + ], + output: { file: "dist/index.js", format: "cjs", sourcemap: true }, + preserveSymlinks: false, + plugins: [sourcemaps(), nodeResolve(), cjs()] + }; + + const config = [baseConfig]; + + if (!options.disableBrowserBundle) { + config.push(makeBrowserTestConfig()); + } + + return config; +} + +export default makeConfig(require("./package.json")); diff --git a/sdk/batch/batch/src/batchServiceClient.ts b/sdk/batch/batch/src/batchServiceClient.ts index 1dd10ce9395d..36474c63a08a 100644 --- a/sdk/batch/batch/src/batchServiceClient.ts +++ b/sdk/batch/batch/src/batchServiceClient.ts @@ -3,61 +3,111 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "./models"; -import * as Mappers from "./models/mappers"; -import * as operations from "./operations"; -import { BatchServiceClientContext } from "./batchServiceClientContext"; - -class BatchServiceClient extends BatchServiceClientContext { - // Operation groups - application: operations.Application; - pool: operations.Pool; - account: operations.Account; - job: operations.Job; - certificate: operations.CertificateOperations; - file: operations.File; - jobSchedule: operations.JobSchedule; - task: operations.Task; - computeNode: operations.ComputeNodeOperations; - computeNodeExtension: operations.ComputeNodeExtension; +import * as coreClient from "@azure/core-client"; +import * as coreAuth from "@azure/core-auth"; +import { + ApplicationImpl, + PoolImpl, + AccountImpl, + JobImpl, + CertificateOperationsImpl, + FileImpl, + JobScheduleImpl, + TaskImpl, + ComputeNodeOperationsImpl, + ComputeNodeExtensionImpl +} from "./operations"; +import { + Application, + Pool, + Account, + Job, + CertificateOperations, + File, + JobSchedule, + Task, + ComputeNodeOperations, + ComputeNodeExtension +} from "./operationsInterfaces"; +import { BatchServiceClientOptionalParams } from "./models"; + +export class BatchServiceClient extends coreClient.ServiceClient { + batchUrl: string; + apiVersion: string; /** * Initializes a new instance of the BatchServiceClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Subscription credentials which uniquely identify client subscription. * @param batchUrl The base URL for all Azure Batch service requests. - * @param [options] The parameter options + * @param options The parameter options */ constructor( - credentials: msRest.ServiceClientCredentials, + credentials: coreAuth.TokenCredential, batchUrl: string, - options?: msRestAzure.AzureServiceClientOptions + options?: BatchServiceClientOptionalParams ) { - super(credentials, batchUrl, options); - this.application = new operations.Application(this); - this.pool = new operations.Pool(this); - this.account = new operations.Account(this); - this.job = new operations.Job(this); - this.certificate = new operations.CertificateOperations(this); - this.file = new operations.File(this); - this.jobSchedule = new operations.JobSchedule(this); - this.task = new operations.Task(this); - this.computeNode = new operations.ComputeNodeOperations(this); - this.computeNodeExtension = new operations.ComputeNodeExtension(this); - } -} + if (credentials === undefined) { + throw new Error("'credentials' cannot be null"); + } + if (batchUrl === undefined) { + throw new Error("'batchUrl' cannot be null"); + } + + // Initializing default values for options + if (!options) { + options = {}; + } + const defaults: BatchServiceClientOptionalParams = { + requestContentType: "application/json; charset=utf-8", + credential: credentials + }; -// Operation Specifications + const packageDetails = `azsdk-js-batch/1.0.0-beta.1`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` + : `${packageDetails}`; -export { - BatchServiceClient, - BatchServiceClientContext, - Models as BatchServiceModels, - Mappers as BatchServiceMappers -}; -export * from "./operations"; + if (!options.credentialScopes) { + options.credentialScopes = ["https://management.azure.com/.default"]; + } + const optionsWithDefaults = { + ...defaults, + ...options, + userAgentOptions: { + userAgentPrefix + }, + baseUri: options.endpoint || "{batchUrl}" + }; + super(optionsWithDefaults); + // Parameter assignments + this.batchUrl = batchUrl; + + // Assigning values to Constant parameters + this.apiVersion = options.apiVersion || "2022-01-01.15.0"; + this.application = new ApplicationImpl(this); + this.pool = new PoolImpl(this); + this.account = new AccountImpl(this); + this.job = new JobImpl(this); + this.certificateOperations = new CertificateOperationsImpl(this); + this.file = new FileImpl(this); + this.jobSchedule = new JobScheduleImpl(this); + this.task = new TaskImpl(this); + this.computeNodeOperations = new ComputeNodeOperationsImpl(this); + this.computeNodeExtension = new ComputeNodeExtensionImpl(this); + } + + application: Application; + pool: Pool; + account: Account; + job: Job; + certificateOperations: CertificateOperations; + file: File; + jobSchedule: JobSchedule; + task: Task; + computeNodeOperations: ComputeNodeOperations; + computeNodeExtension: ComputeNodeExtension; +} diff --git a/sdk/batch/batch/src/batchServiceClientContext.ts b/sdk/batch/batch/src/batchServiceClientContext.ts deleted file mode 100644 index f7ea50c697a5..000000000000 --- a/sdk/batch/batch/src/batchServiceClientContext.ts +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; - -const packageName = "@azure/batch"; -const packageVersion = "10.0.2"; - -export class BatchServiceClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - apiVersion?: string; - batchUrl: string; - - /** - * Initializes a new instance of the BatchServiceClient class. - * @param credentials Credentials needed for the client to connect to Azure. - * @param batchUrl The base URL for all Azure Batch service requests. - * @param [options] The parameter options - */ - constructor( - credentials: msRest.ServiceClientCredentials, - batchUrl: string, - options?: msRestAzure.AzureServiceClientOptions - ) { - if (credentials == undefined) { - throw new Error("'credentials' cannot be null."); - } - if (batchUrl == undefined) { - throw new Error("'batchUrl' cannot be null."); - } - - if (!options) { - options = {}; - } - if (!options.userAgent) { - const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); - options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; - } - - super(credentials, options); - - this.apiVersion = "2021-06-01.14.0"; - this.acceptLanguage = "en-US"; - this.longRunningOperationRetryTimeout = 30; - this.baseUri = "{batchUrl}"; - this.requestContentType = "application/json; charset=utf-8"; - this.credentials = credentials; - this.batchUrl = batchUrl; - - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { - this.acceptLanguage = options.acceptLanguage; - } - if ( - options.longRunningOperationRetryTimeout !== null && - options.longRunningOperationRetryTimeout !== undefined - ) { - this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; - } - } -} diff --git a/sdk/batch/batch/src/batchSharedKeyCredentials.ts b/sdk/batch/batch/src/batchSharedKeyCredentials.ts deleted file mode 100644 index 8507f13f77c1..000000000000 --- a/sdk/batch/batch/src/batchSharedKeyCredentials.ts +++ /dev/null @@ -1,203 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - */ - -import { - Constants, - WebResource, - ServiceClientCredentials, - HttpHeadersLike, - HttpMethods -} from "@azure/ms-rest-js"; -import { HmacSha256Sign } from "./hmacSha256"; -import url from "url-parse"; -import { Buffer } from "buffer"; - -/** - * Creates a new BatchSharedKeyCredentials object. - * @constructor - * @param accountName The batch account name. - * @param accountKey The batch account key. - */ -export class BatchSharedKeyCredentials implements ServiceClientCredentials { - /** - * The batch account name. - */ - accountName: string; - /** - * The batch account key. - */ - accountKey: string; - - private _signer: HmacSha256Sign; - - constructor(accountName: string, accountKey: string) { - if (!accountName || typeof accountName.valueOf() !== "string") { - throw new Error("accountName must be a non empty string."); - } - - if (!accountKey || typeof accountKey.valueOf() !== "string") { - throw new Error("accountKey must be a non empty string."); - } - this.accountName = accountName; - this.accountKey = accountKey; - this._signer = new HmacSha256Sign(accountKey); - } - - /** - * Signs a request with the Authentication header. - * - * @param {webResource} The WebResource to be signed. - * @param {function(error)} callback The callback function. - * @return {undefined} - */ - signRequest(webResource: WebResource): Promise { - // Help function to get header value, if header without value, append a newline - function getvalueToAppend(value: HttpHeadersLike, headerName: string): string { - if (!value || !value.get(headerName)) { - return "\n"; - } else { - return value.get(headerName) + "\n"; - } - } - - // Help function to get content length - function getContentLengthToAppend( - value: HttpHeadersLike, - method: HttpMethods, - body: any - ): string { - if (!value || !value.get("Content-Length")) { - // Get content length from body if available - if (body) { - return Buffer.byteLength(body) + "\n"; - } - // For GET verb, do not add content-length - if (method === "POST") { - return "0\n"; - } else { - return "\n"; - } - } else { - return value.get("Content-Length") + "\n"; - } - } - - // Set Headers - if (!webResource.headers.get("ocp-date")) { - webResource.headers.set("ocp-date", new Date().toUTCString()); - } - - // Add verb and standard HTTP header as single line - let stringToSign = - webResource.method + - "\n" + - getvalueToAppend(webResource.headers, "Content-Encoding") + - getvalueToAppend(webResource.headers, "Content-Language") + - getContentLengthToAppend(webResource.headers, webResource.method, webResource.body) + - getvalueToAppend(webResource.headers, "Content-MD5") + - getvalueToAppend(webResource.headers, "Content-Type") + - getvalueToAppend(webResource.headers, "Date") + - getvalueToAppend(webResource.headers, "If-Modified-Since") + - getvalueToAppend(webResource.headers, "If-Match") + - getvalueToAppend(webResource.headers, "If-None-Match") + - getvalueToAppend(webResource.headers, "If-Unmodified-Since") + - getvalueToAppend(webResource.headers, "Range"); - - // Add customize HTTP header - stringToSign += this._getCanonicalizedHeaders(webResource); - - // Add path/query from uri - stringToSign += this._getCanonicalizedResource(webResource); - - // Signed with sha256 - const signature = this._signer.sign(stringToSign); - - // Add authrization header - webResource.headers.set( - Constants.HeaderConstants.AUTHORIZATION, - `SharedKey ${this.accountName}:${signature}` - ); - return Promise.resolve(webResource); - } - - /* - * Constructs the Canonicalized Headers string. - * - * To construct the CanonicalizedHeaders portion of the signature string, - * follow these steps: 1. Retrieve all headers for the resource that begin - * with ocp-, including the ocp-date header. 2. Convert each HTTP header - * name to lowercase. 3. Sort the headers lexicographically by header name, - * in ascending order. Each header may appear only once in the - * string. 4. Unfold the string by replacing any breaking white space with a - * single space. 5. Trim any white space around the colon in the header. 6. - * Finally, append a new line character to each canonicalized header in the - * resulting list. Construct the CanonicalizedHeaders string by - * concatenating all headers in this list into a single string. - * - * @param The WebResource object. - * @return The canonicalized headers. - */ - private _getCanonicalizedHeaders(webResource: WebResource): string { - // Build canonicalized headers - let canonicalizedHeaders = ""; - if (webResource.headers) { - const canonicalizedHeadersArray = []; - - // Retrieve all headers for begin with ocp- - for (const header of webResource.headers.headerNames()) { - if (header.indexOf("ocp-") === 0) { - canonicalizedHeadersArray.push(header); - } - } - - // Sort the header by header name - canonicalizedHeadersArray.sort(); - for (const currentHeader of canonicalizedHeadersArray) { - const value = webResource.headers.get(currentHeader); - if (value) { - // Make header value lower case and apend a new line for each header - canonicalizedHeaders += currentHeader.toLowerCase() + ":" + value + "\n"; - } - } - } - - return canonicalizedHeaders; - } - - /* - * Retrieves the webresource's canonicalized resource string. - * @param webResource The webresource to get the canonicalized resource string from. - * @return The canonicalized resource string. - */ - private _getCanonicalizedResource(webResource: WebResource): string { - let path = "/"; - const urlstring = url(webResource.url, true); - if (urlstring.pathname) { - path = urlstring.pathname; - } - - let canonicalizedResource = "/" + this.accountName + path; - - // Get the raw query string values for signing - const queryStringValues = urlstring.query; - - // Build the canonicalized resource by sorting the values by name. - if (queryStringValues) { - let paramNames: string[] = []; - Object.keys(queryStringValues).forEach((n) => { - return paramNames.push(n); - }); - - // All the queries sorted by query name - paramNames = paramNames.sort(); - for (const name of paramNames) { - canonicalizedResource += "\n" + name + ":" + queryStringValues[name]; - } - } - - return canonicalizedResource; - } -} diff --git a/sdk/batch/batch/src/hmacSha256.ts b/sdk/batch/batch/src/hmacSha256.ts deleted file mode 100644 index 2667126c4313..000000000000 --- a/sdk/batch/batch/src/hmacSha256.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - */ - -import jssha from "jssha"; -import { Buffer } from "buffer"; - -/** - * Describes the HmacSHA256Sign object. - */ -export class HmacSha256Sign { - private _accessKey: string; - private _decodedAccessKey: Buffer; - - constructor(accessKey: string) { - this._accessKey = accessKey; - this._decodedAccessKey = Buffer.from(this._accessKey, "base64"); - } - - /** - * Computes a signature for the specified string using the HMAC-SHA256 algorithm. - * - * @param stringToSign The UTF-8-encoded string to sign. - * @return A String that contains the HMAC-SHA256-encoded signature. - */ - sign(stringToSign: string): string { - // Encoding the Signature - // Signature=Base64(HMAC-SHA256(UTF8(StringToSign))) - const shaObj = new jssha("SHA-256", "ARRAYBUFFER"); - shaObj.setHMACKey(this._decodedAccessKey, "ARRAYBUFFER"); - shaObj.update(Buffer.from(stringToSign, "utf8")); - return shaObj.getHMAC("B64"); - } -} diff --git a/sdk/batch/batch/src/index.ts b/sdk/batch/batch/src/index.ts index ae4c66bf330b..f89fe4a770f6 100644 --- a/sdk/batch/batch/src/index.ts +++ b/sdk/batch/batch/src/index.ts @@ -1,9 +1,12 @@ /* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./batchServiceClient" -export * from "./operations"; +/// export * from "./models"; -export * from "./batchSharedKeyCredentials" \ No newline at end of file +export { BatchServiceClient } from "./batchServiceClient"; +export * from "./operationsInterfaces"; diff --git a/sdk/batch/batch/src/models/accountMappers.ts b/sdk/batch/batch/src/models/accountMappers.ts deleted file mode 100644 index 3b57da9e56a4..000000000000 --- a/sdk/batch/batch/src/models/accountMappers.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AccountListPoolNodeCountsHeaders, - AccountListSupportedImagesHeaders, - AccountListSupportedImagesResult, - BatchError, - BatchErrorDetail, - ErrorMessage, - ImageInformation, - ImageReference, - NodeCounts, - PoolNodeCounts, - PoolNodeCountsListResult -} from "../models/mappers"; diff --git a/sdk/batch/batch/src/models/applicationMappers.ts b/sdk/batch/batch/src/models/applicationMappers.ts deleted file mode 100644 index 4df8f7d59e1b..000000000000 --- a/sdk/batch/batch/src/models/applicationMappers.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - ApplicationGetHeaders, - ApplicationListHeaders, - ApplicationListResult, - ApplicationSummary, - BatchError, - BatchErrorDetail, - ErrorMessage -} from "../models/mappers"; diff --git a/sdk/batch/batch/src/models/certificateOperationsMappers.ts b/sdk/batch/batch/src/models/certificateOperationsMappers.ts deleted file mode 100644 index 2e14bc9a8cd6..000000000000 --- a/sdk/batch/batch/src/models/certificateOperationsMappers.ts +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - BatchError, - BatchErrorDetail, - Certificate, - CertificateAddHeaders, - CertificateAddParameter, - CertificateCancelDeletionHeaders, - CertificateDeleteHeaders, - CertificateGetHeaders, - CertificateListHeaders, - CertificateListResult, - DeleteCertificateError, - ErrorMessage, - NameValuePair -} from "../models/mappers"; diff --git a/sdk/batch/batch/src/models/computeNodeExtensionMappers.ts b/sdk/batch/batch/src/models/computeNodeExtensionMappers.ts deleted file mode 100644 index 3ad76a0a8524..000000000000 --- a/sdk/batch/batch/src/models/computeNodeExtensionMappers.ts +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - BatchError, - BatchErrorDetail, - ComputeNodeExtensionGetHeaders, - ComputeNodeExtensionListHeaders, - ErrorMessage, - InstanceViewStatus, - NodeVMExtension, - NodeVMExtensionList, - VMExtension, - VMExtensionInstanceView -} from "../models/mappers"; diff --git a/sdk/batch/batch/src/models/computeNodeOperationsMappers.ts b/sdk/batch/batch/src/models/computeNodeOperationsMappers.ts deleted file mode 100644 index 5b272042940b..000000000000 --- a/sdk/batch/batch/src/models/computeNodeOperationsMappers.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutoUserSpecification, - BatchError, - BatchErrorDetail, - CertificateReference, - ComputeNode, - ComputeNodeAddUserHeaders, - ComputeNodeDeleteUserHeaders, - ComputeNodeDisableSchedulingHeaders, - ComputeNodeEnableSchedulingHeaders, - ComputeNodeEndpointConfiguration, - ComputeNodeError, - ComputeNodeGetHeaders, - ComputeNodeGetRemoteDesktopHeaders, - ComputeNodeGetRemoteLoginSettingsHeaders, - ComputeNodeGetRemoteLoginSettingsResult, - ComputeNodeIdentityReference, - ComputeNodeListHeaders, - ComputeNodeListResult, - ComputeNodeRebootHeaders, - ComputeNodeReimageHeaders, - ComputeNodeUpdateUserHeaders, - ComputeNodeUploadBatchServiceLogsHeaders, - ComputeNodeUser, - ContainerRegistry, - EnvironmentSetting, - ErrorMessage, - ImageReference, - InboundEndpoint, - NameValuePair, - NodeAgentInformation, - NodeDisableSchedulingParameter, - NodeRebootParameter, - NodeReimageParameter, - NodeUpdateUserParameter, - ResourceFile, - StartTask, - StartTaskInformation, - TaskContainerExecutionInformation, - TaskContainerSettings, - TaskExecutionInformation, - TaskFailureInformation, - TaskInformation, - UploadBatchServiceLogsConfiguration, - UploadBatchServiceLogsResult, - UserIdentity, - VirtualMachineInfo -} from "../models/mappers"; diff --git a/sdk/batch/batch/src/models/fileMappers.ts b/sdk/batch/batch/src/models/fileMappers.ts deleted file mode 100644 index 312d43efdd61..000000000000 --- a/sdk/batch/batch/src/models/fileMappers.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - BatchError, - BatchErrorDetail, - ErrorMessage, - FileDeleteFromComputeNodeHeaders, - FileDeleteFromTaskHeaders, - FileGetFromComputeNodeHeaders, - FileGetFromTaskHeaders, - FileGetPropertiesFromComputeNodeHeaders, - FileGetPropertiesFromTaskHeaders, - FileListFromComputeNodeHeaders, - FileListFromTaskHeaders, - FileProperties, - NodeFile, - NodeFileListResult -} from "../models/mappers"; diff --git a/sdk/batch/batch/src/models/index.ts b/sdk/batch/batch/src/models/index.ts index 6fb04fd758a8..34f5bccc814d 100644 --- a/sdk/batch/batch/src/models/index.ts +++ b/sdk/batch/batch/src/models/index.ts @@ -6,14152 +6,5869 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { BaseResource, CloudError } from "@azure/ms-rest-azure-js"; -import * as msRest from "@azure/ms-rest-js"; +import * as coreClient from "@azure/core-client"; -export { BaseResource, CloudError }; +/** The result of listing the applications available in an Account. */ +export interface ApplicationListResult { + /** The list of applications available in the Account. */ + value?: ApplicationSummary[]; + /** The URL to get the next set of results. */ + odataNextLink?: string; +} -/** - * An interface representing PoolUsageMetrics. - * @summary Usage metrics for a Pool across an aggregation interval. - */ +/** Contains information about an application in an Azure Batch Account. */ +export interface ApplicationSummary { + /** A string that uniquely identifies the application within the Account. */ + id: string; + /** The display name for the application. */ + displayName: string; + /** The list of available versions of the application. */ + versions: string[]; +} + +/** An error response received from the Azure Batch service. */ +export interface BatchError { + /** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */ + code?: string; + /** An error message received in an Azure Batch error response. */ + message?: ErrorMessage; + /** A collection of key-value pairs containing additional details about the error. */ + values?: BatchErrorDetail[]; +} + +/** An error message received in an Azure Batch error response. */ +export interface ErrorMessage { + /** The language code of the error message */ + lang?: string; + /** The text of the message. */ + value?: string; +} + +/** An item of additional information included in an Azure Batch error response. */ +export interface BatchErrorDetail { + /** An identifier specifying the meaning of the Value property. */ + key?: string; + /** The additional information included with the error response. */ + value?: string; +} + +/** The result of a listing the usage metrics for an Account. */ +export interface PoolListUsageMetricsResult { + /** The Pool usage metrics data. */ + value?: PoolUsageMetrics[]; + /** The URL to get the next set of results. */ + odataNextLink?: string; +} + +/** Usage metrics for a Pool across an aggregation interval. */ export interface PoolUsageMetrics { - /** - * The ID of the Pool whose metrics are aggregated in this entry. - */ + /** The ID of the Pool whose metrics are aggregated in this entry. */ poolId: string; - /** - * The start time of the aggregation interval covered by this entry. - */ + /** The start time of the aggregation interval covered by this entry. */ startTime: Date; - /** - * The end time of the aggregation interval covered by this entry. - */ + /** The end time of the aggregation interval covered by this entry. */ endTime: Date; - /** - * The size of virtual machines in the Pool. All VMs 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). - */ + /** 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 total core hours used in the Pool during this aggregation interval. - */ + /** The total core hours used in the Pool during this aggregation interval. */ totalCoreHours: number; } -/** - * An interface representing ImageReference. - * @summary A reference to an Azure Virtual Machines Marketplace Image or a Shared Image Gallery - * Image. To get the list of all Azure Marketplace Image references verified by Azure Batch, see - * the 'List Supported Images' operation. - */ -export interface ImageReference { - /** - * The publisher of the Azure Virtual Machines Marketplace Image. For example, Canonical or - * MicrosoftWindowsServer. - */ - publisher?: string; - /** - * The offer type of the Azure Virtual Machines Marketplace Image. For example, UbuntuServer or - * WindowsServer. - */ - offer?: string; - /** - * The SKU of the Azure Virtual Machines Marketplace Image. For example, 18.04-LTS or - * 2019-Datacenter. - */ - sku?: string; - /** - * The version of the Azure Virtual Machines Marketplace Image. A value of 'latest' can be - * specified to select the latest version of an Image. If omitted, the default is 'latest'. - */ - version?: string; - /** - * The ARM resource identifier of the Shared Image Gallery Image. Compute Nodes in the Pool will - * be created using this Image Id. This is of the form - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{VersionId} - * or - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName} - * for always defaulting to the latest image version. This property is mutually exclusive with - * other ImageReference properties. The Shared Image Gallery Image must have replicas in the same - * region and must be in the same subscription as the Azure Batch account. If the image version - * is not specified in the imageId, the latest version will be used. For information about the - * firewall settings for the Batch Compute Node agent to communicate with the Batch service see - * https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. - */ - virtualMachineImageId?: string; - /** - * The specific version of the platform image or marketplace image used to create the node. This - * read-only field differs from 'version' only if the value specified for 'version' when the pool - * was created was 'latest'. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly exactVersion?: string; +/** The result of listing the supported Virtual Machine Images. */ +export interface AccountListSupportedImagesResult { + /** The list of supported Virtual Machine Images. */ + value?: ImageInformation[]; + /** The URL to get the next set of results. */ + odataNextLink?: string; } -/** - * An interface representing ImageInformation. - * @summary A reference to the Azure Virtual Machines Marketplace Image and additional information - * about the Image. - */ +/** A reference to the Azure Virtual Machines Marketplace Image and additional information about the Image. */ export interface ImageInformation { - /** - * The ID of the Compute Node agent SKU which the Image supports. - */ + /** The ID of the Compute Node agent SKU which the Image supports. */ nodeAgentSKUId: string; - /** - * The reference to the Azure Virtual Machine's Marketplace Image. - */ + /** A reference to an Azure Virtual Machines Marketplace Image or a Shared Image Gallery Image. To get the list of all Azure Marketplace Image references verified by Azure Batch, see the 'List Supported Images' operation. */ imageReference: ImageReference; - /** - * The type of operating system (e.g. Windows or Linux) of the Image. Possible values include: - * 'linux', 'windows' - */ + /** The type of operating system (e.g. Windows or Linux) of the Image. */ osType: OSType; - /** - * 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. - */ + /** 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. - */ + /** The time when the Azure Batch service will stop accepting create Pool requests for the Image. */ batchSupportEndOfLife?: Date; - /** - * Whether the Azure Batch service actively verifies that the Image is compatible with the - * associated Compute Node agent SKU. Possible values include: 'verified', 'unverified' - */ + /** Whether the Azure Batch service actively verifies that the Image is compatible with the associated Compute Node agent SKU. */ verificationType: VerificationType; } -/** - * An interface representing AuthenticationTokenSettings. - * @summary The settings for an authentication token that the Task can use to perform Batch service - * operations. - */ -export interface AuthenticationTokenSettings { +/** A reference to an Azure Virtual Machines Marketplace Image or a Shared Image Gallery Image. To get the list of all Azure Marketplace Image references verified by Azure Batch, see the 'List Supported Images' operation. */ +export interface ImageReference { + /** For example, Canonical or MicrosoftWindowsServer. */ + publisher?: string; + /** For example, UbuntuServer or WindowsServer. */ + offer?: string; + /** For example, 18.04-LTS or 2019-Datacenter. */ + sku?: string; + /** A value of 'latest' can be specified to select the latest version of an Image. If omitted, the default is 'latest'. */ + version?: string; + /** This property is mutually exclusive with other ImageReference properties. The Shared Image Gallery Image must have replicas in the same region and must be in the same subscription as the Azure Batch account. If the image version is not specified in the imageId, the latest version will be used. For information about the firewall settings for the Batch Compute Node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. */ + virtualMachineImageId?: string; /** - * 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. + * The specific version of the platform image or marketplace image used to create the node. This read-only field differs from 'version' only if the value specified for 'version' when the pool was created was 'latest'. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - access?: AccessScope[]; + readonly exactVersion?: string; } -/** - * An interface representing UsageStatistics. - * @summary Statistics related to Pool usage information. - */ +/** The result of listing the Compute Node counts in the Account. */ +export interface PoolNodeCountsListResult { + /** A list of Compute Node counts by Pool. */ + value?: PoolNodeCounts[]; + /** The URL to get the next set of results. */ + odataNextLink?: string; +} + +/** The number of Compute Nodes in each state for a Pool. */ +export interface PoolNodeCounts { + /** The ID of the Pool. */ + poolId: string; + /** The number of Compute Nodes in each Compute Node state. */ + dedicated?: NodeCounts; + /** The number of Compute Nodes in each Compute Node state. */ + lowPriority?: NodeCounts; +} + +/** The number of Compute Nodes in each Compute Node state. */ +export interface NodeCounts { + /** The number of Compute Nodes in the creating state. */ + creating: number; + /** The number of Compute Nodes in the idle state. */ + idle: number; + /** The number of Compute Nodes in the offline state. */ + offline: number; + /** The number of Compute Nodes in the preempted state. */ + preempted: number; + /** The count of Compute Nodes in the rebooting state. */ + rebooting: number; + /** The number of Compute Nodes in the reimaging state. */ + reimaging: number; + /** The number of Compute Nodes in the running state. */ + running: number; + /** The number of Compute Nodes in the starting state. */ + starting: number; + /** The number of Compute Nodes in the startTaskFailed state. */ + startTaskFailed: number; + /** The number of Compute Nodes in the leavingPool state. */ + leavingPool: number; + /** The number of Compute Nodes in the unknown state. */ + unknown: number; + /** The number of Compute Nodes in the unusable state. */ + unusable: number; + /** The number of Compute Nodes in the waitingForStartTask state. */ + waitingForStartTask: number; + /** The total number of Compute Nodes. */ + total: number; +} + +/** Contains utilization and resource usage statistics for the lifetime of a Pool. */ +export interface PoolStatistics { + /** The URL for the statistics. */ + url: string; + /** The start time of the time range covered by the statistics. */ + startTime: Date; + /** The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime. */ + lastUpdateTime: Date; + /** Statistics related to Pool usage information. */ + usageStats?: UsageStatistics; + /** Statistics related to resource consumption by Compute Nodes in a Pool. */ + resourceStats?: ResourceStatistics; +} + +/** Statistics related to Pool usage information. */ export interface UsageStatistics { - /** - * The start time of the time range covered by the statistics. - */ + /** The start time of the time range covered by the statistics. */ startTime: Date; - /** - * The time at which the statistics were last updated. All statistics are limited to the range - * between startTime and lastUpdateTime. - */ + /** The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime. */ lastUpdateTime: Date; - /** - * The aggregated wall-clock time of the dedicated Compute Node cores being part of the Pool. - */ + /** The aggregated wall-clock time of the dedicated Compute Node cores being part of the Pool. */ dedicatedCoreTime: string; } -/** - * An interface representing ResourceStatistics. - * @summary Statistics related to resource consumption by Compute Nodes in a Pool. - */ +/** Statistics related to resource consumption by Compute Nodes in a Pool. */ export interface ResourceStatistics { - /** - * The start time of the time range covered by the statistics. - */ + /** The start time of the time range covered by the statistics. */ startTime: Date; - /** - * The time at which the statistics were last updated. All statistics are limited to the range - * between startTime and lastUpdateTime. - */ + /** The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime. */ lastUpdateTime: Date; - /** - * The average CPU usage across all Compute Nodes in the Pool (percentage per node). - */ + /** The average CPU usage across all Compute Nodes in the Pool (percentage per node). */ avgCPUPercentage: number; - /** - * The average memory usage in GiB across all Compute Nodes in the Pool. - */ + /** The average memory usage in GiB across all Compute Nodes in the Pool. */ avgMemoryGiB: number; - /** - * The peak memory usage in GiB across all Compute Nodes in the Pool. - */ + /** The peak memory usage in GiB across all Compute Nodes in the Pool. */ peakMemoryGiB: number; - /** - * The average used disk space in GiB across all Compute Nodes in the Pool. - */ + /** The average used disk space in GiB across all Compute Nodes in the Pool. */ avgDiskGiB: number; - /** - * The peak used disk space in GiB across all Compute Nodes in the Pool. - */ + /** The peak used disk space in GiB across all Compute Nodes in the Pool. */ peakDiskGiB: number; - /** - * The total number of disk read operations across all Compute Nodes in the Pool. - */ + /** The total number of disk read operations across all Compute Nodes in the Pool. */ diskReadIOps: number; - /** - * The total number of disk write operations across all Compute Nodes in the Pool. - */ + /** The total number of disk write operations across all Compute Nodes in the Pool. */ diskWriteIOps: number; - /** - * The total amount of data in GiB of disk reads across all Compute Nodes in the Pool. - */ + /** The total amount of data in GiB of disk reads across all Compute Nodes in the Pool. */ diskReadGiB: number; - /** - * The total amount of data in GiB of disk writes across all Compute Nodes in the Pool. - */ + /** The total amount of data in GiB of disk writes across all Compute Nodes in the Pool. */ diskWriteGiB: number; - /** - * The total amount of data in GiB of network reads across all Compute Nodes in the Pool. - */ + /** The total amount of data in GiB of network reads across all Compute Nodes in the Pool. */ networkReadGiB: number; - /** - * The total amount of data in GiB of network writes across all Compute Nodes in the Pool. - */ + /** The total amount of data in GiB of network writes across all Compute Nodes in the Pool. */ networkWriteGiB: number; } -/** - * An interface representing PoolStatistics. - * @summary Contains utilization and resource usage statistics for the lifetime of a Pool. - */ -export interface PoolStatistics { - /** - * The URL for the statistics. - */ - url: string; - /** - * The start time of the time range covered by the statistics. - */ - startTime: Date; - /** - * The time at which the statistics were last updated. All statistics are limited to the range - * between startTime and lastUpdateTime. - */ - lastUpdateTime: Date; - /** - * Statistics related to Pool usage, such as the amount of core-time used. - */ - usageStats?: UsageStatistics; - /** - * Statistics related to resource consumption by Compute Nodes in the Pool. - */ - resourceStats?: ResourceStatistics; -} - -/** - * An interface representing JobStatistics. - * @summary Resource usage statistics for a Job. - */ +/** Resource usage statistics for a Job. */ export interface JobStatistics { - /** - * The URL of the statistics. - */ + /** The URL of the statistics. */ url: string; - /** - * The start time of the time range covered by the statistics. - */ + /** The start time of the time range covered by the statistics. */ startTime: Date; - /** - * The time at which the statistics were last updated. All statistics are limited to the range - * between startTime and lastUpdateTime. - */ + /** The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime. */ lastUpdateTime: Date; - /** - * The total user mode CPU time (summed across all cores and all Compute Nodes) consumed by all - * Tasks in the Job. - */ + /** The total user mode CPU time (summed across all cores and all Compute Nodes) consumed by all Tasks in the Job. */ userCPUTime: string; - /** - * The total kernel mode CPU time (summed across all cores and all Compute Nodes) consumed by all - * Tasks in the Job. - */ + /** The total kernel mode CPU time (summed across all cores and all Compute Nodes) consumed by all Tasks in the Job. */ kernelCPUTime: string; - /** - * The total wall clock time of all Tasks in the Job. The wall clock time is the elapsed time - * from when the Task started running on a Compute Node to when it finished (or to the last time - * the statistics were updated, if the Task had not finished by then). If a Task was retried, - * this includes the wall clock time of all the Task retries. - */ + /** The wall clock time is the elapsed time from when the Task started running on a Compute Node to when it finished (or to the last time the statistics were updated, if the Task had not finished by then). If a Task was retried, this includes the wall clock time of all the Task retries. */ wallClockTime: string; - /** - * The total number of disk read operations made by all Tasks in the Job. - */ + /** The total number of disk read operations made by all Tasks in the Job. */ readIOps: number; - /** - * The total number of disk write operations made by all Tasks in the Job. - */ + /** The total number of disk write operations made by all Tasks in the Job. */ writeIOps: number; - /** - * The total amount of data in GiB read from disk by all Tasks in the Job. - */ + /** The total amount of data in GiB read from disk by all Tasks in the Job. */ readIOGiB: number; - /** - * The total amount of data in GiB written to disk by all Tasks in the Job. - */ + /** The total amount of data in GiB written to disk by all Tasks in the Job. */ writeIOGiB: number; - /** - * The total number of Tasks successfully completed in the Job during the given time range. A - * Task completes successfully if it returns exit code 0. - */ + /** A Task completes successfully if it returns exit code 0. */ numSucceededTasks: number; - /** - * The total number of Tasks in the Job that failed during the given time range. A Task fails if - * it exhausts its maximum retry count without returning exit code 0. - */ + /** A Task fails if it exhausts its maximum retry count without returning exit code 0. */ numFailedTasks: number; - /** - * The total number of retries on all the Tasks in the Job during the given time range. - */ + /** The total number of retries on all the Tasks in the Job during the given time range. */ numTaskRetries: number; - /** - * The total wait time of all Tasks in the Job. The wait time for a Task is defined as the - * elapsed time between the creation of the Task and the start of Task execution. (If the Task is - * retried due to failures, the wait time is the time to the most recent Task execution.) This - * value is only reported in the Account lifetime statistics; it is not included in the Job - * statistics. - */ + /** The wait time for a Task is defined as the elapsed time between the creation of the Task and the start of Task execution. (If the Task is retried due to failures, the wait time is the time to the most recent Task execution.) This value is only reported in the Account lifetime statistics; it is not included in the Job statistics. */ waitTime: string; } -/** - * An interface representing NameValuePair. - * @summary Represents a name-value pair. - */ -export interface NameValuePair { - /** - * The name in the name-value pair. - */ - name?: string; - /** - * The value in the name-value pair. - */ - value?: string; +/** A Certificate that can be installed on Compute Nodes and can be used to authenticate operations on the machine. */ +export interface CertificateAddParameter { + /** 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. */ + certificateFormat?: CertificateFormat; + /** This must be omitted if the Certificate format is cer. */ + password?: string; } -/** - * An interface representing DeleteCertificateError. - * @summary An error encountered by the Batch service when deleting a Certificate. - */ -export interface DeleteCertificateError { - /** - * 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?: NameValuePair[]; +/** The result of listing the Certificates in the Account. */ +export interface CertificateListResult { + /** The list of Certificates. */ + value?: Certificate[]; + /** The URL to get the next set of results. */ + odataNextLink?: string; } -/** - * A Certificate that can be installed on Compute Nodes and can be used to authenticate operations - * on the machine. - */ +/** A Certificate that can be installed on Compute Nodes and can be used to authenticate operations on the machine. */ export interface Certificate { - /** - * The X.509 thumbprint of the Certificate. This is a sequence of up to 40 hex digits. - */ + /** The X.509 thumbprint of the Certificate. This is a sequence of up to 40 hex digits. */ thumbprint?: string; - /** - * The algorithm used to derive the thumbprint. - */ + /** The algorithm used to derive the thumbprint. */ thumbprintAlgorithm?: string; - /** - * The URL of the Certificate. - */ + /** The URL of the Certificate. */ url?: string; - /** - * The current state of the Certificate. Possible values include: 'active', 'deleting', - * 'deleteFailed' - */ + /** The state of the Certificate. */ state?: CertificateState; - /** - * The time at which the Certificate entered its current state. - */ + /** The time at which the Certificate entered its current state. */ stateTransitionTime?: Date; - /** - * The previous state of the Certificate. This property is not set if the Certificate is in its - * initial active state. Possible values include: 'active', 'deleting', 'deleteFailed' - */ + /** This property is not set if the Certificate is in its initial active state. */ previousState?: CertificateState; - /** - * The time at which the Certificate entered its previous state. This property is not set if the - * Certificate is in its initial Active state. - */ + /** This property is not set if the Certificate is in its initial Active state. */ previousStateTransitionTime?: Date; - /** - * The public part of the Certificate as a base-64 encoded .cer file. - */ + /** The public part of the Certificate as a base-64 encoded .cer file. */ 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. - */ + /** This property is set only if the Certificate is in the DeleteFailed state. */ deleteCertificateError?: DeleteCertificateError; } -/** - * An interface representing ApplicationPackageReference. - * @summary A reference to an Package to be deployed to Compute Nodes. - */ -export interface ApplicationPackageReference { - /** - * The ID of the application to deploy. - */ - applicationId: string; - /** - * The version of the application to deploy. If omitted, the default version is deployed. If this - * is omitted on a Pool, and no default version is specified for this application, the request - * fails with the error code InvalidApplicationPackageReferences and HTTP status code 409. If - * this is omitted on a Task, and no default version is specified for this application, the Task - * fails with a pre-processing error. - */ - version?: string; +/** An error encountered by the Batch service when deleting a Certificate. */ +export interface DeleteCertificateError { + /** 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; + /** 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?: NameValuePair[]; } -/** - * An interface representing ApplicationSummary. - * @summary Contains information about an application in an Azure Batch Account. - */ -export interface ApplicationSummary { - /** - * A string that uniquely identifies the application within the Account. - */ - id: string; - /** - * The display name for the application. - */ - displayName: string; - /** - * The list of available versions of the application. - */ - versions: string[]; +/** Represents a name-value pair. */ +export interface NameValuePair { + /** The name in the name-value pair. */ + name?: string; + /** The value in the name-value pair. */ + value?: string; } -/** - * An interface representing CertificateAddParameter. - * @summary A Certificate that can be installed on Compute Nodes and can be used to authenticate - * operations on the machine. - */ -export interface CertificateAddParameter { - /** - * 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 include: 'pfx', 'cer' - */ - certificateFormat?: CertificateFormat; - /** - * The password to access the Certificate's private key. This must be omitted if the Certificate - * format is cer. - */ - password?: string; +/** The result of listing the files on a Compute Node, or the files associated with a Task on a Compute Node. */ +export interface NodeFileListResult { + /** The list of files. */ + value?: NodeFile[]; + /** The URL to get the next set of results. */ + odataNextLink?: string; } -/** - * An interface representing FileProperties. - * @summary The properties of a file on a Compute Node. - */ +/** Information about a file or directory on a Compute Node. */ +export interface NodeFile { + /** The file path. */ + name?: string; + /** The URL of the file. */ + url?: string; + /** Whether the object represents a directory. */ + isDirectory?: boolean; + /** The properties of a file on a Compute Node. */ + properties?: FileProperties; +} + +/** The properties of a file on a Compute Node. */ export interface FileProperties { - /** - * The file creation time. The creation time is not returned for files on Linux Compute Nodes. - */ + /** The creation time is not returned for files on Linux Compute Nodes. */ creationTime?: Date; - /** - * The time at which the file was last modified. - */ + /** The time at which the file was last modified. */ lastModified: Date; - /** - * The length of the file. - */ + /** The length of the file. */ contentLength: number; - /** - * The content type of the file. - */ + /** The content type of the file. */ contentType?: string; - /** - * The file mode attribute in octal format. The file mode is returned only for files on Linux - * Compute Nodes. - */ + /** The file mode is returned only for files on Linux Compute Nodes. */ fileMode?: string; } -/** - * An interface representing NodeFile. - * @summary Information about a file or directory on a Compute Node. - */ -export interface NodeFile { - /** - * The file path. - */ - name?: string; - /** - * The URL of the file. - */ +/** A Job Schedule that allows recurring Jobs by specifying when to run Jobs and a specification used to create each Job. */ +export interface CloudJobSchedule { + /** A string that uniquely identifies the schedule within the Account. */ + id?: string; + /** The display name for the schedule. */ + displayName?: string; + /** The URL of the Job Schedule. */ url?: string; - /** - * Whether the object represents a directory. - */ - isDirectory?: boolean; - /** - * The file properties. - */ - properties?: FileProperties; + /** This is an opaque string. You can use it to detect whether the Job Schedule has changed between requests. In particular, you can be pass the ETag with an Update Job Schedule request to specify that your changes should take effect only if nobody else has modified the schedule in the meantime. */ + eTag?: string; + /** This is the last time at which the schedule level data, such as the Job specification or recurrence information, changed. It does not factor in job-level changes such as new Jobs being created or Jobs changing state. */ + lastModified?: Date; + /** The creation time of the Job Schedule. */ + creationTime?: Date; + /** The state of the Job Schedule. */ + state?: JobScheduleState; + /** The time at which the Job Schedule entered the current state. */ + stateTransitionTime?: Date; + /** This property is not present if the Job Schedule is in its initial active state. */ + previousState?: JobScheduleState; + /** This property is not present if the Job Schedule is in its initial active state. */ + previousStateTransitionTime?: Date; + /** All times are fixed respective to UTC and are not impacted by daylight saving time. */ + schedule?: Schedule; + /** Specifies details of the Jobs to be created on a schedule. */ + jobSpecification?: JobSpecification; + /** Contains information about Jobs that have been and will be run under a Job Schedule. */ + executionInfo?: JobScheduleExecutionInformation; + /** The Batch service does not assign any meaning to metadata; it is solely for the use of user code. */ + metadata?: MetadataItem[]; + /** Resource usage statistics for a Job Schedule. */ + stats?: JobScheduleStatistics; } -/** - * An interface representing Schedule. - * @summary The schedule according to which Jobs will be created - */ +/** 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 { - /** - * 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. - */ + /** If you do not specify a doNotRunUntil time, the schedule becomes ready to create Jobs immediately. */ doNotRunUntil?: Date; - /** - * 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. - */ + /** 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. */ doNotRunAfter?: Date; - /** - * The time interval, starting from the time at which the schedule indicates a Job should be - * created, within which a Job must be created. If a Job is not created within the startWindow - * interval, then the 'opportunity' is lost; no Job will be created until the next recurrence of - * the schedule. If the schedule is recurring, and the startWindow is longer than the recurrence - * interval, then this is equivalent to an infinite startWindow, because the Job that is 'due' in - * one recurrenceInterval is not carried forward into the next recurrence interval. The default - * is infinite. The minimum value is 1 minute. If you specify a lower value, the Batch service - * rejects the schedule with an error; if you are calling the REST API directly, the HTTP status - * code is 400 (Bad Request). - */ + /** If a Job is not created within the startWindow interval, then the 'opportunity' is lost; no Job will be created until the next recurrence of the schedule. If the schedule is recurring, and the startWindow is longer than the recurrence interval, then this is equivalent to an infinite startWindow, because the Job that is 'due' in one recurrenceInterval is not carried forward into the next recurrence interval. The default is infinite. The minimum value is 1 minute. If you specify a lower value, the Batch service rejects the schedule with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). */ startWindow?: string; - /** - * The time interval between the start times of two successive Jobs under the Job Schedule. A Job - * Schedule can have at most one active Job under it at any given time. Because a Job Schedule - * can have at most one active Job under it at any given time, if it is time to create a new Job - * under a Job Schedule, but the previous Job is still running, the Batch service will not create - * the new Job until the previous Job finishes. If the previous Job does not finish within the - * startWindow period of the new recurrenceInterval, then no new Job will be scheduled for that - * interval. For recurring Jobs, you should normally specify a jobManagerTask in the - * jobSpecification. If you do not use jobManagerTask, you will need an external process to - * monitor when Jobs are created, add Tasks to the Jobs and terminate the Jobs ready for the next - * recurrence. The default is that the schedule does not recur: one Job is created, within the - * startWindow after the doNotRunUntil time, and the schedule is complete as soon as that Job - * finishes. The minimum value is 1 minute. If you specify a lower value, the Batch service - * rejects the schedule with an error; if you are calling the REST API directly, the HTTP status - * code is 400 (Bad Request). - */ + /** Because a Job Schedule can have at most one active Job under it at any given time, if it is time to create a new Job under a Job Schedule, but the previous Job is still running, the Batch service will not create the new Job until the previous Job finishes. If the previous Job does not finish within the startWindow period of the new recurrenceInterval, then no new Job will be scheduled for that interval. For recurring Jobs, you should normally specify a jobManagerTask in the jobSpecification. If you do not use jobManagerTask, you will need an external process to monitor when Jobs are created, add Tasks to the Jobs and terminate the Jobs ready for the next recurrence. The default is that the schedule does not recur: one Job is created, within the startWindow after the doNotRunUntil time, and the schedule is complete as soon as that Job finishes. The minimum value is 1 minute. If you specify a lower value, the Batch service rejects the schedule with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). */ recurrenceInterval?: string; } -/** - * An interface representing JobConstraints. - * @summary The execution constraints for a Job. - */ +/** Specifies details of the Jobs to be created on a schedule. */ +export interface JobSpecification { + /** 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. This priority is used as the default for all Jobs under the Job Schedule. You can update a Job's priority after it has been created using by using the update Job API. */ + priority?: number; + /** 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. */ + allowTaskPreemption?: boolean; + /** The value of maxParallelTasks must be -1 or greater than 0 if specified. If not specified, the default value is -1, which means there's no limit to the number of tasks that can be run at once. You can update a job's maxParallelTasks after it has been created using the update job API. */ + maxParallelTasks?: number; + /** The name need not be unique and can contain any Unicode characters up to a maximum length of 1024. */ + displayName?: string; + /** Whether Tasks in the Job can define dependencies on each other. The default is false. */ + usesTaskDependencies?: boolean; + /** 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?: OnAllTasksComplete; + /** The default is noaction. */ + onTaskFailure?: OnTaskFailure; + /** The network configuration for the Job. */ + networkConfiguration?: JobNetworkConfiguration; + /** The execution constraints for a Job. */ + constraints?: JobConstraints; + /** If the Job does not specify a Job Manager Task, the user must explicitly add Tasks to the Job using the Task API. If the Job does specify a Job Manager Task, the Batch service creates the Job Manager Task when the Job is created, and will try to schedule the Job Manager Task before scheduling other Tasks in the Job. */ + jobManagerTask?: JobManagerTask; + /** If a Job has a Job Preparation Task, the Batch service will run the Job Preparation Task on a Node before starting any Tasks of that Job on that Compute Node. */ + jobPreparationTask?: JobPreparationTask; + /** The primary purpose of the Job Release Task is to undo changes to Nodes made by the Job Preparation Task. Example activities include deleting local files, or shutting down services that were started as part of Job preparation. A Job Release Task cannot be specified without also specifying a Job Preparation Task for the Job. The Batch service runs the Job Release Task on the Compute Nodes that have run the Job Preparation Task. */ + jobReleaseTask?: JobReleaseTask; + /** Individual Tasks can override an environment setting specified here by specifying the same setting name with a different value. */ + commonEnvironmentSettings?: EnvironmentSetting[]; + /** Specifies how a Job should be assigned to a Pool. */ + poolInfo: PoolInformation; + /** The Batch service does not assign any meaning to metadata; it is solely for the use of user code. */ + metadata?: MetadataItem[]; +} + +/** The network configuration for the Job. */ +export interface JobNetworkConfiguration { + /** 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 which will run Tasks from the Job. This can be up to the number of Compute Nodes in the Pool. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet so that Azure Batch service can 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. This is of the form /subscriptions/{subscription}/resourceGroups/{group}/providers/{provider}/virtualNetworks/{network}/subnets/{subnet}. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication from the Azure Batch service. 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. Port 443 is also required to be open for outbound connections for communications to Azure Storage. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration */ + subnetId: string; +} + +/** The execution constraints for a Job. */ export interface JobConstraints { - /** - * The maximum elapsed time that the Job may run, measured from the time the Job is created. If - * the Job does not complete within the time limit, the Batch service terminates it and any Tasks - * that are still running. In this case, the termination reason will be MaxWallClockTimeExpiry. - * If this property is not specified, there is no time limit on how long the Job may run. - */ + /** If the Job does not complete within the time limit, the Batch service terminates it and any Tasks that are still running. In this case, the termination reason will be MaxWallClockTimeExpiry. If this property is not specified, there is no time limit on how long the Job may run. */ maxWallClockTime?: string; - /** - * The maximum number of times each Task may be retried. The Batch service retries a Task if its - * exit code is nonzero. Note that this value specifically controls the number of retries. The - * Batch service will try each Task once, and may then retry up to this limit. For example, if - * the maximum retry count is 3, Batch tries a Task up to 4 times (one initial try and 3 - * retries). If the maximum retry count is 0, the Batch service does not retry Tasks. If the - * maximum retry count is -1, the Batch service retries Tasks without limit. The default value is - * 0 (no retries). - */ + /** Note that this value specifically controls the number of retries. The Batch service will try each Task once, and may then retry up to this limit. For example, if the maximum retry count is 3, Batch tries a Task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, the Batch service does not retry Tasks. If the maximum retry count is -1, the Batch service retries Tasks without limit. The default value is 0 (no retries). */ maxTaskRetryCount?: number; } -/** - * An interface representing JobNetworkConfiguration. - * @summary The network configuration for the Job. - */ -export interface JobNetworkConfiguration { - /** - * The ARM resource identifier of the virtual network subnet which Compute Nodes running Tasks - * from the Job will join for the duration of the Task. This will only work with a - * VirtualMachineConfiguration Pool. 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 which will run Tasks from the Job. This - * can be up to the number of Compute Nodes in the Pool. The 'MicrosoftAzureBatch' service - * principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) - * role for the specified VNet so that Azure Batch service can 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. This is of the form - * /subscriptions/{subscription}/resourceGroups/{group}/providers/{provider}/virtualNetworks/{network}/subnets/{subnet}. - * If the specified VNet has any associated Network Security Groups (NSG), then a few reserved - * system ports must be enabled for inbound communication from the Azure Batch service. 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. Port 443 is also required to be open for outbound - * connections for communications to Azure Storage. For more details see: - * https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration - */ - subnetId: string; +/** The Job Manager Task is automatically started when the Job is created. The Batch service tries to schedule the Job Manager Task before any other Tasks in the Job. When shrinking a Pool, the Batch service tries to preserve Nodes where Job Manager Tasks are running for as long as possible (that is, Compute Nodes running 'normal' Tasks are removed before Compute Nodes running Job Manager Tasks). When a Job Manager Task fails and needs to be restarted, the system tries to schedule it at the highest priority. If there are no idle Compute Nodes available, the system may terminate one of the running Tasks in the Pool and return it to the queue in order to make room for the Job Manager Task to restart. Note that a Job Manager Task in one Job does not have priority over Tasks in other Jobs. Across Jobs, only Job level priorities are observed. For example, if a Job Manager in a priority 0 Job needs to be restarted, it will not displace Tasks of a priority 1 Job. Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running Tasks is to use some form of checkpointing. */ +export interface JobManagerTask { + /** The ID can contain any combination of alphanumeric characters including hyphens and underscores and cannot contain more than 64 characters. */ + id: string; + /** It need not be unique and can contain any Unicode characters up to a maximum length of 1024. */ + displayName?: string; + /** 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; + /** 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?: TaskContainerSettings; + /** Files listed under this element are located in the Task's working directory. 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?: ResourceFile[]; + /** For multi-instance Tasks, the files will only be uploaded from the Compute Node on which the primary Task is executed. */ + outputFiles?: OutputFile[]; + /** A list of environment variable settings for the Job Manager Task. */ + environmentSettings?: EnvironmentSetting[]; + /** Execution constraints to apply to a Task. */ + constraints?: TaskConstraints; + /** 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 property is not supported and must not be specified. */ + requiredSlots?: number; + /** If true, when the Job Manager Task completes, the Batch service marks the Job as complete. If any Tasks are still running at this time (other than Job Release), those Tasks are terminated. If false, the completion of the Job Manager Task does not affect the Job status. In this case, you should either use the onAllTasksComplete attribute to terminate the Job, or have a client or user terminate the Job explicitly. An example of this is if the Job Manager creates a set of Tasks but then takes no further role in their execution. The default value is true. If you are using the onAllTasksComplete and onTaskFailure attributes to control Job lifetime, and using the Job Manager Task only to create the Tasks for the Job (not to monitor progress), then it is important to set killJobOnCompletion to false. */ + killJobOnCompletion?: boolean; + /** If omitted, the Task runs as a non-administrative user unique to the Task. */ + userIdentity?: UserIdentity; + /** If true, no other Tasks will run on the same Node for as long as the Job Manager is running. If false, other Tasks can run simultaneously with the Job Manager on a Compute Node. The Job Manager Task counts normally against the Compute Node's concurrent Task limit, so this is only relevant if the Compute Node allows multiple concurrent Tasks. The default value is true. */ + runExclusive?: boolean; + /** Application Packages are downloaded and deployed to a shared directory, not the Task working directory. Therefore, if a referenced Application Package is already on the Compute Node, and is up to date, then it is not re-downloaded; the existing copy on the Compute Node is used. If a referenced Application Package cannot be installed, for example because the package has been deleted or because download failed, the Task fails. */ + applicationPackageReferences?: ApplicationPackageReference[]; + /** 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?: AuthenticationTokenSettings; + /** The default value is true. */ + allowLowPriorityNode?: boolean; } -/** - * The reference to a user assigned identity associated with the Batch pool which a compute node - * will use. - */ -export interface ComputeNodeIdentityReference { - /** - * The ARM resource id of the user assigned identity. - */ - resourceId?: string; +/** The container settings for a Task. */ +export interface TaskContainerSettings { + /** These additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service. */ + containerRunOptions?: string; + /** 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; + /** This setting can be omitted if was already provided at Pool creation. */ + registry?: ContainerRegistry; + /** The default is 'taskWorkingDirectory'. */ + workingDirectory?: ContainerWorkingDirectory; } -/** - * An interface representing ContainerRegistry. - * @summary A private container registry. - */ +/** A private container registry. */ export interface ContainerRegistry { - /** - * The user name to log into the registry server. - */ + /** The user name to log into the registry server. */ userName?: string; - /** - * The password to log into the registry server. - */ + /** The password to log into the registry server. */ password?: string; - /** - * The registry URL. If omitted, the default is "docker.io". - */ + /** If omitted, the default is "docker.io". */ registryServer?: string; - /** - * The reference to the user assigned identity to use to access an Azure Container Registry - * instead of username and password. - */ + /** The reference to a user assigned identity associated with the Batch pool which a compute node will use. */ identityReference?: ComputeNodeIdentityReference; } -/** - * An interface representing TaskContainerSettings. - * @summary The container settings for a Task. - */ -export interface TaskContainerSettings { - /** - * Additional options to the container create command. These additional options are supplied as - * arguments to the "docker create" command, in addition to those controlled by the Batch - * Service. - */ - containerRunOptions?: string; - /** - * 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 include: 'taskWorkingDirectory', 'containerImageDefault' - */ - workingDirectory?: ContainerWorkingDirectory; +/** The reference to a user assigned identity associated with the Batch pool which a compute node will use. */ +export interface ComputeNodeIdentityReference { + /** The ARM resource id of the user assigned identity. */ + resourceId?: string; } -/** - * An interface representing ResourceFile. - * @summary A single file or multiple files to be downloaded to a Compute Node. - */ +/** A single file or multiple files to be downloaded to a Compute Node. */ export interface ResourceFile { - /** - * The storage container name in the auto storage Account. The autoStorageContainerName, - * storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be - * specified. - */ + /** The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. */ autoStorageContainerName?: string; - /** - * The URL of the blob container within Azure Blob Storage. The autoStorageContainerName, - * storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be - * specified. This URL must be readable and listable from compute nodes. There are three ways to - * get such a URL for a container in Azure storage: include a Shared Access Signature (SAS) - * granting read and list permissions on the container, use a managed identity with read and list - * permissions, or set the ACL for the container to allow public access. - */ + /** The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. This URL must be readable and listable from compute nodes. There are three ways to get such a URL for a container in Azure storage: include a Shared Access Signature (SAS) granting read and list permissions on the container, use a managed identity with read and list permissions, or set the ACL for the container to allow public access. */ storageContainerUrl?: string; - /** - * The URL of the file to download. The autoStorageContainerName, storageContainerUrl and httpUrl - * properties are mutually exclusive and one of them must be specified. If the URL points to - * Azure Blob Storage, it must be readable from compute nodes. There are three ways to get such a - * URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read - * permissions on the blob, use a managed identity with read permission, or set the ACL for the - * blob or its container to allow public access. - */ + /** The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. If the URL points to Azure Blob Storage, it must be readable from compute nodes. There are three ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read permissions on the blob, use a managed identity with read permission, or set the ACL for the blob or its container to allow public access. */ httpUrl?: string; - /** - * The blob prefix to use when downloading blobs from an Azure Storage container. Only the blobs - * whose names begin with the specified prefix will be downloaded. The property is valid only - * when autoStorageContainerName or storageContainerUrl is used. This prefix can be a partial - * filename or a subdirectory. If a prefix is not specified, all the files in the container will - * be downloaded. - */ + /** The property is valid only when autoStorageContainerName or storageContainerUrl is used. This prefix can be a partial filename or a subdirectory. If a prefix is not specified, all the files in the container will be downloaded. */ blobPrefix?: string; - /** - * The location on the Compute Node to which to download the file(s), relative to the Task's - * working directory. If the httpUrl property is specified, the filePath is required and - * describes the path which the file will be downloaded to, including the filename. Otherwise, if - * the autoStorageContainerName or storageContainerUrl property is specified, filePath is - * optional and is the directory to download the files to. In the case where filePath is used as - * a directory, any directory structure already associated with the input data will be retained - * in full and appended to the specified filePath directory. The specified relative path cannot - * break out of the Task's working directory (for example by using '..'). - */ + /** If the httpUrl property is specified, the filePath is required and describes the path which the file will be downloaded to, including the filename. Otherwise, if the autoStorageContainerName or storageContainerUrl property is specified, filePath is optional and is the directory to download the files to. In the case where filePath is used as a directory, any directory structure already associated with the input data will be retained in full and appended to the specified filePath directory. The specified relative path cannot break out of the Task's working directory (for example by using '..'). */ filePath?: string; - /** - * The file permission mode attribute in octal format. This property applies only to files being - * downloaded to Linux Compute Nodes. It will be ignored if it is specified for a resourceFile - * which will be downloaded to a Windows Compute Node. If this property is not specified for a - * Linux Compute Node, then a default value of 0770 is applied to the file. - */ + /** This property applies only to files being downloaded to Linux Compute Nodes. It will be ignored if it is specified for a resourceFile which will be downloaded to a Windows Compute Node. If this property is not specified for a Linux Compute Node, then a default value of 0770 is applied to the file. */ fileMode?: string; - /** - * The reference to the user assigned identity to use to access Azure Blob Storage specified by - * storageContainerUrl or httpUrl. - */ + /** The reference to a user assigned identity associated with the Batch pool which a compute node will use. */ identityReference?: ComputeNodeIdentityReference; } -/** - * An interface representing EnvironmentSetting. - * @summary An environment variable to be set on a Task process. - */ -export interface EnvironmentSetting { - /** - * The name of the environment variable. - */ +/** On every file uploads, Batch service writes two log files to the compute node, 'fileuploadout.txt' and 'fileuploaderr.txt'. These log files are used to learn more about a specific failure. */ +export interface OutputFile { + /** Both relative and absolute paths are supported. Relative paths are relative to the Task working directory. The following wildcards are supported: * matches 0 or more characters (for example pattern abc* would match abc or abcdef), ** matches any directory, ? matches any single character, [abc] matches one character in the brackets, and [a-c] matches one character in the range. Brackets can include a negation to match any character not specified (for example [!abc] matches any character but a, b, or c). If a file name starts with "." it is ignored by default but may be matched by specifying it explicitly (for example *.gif will not match .a.gif, but .*.gif will). A simple example: **\*.txt matches any file that does not start in '.' and ends with .txt in the Task working directory or any subdirectory. If the filename contains a wildcard character it can be escaped using brackets (for example abc[*] would match a file named abc*). Note that both \ and / are treated as directory separators on Windows, but only / is on Linux. Environment variables (%var% on Windows or $var on Linux) are expanded prior to the pattern being applied. */ + filePattern: string; + /** The destination to which a file should be uploaded. */ + destination: OutputFileDestination; + /** Details about an output file upload operation, including under what conditions to perform the upload. */ + uploadOptions: OutputFileUploadOptions; +} + +/** The destination to which a file should be uploaded. */ +export interface OutputFileDestination { + /** Specifies a file upload destination within an Azure blob storage container. */ + container?: OutputFileBlobContainerDestination; +} + +/** Specifies a file upload destination within an Azure blob storage container. */ +export interface OutputFileBlobContainerDestination { + /** If filePattern refers to a specific file (i.e. contains no wildcards), then path is the name of the blob to which to upload that file. If filePattern contains one or more wildcards (and therefore may match multiple files), then path is the name of the blob virtual directory (which is prepended to each blob name) to which to upload the file(s). If omitted, file(s) are uploaded to the root of the container with a blob name matching their file name. */ + path?: string; + /** If not using a managed identity, the URL must include a Shared Access Signature (SAS) granting write permissions to the container. */ + containerUrl: string; + /** The identity must have write access to the Azure Blob Storage container */ + identityReference?: ComputeNodeIdentityReference; + /** These headers will be specified when uploading files to Azure Storage. For more information, see [Request Headers (All Blob Types)](https://docs.microsoft.com/rest/api/storageservices/put-blob#request-headers-all-blob-types). */ + uploadHeaders?: HttpHeader[]; +} + +/** An HTTP header name-value pair */ +export interface HttpHeader { + /** The case-insensitive name of the header to be used while uploading output files */ name: string; - /** - * The value of the environment variable. - */ + /** The value of the header to be used while uploading output files */ value?: string; } -/** - * An interface representing ExitOptions. - * @summary 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 include: 'none', 'disable', 'terminate' - */ - jobAction?: JobAction; - /** - * 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 include: - * 'satisfy', 'block' - */ - dependencyAction?: DependencyAction; +/** Details about an output file upload operation, including under what conditions to perform the upload. */ +export interface OutputFileUploadOptions { + /** The default is taskcompletion. */ + uploadCondition: OutputFileUploadCondition; } -/** - * An interface representing ExitCodeMapping. - * @summary How the Batch service should respond if a Task exits with a particular exit code. - */ -export interface ExitCodeMapping { - /** - * A process exit code. - */ - code: number; - /** - * How the Batch service should respond if the Task exits with this exit code. - */ - exitOptions: ExitOptions; +/** An environment variable to be set on a Task process. */ +export interface EnvironmentSetting { + /** The name of the environment variable. */ + name: string; + /** The value of the environment variable. */ + value?: string; } -/** - * An interface representing ExitCodeRangeMapping. - * @summary A range of exit codes and how the Batch service should respond to exit codes within - * that range. - */ -export interface ExitCodeRangeMapping { - /** - * The first exit code in the range. - */ - start: number; - /** - * The last exit code in the range. - */ - end: number; - /** - * How the Batch service should respond if the Task exits with an exit code in the range start to - * end (inclusive). - */ - exitOptions: ExitOptions; +/** Execution constraints to apply to a Task. */ +export interface TaskConstraints { + /** If this is not specified, there is no time limit on how long the Task may run. */ + maxWallClockTime?: string; + /** The default is 7 days, i.e. the Task directory will be retained for 7 days unless the Compute Node is removed or the Job is deleted. */ + retentionTime?: string; + /** Note that this value specifically controls the number of retries for the Task executable due to a nonzero exit code. The Batch service will try the Task once, and may then retry up to this limit. For example, if the maximum retry count is 3, Batch tries the Task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, the Batch service does not retry the Task after the first attempt. If the maximum retry count is -1, the Batch service retries the Task without limit. */ + maxTaskRetryCount?: number; } -/** - * An interface representing ExitConditions. - * @summary Specifies how the Batch service should respond when the Task completes. - */ -export interface ExitConditions { - /** - * A list of individual Task exit codes and how the Batch service should respond to them. - */ - exitCodes?: ExitCodeMapping[]; - /** - * A list of Task exit code ranges and how the Batch service should respond to them. - */ - exitCodeRanges?: ExitCodeRangeMapping[]; - /** - * How the Batch service should respond if the Task fails to start due to an error. - */ - preProcessingError?: ExitOptions; - /** - * How the Batch service should respond if a file upload error occurs. If the Task exited with an - * exit code that was specified via exitCodes or exitCodeRanges, and then encountered a file - * upload error, then the action specified by the exit code takes precedence. - */ - fileUploadError?: ExitOptions; - /** - * How the Batch service should respond if the Task fails with an exit condition not covered by - * any of the other properties. This value is used if the Task exits with any nonzero exit code - * not listed in the exitCodes or exitCodeRanges collection, with a pre-processing error if the - * preProcessingError property is not present, or with a file upload error if the fileUploadError - * property is not present. If you want non-default behavior on exit code 0, you must list it - * explicitly using the exitCodes or exitCodeRanges collection. - */ - default?: ExitOptions; +/** Specify either the userName or autoUser property, but not both. */ +export interface UserIdentity { + /** The userName and autoUser properties are mutually exclusive; you must specify one but not both. */ + userName?: string; + /** The userName and autoUser properties are mutually exclusive; you must specify one but not both. */ + autoUser?: AutoUserSpecification; } -/** - * An interface representing AutoUserSpecification. - * @summary Specifies the parameters for the auto user that runs a Task on the Batch service. - */ +/** Specifies the parameters for the auto user that runs a Task on the Batch service. */ 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 include: 'task', 'pool' - */ + /** 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. */ scope?: AutoUserScope; - /** - * The elevation level of the auto user. The default value is nonAdmin. Possible values include: - * 'nonAdmin', 'admin' - */ - elevationLevel?: ElevationLevel; -} - -/** - * Specify either the userName or autoUser property, but not both. - * @summary The definition of the user identity under which the Task is run. - */ -export interface UserIdentity { - /** - * The name of the user identity under which the Task is run. The userName and autoUser - * properties are mutually exclusive; you must specify one but not both. - */ - userName?: string; - /** - * The auto user under which the Task is run. The userName and autoUser properties are mutually - * exclusive; you must specify one but not both. - */ - autoUser?: AutoUserSpecification; -} - -/** - * An interface representing LinuxUserConfiguration. - * @summary Properties used to create a user Account on a Linux Compute Node. - */ -export interface LinuxUserConfiguration { - /** - * The user ID of the user Account. The uid and gid properties must be specified together or not - * at all. If not specified the underlying operating system picks the uid. - */ - uid?: number; - /** - * The group ID for the user Account. The uid and gid properties must be specified together or - * not at all. If not specified the underlying operating system picks the gid. - */ - gid?: number; - /** - * The SSH private key for the user Account. The private key must not be password protected. The - * private key is used to automatically configure asymmetric-key based authentication for SSH - * between Compute Nodes in a Linux Pool when the Pool's enableInterNodeCommunication property is - * true (it is ignored if enableInterNodeCommunication is false). It does this by placing the key - * pair into the user's .ssh directory. If not specified, password-less SSH is not configured - * between Compute Nodes (no modification of the user's .ssh directory is done). - */ - sshPrivateKey?: string; -} - -/** - * An interface representing WindowsUserConfiguration. - * @summary 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 include: - * 'batch', 'interactive' - */ - loginMode?: LoginMode; -} - -/** - * An interface representing UserAccount. - * @summary Properties used to create a user used to execute Tasks on an Azure Batch Compute Node. - */ -export interface UserAccount { - /** - * The name of the user Account. - */ - name: string; - /** - * The password for the user Account. - */ - password: string; - /** - * The elevation level of the user Account. The default value is nonAdmin. Possible values - * include: 'nonAdmin', 'admin' - */ + /** 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. - */ - windowsUserConfiguration?: WindowsUserConfiguration; -} - -/** - * An interface representing TaskConstraints. - * @summary Execution constraints to apply to a Task. - */ -export interface TaskConstraints { - /** - * The maximum elapsed time that the Task may run, measured from the time the Task starts. If the - * Task does not complete within the time limit, the Batch service terminates it. If this is not - * specified, there is no time limit on how long the Task may run. - */ - maxWallClockTime?: string; - /** - * The minimum time to retain the Task directory on the Compute Node where it ran, from the time - * it completes execution. After this time, the Batch service may delete the Task directory and - * all its contents. The default is 7 days, i.e. the Task directory will be retained for 7 days - * unless the Compute Node is removed or the Job is deleted. - */ - retentionTime?: string; - /** - * The maximum number of times the Task may be retried. The Batch service retries a Task if its - * exit code is nonzero. Note that this value specifically controls the number of retries for the - * Task executable due to a nonzero exit code. The Batch service will try the Task once, and may - * then retry up to this limit. For example, if the maximum retry count is 3, Batch tries the - * Task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, the Batch - * service does not retry the Task after the first attempt. If the maximum retry count is -1, the - * Batch service retries the Task without limit. - */ - maxTaskRetryCount?: number; -} - -/** - * An interface representing OutputFileBlobContainerDestination. - * @summary Specifies a file upload destination within an Azure blob storage container. - */ -export interface OutputFileBlobContainerDestination { - /** - * The destination blob or virtual directory within the Azure Storage container. If filePattern - * refers to a specific file (i.e. contains no wildcards), then path is the name of the blob to - * which to upload that file. If filePattern contains one or more wildcards (and therefore may - * match multiple files), then path is the name of the blob virtual directory (which is prepended - * to each blob name) to which to upload the file(s). If omitted, file(s) are uploaded to the - * root of the container with a blob name matching their file name. - */ - path?: string; - /** - * The URL of the container within Azure Blob Storage to which to upload the file(s). If not - * using a managed identity, the URL must include a Shared Access Signature (SAS) granting write - * permissions to the container. - */ - containerUrl: 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?: ComputeNodeIdentityReference; -} - -/** - * An interface representing OutputFileDestination. - * @summary The destination to which a file should be uploaded. - */ -export interface OutputFileDestination { - /** - * A location in Azure blob storage to which files are uploaded. - */ - container?: OutputFileBlobContainerDestination; -} - -/** - * An interface representing OutputFileUploadOptions. - * @summary Details about 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 include: 'taskSuccess', 'taskFailure', - * 'taskCompletion' - */ - uploadCondition: OutputFileUploadCondition; } -/** - * On every file uploads, Batch service writes two log files to the compute node, - * 'fileuploadout.txt' and 'fileuploaderr.txt'. These log files are used to learn more about a - * specific failure. - * @summary A specification for uploading files from an Azure Batch Compute Node to another - * location after the Batch service has finished executing the Task process. - */ -export interface OutputFile { - /** - * A pattern indicating which file(s) to upload. Both relative and absolute paths are supported. - * Relative paths are relative to the Task working directory. The following wildcards are - * supported: * matches 0 or more characters (for example pattern abc* would match abc or - * abcdef), ** matches any directory, ? matches any single character, [abc] matches one character - * in the brackets, and [a-c] matches one character in the range. Brackets can include a negation - * to match any character not specified (for example [!abc] matches any character but a, b, or - * c). If a file name starts with "." it is ignored by default but may be matched by specifying - * it explicitly (for example *.gif will not match .a.gif, but .*.gif will). A simple example: - * **\*.txt matches any file that does not start in '.' and ends with .txt in the Task working - * directory or any subdirectory. If the filename contains a wildcard character it can be escaped - * using brackets (for example abc[*] would match a file named abc*). Note that both \ and / are - * treated as directory separators on Windows, but only / is on Linux. Environment variables - * (%var% on Windows or $var on Linux) are expanded prior to the pattern being applied. - */ - filePattern: string; - /** - * 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; +/** A reference to an Package to be deployed to Compute Nodes. */ +export interface ApplicationPackageReference { + /** The ID of the application to deploy. */ + applicationId: string; + /** If this is omitted on a Pool, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences and HTTP status code 409. If this is omitted on a Task, and no default version is specified for this application, the Task fails with a pre-processing error. */ + version?: string; } -/** - * The Job Manager Task is automatically started when the Job is created. The Batch service tries - * to schedule the Job Manager Task before any other Tasks in the Job. When shrinking a Pool, the - * Batch service tries to preserve Nodes where Job Manager Tasks are running for as long as - * possible (that is, Compute Nodes running 'normal' Tasks are removed before Compute Nodes running - * Job Manager Tasks). When a Job Manager Task fails and needs to be restarted, the system tries to - * schedule it at the highest priority. If there are no idle Compute Nodes available, the system - * may terminate one of the running Tasks in the Pool and return it to the queue in order to make - * room for the Job Manager Task to restart. Note that a Job Manager Task in one Job does not have - * priority over Tasks in other Jobs. Across Jobs, only Job level priorities are observed. For - * example, if a Job Manager in a priority 0 Job needs to be restarted, it will not displace Tasks - * of a priority 1 Job. Batch will retry Tasks when a recovery operation is triggered on a Node. - * Examples of recovery operations include (but are not limited to) when an unhealthy Node is - * rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations - * are independent of and are not counted against the maxTaskRetryCount. Even if the - * maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of - * this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and - * restarted without causing any corruption or duplicate data. The best practice for long running - * Tasks is to use some form of checkpointing. - * @summary Specifies details of a Job Manager Task. - */ -export interface JobManagerTask { - /** - * A string that uniquely identifies the Job Manager Task within the Job. The ID can contain any - * combination of alphanumeric characters including hyphens and underscores and cannot contain - * more than 64 characters. - */ - id: string; - /** - * The display name of the Job Manager Task. It need not be unique and can contain any Unicode - * characters up to a maximum length of 1024. - */ - displayName?: string; - /** - * The command line of the Job Manager Task. 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 Job Manager 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?: TaskContainerSettings; - /** - * A list of files that the Batch service will download to the Compute Node before running the - * command line. Files listed under this element are located in the Task's working directory. - * 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?: ResourceFile[]; - /** - * 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?: OutputFile[]; - /** - * A list of environment variable settings for the Job Manager Task. - */ - environmentSettings?: EnvironmentSetting[]; - /** - * Constraints that apply to the Job Manager Task. - */ - constraints?: TaskConstraints; - /** - * The number of scheduling slots that the Task requires 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 property is not supported and must not be specified. - */ - requiredSlots?: number; - /** - * Whether completion of the Job Manager Task signifies completion of the entire Job. If true, - * when the Job Manager Task completes, the Batch service marks the Job as complete. If any Tasks - * are still running at this time (other than Job Release), those Tasks are terminated. If false, - * the completion of the Job Manager Task does not affect the Job status. In this case, you - * should either use the onAllTasksComplete attribute to terminate the Job, or have a client or - * user terminate the Job explicitly. An example of this is if the Job Manager creates a set of - * Tasks but then takes no further role in their execution. The default value is true. If you are - * using the onAllTasksComplete and onTaskFailure attributes to control Job lifetime, and using - * the Job Manager Task only to create the Tasks for the Job (not to monitor progress), then it - * is important to set killJobOnCompletion to false. - */ - killJobOnCompletion?: boolean; - /** - * The user identity under which the Job Manager Task runs. If omitted, the Task runs as a - * non-administrative user unique to the Task. - */ - userIdentity?: UserIdentity; - /** - * Whether the Job Manager Task requires exclusive use of the Compute Node where it runs. If - * true, no other Tasks will run on the same Node for as long as the Job Manager is running. If - * false, other Tasks can run simultaneously with the Job Manager on a Compute Node. The Job - * Manager Task counts normally against the Compute Node's concurrent Task limit, so this is only - * relevant if the Compute Node allows multiple concurrent Tasks. The default value is true. - */ - runExclusive?: boolean; - /** - * A list of Application 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 Application Package is - * already on the Compute Node, and is up to date, then it is not re-downloaded; the existing - * copy on the Compute Node is used. If a referenced Application Package cannot be installed, for - * example because the package has been deleted or because download failed, the Task fails. - */ - applicationPackageReferences?: ApplicationPackageReference[]; - /** - * 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?: AuthenticationTokenSettings; - /** - * Whether the Job Manager Task may run on a low-priority Compute Node. The default value is - * true. - */ - allowLowPriorityNode?: boolean; +/** The settings for an authentication token that the Task can use to perform Batch service operations. */ +export interface AuthenticationTokenSettings { + /** 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[]; } -/** - * You can use Job Preparation to prepare a Node to run Tasks for the Job. Activities commonly - * performed in Job Preparation include: Downloading common resource files used by all the Tasks in - * the Job. The Job Preparation Task can download these common resource files to the shared - * location on the Node. (AZ_BATCH_NODE_ROOT_DIR\shared), or starting a local service on the Node - * so that all Tasks of that Job can communicate with it. If the Job Preparation Task fails (that - * is, exhausts its retry count before exiting with exit code 0), Batch will not run Tasks of this - * Job on the Node. The Compute Node remains ineligible to run Tasks of this Job until it is - * reimaged. The Compute Node remains active and can be used for other Jobs. The Job Preparation - * Task can run multiple times on the same Node. Therefore, you should write the Job Preparation - * Task to handle re-execution. If the Node is rebooted, the Job Preparation Task is run again on - * the Compute Node before scheduling any other Task of the Job, if rerunOnNodeRebootAfterSuccess - * is true or if the Job Preparation Task did not previously complete. If the Node is reimaged, the - * Job Preparation Task is run again before scheduling any Task of the Job. Batch will retry Tasks - * when a recovery operation is triggered on a Node. Examples of recovery operations include (but - * are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host - * failure. Retries due to recovery operations are independent of and are not counted against the - * maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery - * operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to - * tolerate being interrupted and restarted without causing any corruption or duplicate data. The - * best practice for long running Tasks is to use some form of checkpointing. - * @summary A Job Preparation Task to run before any Tasks of the Job on any given Compute Node. - */ +/** You can use Job Preparation to prepare a Node to run Tasks for the Job. Activities commonly performed in Job Preparation include: Downloading common resource files used by all the Tasks in the Job. The Job Preparation Task can download these common resource files to the shared location on the Node. (AZ_BATCH_NODE_ROOT_DIR\shared), or starting a local service on the Node so that all Tasks of that Job can communicate with it. If the Job Preparation Task fails (that is, exhausts its retry count before exiting with exit code 0), Batch will not run Tasks of this Job on the Node. The Compute Node remains ineligible to run Tasks of this Job until it is reimaged. The Compute Node remains active and can be used for other Jobs. The Job Preparation Task can run multiple times on the same Node. Therefore, you should write the Job Preparation Task to handle re-execution. If the Node is rebooted, the Job Preparation Task is run again on the Compute Node before scheduling any other Task of the Job, if rerunOnNodeRebootAfterSuccess is true or if the Job Preparation Task did not previously complete. If the Node is reimaged, the Job Preparation Task is run again before scheduling any Task of the Job. Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running Tasks is to use some form of checkpointing. */ export interface JobPreparationTask { - /** - * A string that uniquely identifies the Job Preparation Task within the Job. The ID can contain - * any combination of alphanumeric characters including hyphens and underscores and cannot - * contain more than 64 characters. If you do not specify this property, the Batch service - * assigns a default value of 'jobpreparation'. No other Task in the Job can have the same ID as - * the Job Preparation Task. If you try to submit a Task with the same id, the Batch service - * rejects the request with error code TaskIdSameAsJobPreparationTask; if you are calling the - * REST API directly, the HTTP status code is 409 (Conflict). - */ + /** The ID can contain any combination of alphanumeric characters including hyphens and underscores and cannot contain more than 64 characters. If you do not specify this property, the Batch service assigns a default value of 'jobpreparation'. No other Task in the Job can have the same ID as the Job Preparation Task. If you try to submit a Task with the same id, the Batch service rejects the request with error code TaskIdSameAsJobPreparationTask; if you are calling the REST API directly, the HTTP status code is 409 (Conflict). */ id?: string; - /** - * The command line of the Job Preparation Task. 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). - */ + /** 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 Job Preparation Task runs. 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. - */ + /** 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?: TaskContainerSettings; - /** - * A list of files that the Batch service will download to the Compute Node before running the - * command line. Files listed under this element are located in the Task's working directory. - * 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. - */ + /** Files listed under this element are located in the Task's working directory. 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?: ResourceFile[]; - /** - * A list of environment variable settings for the Job Preparation Task. - */ + /** A list of environment variable settings for the Job Preparation Task. */ environmentSettings?: EnvironmentSetting[]; - /** - * Constraints that apply to the Job Preparation Task. - */ + /** Execution constraints to apply to a Task. */ constraints?: TaskConstraints; - /** - * Whether the Batch service should wait for the Job Preparation Task to complete successfully - * before scheduling any other Tasks of the Job on the Compute Node. A Job Preparation Task has - * completed successfully if it exits with exit code 0. If true and the Job Preparation Task - * fails on a Node, the Batch service retries the Job Preparation Task up to its maximum retry - * count (as specified in the constraints element). If the Task has still not completed - * successfully after all retries, then the Batch service will not schedule Tasks of the Job to - * the Node. The Node remains active and eligible to run Tasks of other Jobs. If false, the Batch - * service will not wait for the Job Preparation Task to complete. In this case, other Tasks of - * the Job can start executing on the Compute Node while the Job Preparation Task is still - * running; and even if the Job Preparation Task fails, new Tasks will continue to be scheduled - * on the Compute Node. The default value is true. - */ + /** If true and the Job Preparation Task fails on a Node, the Batch service retries the Job Preparation Task up to its maximum retry count (as specified in the constraints element). If the Task has still not completed successfully after all retries, then the Batch service will not schedule Tasks of the Job to the Node. The Node remains active and eligible to run Tasks of other Jobs. If false, the Batch service will not wait for the Job Preparation Task to complete. In this case, other Tasks of the Job can start executing on the Compute Node while the Job Preparation Task is still running; and even if the Job Preparation Task fails, new Tasks will continue to be scheduled on the Compute Node. The default value is true. */ waitForSuccess?: boolean; - /** - * The user identity under which the Job Preparation Task runs. If omitted, the Task runs as a - * non-administrative user unique to the Task on Windows Compute Nodes, or a non-administrative - * user unique to the Pool on Linux Compute Nodes. - */ + /** If omitted, the Task runs as a non-administrative user unique to the Task on Windows Compute Nodes, or a non-administrative user unique to the Pool on Linux Compute Nodes. */ userIdentity?: UserIdentity; - /** - * Whether the Batch service should rerun the Job Preparation Task after a Compute Node reboots. - * The Job Preparation Task is always rerun if a Compute Node is reimaged, or if the Job - * Preparation Task did not complete (e.g. because the reboot occurred while the Task was - * running). Therefore, you should always write a Job Preparation Task to be idempotent and to - * behave correctly if run multiple times. The default value is true. - */ + /** The Job Preparation Task is always rerun if a Compute Node is reimaged, or if the Job Preparation Task did not complete (e.g. because the reboot occurred while the Task was running). Therefore, you should always write a Job Preparation Task to be idempotent and to behave correctly if run multiple times. The default value is true. */ rerunOnNodeRebootAfterSuccess?: boolean; } -/** - * The Job Release Task runs when the Job ends, because of one of the following: The user calls the - * Terminate Job API, or the Delete Job API while the Job is still active, the Job's maximum wall - * clock time constraint is reached, and the Job is still active, or the Job's Job Manager Task - * completed, and the Job is configured to terminate when the Job Manager completes. The Job - * Release Task runs on each Node where Tasks of the Job have run and the Job Preparation Task ran - * and completed. If you reimage a Node after it has run the Job Preparation Task, and the Job ends - * without any further Tasks of the Job running on that Node (and hence the Job Preparation Task - * does not re-run), then the Job Release Task does not run on that Compute Node. If a Node reboots - * while the Job Release Task is still running, the Job Release Task runs again when the Compute - * Node starts up. The Job is not marked as complete until all Job Release Tasks have completed. - * The Job Release Task runs in the background. It does not occupy a scheduling slot; that is, it - * does not count towards the taskSlotsPerNode limit specified on the Pool. - * @summary A Job Release Task to run on Job completion on any Compute Node where the Job has run. - */ +/** The Job Release Task runs when the Job ends, because of one of the following: The user calls the Terminate Job API, or the Delete Job API while the Job is still active, the Job's maximum wall clock time constraint is reached, and the Job is still active, or the Job's Job Manager Task completed, and the Job is configured to terminate when the Job Manager completes. The Job Release Task runs on each Node where Tasks of the Job have run and the Job Preparation Task ran and completed. If you reimage a Node after it has run the Job Preparation Task, and the Job ends without any further Tasks of the Job running on that Node (and hence the Job Preparation Task does not re-run), then the Job Release Task does not run on that Compute Node. If a Node reboots while the Job Release Task is still running, the Job Release Task runs again when the Compute Node starts up. The Job is not marked as complete until all Job Release Tasks have completed. The Job Release Task runs in the background. It does not occupy a scheduling slot; that is, it does not count towards the taskSlotsPerNode limit specified on the Pool. */ export interface JobReleaseTask { - /** - * A string that uniquely identifies the Job Release Task within the Job. The ID can contain any - * combination of alphanumeric characters including hyphens and underscores and cannot contain - * more than 64 characters. If you do not specify this property, the Batch service assigns a - * default value of 'jobrelease'. No other Task in the Job can have the same ID as the Job - * Release Task. If you try to submit a Task with the same id, the Batch service rejects the - * request with error code TaskIdSameAsJobReleaseTask; if you are calling the REST API directly, - * the HTTP status code is 409 (Conflict). - */ + /** The ID can contain any combination of alphanumeric characters including hyphens and underscores and cannot contain more than 64 characters. If you do not specify this property, the Batch service assigns a default value of 'jobrelease'. No other Task in the Job can have the same ID as the Job Release Task. If you try to submit a Task with the same id, the Batch service rejects the request with error code TaskIdSameAsJobReleaseTask; if you are calling the REST API directly, the HTTP status code is 409 (Conflict). */ id?: string; - /** - * The command line of the Job Release Task. 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). - */ + /** 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 Job Release Task runs. 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. - */ + /** 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?: TaskContainerSettings; - /** - * A list of files that the Batch service will download to the Compute Node before running the - * command line. 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. Files listed under this element - * are located in the Task's working directory. - */ + /** Files listed under this element are located in the Task's working directory. */ resourceFiles?: ResourceFile[]; - /** - * A list of environment variable settings for the Job Release Task. - */ + /** A list of environment variable settings for the Job Release Task. */ environmentSettings?: EnvironmentSetting[]; - /** - * The maximum elapsed time that the Job Release Task may run on a given Compute Node, measured - * from the time the Task starts. If the Task does not complete within the time limit, the Batch - * service terminates it. The default value is 15 minutes. You may not specify a timeout longer - * than 15 minutes. If you do, the Batch service rejects it with an error; if you are calling the - * REST API directly, the HTTP status code is 400 (Bad Request). - */ + /** The maximum elapsed time that the Job Release Task may run on a given Compute Node, measured from the time the Task starts. If the Task does not complete within the time limit, the Batch service terminates it. The default value is 15 minutes. You may not specify a timeout longer than 15 minutes. If you do, the Batch service rejects it with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). */ maxWallClockTime?: string; - /** - * The minimum time to retain the Task directory for the Job Release Task on the Compute Node. - * After this time, the Batch service may delete the Task directory and all its contents. The - * default is 7 days, i.e. the Task directory will be retained for 7 days unless the Compute Node - * is removed or the Job is deleted. - */ + /** The default is 7 days, i.e. the Task directory will be retained for 7 days unless the Compute Node is removed or the Job is deleted. */ retentionTime?: string; - /** - * The user identity under which the Job Release Task runs. If omitted, the Task runs as a - * non-administrative user unique to the Task. - */ + /** If omitted, the Task runs as a non-administrative user unique to the Task. */ userIdentity?: UserIdentity; } -/** - * An interface representing TaskSchedulingPolicy. - * @summary Specifies how Tasks should be distributed across Compute Nodes. - */ -export interface TaskSchedulingPolicy { - /** - * How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is - * spread. Possible values include: 'spread', 'pack' - */ - nodeFillType: ComputeNodeFillType; +/** Specifies how a Job should be assigned to a Pool. */ +export interface PoolInformation { + /** You must ensure that the Pool referenced by this property exists. If the Pool does not exist at the time the Batch service tries to schedule a Job, no Tasks for the Job will run until you create a Pool with that id. Note that the Batch service will not reject the Job request; it will simply not run Tasks until the Pool exists. You must specify either the Pool ID or the auto Pool specification, but not both. */ + poolId?: string; + /** If auto Pool creation fails, the Batch service moves the Job to a completed state, and the Pool creation error is set in the Job's scheduling error property. The Batch service manages the lifetime (both creation and, unless keepAlive is specified, deletion) of the auto Pool. Any user actions that affect the lifetime of the auto Pool while the Job is active will result in unexpected behavior. You must specify either the Pool ID or the auto Pool specification, but not both. */ + autoPoolSpecification?: AutoPoolSpecification; } -/** - * Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery - * operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node - * disappeared due to host failure. Retries due to recovery operations are independent of and are - * not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry - * due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This - * means Tasks need to tolerate being interrupted and restarted without causing any corruption or - * duplicate data. The best practice for long running Tasks is to use some form of checkpointing. - * In some cases the StartTask may be re-run even though the Compute Node was not rebooted. Special - * care should be taken to avoid StartTasks which create breakaway process or install/launch - * services from the StartTask working directory, as this will block Batch from being able to - * re-run the StartTask. - * @summary A Task which is run when a Node joins a Pool in the Azure Batch service, or when the - * Compute Node is rebooted or reimaged. - */ -export interface StartTask { - /** - * The command line of the StartTask. 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 StartTask runs. 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?: TaskContainerSettings; +/** Specifies characteristics for a temporary 'auto pool'. The Batch service will create this auto Pool when the Job is submitted. */ +export interface AutoPoolSpecification { + /** 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. */ + poolLifetimeOption: PoolLifetimeOption; + /** 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; + /** Specification for creating a new Pool. */ + pool?: PoolSpecification; +} + +/** Specification for creating a new Pool. */ +export interface PoolSpecification { + /** The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. */ + displayName?: string; + /** 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; + /** 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; + /** 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). */ + virtualMachineConfiguration?: VirtualMachineConfiguration; + /** 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; + /** If not specified, the default is spread. */ + taskSchedulingPolicy?: TaskSchedulingPolicy; + /** 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 rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). */ + resizeTimeout?: string; + /** This property must not be specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set either targetDedicatedNodes, targetLowPriorityNodes, or both. */ + targetDedicatedNodes?: number; + /** This property must not be specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set either targetDedicatedNodes, targetLowPriorityNodes, or both. */ + targetLowPriorityNodes?: number; + /** If false, at least one of targetDedicatedNodes and targetLowPriorityNodes must be specified. If true, the autoScaleFormula element is required. The Pool automatically resizes according to the formula. The default value is false. */ + enableAutoScale?: boolean; + /** This property must not be specified if enableAutoScale is set to false. It is required if enableAutoScale is set to true. The formula is checked for validity before the Pool is created. If the formula is not valid, the Batch service rejects the request with detailed error information. */ + autoScaleFormula?: string; + /** 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). */ + autoScaleEvaluationInterval?: string; + /** Enabling inter-node communication limits the maximum size of the Pool due to deployment restrictions on the Compute Nodes of the Pool. This may result in the Pool not reaching its desired size. The default value is false. */ + enableInterNodeCommunication?: boolean; + /** The network configuration for a Pool. */ + networkConfiguration?: NetworkConfiguration; + /** Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running Tasks is to use some form of checkpointing. In some cases the StartTask may be re-run even though the Compute Node was not rebooted. Special care should be taken to avoid StartTasks which create breakaway process or install/launch services from the StartTask working directory, as this will block Batch from being able to re-run the StartTask. */ + startTask?: StartTask; + /** 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. */ + certificateReferences?: CertificateReference[]; + /** 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?: ApplicationPackageReference[]; + /** 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?: UserAccount[]; + /** The Batch service does not assign any meaning to metadata; it is solely for the use of user code. */ + metadata?: MetadataItem[]; + /** This supports Azure Files, NFS, CIFS/SMB, and Blobfuse. */ + mountConfiguration?: MountConfiguration[]; +} + +/** The configuration for Compute Nodes in a Pool based on the Azure Cloud Services platform. */ +export interface CloudServiceConfiguration { /** - * A list of files that the Batch service will download to the Compute Node before running the - * command line. 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. Files listed under this element - * are located in the Task's working directory. + * 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). */ - resourceFiles?: ResourceFile[]; + osFamily: string; + /** 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. */ +export interface VirtualMachineConfiguration { + /** A reference to an Azure Virtual Machines Marketplace Image or a Shared Image Gallery Image. To get the list of all Azure Marketplace Image references verified by Azure Batch, see the 'List Supported Images' operation. */ + imageReference: ImageReference; + /** The Batch Compute Node agent is a program that runs on each Compute Node in the Pool, and provides the command-and-control interface between the Compute Node and the Batch service. There are different implementations of the Compute Node agent, known as SKUs, for different operating systems. You must specify a Compute Node agent SKU which matches the selected Image reference. To get the list of supported Compute Node agent SKUs along with their list of verified Image references, see the 'List supported Compute Node agent SKUs' operation. */ + nodeAgentSKUId: string; + /** This property must not be specified if the imageReference property specifies a Linux OS Image. */ + windowsConfiguration?: WindowsConfiguration; + /** This property must be specified if the Compute Nodes in the Pool need to have empty data disks attached to them. This cannot be updated. Each Compute Node gets its own disk (the disk is not a file share). Existing disks cannot be attached, each attached disk is empty. When the Compute Node is removed from the Pool, the disk and all data associated with it is also deleted. The disk is not formatted after being attached, it must be formatted before use - for more information see https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux and https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. */ + dataDisks?: DataDisk[]; /** - * A list of environment variable settings for the StartTask. + * This only applies to Images that contain the Windows operating system, and should only be used when you hold valid on-premises licenses for the Compute Nodes which will be deployed. If omitted, no on-premises licensing discount is applied. Values are: + * + * Windows_Server - The on-premises license is for Windows Server. + * Windows_Client - The on-premises license is for Windows Client. + * */ - environmentSettings?: EnvironmentSetting[]; - /** - * The user identity under which the StartTask runs. If omitted, the Task runs as a - * non-administrative user unique to the Task. - */ - userIdentity?: UserIdentity; - /** - * The maximum number of times the Task may be retried. The Batch service retries a Task if its - * exit code is nonzero. Note that this value specifically controls the number of retries. The - * Batch service will try the Task once, and may then retry up to this limit. For example, if the - * maximum retry count is 3, Batch tries the Task up to 4 times (one initial try and 3 retries). - * If the maximum retry count is 0, the Batch service does not retry the Task. If the maximum - * retry count is -1, the Batch service retries the Task without limit. - */ - maxTaskRetryCount?: number; - /** - * Whether the Batch service should wait for the StartTask to complete successfully (that is, to - * exit with exit code 0) before scheduling any Tasks on the Compute Node. If true and the - * StartTask fails on a Node, the Batch service retries the StartTask up to its maximum retry - * count (maxTaskRetryCount). If the Task has still not completed successfully after all retries, - * then the Batch service marks the Node unusable, and will not schedule Tasks to it. This - * condition can be detected via the Compute Node state and failure info details. If false, the - * Batch service will not wait for the StartTask to complete. In this case, other Tasks can start - * executing on the Compute Node while the StartTask is still running; and even if the StartTask - * fails, new Tasks will continue to be scheduled on the Compute Node. The default is true. - */ - waitForSuccess?: boolean; -} - -/** - * An interface representing CertificateReference. - * @summary A reference to a Certificate to be installed on Compute Nodes in a Pool. - */ -export interface CertificateReference { - /** - * 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 include: 'currentUser', 'localMachine' - */ - storeLocation?: CertificateStoreLocation; - /** - * 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?: CertificateVisibility[]; -} - -/** - * The Batch service does not assign any meaning to this metadata; it is solely for the use of user - * code. - * @summary A name-value pair associated with a Batch service resource. - */ -export interface MetadataItem { - /** - * The name of the metadata item. - */ - name: string; - /** - * The value of the metadata item. - */ - value: string; -} - -/** - * An interface representing CloudServiceConfiguration. - * @summary The configuration for Compute Nodes in a Pool based on the Azure Cloud Services - * platform. - */ -export interface CloudServiceConfiguration { - /** - * The Azure Guest OS family to be installed on the virtual machines in the Pool. 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; + licenseType?: string; + /** If specified, setup is performed on each Compute Node in the Pool to allow Tasks to run in containers. All regular Tasks and Job manager Tasks run on this Pool must specify the containerSettings property, and all other Tasks may specify it. */ + containerConfiguration?: ContainerConfiguration; + /** If specified, encryption is performed on each node in the pool during node provisioning. */ + diskEncryptionConfiguration?: DiskEncryptionConfiguration; + /** This configuration will specify rules on how nodes in the pool will be physically allocated. */ + nodePlacementConfiguration?: NodePlacementConfiguration; + /** If specified, the extensions mentioned in this configuration will be installed on each node. */ + extensions?: VMExtension[]; + /** Settings for the operating system disk of the compute node (VM). */ + osDisk?: OSDisk; } -/** - * An interface representing WindowsConfiguration. - * @summary Windows operating system settings to apply to the virtual machine. - */ +/** Windows operating system settings to apply to the virtual machine. */ export interface WindowsConfiguration { - /** - * Whether automatic updates are enabled on the virtual machine. If omitted, the default value is - * true. - */ + /** If omitted, the default value is true. */ enableAutomaticUpdates?: boolean; } -/** - * An interface representing DataDisk. - * @summary Settings which will be used by the data disks associated to Compute Nodes in the Pool. - * When using attached data disks, you need to mount and format the disks from within a VM to use - * them. - */ +/** Settings which will be used by the data disks associated to Compute Nodes in the Pool. When using attached data disks, you need to mount and format the 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 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. */ 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 include: 'none', 'readOnly', 'readWrite' - */ + /** 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. - */ + /** 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 include: 'StandardLRS', 'PremiumLRS' - */ + /** If omitted, the default is "standard_lrs". */ storageAccountType?: StorageAccountType; } -/** - * An interface representing ContainerConfiguration. - * @summary The configuration for container-enabled Pools. - */ +/** The configuration for container-enabled Pools. */ export interface ContainerConfiguration { - /** - * 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. - */ + /** The container technology to be used. */ + type: "dockerCompatible"; + /** 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. - */ + /** If any Images must be downloaded from a private registry which requires credentials, then those credentials must be provided here. */ containerRegistries?: ContainerRegistry[]; } -/** - * The disk encryption configuration applied on compute nodes in the pool. Disk encryption - * configuration is not supported on Linux pool created with Shared Image Gallery Image. - */ +/** The disk encryption configuration applied on compute nodes in the pool. Disk encryption configuration is not supported on Linux pool created with Shared Image Gallery Image. */ 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. - */ + /** 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?: DiskEncryptionTarget[]; } -/** - * For regional placement, nodes in the pool will be allocated in the same region. For zonal - * placement, nodes in the pool will be spread across different zones with best effort balancing. - * @summary Node placement configuration for a pool. - */ +/** For regional placement, nodes in the pool will be allocated in the same region. For zonal placement, nodes in the pool will be spread across different zones with best effort balancing. */ export interface NodePlacementConfiguration { - /** - * 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 - * include: 'regional', 'zonal' - */ + /** Allocation policy used by Batch Service to provision the nodes. If not specified, Batch will use the regional policy. */ policy?: NodePlacementPolicyType; } -/** - * An interface representing VMExtension. - * @summary The configuration for virtual machine extensions. - */ +/** The configuration for virtual machine extensions. */ export interface VMExtension { - /** - * The name of the virtual machine extension. - */ + /** The name of the virtual machine extension. */ name: string; - /** - * The name of the extension handler publisher. - */ + /** The name of the extension handler publisher. */ publisher: string; - /** - * The type of the extension. - */ + /** The type of the extension. */ type: string; - /** - * The version of script handler. - */ + /** The version of script handler. */ typeHandlerVersion?: string; - /** - * Indicates whether the extension should use a newer minor version if one is available at - * deployment time. Once deployed, however, the extension will not upgrade minor versions unless - * redeployed, even with this property set to true. - */ + /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ autoUpgradeMinorVersion?: boolean; - /** - * JSON formatted public settings for the extension. - */ - settings?: any; - /** - * The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no - * protected settings at all. - */ - protectedSettings?: any; - /** - * The collection of extension names. Collection of extension names after which this extension - * needs to be provisioned. - */ + /** Any object */ + settings?: Record; + /** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */ + protectedSettings?: Record; + /** Collection of extension names after which this extension needs to be provisioned. */ provisionAfterExtensions?: string[]; } -/** - * An interface representing DiffDiskSettings. - * @summary Specifies the ephemeral Disk Settings for the operating system disk used by the compute - * node (VM). - */ +/** Settings for the operating system disk of the compute node (VM). */ +export interface OSDisk { + /** Specifies the ephemeral Disk Settings for the operating system disk used by the compute node (VM). */ + ephemeralOSDiskSettings?: DiffDiskSettings; +} + +/** Specifies the ephemeral Disk Settings for the operating system disk used by the 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 include: 'CacheDisk' - */ - placement?: DiffDiskPlacement; + /** 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?: "CacheDisk"; } -/** - * An interface representing OSDisk. - * @summary Settings for the operating system disk of the compute node (VM). - */ -export interface OSDisk { - /** - * Specifies the ephemeral Disk Settings for the operating system disk used by the compute node - * (VM). - */ - ephemeralOSDiskSettings?: DiffDiskSettings; +/** Specifies how Tasks should be distributed across Compute Nodes. */ +export interface TaskSchedulingPolicy { + /** If not specified, the default is spread. */ + nodeFillType: ComputeNodeFillType; } -/** - * An interface representing VirtualMachineConfiguration. - * @summary The configuration for Compute Nodes in a Pool based on the Azure Virtual Machines - * infrastructure. - */ -export interface VirtualMachineConfiguration { - /** - * A reference to the Azure Virtual Machines Marketplace Image or the custom Virtual Machine - * Image to use. - */ - imageReference: ImageReference; - /** - * The SKU of the Batch Compute Node agent to be provisioned on Compute Nodes in the Pool. The - * Batch Compute Node agent is a program that runs on each Compute Node in the Pool, and provides - * the command-and-control interface between the Compute Node and the Batch service. There are - * different implementations of the Compute Node agent, known as SKUs, for different operating - * systems. You must specify a Compute Node agent SKU which matches the selected Image reference. - * To get the list of supported Compute Node agent SKUs along with their list of verified Image - * references, see the 'List supported Compute Node agent SKUs' operation. - */ - nodeAgentSKUId: string; - /** - * Windows operating system settings on the virtual machine. This property must not be specified - * if the imageReference property specifies a Linux OS Image. - */ - windowsConfiguration?: WindowsConfiguration; - /** - * The configuration for data disks attached to the Compute Nodes in the Pool. This property must - * be specified if the Compute Nodes in the Pool need to have empty data disks attached to them. - * This cannot be updated. Each Compute Node gets its own disk (the disk is not a file share). - * Existing disks cannot be attached, each attached disk is empty. When the Compute Node is - * removed from the Pool, the disk and all data associated with it is also deleted. The disk is - * not formatted after being attached, it must be formatted before use - for more information see - * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux - * and - * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. - */ - dataDisks?: DataDisk[]; - /** - * The type of on-premises license to be used when deploying the operating system. This only - * applies to Images that contain the Windows operating system, and should only be used when you - * hold valid on-premises licenses for the Compute Nodes which will be deployed. If omitted, no - * on-premises licensing discount is applied. Values are: - * - * Windows_Server - The on-premises license is for Windows Server. - * Windows_Client - The on-premises license is for Windows Client. - */ - licenseType?: string; - /** - * The container configuration for the Pool. If specified, setup is performed on each Compute - * Node in the Pool to allow Tasks to run in containers. All regular Tasks and Job manager Tasks - * run on this Pool must specify the containerSettings property, and all other Tasks may specify - * it. - */ - containerConfiguration?: ContainerConfiguration; - /** - * The disk encryption configuration for the pool. If specified, encryption is performed on each - * node in the pool during node provisioning. - */ - diskEncryptionConfiguration?: DiskEncryptionConfiguration; - /** - * The node placement configuration for the pool. This configuration will specify rules on how - * nodes in the pool will be physically allocated. - */ - nodePlacementConfiguration?: NodePlacementConfiguration; - /** - * The virtual machine extension for the pool. If specified, the extensions mentioned in this - * configuration will be installed on each node. - */ - extensions?: VMExtension[]; - /** - * Settings for the operating system disk of the Virtual Machine. - */ - osDisk?: OSDisk; +/** The network configuration for a Pool. */ +export interface NetworkConfiguration { + /** 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 */ + subnetId?: string; + /** The scope of dynamic vnet assignment. */ + dynamicVNetAssignmentScope?: DynamicVNetAssignmentScope; + /** Pool endpoint configuration is only supported on Pools with the virtualMachineConfiguration property. */ + endpointConfiguration?: PoolEndpointConfiguration; + /** Public IP configuration property is only supported on Pools with the virtualMachineConfiguration property. */ + publicIPAddressConfiguration?: PublicIPAddressConfiguration; } -/** - * An interface representing NetworkSecurityGroupRule. - * @summary A network security group rule to apply to an inbound endpoint. - */ -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 include: 'allow', 'deny' - */ - 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 '*'. - */ - sourcePortRanges?: string[]; +/** The endpoint configuration for a Pool. */ +export interface PoolEndpointConfiguration { + /** 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: InboundNATPool[]; } -/** - * An interface representing InboundNATPool. - * @summary A inbound NAT Pool that can be used to address specific ports on Compute Nodes in a - * Batch Pool externally. - */ +/** A inbound NAT Pool that can be used to address specific ports on Compute Nodes in a Batch Pool externally. */ 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. - */ + /** 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 include: 'tcp', 'udp' - */ + /** 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. - */ + /** 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. - */ + /** 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. */ frontendPortRangeStart: number; - /** - * The last 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 by the Batch service. 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. - */ + /** Acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved by the Batch service. 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. */ frontendPortRangeEnd: number; - /** - * A list of network security group rules that will be applied to the endpoint. The maximum - * number of rules that can be specified across all the endpoints on a Batch Pool is 25. If no - * network security group rules are specified, a default rule will be created to allow inbound - * access to the specified backendPort. If the maximum number of network security group rules is - * exceeded the request fails with HTTP status code 400. - */ + /** The maximum number of rules that can be specified across all the endpoints on a Batch Pool is 25. If no network security group rules are specified, a default rule will be created to allow inbound access to the specified backendPort. If the maximum number of network security group rules is exceeded the request fails with HTTP status code 400. */ networkSecurityGroupRules?: NetworkSecurityGroupRule[]; } -/** - * An interface representing PoolEndpointConfiguration. - * @summary The endpoint configuration for a Pool. - */ -export interface PoolEndpointConfiguration { - /** - * 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: InboundNATPool[]; +/** A network security group rule to apply to an inbound endpoint. */ +export interface NetworkSecurityGroupRule { + /** 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. */ + access: NetworkSecurityGroupRuleAccess; + /** 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; + /** 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 '*'. */ + sourcePortRanges?: string[]; } -/** - * The public IP Address configuration of the networking configuration of a Pool. - */ +/** 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 include: 'batchManaged', 'userManaged', 'noPublicIPAddresses' - */ + /** 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 - * 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}. - */ + /** 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[]; } -/** - * 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 - */ - subnetId?: string; - /** - * The scope of dynamic vnet assignment. Possible values include: 'none', 'job' - */ - 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?: PoolEndpointConfiguration; - /** - * 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; +/** Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running Tasks is to use some form of checkpointing. In some cases the StartTask may be re-run even though the Compute Node was not rebooted. Special care should be taken to avoid StartTasks which create breakaway process or install/launch services from the StartTask working directory, as this will block Batch from being able to re-run the StartTask. */ +export interface StartTask { + /** 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; + /** 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?: TaskContainerSettings; + /** Files listed under this element are located in the Task's working directory. */ + resourceFiles?: ResourceFile[]; + /** A list of environment variable settings for the StartTask. */ + environmentSettings?: EnvironmentSetting[]; + /** If omitted, the Task runs as a non-administrative user unique to the Task. */ + userIdentity?: UserIdentity; + /** The Batch service retries a Task if its exit code is nonzero. Note that this value specifically controls the number of retries. The Batch service will try the Task once, and may then retry up to this limit. For example, if the maximum retry count is 3, Batch tries the Task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, the Batch service does not retry the Task. If the maximum retry count is -1, the Batch service retries the Task without limit. */ + maxTaskRetryCount?: number; + /** If true and the StartTask fails on a Node, the Batch service retries the StartTask up to its maximum retry count (maxTaskRetryCount). If the Task has still not completed successfully after all retries, then the Batch service marks the Node unusable, and will not schedule Tasks to it. This condition can be detected via the Compute Node state and failure info details. If false, the Batch service will not wait for the StartTask to complete. In this case, other Tasks can start executing on the Compute Node while the StartTask is still running; and even if the StartTask fails, new Tasks will continue to be scheduled on the Compute Node. The default is true. */ + waitForSuccess?: boolean; } -/** - * An interface representing AzureBlobFileSystemConfiguration. - * @summary Information used to connect to an Azure Storage Container using Blobfuse. - */ -export interface AzureBlobFileSystemConfiguration { - /** - * The Azure Storage Account name. - */ - accountName: string; - /** - * The Azure Blob Storage Container name. - */ - containerName: string; - /** - * The Azure Storage Account key. This property is mutually exclusive with both sasKey and - * identity; exactly one must be specified. - */ - accountKey?: string; - /** - * The Azure Storage SAS token. This property is mutually exclusive with both accountKey and - * identity; exactly one must be specified. - */ - sasKey?: string; - /** - * Additional command line options to pass to the mount command. These are 'net use' options in - * Windows and 'mount' options in Linux. - */ - blobfuseOptions?: 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. - */ - relativeMountPath: string; - /** - * The reference to the user assigned identity to use to access containerName. This property is - * mutually exclusive with both accountKey and sasKey; exactly one must be specified. - */ - identityReference?: ComputeNodeIdentityReference; +/** A reference to a Certificate to be installed on Compute Nodes in a Pool. */ +export interface CertificateReference { + /** The thumbprint of the Certificate. */ + thumbprint: string; + /** The algorithm with which the thumbprint is associated. This must be sha1. */ + thumbprintAlgorithm: string; + /** 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. */ + storeLocation?: CertificateStoreLocation; + /** 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; + /** You can specify more than one visibility in this collection. The default is all Accounts. */ + visibility?: CertificateVisibility[]; } -/** - * An interface representing NFSMountConfiguration. - * @summary Information used to connect to an NFS file system. - */ -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. - */ - relativeMountPath: string; - /** - * Additional command line options to pass to the mount command. These are 'net use' options in - * Windows and 'mount' options in Linux. - */ - mountOptions?: string; -} - -/** - * An interface representing CIFSMountConfiguration. - * @summary Information used to connect to a CIFS file system. - */ -export interface CIFSMountConfiguration { - /** - * The user to use for authentication against the CIFS file system. - */ - username: string; - /** - * 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. - */ - relativeMountPath: string; - /** - * Additional command line options to pass to the mount command. These are 'net use' options in - * Windows and 'mount' options in Linux. - */ - mountOptions?: string; - /** - * The password to use for authentication against the CIFS file system. - */ +/** Properties used to create a user used to execute Tasks on an Azure Batch Compute Node. */ +export interface UserAccount { + /** The name of the user Account. */ + name: string; + /** The password for the user Account. */ password: string; + /** The default value is nonAdmin. */ + elevationLevel?: ElevationLevel; + /** This property is ignored if specified on a Windows Pool. If not specified, the user is created with the default options. */ + linuxUserConfiguration?: LinuxUserConfiguration; + /** 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. */ + windowsUserConfiguration?: WindowsUserConfiguration; } -/** - * An interface representing AzureFileShareConfiguration. - * @summary Information used to connect to an Azure Fileshare. - */ -export interface AzureFileShareConfiguration { - /** - * The Azure Storage account name. - */ - accountName: string; - /** - * The Azure Files URL. This is of the form 'https://{account}.file.core.windows.net/'. - */ - azureFileUrl: string; - /** - * The Azure Storage account key. - */ - accountKey: 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. - */ - relativeMountPath: string; - /** - * Additional command line options to pass to the mount command. These are 'net use' options in - * Windows and 'mount' options in Linux. - */ - mountOptions?: string; +/** Properties used to create a user Account on a Linux Compute Node. */ +export interface LinuxUserConfiguration { + /** The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the uid. */ + uid?: number; + /** The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the gid. */ + gid?: number; + /** The private key must not be password protected. The private key is used to automatically configure asymmetric-key based authentication for SSH between Compute Nodes in a Linux Pool when the Pool's enableInterNodeCommunication property is true (it is ignored if enableInterNodeCommunication is false). It does this by placing the key pair into the user's .ssh directory. If not specified, password-less SSH is not configured between Compute Nodes (no modification of the user's .ssh directory is done). */ + sshPrivateKey?: string; } -/** - * An interface representing MountConfiguration. - * @summary The file system to mount on each node. - */ +/** Properties used to create a user Account on a Windows Compute Node. */ +export interface WindowsUserConfiguration { + /** The default value for VirtualMachineConfiguration Pools is 'batch' and for CloudServiceConfiguration Pools is 'interactive'. */ + loginMode?: LoginMode; +} + +/** The Batch service does not assign any meaning to this metadata; it is solely for the use of user code. */ +export interface MetadataItem { + /** The name of the metadata item. */ + name: string; + /** The value of the metadata item. */ + value: string; +} + +/** The file system to mount on each node. */ export interface MountConfiguration { - /** - * The Azure Storage Container to mount using blob FUSE on each node. This property is mutually - * exclusive with all other properties. - */ + /** 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. - */ + /** This property is mutually exclusive with all other properties. */ 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. - */ + /** This property is mutually exclusive with all other properties. */ + cifsMountConfiguration?: CifsMountConfiguration; + /** This property is mutually exclusive with all other properties. */ azureFileShareConfiguration?: AzureFileShareConfiguration; } -/** - * An interface representing PoolSpecification. - * @summary Specification for creating a new Pool. - */ -export interface PoolSpecification { - /** - * 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 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). - */ - 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; - /** - * How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is - * spread. - */ - taskSchedulingPolicy?: TaskSchedulingPolicy; - /** - * 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 rejects the request with an error; if you are calling the REST API directly, the HTTP - * status code is 400 (Bad Request). - */ - resizeTimeout?: string; - /** - * The desired number of dedicated Compute Nodes in the Pool. This property must not be specified - * if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set - * either targetDedicatedNodes, targetLowPriorityNodes, or both. - */ - targetDedicatedNodes?: number; - /** - * The desired number of low-priority Compute Nodes in the Pool. This property must not be - * specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must - * set either targetDedicatedNodes, targetLowPriorityNodes, or both. - */ - targetLowPriorityNodes?: number; - /** - * Whether the Pool size should automatically adjust over time. If false, at least one of - * targetDedicatedNodes and targetLowPriorityNodes must be specified. If true, the - * autoScaleFormula element is required. The Pool automatically resizes according to the formula. - * The default value is false. - */ - enableAutoScale?: boolean; - /** - * The formula for the desired number of Compute Nodes in the Pool. This property must not be - * specified if enableAutoScale is set to false. It is required if enableAutoScale is set to - * true. The formula is checked for validity before the Pool is created. If the formula is not - * valid, the Batch service rejects the request with detailed error information. - */ - 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). - */ - autoScaleEvaluationInterval?: string; - /** - * Whether the Pool permits direct communication between Compute Nodes. Enabling inter-node - * communication limits the maximum size of the Pool due to deployment restrictions on the - * Compute Nodes of the Pool. This may result in the Pool not reaching its desired size. The - * default value is false. - */ - enableInterNodeCommunication?: boolean; - /** - * The network configuration for the Pool. - */ - 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?: StartTask; - /** - * A list of Certificates to be installed on each Compute Node in 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. - */ - certificateReferences?: CertificateReference[]; - /** - * 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. - */ - applicationPackageReferences?: ApplicationPackageReference[]; - /** - * 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?: UserAccount[]; - /** - * 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?: MetadataItem[]; - /** - * A list of file systems to mount on each node in the pool. This supports Azure Files, NFS, - * CIFS/SMB, and Blobfuse. - */ - mountConfiguration?: MountConfiguration[]; -} - -/** - * An interface representing AutoPoolSpecification. - * @summary Specifies characteristics for a temporary 'auto pool'. The Batch service will create - * this auto Pool when the Job is submitted. - */ -export interface AutoPoolSpecification { - /** - * 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 include: 'jobSchedule', 'job' - */ - poolLifetimeOption: PoolLifetimeOption; - /** - * 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. - */ - pool?: PoolSpecification; +/** Information used to connect to an Azure Storage Container using Blobfuse. */ +export interface AzureBlobFileSystemConfiguration { + /** The Azure Storage Account name. */ + accountName: string; + /** The Azure Blob Storage Container name. */ + containerName: string; + /** This property is mutually exclusive with both sasKey and identity; exactly one must be specified. */ + accountKey?: string; + /** This property is mutually exclusive with both accountKey and identity; exactly one must be specified. */ + sasKey?: string; + /** These are 'net use' options in Windows and 'mount' options in Linux. */ + blobfuseOptions?: string; + /** All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable. */ + relativeMountPath: string; + /** This property is mutually exclusive with both accountKey and sasKey; exactly one must be specified. */ + identityReference?: ComputeNodeIdentityReference; } -/** - * An interface representing PoolInformation. - * @summary Specifies how a Job should be assigned to a Pool. - */ -export interface PoolInformation { - /** - * The ID of an existing Pool. All the Tasks of the Job will run on the specified Pool. You must - * ensure that the Pool referenced by this property exists. If the Pool does not exist at the - * time the Batch service tries to schedule a Job, no Tasks for the Job will run until you create - * a Pool with that id. Note that the Batch service will not reject the Job request; it will - * simply not run Tasks until the Pool exists. You must specify either the Pool ID or the auto - * Pool specification, but not both. - */ - poolId?: string; - /** - * Characteristics for a temporary 'auto pool'. The Batch service will create this auto Pool when - * the Job is submitted. If auto Pool creation fails, the Batch service moves the Job to a - * completed state, and the Pool creation error is set in the Job's scheduling error property. - * The Batch service manages the lifetime (both creation and, unless keepAlive is specified, - * deletion) of the auto Pool. Any user actions that affect the lifetime of the auto Pool while - * the Job is active will result in unexpected behavior. You must specify either the Pool ID or - * the auto Pool specification, but not both. - */ - autoPoolSpecification?: AutoPoolSpecification; +/** Information used to connect to an NFS file system. */ +export interface NFSMountConfiguration { + /** The URI of the file system to mount. */ + source: string; + /** All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable. */ + relativeMountPath: string; + /** These are 'net use' options in Windows and 'mount' options in Linux. */ + mountOptions?: string; } -/** - * An interface representing JobSpecification. - * @summary Specifies details of the Jobs to be created on a schedule. - */ -export interface JobSpecification { - /** - * The priority of Jobs created under this schedule. 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. This priority is used as the default for all Jobs under the Job Schedule. You can - * update a Job's priority after it has been created using by using the update Job API. - */ - priority?: number; - /** - * The maximum number of tasks that can be executed in parallel for the job. The value of - * maxParallelTasks must be -1 or greater than 0 if specified. If not specified, the default - * value is -1, which means there's no limit to the number of tasks that can be run at once. You - * can update a job's maxParallelTasks after it has been created using the update job API. - * Default value: -1. - */ - maxParallelTasks?: number; - /** - * The display name for Jobs created under this schedule. The name need not be unique and can - * contain any Unicode characters up to a maximum length of 1024. - */ - 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 - * include: 'noAction', 'terminateJob' - */ - onAllTasksComplete?: OnAllTasksComplete; - /** - * 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 include: 'noAction', - * 'performExitOptionsJobAction' - */ - onTaskFailure?: OnTaskFailure; - /** - * The network configuration for the Job. - */ - networkConfiguration?: JobNetworkConfiguration; - /** - * The execution constraints for Jobs created under this schedule. - */ - constraints?: JobConstraints; - /** - * The details of a Job Manager Task to be launched when a Job is started under this schedule. If - * the Job does not specify a Job Manager Task, the user must explicitly add Tasks to the Job - * using the Task API. If the Job does specify a Job Manager Task, the Batch service creates the - * Job Manager Task when the Job is created, and will try to schedule the Job Manager Task before - * scheduling other Tasks in the Job. - */ - jobManagerTask?: JobManagerTask; - /** - * The Job Preparation Task for Jobs created under this schedule. If a Job has a Job Preparation - * Task, the Batch service will run the Job Preparation Task on a Node before starting any Tasks - * of that Job on that Compute Node. - */ - jobPreparationTask?: JobPreparationTask; - /** - * The Job Release Task for Jobs created under this schedule. The primary purpose of the Job - * Release Task is to undo changes to Nodes made by the Job Preparation Task. Example activities - * include deleting local files, or shutting down services that were started as part of Job - * preparation. A Job Release Task cannot be specified without also specifying a Job Preparation - * Task for the Job. The Batch service runs the Job Release Task on the Compute Nodes that have - * run the Job Preparation Task. - */ - jobReleaseTask?: JobReleaseTask; - /** - * A list of common environment variable settings. These environment variables are set for all - * Tasks in Jobs created under this schedule (including the Job Manager, Job Preparation and Job - * Release Tasks). Individual Tasks can override an environment setting specified here by - * specifying the same setting name with a different value. - */ - commonEnvironmentSettings?: EnvironmentSetting[]; - /** - * The Pool on which the Batch service runs the Tasks of Jobs created under this schedule. - */ - poolInfo: PoolInformation; - /** - * A list of name-value pairs associated with each Job created under this schedule as metadata. - * The Batch service does not assign any meaning to metadata; it is solely for the use of user - * code. - */ - metadata?: MetadataItem[]; +/** Information used to connect to a CIFS file system. */ +export interface CifsMountConfiguration { + /** The user to use for authentication against the CIFS file system. */ + username: string; + /** The URI of the file system to mount. */ + source: string; + /** All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable. */ + relativeMountPath: string; + /** These are 'net use' options in Windows and 'mount' options in Linux. */ + mountOptions?: string; + /** The password to use for authentication against the CIFS file system. */ + password: string; } -/** - * An interface representing RecentJob. - * @summary Information about the most recent Job to run under the Job Schedule. - */ -export interface RecentJob { - /** - * The ID of the Job. - */ - id?: string; - /** - * The URL of the Job. - */ - url?: string; +/** Information used to connect to an Azure Fileshare. */ +export interface AzureFileShareConfiguration { + /** The Azure Storage account name. */ + accountName: string; + /** This is of the form 'https://{account}.file.core.windows.net/'. */ + azureFileUrl: string; + /** The Azure Storage account key. */ + accountKey: string; + /** All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable. */ + relativeMountPath: string; + /** These are 'net use' options in Windows and 'mount' options in Linux. */ + mountOptions?: string; } -/** - * An interface representing JobScheduleExecutionInformation. - * @summary Contains information about Jobs that have been and will be run under a Job Schedule. - */ +/** Contains information about Jobs that have been and will be run under a Job Schedule. */ export interface JobScheduleExecutionInformation { - /** - * The next time at which a Job will be created under this schedule. This property is meaningful - * only if the schedule is in the active state when the time comes around. For example, if the - * schedule is disabled, no Job will be created at nextRunTime unless the Job is enabled before - * then. - */ + /** This property is meaningful only if the schedule is in the active state when the time comes around. For example, if the schedule is disabled, no Job will be created at nextRunTime unless the Job is enabled before then. */ nextRunTime?: Date; - /** - * Information about the most recent Job under the Job Schedule. This property is present only if - * the at least one Job has run under the schedule. - */ + /** This property is present only if the at least one Job has run under the schedule. */ recentJob?: RecentJob; - /** - * The time at which the schedule ended. This property is set only if the Job Schedule is in the - * completed state. - */ + /** This property is set only if the Job Schedule is in the completed state. */ endTime?: Date; } -/** - * An interface representing JobScheduleStatistics. - * @summary Resource usage statistics for a Job Schedule. - */ +/** Information about the most recent Job to run under the Job Schedule. */ +export interface RecentJob { + /** The ID of the Job. */ + id?: string; + /** The URL of the Job. */ + url?: string; +} + +/** Resource usage statistics for a Job Schedule. */ export interface JobScheduleStatistics { - /** - * The URL of the statistics. - */ + /** The URL of the statistics. */ url: string; - /** - * The start time of the time range covered by the statistics. - */ + /** The start time of the time range covered by the statistics. */ startTime: Date; - /** - * The time at which the statistics were last updated. All statistics are limited to the range - * between startTime and lastUpdateTime. - */ + /** The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime. */ lastUpdateTime: Date; - /** - * The total user mode CPU time (summed across all cores and all Compute Nodes) consumed by all - * Tasks in all Jobs created under the schedule. - */ + /** The total user mode CPU time (summed across all cores and all Compute Nodes) consumed by all Tasks in all Jobs created under the schedule. */ userCPUTime: string; - /** - * The total kernel mode CPU time (summed across all cores and all Compute Nodes) consumed by all - * Tasks in all Jobs created under the schedule. - */ + /** The total kernel mode CPU time (summed across all cores and all Compute Nodes) consumed by all Tasks in all Jobs created under the schedule. */ kernelCPUTime: string; - /** - * The total wall clock time of all the Tasks in all the Jobs created under the schedule. The - * wall clock time is the elapsed time from when the Task started running on a Compute Node to - * when it finished (or to the last time the statistics were updated, if the Task had not - * finished by then). If a Task was retried, this includes the wall clock time of all the Task - * retries. - */ + /** The wall clock time is the elapsed time from when the Task started running on a Compute Node to when it finished (or to the last time the statistics were updated, if the Task had not finished by then). If a Task was retried, this includes the wall clock time of all the Task retries. */ wallClockTime: string; - /** - * The total number of disk read operations made by all Tasks in all Jobs created under the - * schedule. - */ + /** The total number of disk read operations made by all Tasks in all Jobs created under the schedule. */ readIOps: number; - /** - * The total number of disk write operations made by all Tasks in all Jobs created under the - * schedule. - */ + /** The total number of disk write operations made by all Tasks in all Jobs created under the schedule. */ writeIOps: number; - /** - * The total gibibytes read from disk by all Tasks in all Jobs created under the schedule. - */ + /** The total gibibytes read from disk by all Tasks in all Jobs created under the schedule. */ readIOGiB: number; - /** - * The total gibibytes written to disk by all Tasks in all Jobs created under the schedule. - */ + /** The total gibibytes written to disk by all Tasks in all Jobs created under the schedule. */ writeIOGiB: number; - /** - * The total number of Tasks successfully completed during the given time range in Jobs created - * under the schedule. A Task completes successfully if it returns exit code 0. - */ + /** The total number of Tasks successfully completed during the given time range in Jobs created under the schedule. A Task completes successfully if it returns exit code 0. */ numSucceededTasks: number; - /** - * The total number of Tasks that failed during the given time range in Jobs created under the - * schedule. A Task fails if it exhausts its maximum retry count without returning exit code 0. - */ + /** The total number of Tasks that failed during the given time range in Jobs created under the schedule. A Task fails if it exhausts its maximum retry count without returning exit code 0. */ numFailedTasks: number; - /** - * The total number of retries during the given time range on all Tasks in all Jobs created under - * the schedule. - */ + /** The total number of retries during the given time range on all Tasks in all Jobs created under the schedule. */ numTaskRetries: number; - /** - * The total wait time of all Tasks in all Jobs created under the schedule. The wait time for a - * Task is defined as the elapsed time between the creation of the Task and the start of Task - * execution. (If the Task is retried due to failures, the wait time is the time to the most - * recent Task execution.). This value is only reported in the Account lifetime statistics; it is - * not included in the Job statistics. - */ + /** This value is only reported in the Account lifetime statistics; it is not included in the Job statistics. */ waitTime: string; } -/** - * An interface representing CloudJobSchedule. - * @summary A Job Schedule that allows recurring Jobs by specifying when to run Jobs and a - * specification used to create each Job. - */ -export interface CloudJobSchedule { - /** - * A string that uniquely identifies the schedule within the Account. - */ - id?: string; - /** - * The display name for the schedule. - */ - displayName?: string; - /** - * The URL of the Job Schedule. - */ - url?: string; - /** - * The ETag of the Job Schedule. This is an opaque string. You can use it to detect whether the - * Job Schedule has changed between requests. In particular, you can be pass the ETag with an - * Update Job Schedule request to specify that your changes should take effect only if nobody - * else has modified the schedule in the meantime. - */ - eTag?: string; - /** - * The last modified time of the Job Schedule. This is the last time at which the schedule level - * data, such as the Job specification or recurrence information, changed. It does not factor in - * job-level changes such as new Jobs being created or Jobs changing state. - */ - lastModified?: Date; - /** - * The creation time of the Job Schedule. - */ - creationTime?: Date; - /** - * The current state of the Job Schedule. Possible values include: 'active', 'completed', - * 'disabled', 'terminating', 'deleting' - */ - state?: JobScheduleState; - /** - * The time at which the Job Schedule entered the current state. - */ - stateTransitionTime?: Date; - /** - * The previous state of the Job Schedule. This property is not present if the Job Schedule is in - * its initial active state. Possible values include: 'active', 'completed', 'disabled', - * 'terminating', 'deleting' - */ - previousState?: JobScheduleState; - /** - * 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. - */ - previousStateTransitionTime?: Date; - /** - * The schedule according to which Jobs will be created. - */ +/** The set of changes to be made to a Job Schedule. */ +export interface JobSchedulePatchParameter { + /** 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; - /** - * 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?: JobSpecification; - /** - * Information about Jobs that have been and will be run under this schedule. - */ - executionInfo?: JobScheduleExecutionInformation; - /** - * 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. - */ + /** If you do not specify this element, existing metadata is left unchanged. */ metadata?: MetadataItem[]; - /** - * The lifetime resource usage statistics for the Job Schedule. The statistics may not be - * immediately available. The Batch service performs periodic roll-up of statistics. The typical - * delay is about 30 minutes. - */ - stats?: JobScheduleStatistics; } -/** - * An interface representing JobScheduleAddParameter. - * @summary A Job Schedule that allows recurring Jobs by specifying when to run Jobs and a - * specification used to create each Job. - */ +/** The set of changes to be made to a Job Schedule. */ +export interface JobScheduleUpdateParameter { + /** All times are fixed respective to UTC and are not impacted by daylight saving time. If you do not specify this element, it is equivalent to passing the default schedule: that is, a single Job scheduled to run immediately. */ + schedule: Schedule; + /** Updates affect only Jobs that are started after the update has taken place. Any currently active Job continues with the older specification. */ + jobSpecification: JobSpecification; + /** If you do not specify this element, it takes the default value of an empty list; in effect, any existing metadata is deleted. */ + metadata?: MetadataItem[]; +} + +/** A Job Schedule that allows recurring Jobs by specifying when to run Jobs and a specification used to create each Job. */ export interface JobScheduleAddParameter { - /** - * 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). - */ + /** 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. - */ + /** 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; - /** - * The details of the Jobs to be created on this schedule. - */ + /** Specifies details of the Jobs to be created on a schedule. */ jobSpecification: JobSpecification; - /** - * 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. - */ + /** The Batch service does not assign any meaning to metadata; it is solely for the use of user code. */ metadata?: MetadataItem[]; } -/** - * An interface representing JobSchedulingError. - * @summary An error encountered by the Batch service when scheduling a Job. - */ -export interface JobSchedulingError { - /** - * The category of the Job scheduling error. Possible values include: 'userError', 'serverError' - */ - 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. - */ - message?: string; - /** - * A list of additional error details related to the scheduling error. - */ - details?: NameValuePair[]; -} - -/** - * An interface representing JobExecutionInformation. - * @summary Contains information about the execution of a Job in the Azure Batch service. - */ -export interface JobExecutionInformation { - /** - * The start time of the Job. This is the time at which the Job was created. - */ - startTime: Date; - /** - * The completion time of the Job. This property is set only if the Job is in the completed - * state. - */ - endTime?: Date; - /** - * The ID of the Pool to which this Job is assigned. This element contains the actual Pool where - * the Job is assigned. When you get Job details from the service, they also contain a poolInfo - * element, which contains the Pool configuration data from when the Job was added or updated. - * That poolInfo element may also contain a poolId element. If it does, the two IDs are the same. - * If it does not, it means the Job ran on an auto Pool, and this property contains the ID of - * that auto Pool. - */ - poolId?: string; - /** - * Details of any error encountered by the service in starting the Job. This property is not set - * if there was no error starting the Job. - */ - schedulingError?: JobSchedulingError; - /** - * A string describing the reason the Job ended. This property is set only if the Job is in the - * completed state. If the Batch service terminates the Job, it sets the reason as follows: - * JMComplete - the Job Manager Task completed, and killJobOnCompletion was set to true. - * MaxWallClockTimeExpiry - the Job reached its maxWallClockTime constraint. TerminateJobSchedule - * - the Job ran as part of a schedule, and the schedule terminated. AllTasksComplete - the Job's - * onAllTasksComplete attribute is set to terminatejob, and all Tasks in the Job are complete. - * TaskFailed - the Job's onTaskFailure attribute is set to performExitOptionsJobAction, and a - * Task in the Job failed with an exit condition that specified a jobAction of terminatejob. Any - * other string is a user-defined reason specified in a call to the 'Terminate a Job' operation. - */ - terminateReason?: string; +/** The result of listing the Job Schedules in an Account. */ +export interface CloudJobScheduleListResult { + /** The list of Job Schedules. */ + value?: CloudJobSchedule[]; + /** The URL to get the next set of results. */ + odataNextLink?: string; } -/** - * An interface representing CloudJob. - * @summary An Azure Batch Job. - */ +/** An Azure Batch Job. */ export interface CloudJob { - /** - * A string that uniquely identifies the Job within the Account. The ID is case-preserving and - * case-insensitive (that is, you may not have two IDs within an Account that differ only by - * case). - */ + /** 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 for the Job. */ displayName?: string; - /** - * Whether Tasks in the Job can define dependencies on each other. The default is false. - */ + /** Whether Tasks in the Job can define dependencies on each other. The default is false. */ usesTaskDependencies?: boolean; - /** - * The URL of the Job. - */ + /** The URL of the Job. */ url?: string; - /** - * The ETag of the Job. This is an opaque string. You can use it to detect whether the Job has - * changed between requests. In particular, you can be pass the ETag when updating a Job to - * specify that your changes should take effect only if nobody else has modified the Job in the - * meantime. - */ + /** This is an opaque string. You can use it to detect whether the Job has changed between requests. In particular, you can be pass the ETag when updating a Job to specify that your changes should take effect only if nobody else has modified the Job in the meantime. */ eTag?: string; - /** - * The last modified time of the Job. This is the last time at which the Job level data, such as - * the Job state or priority, changed. It does not factor in task-level changes such as adding - * new Tasks or Tasks changing state. - */ + /** This is the last time at which the Job level data, such as the Job state or priority, changed. It does not factor in task-level changes such as adding new Tasks or Tasks changing state. */ lastModified?: Date; - /** - * The creation time of the Job. - */ + /** The creation time of the Job. */ creationTime?: Date; - /** - * The current state of the Job. Possible values include: 'active', 'disabling', 'disabled', - * 'enabling', 'terminating', 'completed', 'deleting' - */ + /** The state of the Job. */ state?: JobState; - /** - * The time at which the Job entered its current state. - */ + /** The time at which the Job entered its current state. */ stateTransitionTime?: Date; - /** - * The previous state of the Job. This property is not set if the Job is in its initial Active - * state. Possible values include: 'active', 'disabling', 'disabled', 'enabling', 'terminating', - * 'completed', 'deleting' - */ + /** This property is not set if the Job is in its initial Active state. */ previousState?: JobState; - /** - * The time at which the Job entered its previous state. This property is not set if the Job is - * in its initial Active state. - */ + /** This property is not set if the Job is in its initial Active state. */ previousStateTransitionTime?: Date; - /** - * 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. - */ + /** 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. */ priority?: number; - /** - * The maximum number of tasks that can be executed in parallel for the job. The value of - * maxParallelTasks must be -1 or greater than 0 if specified. If not specified, the default - * value is -1, which means there's no limit to the number of tasks that can be run at once. You - * can update a job's maxParallelTasks after it has been created using the update job API. - * Default value: -1. - */ + /** 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. */ + allowTaskPreemption?: boolean; + /** The value of maxParallelTasks must be -1 or greater than 0 if specified. If not specified, the default value is -1, which means there's no limit to the number of tasks that can be run at once. You can update a job's maxParallelTasks after it has been created using the update job API. */ maxParallelTasks?: number; - /** - * The execution constraints for the Job. - */ + /** The execution constraints for a Job. */ constraints?: JobConstraints; - /** - * Details of a Job Manager Task to be launched when the Job is started. - */ + /** The Job Manager Task is automatically started when the Job is created. The Batch service tries to schedule the Job Manager Task before any other Tasks in the Job. When shrinking a Pool, the Batch service tries to preserve Nodes where Job Manager Tasks are running for as long as possible (that is, Compute Nodes running 'normal' Tasks are removed before Compute Nodes running Job Manager Tasks). When a Job Manager Task fails and needs to be restarted, the system tries to schedule it at the highest priority. If there are no idle Compute Nodes available, the system may terminate one of the running Tasks in the Pool and return it to the queue in order to make room for the Job Manager Task to restart. Note that a Job Manager Task in one Job does not have priority over Tasks in other Jobs. Across Jobs, only Job level priorities are observed. For example, if a Job Manager in a priority 0 Job needs to be restarted, it will not displace Tasks of a priority 1 Job. Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running Tasks is to use some form of checkpointing. */ jobManagerTask?: JobManagerTask; - /** - * The Job Preparation Task. The Job Preparation Task is a special Task run on each Compute Node - * before any other Task of the Job. - */ + /** The Job Preparation Task is a special Task run on each Compute Node before any other Task of the Job. */ jobPreparationTask?: JobPreparationTask; - /** - * The Job Release Task. The Job Release Task is a special Task run at the end of the Job on each - * Compute Node that has run any other Task of the Job. - */ + /** The Job Release Task is a special Task run at the end of the Job on each Compute Node that has run any other Task of the Job. */ jobReleaseTask?: JobReleaseTask; - /** - * The list of common environment variable settings. These environment variables are set for all - * Tasks in the Job (including the Job Manager, Job Preparation and Job Release Tasks). - * Individual Tasks can override an environment setting specified here by specifying the same - * setting name with a different value. - */ + /** Individual Tasks can override an environment setting specified here by specifying the same setting name with a different value. */ commonEnvironmentSettings?: EnvironmentSetting[]; - /** - * The Pool settings associated with the Job. - */ + /** Specifies how a Job should be assigned to a Pool. */ poolInfo?: PoolInformation; - /** - * The action the Batch service should take when all Tasks in the Job are in the completed state. - * The default is noaction. Possible values include: 'noAction', 'terminateJob' - */ + /** The default is noaction. */ onAllTasksComplete?: OnAllTasksComplete; - /** - * 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 include: 'noAction', 'performExitOptionsJobAction' - */ + /** 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?: OnTaskFailure; - /** - * The network configuration for the Job. - */ + /** The network configuration for the Job. */ networkConfiguration?: JobNetworkConfiguration; - /** - * 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. - */ + /** The Batch service does not assign any meaning to metadata; it is solely for the use of user code. */ metadata?: MetadataItem[]; - /** - * The execution information for the Job. - */ + /** Contains information about the execution of a Job in the Azure Batch service. */ executionInfo?: JobExecutionInformation; - /** - * Resource usage statistics for the entire lifetime of the Job. This property is populated only - * if the CloudJob was retrieved with an expand clause including the 'stats' attribute; otherwise - * it is null. The statistics may not be immediately available. The Batch service performs - * periodic roll-up of statistics. The typical delay is about 30 minutes. - */ + /** This property is populated only if the CloudJob was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes. */ stats?: JobStatistics; } -/** - * An interface representing JobAddParameter. - * @summary An Azure Batch Job to add. - */ +/** Contains information about the execution of a Job in the Azure Batch service. */ +export interface JobExecutionInformation { + /** This is the time at which the Job was created. */ + startTime: Date; + /** This property is set only if the Job is in the completed state. */ + endTime?: Date; + /** This element contains the actual Pool where the Job is assigned. When you get Job details from the service, they also contain a poolInfo element, which contains the Pool configuration data from when the Job was added or updated. That poolInfo element may also contain a poolId element. If it does, the two IDs are the same. If it does not, it means the Job ran on an auto Pool, and this property contains the ID of that auto Pool. */ + poolId?: string; + /** This property is not set if there was no error starting the Job. */ + schedulingError?: JobSchedulingError; + /** This property is set only if the Job is in the completed state. If the Batch service terminates the Job, it sets the reason as follows: JMComplete - the Job Manager Task completed, and killJobOnCompletion was set to true. MaxWallClockTimeExpiry - the Job reached its maxWallClockTime constraint. TerminateJobSchedule - the Job ran as part of a schedule, and the schedule terminated. AllTasksComplete - the Job's onAllTasksComplete attribute is set to terminatejob, and all Tasks in the Job are complete. TaskFailed - the Job's onTaskFailure attribute is set to performExitOptionsJobAction, and a Task in the Job failed with an exit condition that specified a jobAction of terminatejob. Any other string is a user-defined reason specified in a call to the 'Terminate a Job' operation. */ + terminateReason?: string; +} + +/** An error encountered by the Batch service when scheduling a Job. */ +export interface JobSchedulingError { + /** The category of the 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. */ + message?: string; + /** A list of additional error details related to the scheduling error. */ + details?: NameValuePair[]; +} + +/** The set of changes to be made to a Job. */ +export interface JobPatchParameter { + /** 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; + /** The value of maxParallelTasks must be -1 or greater than 0 if specified. If not specified, the default value is -1, which means there's no limit to the number of tasks that can be run at once. You can update a job's maxParallelTasks after it has been created using the update job API. */ + maxParallelTasks?: number; + /** 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. */ + allowTaskPreemption?: boolean; + /** 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?: OnAllTasksComplete; + /** If omitted, the existing execution constraints are left unchanged. */ + constraints?: JobConstraints; + /** 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?: PoolInformation; + /** If omitted, the existing Job metadata is left unchanged. */ + metadata?: MetadataItem[]; +} + +/** The set of changes to be made to a Job. */ +export interface JobUpdateParameter { + /** Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. If omitted, it is set to the default value 0. */ + priority?: number; + /** The value of maxParallelTasks must be -1 or greater than 0 if specified. If not specified, the default value is -1, which means there's no limit to the number of tasks that can be run at once. You can update a job's maxParallelTasks after it has been created using the update job API. */ + maxParallelTasks?: number; + /** 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. */ + allowTaskPreemption?: boolean; + /** If omitted, the constraints are cleared. */ + constraints?: JobConstraints; + /** You may change the Pool for a Job only when the Job is disabled. The Update 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). */ + poolInfo: PoolInformation; + /** If omitted, it takes the default value of an empty list; in effect, any existing metadata is deleted. */ + metadata?: MetadataItem[]; + /** If omitted, the completion behavior is set to noaction. If the current value is terminatejob, this is an error because a Job's completion behavior may not be changed from terminatejob to noaction. 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 and Batch returns status code 400 (Bad Request) and an 'invalid property value' error response. If you do not specify this element in a PUT request, it is equivalent to passing noaction. This is an error if the current value is terminatejob. */ + onAllTasksComplete?: OnAllTasksComplete; +} + +/** Options when disabling a Job. */ +export interface JobDisableParameter { + /** What to do with active Tasks associated with the Job. */ + disableTasks: DisableJobOption; +} + +/** Options when terminating a Job. */ +export interface JobTerminateParameter { + /** The text you want to appear as the Job's TerminateReason. The default is 'UserTerminate'. */ + terminateReason?: string; +} + +/** An Azure Batch Job to add. */ export interface JobAddParameter { - /** - * 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). - */ + /** 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. - */ + /** The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. */ displayName?: 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. - */ + /** 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. */ priority?: number; - /** - * The maximum number of tasks that can be executed in parallel for the job. The value of - * maxParallelTasks must be -1 or greater than 0 if specified. If not specified, the default - * value is -1, which means there's no limit to the number of tasks that can be run at once. You - * can update a job's maxParallelTasks after it has been created using the update job API. - * Default value: -1. - */ + /** The value of maxParallelTasks must be -1 or greater than 0 if specified. If not specified, the default value is -1, which means there's no limit to the number of tasks that can be run at once. You can update a job's maxParallelTasks after it has been created using the update job API. */ maxParallelTasks?: number; - /** - * The execution constraints for the Job. - */ + /** 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. */ + allowTaskPreemption?: boolean; + /** The execution constraints for the Job. */ constraints?: JobConstraints; - /** - * Details of a Job Manager Task to be launched when the Job is started. If the Job does not - * specify a Job Manager Task, the user must explicitly add Tasks to the Job. If the Job does - * specify a Job Manager Task, the Batch service creates the Job Manager Task when the Job is - * created, and will try to schedule the Job Manager Task before scheduling other Tasks in the - * Job. The Job Manager Task's typical purpose is to control and/or monitor Job execution, for - * example by deciding what additional Tasks to run, determining when the work is complete, etc. - * (However, a Job Manager Task is not restricted to these activities - it is a fully-fledged - * Task in the system and perform whatever actions are required for the Job.) For example, a Job - * Manager Task might download a file specified as a parameter, analyze the contents of that file - * and submit additional Tasks based on those contents. - */ + /** If the Job does not specify a Job Manager Task, the user must explicitly add Tasks to the Job. If the Job does specify a Job Manager Task, the Batch service creates the Job Manager Task when the Job is created, and will try to schedule the Job Manager Task before scheduling other Tasks in the Job. The Job Manager Task's typical purpose is to control and/or monitor Job execution, for example by deciding what additional Tasks to run, determining when the work is complete, etc. (However, a Job Manager Task is not restricted to these activities - it is a fully-fledged Task in the system and perform whatever actions are required for the Job.) For example, a Job Manager Task might download a file specified as a parameter, analyze the contents of that file and submit additional Tasks based on those contents. */ jobManagerTask?: JobManagerTask; - /** - * The Job Preparation Task. If a Job has a Job Preparation Task, the Batch service will run the - * Job Preparation Task on a Node before starting any Tasks of that Job on that Compute Node. - */ + /** If a Job has a Job Preparation Task, the Batch service will run the Job Preparation Task on a Node before starting any Tasks of that Job on that Compute Node. */ jobPreparationTask?: JobPreparationTask; - /** - * The Job Release Task. A Job Release Task cannot be specified without also specifying a Job - * Preparation Task for the Job. The Batch service runs the Job Release Task on the Nodes that - * have run the Job Preparation Task. The primary purpose of the Job Release Task is to undo - * changes to Compute Nodes made by the Job Preparation Task. Example activities include deleting - * local files, or shutting down services that were started as part of Job preparation. - */ + /** A Job Release Task cannot be specified without also specifying a Job Preparation Task for the Job. The Batch service runs the Job Release Task on the Nodes that have run the Job Preparation Task. The primary purpose of the Job Release Task is to undo changes to Compute Nodes made by the Job Preparation Task. Example activities include deleting local files, or shutting down services that were started as part of Job preparation. */ jobReleaseTask?: JobReleaseTask; - /** - * The list of common environment variable settings. These environment variables are set for all - * Tasks in the Job (including the Job Manager, Job Preparation and Job Release Tasks). - * Individual Tasks can override an environment setting specified here by specifying the same - * setting name with a different value. - */ + /** Individual Tasks can override an environment setting specified here by specifying the same setting name with a different value. */ commonEnvironmentSettings?: EnvironmentSetting[]; - /** - * The Pool on which the Batch service runs the Job's Tasks. - */ + /** Specifies how a Job should be assigned to a Pool. */ poolInfo: PoolInformation; - /** - * 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 include: 'noAction', 'terminateJob' - */ + /** 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?: OnAllTasksComplete; - /** - * 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 include: 'noAction', 'performExitOptionsJobAction' - */ + /** 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?: OnTaskFailure; - /** - * 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. - */ + /** The Batch service does not assign any meaning to metadata; it is solely for the use of user code. */ metadata?: MetadataItem[]; - /** - * Whether Tasks in the Job can define dependencies on each other. The default is false. - */ + /** Whether Tasks in the Job can define dependencies on each other. The default is false. */ usesTaskDependencies?: boolean; - /** - * The network configuration for the Job. - */ + /** The network configuration for the Job. */ networkConfiguration?: JobNetworkConfiguration; } -/** - * An interface representing TaskContainerExecutionInformation. - * @summary Contains information about the container which a Task is executing. - */ -export interface TaskContainerExecutionInformation { - /** - * The ID of the container. - */ - containerId?: string; - /** - * The state of the container. This is the state of the container according to the Docker - * service. It is equivalent to the status field returned by "docker inspect". - */ - state?: string; - /** - * Detailed error information about the container. This is the detailed error string from the - * Docker service, if available. It is equivalent to the error field returned by "docker - * inspect". - */ - error?: string; +/** The result of listing the Jobs in an Account. */ +export interface CloudJobListResult { + /** The list of Jobs. */ + value?: CloudJob[]; + /** The URL to get the next set of results. */ + odataNextLink?: string; } -/** - * An interface representing TaskFailureInformation. - * @summary Information about a Task failure. - */ -export interface TaskFailureInformation { - /** - * The category of the Task error. Possible values include: 'userError', 'serverError' - */ - 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. - */ - message?: string; - /** - * A list of additional details related to the error. - */ - details?: NameValuePair[]; +/** The result of listing the status of the Job Preparation and Job Release Tasks for a Job. */ +export interface CloudJobListPreparationAndReleaseTaskStatusResult { + /** A list of Job Preparation and Job Release Task execution information. */ + value?: JobPreparationAndReleaseTaskExecutionInformation[]; + /** The URL to get the next set of results. */ + odataNextLink?: string; } -/** - * An interface representing JobPreparationTaskExecutionInformation. - * @summary Contains information about the execution of a Job Preparation Task on a Compute Node. - */ -export interface JobPreparationTaskExecutionInformation { - /** - * The time at which the Task started running. If the Task has been restarted or retried, this is - * the most recent time at which the Task started running. - */ +/** The status of the Job Preparation and Job Release Tasks on a Compute Node. */ +export interface JobPreparationAndReleaseTaskExecutionInformation { + /** The ID of the Pool containing the Compute Node to which this entry refers. */ + poolId?: string; + /** The ID of the Compute Node to which this entry refers. */ + nodeId?: string; + /** The URL of the Compute Node to which this entry refers. */ + nodeUrl?: string; + /** Contains information about the execution of a Job Preparation Task on a Compute Node. */ + jobPreparationTaskExecutionInfo?: JobPreparationTaskExecutionInformation; + /** This property is set only if the Job Release Task has run on the Compute Node. */ + jobReleaseTaskExecutionInfo?: JobReleaseTaskExecutionInformation; +} + +/** Contains information about the execution of a Job Preparation Task on a Compute Node. */ +export interface JobPreparationTaskExecutionInformation { + /** If the Task has been restarted or retried, this is the most recent time at which the Task started running. */ startTime: Date; - /** - * The time at which the Job Preparation Task completed. This property is set only if the Task is - * in the Completed state. - */ + /** This property is set only if the Task is in the Completed state. */ endTime?: Date; - /** - * The current state of the Job Preparation Task on the Compute Node. Possible values include: - * 'running', 'completed' - */ + /** The current state of the Job Preparation Task on the Compute Node. */ state: JobPreparationTaskState; - /** - * 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. - */ + /** 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. - */ + /** The URL to the root directory of the Job Preparation Task on the Compute Node. */ taskRootDirectoryUrl?: string; - /** - * The exit code of the program specified on the Task command line. This parameter is returned - * only if the Task is in the completed state. The exit code for a process reflects the specific - * convention implemented by the application developer for that process. If you use the exit code - * value to make decisions in your code, be sure that you know the exit code convention used by - * the application process. Note that the exit code may also be generated by the Compute Node - * operating system, such as when a process is forcibly terminated. - */ + /** This parameter is returned only if the Task is in the completed state. The exit code for a process reflects the specific convention implemented by the application developer for that process. If you use the exit code value to make decisions in your code, be sure that you know the exit code convention used by the application process. Note that the exit code may also be generated by the Compute Node operating system, such as when a process is forcibly terminated. */ exitCode?: number; - /** - * Information about the container under which the Task is executing. This property is set only - * if the Task runs in a container context. - */ + /** This property is set only if the Task runs in a container context. */ containerInfo?: TaskContainerExecutionInformation; - /** - * Information describing the Task failure, if any. This property is set only if the Task is in - * the completed state and encountered a failure. - */ + /** This property is set only if the Task is in the completed state and encountered a failure. */ failureInfo?: TaskFailureInformation; - /** - * The number of times the Task has been retried by the Batch service. Task application failures - * (non-zero exit code) are retried, pre-processing errors (the Task could not be run) and file - * upload errors are not retried. The Batch service will retry the Task up to the limit specified - * by the constraints. Task application failures (non-zero exit code) are retried, pre-processing - * errors (the Task could not be run) and file upload errors are not retried. The Batch service - * will retry the Task up to the limit specified by the constraints. - */ + /** Task application failures (non-zero exit code) are retried, pre-processing errors (the Task could not be run) and file upload errors are not retried. The Batch service will retry the Task up to the limit specified by the constraints. */ 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. - */ + /** 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?: Date; - /** - * 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 include: 'success', 'failure' - */ + /** If the value is 'failed', then the details of the failure can be found in the failureInfo property. */ result?: TaskExecutionResult; } -/** - * An interface representing JobReleaseTaskExecutionInformation. - * @summary Contains information about the execution of a Job Release Task on a Compute Node. - */ +/** Contains information about the container which a Task is executing. */ +export interface TaskContainerExecutionInformation { + /** The ID of the container. */ + containerId?: string; + /** This is the state of the container according to the Docker service. It is equivalent to the status field returned by "docker inspect". */ + state?: string; + /** This is the detailed error string from the Docker service, if available. It is equivalent to the error field returned by "docker inspect". */ + error?: string; +} + +/** Information about a Task failure. */ +export interface TaskFailureInformation { + /** The category of the 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. */ + message?: string; + /** A list of additional details related to the error. */ + details?: NameValuePair[]; +} + +/** Contains information about the execution of a Job Release Task on a Compute Node. */ export interface JobReleaseTaskExecutionInformation { - /** - * The time at which the Task started running. If the Task has been restarted or retried, this is - * the most recent time at which the Task started running. - */ + /** If the Task has been restarted or retried, this is the most recent time at which the Task started running. */ startTime: Date; - /** - * The time at which the Job Release Task completed. This property is set only if the Task is in - * the Completed state. - */ + /** This property is set only if the Task is in the Completed state. */ endTime?: Date; - /** - * The current state of the Job Release Task on the Compute Node. Possible values include: - * 'running', 'completed' - */ + /** The current state of the Job Release Task on the Compute Node. */ state: JobReleaseTaskState; - /** - * 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. - */ + /** 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. - */ + /** The URL to the root directory of the Job Release Task on the Compute Node. */ taskRootDirectoryUrl?: string; - /** - * The exit code of the program specified on the Task command line. This parameter is returned - * only if the Task is in the completed state. The exit code for a process reflects the specific - * convention implemented by the application developer for that process. If you use the exit code - * value to make decisions in your code, be sure that you know the exit code convention used by - * the application process. Note that the exit code may also be generated by the Compute Node - * operating system, such as when a process is forcibly terminated. - */ + /** This parameter is returned only if the Task is in the completed state. The exit code for a process reflects the specific convention implemented by the application developer for that process. If you use the exit code value to make decisions in your code, be sure that you know the exit code convention used by the application process. Note that the exit code may also be generated by the Compute Node operating system, such as when a process is forcibly terminated. */ exitCode?: number; - /** - * Information about the container under which the Task is executing. This property is set only - * if the Task runs in a container context. - */ + /** This property is set only if the Task runs in a container context. */ containerInfo?: TaskContainerExecutionInformation; - /** - * Information describing the Task failure, if any. This property is set only if the Task is in - * the completed state and encountered a failure. - */ + /** This property is set only if the Task is in the completed state and encountered a failure. */ failureInfo?: TaskFailureInformation; - /** - * 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 include: 'success', 'failure' - */ + /** If the value is 'failed', then the details of the failure can be found in the failureInfo property. */ result?: TaskExecutionResult; } -/** - * An interface representing JobPreparationAndReleaseTaskExecutionInformation. - * @summary The status of the Job Preparation and Job Release Tasks on a Compute Node. - */ -export interface JobPreparationAndReleaseTaskExecutionInformation { - /** - * The ID of the Pool containing the Compute Node to which this entry refers. - */ - poolId?: string; - /** - * The ID of the Compute Node to which this entry refers. - */ - nodeId?: string; - /** - * The URL of the Compute Node to which this entry refers. - */ - nodeUrl?: string; - /** - * Information about the execution status of the Job Preparation Task on this Compute Node. - */ - jobPreparationTaskExecutionInfo?: JobPreparationTaskExecutionInformation; - /** - * Information about the execution status of the Job Release Task on this Compute Node. This - * property is set only if the Job Release Task has run on the Compute Node. - */ - jobReleaseTaskExecutionInfo?: JobReleaseTaskExecutionInformation; +/** The Task and TaskSlot counts for a Job. */ +export interface TaskCountsResult { + /** The Task counts for a Job. */ + taskCounts: TaskCounts; + /** The TaskSlot counts for a Job. */ + taskSlotCounts: TaskSlotCounts; } -/** - * An interface representing TaskCounts. - * @summary The Task counts for a Job. - */ +/** The Task counts for a Job. */ export interface TaskCounts { - /** - * The number of Tasks in the active state. - */ + /** The number of Tasks in the active state. */ active: number; - /** - * The number of Tasks in the running or preparing state. - */ + /** The number of Tasks in the running or preparing state. */ running: number; - /** - * The number of Tasks in the completed state. - */ + /** The number of Tasks in the completed state. */ completed: number; - /** - * The number of Tasks which succeeded. A Task succeeds if its result (found in the executionInfo - * property) is 'success'. - */ + /** The number of Tasks which succeeded. A Task succeeds if its result (found in the executionInfo property) is 'success'. */ succeeded: number; - /** - * The number of Tasks which failed. A Task fails if its result (found in the executionInfo - * property) is 'failure'. - */ + /** The number of Tasks which failed. A Task fails if its result (found in the executionInfo property) is 'failure'. */ failed: number; } -/** - * An interface representing TaskSlotCounts. - * @summary The TaskSlot counts for a Job. - */ +/** The TaskSlot counts for a Job. */ export interface TaskSlotCounts { - /** - * The number of TaskSlots for active Tasks. - */ + /** The number of TaskSlots for active Tasks. */ active: number; - /** - * The number of TaskSlots for running Tasks. - */ + /** The number of TaskSlots for running Tasks. */ running: number; - /** - * The number of TaskSlots for completed Tasks. - */ + /** The number of TaskSlots for completed Tasks. */ completed: number; - /** - * The number of TaskSlots for succeeded Tasks. - */ + /** The number of TaskSlots for succeeded Tasks. */ succeeded: number; - /** - * The number of TaskSlots for failed Tasks. - */ + /** The number of TaskSlots for failed Tasks. */ failed: number; } -/** - * An interface representing TaskCountsResult. - * @summary The Task and TaskSlot counts for a Job. - */ -export interface TaskCountsResult { - /** - * The number of Tasks per state. - */ - taskCounts: TaskCounts; - /** - * The number of TaskSlots required by Tasks per state. - */ - taskSlotCounts: TaskSlotCounts; +/** A Pool in the Azure Batch service to add. */ +export interface PoolAddParameter { + /** 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 need not be unique and can contain any Unicode characters up to a maximum length of 1024. */ + displayName?: string; + /** 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). */ + vmSize: string; + /** 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; + /** This property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified. */ + virtualMachineConfiguration?: VirtualMachineConfiguration; + /** 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; + /** This property must not be specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set either targetDedicatedNodes, targetLowPriorityNodes, or both. */ + targetDedicatedNodes?: number; + /** This property must not be specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set either targetDedicatedNodes, targetLowPriorityNodes, or both. */ + targetLowPriorityNodes?: number; + /** If false, at least one of targetDedicatedNodes and targetLowPriorityNodes must be specified. If true, the autoScaleFormula property is required and the Pool automatically resizes according to the formula. The default value is false. */ + enableAutoScale?: boolean; + /** This property must not be specified if enableAutoScale is set to false. It is required if enableAutoScale is set to true. The formula is checked for validity before the Pool is created. 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/documentation/articles/batch-automatic-scaling/). */ + autoScaleFormula?: string; + /** 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 returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). */ + autoScaleEvaluationInterval?: string; + /** Enabling inter-node communication limits the maximum size of the Pool due to deployment restrictions on the Compute Nodes of the Pool. This may result in the Pool not reaching its desired size. The default value is false. */ + enableInterNodeCommunication?: boolean; + /** The network configuration for a Pool. */ + networkConfiguration?: NetworkConfiguration; + /** The Task runs when the Compute Node is added to the Pool or when the Compute Node is restarted. */ + startTask?: StartTask; + /** 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. */ + certificateReferences?: CertificateReference[]; + /** 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?: ApplicationPackageReference[]; + /** 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 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; + /** If not specified, the default is spread. */ + taskSchedulingPolicy?: TaskSchedulingPolicy; + /** The list of user Accounts to be created on each Compute Node in the Pool. */ + userAccounts?: UserAccount[]; + /** The Batch service does not assign any meaning to metadata; it is solely for the use of user code. */ + metadata?: MetadataItem[]; + /** Mount the storage using Azure fileshare, NFS, CIFS or Blobfuse based file system. */ + mountConfiguration?: MountConfiguration[]; } -/** - * An interface representing AutoScaleRunError. - * @summary An error that occurred when executing or evaluating a Pool autoscale formula. - */ -export interface AutoScaleRunError { - /** - * An identifier for the autoscale error. Codes are invariant and are intended to be consumed - * programmatically. - */ +/** The result of listing the Pools in an Account. */ +export interface CloudPoolListResult { + /** The list of Pools. */ + value?: CloudPool[]; + /** The URL to get the next set of results. */ + odataNextLink?: string; +} + +/** A Pool in the Azure Batch service. */ +export interface CloudPool { + /** 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 need not be unique and can contain any Unicode characters up to a maximum length of 1024. */ + displayName?: string; + /** The URL of the Pool. */ + url?: string; + /** This is an opaque string. You can use it to detect whether the Pool has changed between requests. In particular, you can be pass the ETag when updating a Pool to specify that your changes should take effect only if nobody else has modified the Pool in the meantime. */ + eTag?: string; + /** This is the last time at which the Pool level data, such as the targetDedicatedNodes or enableAutoscale settings, changed. It does not factor in node-level changes such as a Compute Node changing state. */ + lastModified?: Date; + /** The creation time of the Pool. */ + creationTime?: Date; + /** The current state of the Pool. */ + state?: PoolState; + /** The time at which the Pool entered its current state. */ + stateTransitionTime?: Date; + /** Whether the Pool is resizing. */ + allocationState?: AllocationState; + /** The time at which the Pool entered its current allocation state. */ + allocationStateTransitionTime?: Date; + /** 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; + /** 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; + /** This property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified. */ + virtualMachineConfiguration?: VirtualMachineConfiguration; + /** 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. */ + resizeTimeout?: string; + /** This property is set only if one or more errors occurred during the last Pool resize, and only when the Pool allocationState is Steady. */ + resizeErrors?: ResizeError[]; + /** The number of dedicated Compute Nodes currently in the Pool. */ + currentDedicatedNodes?: number; + /** Spot/Low-priority Compute Nodes which have been preempted are included in this count. */ + currentLowPriorityNodes?: number; + /** 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; + /** If false, at least one of targetDedicatedNodes and targetLowPriorityNodes must be specified. If true, the autoScaleFormula property is required and the Pool automatically resizes according to the formula. The default value is false. */ + enableAutoScale?: boolean; + /** This property is set only if the Pool automatically scales, i.e. enableAutoScale is true. */ + autoScaleFormula?: string; + /** This property is set only if the Pool automatically scales, i.e. enableAutoScale is true. */ + autoScaleEvaluationInterval?: string; + /** This property is set only if the Pool automatically scales, i.e. enableAutoScale is true. */ + autoScaleRun?: AutoScaleRun; + /** This imposes restrictions on which Compute Nodes can be assigned to the Pool. Specifying this value can reduce the chance of the requested number of Compute Nodes to be allocated in the Pool. */ + enableInterNodeCommunication?: boolean; + /** The network configuration for a Pool. */ + networkConfiguration?: NetworkConfiguration; + /** Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running Tasks is to use some form of checkpointing. In some cases the StartTask may be re-run even though the Compute Node was not rebooted. Special care should be taken to avoid StartTasks which create breakaway process or install/launch services from the StartTask working directory, as this will block Batch from being able to re-run the StartTask. */ + startTask?: StartTask; + /** 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. */ + certificateReferences?: CertificateReference[]; + /** 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?: ApplicationPackageReference[]; + /** 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 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; + /** If not specified, the default is spread. */ + taskSchedulingPolicy?: TaskSchedulingPolicy; + /** The list of user Accounts to be created on each Compute Node in the Pool. */ + userAccounts?: UserAccount[]; + /** A list of name-value pairs associated with the Pool as metadata. */ + metadata?: MetadataItem[]; + /** This property is populated only if the CloudPool was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes. */ + stats?: PoolStatistics; + /** This supports Azure Files, NFS, CIFS/SMB, and Blobfuse. */ + mountConfiguration?: MountConfiguration[]; + /** 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}'. */ + identity?: BatchPoolIdentity; +} + +/** An error that occurred when resizing a Pool. */ +export interface ResizeError { + /** An identifier for the Pool resize error. Codes are invariant and are intended to be consumed programmatically. */ code?: string; - /** - * A message describing the autoscale error, intended to be suitable for display in a user - * interface. - */ + /** A message describing the Pool resize error, intended to be suitable for display in a user interface. */ message?: string; - /** - * A list of additional error details related to the autoscale error. - */ + /** A list of additional error details related to the Pool resize error. */ values?: NameValuePair[]; } -/** - * An interface representing AutoScaleRun. - * @summary The results and errors from an execution of a Pool autoscale formula. - */ +/** The results and errors from an execution of a Pool autoscale formula. */ export interface AutoScaleRun { - /** - * The time at which the autoscale formula was last evaluated. - */ + /** The time at which the autoscale formula was last evaluated. */ timestamp: Date; - /** - * The final values of all variables used in the evaluation of the autoscale formula. Each - * variable value is returned in the form $variable=value, and variables are separated by - * semicolons. - */ + /** Each variable value is returned in the form $variable=value, and variables are separated by semicolons. */ results?: string; - /** - * Details of the error encountered evaluating the autoscale formula on the Pool, if the - * evaluation was unsuccessful. - */ + /** An error that occurred when executing or evaluating a Pool autoscale formula. */ error?: AutoScaleRunError; } -/** - * An interface representing ResizeError. - * @summary An error that occurred when resizing a Pool. - */ -export interface ResizeError { - /** - * An identifier for the Pool resize error. Codes are invariant and are intended to be consumed - * programmatically. - */ +/** An error that occurred when executing or evaluating a Pool autoscale formula. */ +export interface AutoScaleRunError { + /** An identifier for the autoscale error. Codes are invariant and are intended to be consumed programmatically. */ code?: string; - /** - * A message describing the Pool resize error, intended to be suitable for display in a user - * interface. - */ + /** A message describing the autoscale error, intended to be suitable for display in a user interface. */ message?: string; - /** - * A list of additional error details related to the Pool resize error. - */ + /** A list of additional error details related to the autoscale error. */ values?: NameValuePair[]; } -/** - * An interface representing InstanceViewStatus. - * @summary The instance view status. - */ -export interface InstanceViewStatus { - /** - * The status code. - */ - code?: string; - /** - * The localized label for the status. - */ - displayStatus?: string; - /** - * Level code. Possible values include: 'Error', 'Info', 'Warning' - */ - level?: StatusLevelTypes; - /** - * The detailed status message. - */ - message?: string; - /** - * The time of the status. - */ - time?: string; -} - -/** - * An interface representing VMExtensionInstanceView. - * @summary The vm extension instance view. - */ -export interface VMExtensionInstanceView { - /** - * The name of the vm extension instance view. - */ - name?: string; - /** - * The resource status information. - */ - statuses?: InstanceViewStatus[]; - /** - * The resource status information. - */ - subStatuses?: InstanceViewStatus[]; -} - -/** - * An interface representing NodeVMExtension. - * @summary The configuration for virtual machine extension instance view. - */ -export interface NodeVMExtension { - /** - * The provisioning state of the virtual machine extension. - */ - provisioningState?: string; - /** - * The virtual machine extension. - */ - vmExtension?: VMExtension; - /** - * The vm extension instance view. - */ - instanceView?: VMExtensionInstanceView; +/** The identity of the Batch pool, if configured. */ +export interface BatchPoolIdentity { + /** 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: PoolIdentityType; + /** The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ + userAssignedIdentities?: UserAssignedIdentity[]; } -/** - * The user assigned Identity - */ +/** The user assigned Identity */ export interface UserAssignedIdentity { - /** - * The ARM resource id of the user assigned identity - */ + /** The ARM resource id of the user assigned identity */ resourceId: string; /** * The client id of the user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly clientId?: string; /** * The principal id of the user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly principalId?: string; } -/** - * The identity of the Batch pool, if configured. - * @summary The identity of the Batch pool, if configured. - */ -export interface BatchPoolIdentity { - /** - * 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 include: 'UserAssigned', 'None' - */ - type: PoolIdentityType; - /** - * 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?: UserAssignedIdentity[]; -} - -/** - * An interface representing CloudPool. - * @summary A Pool in the Azure Batch service. - */ -export interface CloudPool { - /** - * 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 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 URL of the Pool. - */ - url?: string; - /** - * The ETag of the Pool. This is an opaque string. You can use it to detect whether the Pool has - * changed between requests. In particular, you can be pass the ETag when updating a Pool to - * specify that your changes should take effect only if nobody else has modified the Pool in the - * meantime. - */ - eTag?: string; - /** - * The last modified time of the Pool. This is the last time at which the Pool level data, such - * as the targetDedicatedNodes or enableAutoscale settings, changed. It does not factor in - * node-level changes such as a Compute Node changing state. - */ - lastModified?: Date; - /** - * The creation time of the Pool. - */ - creationTime?: Date; - /** - * The current state of the Pool. Possible values include: 'active', 'deleting' - */ - state?: PoolState; - /** - * The time at which the Pool entered its current state. - */ - stateTransitionTime?: Date; - /** - * Whether the Pool is resizing. Possible values include: 'steady', 'resizing', 'stopping' - */ - allocationState?: AllocationState; - /** - * The time at which the Pool entered its current allocation state. - */ - allocationStateTransitionTime?: Date; - /** - * 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). - */ - 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. - */ - virtualMachineConfiguration?: VirtualMachineConfiguration; - /** - * 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. - */ - resizeTimeout?: string; - /** - * A list of errors encountered while performing the last resize on the Pool. This property is - * set only if one or more errors occurred during the last Pool resize, and only when the Pool - * allocationState is Steady. - */ - resizeErrors?: ResizeError[]; - /** - * The number of dedicated Compute Nodes currently in the Pool. - */ - currentDedicatedNodes?: number; - /** - * The number of low-priority Compute Nodes currently in the Pool. low-priority Compute Nodes - * which have been preempted are included in this count. - */ - currentLowPriorityNodes?: number; - /** - * The desired number of dedicated Compute Nodes in the Pool. - */ - targetDedicatedNodes?: number; - /** - * The desired number of low-priority Compute Nodes in the Pool. - */ - targetLowPriorityNodes?: number; - /** - * Whether the Pool size should automatically adjust over time. If false, at least one of - * targetDedicatedNodes and targetLowPriorityNodes must be specified. If true, the - * autoScaleFormula property is required and the Pool automatically resizes according to the - * formula. The default value is false. - */ - enableAutoScale?: boolean; - /** - * A formula for the desired number of Compute Nodes in the Pool. This property is set only if - * the Pool automatically scales, i.e. enableAutoScale is true. - */ - autoScaleFormula?: string; - /** - * The time interval at which to automatically adjust the Pool size according to the autoscale - * formula. This property is set only if the Pool automatically scales, i.e. enableAutoScale is - * true. - */ - autoScaleEvaluationInterval?: string; - /** - * The results and errors from the last execution of the autoscale formula. This property is set - * only if the Pool automatically scales, i.e. enableAutoScale is true. - */ - autoScaleRun?: AutoScaleRun; - /** - * Whether the Pool permits direct communication between Compute Nodes. This imposes restrictions - * on which Compute Nodes can be assigned to the Pool. Specifying this value can reduce the - * chance of the requested number of Compute Nodes to be allocated in the Pool. - */ - enableInterNodeCommunication?: boolean; - /** - * The network configuration for the Pool. - */ - networkConfiguration?: NetworkConfiguration; - /** - * A Task specified to run on each Compute Node as it joins the Pool. - */ +/** The set of changes to be made to a Pool. */ +export interface PoolPatchParameter { + /** If this element is present, it overwrites any existing StartTask. If omitted, any existing StartTask is left unchanged. */ startTask?: StartTask; - /** - * The list of Certificates to be installed on each Compute Node in 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. - */ + /** 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. */ certificateReferences?: CertificateReference[]; - /** - * 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. - */ + /** 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?: ApplicationPackageReference[]; - /** - * 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. - */ - taskSchedulingPolicy?: TaskSchedulingPolicy; - /** - * The list of user Accounts to be created on each Compute Node in the Pool. - */ - userAccounts?: UserAccount[]; - /** - * 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?: MetadataItem[]; - /** - * Utilization and resource usage statistics for the entire lifetime of the Pool. This property - * is populated only if the CloudPool was retrieved with an expand clause including the 'stats' - * attribute; otherwise it is null. The statistics may not be immediately available. The Batch - * service performs periodic roll-up of statistics. The typical delay is about 30 minutes. - */ - stats?: PoolStatistics; - /** - * A list of file systems to mount on each node in the pool. This supports Azure Files, NFS, - * CIFS/SMB, and Blobfuse. - */ - mountConfiguration?: MountConfiguration[]; - /** - * 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}'. - */ - identity?: BatchPoolIdentity; } -/** - * An interface representing PoolAddParameter. - * @summary A Pool in the Azure Batch service to add. - */ -export interface PoolAddParameter { - /** - * 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). - */ - 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. - */ - 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; - /** - * The desired number of dedicated Compute Nodes in the Pool. This property must not be specified - * if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set - * either targetDedicatedNodes, targetLowPriorityNodes, or both. - */ - targetDedicatedNodes?: number; - /** - * The desired number of low-priority Compute Nodes in the Pool. This property must not be - * specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must - * set either targetDedicatedNodes, targetLowPriorityNodes, or both. - */ - targetLowPriorityNodes?: number; - /** - * Whether the Pool size should automatically adjust over time. If false, at least one of - * targetDedicatedNodes and targetLowPriorityNodes must be specified. If true, the - * autoScaleFormula property is required and the Pool automatically resizes according to the - * formula. The default value is false. - */ - enableAutoScale?: boolean; - /** - * A formula for the desired number of Compute Nodes in the Pool. This property must not be - * specified if enableAutoScale is set to false. It is required if enableAutoScale is set to - * true. The formula is checked for validity before the Pool is created. 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/documentation/articles/batch-automatic-scaling/). - */ +/** Options for enabling automatic scaling on a Pool. */ +export interface PoolEnableAutoScaleParameter { + /** 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 returns an error; if you are calling the REST API directly, the HTTP status code - * is 400 (Bad Request). - */ + /** 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. */ autoScaleEvaluationInterval?: string; - /** - * Whether the Pool permits direct communication between Compute Nodes. Enabling inter-node - * communication limits the maximum size of the Pool due to deployment restrictions on the - * Compute Nodes of the Pool. This may result in the Pool not reaching its desired size. The - * default value is false. - */ - enableInterNodeCommunication?: boolean; - /** - * The network configuration for the Pool. - */ - 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?: StartTask; - /** - * The list of Certificates to be installed on each Compute Node in 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. - */ - certificateReferences?: CertificateReference[]; - /** - * 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. - */ - applicationPackageReferences?: ApplicationPackageReference[]; - /** - * 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. - */ - taskSchedulingPolicy?: TaskSchedulingPolicy; - /** - * The list of user Accounts to be created on each Compute Node in the Pool. - */ - userAccounts?: UserAccount[]; - /** - * 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?: MetadataItem[]; - /** - * 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?: MountConfiguration[]; -} - -/** - * An interface representing AffinityInformation. - * @summary A locality hint that can be used by the Batch service to select a Compute Node on which - * to start a Task. - */ -export interface AffinityInformation { - /** - * An opaque string representing the location of a Compute Node or a Task that has run - * previously. You can pass the affinityId of a Node to indicate that this Task needs to run on - * that Compute Node. Note that this is just a soft affinity. If the target Compute Node is busy - * or unavailable at the time the Task is scheduled, then the Task will be scheduled elsewhere. - */ - affinityId: string; } -/** - * An interface representing TaskExecutionInformation. - * @summary Information about the execution of a Task. - */ -export interface TaskExecutionInformation { - /** - * The time at which the Task started running. 'Running' corresponds to the running state, so if - * the Task specifies resource files or Packages, then the start time reflects the time at which - * the Task started downloading or deploying these. If the Task has been restarted or retried, - * this is the most recent time at which the Task started running. This property is present only - * for Tasks that are in the running or completed state. - */ - startTime?: Date; - /** - * The time at which the Task completed. This property is set only if the Task is in the - * Completed state. - */ - endTime?: Date; - /** - * The exit code of the program specified on the Task command line. This property is set only if - * the Task is in the completed state. In general, the exit code for a process reflects the - * specific convention implemented by the application developer for that process. If you use the - * exit code value to make decisions in your code, be sure that you know the exit code convention - * used by the application process. However, if the Batch service terminates the Task (due to - * timeout, or user termination via the API) you may see an operating system-defined exit code. - */ - exitCode?: number; - /** - * Information about the container under which the Task is executing. This property is set only - * if the Task runs in a container context. - */ - containerInfo?: TaskContainerExecutionInformation; - /** - * 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?: TaskFailureInformation; - /** - * The number of times the Task has been retried by the Batch service. Task application failures - * (non-zero exit code) are retried, pre-processing errors (the Task could not be run) and file - * upload errors are not retried. The Batch service will retry the Task up to the limit specified - * by the constraints. - */ - 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?: Date; - /** - * The number of times the Task has been requeued by the Batch service as the result of a user - * request. When the user removes Compute Nodes from a Pool (by resizing/shrinking the pool) or - * when the Job is being disabled, the user can specify that running Tasks on the Compute Nodes - * be requeued for execution. This count tracks how many times the Task has been requeued for - * these reasons. - */ - 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; - /** - * 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 include: 'success', 'failure' - */ - result?: TaskExecutionResult; +/** Options for evaluating an automatic scaling formula on a Pool. */ +export interface PoolEvaluateAutoScaleParameter { + /** 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; } -/** - * An interface representing ComputeNodeInformation. - * @summary Information about the Compute Node on which a Task ran. - */ -export interface ComputeNodeInformation { - /** - * An identifier for the Node on which the Task ran, which can be passed when adding a Task to - * request that the Task be scheduled on this Compute Node. - */ - affinityId?: string; - /** - * The URL of the Compute Node on which the Task ran. . - */ - nodeUrl?: string; - /** - * The ID of the Pool on which the Task ran. - */ - poolId?: string; - /** - * The ID of the Compute Node on which the Task ran. - */ - nodeId?: string; - /** - * The root directory of the Task on the Compute Node. - */ - taskRootDirectory?: string; - /** - * The URL to the root directory of the Task on the Compute Node. - */ - taskRootDirectoryUrl?: string; +/** Options for changing the size of a Pool. */ +export interface PoolResizeParameter { + /** 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 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; + /** The default value is requeue. */ + nodeDeallocationOption?: ComputeNodeDeallocationOption; } -/** - * The Batch Compute Node agent is a program that runs on each Compute Node in the Pool and - * provides Batch capability on the Compute Node. - * @summary Information about the Compute Node agent. - */ -export interface NodeAgentInformation { - /** - * The version of the Batch Compute Node agent running on the Compute Node. This version number - * can be checked against the Compute Node agent release notes located at - * https://github.com/Azure/Batch/blob/master/changelogs/nodeagent/CHANGELOG.md. - */ - version: string; - /** - * The time when the Compute Node agent was updated on the Compute Node. This is the most recent - * time that the Compute Node agent was updated to a new version. - */ - lastUpdateTime: Date; +/** The set of changes to be made to a Pool. */ +export interface PoolUpdatePropertiesParameter { + /** If this element is present, it overwrites any existing StartTask. If omitted, any existing StartTask is removed from the Pool. */ + startTask?: StartTask; + /** 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. */ + certificateReferences: CertificateReference[]; + /** 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: ApplicationPackageReference[]; + /** 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: MetadataItem[]; } -/** - * Multi-instance Tasks are commonly used to support MPI Tasks. In the MPI case, if any of the - * subtasks fail (for example due to exiting with a non-zero exit code) the entire multi-instance - * Task fails. The multi-instance Task is then terminated and retried, up to its retry limit. - * @summary Settings which specify how to run a multi-instance Task. - */ +/** Options for removing Compute Nodes from a Pool. */ +export interface NodeRemoveParameter { + /** A maximum of 100 nodes may be removed per request. */ + nodeList: string[]; + /** 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; + /** The default value is requeue. */ + nodeDeallocationOption?: ComputeNodeDeallocationOption; +} + +/** Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running Tasks is to use some form of checkpointing. */ +export interface TaskAddParameter { + /** 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; + /** The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. */ + displayName?: string; + /** 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; + /** 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?: TaskContainerSettings; + /** How the Batch service should respond when the Task completes. */ + exitConditions?: ExitConditions; + /** 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?: ResourceFile[]; + /** For multi-instance Tasks, the files will only be uploaded from the Compute Node on which the primary Task is executed. */ + outputFiles?: OutputFile[]; + /** A list of environment variable settings for the Task. */ + environmentSettings?: EnvironmentSetting[]; + /** A locality hint that can be used by the Batch service to select a Compute Node on which to start a Task. */ + affinityInfo?: AffinityInformation; + /** 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?: TaskConstraints; + /** 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; + /** If omitted, the Task runs as a non-administrative user unique to the Task. */ + userIdentity?: UserIdentity; + /** Multi-instance Tasks are commonly used to support MPI Tasks. In the MPI case, if any of the subtasks fail (for example due to exiting with a non-zero exit code) the entire multi-instance Task fails. The multi-instance Task is then terminated and retried, up to its retry limit. */ + multiInstanceSettings?: MultiInstanceSettings; + /** 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?: TaskDependencies; + /** 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?: ApplicationPackageReference[]; + /** 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?: AuthenticationTokenSettings; +} + +/** Specifies how the Batch service should respond when the Task completes. */ +export interface ExitConditions { + /** A list of individual Task exit codes and how the Batch service should respond to them. */ + exitCodes?: ExitCodeMapping[]; + /** A list of Task exit code ranges and how the Batch service should respond to them. */ + exitCodeRanges?: ExitCodeRangeMapping[]; + /** Specifies how the Batch service responds to a particular exit condition. */ + preProcessingError?: ExitOptions; + /** If the Task exited with an exit code that was specified via exitCodes or exitCodeRanges, and then encountered a file upload error, then the action specified by the exit code takes precedence. */ + fileUploadError?: ExitOptions; + /** This value is used if the Task exits with any nonzero exit code not listed in the exitCodes or exitCodeRanges collection, with a pre-processing error if the preProcessingError property is not present, or with a file upload error if the fileUploadError property is not present. If you want non-default behavior on exit code 0, you must list it explicitly using the exitCodes or exitCodeRanges collection. */ + default?: ExitOptions; +} + +/** How the Batch service should respond if a Task exits with a particular exit code. */ +export interface ExitCodeMapping { + /** A process exit code. */ + code: number; + /** Specifies how the Batch service responds to a particular exit condition. */ + exitOptions: ExitOptions; +} + +/** Specifies how the Batch service responds to a particular exit condition. */ +export interface ExitOptions { + /** 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?: JobAction; + /** 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; +} + +/** A range of exit codes and how the Batch service should respond to exit codes within that range. */ +export interface ExitCodeRangeMapping { + /** The first exit code in the range. */ + start: number; + /** The last exit code in the range. */ + end: number; + /** Specifies how the Batch service responds to a particular exit condition. */ + exitOptions: ExitOptions; +} + +/** A locality hint that can be used by the Batch service to select a Compute Node on which to start a Task. */ +export interface AffinityInformation { + /** You can pass the affinityId of a Node to indicate that this Task needs to run on that Compute Node. Note that this is just a soft affinity. If the target Compute Node is busy or unavailable at the time the Task is scheduled, then the Task will be scheduled elsewhere. */ + affinityId: string; +} + +/** Multi-instance Tasks are commonly used to support MPI Tasks. In the MPI case, if any of the subtasks fail (for example due to exiting with a non-zero exit code) the entire multi-instance Task fails. The multi-instance Task is then terminated and retried, up to its retry limit. */ export interface MultiInstanceSettings { - /** - * The number of Compute Nodes required by the Task. If omitted, the default is 1. - */ + /** If omitted, the default is 1. */ numberOfInstances?: number; - /** - * The command line to run on all the Compute Nodes to enable them to coordinate when the primary - * runs the main Task command. A typical coordination command line launches a background service - * and verifies that the service is ready to process inter-node messages. - */ + /** A typical coordination command line launches a background service and verifies that the service is ready to process inter-node messages. */ coordinationCommandLine: string; - /** - * A list of files that the Batch service will download before running the coordination command - * line. The difference between common resource files and Task resource files is that common - * resource files are downloaded for all subtasks including the primary, whereas Task resource - * files are downloaded only for the primary. Also note that these resource files are not - * downloaded to the Task working directory, but instead are downloaded to the Task root - * directory (one directory above the working directory). 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. - */ + /** The difference between common resource files and Task resource files is that common resource files are downloaded for all subtasks including the primary, whereas Task resource files are downloaded only for the primary. Also note that these resource files are not downloaded to the Task working directory, but instead are downloaded to the Task root directory (one directory above the working directory). 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. */ commonResourceFiles?: ResourceFile[]; } -/** - * An interface representing TaskStatistics. - * @summary Resource usage statistics for a Task. - */ -export interface TaskStatistics { - /** - * The URL of the statistics. - */ - url: string; - /** - * The start time of the time range covered by the statistics. - */ - startTime: Date; - /** - * The time at which the statistics were last updated. All statistics are limited to the range - * between startTime and lastUpdateTime. - */ - lastUpdateTime: Date; - /** - * The total user mode CPU time (summed across all cores and all Compute Nodes) consumed by the - * Task. - */ - userCPUTime: string; - /** - * The total kernel mode CPU time (summed across all cores and all Compute Nodes) consumed by the - * Task. - */ - kernelCPUTime: string; - /** - * The total wall clock time of the Task. The wall clock time is the elapsed time from when the - * Task started running on a Compute Node to when it finished (or to the last time the statistics - * were updated, if the Task had not finished by then). If the Task was retried, this includes - * the wall clock time of all the Task retries. - */ - wallClockTime: string; - /** - * The total number of disk read operations made by the Task. - */ - readIOps: number; - /** - * The total number of disk write operations made by the Task. - */ - writeIOps: number; - /** - * The total gibibytes read from disk by the Task. - */ - readIOGiB: number; - /** - * The total gibibytes written to disk by the Task. - */ - writeIOGiB: number; - /** - * The total wait time of the Task. The wait time for a Task is defined as the elapsed time - * between the creation of the Task and the start of Task execution. (If the Task is retried due - * to failures, the wait time is the time to the most recent Task execution.). - */ - waitTime: string; +/** Specifies any dependencies of a Task. Any Task that is explicitly specified or within a dependency range must complete before the dependant Task will be scheduled. */ +export interface TaskDependencies { + /** The taskIds collection is limited to 64000 characters total (i.e. the combined length of all Task IDs). If the taskIds collection exceeds the maximum length, the Add Task request fails with error code TaskDependencyListTooLong. In this case consider using Task ID ranges instead. */ + taskIds?: string[]; + /** The list of Task ID ranges that this Task depends on. All Tasks in all ranges must complete successfully before the dependent Task can be scheduled. */ + taskIdRanges?: TaskIdRange[]; } -/** - * The start and end of the range are inclusive. For example, if a range has start 9 and end 12, - * then it represents Tasks '9', '10', '11' and '12'. - * @summary A range of Task IDs that a Task can depend on. All Tasks with IDs in the range must - * complete successfully before the dependent Task can be scheduled. - */ +/** The start and end of the range are inclusive. For example, if a range has start 9 and end 12, then it represents Tasks '9', '10', '11' and '12'. */ export interface TaskIdRange { - /** - * The first Task ID in the range. - */ + /** The first Task ID in the range. */ start: number; - /** - * The last Task ID in the range. - */ + /** The last Task ID in the range. */ end: number; } -/** - * An interface representing TaskDependencies. - * @summary Specifies any dependencies of a Task. Any Task that is explicitly specified or within a - * dependency range must complete before the dependant Task will be scheduled. - */ -export interface TaskDependencies { - /** - * The list of Task IDs that this Task depends on. All Tasks in this list must complete - * successfully before the dependent Task can be scheduled. The taskIds collection is limited to - * 64000 characters total (i.e. the combined length of all Task IDs). If the taskIds collection - * exceeds the maximum length, the Add Task request fails with error code - * TaskDependencyListTooLong. In this case consider using Task ID ranges instead. - */ - taskIds?: string[]; - /** - * The list of Task ID ranges that this Task depends on. All Tasks in all ranges must complete - * successfully before the dependent Task can be scheduled. - */ - taskIdRanges?: TaskIdRange[]; +/** The result of listing the Tasks in a Job. */ +export interface CloudTaskListResult { + /** The list of Tasks. */ + value?: CloudTask[]; + /** The URL to get the next set of results. */ + odataNextLink?: string; } -/** - * Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery - * operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node - * disappeared due to host failure. Retries due to recovery operations are independent of and are - * not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry - * due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This - * means Tasks need to tolerate being interrupted and restarted without causing any corruption or - * duplicate data. The best practice for long running Tasks is to use some form of checkpointing. - * @summary An Azure Batch Task. - */ +/** Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running Tasks is to use some form of checkpointing. */ export interface CloudTask { - /** - * 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 can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. */ 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. - */ + /** The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. */ displayName?: string; - /** - * The URL of the Task. - */ + /** The URL of the Task. */ url?: string; - /** - * The ETag of the Task. This is an opaque string. You can use it to detect whether the Task has - * changed between requests. In particular, you can be pass the ETag when updating a Task to - * specify that your changes should take effect only if nobody else has modified the Task in the - * meantime. - */ + /** This is an opaque string. You can use it to detect whether the Task has changed between requests. In particular, you can be pass the ETag when updating a Task to specify that your changes should take effect only if nobody else has modified the Task in the meantime. */ eTag?: string; - /** - * The last modified time of the Task. - */ + /** The last modified time of the Task. */ lastModified?: Date; - /** - * The creation time of the Task. - */ + /** The creation time of the Task. */ creationTime?: Date; - /** - * How the Batch service should respond when the Task completes. - */ + /** How the Batch service should respond when the Task completes. */ exitConditions?: ExitConditions; - /** - * The current state of the Task. Possible values include: 'active', 'preparing', 'running', - * 'completed' - */ + /** The state of the Task. */ state?: TaskState; - /** - * The time at which the Task entered its current state. - */ + /** The time at which the Task entered its current state. */ stateTransitionTime?: Date; - /** - * The previous state of the Task. This property is not set if the Task is in its initial Active - * state. Possible values include: 'active', 'preparing', 'running', 'completed' - */ + /** This property is not set if the Task is in its initial Active state. */ previousState?: TaskState; - /** - * The time at which the Task entered its previous state. This property is not set if the Task is - * in its initial Active state. - */ + /** This property is not set if the Task is in its initial Active state. */ previousStateTransitionTime?: Date; - /** - * 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). - */ + /** 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. - */ + /** 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?: TaskContainerSettings; - /** - * 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. - */ + /** 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?: ResourceFile[]; - /** - * 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. - */ + /** For multi-instance Tasks, the files will only be uploaded from the Compute Node on which the primary Task is executed. */ outputFiles?: OutputFile[]; - /** - * A list of environment variable settings for the Task. - */ + /** A list of environment variable settings for the Task. */ environmentSettings?: EnvironmentSetting[]; - /** - * A locality hint that can be used by the Batch service to select a Compute Node on which to - * start the new Task. - */ + /** A locality hint that can be used by the Batch service to select a Compute Node on which to start a Task. */ affinityInfo?: AffinityInformation; - /** - * The execution constraints that apply to this Task. - */ + /** Execution constraints to apply to a Task. */ constraints?: TaskConstraints; - /** - * The number of scheduling slots that the Task requires 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. - */ + /** 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. - */ + /** If omitted, the Task runs as a non-administrative user unique to the Task. */ userIdentity?: UserIdentity; - /** - * Information about the execution of the Task. - */ + /** Information about the execution of a Task. */ executionInfo?: TaskExecutionInformation; - /** - * Information about the Compute Node on which the Task ran. - */ + /** Information about the Compute Node on which a Task ran. */ nodeInfo?: ComputeNodeInformation; - /** - * An object that indicates that the Task is a multi-instance Task, and contains information - * about how to run the multi-instance Task. - */ + /** Multi-instance Tasks are commonly used to support MPI Tasks. In the MPI case, if any of the subtasks fail (for example due to exiting with a non-zero exit code) the entire multi-instance Task fails. The multi-instance Task is then terminated and retried, up to its retry limit. */ multiInstanceSettings?: MultiInstanceSettings; - /** - * Resource usage statistics for the Task. - */ + /** Resource usage statistics for a Task. */ stats?: TaskStatistics; - /** - * 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. - */ - dependsOn?: TaskDependencies; - /** - * 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?: ApplicationPackageReference[]; - /** - * 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?: AuthenticationTokenSettings; -} - -/** - * Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery - * operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node - * disappeared due to host failure. Retries due to recovery operations are independent of and are - * not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry - * due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This - * means Tasks need to tolerate being interrupted and restarted without causing any corruption or - * duplicate data. The best practice for long running Tasks is to use some form of checkpointing. - * @summary An Azure Batch Task to add. - */ -export interface TaskAddParameter { - /** - * 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; - /** - * 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?: TaskContainerSettings; - /** - * How the Batch service should respond when the Task completes. - */ - exitConditions?: ExitConditions; - /** - * 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?: ResourceFile[]; - /** - * 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?: OutputFile[]; - /** - * A list of environment variable settings for the Task. - */ - environmentSettings?: EnvironmentSetting[]; - /** - * A locality hint that can be used by the Batch service to select a Compute Node on which to - * start the new Task. - */ - affinityInfo?: AffinityInformation; - /** - * 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?: TaskConstraints; - /** - * 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?: UserIdentity; - /** - * An object that indicates that the Task is a multi-instance Task, and contains information - * about how to run the multi-instance Task. - */ - multiInstanceSettings?: MultiInstanceSettings; - /** - * 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. - */ + /** 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. */ dependsOn?: TaskDependencies; - /** - * 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. - */ + /** 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?: ApplicationPackageReference[]; - /** - * 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. - */ + /** 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?: AuthenticationTokenSettings; } -/** - * An interface representing TaskAddCollectionParameter. - * @summary A collection of Azure Batch Tasks to add. - */ -export interface TaskAddCollectionParameter { - /** - * 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: TaskAddParameter[]; +/** Information about the execution of a Task. */ +export interface TaskExecutionInformation { + /** 'Running' corresponds to the running state, so if the Task specifies resource files or Packages, then the start time reflects the time at which the Task started downloading or deploying these. If the Task has been restarted or retried, this is the most recent time at which the Task started running. This property is present only for Tasks that are in the running or completed state. */ + startTime?: Date; + /** This property is set only if the Task is in the Completed state. */ + endTime?: Date; + /** This property is set only if the Task is in the completed state. In general, the exit code for a process reflects the specific convention implemented by the application developer for that process. If you use the exit code value to make decisions in your code, be sure that you know the exit code convention used by the application process. However, if the Batch service terminates the Task (due to timeout, or user termination via the API) you may see an operating system-defined exit code. */ + exitCode?: number; + /** This property is set only if the Task runs in a container context. */ + containerInfo?: TaskContainerExecutionInformation; + /** This property is set only if the Task is in the completed state and encountered a failure. */ + failureInfo?: TaskFailureInformation; + /** Task application failures (non-zero exit code) are retried, pre-processing errors (the Task could not be run) and file upload errors are not retried. The Batch service will retry the Task up to the limit specified by the constraints. */ + retryCount: number; + /** 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?: Date; + /** When the user removes Compute Nodes from a Pool (by resizing/shrinking the pool) or when the Job is being disabled, the user can specify that running Tasks on the Compute Nodes be requeued for execution. This count tracks how many times the Task has been requeued for these reasons. */ + requeueCount: number; + /** This property is set only if the requeueCount is nonzero. */ + lastRequeueTime?: Date; + /** If the value is 'failed', then the details of the failure can be found in the failureInfo property. */ + result?: TaskExecutionResult; } -/** - * An interface representing ErrorMessage. - * @summary An error message received in an Azure Batch error response. - */ -export interface ErrorMessage { - /** - * The language code of the error message. - */ - lang?: string; - /** - * The text of the message. - */ - value?: string; +/** Information about the Compute Node on which a Task ran. */ +export interface ComputeNodeInformation { + /** An identifier for the Node on which the Task ran, which can be passed when adding a Task to request that the Task be scheduled on this Compute Node. */ + affinityId?: string; + /** The URL of the Compute Node on which the Task ran. */ + nodeUrl?: string; + /** The ID of the Pool on which the Task ran. */ + poolId?: string; + /** The ID of the Compute Node on which the Task ran. */ + nodeId?: string; + /** The root directory of the Task on the Compute Node. */ + taskRootDirectory?: string; + /** The URL to the root directory of the Task on the Compute Node. */ + taskRootDirectoryUrl?: string; } -/** - * An interface representing BatchErrorDetail. - * @summary An item of additional information included in an Azure Batch error response. - */ -export interface BatchErrorDetail { - /** - * An identifier specifying the meaning of the Value property. - */ - key?: string; - /** - * The additional information included with the error response. - */ - value?: string; -} - -/** - * An interface representing BatchError. - * @summary An error response received from the Azure Batch service. - */ -export interface BatchError { - /** - * An identifier for the error. Codes are invariant and are intended to be consumed - * programmatically. - */ - code?: string; - /** - * A message describing the error, intended to be suitable for display in a user interface. - */ - message?: ErrorMessage; - /** - * A collection of key-value pairs containing additional details about the error. - */ - values?: BatchErrorDetail[]; -} - -/** - * An interface representing TaskAddResult. - * @summary Result for a single Task added as part of an add Task collection operation. - */ -export interface TaskAddResult { - /** - * The status of the add Task request. Possible values include: 'success', 'clientError', - * 'serverError' - */ - status: TaskAddStatus; - /** - * 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. - */ - eTag?: string; - /** - * The last modified time of the Task. - */ - lastModified?: Date; - /** - * The URL of the Task, if the Task was successfully added. - */ - location?: string; - /** - * The error encountered while attempting to add the Task. - */ - error?: BatchError; -} - -/** - * An interface representing TaskAddCollectionResult. - * @summary The result of adding a collection of Tasks to a Job. - */ -export interface TaskAddCollectionResult { - /** - * The results of the add Task collection operation. - */ - value?: TaskAddResult[]; -} - -/** - * An interface representing SubtaskInformation. - * @summary Information about an Azure Batch subtask. - */ -export interface SubtaskInformation { - /** - * The ID of the subtask. - */ - id?: number; - /** - * Information about the Compute Node on which the subtask ran. - */ - nodeInfo?: ComputeNodeInformation; - /** - * The time at which the subtask started running. If the subtask has been restarted or retried, - * this is the most recent time at which the subtask started running. - */ - startTime?: Date; - /** - * The time at which the subtask completed. This property is set only if the subtask is in the - * Completed state. - */ - endTime?: Date; - /** - * The exit code of the program specified on the subtask command line. This property is set only - * if the subtask is in the completed state. In general, the exit code for a process reflects the - * specific convention implemented by the application developer for that process. If you use the - * exit code value to make decisions in your code, be sure that you know the exit code convention - * used by the application process. However, if the Batch service terminates the subtask (due to - * timeout, or user termination via the API) you may see an operating system-defined exit code. - */ - exitCode?: number; - /** - * Information about the container under which the Task is executing. This property is set only - * if the Task runs in a container context. - */ - containerInfo?: TaskContainerExecutionInformation; - /** - * 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?: TaskFailureInformation; - /** - * The current state of the subtask. Possible values include: 'preparing', 'running', 'completed' - */ - state?: SubtaskState; - /** - * The time at which the subtask entered its current state. - */ - stateTransitionTime?: Date; - /** - * The previous state of the subtask. This property is not set if the subtask is in its initial - * running state. Possible values include: 'preparing', 'running', 'completed' - */ - previousState?: SubtaskState; - /** - * 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?: Date; - /** - * 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 include: 'success', 'failure' - */ - result?: TaskExecutionResult; -} - -/** - * An interface representing CloudTaskListSubtasksResult. - * @summary The result of listing the subtasks of a Task. - */ -export interface CloudTaskListSubtasksResult { - /** - * The list of subtasks. - */ - value?: SubtaskInformation[]; -} - -/** - * An interface representing TaskInformation. - * @summary Information about a Task running on a Compute Node. - */ -export interface TaskInformation { - /** - * The URL of the Task. - */ - taskUrl?: string; - /** - * The ID of the Job to which the Task belongs. - */ - jobId?: string; - /** - * The ID of the Task. - */ - 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 include: 'active', 'preparing', 'running', - * 'completed' - */ - taskState: TaskState; - /** - * Information about the execution of the Task. - */ - executionInfo?: TaskExecutionInformation; -} - -/** - * An interface representing StartTaskInformation. - * @summary Information about a StartTask running on a Compute Node. - */ -export interface StartTaskInformation { - /** - * The state of the StartTask on the Compute Node. Possible values include: 'running', - * 'completed' - */ - state: StartTaskState; - /** - * 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). - */ +/** Resource usage statistics for a Task. */ +export interface TaskStatistics { + /** The URL of the statistics. */ + url: string; + /** The start time of the time range covered by the statistics. */ startTime: Date; - /** - * 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. - */ - endTime?: Date; - /** - * The exit code of the program specified on the StartTask command line. This property is set - * only if the StartTask is in the completed state. In general, the exit code for a process - * reflects the specific convention implemented by the application developer for that process. If - * you use the exit code value to make decisions in your code, be sure that you know the exit - * code convention used by the application process. However, if the Batch service terminates the - * StartTask (due to timeout, or user termination via the API) you may see an operating - * system-defined exit code. - */ - exitCode?: number; - /** - * Information about the container under which the Task is executing. This property is set only - * if the Task runs in a container context. - */ - containerInfo?: TaskContainerExecutionInformation; - /** - * 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?: TaskFailureInformation; - /** - * The number of times the Task has been retried by the Batch service. Task application failures - * (non-zero exit code) are retried, pre-processing errors (the Task could not be run) and file - * upload errors are not retried. The Batch service will retry the Task up to the limit specified - * by the constraints. - */ - 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?: Date; - /** - * 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 include: 'success', 'failure' - */ - result?: TaskExecutionResult; -} - -/** - * An interface representing ComputeNodeError. - * @summary An error encountered by a Compute Node. - */ -export interface ComputeNodeError { - /** - * An identifier for the Compute Node error. Codes are invariant and are intended to be consumed - * programmatically. - */ - code?: string; - /** - * A message describing the Compute Node error, intended to be suitable for display in a user - * interface. - */ - message?: string; - /** - * The list of additional error details related to the Compute Node error. - */ - errorDetails?: NameValuePair[]; -} - -/** - * An interface representing InboundEndpoint. - * @summary An inbound endpoint on a Compute Node. - */ -export interface InboundEndpoint { - /** - * The name of the endpoint. - */ - name: string; - /** - * The protocol of the endpoint. Possible values include: 'tcp', 'udp' - */ - protocol: InboundEndpointProtocol; - /** - * The public IP address of the Compute Node. - */ - publicIPAddress: string; - /** - * The public fully qualified domain name for the Compute Node. - */ - publicFQDN: string; - /** - * The public port number of the endpoint. - */ - frontendPort: number; - /** - * The backend port number of the endpoint. - */ - backendPort: number; -} - -/** - * An interface representing ComputeNodeEndpointConfiguration. - * @summary The endpoint configuration for the Compute Node. - */ -export interface ComputeNodeEndpointConfiguration { - /** - * The list of inbound endpoints that are accessible on the Compute Node. - */ - inboundEndpoints: InboundEndpoint[]; -} - -/** - * An interface representing VirtualMachineInfo. - * @summary Info about the current state of the virtual machine. - */ -export interface VirtualMachineInfo { - /** - * The reference to the Azure Virtual Machine's Marketplace Image. - */ - imageReference?: ImageReference; -} - -/** - * An interface representing ComputeNode. - * @summary A Compute Node in the Batch service. - */ -export interface ComputeNode { - /** - * The ID of the Compute Node. Every Compute Node that is added to a Pool is assigned a unique - * ID. Whenever a Compute Node is removed from a Pool, all of its local files are deleted, and - * the ID is reclaimed and could be reused for new Compute Nodes. - */ - id?: string; - /** - * The URL of the Compute Node. - */ - url?: string; - /** - * The current state of the Compute Node. The 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 include: 'idle', 'rebooting', 'reimaging', - * 'running', 'unusable', 'creating', 'starting', 'waitingForStartTask', 'startTaskFailed', - * 'unknown', 'leavingPool', 'offline', 'preempted' - */ - state?: ComputeNodeState; - /** - * Whether the Compute Node is available for Task scheduling. Possible values include: 'enabled', - * 'disabled' - */ - schedulingState?: SchedulingState; - /** - * The time at which the Compute Node entered its current state. - */ - stateTransitionTime?: Date; - /** - * The last time at which the Compute Node was started. This property may not be present if the - * Compute Node state is unusable. - */ - lastBootTime?: Date; - /** - * The time at which this Compute Node was allocated to the Pool. This is the time when the - * Compute Node was initially allocated and doesn't change once set. It is not updated when the - * Compute Node is service healed or preempted. - */ - allocationTime?: Date; - /** - * The IP address that other Nodes can use to communicate with this Compute Node. Every Compute - * Node that is added to a Pool is assigned a unique IP address. Whenever a Compute Node is - * removed from a Pool, all of its local files are deleted, and the IP address is reclaimed and - * could be reused for new Compute Nodes. - */ - ipAddress?: string; - /** - * An identifier which can be passed when adding a Task to request that the Task be scheduled on - * this Compute Node. Note that this is just a soft affinity. If the target Compute Node is busy - * or unavailable at the time the Task is scheduled, then the Task will be scheduled elsewhere. - */ - affinityId?: string; - /** - * The size of the virtual machine hosting the Compute Node. 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 total number of Job Tasks completed on the Compute Node. This includes Job Manager Tasks - * and normal Tasks, but not Job Preparation, Job Release or Start Tasks. - */ - totalTasksRun?: number; - /** - * The total number of currently running Job Tasks on the Compute Node. This includes Job Manager - * Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks. - */ - runningTasksCount?: number; - /** - * The total number of scheduling slots used by currently running Job Tasks on the Compute Node. - * This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or - * Start Tasks. - */ - runningTaskSlotsCount?: number; - /** - * The total number of Job Tasks which completed successfully (with exitCode 0) on the Compute - * Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release - * or Start Tasks. - */ - totalTasksSucceeded?: number; - /** - * A list of Tasks whose state has recently changed. This property is present only if at least - * one Task has run on this Compute Node since it was assigned to the Pool. - */ - recentTasks?: TaskInformation[]; - /** - * The Task specified to run on the Compute Node as it joins the Pool. - */ - startTask?: StartTask; - /** - * Runtime information about the execution of the StartTask on the Compute Node. - */ - startTaskInfo?: StartTaskInformation; - /** - * The list of Certificates installed on the Compute Node. 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. - */ - certificateReferences?: CertificateReference[]; - /** - * The list of errors that are currently being encountered by the Compute Node. - */ - errors?: ComputeNodeError[]; - /** - * Whether this Compute Node is a dedicated Compute Node. If false, the Compute Node is a - * low-priority Compute Node. - */ - isDedicated?: boolean; - /** - * The endpoint configuration for the Compute Node. - */ - endpointConfiguration?: ComputeNodeEndpointConfiguration; - /** - * Information about the Compute Node agent version and the time the Compute Node upgraded to a - * new version. - */ - nodeAgentInfo?: NodeAgentInformation; - /** - * Info about the current state of the virtual machine. - */ - virtualMachineInfo?: VirtualMachineInfo; -} - -/** - * An interface representing ComputeNodeUser. - * @summary A user Account for RDP or SSH access on a Compute Node. - */ -export interface ComputeNodeUser { - /** - * 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; - /** - * 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. - */ - 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; -} - -/** - * An interface representing ComputeNodeGetRemoteLoginSettingsResult. - * @summary The remote login settings for a Compute Node. - */ -export interface ComputeNodeGetRemoteLoginSettingsResult { - /** - * The IP address used for remote login to the Compute Node. - */ - remoteLoginIPAddress: string; - /** - * The port used for remote login to the Compute Node. - */ - remoteLoginPort: number; -} - -/** - * An interface representing JobSchedulePatchParameter. - * @summary The set of changes to be made to a Job Schedule. - */ -export interface JobSchedulePatchParameter { - /** - * The schedule according to which Jobs will be created. If you do not specify this element, the - * existing schedule is left unchanged. - */ - schedule?: Schedule; - /** - * 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?: JobSpecification; - /** - * 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. - */ - metadata?: MetadataItem[]; -} - -/** - * An interface representing JobScheduleUpdateParameter. - * @summary The set of changes to be made to a Job Schedule. - */ -export interface JobScheduleUpdateParameter { - /** - * The schedule according to which Jobs will be created. If you do not specify this element, it - * is equivalent to passing the default schedule: that is, a single Job scheduled to run - * immediately. - */ - schedule: Schedule; - /** - * 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: JobSpecification; - /** - * A list of name-value pairs associated with the Job Schedule as metadata. If you do not specify - * this element, it takes the default value of an empty list; in effect, any existing metadata is - * deleted. - */ - metadata?: MetadataItem[]; -} - -/** - * An interface representing JobDisableParameter. - * @summary Options when disabling a Job. - */ -export interface JobDisableParameter { - /** - * What to do with active Tasks associated with the Job. Possible values include: 'requeue', - * 'terminate', 'wait' - */ - disableTasks: DisableJobOption; -} - -/** - * An interface representing JobTerminateParameter. - * @summary Options when terminating a Job. - */ -export interface JobTerminateParameter { - /** - * The text you want to appear as the Job's TerminateReason. The default is 'UserTerminate'. - */ - terminateReason?: string; -} - -/** - * An interface representing JobPatchParameter. - * @summary The set of changes to be made to a Job. - */ -export interface JobPatchParameter { - /** - * 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; - /** - * The maximum number of tasks that can be executed in parallel for the job. The value of - * maxParallelTasks must be -1 or greater than 0 if specified. If not specified, the default - * value is -1, which means there's no limit to the number of tasks that can be run at once. You - * can update a job's maxParallelTasks after it has been created using the update job API. - */ - maxParallelTasks?: number; - /** - * 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 include: 'noAction', 'terminateJob' - */ - onAllTasksComplete?: OnAllTasksComplete; - /** - * The execution constraints for the Job. If omitted, the existing execution constraints are left - * unchanged. - */ - constraints?: JobConstraints; - /** - * 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?: PoolInformation; - /** - * A list of name-value pairs associated with the Job as metadata. If omitted, the existing Job - * metadata is left unchanged. - */ - metadata?: MetadataItem[]; -} - -/** - * An interface representing JobUpdateParameter. - * @summary The set of changes to be made to a Job. - */ -export interface JobUpdateParameter { - /** - * 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, it is set to the default - * value 0. - */ - priority?: number; - /** - * The execution constraints for the Job. If omitted, the constraints are cleared. - */ - constraints?: JobConstraints; - /** - * 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 Update 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). - */ - poolInfo: PoolInformation; - /** - * A list of name-value pairs associated with the Job as metadata. If omitted, it takes the - * default value of an empty list; in effect, any existing metadata is deleted. - */ - metadata?: MetadataItem[]; - /** - * The action the Batch service should take when all Tasks in the Job are in the completed state. - * If omitted, the completion behavior is set to noaction. If the current value is terminatejob, - * this is an error because a Job's completion behavior may not be changed from terminatejob to - * noaction. 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 and Batch returns status code 400 (Bad Request) and an 'invalid property value' - * error response. If you do not specify this element in a PUT request, it is equivalent to - * passing noaction. This is an error if the current value is terminatejob. Possible values - * include: 'noAction', 'terminateJob' - */ - onAllTasksComplete?: OnAllTasksComplete; -} - -/** - * An interface representing PoolEnableAutoScaleParameter. - * @summary Options for enabling automatic scaling on a Pool. - */ -export interface PoolEnableAutoScaleParameter { - /** - * 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. - */ - autoScaleEvaluationInterval?: string; -} - -/** - * An interface representing PoolEvaluateAutoScaleParameter. - * @summary Options for evaluating an automatic scaling formula on a Pool. - */ -export interface PoolEvaluateAutoScaleParameter { - /** - * 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; -} - -/** - * An interface representing PoolResizeParameter. - * @summary Options for changing the size of a Pool. - */ -export interface PoolResizeParameter { - /** - * The desired number of dedicated Compute Nodes in the Pool. - */ - targetDedicatedNodes?: number; - /** - * The desired number of 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 include: 'requeue', 'terminate', - * 'taskCompletion', 'retainedData' - */ - nodeDeallocationOption?: ComputeNodeDeallocationOption; -} - -/** - * An interface representing PoolUpdatePropertiesParameter. - * @summary The set of changes to be made to a Pool. - */ -export interface PoolUpdatePropertiesParameter { - /** - * 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?: StartTask; - /** - * A list of Certificates to be installed on each Compute Node in the Pool. 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. - */ - certificateReferences: CertificateReference[]; - /** - * 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: ApplicationPackageReference[]; - /** - * 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: MetadataItem[]; -} - -/** - * An interface representing PoolPatchParameter. - * @summary The set of changes to be made to a Pool. - */ -export interface PoolPatchParameter { - /** - * 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?: StartTask; - /** - * A list of Certificates to be installed on each Compute Node in the Pool. 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. - */ - certificateReferences?: CertificateReference[]; - /** - * 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?: ApplicationPackageReference[]; - /** - * 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?: MetadataItem[]; -} - -/** - * An interface representing TaskUpdateParameter. - * @summary The set of changes to be made to a Task. - */ -export interface TaskUpdateParameter { - /** - * Constraints that apply to this Task. If omitted, the Task is given the default constraints. - * For multi-instance Tasks, updating the retention time applies only to the primary Task and not - * subtasks. - */ - constraints?: TaskConstraints; -} - -/** - * An interface representing NodeUpdateUserParameter. - * @summary The set of changes to be made to a user Account on a Compute Node. - */ -export interface NodeUpdateUserParameter { - /** - * 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. - */ - 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; - /** - * 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). If omitted, any existing SSH public key is removed. - */ - sshPublicKey?: string; -} - -/** - * An interface representing NodeRebootParameter. - * @summary Options for rebooting a Compute Node. - */ -export interface NodeRebootParameter { - /** - * When to reboot the Compute Node and what to do with currently running Tasks. The default value - * is requeue. Possible values include: 'requeue', 'terminate', 'taskCompletion', 'retainedData' - */ - nodeRebootOption?: ComputeNodeRebootOption; -} - -/** - * An interface representing NodeReimageParameter. - * @summary Options for reimaging a Compute Node. - */ -export interface NodeReimageParameter { - /** - * When to reimage the Compute Node and what to do with currently running Tasks. The default - * value is requeue. Possible values include: 'requeue', 'terminate', 'taskCompletion', - * 'retainedData' - */ - nodeReimageOption?: ComputeNodeReimageOption; -} - -/** - * An interface representing NodeDisableSchedulingParameter. - * @summary Options for disabling scheduling on a Compute Node. - */ -export interface NodeDisableSchedulingParameter { - /** - * What to do with currently running Tasks when disabling Task scheduling on the Compute Node. - * The default value is requeue. Possible values include: 'requeue', 'terminate', - * 'taskCompletion' - */ - nodeDisableSchedulingOption?: DisableComputeNodeSchedulingOption; -} - -/** - * An interface representing NodeRemoveParameter. - * @summary Options for removing Compute Nodes from a Pool. - */ -export interface NodeRemoveParameter { - /** - * 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 include: 'requeue', - * 'terminate', 'taskCompletion', 'retainedData' - */ - nodeDeallocationOption?: ComputeNodeDeallocationOption; -} - -/** - * An interface representing UploadBatchServiceLogsConfiguration. - * @summary The Azure Batch service log files upload configuration for a Compute Node. - */ -export interface UploadBatchServiceLogsConfiguration { - /** - * 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: Date; - /** - * 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?: Date; - /** - * 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?: ComputeNodeIdentityReference; -} - -/** - * An interface representing UploadBatchServiceLogsResult. - * @summary The result of uploading Batch service log files from a specific Compute Node. - */ -export interface UploadBatchServiceLogsResult { - /** - * 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. - */ - virtualDirectoryName: string; - /** - * The number of log files which will be uploaded. - */ - numberOfFilesUploaded: number; -} - -/** - * An interface representing NodeCounts. - * @summary The number of Compute Nodes in each Compute Node state. - */ -export interface NodeCounts { - /** - * The number of Compute Nodes in the creating state. - */ - creating: number; - /** - * The number of Compute Nodes in the idle state. - */ - idle: number; - /** - * The number of Compute Nodes in the offline state. - */ - offline: number; - /** - * The number of Compute Nodes in the preempted state. - */ - preempted: number; - /** - * The count of Compute Nodes in the rebooting state. - */ - rebooting: number; - /** - * The number of Compute Nodes in the reimaging state. - */ - reimaging: number; - /** - * The number of Compute Nodes in the running state. - */ - running: number; - /** - * The number of Compute Nodes in the starting state. - */ - starting: number; - /** - * The number of Compute Nodes in the startTaskFailed state. - */ - startTaskFailed: number; - /** - * The number of Compute Nodes in the leavingPool state. - */ - leavingPool: number; - /** - * The number of Compute Nodes in the unknown state. - */ - unknown: number; - /** - * The number of Compute Nodes in the unusable state. - */ - unusable: number; - /** - * The number of Compute Nodes in the waitingForStartTask state. - */ - waitingForStartTask: number; - /** - * The total number of Compute Nodes. - */ - total: number; -} - -/** - * An interface representing PoolNodeCounts. - * @summary The number of Compute Nodes in each state for a Pool. - */ -export interface PoolNodeCounts { - /** - * The ID of the Pool. - */ - poolId: string; - /** - * The number of dedicated Compute Nodes in each state. - */ - dedicated?: NodeCounts; - /** - * The number of low-priority Compute Nodes in each state. - */ - lowPriority?: NodeCounts; -} - -/** - * Additional parameters for list operation. - */ -export interface ApplicationListOptions { - /** - * The maximum number of items to return in the response. A maximum of 1000 applications can be - * returned. Default value: 1000. - */ - maxResults?: number; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for get operation. - */ -export interface ApplicationGetOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for listUsageMetrics operation. - */ -export interface PoolListUsageMetricsOptions { - /** - * The earliest time from which to include metrics. This must be at least two and a half hours - * before the current time. If not specified this defaults to the start time of the last - * aggregation interval currently available. - */ - startTime?: Date; - /** - * The latest time from which to include metrics. This must be at least two hours before the - * current time. If not specified this defaults to the end time of the last aggregation interval - * currently available. - */ - endTime?: Date; - /** - * 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-account-usage-metrics. - */ - filter?: string; - /** - * The maximum number of items to return in the response. A maximum of 1000 results will be - * returned. Default value: 1000. - */ - maxResults?: number; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for getAllLifetimeStatistics operation. - */ -export interface PoolGetAllLifetimeStatisticsOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for add operation. - */ -export interface PoolAddOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for list operation. - */ -export interface PoolListOptions { - /** - * 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-pools. - */ - filter?: string; - /** - * An OData $select clause. - */ - select?: string; - /** - * An OData $expand clause. - */ - expand?: string; - /** - * The maximum number of items to return in the response. A maximum of 1000 Pools can be - * returned. Default value: 1000. - */ - maxResults?: number; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for deleteMethod operation. - */ -export interface PoolDeleteMethodOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for exists operation. - */ -export interface PoolExistsOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for get operation. - */ -export interface PoolGetOptions { - /** - * An OData $select clause. - */ - select?: string; - /** - * An OData $expand clause. - */ - expand?: string; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for patch operation. - */ -export interface PoolPatchOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for disableAutoScale operation. - */ -export interface PoolDisableAutoScaleOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for enableAutoScale operation. - */ -export interface PoolEnableAutoScaleOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for evaluateAutoScale operation. - */ -export interface PoolEvaluateAutoScaleOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for resize operation. - */ -export interface PoolResizeOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for stopResize operation. - */ -export interface PoolStopResizeOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for updateProperties operation. - */ -export interface PoolUpdatePropertiesOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for removeNodes operation. - */ -export interface PoolRemoveNodesOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for listSupportedImages operation. - */ -export interface AccountListSupportedImagesOptions { - /** - * 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-support-images. - */ - filter?: string; - /** - * The maximum number of items to return in the response. A maximum of 1000 results will be - * returned. Default value: 1000. - */ - maxResults?: number; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for listPoolNodeCounts operation. - */ -export interface AccountListPoolNodeCountsOptions { - /** - * 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. - */ - filter?: string; - /** - * The maximum number of items to return in the response. Default value: 10. - */ - maxResults?: number; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for getAllLifetimeStatistics operation. - */ -export interface JobGetAllLifetimeStatisticsOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for deleteMethod operation. - */ -export interface JobDeleteMethodOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for get operation. - */ -export interface JobGetOptions { - /** - * An OData $select clause. - */ - select?: string; - /** - * An OData $expand clause. - */ - expand?: string; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for patch operation. - */ -export interface JobPatchOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for update operation. - */ -export interface JobUpdateOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for disable operation. - */ -export interface JobDisableOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for enable operation. - */ -export interface JobEnableOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for terminate operation. - */ -export interface JobTerminateOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for add operation. - */ -export interface JobAddOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for list operation. - */ -export interface JobListOptions { - /** - * 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-jobs. - */ - filter?: string; - /** - * An OData $select clause. - */ - select?: string; - /** - * An OData $expand clause. - */ - expand?: string; - /** - * The maximum number of items to return in the response. A maximum of 1000 Jobs can be returned. - * Default value: 1000. - */ - maxResults?: number; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for listFromJobSchedule operation. - */ -export interface JobListFromJobScheduleOptions { - /** - * 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-jobs-in-a-job-schedule. - */ - filter?: string; - /** - * An OData $select clause. - */ - select?: string; - /** - * An OData $expand clause. - */ - expand?: string; - /** - * The maximum number of items to return in the response. A maximum of 1000 Jobs can be returned. - * Default value: 1000. - */ - maxResults?: number; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for listPreparationAndReleaseTaskStatus operation. - */ -export interface JobListPreparationAndReleaseTaskStatusOptions { - /** - * 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-job-preparation-and-release-status. - */ - filter?: string; - /** - * An OData $select clause. - */ - select?: string; - /** - * The maximum number of items to return in the response. A maximum of 1000 Tasks can be - * returned. Default value: 1000. - */ - maxResults?: number; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for getTaskCounts operation. - */ -export interface JobGetTaskCountsOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for add operation. - */ -export interface CertificateAddOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for list operation. - */ -export interface CertificateListOptions { - /** - * 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; - /** - * The maximum number of items to return in the response. A maximum of 1000 Certificates can be - * returned. Default value: 1000. - */ - maxResults?: number; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for cancelDeletion operation. - */ -export interface CertificateCancelDeletionOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for deleteMethod operation. - */ -export interface CertificateDeleteMethodOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for get operation. - */ -export interface CertificateGetOptions { - /** - * An OData $select clause. - */ - select?: string; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for deleteFromTask operation. - */ -export interface FileDeleteFromTaskOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for getFromTask operation. - */ -export interface FileGetFromTaskOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * The byte range to be retrieved. The default is to retrieve the entire file. The format is - * bytes=startRange-endRange. - */ - ocpRange?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for getPropertiesFromTask operation. - */ -export interface FileGetPropertiesFromTaskOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for deleteFromComputeNode operation. - */ -export interface FileDeleteFromComputeNodeOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for getFromComputeNode operation. - */ -export interface FileGetFromComputeNodeOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * The byte range to be retrieved. The default is to retrieve the entire file. The format is - * bytes=startRange-endRange. - */ - ocpRange?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for getPropertiesFromComputeNode operation. - */ -export interface FileGetPropertiesFromComputeNodeOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for listFromTask operation. - */ -export interface FileListFromTaskOptions { - /** - * 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-task-files. - */ - filter?: string; - /** - * The maximum number of items to return in the response. A maximum of 1000 files can be - * returned. Default value: 1000. - */ - maxResults?: number; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for listFromComputeNode operation. - */ -export interface FileListFromComputeNodeOptions { - /** - * 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-compute-node-files. - */ - filter?: string; - /** - * The maximum number of items to return in the response. A maximum of 1000 files can be - * returned. Default value: 1000. - */ - maxResults?: number; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for exists operation. - */ -export interface JobScheduleExistsOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for deleteMethod operation. - */ -export interface JobScheduleDeleteMethodOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for get operation. - */ -export interface JobScheduleGetOptions { - /** - * An OData $select clause. - */ - select?: string; - /** - * An OData $expand clause. - */ - expand?: string; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for patch operation. - */ -export interface JobSchedulePatchOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for update operation. - */ -export interface JobScheduleUpdateOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for disable operation. - */ -export interface JobScheduleDisableOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for enable operation. - */ -export interface JobScheduleEnableOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for terminate operation. - */ -export interface JobScheduleTerminateOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; -} - -/** - * Additional parameters for add operation. - */ -export interface JobScheduleAddOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; -} - -/** - * Additional parameters for list operation. - */ -export interface JobScheduleListOptions { - /** - * 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-job-schedules. - */ - filter?: string; - /** - * An OData $select clause. - */ - select?: string; - /** - * An OData $expand clause. - */ - expand?: string; - /** - * The maximum number of items to return in the response. A maximum of 1000 Job Schedules can be - * returned. Default value: 1000. - */ - maxResults?: number; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; + /** The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime. */ + lastUpdateTime: Date; + /** The total user mode CPU time (summed across all cores and all Compute Nodes) consumed by the Task. */ + userCPUTime: string; + /** The total kernel mode CPU time (summed across all cores and all Compute Nodes) consumed by the Task. */ + kernelCPUTime: string; + /** The wall clock time is the elapsed time from when the Task started running on a Compute Node to when it finished (or to the last time the statistics were updated, if the Task had not finished by then). If the Task was retried, this includes the wall clock time of all the Task retries. */ + wallClockTime: string; + /** The total number of disk read operations made by the Task. */ + readIOps: number; + /** The total number of disk write operations made by the Task. */ + writeIOps: number; + /** The total gibibytes read from disk by the Task. */ + readIOGiB: number; + /** The total gibibytes written to disk by the Task. */ + writeIOGiB: number; + /** The total wait time of the Task. The wait time for a Task is defined as the elapsed time between the creation of the Task and the start of Task execution. (If the Task is retried due to failures, the wait time is the time to the most recent Task execution.) */ + waitTime: string; } -/** - * Additional parameters for add operation. - */ -export interface TaskAddOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; +/** A collection of Azure Batch Tasks to add. */ +export interface TaskAddCollectionParameter { + /** 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: TaskAddParameter[]; } -/** - * Additional parameters for list operation. - */ -export interface TaskListOptions { - /** - * 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-tasks. - */ - filter?: string; - /** - * An OData $select clause. - */ - select?: string; - /** - * An OData $expand clause. - */ - expand?: string; - /** - * The maximum number of items to return in the response. A maximum of 1000 Tasks can be - * returned. Default value: 1000. - */ - maxResults?: number; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; +/** The result of adding a collection of Tasks to a Job. */ +export interface TaskAddCollectionResult { + /** The results of the add Task collection operation. */ + value?: TaskAddResult[]; } -/** - * Additional parameters for addCollection operation. - */ -export interface TaskAddCollectionOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; +/** Result for a single Task added as part of an add Task collection operation. */ +export interface TaskAddResult { + /** The status of the add Task request. */ + status: TaskAddStatus; + /** The ID of the Task for which this is the result. */ + taskId: string; + /** 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. */ + eTag?: string; + /** The last modified time of the Task. */ + lastModified?: Date; + /** The URL of the Task, if the Task was successfully added. */ + location?: string; + /** An error response received from the Azure Batch service. */ + error?: BatchError; } -/** - * Additional parameters for deleteMethod operation. - */ -export interface TaskDeleteMethodOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; +/** The set of changes to be made to a Task. */ +export interface TaskUpdateParameter { + /** If omitted, the Task is given the default constraints. For multi-instance Tasks, updating the retention time applies only to the primary Task and not subtasks. */ + constraints?: TaskConstraints; } -/** - * Additional parameters for get operation. - */ -export interface TaskGetOptions { - /** - * An OData $select clause. - */ - select?: string; - /** - * An OData $expand clause. - */ - expand?: string; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; +/** The result of listing the subtasks of a Task. */ +export interface CloudTaskListSubtasksResult { + /** The list of subtasks. */ + value?: SubtaskInformation[]; } -/** - * Additional parameters for update operation. - */ -export interface TaskUpdateOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; +/** Information about an Azure Batch subtask. */ +export interface SubtaskInformation { + /** The ID of the subtask. */ + id?: number; + /** Information about the Compute Node on which a Task ran. */ + nodeInfo?: ComputeNodeInformation; + /** The time at which the subtask started running. If the subtask has been restarted or retried, this is the most recent time at which the subtask started running. */ + startTime?: Date; + /** This property is set only if the subtask is in the Completed state. */ + endTime?: Date; + /** This property is set only if the subtask is in the completed state. In general, the exit code for a process reflects the specific convention implemented by the application developer for that process. If you use the exit code value to make decisions in your code, be sure that you know the exit code convention used by the application process. However, if the Batch service terminates the subtask (due to timeout, or user termination via the API) you may see an operating system-defined exit code. */ + exitCode?: number; + /** This property is set only if the Task runs in a container context. */ + containerInfo?: TaskContainerExecutionInformation; + /** This property is set only if the Task is in the completed state and encountered a failure. */ + failureInfo?: TaskFailureInformation; + /** The state of the subtask. */ + state?: SubtaskState; + /** The time at which the subtask entered its current state. */ + stateTransitionTime?: Date; + /** This property is not set if the subtask is in its initial running state. */ + previousState?: SubtaskState; + /** This property is not set if the subtask is in its initial running state. */ + previousStateTransitionTime?: Date; + /** If the value is 'failed', then the details of the failure can be found in the failureInfo property. */ + result?: TaskExecutionResult; } -/** - * Additional parameters for listSubtasks operation. - */ -export interface TaskListSubtasksOptions { - /** - * An OData $select clause. - */ - select?: string; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; +/** A user Account for RDP or SSH access on a Compute Node. */ +export interface ComputeNodeUser { + /** The user name of the Account. */ + name: string; + /** The default value is false. */ + isAdmin?: boolean; + /** 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; + /** 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. */ + password?: string; + /** 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; } -/** - * Additional parameters for terminate operation. - */ -export interface TaskTerminateOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; +/** The set of changes to be made to a user Account on a Compute Node. */ +export interface NodeUpdateUserParameter { + /** 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. */ + password?: string; + /** 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; + /** 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). If omitted, any existing SSH public key is removed. */ + sshPublicKey?: string; +} + +/** A Compute Node in the Batch service. */ +export interface ComputeNode { + /** Every Compute Node that is added to a Pool is assigned a unique ID. Whenever a Compute Node is removed from a Pool, all of its local files are deleted, and the ID is reclaimed and could be reused for new Compute Nodes. */ + id?: string; + /** The URL of the Compute Node. */ + url?: string; + /** 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?: ComputeNodeState; + /** Whether the Compute Node is available for Task scheduling. */ + schedulingState?: SchedulingState; + /** The time at which the Compute Node entered its current state. */ + stateTransitionTime?: Date; + /** This property may not be present if the Compute Node state is unusable. */ + lastBootTime?: Date; + /** This is the time when the Compute Node was initially allocated and doesn't change once set. It is not updated when the Compute Node is service healed or preempted. */ + allocationTime?: Date; + /** Every Compute Node that is added to a Pool is assigned a unique IP address. Whenever a Compute Node is removed from a Pool, all of its local files are deleted, and the IP address is reclaimed and could be reused for new Compute Nodes. */ + ipAddress?: string; + /** Note that this is just a soft affinity. If the target Compute Node is busy or unavailable at the time the Task is scheduled, then the Task will be scheduled elsewhere. */ + affinityId?: string; + /** 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 total number of Job Tasks completed on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks. */ + totalTasksRun?: number; + /** The total number of currently running Job Tasks on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks. */ + runningTasksCount?: number; + /** The total number of scheduling slots used by currently running Job Tasks on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks. */ + runningTaskSlotsCount?: number; + /** The total number of Job Tasks which completed successfully (with exitCode 0) on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks. */ + totalTasksSucceeded?: number; + /** This property is present only if at least one Task has run on this Compute Node since it was assigned to the Pool. */ + recentTasks?: TaskInformation[]; + /** Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running Tasks is to use some form of checkpointing. In some cases the StartTask may be re-run even though the Compute Node was not rebooted. Special care should be taken to avoid StartTasks which create breakaway process or install/launch services from the StartTask working directory, as this will block Batch from being able to re-run the StartTask. */ + startTask?: StartTask; + /** Information about a StartTask running on a Compute Node. */ + startTaskInfo?: StartTaskInformation; + /** 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. */ + certificateReferences?: CertificateReference[]; + /** The list of errors that are currently being encountered by the Compute Node. */ + errors?: ComputeNodeError[]; + /** Whether this Compute Node is a dedicated Compute Node. If false, the Compute Node is a Spot/Low-priority Compute Node. */ + isDedicated?: boolean; + /** The endpoint configuration for the Compute Node. */ + endpointConfiguration?: ComputeNodeEndpointConfiguration; + /** The Batch Compute Node agent is a program that runs on each Compute Node in the Pool and provides Batch capability on the Compute Node. */ + nodeAgentInfo?: NodeAgentInformation; + /** Info about the current state of the virtual machine. */ + virtualMachineInfo?: VirtualMachineInfo; +} + +/** Information about a Task running on a Compute Node. */ +export interface TaskInformation { + /** The URL of the Task. */ + taskUrl?: string; + /** The ID of the Job to which the Task belongs. */ + jobId?: string; + /** The ID of the Task. */ + taskId?: string; + /** The ID of the subtask if the Task is a multi-instance Task. */ + subtaskId?: number; + /** The state of the Task. */ + taskState: TaskState; + /** Information about the execution of a Task. */ + executionInfo?: TaskExecutionInformation; +} + +/** Information about a StartTask running on a Compute Node. */ +export interface StartTaskInformation { + /** The state of the StartTask on the Compute Node. */ + state: StartTaskState; + /** 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: Date; + /** 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. */ + endTime?: Date; + /** This property is set only if the StartTask is in the completed state. In general, the exit code for a process reflects the specific convention implemented by the application developer for that process. If you use the exit code value to make decisions in your code, be sure that you know the exit code convention used by the application process. However, if the Batch service terminates the StartTask (due to timeout, or user termination via the API) you may see an operating system-defined exit code. */ + exitCode?: number; + /** This property is set only if the Task runs in a container context. */ + containerInfo?: TaskContainerExecutionInformation; + /** This property is set only if the Task is in the completed state and encountered a failure. */ + failureInfo?: TaskFailureInformation; + /** Task application failures (non-zero exit code) are retried, pre-processing errors (the Task could not be run) and file upload errors are not retried. The Batch service will retry the Task up to the limit specified by the constraints. */ + retryCount: number; + /** 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?: Date; + /** If the value is 'failed', then the details of the failure can be found in the failureInfo property. */ + result?: TaskExecutionResult; } -/** - * Additional parameters for reactivate operation. - */ -export interface TaskReactivateOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service exactly matches the value - * specified by the client. - */ - ifMatch?: string; - /** - * An ETag value associated with the version of the resource known to the client. The operation - * will be performed only if the resource's current ETag on the service does not match the value - * specified by the client. - */ - ifNoneMatch?: string; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has been modified since the - * specified time. - */ - ifModifiedSince?: Date; - /** - * A timestamp indicating the last modified time of the resource known to the client. The - * operation will be performed only if the resource on the service has not been modified since - * the specified time. - */ - ifUnmodifiedSince?: Date; +/** An error encountered by a Compute Node. */ +export interface ComputeNodeError { + /** An identifier for the Compute Node error. Codes are invariant and are intended to be consumed programmatically. */ + code?: string; + /** A message describing the Compute Node error, intended to be suitable for display in a user interface. */ + message?: string; + /** The list of additional error details related to the Compute Node error. */ + errorDetails?: NameValuePair[]; } -/** - * Additional parameters for addUser operation. - */ -export interface ComputeNodeAddUserOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; +/** The endpoint configuration for the Compute Node. */ +export interface ComputeNodeEndpointConfiguration { + /** The list of inbound endpoints that are accessible on the Compute Node. */ + inboundEndpoints: InboundEndpoint[]; } -/** - * Additional parameters for deleteUser operation. - */ -export interface ComputeNodeDeleteUserOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; +/** An inbound endpoint on a Compute Node. */ +export interface InboundEndpoint { + /** The name of the endpoint. */ + name: string; + /** The protocol of the endpoint. */ + protocol: InboundEndpointProtocol; + /** The public IP address of the Compute Node. */ + publicIPAddress: string; + /** The public fully qualified domain name for the Compute Node. */ + publicFqdn: string; + /** The public port number of the endpoint. */ + frontendPort: number; + /** The backend port number of the endpoint. */ + backendPort: number; } -/** - * Additional parameters for updateUser operation. - */ -export interface ComputeNodeUpdateUserOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; +/** The Batch Compute Node agent is a program that runs on each Compute Node in the Pool and provides Batch capability on the Compute Node. */ +export interface NodeAgentInformation { + /** This version number can be checked against the Compute Node agent release notes located at https://github.com/Azure/Batch/blob/master/changelogs/nodeagent/CHANGELOG.md. */ + version: string; + /** This is the most recent time that the Compute Node agent was updated to a new version. */ + lastUpdateTime: Date; } -/** - * Additional parameters for get operation. - */ -export interface ComputeNodeGetOptions { - /** - * An OData $select clause. - */ - select?: string; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; +/** Info about the current state of the virtual machine. */ +export interface VirtualMachineInfo { + /** A reference to an Azure Virtual Machines Marketplace Image or a Shared Image Gallery Image. To get the list of all Azure Marketplace Image references verified by Azure Batch, see the 'List Supported Images' operation. */ + imageReference?: ImageReference; } -/** - * Additional parameters for reboot operation. - */ -export interface ComputeNodeRebootOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; +/** Options for rebooting a Compute Node. */ +export interface NodeRebootParameter { + /** The default value is requeue. */ + nodeRebootOption?: ComputeNodeRebootOption; } -/** - * Additional parameters for reimage operation. - */ -export interface ComputeNodeReimageOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; +/** Options for reimaging a Compute Node. */ +export interface NodeReimageParameter { + /** The default value is requeue. */ + nodeReimageOption?: ComputeNodeReimageOption; } -/** - * Additional parameters for disableScheduling operation. - */ -export interface ComputeNodeDisableSchedulingOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; +/** Options for disabling scheduling on a Compute Node. */ +export interface NodeDisableSchedulingParameter { + /** The default value is requeue. */ + nodeDisableSchedulingOption?: DisableComputeNodeSchedulingOption; } -/** - * Additional parameters for enableScheduling operation. - */ -export interface ComputeNodeEnableSchedulingOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; +/** The remote login settings for a Compute Node. */ +export interface ComputeNodeGetRemoteLoginSettingsResult { + /** The IP address used for remote login to the Compute Node. */ + remoteLoginIPAddress: string; + /** The port used for remote login to the Compute Node. */ + remoteLoginPort: number; } -/** - * Additional parameters for getRemoteLoginSettings operation. - */ -export interface ComputeNodeGetRemoteLoginSettingsOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; +/** The Azure Batch service log files upload configuration for a Compute Node. */ +export interface UploadBatchServiceLogsConfiguration { + /** 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; + /** 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: Date; + /** 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?: Date; + /** The identity must have write access to the Azure Blob Storage container. */ + identityReference?: ComputeNodeIdentityReference; } -/** - * Additional parameters for getRemoteDesktop operation. - */ -export interface ComputeNodeGetRemoteDesktopOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; +/** The result of uploading Batch service log files from a specific Compute Node. */ +export interface UploadBatchServiceLogsResult { + /** 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. */ + virtualDirectoryName: string; + /** The number of log files which will be uploaded. */ + numberOfFilesUploaded: number; } -/** - * Additional parameters for uploadBatchServiceLogs operation. - */ -export interface ComputeNodeUploadBatchServiceLogsOptions { - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; +/** The result of listing the Compute Nodes in a Pool. */ +export interface ComputeNodeListResult { + /** The list of Compute Nodes. */ + value?: ComputeNode[]; + /** The URL to get the next set of results. */ + odataNextLink?: string; } -/** - * Additional parameters for list operation. - */ -export interface ComputeNodeListOptions { - /** - * 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-nodes-in-a-pool. - */ - filter?: string; - /** - * An OData $select clause. - */ - select?: string; - /** - * The maximum number of items to return in the response. A maximum of 1000 Compute Nodes can be - * returned. Default value: 1000. - */ - maxResults?: number; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; +/** The configuration for virtual machine extension instance view. */ +export interface NodeVMExtension { + /** The provisioning state of the virtual machine extension. */ + provisioningState?: string; + /** The configuration for virtual machine extensions. */ + vmExtension?: VMExtension; + /** The vm extension instance view. */ + instanceView?: VMExtensionInstanceView; +} + +/** The vm extension instance view. */ +export interface VMExtensionInstanceView { + /** The name of the vm extension instance view. */ + name?: string; + /** The resource status information. */ + statuses?: InstanceViewStatus[]; + /** The resource status information. */ + subStatuses?: InstanceViewStatus[]; } -/** - * Additional parameters for get operation. - */ -export interface ComputeNodeExtensionGetOptions { - /** - * An OData $select clause. - */ - select?: string; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ - clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; +/** The instance view status. */ +export interface InstanceViewStatus { + /** The status code. */ + code?: string; + /** The localized label for the status. */ + displayStatus?: string; + /** Level code. */ + level?: StatusLevelTypes; + /** The detailed status message. */ + message?: string; + /** The time of the status. */ + time?: string; } -/** - * Additional parameters for list operation. - */ -export interface ComputeNodeExtensionListOptions { - /** - * An OData $select clause. - */ - select?: string; - /** - * The maximum number of items to return in the response. A maximum of 1000 Compute Nodes can be - * returned. Default value: 1000. - */ - maxResults?: number; - /** - * The maximum time that the server can spend processing the request, in seconds. The default is - * 30 seconds. Default value: 30. - */ - timeout?: number; - /** - * 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. - */ +/** The result of listing the Compute Node extensions in a Node. */ +export interface NodeVMExtensionList { + /** The list of Compute Node extensions. */ + value?: NodeVMExtension[]; + /** The URL to get the next set of results. */ + odataNextLink?: string; +} + +/** Defines headers for Application_list operation. */ +export interface ApplicationListHeaders { + /** 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. */ clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; + /** 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Additional parameters for listNext operation. - */ -export interface ApplicationListNextOptions { - /** - * 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. - */ +/** Defines headers for Application_get operation. */ +export interface ApplicationGetHeaders { + /** 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. */ clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; + /** 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Additional parameters for listUsageMetricsNext operation. - */ -export interface PoolListUsageMetricsNextOptions { - /** - * 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. - */ +/** Defines headers for Application_listNext operation. */ +export interface ApplicationListNextHeaders { + /** 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. */ clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; + /** 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Additional parameters for listNext operation. - */ -export interface PoolListNextOptions { - /** - * 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. - */ +/** Defines headers for Pool_listUsageMetrics operation. */ +export interface PoolListUsageMetricsHeaders { + /** 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. */ clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; + /** 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Additional parameters for listSupportedImagesNext operation. - */ -export interface AccountListSupportedImagesNextOptions { - /** - * 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. - */ +/** Defines headers for Pool_getAllLifetimeStatistics operation. */ +export interface PoolGetAllLifetimeStatisticsHeaders { + /** 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. */ clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; + /** 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Additional parameters for listPoolNodeCountsNext operation. - */ -export interface AccountListPoolNodeCountsNextOptions { - /** - * 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. - */ +/** Defines headers for Pool_add operation. */ +export interface PoolAddHeaders { + /** 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. */ clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; + /** 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Additional parameters for listNext operation. - */ -export interface JobListNextOptions { - /** - * 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. - */ +/** Defines headers for Pool_list operation. */ +export interface PoolListHeaders { + /** 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. */ clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; + /** 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Additional parameters for listFromJobScheduleNext operation. - */ -export interface JobListFromJobScheduleNextOptions { - /** - * 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. - */ +/** Defines headers for Pool_delete operation. */ +export interface PoolDeleteHeaders { + /** 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. */ clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; + /** 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. */ + requestId?: string; } -/** - * Additional parameters for listPreparationAndReleaseTaskStatusNext operation. - */ -export interface JobListPreparationAndReleaseTaskStatusNextOptions { - /** - * 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. - */ +/** Defines headers for Pool_exists operation. */ +export interface PoolExistsHeaders { + /** 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. */ clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; + /** 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Additional parameters for listNext operation. - */ -export interface CertificateListNextOptions { - /** - * 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. - */ +/** Defines headers for Pool_get operation. */ +export interface PoolGetHeaders { + /** 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. */ clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; + /** 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Additional parameters for listFromTaskNext operation. - */ -export interface FileListFromTaskNextOptions { - /** - * 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. - */ +/** Defines headers for Pool_patch operation. */ +export interface PoolPatchHeaders { + /** 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. */ clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; + /** 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Additional parameters for listFromComputeNodeNext operation. - */ -export interface FileListFromComputeNodeNextOptions { - /** - * 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. - */ +/** Defines headers for Pool_disableAutoScale operation. */ +export interface PoolDisableAutoScaleHeaders { + /** 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. */ clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; + /** 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Additional parameters for listNext operation. - */ -export interface JobScheduleListNextOptions { - /** - * 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. - */ +/** Defines headers for Pool_enableAutoScale operation. */ +export interface PoolEnableAutoScaleHeaders { + /** 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. */ clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; + /** 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Additional parameters for listNext operation. - */ -export interface TaskListNextOptions { - /** - * 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. - */ +/** Defines headers for Pool_evaluateAutoScale operation. */ +export interface PoolEvaluateAutoScaleHeaders { + /** 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. */ clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; + /** 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Additional parameters for listNext operation. - */ -export interface ComputeNodeListNextOptions { - /** - * 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. - */ +/** Defines headers for Pool_resize operation. */ +export interface PoolResizeHeaders { + /** 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. */ clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; + /** 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Additional parameters for listNext operation. - */ -export interface ComputeNodeExtensionListNextOptions { - /** - * 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. - */ +/** Defines headers for Pool_stopResize operation. */ +export interface PoolStopResizeHeaders { + /** 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. */ clientRequestId?: string; - /** - * Whether the server should return the client-request-id in the response. Default value: false. - */ - returnClientRequestId?: 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. - */ - ocpDate?: Date; + /** 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface ApplicationListOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - applicationListOptions?: ApplicationListOptions; +/** Defines headers for Pool_updateProperties operation. */ +export interface PoolUpdatePropertiesHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface ApplicationGetOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - applicationGetOptions?: ApplicationGetOptions; +/** Defines headers for Pool_removeNodes operation. */ +export interface PoolRemoveNodesHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface ApplicationListNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - applicationListNextOptions?: ApplicationListNextOptions; +/** Defines headers for Pool_listUsageMetricsNext operation. */ +export interface PoolListUsageMetricsNextHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface PoolListUsageMetricsOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - poolListUsageMetricsOptions?: PoolListUsageMetricsOptions; +/** Defines headers for Pool_listNext operation. */ +export interface PoolListNextHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface PoolGetAllLifetimeStatisticsOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - poolGetAllLifetimeStatisticsOptions?: PoolGetAllLifetimeStatisticsOptions; +/** Defines headers for Account_listSupportedImages operation. */ +export interface AccountListSupportedImagesHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface PoolAddOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - poolAddOptions?: PoolAddOptions; +/** Defines headers for Account_listPoolNodeCounts operation. */ +export interface AccountListPoolNodeCountsHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: string; } -/** - * Optional Parameters. - */ -export interface PoolListOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - poolListOptions?: PoolListOptions; +/** Defines headers for Account_listSupportedImagesNext operation. */ +export interface AccountListSupportedImagesNextHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface PoolDeleteMethodOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - poolDeleteMethodOptions?: PoolDeleteMethodOptions; +/** Defines headers for Account_listPoolNodeCountsNext operation. */ +export interface AccountListPoolNodeCountsNextHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: string; } -/** - * Optional Parameters. - */ -export interface PoolExistsOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - poolExistsOptions?: PoolExistsOptions; +/** Defines headers for Job_getAllLifetimeStatistics operation. */ +export interface JobGetAllLifetimeStatisticsHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface PoolGetOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - poolGetOptions?: PoolGetOptions; +/** Defines headers for Job_delete operation. */ +export interface JobDeleteHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: string; } -/** - * Optional Parameters. - */ -export interface PoolPatchOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - poolPatchOptions?: PoolPatchOptions; +/** Defines headers for Job_get operation. */ +export interface JobGetHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface PoolDisableAutoScaleOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - poolDisableAutoScaleOptions?: PoolDisableAutoScaleOptions; +/** Defines headers for Job_patch operation. */ +export interface JobPatchHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface PoolEnableAutoScaleOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - poolEnableAutoScaleOptions?: PoolEnableAutoScaleOptions; +/** Defines headers for Job_update operation. */ +export interface JobUpdateHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface PoolEvaluateAutoScaleOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - poolEvaluateAutoScaleOptions?: PoolEvaluateAutoScaleOptions; +/** Defines headers for Job_disable operation. */ +export interface JobDisableHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface PoolResizeOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - poolResizeOptions?: PoolResizeOptions; +/** Defines headers for Job_enable operation. */ +export interface JobEnableHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface PoolStopResizeOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - poolStopResizeOptions?: PoolStopResizeOptions; +/** Defines headers for Job_terminate operation. */ +export interface JobTerminateHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface PoolUpdatePropertiesOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - poolUpdatePropertiesOptions?: PoolUpdatePropertiesOptions; +/** Defines headers for Job_add operation. */ +export interface JobAddHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface PoolRemoveNodesOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - poolRemoveNodesOptions?: PoolRemoveNodesOptions; +/** Defines headers for Job_list operation. */ +export interface JobListHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface PoolListUsageMetricsNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - poolListUsageMetricsNextOptions?: PoolListUsageMetricsNextOptions; +/** Defines headers for Job_listFromJobSchedule operation. */ +export interface JobListFromJobScheduleHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface PoolListNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - poolListNextOptions?: PoolListNextOptions; +/** Defines headers for Job_listPreparationAndReleaseTaskStatus operation. */ +export interface JobListPreparationAndReleaseTaskStatusHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface AccountListSupportedImagesOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - accountListSupportedImagesOptions?: AccountListSupportedImagesOptions; +/** Defines headers for Job_getTaskCounts operation. */ +export interface JobGetTaskCountsHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: string; } -/** - * Optional Parameters. - */ -export interface AccountListPoolNodeCountsOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - accountListPoolNodeCountsOptions?: AccountListPoolNodeCountsOptions; +/** Defines headers for Job_listNext operation. */ +export interface JobListNextHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface AccountListSupportedImagesNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - accountListSupportedImagesNextOptions?: AccountListSupportedImagesNextOptions; +/** Defines headers for Job_listFromJobScheduleNext operation. */ +export interface JobListFromJobScheduleNextHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface AccountListPoolNodeCountsNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - accountListPoolNodeCountsNextOptions?: AccountListPoolNodeCountsNextOptions; +/** Defines headers for Job_listPreparationAndReleaseTaskStatusNext operation. */ +export interface JobListPreparationAndReleaseTaskStatusNextHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface JobGetAllLifetimeStatisticsOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobGetAllLifetimeStatisticsOptions?: JobGetAllLifetimeStatisticsOptions; +/** Defines headers for Certificate_add operation. */ +export interface CertificateAddHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface JobDeleteMethodOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobDeleteMethodOptions?: JobDeleteMethodOptions; +/** Defines headers for Certificate_list operation. */ +export interface CertificateListHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface JobGetOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobGetOptions?: JobGetOptions; +/** Defines headers for Certificate_cancelDeletion operation. */ +export interface CertificateCancelDeletionHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface JobPatchOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobPatchOptions?: JobPatchOptions; +/** Defines headers for Certificate_delete operation. */ +export interface CertificateDeleteHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface JobUpdateOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobUpdateOptions?: JobUpdateOptions; +/** Defines headers for Certificate_get operation. */ +export interface CertificateGetHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface JobDisableOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobDisableOptions?: JobDisableOptions; +/** Defines headers for Certificate_listNext operation. */ +export interface CertificateListNextHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface JobEnableOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobEnableOptions?: JobEnableOptions; +/** Defines headers for File_deleteFromTask operation. */ +export interface FileDeleteFromTaskHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: string; } -/** - * Optional Parameters. - */ -export interface JobTerminateOptionalParams extends msRest.RequestOptionsBase { - /** - * The text you want to appear as the Job's TerminateReason. The default is 'UserTerminate'. - */ - terminateReason?: string; - /** - * Additional parameters for the operation - */ - jobTerminateOptions?: JobTerminateOptions; +/** Defines headers for File_getFromTask operation. */ +export interface FileGetFromTaskHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The file creation time. */ + ocpCreationTime?: Date; + /** Whether the object represents a directory. */ + ocpBatchFileIsdirectory?: boolean; + /** The URL of the file. */ + ocpBatchFileUrl?: string; + /** The file mode attribute in octal format. */ + ocpBatchFileMode?: string; + /** The content type of the file. */ + contentType?: string; + /** The length of the file. */ + contentLength?: number; } -/** - * Optional Parameters. - */ -export interface JobAddOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobAddOptions?: JobAddOptions; +/** Defines headers for File_getPropertiesFromTask operation. */ +export interface FileGetPropertiesFromTaskHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The file creation time. */ + ocpCreationTime?: Date; + /** Whether the object represents a directory. */ + ocpBatchFileIsdirectory?: boolean; + /** The URL of the file. */ + ocpBatchFileUrl?: string; + /** The file mode attribute in octal format. */ + ocpBatchFileMode?: string; + /** The content type of the file. */ + contentType?: string; + /** The length of the file. */ + contentLength?: number; } -/** - * Optional Parameters. - */ -export interface JobListOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobListOptions?: JobListOptions; +/** Defines headers for File_deleteFromComputeNode operation. */ +export interface FileDeleteFromComputeNodeHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: string; } -/** - * Optional Parameters. - */ -export interface JobListFromJobScheduleOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobListFromJobScheduleOptions?: JobListFromJobScheduleOptions; +/** Defines headers for File_getFromComputeNode operation. */ +export interface FileGetFromComputeNodeHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The file creation time. */ + ocpCreationTime?: Date; + /** Whether the object represents a directory. */ + ocpBatchFileIsdirectory?: boolean; + /** The URL of the file. */ + ocpBatchFileUrl?: string; + /** The file mode attribute in octal format. */ + ocpBatchFileMode?: string; + /** The content type of the file. */ + contentType?: string; + /** The length of the file. */ + contentLength?: number; } -/** - * Optional Parameters. - */ -export interface JobListPreparationAndReleaseTaskStatusOptionalParams - extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobListPreparationAndReleaseTaskStatusOptions?: JobListPreparationAndReleaseTaskStatusOptions; +/** Defines headers for File_getPropertiesFromComputeNode operation. */ +export interface FileGetPropertiesFromComputeNodeHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The file creation time. */ + ocpCreationTime?: Date; + /** Whether the object represents a directory. */ + ocpBatchFileIsdirectory?: boolean; + /** The URL of the file. */ + ocpBatchFileUrl?: string; + /** The file mode attribute in octal format. */ + ocpBatchFileMode?: string; + /** The content type of the file. */ + contentType?: string; + /** The length of the file. */ + contentLength?: number; } -/** - * Optional Parameters. - */ -export interface JobGetTaskCountsOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobGetTaskCountsOptions?: JobGetTaskCountsOptions; +/** Defines headers for File_listFromTask operation. */ +export interface FileListFromTaskHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface JobListNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobListNextOptions?: JobListNextOptions; +/** Defines headers for File_listFromComputeNode operation. */ +export interface FileListFromComputeNodeHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface JobListFromJobScheduleNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobListFromJobScheduleNextOptions?: JobListFromJobScheduleNextOptions; +/** Defines headers for File_listFromTaskNext operation. */ +export interface FileListFromTaskNextHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface JobListPreparationAndReleaseTaskStatusNextOptionalParams - extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobListPreparationAndReleaseTaskStatusNextOptions?: JobListPreparationAndReleaseTaskStatusNextOptions; +/** Defines headers for File_listFromComputeNodeNext operation. */ +export interface FileListFromComputeNodeNextHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface CertificateAddOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - certificateAddOptions?: CertificateAddOptions; +/** Defines headers for JobSchedule_exists operation. */ +export interface JobScheduleExistsHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface CertificateListOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - certificateListOptions?: CertificateListOptions; +/** Defines headers for JobSchedule_delete operation. */ +export interface JobScheduleDeleteHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: string; } -/** - * Optional Parameters. - */ -export interface CertificateCancelDeletionOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - certificateCancelDeletionOptions?: CertificateCancelDeletionOptions; +/** Defines headers for JobSchedule_get operation. */ +export interface JobScheduleGetHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface CertificateDeleteMethodOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - certificateDeleteMethodOptions?: CertificateDeleteMethodOptions; +/** Defines headers for JobSchedule_patch operation. */ +export interface JobSchedulePatchHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface CertificateGetOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - certificateGetOptions?: CertificateGetOptions; +/** Defines headers for JobSchedule_update operation. */ +export interface JobScheduleUpdateHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface CertificateListNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - certificateListNextOptions?: CertificateListNextOptions; +/** Defines headers for JobSchedule_disable operation. */ +export interface JobScheduleDisableHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface FileDeleteFromTaskOptionalParams extends msRest.RequestOptionsBase { - /** - * Whether to delete children of a directory. If the filePath parameter represents a directory - * instead of a file, you can set recursive to true to delete the directory and all of the files - * and subdirectories in it. If recursive is false then the directory must be empty or deletion - * will fail. - */ - recursive?: boolean; - /** - * Additional parameters for the operation - */ - fileDeleteFromTaskOptions?: FileDeleteFromTaskOptions; +/** Defines headers for JobSchedule_enable operation. */ +export interface JobScheduleEnableHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface FileGetFromTaskOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - fileGetFromTaskOptions?: FileGetFromTaskOptions; +/** Defines headers for JobSchedule_terminate operation. */ +export interface JobScheduleTerminateHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface FileGetPropertiesFromTaskOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - fileGetPropertiesFromTaskOptions?: FileGetPropertiesFromTaskOptions; +/** Defines headers for JobSchedule_add operation. */ +export interface JobScheduleAddHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface FileDeleteFromComputeNodeOptionalParams extends msRest.RequestOptionsBase { - /** - * Whether to delete children of a directory. If the filePath parameter represents a directory - * instead of a file, you can set recursive to true to delete the directory and all of the files - * and subdirectories in it. If recursive is false then the directory must be empty or deletion - * will fail. - */ - recursive?: boolean; - /** - * Additional parameters for the operation - */ - fileDeleteFromComputeNodeOptions?: FileDeleteFromComputeNodeOptions; +/** Defines headers for JobSchedule_list operation. */ +export interface JobScheduleListHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface FileGetFromComputeNodeOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - fileGetFromComputeNodeOptions?: FileGetFromComputeNodeOptions; +/** Defines headers for JobSchedule_listNext operation. */ +export interface JobScheduleListNextHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface FileGetPropertiesFromComputeNodeOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - fileGetPropertiesFromComputeNodeOptions?: FileGetPropertiesFromComputeNodeOptions; +/** Defines headers for Task_add operation. */ +export interface TaskAddHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface FileListFromTaskOptionalParams extends msRest.RequestOptionsBase { - /** - * Whether to list children of the Task directory. This parameter can be used in combination with - * the filter parameter to list specific type of files. - */ - recursive?: boolean; - /** - * Additional parameters for the operation - */ - fileListFromTaskOptions?: FileListFromTaskOptions; +/** Defines headers for Task_list operation. */ +export interface TaskListHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface FileListFromComputeNodeOptionalParams extends msRest.RequestOptionsBase { - /** - * Whether to list children of a directory. - */ - recursive?: boolean; - /** - * Additional parameters for the operation - */ - fileListFromComputeNodeOptions?: FileListFromComputeNodeOptions; +/** Defines headers for Task_addCollection operation. */ +export interface TaskAddCollectionHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: string; } -/** - * Optional Parameters. - */ -export interface FileListFromTaskNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Whether to list children of the Task directory. This parameter can be used in combination with - * the filter parameter to list specific type of files. - */ - recursive?: boolean; - /** - * Additional parameters for the operation - */ - fileListFromTaskNextOptions?: FileListFromTaskNextOptions; +/** Defines headers for Task_delete operation. */ +export interface TaskDeleteHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: string; } -/** - * Optional Parameters. - */ -export interface FileListFromComputeNodeNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Whether to list children of a directory. - */ - recursive?: boolean; - /** - * Additional parameters for the operation - */ - fileListFromComputeNodeNextOptions?: FileListFromComputeNodeNextOptions; +/** Defines headers for Task_get operation. */ +export interface TaskGetHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface JobScheduleExistsOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobScheduleExistsOptions?: JobScheduleExistsOptions; +/** Defines headers for Task_update operation. */ +export interface TaskUpdateHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface JobScheduleDeleteMethodOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobScheduleDeleteMethodOptions?: JobScheduleDeleteMethodOptions; +/** Defines headers for Task_listSubtasks operation. */ +export interface TaskListSubtasksHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface JobScheduleGetOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobScheduleGetOptions?: JobScheduleGetOptions; +/** Defines headers for Task_terminate operation. */ +export interface TaskTerminateHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface JobSchedulePatchOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobSchedulePatchOptions?: JobSchedulePatchOptions; +/** Defines headers for Task_reactivate operation. */ +export interface TaskReactivateHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface JobScheduleUpdateOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobScheduleUpdateOptions?: JobScheduleUpdateOptions; +/** Defines headers for Task_listNext operation. */ +export interface TaskListNextHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface JobScheduleDisableOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobScheduleDisableOptions?: JobScheduleDisableOptions; +/** Defines headers for ComputeNode_addUser operation. */ +export interface ComputeNodeAddUserHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface JobScheduleEnableOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobScheduleEnableOptions?: JobScheduleEnableOptions; +/** Defines headers for ComputeNode_deleteUser operation. */ +export interface ComputeNodeDeleteUserHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: string; } -/** - * Optional Parameters. - */ -export interface JobScheduleTerminateOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobScheduleTerminateOptions?: JobScheduleTerminateOptions; +/** Defines headers for ComputeNode_updateUser operation. */ +export interface ComputeNodeUpdateUserHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface JobScheduleAddOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobScheduleAddOptions?: JobScheduleAddOptions; +/** Defines headers for ComputeNode_get operation. */ +export interface ComputeNodeGetHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface JobScheduleListOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobScheduleListOptions?: JobScheduleListOptions; +/** Defines headers for ComputeNode_reboot operation. */ +export interface ComputeNodeRebootHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface JobScheduleListNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - jobScheduleListNextOptions?: JobScheduleListNextOptions; +/** Defines headers for ComputeNode_reimage operation. */ +export interface ComputeNodeReimageHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface TaskAddOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - taskAddOptions?: TaskAddOptions; +/** Defines headers for ComputeNode_disableScheduling operation. */ +export interface ComputeNodeDisableSchedulingHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface TaskListOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - taskListOptions?: TaskListOptions; +/** Defines headers for ComputeNode_enableScheduling operation. */ +export interface ComputeNodeEnableSchedulingHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; + /** The OData ID of the resource to which the request applied. */ + dataServiceId?: string; } -/** - * Optional Parameters. - */ -export interface TaskAddCollectionOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - taskAddCollectionOptions?: TaskAddCollectionOptions; +/** Defines headers for ComputeNode_getRemoteLoginSettings operation. */ +export interface ComputeNodeGetRemoteLoginSettingsHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface TaskDeleteMethodOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - taskDeleteMethodOptions?: TaskDeleteMethodOptions; +/** Defines headers for ComputeNode_getRemoteDesktop operation. */ +export interface ComputeNodeGetRemoteDesktopHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface TaskGetOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - taskGetOptions?: TaskGetOptions; +/** Defines headers for ComputeNode_uploadBatchServiceLogs operation. */ +export interface ComputeNodeUploadBatchServiceLogsHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: string; } -/** - * Optional Parameters. - */ -export interface TaskUpdateOptionalParams extends msRest.RequestOptionsBase { - /** - * Constraints that apply to this Task. If omitted, the Task is given the default constraints. - * For multi-instance Tasks, updating the retention time applies only to the primary Task and not - * subtasks. - */ - constraints?: TaskConstraints; - /** - * Additional parameters for the operation - */ - taskUpdateOptions?: TaskUpdateOptions; +/** Defines headers for ComputeNode_list operation. */ +export interface ComputeNodeListHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface TaskListSubtasksOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - taskListSubtasksOptions?: TaskListSubtasksOptions; +/** Defines headers for ComputeNode_listNext operation. */ +export interface ComputeNodeListNextHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface TaskTerminateOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - taskTerminateOptions?: TaskTerminateOptions; +/** Defines headers for ComputeNodeExtension_get operation. */ +export interface ComputeNodeExtensionGetHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface TaskReactivateOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - taskReactivateOptions?: TaskReactivateOptions; +/** Defines headers for ComputeNodeExtension_list operation. */ +export interface ComputeNodeExtensionListHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface TaskListNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - taskListNextOptions?: TaskListNextOptions; +/** Defines headers for ComputeNodeExtension_listNext operation. */ +export interface ComputeNodeExtensionListNextHeaders { + /** 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. */ + clientRequestId?: 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. */ + requestId?: 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. */ + lastModified?: Date; } -/** - * Optional Parameters. - */ -export interface ComputeNodeAddUserOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - computeNodeAddUserOptions?: ComputeNodeAddUserOptions; +/** Parameter group */ +export interface ApplicationListOptions { + /** The maximum number of items to return in the response. A maximum of 1000 applications can be returned. */ + maxResults?: number; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Optional Parameters. - */ -export interface ComputeNodeDeleteUserOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - computeNodeDeleteUserOptions?: ComputeNodeDeleteUserOptions; +/** Parameter group */ +export interface ApplicationGetOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Optional Parameters. - */ -export interface ComputeNodeUpdateUserOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - computeNodeUpdateUserOptions?: ComputeNodeUpdateUserOptions; +/** Parameter group */ +export interface PoolListUsageMetricsOptions { + /** The earliest time from which to include metrics. This must be at least two and a half hours before the current time. If not specified this defaults to the start time of the last aggregation interval currently available. */ + startTime?: Date; + /** The latest time from which to include metrics. This must be at least two hours before the current time. If not specified this defaults to the end time of the last aggregation interval currently available. */ + endTime?: Date; + /** 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-account-usage-metrics. */ + filter?: string; + /** The maximum number of items to return in the response. A maximum of 1000 results will be returned. */ + maxResults?: number; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Optional Parameters. - */ -export interface ComputeNodeGetOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - computeNodeGetOptions?: ComputeNodeGetOptions; +/** Parameter group */ +export interface PoolGetAllLifetimeStatisticsOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Optional Parameters. - */ -export interface ComputeNodeRebootOptionalParams extends msRest.RequestOptionsBase { - /** - * When to reboot the Compute Node and what to do with currently running Tasks. The default value - * is requeue. Possible values include: 'requeue', 'terminate', 'taskCompletion', 'retainedData' - */ - nodeRebootOption?: ComputeNodeRebootOption; - /** - * Additional parameters for the operation - */ - computeNodeRebootOptions?: ComputeNodeRebootOptions; +/** Parameter group */ +export interface PoolAddOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Optional Parameters. - */ -export interface ComputeNodeReimageOptionalParams extends msRest.RequestOptionsBase { - /** - * When to reimage the Compute Node and what to do with currently running Tasks. The default - * value is requeue. Possible values include: 'requeue', 'terminate', 'taskCompletion', - * 'retainedData' - */ - nodeReimageOption?: ComputeNodeReimageOption; - /** - * Additional parameters for the operation - */ - computeNodeReimageOptions?: ComputeNodeReimageOptions; +/** Parameter group */ +export interface PoolListOptions { + /** 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-pools. */ + filter?: string; + /** An OData $select clause. */ + select?: string; + /** An OData $expand clause. */ + expand?: string; + /** The maximum number of items to return in the response. A maximum of 1000 Pools can be returned. */ + maxResults?: number; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Optional Parameters. - */ -export interface ComputeNodeDisableSchedulingOptionalParams extends msRest.RequestOptionsBase { - /** - * What to do with currently running Tasks when disabling Task scheduling on the Compute Node. - * The default value is requeue. Possible values include: 'requeue', 'terminate', - * 'taskCompletion' - */ - nodeDisableSchedulingOption?: DisableComputeNodeSchedulingOption; - /** - * Additional parameters for the operation - */ - computeNodeDisableSchedulingOptions?: ComputeNodeDisableSchedulingOptions; +/** Parameter group */ +export interface PoolDeleteOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Optional Parameters. - */ -export interface ComputeNodeEnableSchedulingOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - computeNodeEnableSchedulingOptions?: ComputeNodeEnableSchedulingOptions; +/** Parameter group */ +export interface PoolExistsOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Optional Parameters. - */ -export interface ComputeNodeGetRemoteLoginSettingsOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - computeNodeGetRemoteLoginSettingsOptions?: ComputeNodeGetRemoteLoginSettingsOptions; +/** Parameter group */ +export interface PoolGetOptions { + /** An OData $select clause. */ + select?: string; + /** An OData $expand clause. */ + expand?: string; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Optional Parameters. - */ -export interface ComputeNodeGetRemoteDesktopOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - computeNodeGetRemoteDesktopOptions?: ComputeNodeGetRemoteDesktopOptions; +/** Parameter group */ +export interface PoolPatchOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Optional Parameters. - */ -export interface ComputeNodeUploadBatchServiceLogsOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - computeNodeUploadBatchServiceLogsOptions?: ComputeNodeUploadBatchServiceLogsOptions; +/** Parameter group */ +export interface PoolDisableAutoScaleOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Optional Parameters. - */ -export interface ComputeNodeListOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - computeNodeListOptions?: ComputeNodeListOptions; +/** Parameter group */ +export interface PoolEnableAutoScaleOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Optional Parameters. - */ -export interface ComputeNodeListNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - computeNodeListNextOptions?: ComputeNodeListNextOptions; +/** Parameter group */ +export interface PoolEvaluateAutoScaleOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Optional Parameters. - */ -export interface ComputeNodeExtensionGetOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - computeNodeExtensionGetOptions?: ComputeNodeExtensionGetOptions; +/** Parameter group */ +export interface PoolResizeOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Optional Parameters. - */ -export interface ComputeNodeExtensionListOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - computeNodeExtensionListOptions?: ComputeNodeExtensionListOptions; +/** Parameter group */ +export interface PoolStopResizeOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Optional Parameters. - */ -export interface ComputeNodeExtensionListNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Additional parameters for the operation - */ - computeNodeExtensionListNextOptions?: ComputeNodeExtensionListNextOptions; +/** Parameter group */ +export interface PoolUpdatePropertiesOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for List operation. - */ -export interface ApplicationListHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Parameter group */ +export interface PoolRemoveNodesOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for Get operation. - */ -export interface ApplicationGetHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Parameter group */ +export interface AccountListSupportedImagesOptions { + /** 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-support-images. */ + filter?: string; + /** The maximum number of items to return in the response. A maximum of 1000 results will be returned. */ + maxResults?: number; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for ListUsageMetrics operation. - */ -export interface PoolListUsageMetricsHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Parameter group */ +export interface AccountListPoolNodeCountsOptions { + /** 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. */ + filter?: string; + /** The maximum number of items to return in the response. */ + maxResults?: number; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for ListSupportedImages operation. - */ -export interface AccountListSupportedImagesHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Parameter group */ +export interface JobGetAllLifetimeStatisticsOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for ListPoolNodeCounts operation. - */ -export interface AccountListPoolNodeCountsHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: string; +/** Parameter group */ +export interface JobDeleteOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for GetAllLifetimeStatistics operation. - */ -export interface PoolGetAllLifetimeStatisticsHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Parameter group */ +export interface JobGetOptions { + /** An OData $select clause. */ + select?: string; + /** An OData $expand clause. */ + expand?: string; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for GetAllLifetimeStatistics operation. - */ -export interface JobGetAllLifetimeStatisticsHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Parameter group */ +export interface JobPatchOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for Add operation. - */ -export interface CertificateAddHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface JobUpdateOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for List operation. - */ -export interface CertificateListHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Parameter group */ +export interface JobDisableOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for CancelDeletion operation. - */ -export interface CertificateCancelDeletionHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface JobEnableOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for Delete operation. - */ -export interface CertificateDeleteHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Parameter group */ +export interface JobTerminateOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for Get operation. - */ -export interface CertificateGetHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Parameter group */ +export interface JobAddOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for DeleteFromTask operation. - */ -export interface FileDeleteFromTaskHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: string; +/** Parameter group */ +export interface JobListOptions { + /** 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-jobs. */ + filter?: string; + /** An OData $select clause. */ + select?: string; + /** An OData $expand clause. */ + expand?: string; + /** The maximum number of items to return in the response. A maximum of 1000 Jobs can be returned. */ + maxResults?: number; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for GetFromTask operation. - */ -export interface FileGetFromTaskHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The file creation time. - */ - ocpCreationTime: Date; - /** - * Whether the object represents a directory. - */ - ocpBatchFileIsdirectory: boolean; - /** - * The URL of the file. - */ - ocpBatchFileUrl: string; - /** - * The file mode attribute in octal format. - */ - ocpBatchFileMode: string; - /** - * The content type of the file. - */ - contentType: string; - /** - * The length of the file. - */ - contentLength: number; +/** Parameter group */ +export interface JobListFromJobScheduleOptions { + /** 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-jobs-in-a-job-schedule. */ + filter?: string; + /** An OData $select clause. */ + select?: string; + /** An OData $expand clause. */ + expand?: string; + /** The maximum number of items to return in the response. A maximum of 1000 Jobs can be returned. */ + maxResults?: number; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for GetPropertiesFromTask operation. - */ -export interface FileGetPropertiesFromTaskHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The file creation time. - */ - ocpCreationTime: Date; - /** - * Whether the object represents a directory. - */ - ocpBatchFileIsdirectory: boolean; - /** - * The URL of the file. - */ - ocpBatchFileUrl: string; - /** - * The file mode attribute in octal format. - */ - ocpBatchFileMode: string; - /** - * The content type of the file. - */ - contentType: string; - /** - * The length of the file. - */ - contentLength: number; +/** Parameter group */ +export interface JobListPreparationAndReleaseTaskStatusOptions { + /** 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-job-preparation-and-release-status. */ + filter?: string; + /** An OData $select clause. */ + select?: string; + /** The maximum number of items to return in the response. A maximum of 1000 Tasks can be returned. */ + maxResults?: number; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for DeleteFromComputeNode operation. - */ -export interface FileDeleteFromComputeNodeHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: string; +/** Parameter group */ +export interface JobGetTaskCountsOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for GetFromComputeNode operation. - */ -export interface FileGetFromComputeNodeHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The file creation time. - */ - ocpCreationTime: Date; - /** - * Whether the object represents a directory. - */ - ocpBatchFileIsdirectory: boolean; - /** - * The URL of the file. - */ - ocpBatchFileUrl: string; - /** - * The file mode attribute in octal format. - */ - ocpBatchFileMode: string; - /** - * The content type of the file. - */ - contentType: string; - /** - * The length of the file. - */ - contentLength: number; +/** Parameter group */ +export interface CertificateAddOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for GetPropertiesFromComputeNode operation. - */ -export interface FileGetPropertiesFromComputeNodeHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The file creation time. - */ - ocpCreationTime: Date; - /** - * Whether the object represents a directory. - */ - ocpBatchFileIsdirectory: boolean; - /** - * The URL of the file. - */ - ocpBatchFileUrl: string; - /** - * The file mode attribute in octal format. - */ - ocpBatchFileMode: string; - /** - * The content type of the file. - */ - contentType: string; - /** - * The length of the file. - */ - contentLength: number; +/** Parameter group */ +export interface CertificateListOptions { + /** 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; + /** The maximum number of items to return in the response. A maximum of 1000 Certificates can be returned. */ + maxResults?: number; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for ListFromTask operation. - */ -export interface FileListFromTaskHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Parameter group */ +export interface CertificateCancelDeletionOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for ListFromComputeNode operation. - */ -export interface FileListFromComputeNodeHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Parameter group */ +export interface CertificateDeleteOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for Exists operation. - */ -export interface JobScheduleExistsHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Parameter group */ +export interface CertificateGetOptions { + /** An OData $select clause. */ + select?: string; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for Delete operation. - */ -export interface JobScheduleDeleteHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: string; +/** Parameter group */ +export interface FileDeleteFromTaskOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for Get operation. - */ -export interface JobScheduleGetHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - eTagHeader: string; - /** - * The time at which the resource was last modified. - */ - lastModifiedHeader: Date; +/** Parameter group */ +export interface FileGetFromTaskOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** The byte range to be retrieved. The default is to retrieve the entire file. The format is bytes=startRange-endRange. */ + ocpRange?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for Patch operation. - */ -export interface JobSchedulePatchHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface FileGetPropertiesFromTaskOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for Update operation. - */ -export interface JobScheduleUpdateHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface FileDeleteFromComputeNodeOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for Disable operation. - */ -export interface JobScheduleDisableHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface FileGetFromComputeNodeOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** The byte range to be retrieved. The default is to retrieve the entire file. The format is bytes=startRange-endRange. */ + ocpRange?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; +} + +/** Parameter group */ +export interface FileGetPropertiesFromComputeNodeOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; +} + +/** Parameter group */ +export interface FileListFromTaskOptions { + /** 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-task-files. */ + filter?: string; + /** The maximum number of items to return in the response. A maximum of 1000 files can be returned. */ + maxResults?: number; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for Enable operation. - */ -export interface JobScheduleEnableHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface FileListFromComputeNodeOptions { + /** 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-compute-node-files. */ + filter?: string; + /** The maximum number of items to return in the response. A maximum of 1000 files can be returned. */ + maxResults?: number; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for Terminate operation. - */ -export interface JobScheduleTerminateHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface JobScheduleExistsOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for Add operation. - */ -export interface JobScheduleAddHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface JobScheduleDeleteOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for List operation. - */ -export interface JobScheduleListHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Parameter group */ +export interface JobScheduleGetOptions { + /** An OData $select clause. */ + select?: string; + /** An OData $expand clause. */ + expand?: string; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for Delete operation. - */ -export interface JobDeleteHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: string; +/** Parameter group */ +export interface JobSchedulePatchOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for Get operation. - */ -export interface JobGetHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - eTagHeader: string; - /** - * The time at which the resource was last modified. - */ - lastModifiedHeader: Date; +/** Parameter group */ +export interface JobScheduleUpdateOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for Patch operation. - */ -export interface JobPatchHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface JobScheduleDisableOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for Update operation. - */ -export interface JobUpdateHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface JobScheduleEnableOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for Disable operation. - */ -export interface JobDisableHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface JobScheduleTerminateOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for Enable operation. - */ -export interface JobEnableHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface JobScheduleAddOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for Terminate operation. - */ -export interface JobTerminateHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface JobScheduleListOptions { + /** 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-job-schedules. */ + filter?: string; + /** An OData $select clause. */ + select?: string; + /** An OData $expand clause. */ + expand?: string; + /** The maximum number of items to return in the response. A maximum of 1000 Job Schedules can be returned. */ + maxResults?: number; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for Add operation. - */ -export interface JobAddHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface TaskAddOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; +} + +/** Parameter group */ +export interface TaskListOptions { + /** 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-tasks. */ + filter?: string; + /** An OData $select clause. */ + select?: string; + /** An OData $expand clause. */ + expand?: string; + /** The maximum number of items to return in the response. A maximum of 1000 Tasks can be returned. */ + maxResults?: number; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for List operation. - */ -export interface JobListHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Parameter group */ +export interface TaskAddCollectionOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for ListFromJobSchedule operation. - */ -export interface JobListFromJobScheduleHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Parameter group */ +export interface TaskDeleteOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for ListPreparationAndReleaseTaskStatus operation. - */ -export interface JobListPreparationAndReleaseTaskStatusHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Parameter group */ +export interface TaskGetOptions { + /** An OData $select clause. */ + select?: string; + /** An OData $expand clause. */ + expand?: string; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for GetTaskCounts operation. - */ -export interface JobGetTaskCountsHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: string; +/** Parameter group */ +export interface TaskUpdateOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for Add operation. - */ -export interface PoolAddHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface TaskListSubtasksOptions { + /** An OData $select clause. */ + select?: string; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for List operation. - */ -export interface PoolListHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Parameter group */ +export interface TaskTerminateOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for Delete operation. - */ -export interface PoolDeleteHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: string; +/** Parameter group */ +export interface TaskReactivateOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client. */ + ifMatch?: string; + /** An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client. */ + ifNoneMatch?: string; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time. */ + ifModifiedSince?: Date; + /** A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. */ + ifUnmodifiedSince?: Date; } -/** - * Defines headers for Exists operation. - */ -export interface PoolExistsHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Parameter group */ +export interface ComputeNodeAddUserOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for Get operation. - */ -export interface PoolGetHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - eTagHeader: string; - /** - * The time at which the resource was last modified. - */ - lastModifiedHeader: Date; +/** Parameter group */ +export interface ComputeNodeDeleteUserOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for Patch operation. - */ -export interface PoolPatchHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface ComputeNodeUpdateUserOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for DisableAutoScale operation. - */ -export interface PoolDisableAutoScaleHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface ComputeNodeGetOptions { + /** An OData $select clause. */ + select?: string; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for EnableAutoScale operation. - */ -export interface PoolEnableAutoScaleHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface ComputeNodeRebootOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for EvaluateAutoScale operation. - */ -export interface PoolEvaluateAutoScaleHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface ComputeNodeReimageOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for Resize operation. - */ -export interface PoolResizeHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface ComputeNodeDisableSchedulingOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; +} + +/** Parameter group */ +export interface ComputeNodeEnableSchedulingOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for StopResize operation. - */ -export interface PoolStopResizeHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface ComputeNodeGetRemoteLoginSettingsOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for UpdateProperties operation. - */ -export interface PoolUpdatePropertiesHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface ComputeNodeGetRemoteDesktopOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for RemoveNodes operation. - */ -export interface PoolRemoveNodesHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface ComputeNodeUploadBatchServiceLogsOptions { + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for Add operation. - */ -export interface TaskAddHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Parameter group */ +export interface ComputeNodeListOptions { + /** 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-nodes-in-a-pool. */ + filter?: string; + /** An OData $select clause. */ + select?: string; + /** The maximum number of items to return in the response. A maximum of 1000 Compute Nodes can be returned. */ + maxResults?: number; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for List operation. - */ -export interface TaskListHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Parameter group */ +export interface ComputeNodeExtensionGetOptions { + /** An OData $select clause. */ + select?: string; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for AddCollection operation. - */ -export interface TaskAddCollectionHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: string; +/** Parameter group */ +export interface ComputeNodeExtensionListOptions { + /** An OData $select clause. */ + select?: string; + /** The maximum number of items to return in the response. A maximum of 1000 Compute Nodes can be returned. */ + maxResults?: number; + /** The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. */ + timeout?: number; + /** 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. */ + clientRequestId?: string; + /** Whether the server should return the client-request-id in the response. */ + returnClientRequestId?: 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. */ + ocpDate?: Date; } -/** - * Defines headers for Delete operation. - */ -export interface TaskDeleteHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: string; +/** Defines values for OSType. */ +export type OSType = "linux" | "windows"; +/** Defines values for VerificationType. */ +export type VerificationType = "verified" | "unverified"; +/** Defines values for CertificateFormat. */ +export type CertificateFormat = "pfx" | "cer"; +/** Defines values for CertificateState. */ +export type CertificateState = "active" | "deleting" | "deletefailed"; +/** Defines values for JobScheduleState. */ +export type JobScheduleState = + | "active" + | "completed" + | "disabled" + | "terminating" + | "deleting"; +/** Defines values for OnAllTasksComplete. */ +export type OnAllTasksComplete = "noaction" | "terminatejob"; +/** Defines values for OnTaskFailure. */ +export type OnTaskFailure = "noaction" | "performexitoptionsjobaction"; +/** Defines values for ContainerWorkingDirectory. */ +export type ContainerWorkingDirectory = + | "taskWorkingDirectory" + | "containerImageDefault"; +/** Defines values for OutputFileUploadCondition. */ +export type OutputFileUploadCondition = + | "tasksuccess" + | "taskfailure" + | "taskcompletion"; +/** Defines values for AutoUserScope. */ +export type AutoUserScope = "task" | "pool"; +/** Defines values for ElevationLevel. */ +export type ElevationLevel = "nonadmin" | "admin"; +/** Defines values for PoolLifetimeOption. */ +export type PoolLifetimeOption = "jobschedule" | "job"; +/** Defines values for CachingType. */ +export type CachingType = "none" | "readonly" | "readwrite"; +/** Defines values for StorageAccountType. */ +export type StorageAccountType = "standard_lrs" | "premium_lrs"; +/** Defines values for DiskEncryptionTarget. */ +export type DiskEncryptionTarget = "osdisk" | "temporarydisk"; +/** Defines values for NodePlacementPolicyType. */ +export type NodePlacementPolicyType = "regional" | "zonal"; +/** Defines values for ComputeNodeFillType. */ +export type ComputeNodeFillType = "spread" | "pack"; +/** Defines values for DynamicVNetAssignmentScope. */ +export type DynamicVNetAssignmentScope = "none" | "job"; +/** Defines values for InboundEndpointProtocol. */ +export type InboundEndpointProtocol = "tcp" | "udp"; +/** Defines values for NetworkSecurityGroupRuleAccess. */ +export type NetworkSecurityGroupRuleAccess = "allow" | "deny"; +/** Defines values for IPAddressProvisioningType. */ +export type IPAddressProvisioningType = + | "batchmanaged" + | "usermanaged" + | "nopublicipaddresses"; +/** Defines values for CertificateStoreLocation. */ +export type CertificateStoreLocation = "currentuser" | "localmachine"; +/** Defines values for CertificateVisibility. */ +export type CertificateVisibility = "starttask" | "task" | "remoteuser"; +/** Defines values for LoginMode. */ +export type LoginMode = "batch" | "interactive"; +/** Defines values for JobState. */ +export type JobState = + | "active" + | "disabling" + | "disabled" + | "enabling" + | "terminating" + | "completed" + | "deleting"; +/** Defines values for ErrorCategory. */ +export type ErrorCategory = "usererror" | "servererror"; +/** Defines values for DisableJobOption. */ +export type DisableJobOption = "requeue" | "terminate" | "wait"; +/** Defines values for JobPreparationTaskState. */ +export type JobPreparationTaskState = "running" | "completed"; +/** Defines values for TaskExecutionResult. */ +export type TaskExecutionResult = "success" | "failure"; +/** Defines values for JobReleaseTaskState. */ +export type JobReleaseTaskState = "running" | "completed"; +/** Defines values for PoolState. */ +export type PoolState = "active" | "deleting"; +/** Defines values for AllocationState. */ +export type AllocationState = "steady" | "resizing" | "stopping"; +/** Defines values for PoolIdentityType. */ +export type PoolIdentityType = "UserAssigned" | "None"; +/** Defines values for ComputeNodeDeallocationOption. */ +export type ComputeNodeDeallocationOption = + | "requeue" + | "terminate" + | "taskcompletion" + | "retaineddata"; +/** Defines values for JobAction. */ +export type JobAction = "none" | "disable" | "terminate"; +/** Defines values for DependencyAction. */ +export type DependencyAction = "satisfy" | "block"; +/** Defines values for TaskState. */ +export type TaskState = "active" | "preparing" | "running" | "completed"; +/** Defines values for TaskAddStatus. */ +export type TaskAddStatus = "success" | "clienterror" | "servererror"; +/** Defines values for SubtaskState. */ +export type SubtaskState = "preparing" | "running" | "completed"; +/** Defines values for ComputeNodeState. */ +export type ComputeNodeState = + | "idle" + | "rebooting" + | "reimaging" + | "running" + | "unusable" + | "creating" + | "starting" + | "waitingforstarttask" + | "starttaskfailed" + | "unknown" + | "leavingpool" + | "offline" + | "preempted"; +/** Defines values for SchedulingState. */ +export type SchedulingState = "enabled" | "disabled"; +/** Defines values for StartTaskState. */ +export type StartTaskState = "running" | "completed"; +/** Defines values for ComputeNodeRebootOption. */ +export type ComputeNodeRebootOption = + | "requeue" + | "terminate" + | "taskcompletion" + | "retaineddata"; +/** Defines values for ComputeNodeReimageOption. */ +export type ComputeNodeReimageOption = + | "requeue" + | "terminate" + | "taskcompletion" + | "retaineddata"; +/** Defines values for DisableComputeNodeSchedulingOption. */ +export type DisableComputeNodeSchedulingOption = + | "requeue" + | "terminate" + | "taskcompletion"; +/** Defines values for StatusLevelTypes. */ +export type StatusLevelTypes = "Error" | "Info" | "Warning"; + +/** Optional parameters. */ +export interface ApplicationListOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + applicationListOptions?: ApplicationListOptions; } -/** - * Defines headers for Get operation. - */ -export interface TaskGetHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - eTagHeader: string; - /** - * The time at which the resource was last modified. - */ - lastModifiedHeader: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Contains response data for the list operation. */ +export type ApplicationListResponse = ApplicationListHeaders & + ApplicationListResult; + +/** Optional parameters. */ +export interface ApplicationGetOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + applicationGetOptions?: ApplicationGetOptions; } -/** - * Defines headers for Update operation. - */ -export interface TaskUpdateHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Contains response data for the get operation. */ +export type ApplicationGetResponse = ApplicationGetHeaders & ApplicationSummary; + +/** Optional parameters. */ +export interface ApplicationListNextOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + applicationListOptions?: ApplicationListOptions; } -/** - * Defines headers for ListSubtasks operation. - */ -export interface TaskListSubtasksHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Contains response data for the listNext operation. */ +export type ApplicationListNextResponse = ApplicationListNextHeaders & + ApplicationListResult; + +/** Optional parameters. */ +export interface PoolListUsageMetricsOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + poolListUsageMetricsOptions?: PoolListUsageMetricsOptions; } -/** - * Defines headers for Terminate operation. - */ -export interface TaskTerminateHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Contains response data for the listUsageMetrics operation. */ +export type PoolListUsageMetricsResponse = PoolListUsageMetricsHeaders & + PoolListUsageMetricsResult; + +/** Optional parameters. */ +export interface PoolGetAllLifetimeStatisticsOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + poolGetAllLifetimeStatisticsOptions?: PoolGetAllLifetimeStatisticsOptions; +} + +/** Contains response data for the getAllLifetimeStatistics operation. */ +export type PoolGetAllLifetimeStatisticsResponse = PoolGetAllLifetimeStatisticsHeaders & + PoolStatistics; + +/** Optional parameters. */ +export interface PoolAddOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + poolAddOptions?: PoolAddOptions; } -/** - * Defines headers for Reactivate operation. - */ -export interface TaskReactivateHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Contains response data for the add operation. */ +export type PoolAddResponse = PoolAddHeaders; + +/** Optional parameters. */ +export interface PoolListOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + poolListOptions?: PoolListOptions; } -/** - * Defines headers for AddUser operation. - */ -export interface ComputeNodeAddUserHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Contains response data for the list operation. */ +export type PoolListResponse = PoolListHeaders & CloudPoolListResult; + +/** Optional parameters. */ +export interface PoolDeleteOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + poolDeleteOptions?: PoolDeleteOptions; } -/** - * Defines headers for DeleteUser operation. - */ -export interface ComputeNodeDeleteUserHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: string; +/** Contains response data for the delete operation. */ +export type PoolDeleteResponse = PoolDeleteHeaders; + +/** Optional parameters. */ +export interface PoolExistsOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + poolExistsOptions?: PoolExistsOptions; } -/** - * Defines headers for UpdateUser operation. - */ -export interface ComputeNodeUpdateUserHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Contains response data for the exists operation. */ +export type PoolExistsResponse = PoolExistsHeaders; + +/** Optional parameters. */ +export interface PoolGetOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + poolGetOptions?: PoolGetOptions; } -/** - * Defines headers for Get operation. - */ -export interface ComputeNodeGetHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Contains response data for the get operation. */ +export type PoolGetResponse = PoolGetHeaders & CloudPool; + +/** Optional parameters. */ +export interface PoolPatchOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + poolPatchOptions?: PoolPatchOptions; } -/** - * Defines headers for Reboot operation. - */ -export interface ComputeNodeRebootHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Contains response data for the patch operation. */ +export type PoolPatchResponse = PoolPatchHeaders; + +/** Optional parameters. */ +export interface PoolDisableAutoScaleOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + poolDisableAutoScaleOptions?: PoolDisableAutoScaleOptions; } -/** - * Defines headers for Reimage operation. - */ -export interface ComputeNodeReimageHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Contains response data for the disableAutoScale operation. */ +export type PoolDisableAutoScaleResponse = PoolDisableAutoScaleHeaders; + +/** Optional parameters. */ +export interface PoolEnableAutoScaleOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + poolEnableAutoScaleOptions?: PoolEnableAutoScaleOptions; } -/** - * Defines headers for DisableScheduling operation. - */ -export interface ComputeNodeDisableSchedulingHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Contains response data for the enableAutoScale operation. */ +export type PoolEnableAutoScaleResponse = PoolEnableAutoScaleHeaders; + +/** Optional parameters. */ +export interface PoolEvaluateAutoScaleOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + poolEvaluateAutoScaleOptions?: PoolEvaluateAutoScaleOptions; } -/** - * Defines headers for EnableScheduling operation. - */ -export interface ComputeNodeEnableSchedulingHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; - /** - * The OData ID of the resource to which the request applied. - */ - dataServiceId: string; +/** Contains response data for the evaluateAutoScale operation. */ +export type PoolEvaluateAutoScaleResponse = PoolEvaluateAutoScaleHeaders & + AutoScaleRun; + +/** Optional parameters. */ +export interface PoolResizeOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + poolResizeOptions?: PoolResizeOptions; } -/** - * Defines headers for GetRemoteLoginSettings operation. - */ -export interface ComputeNodeGetRemoteLoginSettingsHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Contains response data for the resize operation. */ +export type PoolResizeResponse = PoolResizeHeaders; + +/** Optional parameters. */ +export interface PoolStopResizeOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + poolStopResizeOptions?: PoolStopResizeOptions; } -/** - * Defines headers for GetRemoteDesktop operation. - */ -export interface ComputeNodeGetRemoteDesktopHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Contains response data for the stopResize operation. */ +export type PoolStopResizeResponse = PoolStopResizeHeaders; + +/** Optional parameters. */ +export interface PoolUpdatePropertiesOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + poolUpdatePropertiesOptions?: PoolUpdatePropertiesOptions; } -/** - * Defines headers for UploadBatchServiceLogs operation. - */ -export interface ComputeNodeUploadBatchServiceLogsHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: string; +/** Contains response data for the updateProperties operation. */ +export type PoolUpdatePropertiesResponse = PoolUpdatePropertiesHeaders; + +/** Optional parameters. */ +export interface PoolRemoveNodesOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + poolRemoveNodesOptions?: PoolRemoveNodesOptions; } -/** - * Defines headers for List operation. - */ -export interface ComputeNodeListHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Contains response data for the removeNodes operation. */ +export type PoolRemoveNodesResponse = PoolRemoveNodesHeaders; + +/** Optional parameters. */ +export interface PoolListUsageMetricsNextOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + poolListUsageMetricsOptions?: PoolListUsageMetricsOptions; } -/** - * Defines headers for Get operation. - */ -export interface ComputeNodeExtensionGetHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Contains response data for the listUsageMetricsNext operation. */ +export type PoolListUsageMetricsNextResponse = PoolListUsageMetricsNextHeaders & + PoolListUsageMetricsResult; + +/** Optional parameters. */ +export interface PoolListNextOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + poolListOptions?: PoolListOptions; } -/** - * Defines headers for List operation. - */ -export interface ComputeNodeExtensionListHeaders { - /** - * 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. - */ - clientRequestId: 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. - */ - requestId: 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. - */ - lastModified: Date; +/** Contains response data for the listNext operation. */ +export type PoolListNextResponse = PoolListNextHeaders & CloudPoolListResult; + +/** Optional parameters. */ +export interface AccountListSupportedImagesOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + accountListSupportedImagesOptions?: AccountListSupportedImagesOptions; } -/** - * @interface - * An interface representing the ApplicationListResult. - * @summary The result of listing the applications available in an Account. - * @extends Array - */ -export interface ApplicationListResult extends Array { - odatanextLink?: string; +/** Contains response data for the listSupportedImages operation. */ +export type AccountListSupportedImagesResponse = AccountListSupportedImagesHeaders & + AccountListSupportedImagesResult; + +/** Optional parameters. */ +export interface AccountListPoolNodeCountsOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + accountListPoolNodeCountsOptions?: AccountListPoolNodeCountsOptions; } -/** - * @interface - * An interface representing the PoolListUsageMetricsResult. - * @summary The result of a listing the usage metrics for an Account. - * @extends Array - */ -export interface PoolListUsageMetricsResult extends Array { - odatanextLink?: string; +/** Contains response data for the listPoolNodeCounts operation. */ +export type AccountListPoolNodeCountsResponse = AccountListPoolNodeCountsHeaders & + PoolNodeCountsListResult; + +/** Optional parameters. */ +export interface AccountListSupportedImagesNextOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + accountListSupportedImagesOptions?: AccountListSupportedImagesOptions; } -/** - * @interface - * An interface representing the CloudPoolListResult. - * @summary The result of listing the Pools in an Account. - * @extends Array - */ -export interface CloudPoolListResult extends Array { - odatanextLink?: string; +/** Contains response data for the listSupportedImagesNext operation. */ +export type AccountListSupportedImagesNextResponse = AccountListSupportedImagesNextHeaders & + AccountListSupportedImagesResult; + +/** Optional parameters. */ +export interface AccountListPoolNodeCountsNextOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + accountListPoolNodeCountsOptions?: AccountListPoolNodeCountsOptions; } -/** - * @interface - * An interface representing the AccountListSupportedImagesResult. - * @summary The result of listing the supported Virtual Machine Images. - * @extends Array - */ -export interface AccountListSupportedImagesResult extends Array { - odatanextLink?: string; +/** Contains response data for the listPoolNodeCountsNext operation. */ +export type AccountListPoolNodeCountsNextResponse = AccountListPoolNodeCountsNextHeaders & + PoolNodeCountsListResult; + +/** Optional parameters. */ +export interface JobGetAllLifetimeStatisticsOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + jobGetAllLifetimeStatisticsOptions?: JobGetAllLifetimeStatisticsOptions; } -/** - * @interface - * An interface representing the PoolNodeCountsListResult. - * @summary The result of listing the Compute Node counts in the Account. - * @extends Array - */ -export interface PoolNodeCountsListResult extends Array { - odatanextLink?: string; +/** Contains response data for the getAllLifetimeStatistics operation. */ +export type JobGetAllLifetimeStatisticsResponse = JobGetAllLifetimeStatisticsHeaders & + JobStatistics; + +/** Optional parameters. */ +export interface JobDeleteOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + jobDeleteOptions?: JobDeleteOptions; } -/** - * @interface - * An interface representing the CloudJobListResult. - * @summary The result of listing the Jobs in an Account. - * @extends Array - */ -export interface CloudJobListResult extends Array { - odatanextLink?: string; +/** Contains response data for the delete operation. */ +export type JobDeleteResponse = JobDeleteHeaders; + +/** Optional parameters. */ +export interface JobGetOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + jobGetOptions?: JobGetOptions; } -/** - * @interface - * An interface representing the CloudJobListPreparationAndReleaseTaskStatusResult. - * @summary The result of listing the status of the Job Preparation and Job Release Tasks for a - * Job. - * @extends Array - */ -export interface CloudJobListPreparationAndReleaseTaskStatusResult - extends Array { - odatanextLink?: string; +/** Contains response data for the get operation. */ +export type JobGetResponse = JobGetHeaders & CloudJob; + +/** Optional parameters. */ +export interface JobPatchOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + jobPatchOptions?: JobPatchOptions; } -/** - * @interface - * An interface representing the CertificateListResult. - * @summary The result of listing the Certificates in the Account. - * @extends Array - */ -export interface CertificateListResult extends Array { - odatanextLink?: string; +/** Contains response data for the patch operation. */ +export type JobPatchResponse = JobPatchHeaders; + +/** Optional parameters. */ +export interface JobUpdateOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + jobUpdateOptions?: JobUpdateOptions; } -/** - * @interface - * An interface representing the NodeFileListResult. - * @summary The result of listing the files on a Compute Node, or the files associated with a Task - * on a Compute Node. - * @extends Array - */ -export interface NodeFileListResult extends Array { - odatanextLink?: string; +/** Contains response data for the update operation. */ +export type JobUpdateResponse = JobUpdateHeaders; + +/** Optional parameters. */ +export interface JobDisableOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + jobDisableOptions?: JobDisableOptions; } -/** - * @interface - * An interface representing the CloudJobScheduleListResult. - * @summary The result of listing the Job Schedules in an Account. - * @extends Array - */ -export interface CloudJobScheduleListResult extends Array { - odatanextLink?: string; +/** Contains response data for the disable operation. */ +export type JobDisableResponse = JobDisableHeaders; + +/** Optional parameters. */ +export interface JobEnableOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + jobEnableOptions?: JobEnableOptions; } -/** - * @interface - * An interface representing the CloudTaskListResult. - * @summary The result of listing the Tasks in a Job. - * @extends Array - */ -export interface CloudTaskListResult extends Array { - odatanextLink?: string; +/** Contains response data for the enable operation. */ +export type JobEnableResponse = JobEnableHeaders; + +/** Optional parameters. */ +export interface JobTerminateOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + jobTerminateOptions?: JobTerminateOptions; + /** The parameters for the request. */ + jobTerminateParameter?: JobTerminateParameter; } -/** - * @interface - * An interface representing the ComputeNodeListResult. - * @summary The result of listing the Compute Nodes in a Pool. - * @extends Array - */ -export interface ComputeNodeListResult extends Array { - odatanextLink?: string; +/** Contains response data for the terminate operation. */ +export type JobTerminateResponse = JobTerminateHeaders; + +/** Optional parameters. */ +export interface JobAddOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + jobAddOptions?: JobAddOptions; } -/** - * @interface - * An interface representing the NodeVMExtensionList. - * @summary The result of listing the Compute Node extensions in a Node. - * @extends Array - */ -export interface NodeVMExtensionList extends Array { - odatanextLink?: string; +/** Contains response data for the add operation. */ +export type JobAddResponse = JobAddHeaders; + +/** Optional parameters. */ +export interface JobListOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + jobListOptions?: JobListOptions; } -/** - * Defines values for OSType. - * Possible values include: 'linux', 'windows' - * @readonly - * @enum {string} - */ -export type OSType = "linux" | "windows"; +/** Contains response data for the list operation. */ +export type JobListResponse = JobListHeaders & CloudJobListResult; -/** - * Defines values for VerificationType. - * Possible values include: 'verified', 'unverified' - * @readonly - * @enum {string} - */ -export type VerificationType = "verified" | "unverified"; +/** Optional parameters. */ +export interface JobListFromJobScheduleOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + jobListFromJobScheduleOptions?: JobListFromJobScheduleOptions; +} -/** - * Defines values for AccessScope. - * Possible values include: 'job' - * @readonly - * @enum {string} - */ -export type AccessScope = "job"; +/** Contains response data for the listFromJobSchedule operation. */ +export type JobListFromJobScheduleResponse = JobListFromJobScheduleHeaders & + CloudJobListResult; + +/** Optional parameters. */ +export interface JobListPreparationAndReleaseTaskStatusOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + jobListPreparationAndReleaseTaskStatusOptions?: JobListPreparationAndReleaseTaskStatusOptions; +} + +/** Contains response data for the listPreparationAndReleaseTaskStatus operation. */ +export type JobListPreparationAndReleaseTaskStatusResponse = JobListPreparationAndReleaseTaskStatusHeaders & + CloudJobListPreparationAndReleaseTaskStatusResult; + +/** Optional parameters. */ +export interface JobGetTaskCountsOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + jobGetTaskCountsOptions?: JobGetTaskCountsOptions; +} + +/** Contains response data for the getTaskCounts operation. */ +export type JobGetTaskCountsResponse = JobGetTaskCountsHeaders & + TaskCountsResult; + +/** Optional parameters. */ +export interface JobListNextOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + jobListOptions?: JobListOptions; +} -/** - * Defines values for CertificateState. - * Possible values include: 'active', 'deleting', 'deleteFailed' - * @readonly - * @enum {string} - */ -export type CertificateState = "active" | "deleting" | "deletefailed"; +/** Contains response data for the listNext operation. */ +export type JobListNextResponse = JobListNextHeaders & CloudJobListResult; -/** - * Defines values for CertificateFormat. - * Possible values include: 'pfx', 'cer' - * @readonly - * @enum {string} - */ -export type CertificateFormat = "pfx" | "cer"; +/** Optional parameters. */ +export interface JobListFromJobScheduleNextOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + jobListFromJobScheduleOptions?: JobListFromJobScheduleOptions; +} -/** - * Defines values for ContainerWorkingDirectory. - * Possible values include: 'taskWorkingDirectory', 'containerImageDefault' - * @readonly - * @enum {string} - */ -export type ContainerWorkingDirectory = "taskWorkingDirectory" | "containerImageDefault"; +/** Contains response data for the listFromJobScheduleNext operation. */ +export type JobListFromJobScheduleNextResponse = JobListFromJobScheduleNextHeaders & + CloudJobListResult; -/** - * Defines values for JobAction. - * Possible values include: 'none', 'disable', 'terminate' - * @readonly - * @enum {string} - */ -export type JobAction = "none" | "disable" | "terminate"; +/** Optional parameters. */ +export interface JobListPreparationAndReleaseTaskStatusNextOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + jobListPreparationAndReleaseTaskStatusOptions?: JobListPreparationAndReleaseTaskStatusOptions; +} -/** - * Defines values for DependencyAction. - * Possible values include: 'satisfy', 'block' - * @readonly - * @enum {string} - */ -export type DependencyAction = "satisfy" | "block"; +/** Contains response data for the listPreparationAndReleaseTaskStatusNext operation. */ +export type JobListPreparationAndReleaseTaskStatusNextResponse = JobListPreparationAndReleaseTaskStatusNextHeaders & + CloudJobListPreparationAndReleaseTaskStatusResult; -/** - * Defines values for AutoUserScope. - * Possible values include: 'task', 'pool' - * @readonly - * @enum {string} - */ -export type AutoUserScope = "task" | "pool"; +/** Optional parameters. */ +export interface CertificateAddOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + certificateAddOptions?: CertificateAddOptions; +} -/** - * Defines values for ElevationLevel. - * Possible values include: 'nonAdmin', 'admin' - * @readonly - * @enum {string} - */ -export type ElevationLevel = "nonadmin" | "admin"; +/** Contains response data for the add operation. */ +export type CertificateAddResponse = CertificateAddHeaders; -/** - * Defines values for LoginMode. - * Possible values include: 'batch', 'interactive' - * @readonly - * @enum {string} - */ -export type LoginMode = "batch" | "interactive"; +/** Optional parameters. */ +export interface CertificateListOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + certificateListOptions?: CertificateListOptions; +} -/** - * Defines values for OutputFileUploadCondition. - * Possible values include: 'taskSuccess', 'taskFailure', 'taskCompletion' - * @readonly - * @enum {string} - */ -export type OutputFileUploadCondition = "tasksuccess" | "taskfailure" | "taskcompletion"; +/** Contains response data for the list operation. */ +export type CertificateListResponse = CertificateListHeaders & + CertificateListResult; -/** - * Defines values for ComputeNodeFillType. - * Possible values include: 'spread', 'pack' - * @readonly - * @enum {string} - */ -export type ComputeNodeFillType = "spread" | "pack"; +/** Optional parameters. */ +export interface CertificateCancelDeletionOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + certificateCancelDeletionOptions?: CertificateCancelDeletionOptions; +} -/** - * Defines values for CertificateStoreLocation. - * Possible values include: 'currentUser', 'localMachine' - * @readonly - * @enum {string} - */ -export type CertificateStoreLocation = "currentuser" | "localmachine"; +/** Contains response data for the cancelDeletion operation. */ +export type CertificateCancelDeletionResponse = CertificateCancelDeletionHeaders; -/** - * Defines values for CertificateVisibility. - * Possible values include: 'startTask', 'task', 'remoteUser' - * @readonly - * @enum {string} - */ -export type CertificateVisibility = "starttask" | "task" | "remoteuser"; +/** Optional parameters. */ +export interface CertificateDeleteOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + certificateDeleteOptions?: CertificateDeleteOptions; +} -/** - * Defines values for CachingType. - * Possible values include: 'none', 'readOnly', 'readWrite' - * @readonly - * @enum {string} - */ -export type CachingType = "none" | "readonly" | "readwrite"; +/** Contains response data for the delete operation. */ +export type CertificateDeleteResponse = CertificateDeleteHeaders; -/** - * Defines values for StorageAccountType. - * Possible values include: 'StandardLRS', 'PremiumLRS' - * @readonly - * @enum {string} - */ -export type StorageAccountType = "standard_lrs" | "premium_lrs"; +/** Optional parameters. */ +export interface CertificateGetOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + certificateGetOptions?: CertificateGetOptions; +} -/** - * Defines values for DiskEncryptionTarget. - * Possible values include: 'OsDisk', 'TemporaryDisk' - * @readonly - * @enum {string} - */ -export type DiskEncryptionTarget = "osdisk" | "temporarydisk"; +/** Contains response data for the get operation. */ +export type CertificateGetResponse = CertificateGetHeaders & Certificate; -/** - * Defines values for NodePlacementPolicyType. - * Possible values include: 'regional', 'zonal' - * @readonly - * @enum {string} - */ -export type NodePlacementPolicyType = "regional" | "zonal"; +/** Optional parameters. */ +export interface CertificateListNextOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + certificateListOptions?: CertificateListOptions; +} -/** - * Defines values for DiffDiskPlacement. - * Possible values include: 'CacheDisk' - * @readonly - * @enum {string} - */ -export type DiffDiskPlacement = "CacheDisk"; +/** Contains response data for the listNext operation. */ +export type CertificateListNextResponse = CertificateListNextHeaders & + CertificateListResult; -/** - * Defines values for DynamicVNetAssignmentScope. - * Possible values include: 'none', 'job' - * @readonly - * @enum {string} - */ -export type DynamicVNetAssignmentScope = "none" | "job"; +/** Optional parameters. */ +export interface FileDeleteFromTaskOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + fileDeleteFromTaskOptions?: FileDeleteFromTaskOptions; + /** Whether to delete children of a directory. If the filePath parameter represents a directory instead of a file, you can set recursive to true to delete the directory and all of the files and subdirectories in it. If recursive is false then the directory must be empty or deletion will fail. */ + recursive?: boolean; +} -/** - * Defines values for InboundEndpointProtocol. - * Possible values include: 'tcp', 'udp' - * @readonly - * @enum {string} - */ -export type InboundEndpointProtocol = "tcp" | "udp"; +/** Contains response data for the deleteFromTask operation. */ +export type FileDeleteFromTaskResponse = FileDeleteFromTaskHeaders; -/** - * Defines values for NetworkSecurityGroupRuleAccess. - * Possible values include: 'allow', 'deny' - * @readonly - * @enum {string} - */ -export type NetworkSecurityGroupRuleAccess = "allow" | "deny"; +/** Optional parameters. */ +export interface FileGetFromTaskOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + fileGetFromTaskOptions?: FileGetFromTaskOptions; +} -/** - * Defines values for IPAddressProvisioningType. - * Possible values include: 'batchManaged', 'userManaged', 'noPublicIPAddresses' - * @readonly - * @enum {string} - */ -export type IPAddressProvisioningType = "batchmanaged" | "usermanaged" | "nopublicipaddresses"; +/** Contains response data for the getFromTask operation. */ +export type FileGetFromTaskResponse = FileGetFromTaskHeaders & { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always `undefined` in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always `undefined` in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; +}; -/** - * Defines values for PoolLifetimeOption. - * Possible values include: 'jobSchedule', 'job' - * @readonly - * @enum {string} - */ -export type PoolLifetimeOption = "jobschedule" | "job"; +/** Optional parameters. */ +export interface FileGetPropertiesFromTaskOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + fileGetPropertiesFromTaskOptions?: FileGetPropertiesFromTaskOptions; +} -/** - * Defines values for OnAllTasksComplete. - * Possible values include: 'noAction', 'terminateJob' - * @readonly - * @enum {string} - */ -export type OnAllTasksComplete = "noaction" | "terminatejob"; +/** Contains response data for the getPropertiesFromTask operation. */ +export type FileGetPropertiesFromTaskResponse = FileGetPropertiesFromTaskHeaders; -/** - * Defines values for OnTaskFailure. - * Possible values include: 'noAction', 'performExitOptionsJobAction' - * @readonly - * @enum {string} - */ -export type OnTaskFailure = "noaction" | "performexitoptionsjobaction"; +/** Optional parameters. */ +export interface FileDeleteFromComputeNodeOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + fileDeleteFromComputeNodeOptions?: FileDeleteFromComputeNodeOptions; + /** Whether to delete children of a directory. If the filePath parameter represents a directory instead of a file, you can set recursive to true to delete the directory and all of the files and subdirectories in it. If recursive is false then the directory must be empty or deletion will fail. */ + recursive?: boolean; +} -/** - * Defines values for JobScheduleState. - * Possible values include: 'active', 'completed', 'disabled', 'terminating', 'deleting' - * @readonly - * @enum {string} - */ -export type JobScheduleState = "active" | "completed" | "disabled" | "terminating" | "deleting"; +/** Contains response data for the deleteFromComputeNode operation. */ +export type FileDeleteFromComputeNodeResponse = FileDeleteFromComputeNodeHeaders; -/** - * Defines values for ErrorCategory. - * Possible values include: 'userError', 'serverError' - * @readonly - * @enum {string} - */ -export type ErrorCategory = "usererror" | "servererror"; +/** Optional parameters. */ +export interface FileGetFromComputeNodeOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + fileGetFromComputeNodeOptions?: FileGetFromComputeNodeOptions; +} -/** - * Defines values for JobState. - * Possible values include: 'active', 'disabling', 'disabled', 'enabling', 'terminating', - * 'completed', 'deleting' - * @readonly - * @enum {string} - */ -export type JobState = - | "active" - | "disabling" - | "disabled" - | "enabling" - | "terminating" - | "completed" - | "deleting"; +/** Contains response data for the getFromComputeNode operation. */ +export type FileGetFromComputeNodeResponse = FileGetFromComputeNodeHeaders & { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always `undefined` in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always `undefined` in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; +}; -/** - * Defines values for JobPreparationTaskState. - * Possible values include: 'running', 'completed' - * @readonly - * @enum {string} - */ -export type JobPreparationTaskState = "running" | "completed"; +/** Optional parameters. */ +export interface FileGetPropertiesFromComputeNodeOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + fileGetPropertiesFromComputeNodeOptions?: FileGetPropertiesFromComputeNodeOptions; +} -/** - * Defines values for TaskExecutionResult. - * Possible values include: 'success', 'failure' - * @readonly - * @enum {string} - */ -export type TaskExecutionResult = "success" | "failure"; +/** Contains response data for the getPropertiesFromComputeNode operation. */ +export type FileGetPropertiesFromComputeNodeResponse = FileGetPropertiesFromComputeNodeHeaders; -/** - * Defines values for JobReleaseTaskState. - * Possible values include: 'running', 'completed' - * @readonly - * @enum {string} - */ -export type JobReleaseTaskState = "running" | "completed"; +/** Optional parameters. */ +export interface FileListFromTaskOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + fileListFromTaskOptions?: FileListFromTaskOptions; + /** Whether to list children of the Task directory. This parameter can be used in combination with the filter parameter to list specific type of files. */ + recursive?: boolean; +} -/** - * Defines values for StatusLevelTypes. - * Possible values include: 'Error', 'Info', 'Warning' - * @readonly - * @enum {string} - */ -export type StatusLevelTypes = "Error" | "Info" | "Warning"; +/** Contains response data for the listFromTask operation. */ +export type FileListFromTaskResponse = FileListFromTaskHeaders & + NodeFileListResult; -/** - * Defines values for PoolState. - * Possible values include: 'active', 'deleting' - * @readonly - * @enum {string} - */ -export type PoolState = "active" | "deleting"; +/** Optional parameters. */ +export interface FileListFromComputeNodeOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + fileListFromComputeNodeOptions?: FileListFromComputeNodeOptions; + /** Whether to list children of a directory. */ + recursive?: boolean; +} -/** - * Defines values for AllocationState. - * Possible values include: 'steady', 'resizing', 'stopping' - * @readonly - * @enum {string} - */ -export type AllocationState = "steady" | "resizing" | "stopping"; +/** Contains response data for the listFromComputeNode operation. */ +export type FileListFromComputeNodeResponse = FileListFromComputeNodeHeaders & + NodeFileListResult; -/** - * Defines values for PoolIdentityType. - * Possible values include: 'UserAssigned', 'None' - * @readonly - * @enum {string} - */ -export type PoolIdentityType = "UserAssigned" | "None"; +/** Optional parameters. */ +export interface FileListFromTaskNextOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + fileListFromTaskOptions?: FileListFromTaskOptions; + /** Whether to list children of the Task directory. This parameter can be used in combination with the filter parameter to list specific type of files. */ + recursive?: boolean; +} -/** - * Defines values for TaskState. - * Possible values include: 'active', 'preparing', 'running', 'completed' - * @readonly - * @enum {string} - */ -export type TaskState = "active" | "preparing" | "running" | "completed"; +/** Contains response data for the listFromTaskNext operation. */ +export type FileListFromTaskNextResponse = FileListFromTaskNextHeaders & + NodeFileListResult; -/** - * Defines values for TaskAddStatus. - * Possible values include: 'success', 'clientError', 'serverError' - * @readonly - * @enum {string} - */ -export type TaskAddStatus = "success" | "clienterror" | "servererror"; +/** Optional parameters. */ +export interface FileListFromComputeNodeNextOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + fileListFromComputeNodeOptions?: FileListFromComputeNodeOptions; + /** Whether to list children of a directory. */ + recursive?: boolean; +} -/** - * Defines values for SubtaskState. - * Possible values include: 'preparing', 'running', 'completed' - * @readonly - * @enum {string} - */ -export type SubtaskState = "preparing" | "running" | "completed"; +/** Contains response data for the listFromComputeNodeNext operation. */ +export type FileListFromComputeNodeNextResponse = FileListFromComputeNodeNextHeaders & + NodeFileListResult; -/** - * Defines values for StartTaskState. - * Possible values include: 'running', 'completed' - * @readonly - * @enum {string} - */ -export type StartTaskState = "running" | "completed"; +/** Optional parameters. */ +export interface JobScheduleExistsOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + jobScheduleExistsOptions?: JobScheduleExistsOptions; +} -/** - * Defines values for ComputeNodeState. - * Possible values include: 'idle', 'rebooting', 'reimaging', 'running', 'unusable', 'creating', - * 'starting', 'waitingForStartTask', 'startTaskFailed', 'unknown', 'leavingPool', 'offline', - * 'preempted' - * @readonly - * @enum {string} - */ -export type ComputeNodeState = - | "idle" - | "rebooting" - | "reimaging" - | "running" - | "unusable" - | "creating" - | "starting" - | "waitingforstarttask" - | "starttaskfailed" - | "unknown" - | "leavingpool" - | "offline" - | "preempted"; +/** Contains response data for the exists operation. */ +export type JobScheduleExistsResponse = JobScheduleExistsHeaders; -/** - * Defines values for SchedulingState. - * Possible values include: 'enabled', 'disabled' - * @readonly - * @enum {string} - */ -export type SchedulingState = "enabled" | "disabled"; +/** Optional parameters. */ +export interface JobScheduleDeleteOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + jobScheduleDeleteOptions?: JobScheduleDeleteOptions; +} -/** - * Defines values for DisableJobOption. - * Possible values include: 'requeue', 'terminate', 'wait' - * @readonly - * @enum {string} - */ -export type DisableJobOption = "requeue" | "terminate" | "wait"; +/** Contains response data for the delete operation. */ +export type JobScheduleDeleteResponse = JobScheduleDeleteHeaders; -/** - * Defines values for ComputeNodeDeallocationOption. - * Possible values include: 'requeue', 'terminate', 'taskCompletion', 'retainedData' - * @readonly - * @enum {string} - */ -export type ComputeNodeDeallocationOption = - | "requeue" - | "terminate" - | "taskcompletion" - | "retaineddata"; +/** Optional parameters. */ +export interface JobScheduleGetOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + jobScheduleGetOptions?: JobScheduleGetOptions; +} -/** - * Defines values for ComputeNodeRebootOption. - * Possible values include: 'requeue', 'terminate', 'taskCompletion', 'retainedData' - * @readonly - * @enum {string} - */ -export type ComputeNodeRebootOption = "requeue" | "terminate" | "taskcompletion" | "retaineddata"; +/** Contains response data for the get operation. */ +export type JobScheduleGetResponse = JobScheduleGetHeaders & CloudJobSchedule; -/** - * Defines values for ComputeNodeReimageOption. - * Possible values include: 'requeue', 'terminate', 'taskCompletion', 'retainedData' - * @readonly - * @enum {string} - */ -export type ComputeNodeReimageOption = "requeue" | "terminate" | "taskcompletion" | "retaineddata"; +/** Optional parameters. */ +export interface JobSchedulePatchOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + jobSchedulePatchOptions?: JobSchedulePatchOptions; +} -/** - * Defines values for DisableComputeNodeSchedulingOption. - * Possible values include: 'requeue', 'terminate', 'taskCompletion' - * @readonly - * @enum {string} - */ -export type DisableComputeNodeSchedulingOption = "requeue" | "terminate" | "taskcompletion"; +/** Contains response data for the patch operation. */ +export type JobSchedulePatchResponse = JobSchedulePatchHeaders; -/** - * Contains response data for the list operation. - */ -export type ApplicationListResponse = ApplicationListResult & - ApplicationListHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ApplicationListHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ApplicationListResult; - }; - }; - -/** - * Contains response data for the get operation. - */ -export type ApplicationGetResponse = ApplicationSummary & - ApplicationGetHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ApplicationGetHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ApplicationSummary; - }; - }; - -/** - * Contains response data for the listUsageMetrics operation. - */ -export type PoolListUsageMetricsResponse = PoolListUsageMetricsResult & - PoolListUsageMetricsHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PoolListUsageMetricsHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: PoolListUsageMetricsResult; - }; - }; - -/** - * Contains response data for the getAllLifetimeStatistics operation. - */ -export type PoolGetAllLifetimeStatisticsResponse = PoolStatistics & - PoolGetAllLifetimeStatisticsHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PoolGetAllLifetimeStatisticsHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: PoolStatistics; - }; - }; - -/** - * Contains response data for the add operation. - */ -export type PoolAddResponse = PoolAddHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PoolAddHeaders; - }; -}; +/** Optional parameters. */ +export interface JobScheduleUpdateOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + jobScheduleUpdateOptions?: JobScheduleUpdateOptions; +} -/** - * Contains response data for the list operation. - */ -export type PoolListResponse = CloudPoolListResult & - PoolListHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PoolListHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CloudPoolListResult; - }; - }; - -/** - * Contains response data for the deleteMethod operation. - */ -export type PoolDeleteResponse = PoolDeleteHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PoolDeleteHeaders; - }; -}; +/** Contains response data for the update operation. */ +export type JobScheduleUpdateResponse = JobScheduleUpdateHeaders; -/** - * Contains response data for the exists operation. - */ -export type PoolExistsResponse = PoolExistsHeaders & { - /** - * The parsed response body. - */ - body: boolean; +/** Optional parameters. */ +export interface JobScheduleDisableOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + jobScheduleDisableOptions?: JobScheduleDisableOptions; +} - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PoolExistsHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: boolean; - }; -}; +/** Contains response data for the disable operation. */ +export type JobScheduleDisableResponse = JobScheduleDisableHeaders; -/** - * Contains response data for the get operation. - */ -export type PoolGetResponse = CloudPool & - PoolGetHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PoolGetHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CloudPool; - }; - }; - -/** - * Contains response data for the patch operation. - */ -export type PoolPatchResponse = PoolPatchHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PoolPatchHeaders; - }; -}; +/** Optional parameters. */ +export interface JobScheduleEnableOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + jobScheduleEnableOptions?: JobScheduleEnableOptions; +} -/** - * Contains response data for the disableAutoScale operation. - */ -export type PoolDisableAutoScaleResponse = PoolDisableAutoScaleHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PoolDisableAutoScaleHeaders; - }; -}; +/** Contains response data for the enable operation. */ +export type JobScheduleEnableResponse = JobScheduleEnableHeaders; -/** - * Contains response data for the enableAutoScale operation. - */ -export type PoolEnableAutoScaleResponse = PoolEnableAutoScaleHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PoolEnableAutoScaleHeaders; - }; -}; +/** Optional parameters. */ +export interface JobScheduleTerminateOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + jobScheduleTerminateOptions?: JobScheduleTerminateOptions; +} -/** - * Contains response data for the evaluateAutoScale operation. - */ -export type PoolEvaluateAutoScaleResponse = AutoScaleRun & - PoolEvaluateAutoScaleHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PoolEvaluateAutoScaleHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: AutoScaleRun; - }; - }; - -/** - * Contains response data for the resize operation. - */ -export type PoolResizeResponse = PoolResizeHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PoolResizeHeaders; - }; -}; +/** Contains response data for the terminate operation. */ +export type JobScheduleTerminateResponse = JobScheduleTerminateHeaders; -/** - * Contains response data for the stopResize operation. - */ -export type PoolStopResizeResponse = PoolStopResizeHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PoolStopResizeHeaders; - }; -}; +/** Optional parameters. */ +export interface JobScheduleAddOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + jobScheduleAddOptions?: JobScheduleAddOptions; +} -/** - * Contains response data for the updateProperties operation. - */ -export type PoolUpdatePropertiesResponse = PoolUpdatePropertiesHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PoolUpdatePropertiesHeaders; - }; -}; +/** Contains response data for the add operation. */ +export type JobScheduleAddResponse = JobScheduleAddHeaders; -/** - * Contains response data for the removeNodes operation. - */ -export type PoolRemoveNodesResponse = PoolRemoveNodesHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PoolRemoveNodesHeaders; - }; -}; +/** Optional parameters. */ +export interface JobScheduleListOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + jobScheduleListOptions?: JobScheduleListOptions; +} -/** - * Contains response data for the listSupportedImages operation. - */ -export type AccountListSupportedImagesResponse = AccountListSupportedImagesResult & - AccountListSupportedImagesHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: AccountListSupportedImagesHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: AccountListSupportedImagesResult; - }; - }; - -/** - * Contains response data for the listPoolNodeCounts operation. - */ -export type AccountListPoolNodeCountsResponse = PoolNodeCountsListResult & - AccountListPoolNodeCountsHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: AccountListPoolNodeCountsHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: PoolNodeCountsListResult; - }; - }; - -/** - * Contains response data for the getAllLifetimeStatistics operation. - */ -export type JobGetAllLifetimeStatisticsResponse = JobStatistics & - JobGetAllLifetimeStatisticsHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobGetAllLifetimeStatisticsHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobStatistics; - }; - }; - -/** - * Contains response data for the deleteMethod operation. - */ -export type JobDeleteResponse = JobDeleteHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobDeleteHeaders; - }; -}; +/** Contains response data for the list operation. */ +export type JobScheduleListResponse = JobScheduleListHeaders & + CloudJobScheduleListResult; -/** - * Contains response data for the get operation. - */ -export type JobGetResponse = CloudJob & - JobGetHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobGetHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CloudJob; - }; - }; - -/** - * Contains response data for the patch operation. - */ -export type JobPatchResponse = JobPatchHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobPatchHeaders; - }; -}; +/** Optional parameters. */ +export interface JobScheduleListNextOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + jobScheduleListOptions?: JobScheduleListOptions; +} -/** - * Contains response data for the update operation. - */ -export type JobUpdateResponse = JobUpdateHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobUpdateHeaders; - }; -}; +/** Contains response data for the listNext operation. */ +export type JobScheduleListNextResponse = JobScheduleListNextHeaders & + CloudJobScheduleListResult; -/** - * Contains response data for the disable operation. - */ -export type JobDisableResponse = JobDisableHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobDisableHeaders; - }; -}; +/** Optional parameters. */ +export interface TaskAddOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + taskAddOptions?: TaskAddOptions; +} -/** - * Contains response data for the enable operation. - */ -export type JobEnableResponse = JobEnableHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobEnableHeaders; - }; -}; +/** Contains response data for the add operation. */ +export type TaskAddResponse = TaskAddHeaders; -/** - * Contains response data for the terminate operation. - */ -export type JobTerminateResponse = JobTerminateHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobTerminateHeaders; - }; -}; +/** Optional parameters. */ +export interface TaskListOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + taskListOptions?: TaskListOptions; +} -/** - * Contains response data for the add operation. - */ -export type JobAddResponse = JobAddHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobAddHeaders; - }; -}; +/** Contains response data for the list operation. */ +export type TaskListResponse = TaskListHeaders & CloudTaskListResult; -/** - * Contains response data for the list operation. - */ -export type JobListResponse = CloudJobListResult & - JobListHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobListHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CloudJobListResult; - }; - }; - -/** - * Contains response data for the listFromJobSchedule operation. - */ -export type JobListFromJobScheduleResponse = CloudJobListResult & - JobListFromJobScheduleHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobListFromJobScheduleHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CloudJobListResult; - }; - }; - -/** - * Contains response data for the listPreparationAndReleaseTaskStatus operation. - */ -export type JobListPreparationAndReleaseTaskStatusResponse = CloudJobListPreparationAndReleaseTaskStatusResult & - JobListPreparationAndReleaseTaskStatusHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobListPreparationAndReleaseTaskStatusHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CloudJobListPreparationAndReleaseTaskStatusResult; - }; - }; - -/** - * Contains response data for the getTaskCounts operation. - */ -export type JobGetTaskCountsResponse = TaskCountsResult & - JobGetTaskCountsHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobGetTaskCountsHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: TaskCountsResult; - }; - }; - -/** - * Contains response data for the add operation. - */ -export type CertificateAddResponse = CertificateAddHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: CertificateAddHeaders; - }; -}; +/** Optional parameters. */ +export interface TaskAddCollectionOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + taskAddCollectionOptions?: TaskAddCollectionOptions; +} -/** - * Contains response data for the list operation. - */ -export type CertificateListResponse = CertificateListResult & - CertificateListHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: CertificateListHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CertificateListResult; - }; - }; - -/** - * Contains response data for the cancelDeletion operation. - */ -export type CertificateCancelDeletionResponse = CertificateCancelDeletionHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: CertificateCancelDeletionHeaders; - }; -}; +/** Contains response data for the addCollection operation. */ +export type TaskAddCollectionResponse = TaskAddCollectionHeaders & + TaskAddCollectionResult; -/** - * Contains response data for the deleteMethod operation. - */ -export type CertificateDeleteResponse = CertificateDeleteHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: CertificateDeleteHeaders; - }; -}; +/** Optional parameters. */ +export interface TaskDeleteOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + taskDeleteOptions?: TaskDeleteOptions; +} -/** - * Contains response data for the get operation. - */ -export type CertificateGetResponse = Certificate & - CertificateGetHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: CertificateGetHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Certificate; - }; - }; - -/** - * Contains response data for the deleteFromTask operation. - */ -export type FileDeleteFromTaskResponse = FileDeleteFromTaskHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FileDeleteFromTaskHeaders; - }; -}; +/** Contains response data for the delete operation. */ +export type TaskDeleteResponse = TaskDeleteHeaders; -/** - * Contains response data for the getFromTask operation. - */ -export type FileGetFromTaskResponse = FileGetFromTaskHeaders & { - /** - * BROWSER ONLY - * - * The response body as a browser Blob. - * Always undefined in node.js. - */ - blobBody?: Promise; +/** Optional parameters. */ +export interface TaskGetOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + taskGetOptions?: TaskGetOptions; +} - /** - * NODEJS ONLY - * - * The response body as a node.js Readable stream. - * Always undefined in the browser. - */ - readableStreamBody?: NodeJS.ReadableStream; +/** Contains response data for the get operation. */ +export type TaskGetResponse = TaskGetHeaders & CloudTask; - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FileGetFromTaskHeaders; - }; -}; +/** Optional parameters. */ +export interface TaskUpdateOptionalParams extends coreClient.OperationOptions { + /** Parameter group */ + taskUpdateOptions?: TaskUpdateOptions; +} -/** - * Contains response data for the getPropertiesFromTask operation. - */ -export type FileGetPropertiesFromTaskResponse = FileGetPropertiesFromTaskHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FileGetPropertiesFromTaskHeaders; - }; -}; +/** Contains response data for the update operation. */ +export type TaskUpdateResponse = TaskUpdateHeaders; -/** - * Contains response data for the deleteFromComputeNode operation. - */ -export type FileDeleteFromComputeNodeResponse = FileDeleteFromComputeNodeHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FileDeleteFromComputeNodeHeaders; - }; -}; +/** Optional parameters. */ +export interface TaskListSubtasksOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + taskListSubtasksOptions?: TaskListSubtasksOptions; +} -/** - * Contains response data for the getFromComputeNode operation. - */ -export type FileGetFromComputeNodeResponse = FileGetFromComputeNodeHeaders & { - /** - * BROWSER ONLY - * - * The response body as a browser Blob. - * Always undefined in node.js. - */ - blobBody?: Promise; +/** Contains response data for the listSubtasks operation. */ +export type TaskListSubtasksResponse = TaskListSubtasksHeaders & + CloudTaskListSubtasksResult; - /** - * NODEJS ONLY - * - * The response body as a node.js Readable stream. - * Always undefined in the browser. - */ - readableStreamBody?: NodeJS.ReadableStream; +/** Optional parameters. */ +export interface TaskTerminateOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + taskTerminateOptions?: TaskTerminateOptions; +} - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FileGetFromComputeNodeHeaders; - }; -}; +/** Contains response data for the terminate operation. */ +export type TaskTerminateResponse = TaskTerminateHeaders; -/** - * Contains response data for the getPropertiesFromComputeNode operation. - */ -export type FileGetPropertiesFromComputeNodeResponse = FileGetPropertiesFromComputeNodeHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FileGetPropertiesFromComputeNodeHeaders; - }; -}; +/** Optional parameters. */ +export interface TaskReactivateOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + taskReactivateOptions?: TaskReactivateOptions; +} -/** - * Contains response data for the listFromTask operation. - */ -export type FileListFromTaskResponse = NodeFileListResult & - FileListFromTaskHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FileListFromTaskHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: NodeFileListResult; - }; - }; - -/** - * Contains response data for the listFromComputeNode operation. - */ -export type FileListFromComputeNodeResponse = NodeFileListResult & - FileListFromComputeNodeHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FileListFromComputeNodeHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: NodeFileListResult; - }; - }; - -/** - * Contains response data for the exists operation. - */ -export type JobScheduleExistsResponse = JobScheduleExistsHeaders & { - /** - * The parsed response body. - */ - body: boolean; +/** Contains response data for the reactivate operation. */ +export type TaskReactivateResponse = TaskReactivateHeaders; - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobScheduleExistsHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: boolean; - }; -}; +/** Optional parameters. */ +export interface TaskListNextOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + taskListOptions?: TaskListOptions; +} -/** - * Contains response data for the deleteMethod operation. - */ -export type JobScheduleDeleteResponse = JobScheduleDeleteHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobScheduleDeleteHeaders; - }; -}; +/** Contains response data for the listNext operation. */ +export type TaskListNextResponse = TaskListNextHeaders & CloudTaskListResult; -/** - * Contains response data for the get operation. - */ -export type JobScheduleGetResponse = CloudJobSchedule & - JobScheduleGetHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobScheduleGetHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CloudJobSchedule; - }; - }; - -/** - * Contains response data for the patch operation. - */ -export type JobSchedulePatchResponse = JobSchedulePatchHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobSchedulePatchHeaders; - }; -}; +/** Optional parameters. */ +export interface ComputeNodeAddUserOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + computeNodeAddUserOptions?: ComputeNodeAddUserOptions; +} -/** - * Contains response data for the update operation. - */ -export type JobScheduleUpdateResponse = JobScheduleUpdateHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobScheduleUpdateHeaders; - }; -}; +/** Contains response data for the addUser operation. */ +export type ComputeNodeAddUserResponse = ComputeNodeAddUserHeaders; -/** - * Contains response data for the disable operation. - */ -export type JobScheduleDisableResponse = JobScheduleDisableHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobScheduleDisableHeaders; - }; -}; +/** Optional parameters. */ +export interface ComputeNodeDeleteUserOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + computeNodeDeleteUserOptions?: ComputeNodeDeleteUserOptions; +} -/** - * Contains response data for the enable operation. - */ -export type JobScheduleEnableResponse = JobScheduleEnableHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobScheduleEnableHeaders; - }; -}; +/** Contains response data for the deleteUser operation. */ +export type ComputeNodeDeleteUserResponse = ComputeNodeDeleteUserHeaders; -/** - * Contains response data for the terminate operation. - */ -export type JobScheduleTerminateResponse = JobScheduleTerminateHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobScheduleTerminateHeaders; - }; -}; +/** Optional parameters. */ +export interface ComputeNodeUpdateUserOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + computeNodeUpdateUserOptions?: ComputeNodeUpdateUserOptions; +} -/** - * Contains response data for the add operation. - */ -export type JobScheduleAddResponse = JobScheduleAddHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobScheduleAddHeaders; - }; -}; +/** Contains response data for the updateUser operation. */ +export type ComputeNodeUpdateUserResponse = ComputeNodeUpdateUserHeaders; -/** - * Contains response data for the list operation. - */ -export type JobScheduleListResponse = CloudJobScheduleListResult & - JobScheduleListHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: JobScheduleListHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CloudJobScheduleListResult; - }; - }; - -/** - * Contains response data for the add operation. - */ -export type TaskAddResponse = TaskAddHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: TaskAddHeaders; - }; -}; +/** Optional parameters. */ +export interface ComputeNodeGetOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + computeNodeGetOptions?: ComputeNodeGetOptions; +} -/** - * Contains response data for the list operation. - */ -export type TaskListResponse = CloudTaskListResult & - TaskListHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: TaskListHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CloudTaskListResult; - }; - }; - -/** - * Contains response data for the addCollection operation. - */ -export type TaskAddCollectionResponse = TaskAddCollectionResult & - TaskAddCollectionHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: TaskAddCollectionHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: TaskAddCollectionResult; - }; - }; - -/** - * Contains response data for the deleteMethod operation. - */ -export type TaskDeleteResponse = TaskDeleteHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: TaskDeleteHeaders; - }; -}; +/** Contains response data for the get operation. */ +export type ComputeNodeGetResponse = ComputeNodeGetHeaders & ComputeNode; -/** - * Contains response data for the get operation. - */ -export type TaskGetResponse = CloudTask & - TaskGetHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: TaskGetHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CloudTask; - }; - }; - -/** - * Contains response data for the update operation. - */ -export type TaskUpdateResponse = TaskUpdateHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: TaskUpdateHeaders; - }; -}; +/** Optional parameters. */ +export interface ComputeNodeRebootOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + computeNodeRebootOptions?: ComputeNodeRebootOptions; + /** The parameters for the request. */ + nodeRebootParameter?: NodeRebootParameter; +} -/** - * Contains response data for the listSubtasks operation. - */ -export type TaskListSubtasksResponse = CloudTaskListSubtasksResult & - TaskListSubtasksHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: TaskListSubtasksHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CloudTaskListSubtasksResult; - }; - }; - -/** - * Contains response data for the terminate operation. - */ -export type TaskTerminateResponse = TaskTerminateHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: TaskTerminateHeaders; - }; -}; +/** Contains response data for the reboot operation. */ +export type ComputeNodeRebootResponse = ComputeNodeRebootHeaders; -/** - * Contains response data for the reactivate operation. - */ -export type TaskReactivateResponse = TaskReactivateHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: TaskReactivateHeaders; - }; -}; +/** Optional parameters. */ +export interface ComputeNodeReimageOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + computeNodeReimageOptions?: ComputeNodeReimageOptions; + /** The parameters for the request. */ + nodeReimageParameter?: NodeReimageParameter; +} -/** - * Contains response data for the addUser operation. - */ -export type ComputeNodeAddUserResponse = ComputeNodeAddUserHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ComputeNodeAddUserHeaders; - }; -}; +/** Contains response data for the reimage operation. */ +export type ComputeNodeReimageResponse = ComputeNodeReimageHeaders; -/** - * Contains response data for the deleteUser operation. - */ -export type ComputeNodeDeleteUserResponse = ComputeNodeDeleteUserHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ComputeNodeDeleteUserHeaders; - }; -}; +/** Optional parameters. */ +export interface ComputeNodeDisableSchedulingOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + computeNodeDisableSchedulingOptions?: ComputeNodeDisableSchedulingOptions; + /** The parameters for the request. */ + nodeDisableSchedulingParameter?: NodeDisableSchedulingParameter; +} -/** - * Contains response data for the updateUser operation. - */ -export type ComputeNodeUpdateUserResponse = ComputeNodeUpdateUserHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ComputeNodeUpdateUserHeaders; - }; -}; +/** Contains response data for the disableScheduling operation. */ +export type ComputeNodeDisableSchedulingResponse = ComputeNodeDisableSchedulingHeaders; -/** - * Contains response data for the get operation. - */ -export type ComputeNodeGetResponse = ComputeNode & - ComputeNodeGetHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ComputeNodeGetHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ComputeNode; - }; - }; - -/** - * Contains response data for the reboot operation. - */ -export type ComputeNodeRebootResponse = ComputeNodeRebootHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ComputeNodeRebootHeaders; - }; -}; +/** Optional parameters. */ +export interface ComputeNodeEnableSchedulingOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + computeNodeEnableSchedulingOptions?: ComputeNodeEnableSchedulingOptions; +} -/** - * Contains response data for the reimage operation. - */ -export type ComputeNodeReimageResponse = ComputeNodeReimageHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ComputeNodeReimageHeaders; - }; -}; +/** Contains response data for the enableScheduling operation. */ +export type ComputeNodeEnableSchedulingResponse = ComputeNodeEnableSchedulingHeaders; -/** - * Contains response data for the disableScheduling operation. - */ -export type ComputeNodeDisableSchedulingResponse = ComputeNodeDisableSchedulingHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ComputeNodeDisableSchedulingHeaders; - }; -}; +/** Optional parameters. */ +export interface ComputeNodeGetRemoteLoginSettingsOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + computeNodeGetRemoteLoginSettingsOptions?: ComputeNodeGetRemoteLoginSettingsOptions; +} -/** - * Contains response data for the enableScheduling operation. - */ -export type ComputeNodeEnableSchedulingResponse = ComputeNodeEnableSchedulingHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ComputeNodeEnableSchedulingHeaders; - }; -}; +/** Contains response data for the getRemoteLoginSettings operation. */ +export type ComputeNodeGetRemoteLoginSettingsResponse = ComputeNodeGetRemoteLoginSettingsHeaders & + ComputeNodeGetRemoteLoginSettingsResult; -/** - * Contains response data for the getRemoteLoginSettings operation. - */ -export type ComputeNodeGetRemoteLoginSettingsResponse = ComputeNodeGetRemoteLoginSettingsResult & - ComputeNodeGetRemoteLoginSettingsHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ComputeNodeGetRemoteLoginSettingsHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ComputeNodeGetRemoteLoginSettingsResult; - }; - }; - -/** - * Contains response data for the getRemoteDesktop operation. - */ +/** Optional parameters. */ +export interface ComputeNodeGetRemoteDesktopOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + computeNodeGetRemoteDesktopOptions?: ComputeNodeGetRemoteDesktopOptions; +} + +/** Contains response data for the getRemoteDesktop operation. */ export type ComputeNodeGetRemoteDesktopResponse = ComputeNodeGetRemoteDesktopHeaders & { /** * BROWSER ONLY * * The response body as a browser Blob. - * Always undefined in node.js. + * Always `undefined` in node.js. */ blobBody?: Promise; - /** * NODEJS ONLY * * The response body as a node.js Readable stream. - * Always undefined in the browser. + * Always `undefined` in the browser. */ readableStreamBody?: NodeJS.ReadableStream; - - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ComputeNodeGetRemoteDesktopHeaders; - }; }; -/** - * Contains response data for the uploadBatchServiceLogs operation. - */ -export type ComputeNodeUploadBatchServiceLogsResponse = UploadBatchServiceLogsResult & - ComputeNodeUploadBatchServiceLogsHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ComputeNodeUploadBatchServiceLogsHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: UploadBatchServiceLogsResult; - }; - }; - -/** - * Contains response data for the list operation. - */ -export type ComputeNodeListResponse = ComputeNodeListResult & - ComputeNodeListHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ComputeNodeListHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ComputeNodeListResult; - }; - }; - -/** - * Contains response data for the get operation. - */ -export type ComputeNodeExtensionGetResponse = NodeVMExtension & - ComputeNodeExtensionGetHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ComputeNodeExtensionGetHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: NodeVMExtension; - }; - }; - -/** - * Contains response data for the list operation. - */ -export type ComputeNodeExtensionListResponse = NodeVMExtensionList & - ComputeNodeExtensionListHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ComputeNodeExtensionListHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: NodeVMExtensionList; - }; - }; +/** Optional parameters. */ +export interface ComputeNodeUploadBatchServiceLogsOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + computeNodeUploadBatchServiceLogsOptions?: ComputeNodeUploadBatchServiceLogsOptions; +} + +/** Contains response data for the uploadBatchServiceLogs operation. */ +export type ComputeNodeUploadBatchServiceLogsResponse = ComputeNodeUploadBatchServiceLogsHeaders & + UploadBatchServiceLogsResult; + +/** Optional parameters. */ +export interface ComputeNodeListOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + computeNodeListOptions?: ComputeNodeListOptions; +} + +/** Contains response data for the list operation. */ +export type ComputeNodeListResponse = ComputeNodeListHeaders & + ComputeNodeListResult; + +/** Optional parameters. */ +export interface ComputeNodeListNextOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + computeNodeListOptions?: ComputeNodeListOptions; +} + +/** Contains response data for the listNext operation. */ +export type ComputeNodeListNextResponse = ComputeNodeListNextHeaders & + ComputeNodeListResult; + +/** Optional parameters. */ +export interface ComputeNodeExtensionGetOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + computeNodeExtensionGetOptions?: ComputeNodeExtensionGetOptions; +} + +/** Contains response data for the get operation. */ +export type ComputeNodeExtensionGetResponse = ComputeNodeExtensionGetHeaders & + NodeVMExtension; + +/** Optional parameters. */ +export interface ComputeNodeExtensionListOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + computeNodeExtensionListOptions?: ComputeNodeExtensionListOptions; +} + +/** Contains response data for the list operation. */ +export type ComputeNodeExtensionListResponse = ComputeNodeExtensionListHeaders & + NodeVMExtensionList; + +/** Optional parameters. */ +export interface ComputeNodeExtensionListNextOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + computeNodeExtensionListOptions?: ComputeNodeExtensionListOptions; +} + +/** Contains response data for the listNext operation. */ +export type ComputeNodeExtensionListNextResponse = ComputeNodeExtensionListNextHeaders & + NodeVMExtensionList; + +/** Optional parameters. */ +export interface BatchServiceClientOptionalParams + extends coreClient.ServiceClientOptions { + /** Api Version */ + apiVersion?: string; + /** Overrides client endpoint. */ + endpoint?: string; +} diff --git a/sdk/batch/batch/src/models/jobMappers.ts b/sdk/batch/batch/src/models/jobMappers.ts deleted file mode 100644 index a03190abf3e5..000000000000 --- a/sdk/batch/batch/src/models/jobMappers.ts +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - ApplicationPackageReference, - AuthenticationTokenSettings, - AutoPoolSpecification, - AutoUserSpecification, - AzureBlobFileSystemConfiguration, - AzureFileShareConfiguration, - BatchError, - BatchErrorDetail, - CertificateReference, - CIFSMountConfiguration, - CloudJob, - CloudJobListPreparationAndReleaseTaskStatusResult, - CloudJobListResult, - CloudServiceConfiguration, - ComputeNodeIdentityReference, - ContainerConfiguration, - ContainerRegistry, - DataDisk, - DiffDiskSettings, - DiskEncryptionConfiguration, - EnvironmentSetting, - ErrorMessage, - ImageReference, - InboundNATPool, - JobAddHeaders, - JobAddParameter, - JobConstraints, - JobDeleteHeaders, - JobDisableHeaders, - JobDisableParameter, - JobEnableHeaders, - JobExecutionInformation, - JobGetAllLifetimeStatisticsHeaders, - JobGetHeaders, - JobGetTaskCountsHeaders, - JobListFromJobScheduleHeaders, - JobListHeaders, - JobListPreparationAndReleaseTaskStatusHeaders, - JobManagerTask, - JobNetworkConfiguration, - JobPatchHeaders, - JobPatchParameter, - JobPreparationAndReleaseTaskExecutionInformation, - JobPreparationTask, - JobPreparationTaskExecutionInformation, - JobReleaseTask, - JobReleaseTaskExecutionInformation, - JobSchedulingError, - JobStatistics, - JobTerminateHeaders, - JobTerminateParameter, - JobUpdateHeaders, - JobUpdateParameter, - LinuxUserConfiguration, - MetadataItem, - MountConfiguration, - NameValuePair, - NetworkConfiguration, - NetworkSecurityGroupRule, - NFSMountConfiguration, - NodePlacementConfiguration, - OSDisk, - OutputFile, - OutputFileBlobContainerDestination, - OutputFileDestination, - OutputFileUploadOptions, - PoolEndpointConfiguration, - PoolInformation, - PoolSpecification, - PublicIPAddressConfiguration, - ResourceFile, - StartTask, - TaskConstraints, - TaskContainerExecutionInformation, - TaskContainerSettings, - TaskCounts, - TaskCountsResult, - TaskFailureInformation, - TaskSchedulingPolicy, - TaskSlotCounts, - UserAccount, - UserIdentity, - VirtualMachineConfiguration, - VMExtension, - WindowsConfiguration, - WindowsUserConfiguration -} from "../models/mappers"; diff --git a/sdk/batch/batch/src/models/jobScheduleMappers.ts b/sdk/batch/batch/src/models/jobScheduleMappers.ts deleted file mode 100644 index 975c00b19a76..000000000000 --- a/sdk/batch/batch/src/models/jobScheduleMappers.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - ApplicationPackageReference, - AuthenticationTokenSettings, - AutoPoolSpecification, - AutoUserSpecification, - AzureBlobFileSystemConfiguration, - AzureFileShareConfiguration, - BatchError, - BatchErrorDetail, - CertificateReference, - CIFSMountConfiguration, - CloudJobSchedule, - CloudJobScheduleListResult, - CloudServiceConfiguration, - ComputeNodeIdentityReference, - ContainerConfiguration, - ContainerRegistry, - DataDisk, - DiffDiskSettings, - DiskEncryptionConfiguration, - EnvironmentSetting, - ErrorMessage, - ImageReference, - InboundNATPool, - JobConstraints, - JobManagerTask, - JobNetworkConfiguration, - JobPreparationTask, - JobReleaseTask, - JobScheduleAddHeaders, - JobScheduleAddParameter, - JobScheduleDeleteHeaders, - JobScheduleDisableHeaders, - JobScheduleEnableHeaders, - JobScheduleExecutionInformation, - JobScheduleExistsHeaders, - JobScheduleGetHeaders, - JobScheduleListHeaders, - JobSchedulePatchHeaders, - JobSchedulePatchParameter, - JobScheduleStatistics, - JobScheduleTerminateHeaders, - JobScheduleUpdateHeaders, - JobScheduleUpdateParameter, - JobSpecification, - LinuxUserConfiguration, - MetadataItem, - MountConfiguration, - NetworkConfiguration, - NetworkSecurityGroupRule, - NFSMountConfiguration, - NodePlacementConfiguration, - OSDisk, - OutputFile, - OutputFileBlobContainerDestination, - OutputFileDestination, - OutputFileUploadOptions, - PoolEndpointConfiguration, - PoolInformation, - PoolSpecification, - PublicIPAddressConfiguration, - RecentJob, - ResourceFile, - Schedule, - StartTask, - TaskConstraints, - TaskContainerSettings, - TaskSchedulingPolicy, - UserAccount, - UserIdentity, - VirtualMachineConfiguration, - VMExtension, - WindowsConfiguration, - WindowsUserConfiguration -} from "../models/mappers"; diff --git a/sdk/batch/batch/src/models/mappers.ts b/sdk/batch/batch/src/models/mappers.ts index 344cf119be88..a96bbed4865b 100644 --- a/sdk/batch/batch/src/models/mappers.ts +++ b/sdk/batch/batch/src/models/mappers.ts @@ -6,96 +6,138 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; -import * as msRest from "@azure/ms-rest-js"; +import * as coreClient from "@azure/core-client"; -export const CloudError = CloudErrorMapper; -export const BaseResource = BaseResourceMapper; - -export const PoolUsageMetrics: msRest.CompositeMapper = { - serializedName: "PoolUsageMetrics", +export const ApplicationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolUsageMetrics", + className: "ApplicationListResult", modelProperties: { - poolId: { - required: true, - serializedName: "poolId", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationSummary" + } + } } }, - startTime: { - required: true, - serializedName: "startTime", + odataNextLink: { + serializedName: "odata\\.nextLink", type: { - name: "DateTime" + name: "String" } - }, - endTime: { + } + } + } +}; + +export const ApplicationSummary: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationSummary", + modelProperties: { + id: { + serializedName: "id", required: true, - serializedName: "endTime", type: { - name: "DateTime" + name: "String" } }, - vmSize: { + displayName: { + serializedName: "displayName", required: true, - serializedName: "vmSize", type: { name: "String" } }, - totalCoreHours: { + versions: { + serializedName: "versions", required: true, - serializedName: "totalCoreHours", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ImageReference: msRest.CompositeMapper = { - serializedName: "ImageReference", +export const BatchError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageReference", + className: "BatchError", modelProperties: { - publisher: { - serializedName: "publisher", + code: { + serializedName: "code", type: { name: "String" } }, - offer: { - serializedName: "offer", + message: { + serializedName: "message", type: { - name: "String" + name: "Composite", + className: "ErrorMessage" } }, - sku: { - serializedName: "sku", + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BatchErrorDetail" + } + } + } + } + } + } +}; + +export const ErrorMessage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorMessage", + modelProperties: { + lang: { + serializedName: "lang", type: { name: "String" } }, - version: { - serializedName: "version", + value: { + serializedName: "value", type: { name: "String" } - }, - virtualMachineImageId: { - serializedName: "virtualMachineImageId", + } + } + } +}; + +export const BatchErrorDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchErrorDetail", + modelProperties: { + key: { + serializedName: "key", type: { name: "String" } }, - exactVersion: { - readOnly: true, - serializedName: "exactVersion", + value: { + serializedName: "value", type: { name: "String" } @@ -104,210 +146,362 @@ export const ImageReference: msRest.CompositeMapper = { } }; -export const ImageInformation: msRest.CompositeMapper = { - serializedName: "ImageInformation", +export const PoolListUsageMetricsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageInformation", + className: "PoolListUsageMetricsResult", modelProperties: { - nodeAgentSKUId: { - required: true, - serializedName: "nodeAgentSKUId", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PoolUsageMetrics" + } + } } }, - imageReference: { + odataNextLink: { + serializedName: "odata\\.nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PoolUsageMetrics: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PoolUsageMetrics", + modelProperties: { + poolId: { + serializedName: "poolId", required: true, - serializedName: "imageReference", type: { - name: "Composite", - className: "ImageReference" + name: "String" } }, - osType: { + startTime: { + serializedName: "startTime", required: true, - serializedName: "osType", type: { - name: "Enum", - allowedValues: ["linux", "windows"] + name: "DateTime" } }, - capabilities: { - serializedName: "capabilities", + endTime: { + serializedName: "endTime", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "DateTime" } }, - batchSupportEndOfLife: { - serializedName: "batchSupportEndOfLife", + vmSize: { + serializedName: "vmSize", + required: true, type: { - name: "DateTime" + name: "String" } }, - verificationType: { + totalCoreHours: { + serializedName: "totalCoreHours", required: true, - serializedName: "verificationType", type: { - name: "Enum", - allowedValues: ["verified", "unverified"] + name: "Number" } } } } }; -export const AuthenticationTokenSettings: msRest.CompositeMapper = { - serializedName: "AuthenticationTokenSettings", +export const AccountListSupportedImagesResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AuthenticationTokenSettings", + className: "AccountListSupportedImagesResult", modelProperties: { - access: { - serializedName: "access", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "Enum", - allowedValues: ["job"] + name: "Composite", + className: "ImageInformation" } } } + }, + odataNextLink: { + serializedName: "odata\\.nextLink", + type: { + name: "String" + } } } } }; -export const UsageStatistics: msRest.CompositeMapper = { - serializedName: "UsageStatistics", +export const ImageInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsageStatistics", + className: "ImageInformation", modelProperties: { - startTime: { + nodeAgentSKUId: { + serializedName: "nodeAgentSKUId", required: true, - serializedName: "startTime", type: { - name: "DateTime" + name: "String" } }, - lastUpdateTime: { + imageReference: { + serializedName: "imageReference", + type: { + name: "Composite", + className: "ImageReference" + } + }, + osType: { + serializedName: "osType", required: true, - serializedName: "lastUpdateTime", + type: { + name: "Enum", + allowedValues: ["linux", "windows"] + } + }, + capabilities: { + serializedName: "capabilities", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + batchSupportEndOfLife: { + serializedName: "batchSupportEndOfLife", type: { name: "DateTime" } }, - dedicatedCoreTime: { + verificationType: { + serializedName: "verificationType", required: true, - serializedName: "dedicatedCoreTime", type: { - name: "TimeSpan" + name: "Enum", + allowedValues: ["verified", "unverified"] } } } } }; -export const ResourceStatistics: msRest.CompositeMapper = { - serializedName: "ResourceStatistics", +export const ImageReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceStatistics", + className: "ImageReference", modelProperties: { - startTime: { - required: true, - serializedName: "startTime", + publisher: { + serializedName: "publisher", type: { - name: "DateTime" + name: "String" } }, - lastUpdateTime: { - required: true, - serializedName: "lastUpdateTime", + offer: { + serializedName: "offer", type: { - name: "DateTime" + name: "String" } }, - avgCPUPercentage: { + sku: { + serializedName: "sku", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + }, + virtualMachineImageId: { + serializedName: "virtualMachineImageId", + type: { + name: "String" + } + }, + exactVersion: { + serializedName: "exactVersion", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PoolNodeCountsListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PoolNodeCountsListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PoolNodeCounts" + } + } + } + }, + odataNextLink: { + serializedName: "odata\\.nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PoolNodeCounts: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PoolNodeCounts", + modelProperties: { + poolId: { + serializedName: "poolId", + required: true, + type: { + name: "String" + } + }, + dedicated: { + serializedName: "dedicated", + type: { + name: "Composite", + className: "NodeCounts" + } + }, + lowPriority: { + serializedName: "lowPriority", + type: { + name: "Composite", + className: "NodeCounts" + } + } + } + } +}; + +export const NodeCounts: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NodeCounts", + modelProperties: { + creating: { + serializedName: "creating", required: true, - serializedName: "avgCPUPercentage", type: { name: "Number" } }, - avgMemoryGiB: { + idle: { + serializedName: "idle", required: true, - serializedName: "avgMemoryGiB", type: { name: "Number" } }, - peakMemoryGiB: { + offline: { + serializedName: "offline", required: true, - serializedName: "peakMemoryGiB", type: { name: "Number" } }, - avgDiskGiB: { + preempted: { + serializedName: "preempted", required: true, - serializedName: "avgDiskGiB", type: { name: "Number" } }, - peakDiskGiB: { + rebooting: { + serializedName: "rebooting", required: true, - serializedName: "peakDiskGiB", type: { name: "Number" } }, - diskReadIOps: { + reimaging: { + serializedName: "reimaging", required: true, - serializedName: "diskReadIOps", type: { name: "Number" } }, - diskWriteIOps: { + running: { + serializedName: "running", required: true, - serializedName: "diskWriteIOps", type: { name: "Number" } }, - diskReadGiB: { + starting: { + serializedName: "starting", required: true, - serializedName: "diskReadGiB", type: { name: "Number" } }, - diskWriteGiB: { + startTaskFailed: { + serializedName: "startTaskFailed", required: true, - serializedName: "diskWriteGiB", type: { name: "Number" } }, - networkReadGiB: { + leavingPool: { + serializedName: "leavingPool", required: true, - serializedName: "networkReadGiB", type: { name: "Number" } }, - networkWriteGiB: { + unknown: { + serializedName: "unknown", + required: true, + type: { + name: "Number" + } + }, + unusable: { + serializedName: "unusable", + required: true, + type: { + name: "Number" + } + }, + waitingForStartTask: { + serializedName: "waitingForStartTask", + required: true, + type: { + name: "Number" + } + }, + total: { + serializedName: "total", required: true, - serializedName: "networkWriteGiB", type: { name: "Number" } @@ -316,29 +510,28 @@ export const ResourceStatistics: msRest.CompositeMapper = { } }; -export const PoolStatistics: msRest.CompositeMapper = { - serializedName: "PoolStatistics", +export const PoolStatistics: coreClient.CompositeMapper = { type: { name: "Composite", className: "PoolStatistics", modelProperties: { url: { - required: true, serializedName: "url", + required: true, type: { name: "String" } }, startTime: { - required: true, serializedName: "startTime", + required: true, type: { name: "DateTime" } }, lastUpdateTime: { - required: true, serializedName: "lastUpdateTime", + required: true, type: { name: "DateTime" } @@ -361,172 +554,314 @@ export const PoolStatistics: msRest.CompositeMapper = { } }; -export const JobStatistics: msRest.CompositeMapper = { - serializedName: "JobStatistics", +export const UsageStatistics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobStatistics", + className: "UsageStatistics", modelProperties: { - url: { + startTime: { + serializedName: "startTime", required: true, - serializedName: "url", type: { - name: "String" + name: "DateTime" } }, - startTime: { + lastUpdateTime: { + serializedName: "lastUpdateTime", required: true, + type: { + name: "DateTime" + } + }, + dedicatedCoreTime: { + serializedName: "dedicatedCoreTime", + required: true, + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const ResourceStatistics: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceStatistics", + modelProperties: { + startTime: { serializedName: "startTime", + required: true, type: { name: "DateTime" } }, lastUpdateTime: { - required: true, serializedName: "lastUpdateTime", + required: true, type: { name: "DateTime" } }, - userCPUTime: { + avgCPUPercentage: { + serializedName: "avgCPUPercentage", required: true, - serializedName: "userCPUTime", type: { - name: "TimeSpan" + name: "Number" } }, - kernelCPUTime: { + avgMemoryGiB: { + serializedName: "avgMemoryGiB", required: true, - serializedName: "kernelCPUTime", type: { - name: "TimeSpan" + name: "Number" } }, - wallClockTime: { + peakMemoryGiB: { + serializedName: "peakMemoryGiB", required: true, - serializedName: "wallClockTime", type: { - name: "TimeSpan" + name: "Number" } }, - readIOps: { + avgDiskGiB: { + serializedName: "avgDiskGiB", required: true, - serializedName: "readIOps", type: { name: "Number" } }, - writeIOps: { + peakDiskGiB: { + serializedName: "peakDiskGiB", required: true, - serializedName: "writeIOps", type: { name: "Number" } }, - readIOGiB: { + diskReadIOps: { + serializedName: "diskReadIOps", required: true, - serializedName: "readIOGiB", type: { name: "Number" } }, - writeIOGiB: { + diskWriteIOps: { + serializedName: "diskWriteIOps", required: true, - serializedName: "writeIOGiB", type: { name: "Number" } }, - numSucceededTasks: { + diskReadGiB: { + serializedName: "diskReadGiB", required: true, - serializedName: "numSucceededTasks", type: { name: "Number" } }, - numFailedTasks: { + diskWriteGiB: { + serializedName: "diskWriteGiB", required: true, - serializedName: "numFailedTasks", type: { name: "Number" } }, - numTaskRetries: { + networkReadGiB: { + serializedName: "networkReadGiB", required: true, - serializedName: "numTaskRetries", type: { name: "Number" } }, - waitTime: { + networkWriteGiB: { + serializedName: "networkWriteGiB", required: true, - serializedName: "waitTime", type: { - name: "TimeSpan" + name: "Number" } } } } }; -export const NameValuePair: msRest.CompositeMapper = { - serializedName: "NameValuePair", +export const JobStatistics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NameValuePair", + className: "JobStatistics", modelProperties: { - name: { - serializedName: "name", + url: { + serializedName: "url", + required: true, type: { name: "String" } }, - value: { - serializedName: "value", + startTime: { + serializedName: "startTime", + required: true, type: { - name: "String" + name: "DateTime" + } + }, + lastUpdateTime: { + serializedName: "lastUpdateTime", + required: true, + type: { + name: "DateTime" + } + }, + userCPUTime: { + serializedName: "userCPUTime", + required: true, + type: { + name: "TimeSpan" + } + }, + kernelCPUTime: { + serializedName: "kernelCPUTime", + required: true, + type: { + name: "TimeSpan" + } + }, + wallClockTime: { + serializedName: "wallClockTime", + required: true, + type: { + name: "TimeSpan" + } + }, + readIOps: { + serializedName: "readIOps", + required: true, + type: { + name: "Number" + } + }, + writeIOps: { + serializedName: "writeIOps", + required: true, + type: { + name: "Number" + } + }, + readIOGiB: { + serializedName: "readIOGiB", + required: true, + type: { + name: "Number" + } + }, + writeIOGiB: { + serializedName: "writeIOGiB", + required: true, + type: { + name: "Number" + } + }, + numSucceededTasks: { + serializedName: "numSucceededTasks", + required: true, + type: { + name: "Number" + } + }, + numFailedTasks: { + serializedName: "numFailedTasks", + required: true, + type: { + name: "Number" + } + }, + numTaskRetries: { + serializedName: "numTaskRetries", + required: true, + type: { + name: "Number" + } + }, + waitTime: { + serializedName: "waitTime", + required: true, + type: { + name: "TimeSpan" } } } } }; -export const DeleteCertificateError: msRest.CompositeMapper = { - serializedName: "DeleteCertificateError", +export const CertificateAddParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeleteCertificateError", + className: "CertificateAddParameter", modelProperties: { - code: { - serializedName: "code", + thumbprint: { + serializedName: "thumbprint", + required: true, type: { name: "String" } }, - message: { - serializedName: "message", + thumbprintAlgorithm: { + serializedName: "thumbprintAlgorithm", + required: true, type: { name: "String" } }, - values: { - serializedName: "values", + data: { + serializedName: "data", + required: true, + type: { + name: "String" + } + }, + certificateFormat: { + serializedName: "certificateFormat", + type: { + name: "Enum", + allowedValues: ["pfx", "cer"] + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CertificateListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NameValuePair" + className: "Certificate" } } } + }, + odataNextLink: { + serializedName: "odata\\.nextLink", + type: { + name: "String" + } } } } }; -export const Certificate: msRest.CompositeMapper = { - serializedName: "Certificate", +export const Certificate: coreClient.CompositeMapper = { type: { name: "Composite", className: "Certificate", @@ -592,111 +927,122 @@ export const Certificate: msRest.CompositeMapper = { } }; -export const ApplicationPackageReference: msRest.CompositeMapper = { - serializedName: "ApplicationPackageReference", +export const DeleteCertificateError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationPackageReference", + className: "DeleteCertificateError", modelProperties: { - applicationId: { - required: true, - serializedName: "applicationId", + code: { + serializedName: "code", type: { name: "String" } }, - version: { - serializedName: "version", + message: { + serializedName: "message", type: { name: "String" } + }, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NameValuePair" + } + } + } } } } }; -export const ApplicationSummary: msRest.CompositeMapper = { - serializedName: "ApplicationSummary", +export const NameValuePair: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationSummary", + className: "NameValuePair", modelProperties: { - id: { - required: true, - serializedName: "id", + name: { + serializedName: "name", type: { name: "String" } }, - displayName: { - required: true, - serializedName: "displayName", + value: { + serializedName: "value", type: { name: "String" } - }, - versions: { - required: true, - serializedName: "versions", + } + } + } +}; + +export const NodeFileListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NodeFileListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "NodeFile" } } } + }, + odataNextLink: { + serializedName: "odata\\.nextLink", + type: { + name: "String" + } } } } }; -export const CertificateAddParameter: msRest.CompositeMapper = { - serializedName: "CertificateAddParameter", +export const NodeFile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateAddParameter", + className: "NodeFile", modelProperties: { - thumbprint: { - required: true, - serializedName: "thumbprint", - type: { - name: "String" - } - }, - thumbprintAlgorithm: { - required: true, - serializedName: "thumbprintAlgorithm", + name: { + serializedName: "name", type: { name: "String" } }, - data: { - required: true, - serializedName: "data", + url: { + serializedName: "url", type: { name: "String" } }, - certificateFormat: { - serializedName: "certificateFormat", + isDirectory: { + serializedName: "isDirectory", type: { - name: "Enum", - allowedValues: ["pfx", "cer"] + name: "Boolean" } }, - password: { - serializedName: "password", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "FileProperties" } } } } }; -export const FileProperties: msRest.CompositeMapper = { - serializedName: "FileProperties", +export const FileProperties: coreClient.CompositeMapper = { type: { name: "Composite", className: "FileProperties", @@ -708,15 +1054,15 @@ export const FileProperties: msRest.CompositeMapper = { } }, lastModified: { - required: true, serializedName: "lastModified", + required: true, type: { name: "DateTime" } }, contentLength: { - required: true, serializedName: "contentLength", + required: true, type: { name: "Number" } @@ -737,14 +1083,19 @@ export const FileProperties: msRest.CompositeMapper = { } }; -export const NodeFile: msRest.CompositeMapper = { - serializedName: "NodeFile", +export const CloudJobSchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeFile", + className: "CloudJobSchedule", modelProperties: { - name: { - serializedName: "name", + id: { + serializedName: "id", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", type: { name: "String" } @@ -755,25 +1106,107 @@ export const NodeFile: msRest.CompositeMapper = { name: "String" } }, - isDirectory: { - serializedName: "isDirectory", + eTag: { + serializedName: "eTag", type: { - name: "Boolean" + name: "String" } }, - properties: { - serializedName: "properties", + lastModified: { + serializedName: "lastModified", type: { - name: "Composite", - className: "FileProperties" + name: "DateTime" + } + }, + creationTime: { + serializedName: "creationTime", + type: { + name: "DateTime" + } + }, + state: { + serializedName: "state", + type: { + name: "Enum", + allowedValues: [ + "active", + "completed", + "disabled", + "terminating", + "deleting" + ] + } + }, + stateTransitionTime: { + serializedName: "stateTransitionTime", + type: { + name: "DateTime" + } + }, + previousState: { + serializedName: "previousState", + type: { + name: "Enum", + allowedValues: [ + "active", + "completed", + "disabled", + "terminating", + "deleting" + ] + } + }, + previousStateTransitionTime: { + serializedName: "previousStateTransitionTime", + type: { + name: "DateTime" + } + }, + schedule: { + serializedName: "schedule", + type: { + name: "Composite", + className: "Schedule" + } + }, + jobSpecification: { + serializedName: "jobSpecification", + type: { + name: "Composite", + className: "JobSpecification" + } + }, + executionInfo: { + serializedName: "executionInfo", + type: { + name: "Composite", + className: "JobScheduleExecutionInformation" + } + }, + metadata: { + serializedName: "metadata", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } + } + }, + stats: { + serializedName: "stats", + type: { + name: "Composite", + className: "JobScheduleStatistics" } } } } }; -export const Schedule: msRest.CompositeMapper = { - serializedName: "Schedule", +export const Schedule: coreClient.CompositeMapper = { type: { name: "Composite", className: "Schedule", @@ -806,37 +1239,134 @@ export const Schedule: msRest.CompositeMapper = { } }; -export const JobConstraints: msRest.CompositeMapper = { - serializedName: "JobConstraints", +export const JobSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobConstraints", + className: "JobSpecification", modelProperties: { - maxWallClockTime: { - serializedName: "maxWallClockTime", + priority: { + serializedName: "priority", type: { - name: "TimeSpan" + name: "Number" } }, - maxTaskRetryCount: { - serializedName: "maxTaskRetryCount", + allowTaskPreemption: { + serializedName: "allowTaskPreemption", + type: { + name: "Boolean" + } + }, + maxParallelTasks: { + defaultValue: -1, + serializedName: "maxParallelTasks", type: { name: "Number" } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + usesTaskDependencies: { + serializedName: "usesTaskDependencies", + type: { + name: "Boolean" + } + }, + onAllTasksComplete: { + serializedName: "onAllTasksComplete", + type: { + name: "Enum", + allowedValues: ["noaction", "terminatejob"] + } + }, + onTaskFailure: { + serializedName: "onTaskFailure", + type: { + name: "Enum", + allowedValues: ["noaction", "performexitoptionsjobaction"] + } + }, + networkConfiguration: { + serializedName: "networkConfiguration", + type: { + name: "Composite", + className: "JobNetworkConfiguration" + } + }, + constraints: { + serializedName: "constraints", + type: { + name: "Composite", + className: "JobConstraints" + } + }, + jobManagerTask: { + serializedName: "jobManagerTask", + type: { + name: "Composite", + className: "JobManagerTask" + } + }, + jobPreparationTask: { + serializedName: "jobPreparationTask", + type: { + name: "Composite", + className: "JobPreparationTask" + } + }, + jobReleaseTask: { + serializedName: "jobReleaseTask", + type: { + name: "Composite", + className: "JobReleaseTask" + } + }, + commonEnvironmentSettings: { + serializedName: "commonEnvironmentSettings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentSetting" + } + } + } + }, + poolInfo: { + serializedName: "poolInfo", + type: { + name: "Composite", + className: "PoolInformation" + } + }, + metadata: { + serializedName: "metadata", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } + } } } } }; -export const JobNetworkConfiguration: msRest.CompositeMapper = { - serializedName: "JobNetworkConfiguration", +export const JobNetworkConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", className: "JobNetworkConfiguration", modelProperties: { subnetId: { - required: true, serializedName: "subnetId", + required: true, type: { name: "String" } @@ -845,72 +1375,170 @@ export const JobNetworkConfiguration: msRest.CompositeMapper = { } }; -export const ComputeNodeIdentityReference: msRest.CompositeMapper = { - serializedName: "ComputeNodeIdentityReference", +export const JobConstraints: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeIdentityReference", + className: "JobConstraints", modelProperties: { - resourceId: { - serializedName: "resourceId", + maxWallClockTime: { + serializedName: "maxWallClockTime", type: { - name: "String" + name: "TimeSpan" + } + }, + maxTaskRetryCount: { + serializedName: "maxTaskRetryCount", + type: { + name: "Number" } } } } }; -export const ContainerRegistry: msRest.CompositeMapper = { - serializedName: "ContainerRegistry", +export const JobManagerTask: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContainerRegistry", + className: "JobManagerTask", modelProperties: { - userName: { - serializedName: "username", + id: { + serializedName: "id", + required: true, type: { name: "String" } }, - password: { - serializedName: "password", + displayName: { + serializedName: "displayName", type: { name: "String" } }, - registryServer: { - serializedName: "registryServer", + commandLine: { + serializedName: "commandLine", + required: true, type: { name: "String" } }, - identityReference: { - serializedName: "identityReference", + containerSettings: { + serializedName: "containerSettings", type: { name: "Composite", - className: "ComputeNodeIdentityReference" + className: "TaskContainerSettings" } - } - } - } -}; - -export const TaskContainerSettings: msRest.CompositeMapper = { - serializedName: "TaskContainerSettings", - type: { - name: "Composite", - className: "TaskContainerSettings", - modelProperties: { - containerRunOptions: { - serializedName: "containerRunOptions", + }, + resourceFiles: { + serializedName: "resourceFiles", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceFile" + } + } } }, - imageName: { - required: true, - serializedName: "imageName", + outputFiles: { + serializedName: "outputFiles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutputFile" + } + } + } + }, + environmentSettings: { + serializedName: "environmentSettings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentSetting" + } + } + } + }, + constraints: { + serializedName: "constraints", + type: { + name: "Composite", + className: "TaskConstraints" + } + }, + requiredSlots: { + serializedName: "requiredSlots", + type: { + name: "Number" + } + }, + killJobOnCompletion: { + serializedName: "killJobOnCompletion", + type: { + name: "Boolean" + } + }, + userIdentity: { + serializedName: "userIdentity", + type: { + name: "Composite", + className: "UserIdentity" + } + }, + runExclusive: { + serializedName: "runExclusive", + type: { + name: "Boolean" + } + }, + applicationPackageReferences: { + serializedName: "applicationPackageReferences", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationPackageReference" + } + } + } + }, + authenticationTokenSettings: { + serializedName: "authenticationTokenSettings", + type: { + name: "Composite", + className: "AuthenticationTokenSettings" + } + }, + allowLowPriorityNode: { + serializedName: "allowLowPriorityNode", + type: { + name: "Boolean" + } + } + } + } +}; + +export const TaskContainerSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TaskContainerSettings", + modelProperties: { + containerRunOptions: { + serializedName: "containerRunOptions", + type: { + name: "String" + } + }, + imageName: { + serializedName: "imageName", + required: true, type: { name: "String" } @@ -933,8 +1561,56 @@ export const TaskContainerSettings: msRest.CompositeMapper = { } }; -export const ResourceFile: msRest.CompositeMapper = { - serializedName: "ResourceFile", +export const ContainerRegistry: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContainerRegistry", + modelProperties: { + userName: { + serializedName: "username", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + }, + registryServer: { + serializedName: "registryServer", + type: { + name: "String" + } + }, + identityReference: { + serializedName: "identityReference", + type: { + name: "Composite", + className: "ComputeNodeIdentityReference" + } + } + } + } +}; + +export const ComputeNodeIdentityReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeNodeIdentityReference", + modelProperties: { + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceFile: coreClient.CompositeMapper = { type: { name: "Composite", className: "ResourceFile", @@ -986,191 +1662,182 @@ export const ResourceFile: msRest.CompositeMapper = { } }; -export const EnvironmentSetting: msRest.CompositeMapper = { - serializedName: "EnvironmentSetting", +export const OutputFile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentSetting", + className: "OutputFile", modelProperties: { - name: { + filePattern: { + serializedName: "filePattern", required: true, - serializedName: "name", type: { name: "String" } }, - value: { - serializedName: "value", + destination: { + serializedName: "destination", type: { - name: "String" + name: "Composite", + className: "OutputFileDestination" + } + }, + uploadOptions: { + serializedName: "uploadOptions", + type: { + name: "Composite", + className: "OutputFileUploadOptions" } } } } }; -export const ExitOptions: msRest.CompositeMapper = { - serializedName: "ExitOptions", +export const OutputFileDestination: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExitOptions", + className: "OutputFileDestination", modelProperties: { - jobAction: { - serializedName: "jobAction", - type: { - name: "Enum", - allowedValues: ["none", "disable", "terminate"] - } - }, - dependencyAction: { - serializedName: "dependencyAction", + container: { + serializedName: "container", type: { - name: "Enum", - allowedValues: ["satisfy", "block"] + name: "Composite", + className: "OutputFileBlobContainerDestination" } } } } }; -export const ExitCodeMapping: msRest.CompositeMapper = { - serializedName: "ExitCodeMapping", +export const OutputFileBlobContainerDestination: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExitCodeMapping", + className: "OutputFileBlobContainerDestination", modelProperties: { - code: { - required: true, - serializedName: "code", + path: { + serializedName: "path", type: { - name: "Number" + name: "String" } }, - exitOptions: { + containerUrl: { + serializedName: "containerUrl", required: true, - serializedName: "exitOptions", + type: { + name: "String" + } + }, + identityReference: { + serializedName: "identityReference", type: { name: "Composite", - className: "ExitOptions" + className: "ComputeNodeIdentityReference" + } + }, + uploadHeaders: { + serializedName: "uploadHeaders", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HttpHeader" + } + } } } } } }; -export const ExitCodeRangeMapping: msRest.CompositeMapper = { - serializedName: "ExitCodeRangeMapping", +export const HttpHeader: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExitCodeRangeMapping", + className: "HttpHeader", modelProperties: { - start: { + name: { + serializedName: "name", required: true, - serializedName: "start", type: { - name: "Number" + name: "String" } }, - end: { - required: true, - serializedName: "end", + value: { + serializedName: "value", type: { - name: "Number" + name: "String" } - }, - exitOptions: { + } + } + } +}; + +export const OutputFileUploadOptions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OutputFileUploadOptions", + modelProperties: { + uploadCondition: { + serializedName: "uploadCondition", required: true, - serializedName: "exitOptions", type: { - name: "Composite", - className: "ExitOptions" + name: "Enum", + allowedValues: ["tasksuccess", "taskfailure", "taskcompletion"] } } } } }; -export const ExitConditions: msRest.CompositeMapper = { - serializedName: "ExitConditions", +export const EnvironmentSetting: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExitConditions", + className: "EnvironmentSetting", modelProperties: { - exitCodes: { - serializedName: "exitCodes", + name: { + serializedName: "name", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExitCodeMapping" - } - } - } - }, - exitCodeRanges: { - serializedName: "exitCodeRanges", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExitCodeRangeMapping" - } - } - } - }, - preProcessingError: { - serializedName: "preProcessingError", - type: { - name: "Composite", - className: "ExitOptions" - } - }, - fileUploadError: { - serializedName: "fileUploadError", - type: { - name: "Composite", - className: "ExitOptions" + name: "String" } }, - default: { - serializedName: "default", + value: { + serializedName: "value", type: { - name: "Composite", - className: "ExitOptions" + name: "String" } } } } }; -export const AutoUserSpecification: msRest.CompositeMapper = { - serializedName: "AutoUserSpecification", +export const TaskConstraints: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoUserSpecification", + className: "TaskConstraints", modelProperties: { - scope: { - serializedName: "scope", + maxWallClockTime: { + serializedName: "maxWallClockTime", type: { - name: "Enum", - allowedValues: ["task", "pool"] + name: "TimeSpan" } }, - elevationLevel: { - serializedName: "elevationLevel", + retentionTime: { + serializedName: "retentionTime", type: { - name: "Enum", - allowedValues: ["nonadmin", "admin"] + name: "TimeSpan" + } + }, + maxTaskRetryCount: { + serializedName: "maxTaskRetryCount", + type: { + name: "Number" } } } } }; -export const UserIdentity: msRest.CompositeMapper = { - serializedName: "UserIdentity", +export const UserIdentity: coreClient.CompositeMapper = { type: { name: "Composite", className: "UserIdentity", @@ -1192,26 +1859,43 @@ export const UserIdentity: msRest.CompositeMapper = { } }; -export const LinuxUserConfiguration: msRest.CompositeMapper = { - serializedName: "LinuxUserConfiguration", +export const AutoUserSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LinuxUserConfiguration", + className: "AutoUserSpecification", modelProperties: { - uid: { - serializedName: "uid", + scope: { + serializedName: "scope", type: { - name: "Number" + name: "Enum", + allowedValues: ["task", "pool"] } }, - gid: { - serializedName: "gid", + elevationLevel: { + serializedName: "elevationLevel", type: { - name: "Number" + name: "Enum", + allowedValues: ["nonadmin", "admin"] + } + } + } + } +}; + +export const ApplicationPackageReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationPackageReference", + modelProperties: { + applicationId: { + serializedName: "applicationId", + required: true, + type: { + name: "String" } }, - sshPrivateKey: { - serializedName: "sshPrivateKey", + version: { + serializedName: "version", type: { name: "String" } @@ -1220,74 +1904,156 @@ export const LinuxUserConfiguration: msRest.CompositeMapper = { } }; -export const WindowsUserConfiguration: msRest.CompositeMapper = { - serializedName: "WindowsUserConfiguration", +export const AuthenticationTokenSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WindowsUserConfiguration", + className: "AuthenticationTokenSettings", modelProperties: { - loginMode: { - serializedName: "loginMode", + access: { + serializedName: "access", type: { - name: "Enum", - allowedValues: ["batch", "interactive"] + name: "Sequence", + element: { + defaultValue: "job", + isConstant: true, + type: { + name: "String" + } + } } } } } }; -export const UserAccount: msRest.CompositeMapper = { - serializedName: "UserAccount", +export const JobPreparationTask: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserAccount", + className: "JobPreparationTask", modelProperties: { - name: { - required: true, - serializedName: "name", + id: { + serializedName: "id", type: { name: "String" } }, - password: { + commandLine: { + serializedName: "commandLine", required: true, - serializedName: "password", type: { name: "String" } }, - elevationLevel: { - serializedName: "elevationLevel", + containerSettings: { + serializedName: "containerSettings", type: { - name: "Enum", - allowedValues: ["nonadmin", "admin"] + name: "Composite", + className: "TaskContainerSettings" } }, - linuxUserConfiguration: { - serializedName: "linuxUserConfiguration", + resourceFiles: { + serializedName: "resourceFiles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceFile" + } + } + } + }, + environmentSettings: { + serializedName: "environmentSettings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentSetting" + } + } + } + }, + constraints: { + serializedName: "constraints", type: { name: "Composite", - className: "LinuxUserConfiguration" + className: "TaskConstraints" } }, - windowsUserConfiguration: { - serializedName: "windowsUserConfiguration", + waitForSuccess: { + serializedName: "waitForSuccess", + type: { + name: "Boolean" + } + }, + userIdentity: { + serializedName: "userIdentity", type: { name: "Composite", - className: "WindowsUserConfiguration" + className: "UserIdentity" + } + }, + rerunOnNodeRebootAfterSuccess: { + serializedName: "rerunOnNodeRebootAfterSuccess", + type: { + name: "Boolean" } } } } }; -export const TaskConstraints: msRest.CompositeMapper = { - serializedName: "TaskConstraints", +export const JobReleaseTask: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskConstraints", + className: "JobReleaseTask", modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + commandLine: { + serializedName: "commandLine", + required: true, + type: { + name: "String" + } + }, + containerSettings: { + serializedName: "containerSettings", + type: { + name: "Composite", + className: "TaskContainerSettings" + } + }, + resourceFiles: { + serializedName: "resourceFiles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceFile" + } + } + } + }, + environmentSettings: { + serializedName: "environmentSettings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentSetting" + } + } + } + }, maxWallClockTime: { serializedName: "maxWallClockTime", type: { @@ -1300,580 +2066,362 @@ export const TaskConstraints: msRest.CompositeMapper = { name: "TimeSpan" } }, - maxTaskRetryCount: { - serializedName: "maxTaskRetryCount", + userIdentity: { + serializedName: "userIdentity", type: { - name: "Number" + name: "Composite", + className: "UserIdentity" } } } } }; -export const OutputFileBlobContainerDestination: msRest.CompositeMapper = { - serializedName: "OutputFileBlobContainerDestination", +export const PoolInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutputFileBlobContainerDestination", + className: "PoolInformation", modelProperties: { - path: { - serializedName: "path", - type: { - name: "String" - } - }, - containerUrl: { - required: true, - serializedName: "containerUrl", + poolId: { + serializedName: "poolId", type: { name: "String" } }, - identityReference: { - serializedName: "identityReference", + autoPoolSpecification: { + serializedName: "autoPoolSpecification", type: { name: "Composite", - className: "ComputeNodeIdentityReference" + className: "AutoPoolSpecification" } } } } }; -export const OutputFileDestination: msRest.CompositeMapper = { - serializedName: "OutputFileDestination", +export const AutoPoolSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutputFileDestination", + className: "AutoPoolSpecification", modelProperties: { - container: { - serializedName: "container", + autoPoolIdPrefix: { + serializedName: "autoPoolIdPrefix", type: { - name: "Composite", - className: "OutputFileBlobContainerDestination" + name: "String" } - } - } - } -}; - -export const OutputFileUploadOptions: msRest.CompositeMapper = { - serializedName: "OutputFileUploadOptions", - type: { - name: "Composite", - className: "OutputFileUploadOptions", - modelProperties: { - uploadCondition: { + }, + poolLifetimeOption: { + serializedName: "poolLifetimeOption", required: true, - serializedName: "uploadCondition", type: { name: "Enum", - allowedValues: ["tasksuccess", "taskfailure", "taskcompletion"] - } - } - } - } -}; - -export const OutputFile: msRest.CompositeMapper = { - serializedName: "OutputFile", - type: { - name: "Composite", - className: "OutputFile", - modelProperties: { - filePattern: { - required: true, - serializedName: "filePattern", - type: { - name: "String" + allowedValues: ["jobschedule", "job"] } }, - destination: { - required: true, - serializedName: "destination", + keepAlive: { + serializedName: "keepAlive", type: { - name: "Composite", - className: "OutputFileDestination" + name: "Boolean" } }, - uploadOptions: { - required: true, - serializedName: "uploadOptions", + pool: { + serializedName: "pool", type: { name: "Composite", - className: "OutputFileUploadOptions" + className: "PoolSpecification" } } } } }; -export const JobManagerTask: msRest.CompositeMapper = { - serializedName: "JobManagerTask", +export const PoolSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobManagerTask", + className: "PoolSpecification", modelProperties: { - id: { - required: true, - serializedName: "id", - type: { - name: "String" - } - }, displayName: { serializedName: "displayName", type: { name: "String" } }, - commandLine: { + vmSize: { + serializedName: "vmSize", required: true, - serializedName: "commandLine", type: { name: "String" } }, - containerSettings: { - serializedName: "containerSettings", + cloudServiceConfiguration: { + serializedName: "cloudServiceConfiguration", type: { name: "Composite", - className: "TaskContainerSettings" - } - }, - resourceFiles: { - serializedName: "resourceFiles", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceFile" - } - } + className: "CloudServiceConfiguration" } }, - outputFiles: { - serializedName: "outputFiles", + virtualMachineConfiguration: { + serializedName: "virtualMachineConfiguration", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OutputFile" - } - } + name: "Composite", + className: "VirtualMachineConfiguration" } }, - environmentSettings: { - serializedName: "environmentSettings", + taskSlotsPerNode: { + serializedName: "taskSlotsPerNode", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EnvironmentSetting" - } - } + name: "Number" } }, - constraints: { - serializedName: "constraints", + taskSchedulingPolicy: { + serializedName: "taskSchedulingPolicy", type: { name: "Composite", - className: "TaskConstraints" + className: "TaskSchedulingPolicy" } }, - requiredSlots: { - serializedName: "requiredSlots", + resizeTimeout: { + serializedName: "resizeTimeout", type: { - name: "Number" + name: "TimeSpan" } }, - killJobOnCompletion: { - serializedName: "killJobOnCompletion", + targetDedicatedNodes: { + serializedName: "targetDedicatedNodes", type: { - name: "Boolean" + name: "Number" } }, - userIdentity: { - serializedName: "userIdentity", + targetLowPriorityNodes: { + serializedName: "targetLowPriorityNodes", type: { - name: "Composite", - className: "UserIdentity" + name: "Number" } }, - runExclusive: { - serializedName: "runExclusive", + enableAutoScale: { + serializedName: "enableAutoScale", type: { name: "Boolean" } }, - applicationPackageReferences: { - serializedName: "applicationPackageReferences", + autoScaleFormula: { + serializedName: "autoScaleFormula", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationPackageReference" - } - } + name: "String" } }, - authenticationTokenSettings: { - serializedName: "authenticationTokenSettings", + autoScaleEvaluationInterval: { + serializedName: "autoScaleEvaluationInterval", type: { - name: "Composite", - className: "AuthenticationTokenSettings" + name: "TimeSpan" } }, - allowLowPriorityNode: { - serializedName: "allowLowPriorityNode", + enableInterNodeCommunication: { + serializedName: "enableInterNodeCommunication", type: { name: "Boolean" } - } - } - } -}; - -export const JobPreparationTask: msRest.CompositeMapper = { - serializedName: "JobPreparationTask", - type: { - name: "Composite", - className: "JobPreparationTask", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } }, - commandLine: { - required: true, - serializedName: "commandLine", + networkConfiguration: { + serializedName: "networkConfiguration", type: { - name: "String" + name: "Composite", + className: "NetworkConfiguration" } }, - containerSettings: { - serializedName: "containerSettings", + startTask: { + serializedName: "startTask", type: { name: "Composite", - className: "TaskContainerSettings" + className: "StartTask" } }, - resourceFiles: { - serializedName: "resourceFiles", + certificateReferences: { + serializedName: "certificateReferences", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourceFile" + className: "CertificateReference" } } } }, - environmentSettings: { - serializedName: "environmentSettings", + applicationPackageReferences: { + serializedName: "applicationPackageReferences", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EnvironmentSetting" + className: "ApplicationPackageReference" } } } }, - constraints: { - serializedName: "constraints", + applicationLicenses: { + serializedName: "applicationLicenses", type: { - name: "Composite", - className: "TaskConstraints" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - waitForSuccess: { - serializedName: "waitForSuccess", + userAccounts: { + serializedName: "userAccounts", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserAccount" + } + } } }, - userIdentity: { - serializedName: "userIdentity", + metadata: { + serializedName: "metadata", type: { - name: "Composite", - className: "UserIdentity" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } } }, - rerunOnNodeRebootAfterSuccess: { - serializedName: "rerunOnNodeRebootAfterSuccess", + mountConfiguration: { + serializedName: "mountConfiguration", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MountConfiguration" + } + } } } } } }; -export const JobReleaseTask: msRest.CompositeMapper = { - serializedName: "JobReleaseTask", +export const CloudServiceConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobReleaseTask", + className: "CloudServiceConfiguration", modelProperties: { - id: { - serializedName: "id", + osFamily: { + serializedName: "osFamily", + required: true, type: { name: "String" } }, - commandLine: { - required: true, - serializedName: "commandLine", + osVersion: { + serializedName: "osVersion", type: { name: "String" } - }, - containerSettings: { - serializedName: "containerSettings", - type: { - name: "Composite", - className: "TaskContainerSettings" - } - }, - resourceFiles: { - serializedName: "resourceFiles", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceFile" - } - } - } - }, - environmentSettings: { - serializedName: "environmentSettings", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EnvironmentSetting" - } - } - } - }, - maxWallClockTime: { - serializedName: "maxWallClockTime", - type: { - name: "TimeSpan" - } - }, - retentionTime: { - serializedName: "retentionTime", - type: { - name: "TimeSpan" - } - }, - userIdentity: { - serializedName: "userIdentity", - type: { - name: "Composite", - className: "UserIdentity" - } } } } }; -export const TaskSchedulingPolicy: msRest.CompositeMapper = { - serializedName: "TaskSchedulingPolicy", +export const VirtualMachineConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskSchedulingPolicy", + className: "VirtualMachineConfiguration", modelProperties: { - nodeFillType: { - required: true, - serializedName: "nodeFillType", + imageReference: { + serializedName: "imageReference", type: { - name: "Enum", - allowedValues: ["spread", "pack"] + name: "Composite", + className: "ImageReference" } - } - } - } -}; - -export const StartTask: msRest.CompositeMapper = { - serializedName: "StartTask", - type: { - name: "Composite", - className: "StartTask", - modelProperties: { - commandLine: { + }, + nodeAgentSKUId: { + serializedName: "nodeAgentSKUId", required: true, - serializedName: "commandLine", type: { name: "String" } }, - containerSettings: { - serializedName: "containerSettings", + windowsConfiguration: { + serializedName: "windowsConfiguration", type: { name: "Composite", - className: "TaskContainerSettings" - } - }, - resourceFiles: { - serializedName: "resourceFiles", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceFile" - } - } + className: "WindowsConfiguration" } }, - environmentSettings: { - serializedName: "environmentSettings", + dataDisks: { + serializedName: "dataDisks", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EnvironmentSetting" + className: "DataDisk" } } } }, - userIdentity: { - serializedName: "userIdentity", - type: { - name: "Composite", - className: "UserIdentity" - } - }, - maxTaskRetryCount: { - serializedName: "maxTaskRetryCount", - type: { - name: "Number" - } - }, - waitForSuccess: { - serializedName: "waitForSuccess", - type: { - name: "Boolean" - } - } - } - } -}; - -export const CertificateReference: msRest.CompositeMapper = { - serializedName: "CertificateReference", - type: { - name: "Composite", - className: "CertificateReference", - modelProperties: { - thumbprint: { - required: true, - serializedName: "thumbprint", + licenseType: { + serializedName: "licenseType", type: { name: "String" } }, - thumbprintAlgorithm: { - required: true, - serializedName: "thumbprintAlgorithm", + containerConfiguration: { + serializedName: "containerConfiguration", type: { - name: "String" + name: "Composite", + className: "ContainerConfiguration" } }, - storeLocation: { - serializedName: "storeLocation", + diskEncryptionConfiguration: { + serializedName: "diskEncryptionConfiguration", type: { - name: "Enum", - allowedValues: ["currentuser", "localmachine"] + name: "Composite", + className: "DiskEncryptionConfiguration" } }, - storeName: { - serializedName: "storeName", + nodePlacementConfiguration: { + serializedName: "nodePlacementConfiguration", type: { - name: "String" + name: "Composite", + className: "NodePlacementConfiguration" } }, - visibility: { - serializedName: "visibility", + extensions: { + serializedName: "extensions", type: { name: "Sequence", element: { type: { - name: "Enum", - allowedValues: ["starttask", "task", "remoteuser"] + name: "Composite", + className: "VMExtension" } } } - } - } - } -}; - -export const MetadataItem: msRest.CompositeMapper = { - serializedName: "MetadataItem", - type: { - name: "Composite", - className: "MetadataItem", - modelProperties: { - name: { - required: true, - serializedName: "name", - type: { - name: "String" - } - }, - value: { - required: true, - serializedName: "value", - type: { - name: "String" - } - } - } - } -}; - -export const CloudServiceConfiguration: msRest.CompositeMapper = { - serializedName: "CloudServiceConfiguration", - type: { - name: "Composite", - className: "CloudServiceConfiguration", - modelProperties: { - osFamily: { - required: true, - serializedName: "osFamily", - type: { - name: "String" - } }, - osVersion: { - serializedName: "osVersion", + osDisk: { + serializedName: "osDisk", type: { - name: "String" + name: "Composite", + className: "OSDisk" } } } } }; -export const WindowsConfiguration: msRest.CompositeMapper = { - serializedName: "WindowsConfiguration", +export const WindowsConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", className: "WindowsConfiguration", @@ -1888,15 +2436,14 @@ export const WindowsConfiguration: msRest.CompositeMapper = { } }; -export const DataDisk: msRest.CompositeMapper = { - serializedName: "DataDisk", +export const DataDisk: coreClient.CompositeMapper = { type: { name: "Composite", className: "DataDisk", modelProperties: { lun: { - required: true, serializedName: "lun", + required: true, type: { name: "Number" } @@ -1909,8 +2456,8 @@ export const DataDisk: msRest.CompositeMapper = { } }, diskSizeGB: { - required: true, serializedName: "diskSizeGB", + required: true, type: { name: "Number" } @@ -1926,17 +2473,15 @@ export const DataDisk: msRest.CompositeMapper = { } }; -export const ContainerConfiguration: msRest.CompositeMapper = { - serializedName: "ContainerConfiguration", +export const ContainerConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", className: "ContainerConfiguration", modelProperties: { type: { - required: true, + defaultValue: "dockerCompatible", isConstant: true, serializedName: "type", - defaultValue: "dockerCompatible", type: { name: "String" } @@ -1968,8 +2513,7 @@ export const ContainerConfiguration: msRest.CompositeMapper = { } }; -export const DiskEncryptionConfiguration: msRest.CompositeMapper = { - serializedName: "DiskEncryptionConfiguration", +export const DiskEncryptionConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", className: "DiskEncryptionConfiguration", @@ -1990,4355 +2534,189 @@ export const DiskEncryptionConfiguration: msRest.CompositeMapper = { } }; -export const NodePlacementConfiguration: msRest.CompositeMapper = { - serializedName: "NodePlacementConfiguration", - type: { - name: "Composite", - className: "NodePlacementConfiguration", - modelProperties: { - policy: { - serializedName: "policy", - type: { - name: "Enum", - allowedValues: ["regional", "zonal"] - } - } - } - } -}; - -export const VMExtension: msRest.CompositeMapper = { - serializedName: "VMExtension", +export const NodePlacementConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VMExtension", - modelProperties: { - name: { - required: true, - serializedName: "name", - type: { - name: "String" - } - }, - publisher: { - required: true, - serializedName: "publisher", - type: { - name: "String" - } - }, - type: { - required: true, - serializedName: "type", - type: { - name: "String" - } - }, - typeHandlerVersion: { - serializedName: "typeHandlerVersion", - type: { - name: "String" - } - }, - autoUpgradeMinorVersion: { - serializedName: "autoUpgradeMinorVersion", - type: { - name: "Boolean" - } - }, - settings: { - serializedName: "settings", - type: { - name: "Object" - } - }, - protectedSettings: { - serializedName: "protectedSettings", - type: { - name: "Object" - } - }, - provisionAfterExtensions: { - serializedName: "provisionAfterExtensions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const DiffDiskSettings: msRest.CompositeMapper = { - serializedName: "DiffDiskSettings", - type: { - name: "Composite", - className: "DiffDiskSettings", - modelProperties: { - placement: { - serializedName: "placement", - type: { - name: "Enum", - allowedValues: ["CacheDisk"] - } - } - } - } -}; - -export const OSDisk: msRest.CompositeMapper = { - serializedName: "OSDisk", - type: { - name: "Composite", - className: "OSDisk", - modelProperties: { - ephemeralOSDiskSettings: { - serializedName: "ephemeralOSDiskSettings", - type: { - name: "Composite", - className: "DiffDiskSettings" - } - } - } - } -}; - -export const VirtualMachineConfiguration: msRest.CompositeMapper = { - serializedName: "VirtualMachineConfiguration", - type: { - name: "Composite", - className: "VirtualMachineConfiguration", - modelProperties: { - imageReference: { - required: true, - serializedName: "imageReference", - type: { - name: "Composite", - className: "ImageReference" - } - }, - nodeAgentSKUId: { - required: true, - serializedName: "nodeAgentSKUId", - type: { - name: "String" - } - }, - windowsConfiguration: { - serializedName: "windowsConfiguration", - type: { - name: "Composite", - className: "WindowsConfiguration" - } - }, - dataDisks: { - serializedName: "dataDisks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataDisk" - } - } - } - }, - licenseType: { - serializedName: "licenseType", - type: { - name: "String" - } - }, - containerConfiguration: { - serializedName: "containerConfiguration", - type: { - name: "Composite", - className: "ContainerConfiguration" - } - }, - diskEncryptionConfiguration: { - serializedName: "diskEncryptionConfiguration", - type: { - name: "Composite", - className: "DiskEncryptionConfiguration" - } - }, - nodePlacementConfiguration: { - serializedName: "nodePlacementConfiguration", - type: { - name: "Composite", - className: "NodePlacementConfiguration" - } - }, - extensions: { - serializedName: "extensions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VMExtension" - } - } - } - }, - osDisk: { - serializedName: "osDisk", - type: { - name: "Composite", - className: "OSDisk" - } - } - } - } -}; - -export const NetworkSecurityGroupRule: msRest.CompositeMapper = { - serializedName: "NetworkSecurityGroupRule", - type: { - name: "Composite", - className: "NetworkSecurityGroupRule", - modelProperties: { - priority: { - required: true, - serializedName: "priority", - type: { - name: "Number" - } - }, - access: { - required: true, - serializedName: "access", - type: { - name: "Enum", - allowedValues: ["allow", "deny"] - } - }, - sourceAddressPrefix: { - required: true, - serializedName: "sourceAddressPrefix", - type: { - name: "String" - } - }, - sourcePortRanges: { - serializedName: "sourcePortRanges", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const InboundNATPool: msRest.CompositeMapper = { - serializedName: "InboundNATPool", - type: { - name: "Composite", - className: "InboundNATPool", - modelProperties: { - name: { - required: true, - serializedName: "name", - type: { - name: "String" - } - }, - protocol: { - required: true, - serializedName: "protocol", - type: { - name: "Enum", - allowedValues: ["tcp", "udp"] - } - }, - backendPort: { - required: true, - serializedName: "backendPort", - type: { - name: "Number" - } - }, - frontendPortRangeStart: { - required: true, - serializedName: "frontendPortRangeStart", - type: { - name: "Number" - } - }, - frontendPortRangeEnd: { - required: true, - serializedName: "frontendPortRangeEnd", - type: { - name: "Number" - } - }, - networkSecurityGroupRules: { - serializedName: "networkSecurityGroupRules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkSecurityGroupRule" - } - } - } - } - } - } -}; - -export const PoolEndpointConfiguration: msRest.CompositeMapper = { - serializedName: "PoolEndpointConfiguration", - type: { - name: "Composite", - className: "PoolEndpointConfiguration", - modelProperties: { - inboundNATPools: { - required: true, - serializedName: "inboundNATPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InboundNATPool" - } - } - } - } - } - } -}; - -export const PublicIPAddressConfiguration: msRest.CompositeMapper = { - serializedName: "PublicIPAddressConfiguration", - type: { - name: "Composite", - className: "PublicIPAddressConfiguration", - modelProperties: { - provision: { - serializedName: "provision", - type: { - name: "Enum", - allowedValues: ["batchmanaged", "usermanaged", "nopublicipaddresses"] - } - }, - ipAddressIds: { - serializedName: "ipAddressIds", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const NetworkConfiguration: msRest.CompositeMapper = { - serializedName: "NetworkConfiguration", - type: { - name: "Composite", - className: "NetworkConfiguration", - modelProperties: { - subnetId: { - serializedName: "subnetId", - type: { - name: "String" - } - }, - dynamicVNetAssignmentScope: { - serializedName: "dynamicVNetAssignmentScope", - type: { - name: "Enum", - allowedValues: ["none", "job"] - } - }, - endpointConfiguration: { - serializedName: "endpointConfiguration", - type: { - name: "Composite", - className: "PoolEndpointConfiguration" - } - }, - publicIPAddressConfiguration: { - serializedName: "publicIPAddressConfiguration", - type: { - name: "Composite", - className: "PublicIPAddressConfiguration" - } - } - } - } -}; - -export const AzureBlobFileSystemConfiguration: msRest.CompositeMapper = { - serializedName: "AzureBlobFileSystemConfiguration", - type: { - name: "Composite", - className: "AzureBlobFileSystemConfiguration", - modelProperties: { - accountName: { - required: true, - serializedName: "accountName", - type: { - name: "String" - } - }, - containerName: { - required: true, - serializedName: "containerName", - type: { - name: "String" - } - }, - accountKey: { - serializedName: "accountKey", - type: { - name: "String" - } - }, - sasKey: { - serializedName: "sasKey", - type: { - name: "String" - } - }, - blobfuseOptions: { - serializedName: "blobfuseOptions", - type: { - name: "String" - } - }, - relativeMountPath: { - required: true, - serializedName: "relativeMountPath", - type: { - name: "String" - } - }, - identityReference: { - serializedName: "identityReference", - type: { - name: "Composite", - className: "ComputeNodeIdentityReference" - } - } - } - } -}; - -export const NFSMountConfiguration: msRest.CompositeMapper = { - serializedName: "NFSMountConfiguration", - type: { - name: "Composite", - className: "NFSMountConfiguration", - modelProperties: { - source: { - required: true, - serializedName: "source", - type: { - name: "String" - } - }, - relativeMountPath: { - required: true, - serializedName: "relativeMountPath", - type: { - name: "String" - } - }, - mountOptions: { - serializedName: "mountOptions", - type: { - name: "String" - } - } - } - } -}; - -export const CIFSMountConfiguration: msRest.CompositeMapper = { - serializedName: "CIFSMountConfiguration", - type: { - name: "Composite", - className: "CIFSMountConfiguration", - modelProperties: { - username: { - required: true, - serializedName: "username", - type: { - name: "String" - } - }, - source: { - required: true, - serializedName: "source", - type: { - name: "String" - } - }, - relativeMountPath: { - required: true, - serializedName: "relativeMountPath", - type: { - name: "String" - } - }, - mountOptions: { - serializedName: "mountOptions", - type: { - name: "String" - } - }, - password: { - required: true, - serializedName: "password", - type: { - name: "String" - } - } - } - } -}; - -export const AzureFileShareConfiguration: msRest.CompositeMapper = { - serializedName: "AzureFileShareConfiguration", - type: { - name: "Composite", - className: "AzureFileShareConfiguration", - modelProperties: { - accountName: { - required: true, - serializedName: "accountName", - type: { - name: "String" - } - }, - azureFileUrl: { - required: true, - serializedName: "azureFileUrl", - type: { - name: "String" - } - }, - accountKey: { - required: true, - serializedName: "accountKey", - type: { - name: "String" - } - }, - relativeMountPath: { - required: true, - serializedName: "relativeMountPath", - type: { - name: "String" - } - }, - mountOptions: { - serializedName: "mountOptions", - type: { - name: "String" - } - } - } - } -}; - -export const MountConfiguration: msRest.CompositeMapper = { - serializedName: "MountConfiguration", - type: { - name: "Composite", - className: "MountConfiguration", - modelProperties: { - azureBlobFileSystemConfiguration: { - serializedName: "azureBlobFileSystemConfiguration", - type: { - name: "Composite", - className: "AzureBlobFileSystemConfiguration" - } - }, - nfsMountConfiguration: { - serializedName: "nfsMountConfiguration", - type: { - name: "Composite", - className: "NFSMountConfiguration" - } - }, - cifsMountConfiguration: { - serializedName: "cifsMountConfiguration", - type: { - name: "Composite", - className: "CIFSMountConfiguration" - } - }, - azureFileShareConfiguration: { - serializedName: "azureFileShareConfiguration", - type: { - name: "Composite", - className: "AzureFileShareConfiguration" - } - } - } - } -}; - -export const PoolSpecification: msRest.CompositeMapper = { - serializedName: "PoolSpecification", - type: { - name: "Composite", - className: "PoolSpecification", - modelProperties: { - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - vmSize: { - required: true, - serializedName: "vmSize", - type: { - name: "String" - } - }, - cloudServiceConfiguration: { - serializedName: "cloudServiceConfiguration", - type: { - name: "Composite", - className: "CloudServiceConfiguration" - } - }, - virtualMachineConfiguration: { - serializedName: "virtualMachineConfiguration", - type: { - name: "Composite", - className: "VirtualMachineConfiguration" - } - }, - taskSlotsPerNode: { - serializedName: "taskSlotsPerNode", - type: { - name: "Number" - } - }, - taskSchedulingPolicy: { - serializedName: "taskSchedulingPolicy", - type: { - name: "Composite", - className: "TaskSchedulingPolicy" - } - }, - resizeTimeout: { - serializedName: "resizeTimeout", - type: { - name: "TimeSpan" - } - }, - targetDedicatedNodes: { - serializedName: "targetDedicatedNodes", - type: { - name: "Number" - } - }, - targetLowPriorityNodes: { - serializedName: "targetLowPriorityNodes", - type: { - name: "Number" - } - }, - enableAutoScale: { - serializedName: "enableAutoScale", - type: { - name: "Boolean" - } - }, - autoScaleFormula: { - serializedName: "autoScaleFormula", - type: { - name: "String" - } - }, - autoScaleEvaluationInterval: { - serializedName: "autoScaleEvaluationInterval", - type: { - name: "TimeSpan" - } - }, - enableInterNodeCommunication: { - serializedName: "enableInterNodeCommunication", - type: { - name: "Boolean" - } - }, - networkConfiguration: { - serializedName: "networkConfiguration", - type: { - name: "Composite", - className: "NetworkConfiguration" - } - }, - startTask: { - serializedName: "startTask", - type: { - name: "Composite", - className: "StartTask" - } - }, - certificateReferences: { - serializedName: "certificateReferences", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CertificateReference" - } - } - } - }, - applicationPackageReferences: { - serializedName: "applicationPackageReferences", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationPackageReference" - } - } - } - }, - applicationLicenses: { - serializedName: "applicationLicenses", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - userAccounts: { - serializedName: "userAccounts", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UserAccount" - } - } - } - }, - metadata: { - serializedName: "metadata", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetadataItem" - } - } - } - }, - mountConfiguration: { - serializedName: "mountConfiguration", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MountConfiguration" - } - } - } - } - } - } -}; - -export const AutoPoolSpecification: msRest.CompositeMapper = { - serializedName: "AutoPoolSpecification", - type: { - name: "Composite", - className: "AutoPoolSpecification", - modelProperties: { - autoPoolIdPrefix: { - serializedName: "autoPoolIdPrefix", - type: { - name: "String" - } - }, - poolLifetimeOption: { - required: true, - serializedName: "poolLifetimeOption", - type: { - name: "Enum", - allowedValues: ["jobschedule", "job"] - } - }, - keepAlive: { - serializedName: "keepAlive", - type: { - name: "Boolean" - } - }, - pool: { - serializedName: "pool", - type: { - name: "Composite", - className: "PoolSpecification" - } - } - } - } -}; - -export const PoolInformation: msRest.CompositeMapper = { - serializedName: "PoolInformation", - type: { - name: "Composite", - className: "PoolInformation", - modelProperties: { - poolId: { - serializedName: "poolId", - type: { - name: "String" - } - }, - autoPoolSpecification: { - serializedName: "autoPoolSpecification", - type: { - name: "Composite", - className: "AutoPoolSpecification" - } - } - } - } -}; - -export const JobSpecification: msRest.CompositeMapper = { - serializedName: "JobSpecification", - type: { - name: "Composite", - className: "JobSpecification", - modelProperties: { - priority: { - serializedName: "priority", - type: { - name: "Number" - } - }, - maxParallelTasks: { - serializedName: "maxParallelTasks", - defaultValue: -1, - type: { - name: "Number" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - usesTaskDependencies: { - serializedName: "usesTaskDependencies", - type: { - name: "Boolean" - } - }, - onAllTasksComplete: { - serializedName: "onAllTasksComplete", - type: { - name: "Enum", - allowedValues: ["noaction", "terminatejob"] - } - }, - onTaskFailure: { - serializedName: "onTaskFailure", - type: { - name: "Enum", - allowedValues: ["noaction", "performexitoptionsjobaction"] - } - }, - networkConfiguration: { - serializedName: "networkConfiguration", - type: { - name: "Composite", - className: "JobNetworkConfiguration" - } - }, - constraints: { - serializedName: "constraints", - type: { - name: "Composite", - className: "JobConstraints" - } - }, - jobManagerTask: { - serializedName: "jobManagerTask", - type: { - name: "Composite", - className: "JobManagerTask" - } - }, - jobPreparationTask: { - serializedName: "jobPreparationTask", - type: { - name: "Composite", - className: "JobPreparationTask" - } - }, - jobReleaseTask: { - serializedName: "jobReleaseTask", - type: { - name: "Composite", - className: "JobReleaseTask" - } - }, - commonEnvironmentSettings: { - serializedName: "commonEnvironmentSettings", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EnvironmentSetting" - } - } - } - }, - poolInfo: { - required: true, - serializedName: "poolInfo", - defaultValue: {}, - type: { - name: "Composite", - className: "PoolInformation" - } - }, - metadata: { - serializedName: "metadata", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetadataItem" - } - } - } - } - } - } -}; - -export const RecentJob: msRest.CompositeMapper = { - serializedName: "RecentJob", - type: { - name: "Composite", - className: "RecentJob", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - url: { - serializedName: "url", - type: { - name: "String" - } - } - } - } -}; - -export const JobScheduleExecutionInformation: msRest.CompositeMapper = { - serializedName: "JobScheduleExecutionInformation", - type: { - name: "Composite", - className: "JobScheduleExecutionInformation", - modelProperties: { - nextRunTime: { - serializedName: "nextRunTime", - type: { - name: "DateTime" - } - }, - recentJob: { - serializedName: "recentJob", - type: { - name: "Composite", - className: "RecentJob" - } - }, - endTime: { - serializedName: "endTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const JobScheduleStatistics: msRest.CompositeMapper = { - serializedName: "JobScheduleStatistics", - type: { - name: "Composite", - className: "JobScheduleStatistics", - modelProperties: { - url: { - required: true, - serializedName: "url", - type: { - name: "String" - } - }, - startTime: { - required: true, - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - lastUpdateTime: { - required: true, - serializedName: "lastUpdateTime", - type: { - name: "DateTime" - } - }, - userCPUTime: { - required: true, - serializedName: "userCPUTime", - type: { - name: "TimeSpan" - } - }, - kernelCPUTime: { - required: true, - serializedName: "kernelCPUTime", - type: { - name: "TimeSpan" - } - }, - wallClockTime: { - required: true, - serializedName: "wallClockTime", - type: { - name: "TimeSpan" - } - }, - readIOps: { - required: true, - serializedName: "readIOps", - type: { - name: "Number" - } - }, - writeIOps: { - required: true, - serializedName: "writeIOps", - type: { - name: "Number" - } - }, - readIOGiB: { - required: true, - serializedName: "readIOGiB", - type: { - name: "Number" - } - }, - writeIOGiB: { - required: true, - serializedName: "writeIOGiB", - type: { - name: "Number" - } - }, - numSucceededTasks: { - required: true, - serializedName: "numSucceededTasks", - type: { - name: "Number" - } - }, - numFailedTasks: { - required: true, - serializedName: "numFailedTasks", - type: { - name: "Number" - } - }, - numTaskRetries: { - required: true, - serializedName: "numTaskRetries", - type: { - name: "Number" - } - }, - waitTime: { - required: true, - serializedName: "waitTime", - type: { - name: "TimeSpan" - } - } - } - } -}; - -export const CloudJobSchedule: msRest.CompositeMapper = { - serializedName: "CloudJobSchedule", - type: { - name: "Composite", - className: "CloudJobSchedule", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - url: { - serializedName: "url", - type: { - name: "String" - } - }, - eTag: { - serializedName: "eTag", - type: { - name: "String" - } - }, - lastModified: { - serializedName: "lastModified", - type: { - name: "DateTime" - } - }, - creationTime: { - serializedName: "creationTime", - type: { - name: "DateTime" - } - }, - state: { - serializedName: "state", - type: { - name: "Enum", - allowedValues: ["active", "completed", "disabled", "terminating", "deleting"] - } - }, - stateTransitionTime: { - serializedName: "stateTransitionTime", - type: { - name: "DateTime" - } - }, - previousState: { - serializedName: "previousState", - type: { - name: "Enum", - allowedValues: ["active", "completed", "disabled", "terminating", "deleting"] - } - }, - previousStateTransitionTime: { - serializedName: "previousStateTransitionTime", - type: { - name: "DateTime" - } - }, - schedule: { - serializedName: "schedule", - type: { - name: "Composite", - className: "Schedule" - } - }, - jobSpecification: { - serializedName: "jobSpecification", - type: { - name: "Composite", - className: "JobSpecification" - } - }, - executionInfo: { - serializedName: "executionInfo", - type: { - name: "Composite", - className: "JobScheduleExecutionInformation" - } - }, - metadata: { - serializedName: "metadata", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetadataItem" - } - } - } - }, - stats: { - serializedName: "stats", - type: { - name: "Composite", - className: "JobScheduleStatistics" - } - } - } - } -}; - -export const JobScheduleAddParameter: msRest.CompositeMapper = { - serializedName: "JobScheduleAddParameter", - type: { - name: "Composite", - className: "JobScheduleAddParameter", - modelProperties: { - id: { - required: true, - serializedName: "id", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - schedule: { - required: true, - serializedName: "schedule", - type: { - name: "Composite", - className: "Schedule" - } - }, - jobSpecification: { - required: true, - serializedName: "jobSpecification", - defaultValue: {}, - type: { - name: "Composite", - className: "JobSpecification" - } - }, - metadata: { - serializedName: "metadata", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetadataItem" - } - } - } - } - } - } -}; - -export const JobSchedulingError: msRest.CompositeMapper = { - serializedName: "JobSchedulingError", - type: { - name: "Composite", - className: "JobSchedulingError", - modelProperties: { - category: { - required: true, - serializedName: "category", - type: { - name: "Enum", - allowedValues: ["usererror", "servererror"] - } - }, - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - }, - details: { - serializedName: "details", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NameValuePair" - } - } - } - } - } - } -}; - -export const JobExecutionInformation: msRest.CompositeMapper = { - serializedName: "JobExecutionInformation", - type: { - name: "Composite", - className: "JobExecutionInformation", - modelProperties: { - startTime: { - required: true, - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - endTime: { - serializedName: "endTime", - type: { - name: "DateTime" - } - }, - poolId: { - serializedName: "poolId", - type: { - name: "String" - } - }, - schedulingError: { - serializedName: "schedulingError", - type: { - name: "Composite", - className: "JobSchedulingError" - } - }, - terminateReason: { - serializedName: "terminateReason", - type: { - name: "String" - } - } - } - } -}; - -export const CloudJob: msRest.CompositeMapper = { - serializedName: "CloudJob", - type: { - name: "Composite", - className: "CloudJob", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - usesTaskDependencies: { - serializedName: "usesTaskDependencies", - type: { - name: "Boolean" - } - }, - url: { - serializedName: "url", - type: { - name: "String" - } - }, - eTag: { - serializedName: "eTag", - type: { - name: "String" - } - }, - lastModified: { - serializedName: "lastModified", - type: { - name: "DateTime" - } - }, - creationTime: { - serializedName: "creationTime", - type: { - name: "DateTime" - } - }, - state: { - serializedName: "state", - type: { - name: "Enum", - allowedValues: [ - "active", - "disabling", - "disabled", - "enabling", - "terminating", - "completed", - "deleting" - ] - } - }, - stateTransitionTime: { - serializedName: "stateTransitionTime", - type: { - name: "DateTime" - } - }, - previousState: { - serializedName: "previousState", - type: { - name: "Enum", - allowedValues: [ - "active", - "disabling", - "disabled", - "enabling", - "terminating", - "completed", - "deleting" - ] - } - }, - previousStateTransitionTime: { - serializedName: "previousStateTransitionTime", - type: { - name: "DateTime" - } - }, - priority: { - serializedName: "priority", - type: { - name: "Number" - } - }, - maxParallelTasks: { - serializedName: "maxParallelTasks", - defaultValue: -1, - type: { - name: "Number" - } - }, - constraints: { - serializedName: "constraints", - type: { - name: "Composite", - className: "JobConstraints" - } - }, - jobManagerTask: { - serializedName: "jobManagerTask", - type: { - name: "Composite", - className: "JobManagerTask" - } - }, - jobPreparationTask: { - serializedName: "jobPreparationTask", - type: { - name: "Composite", - className: "JobPreparationTask" - } - }, - jobReleaseTask: { - serializedName: "jobReleaseTask", - type: { - name: "Composite", - className: "JobReleaseTask" - } - }, - commonEnvironmentSettings: { - serializedName: "commonEnvironmentSettings", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EnvironmentSetting" - } - } - } - }, - poolInfo: { - serializedName: "poolInfo", - type: { - name: "Composite", - className: "PoolInformation" - } - }, - onAllTasksComplete: { - serializedName: "onAllTasksComplete", - type: { - name: "Enum", - allowedValues: ["noaction", "terminatejob"] - } - }, - onTaskFailure: { - serializedName: "onTaskFailure", - type: { - name: "Enum", - allowedValues: ["noaction", "performexitoptionsjobaction"] - } - }, - networkConfiguration: { - serializedName: "networkConfiguration", - type: { - name: "Composite", - className: "JobNetworkConfiguration" - } - }, - metadata: { - serializedName: "metadata", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetadataItem" - } - } - } - }, - executionInfo: { - serializedName: "executionInfo", - type: { - name: "Composite", - className: "JobExecutionInformation" - } - }, - stats: { - serializedName: "stats", - type: { - name: "Composite", - className: "JobStatistics" - } - } - } - } -}; - -export const JobAddParameter: msRest.CompositeMapper = { - serializedName: "JobAddParameter", - type: { - name: "Composite", - className: "JobAddParameter", - modelProperties: { - id: { - required: true, - serializedName: "id", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - priority: { - serializedName: "priority", - type: { - name: "Number" - } - }, - maxParallelTasks: { - serializedName: "maxParallelTasks", - defaultValue: -1, - type: { - name: "Number" - } - }, - constraints: { - serializedName: "constraints", - type: { - name: "Composite", - className: "JobConstraints" - } - }, - jobManagerTask: { - serializedName: "jobManagerTask", - type: { - name: "Composite", - className: "JobManagerTask" - } - }, - jobPreparationTask: { - serializedName: "jobPreparationTask", - type: { - name: "Composite", - className: "JobPreparationTask" - } - }, - jobReleaseTask: { - serializedName: "jobReleaseTask", - type: { - name: "Composite", - className: "JobReleaseTask" - } - }, - commonEnvironmentSettings: { - serializedName: "commonEnvironmentSettings", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EnvironmentSetting" - } - } - } - }, - poolInfo: { - required: true, - serializedName: "poolInfo", - defaultValue: {}, - type: { - name: "Composite", - className: "PoolInformation" - } - }, - onAllTasksComplete: { - serializedName: "onAllTasksComplete", - type: { - name: "Enum", - allowedValues: ["noaction", "terminatejob"] - } - }, - onTaskFailure: { - serializedName: "onTaskFailure", - type: { - name: "Enum", - allowedValues: ["noaction", "performexitoptionsjobaction"] - } - }, - metadata: { - serializedName: "metadata", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetadataItem" - } - } - } - }, - usesTaskDependencies: { - serializedName: "usesTaskDependencies", - type: { - name: "Boolean" - } - }, - networkConfiguration: { - serializedName: "networkConfiguration", - type: { - name: "Composite", - className: "JobNetworkConfiguration" - } - } - } - } -}; - -export const TaskContainerExecutionInformation: msRest.CompositeMapper = { - serializedName: "TaskContainerExecutionInformation", - type: { - name: "Composite", - className: "TaskContainerExecutionInformation", - modelProperties: { - containerId: { - serializedName: "containerId", - type: { - name: "String" - } - }, - state: { - serializedName: "state", - type: { - name: "String" - } - }, - error: { - serializedName: "error", - type: { - name: "String" - } - } - } - } -}; - -export const TaskFailureInformation: msRest.CompositeMapper = { - serializedName: "TaskFailureInformation", - type: { - name: "Composite", - className: "TaskFailureInformation", - modelProperties: { - category: { - required: true, - serializedName: "category", - type: { - name: "Enum", - allowedValues: ["usererror", "servererror"] - } - }, - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - }, - details: { - serializedName: "details", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NameValuePair" - } - } - } - } - } - } -}; - -export const JobPreparationTaskExecutionInformation: msRest.CompositeMapper = { - serializedName: "JobPreparationTaskExecutionInformation", - type: { - name: "Composite", - className: "JobPreparationTaskExecutionInformation", - modelProperties: { - startTime: { - required: true, - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - endTime: { - serializedName: "endTime", - type: { - name: "DateTime" - } - }, - state: { - required: true, - serializedName: "state", - type: { - name: "Enum", - allowedValues: ["running", "completed"] - } - }, - taskRootDirectory: { - serializedName: "taskRootDirectory", - type: { - name: "String" - } - }, - taskRootDirectoryUrl: { - serializedName: "taskRootDirectoryUrl", - type: { - name: "String" - } - }, - exitCode: { - serializedName: "exitCode", - type: { - name: "Number" - } - }, - containerInfo: { - serializedName: "containerInfo", - type: { - name: "Composite", - className: "TaskContainerExecutionInformation" - } - }, - failureInfo: { - serializedName: "failureInfo", - type: { - name: "Composite", - className: "TaskFailureInformation" - } - }, - retryCount: { - required: true, - serializedName: "retryCount", - type: { - name: "Number" - } - }, - lastRetryTime: { - serializedName: "lastRetryTime", - type: { - name: "DateTime" - } - }, - result: { - serializedName: "result", - type: { - name: "Enum", - allowedValues: ["success", "failure"] - } - } - } - } -}; - -export const JobReleaseTaskExecutionInformation: msRest.CompositeMapper = { - serializedName: "JobReleaseTaskExecutionInformation", - type: { - name: "Composite", - className: "JobReleaseTaskExecutionInformation", - modelProperties: { - startTime: { - required: true, - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - endTime: { - serializedName: "endTime", - type: { - name: "DateTime" - } - }, - state: { - required: true, - serializedName: "state", - type: { - name: "Enum", - allowedValues: ["running", "completed"] - } - }, - taskRootDirectory: { - serializedName: "taskRootDirectory", - type: { - name: "String" - } - }, - taskRootDirectoryUrl: { - serializedName: "taskRootDirectoryUrl", - type: { - name: "String" - } - }, - exitCode: { - serializedName: "exitCode", - type: { - name: "Number" - } - }, - containerInfo: { - serializedName: "containerInfo", - type: { - name: "Composite", - className: "TaskContainerExecutionInformation" - } - }, - failureInfo: { - serializedName: "failureInfo", - type: { - name: "Composite", - className: "TaskFailureInformation" - } - }, - result: { - serializedName: "result", - type: { - name: "Enum", - allowedValues: ["success", "failure"] - } - } - } - } -}; - -export const JobPreparationAndReleaseTaskExecutionInformation: msRest.CompositeMapper = { - serializedName: "JobPreparationAndReleaseTaskExecutionInformation", - type: { - name: "Composite", - className: "JobPreparationAndReleaseTaskExecutionInformation", - modelProperties: { - poolId: { - serializedName: "poolId", - type: { - name: "String" - } - }, - nodeId: { - serializedName: "nodeId", - type: { - name: "String" - } - }, - nodeUrl: { - serializedName: "nodeUrl", - type: { - name: "String" - } - }, - jobPreparationTaskExecutionInfo: { - serializedName: "jobPreparationTaskExecutionInfo", - type: { - name: "Composite", - className: "JobPreparationTaskExecutionInformation" - } - }, - jobReleaseTaskExecutionInfo: { - serializedName: "jobReleaseTaskExecutionInfo", - type: { - name: "Composite", - className: "JobReleaseTaskExecutionInformation" - } - } - } - } -}; - -export const TaskCounts: msRest.CompositeMapper = { - serializedName: "TaskCounts", - type: { - name: "Composite", - className: "TaskCounts", - modelProperties: { - active: { - required: true, - serializedName: "active", - type: { - name: "Number" - } - }, - running: { - required: true, - serializedName: "running", - type: { - name: "Number" - } - }, - completed: { - required: true, - serializedName: "completed", - type: { - name: "Number" - } - }, - succeeded: { - required: true, - serializedName: "succeeded", - type: { - name: "Number" - } - }, - failed: { - required: true, - serializedName: "failed", - type: { - name: "Number" - } - } - } - } -}; - -export const TaskSlotCounts: msRest.CompositeMapper = { - serializedName: "TaskSlotCounts", - type: { - name: "Composite", - className: "TaskSlotCounts", - modelProperties: { - active: { - required: true, - serializedName: "active", - type: { - name: "Number" - } - }, - running: { - required: true, - serializedName: "running", - type: { - name: "Number" - } - }, - completed: { - required: true, - serializedName: "completed", - type: { - name: "Number" - } - }, - succeeded: { - required: true, - serializedName: "succeeded", - type: { - name: "Number" - } - }, - failed: { - required: true, - serializedName: "failed", - type: { - name: "Number" - } - } - } - } -}; - -export const TaskCountsResult: msRest.CompositeMapper = { - serializedName: "TaskCountsResult", - type: { - name: "Composite", - className: "TaskCountsResult", - modelProperties: { - taskCounts: { - required: true, - serializedName: "taskCounts", - type: { - name: "Composite", - className: "TaskCounts" - } - }, - taskSlotCounts: { - required: true, - serializedName: "taskSlotCounts", - type: { - name: "Composite", - className: "TaskSlotCounts" - } - } - } - } -}; - -export const AutoScaleRunError: msRest.CompositeMapper = { - serializedName: "AutoScaleRunError", - type: { - name: "Composite", - className: "AutoScaleRunError", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - }, - values: { - serializedName: "values", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NameValuePair" - } - } - } - } - } - } -}; - -export const AutoScaleRun: msRest.CompositeMapper = { - serializedName: "AutoScaleRun", - type: { - name: "Composite", - className: "AutoScaleRun", - modelProperties: { - timestamp: { - required: true, - serializedName: "timestamp", - type: { - name: "DateTime" - } - }, - results: { - serializedName: "results", - type: { - name: "String" - } - }, - error: { - serializedName: "error", - type: { - name: "Composite", - className: "AutoScaleRunError" - } - } - } - } -}; - -export const ResizeError: msRest.CompositeMapper = { - serializedName: "ResizeError", - type: { - name: "Composite", - className: "ResizeError", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - }, - values: { - serializedName: "values", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NameValuePair" - } - } - } - } - } - } -}; - -export const InstanceViewStatus: msRest.CompositeMapper = { - serializedName: "InstanceViewStatus", - type: { - name: "Composite", - className: "InstanceViewStatus", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - displayStatus: { - serializedName: "displayStatus", - type: { - name: "String" - } - }, - level: { - serializedName: "level", - type: { - name: "Enum", - allowedValues: ["Error", "Info", "Warning"] - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - }, - time: { - serializedName: "time", - type: { - name: "String" - } - } - } - } -}; - -export const VMExtensionInstanceView: msRest.CompositeMapper = { - serializedName: "VMExtensionInstanceView", - type: { - name: "Composite", - className: "VMExtensionInstanceView", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - statuses: { - serializedName: "statuses", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } - }, - subStatuses: { - serializedName: "subStatuses", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } -}; - -export const NodeVMExtension: msRest.CompositeMapper = { - serializedName: "NodeVMExtension", - type: { - name: "Composite", - className: "NodeVMExtension", - modelProperties: { - provisioningState: { - serializedName: "provisioningState", - type: { - name: "String" - } - }, - vmExtension: { - serializedName: "vmExtension", - type: { - name: "Composite", - className: "VMExtension" - } - }, - instanceView: { - serializedName: "instanceView", - type: { - name: "Composite", - className: "VMExtensionInstanceView" - } - } - } - } -}; - -export const UserAssignedIdentity: msRest.CompositeMapper = { - serializedName: "UserAssignedIdentity", - type: { - name: "Composite", - className: "UserAssignedIdentity", - modelProperties: { - resourceId: { - required: true, - serializedName: "resourceId", - type: { - name: "String" - } - }, - clientId: { - readOnly: true, - serializedName: "clientId", - type: { - name: "String" - } - }, - principalId: { - readOnly: true, - serializedName: "principalId", - type: { - name: "String" - } - } - } - } -}; - -export const BatchPoolIdentity: msRest.CompositeMapper = { - serializedName: "BatchPoolIdentity", - type: { - name: "Composite", - className: "BatchPoolIdentity", - modelProperties: { - type: { - required: true, - serializedName: "type", - type: { - name: "Enum", - allowedValues: ["UserAssigned", "None"] - } - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UserAssignedIdentity" - } - } - } - } - } - } -}; - -export const CloudPool: msRest.CompositeMapper = { - serializedName: "CloudPool", - type: { - name: "Composite", - className: "CloudPool", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - url: { - serializedName: "url", - type: { - name: "String" - } - }, - eTag: { - serializedName: "eTag", - type: { - name: "String" - } - }, - lastModified: { - serializedName: "lastModified", - type: { - name: "DateTime" - } - }, - creationTime: { - serializedName: "creationTime", - type: { - name: "DateTime" - } - }, - state: { - serializedName: "state", - type: { - name: "Enum", - allowedValues: ["active", "deleting"] - } - }, - stateTransitionTime: { - serializedName: "stateTransitionTime", - type: { - name: "DateTime" - } - }, - allocationState: { - serializedName: "allocationState", - type: { - name: "Enum", - allowedValues: ["steady", "resizing", "stopping"] - } - }, - allocationStateTransitionTime: { - serializedName: "allocationStateTransitionTime", - type: { - name: "DateTime" - } - }, - vmSize: { - serializedName: "vmSize", - type: { - name: "String" - } - }, - cloudServiceConfiguration: { - serializedName: "cloudServiceConfiguration", - type: { - name: "Composite", - className: "CloudServiceConfiguration" - } - }, - virtualMachineConfiguration: { - serializedName: "virtualMachineConfiguration", - type: { - name: "Composite", - className: "VirtualMachineConfiguration" - } - }, - resizeTimeout: { - serializedName: "resizeTimeout", - type: { - name: "TimeSpan" - } - }, - resizeErrors: { - serializedName: "resizeErrors", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResizeError" - } - } - } - }, - currentDedicatedNodes: { - serializedName: "currentDedicatedNodes", - type: { - name: "Number" - } - }, - currentLowPriorityNodes: { - serializedName: "currentLowPriorityNodes", - type: { - name: "Number" - } - }, - targetDedicatedNodes: { - serializedName: "targetDedicatedNodes", - type: { - name: "Number" - } - }, - targetLowPriorityNodes: { - serializedName: "targetLowPriorityNodes", - type: { - name: "Number" - } - }, - enableAutoScale: { - serializedName: "enableAutoScale", - type: { - name: "Boolean" - } - }, - autoScaleFormula: { - serializedName: "autoScaleFormula", - type: { - name: "String" - } - }, - autoScaleEvaluationInterval: { - serializedName: "autoScaleEvaluationInterval", - type: { - name: "TimeSpan" - } - }, - autoScaleRun: { - serializedName: "autoScaleRun", - type: { - name: "Composite", - className: "AutoScaleRun" - } - }, - enableInterNodeCommunication: { - serializedName: "enableInterNodeCommunication", - type: { - name: "Boolean" - } - }, - networkConfiguration: { - serializedName: "networkConfiguration", - type: { - name: "Composite", - className: "NetworkConfiguration" - } - }, - startTask: { - serializedName: "startTask", - type: { - name: "Composite", - className: "StartTask" - } - }, - certificateReferences: { - serializedName: "certificateReferences", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CertificateReference" - } - } - } - }, - applicationPackageReferences: { - serializedName: "applicationPackageReferences", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationPackageReference" - } - } - } - }, - applicationLicenses: { - serializedName: "applicationLicenses", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - taskSlotsPerNode: { - serializedName: "taskSlotsPerNode", - type: { - name: "Number" - } - }, - taskSchedulingPolicy: { - serializedName: "taskSchedulingPolicy", - type: { - name: "Composite", - className: "TaskSchedulingPolicy" - } - }, - userAccounts: { - serializedName: "userAccounts", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UserAccount" - } - } - } - }, - metadata: { - serializedName: "metadata", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetadataItem" - } - } - } - }, - stats: { - serializedName: "stats", - type: { - name: "Composite", - className: "PoolStatistics" - } - }, - mountConfiguration: { - serializedName: "mountConfiguration", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MountConfiguration" - } - } - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "BatchPoolIdentity" - } - } - } - } -}; - -export const PoolAddParameter: msRest.CompositeMapper = { - serializedName: "PoolAddParameter", - type: { - name: "Composite", - className: "PoolAddParameter", - modelProperties: { - id: { - required: true, - serializedName: "id", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - vmSize: { - required: true, - serializedName: "vmSize", - type: { - name: "String" - } - }, - cloudServiceConfiguration: { - serializedName: "cloudServiceConfiguration", - type: { - name: "Composite", - className: "CloudServiceConfiguration" - } - }, - virtualMachineConfiguration: { - serializedName: "virtualMachineConfiguration", - type: { - name: "Composite", - className: "VirtualMachineConfiguration" - } - }, - resizeTimeout: { - serializedName: "resizeTimeout", - type: { - name: "TimeSpan" - } - }, - targetDedicatedNodes: { - serializedName: "targetDedicatedNodes", - type: { - name: "Number" - } - }, - targetLowPriorityNodes: { - serializedName: "targetLowPriorityNodes", - type: { - name: "Number" - } - }, - enableAutoScale: { - serializedName: "enableAutoScale", - type: { - name: "Boolean" - } - }, - autoScaleFormula: { - serializedName: "autoScaleFormula", - type: { - name: "String" - } - }, - autoScaleEvaluationInterval: { - serializedName: "autoScaleEvaluationInterval", - type: { - name: "TimeSpan" - } - }, - enableInterNodeCommunication: { - serializedName: "enableInterNodeCommunication", - type: { - name: "Boolean" - } - }, - networkConfiguration: { - serializedName: "networkConfiguration", - type: { - name: "Composite", - className: "NetworkConfiguration" - } - }, - startTask: { - serializedName: "startTask", - type: { - name: "Composite", - className: "StartTask" - } - }, - certificateReferences: { - serializedName: "certificateReferences", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CertificateReference" - } - } - } - }, - applicationPackageReferences: { - serializedName: "applicationPackageReferences", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationPackageReference" - } - } - } - }, - applicationLicenses: { - serializedName: "applicationLicenses", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - taskSlotsPerNode: { - serializedName: "taskSlotsPerNode", - type: { - name: "Number" - } - }, - taskSchedulingPolicy: { - serializedName: "taskSchedulingPolicy", - type: { - name: "Composite", - className: "TaskSchedulingPolicy" - } - }, - userAccounts: { - serializedName: "userAccounts", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UserAccount" - } - } - } - }, - metadata: { - serializedName: "metadata", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetadataItem" - } - } - } - }, - mountConfiguration: { - serializedName: "mountConfiguration", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MountConfiguration" - } - } - } - } - } - } -}; - -export const AffinityInformation: msRest.CompositeMapper = { - serializedName: "AffinityInformation", - type: { - name: "Composite", - className: "AffinityInformation", - modelProperties: { - affinityId: { - required: true, - serializedName: "affinityId", - type: { - name: "String" - } - } - } - } -}; - -export const TaskExecutionInformation: msRest.CompositeMapper = { - serializedName: "TaskExecutionInformation", - type: { - name: "Composite", - className: "TaskExecutionInformation", - modelProperties: { - startTime: { - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - endTime: { - serializedName: "endTime", - type: { - name: "DateTime" - } - }, - exitCode: { - serializedName: "exitCode", - type: { - name: "Number" - } - }, - containerInfo: { - serializedName: "containerInfo", - type: { - name: "Composite", - className: "TaskContainerExecutionInformation" - } - }, - failureInfo: { - serializedName: "failureInfo", - type: { - name: "Composite", - className: "TaskFailureInformation" - } - }, - retryCount: { - required: true, - serializedName: "retryCount", - type: { - name: "Number" - } - }, - lastRetryTime: { - serializedName: "lastRetryTime", - type: { - name: "DateTime" - } - }, - requeueCount: { - required: true, - serializedName: "requeueCount", - type: { - name: "Number" - } - }, - lastRequeueTime: { - serializedName: "lastRequeueTime", - type: { - name: "DateTime" - } - }, - result: { - serializedName: "result", - type: { - name: "Enum", - allowedValues: ["success", "failure"] - } - } - } - } -}; - -export const ComputeNodeInformation: msRest.CompositeMapper = { - serializedName: "ComputeNodeInformation", - type: { - name: "Composite", - className: "ComputeNodeInformation", - modelProperties: { - affinityId: { - serializedName: "affinityId", - type: { - name: "String" - } - }, - nodeUrl: { - serializedName: "nodeUrl", - type: { - name: "String" - } - }, - poolId: { - serializedName: "poolId", - type: { - name: "String" - } - }, - nodeId: { - serializedName: "nodeId", - type: { - name: "String" - } - }, - taskRootDirectory: { - serializedName: "taskRootDirectory", - type: { - name: "String" - } - }, - taskRootDirectoryUrl: { - serializedName: "taskRootDirectoryUrl", - type: { - name: "String" - } - } - } - } -}; - -export const NodeAgentInformation: msRest.CompositeMapper = { - serializedName: "NodeAgentInformation", - type: { - name: "Composite", - className: "NodeAgentInformation", - modelProperties: { - version: { - required: true, - serializedName: "version", - type: { - name: "String" - } - }, - lastUpdateTime: { - required: true, - serializedName: "lastUpdateTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const MultiInstanceSettings: msRest.CompositeMapper = { - serializedName: "MultiInstanceSettings", - type: { - name: "Composite", - className: "MultiInstanceSettings", - modelProperties: { - numberOfInstances: { - serializedName: "numberOfInstances", - type: { - name: "Number" - } - }, - coordinationCommandLine: { - required: true, - serializedName: "coordinationCommandLine", - type: { - name: "String" - } - }, - commonResourceFiles: { - serializedName: "commonResourceFiles", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceFile" - } - } - } - } - } - } -}; - -export const TaskStatistics: msRest.CompositeMapper = { - serializedName: "TaskStatistics", - type: { - name: "Composite", - className: "TaskStatistics", - modelProperties: { - url: { - required: true, - serializedName: "url", - type: { - name: "String" - } - }, - startTime: { - required: true, - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - lastUpdateTime: { - required: true, - serializedName: "lastUpdateTime", - type: { - name: "DateTime" - } - }, - userCPUTime: { - required: true, - serializedName: "userCPUTime", - type: { - name: "TimeSpan" - } - }, - kernelCPUTime: { - required: true, - serializedName: "kernelCPUTime", - type: { - name: "TimeSpan" - } - }, - wallClockTime: { - required: true, - serializedName: "wallClockTime", - type: { - name: "TimeSpan" - } - }, - readIOps: { - required: true, - serializedName: "readIOps", - type: { - name: "Number" - } - }, - writeIOps: { - required: true, - serializedName: "writeIOps", - type: { - name: "Number" - } - }, - readIOGiB: { - required: true, - serializedName: "readIOGiB", - type: { - name: "Number" - } - }, - writeIOGiB: { - required: true, - serializedName: "writeIOGiB", - type: { - name: "Number" - } - }, - waitTime: { - required: true, - serializedName: "waitTime", - type: { - name: "TimeSpan" - } - } - } - } -}; - -export const TaskIdRange: msRest.CompositeMapper = { - serializedName: "TaskIdRange", - type: { - name: "Composite", - className: "TaskIdRange", - modelProperties: { - start: { - required: true, - serializedName: "start", - type: { - name: "Number" - } - }, - end: { - required: true, - serializedName: "end", - type: { - name: "Number" - } - } - } - } -}; - -export const TaskDependencies: msRest.CompositeMapper = { - serializedName: "TaskDependencies", - type: { - name: "Composite", - className: "TaskDependencies", - modelProperties: { - taskIds: { - serializedName: "taskIds", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - taskIdRanges: { - serializedName: "taskIdRanges", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TaskIdRange" - } - } - } - } - } - } -}; - -export const CloudTask: msRest.CompositeMapper = { - serializedName: "CloudTask", - type: { - name: "Composite", - className: "CloudTask", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - url: { - serializedName: "url", - type: { - name: "String" - } - }, - eTag: { - serializedName: "eTag", - type: { - name: "String" - } - }, - lastModified: { - serializedName: "lastModified", - type: { - name: "DateTime" - } - }, - creationTime: { - serializedName: "creationTime", - type: { - name: "DateTime" - } - }, - exitConditions: { - serializedName: "exitConditions", - type: { - name: "Composite", - className: "ExitConditions" - } - }, - state: { - serializedName: "state", - type: { - name: "Enum", - allowedValues: ["active", "preparing", "running", "completed"] - } - }, - stateTransitionTime: { - serializedName: "stateTransitionTime", - type: { - name: "DateTime" - } - }, - previousState: { - serializedName: "previousState", - type: { - name: "Enum", - allowedValues: ["active", "preparing", "running", "completed"] - } - }, - previousStateTransitionTime: { - serializedName: "previousStateTransitionTime", - type: { - name: "DateTime" - } - }, - commandLine: { - serializedName: "commandLine", - type: { - name: "String" - } - }, - containerSettings: { - serializedName: "containerSettings", - type: { - name: "Composite", - className: "TaskContainerSettings" - } - }, - resourceFiles: { - serializedName: "resourceFiles", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceFile" - } - } - } - }, - outputFiles: { - serializedName: "outputFiles", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OutputFile" - } - } - } - }, - environmentSettings: { - serializedName: "environmentSettings", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EnvironmentSetting" - } - } - } - }, - affinityInfo: { - serializedName: "affinityInfo", - type: { - name: "Composite", - className: "AffinityInformation" - } - }, - constraints: { - serializedName: "constraints", - type: { - name: "Composite", - className: "TaskConstraints" - } - }, - requiredSlots: { - serializedName: "requiredSlots", - type: { - name: "Number" - } - }, - userIdentity: { - serializedName: "userIdentity", - type: { - name: "Composite", - className: "UserIdentity" - } - }, - executionInfo: { - serializedName: "executionInfo", - type: { - name: "Composite", - className: "TaskExecutionInformation" - } - }, - nodeInfo: { - serializedName: "nodeInfo", - type: { - name: "Composite", - className: "ComputeNodeInformation" - } - }, - multiInstanceSettings: { - serializedName: "multiInstanceSettings", - type: { - name: "Composite", - className: "MultiInstanceSettings" - } - }, - stats: { - serializedName: "stats", - type: { - name: "Composite", - className: "TaskStatistics" - } - }, - dependsOn: { - serializedName: "dependsOn", - type: { - name: "Composite", - className: "TaskDependencies" - } - }, - applicationPackageReferences: { - serializedName: "applicationPackageReferences", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationPackageReference" - } - } - } - }, - authenticationTokenSettings: { - serializedName: "authenticationTokenSettings", - type: { - name: "Composite", - className: "AuthenticationTokenSettings" - } - } - } - } -}; - -export const TaskAddParameter: msRest.CompositeMapper = { - serializedName: "TaskAddParameter", - type: { - name: "Composite", - className: "TaskAddParameter", - modelProperties: { - id: { - required: true, - serializedName: "id", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - commandLine: { - required: true, - serializedName: "commandLine", - type: { - name: "String" - } - }, - containerSettings: { - serializedName: "containerSettings", - type: { - name: "Composite", - className: "TaskContainerSettings" - } - }, - exitConditions: { - serializedName: "exitConditions", - type: { - name: "Composite", - className: "ExitConditions" - } - }, - resourceFiles: { - serializedName: "resourceFiles", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceFile" - } - } - } - }, - outputFiles: { - serializedName: "outputFiles", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OutputFile" - } - } - } - }, - environmentSettings: { - serializedName: "environmentSettings", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EnvironmentSetting" - } - } - } - }, - affinityInfo: { - serializedName: "affinityInfo", - type: { - name: "Composite", - className: "AffinityInformation" - } - }, - constraints: { - serializedName: "constraints", - type: { - name: "Composite", - className: "TaskConstraints" - } - }, - requiredSlots: { - serializedName: "requiredSlots", - type: { - name: "Number" - } - }, - userIdentity: { - serializedName: "userIdentity", - type: { - name: "Composite", - className: "UserIdentity" - } - }, - multiInstanceSettings: { - serializedName: "multiInstanceSettings", - type: { - name: "Composite", - className: "MultiInstanceSettings" - } - }, - dependsOn: { - serializedName: "dependsOn", - type: { - name: "Composite", - className: "TaskDependencies" - } - }, - applicationPackageReferences: { - serializedName: "applicationPackageReferences", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationPackageReference" - } - } - } - }, - authenticationTokenSettings: { - serializedName: "authenticationTokenSettings", - type: { - name: "Composite", - className: "AuthenticationTokenSettings" - } - } - } - } -}; - -export const TaskAddCollectionParameter: msRest.CompositeMapper = { - serializedName: "TaskAddCollectionParameter", - type: { - name: "Composite", - className: "TaskAddCollectionParameter", - modelProperties: { - value: { - required: true, - serializedName: "value", - constraints: { - MaxItems: 100 - }, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TaskAddParameter" - } - } - } - } - } - } -}; - -export const ErrorMessage: msRest.CompositeMapper = { - serializedName: "ErrorMessage", - type: { - name: "Composite", - className: "ErrorMessage", - modelProperties: { - lang: { - serializedName: "lang", - type: { - name: "String" - } - }, - value: { - serializedName: "value", - type: { - name: "String" - } - } - } - } -}; - -export const BatchErrorDetail: msRest.CompositeMapper = { - serializedName: "BatchErrorDetail", - type: { - name: "Composite", - className: "BatchErrorDetail", - modelProperties: { - key: { - serializedName: "key", - type: { - name: "String" - } - }, - value: { - serializedName: "value", - type: { - name: "String" - } - } - } - } -}; - -export const BatchError: msRest.CompositeMapper = { - serializedName: "BatchError", - type: { - name: "Composite", - className: "BatchError", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "Composite", - className: "ErrorMessage" - } - }, - values: { - serializedName: "values", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BatchErrorDetail" - } - } - } - } - } - } -}; - -export const TaskAddResult: msRest.CompositeMapper = { - serializedName: "TaskAddResult", - type: { - name: "Composite", - className: "TaskAddResult", - modelProperties: { - status: { - required: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: ["success", "clienterror", "servererror"] - } - }, - taskId: { - required: true, - serializedName: "taskId", - type: { - name: "String" - } - }, - eTag: { - serializedName: "eTag", - type: { - name: "String" - } - }, - lastModified: { - serializedName: "lastModified", - type: { - name: "DateTime" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - error: { - serializedName: "error", - type: { - name: "Composite", - className: "BatchError" - } - } - } - } -}; - -export const TaskAddCollectionResult: msRest.CompositeMapper = { - serializedName: "TaskAddCollectionResult", - type: { - name: "Composite", - className: "TaskAddCollectionResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TaskAddResult" - } - } - } - } - } - } -}; - -export const SubtaskInformation: msRest.CompositeMapper = { - serializedName: "SubtaskInformation", - type: { - name: "Composite", - className: "SubtaskInformation", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "Number" - } - }, - nodeInfo: { - serializedName: "nodeInfo", - type: { - name: "Composite", - className: "ComputeNodeInformation" - } - }, - startTime: { - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - endTime: { - serializedName: "endTime", - type: { - name: "DateTime" - } - }, - exitCode: { - serializedName: "exitCode", - type: { - name: "Number" - } - }, - containerInfo: { - serializedName: "containerInfo", - type: { - name: "Composite", - className: "TaskContainerExecutionInformation" - } - }, - failureInfo: { - serializedName: "failureInfo", - type: { - name: "Composite", - className: "TaskFailureInformation" - } - }, - state: { - serializedName: "state", - type: { - name: "Enum", - allowedValues: ["preparing", "running", "completed"] - } - }, - stateTransitionTime: { - serializedName: "stateTransitionTime", - type: { - name: "DateTime" - } - }, - previousState: { - serializedName: "previousState", - type: { - name: "Enum", - allowedValues: ["preparing", "running", "completed"] - } - }, - previousStateTransitionTime: { - serializedName: "previousStateTransitionTime", - type: { - name: "DateTime" - } - }, - result: { - serializedName: "result", - type: { - name: "Enum", - allowedValues: ["success", "failure"] - } - } - } - } -}; - -export const CloudTaskListSubtasksResult: msRest.CompositeMapper = { - serializedName: "CloudTaskListSubtasksResult", - type: { - name: "Composite", - className: "CloudTaskListSubtasksResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubtaskInformation" - } - } - } - } - } - } -}; - -export const TaskInformation: msRest.CompositeMapper = { - serializedName: "TaskInformation", - type: { - name: "Composite", - className: "TaskInformation", - modelProperties: { - taskUrl: { - serializedName: "taskUrl", - type: { - name: "String" - } - }, - jobId: { - serializedName: "jobId", - type: { - name: "String" - } - }, - taskId: { - serializedName: "taskId", - type: { - name: "String" - } - }, - subtaskId: { - serializedName: "subtaskId", - type: { - name: "Number" - } - }, - taskState: { - required: true, - serializedName: "taskState", - type: { - name: "Enum", - allowedValues: ["active", "preparing", "running", "completed"] - } - }, - executionInfo: { - serializedName: "executionInfo", - type: { - name: "Composite", - className: "TaskExecutionInformation" - } - } - } - } -}; - -export const StartTaskInformation: msRest.CompositeMapper = { - serializedName: "StartTaskInformation", - type: { - name: "Composite", - className: "StartTaskInformation", - modelProperties: { - state: { - required: true, - serializedName: "state", - type: { - name: "Enum", - allowedValues: ["running", "completed"] - } - }, - startTime: { - required: true, - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - endTime: { - serializedName: "endTime", - type: { - name: "DateTime" - } - }, - exitCode: { - serializedName: "exitCode", - type: { - name: "Number" - } - }, - containerInfo: { - serializedName: "containerInfo", - type: { - name: "Composite", - className: "TaskContainerExecutionInformation" - } - }, - failureInfo: { - serializedName: "failureInfo", - type: { - name: "Composite", - className: "TaskFailureInformation" - } - }, - retryCount: { - required: true, - serializedName: "retryCount", - type: { - name: "Number" - } - }, - lastRetryTime: { - serializedName: "lastRetryTime", - type: { - name: "DateTime" - } - }, - result: { - serializedName: "result", - type: { - name: "Enum", - allowedValues: ["success", "failure"] - } - } - } - } -}; - -export const ComputeNodeError: msRest.CompositeMapper = { - serializedName: "ComputeNodeError", - type: { - name: "Composite", - className: "ComputeNodeError", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - }, - errorDetails: { - serializedName: "errorDetails", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NameValuePair" - } - } - } - } - } - } -}; - -export const InboundEndpoint: msRest.CompositeMapper = { - serializedName: "InboundEndpoint", - type: { - name: "Composite", - className: "InboundEndpoint", - modelProperties: { - name: { - required: true, - serializedName: "name", - type: { - name: "String" - } - }, - protocol: { - required: true, - serializedName: "protocol", - type: { - name: "Enum", - allowedValues: ["tcp", "udp"] - } - }, - publicIPAddress: { - required: true, - serializedName: "publicIPAddress", - type: { - name: "String" - } - }, - publicFQDN: { - required: true, - serializedName: "publicFQDN", - type: { - name: "String" - } - }, - frontendPort: { - required: true, - serializedName: "frontendPort", - type: { - name: "Number" - } - }, - backendPort: { - required: true, - serializedName: "backendPort", - type: { - name: "Number" - } - } - } - } -}; - -export const ComputeNodeEndpointConfiguration: msRest.CompositeMapper = { - serializedName: "ComputeNodeEndpointConfiguration", - type: { - name: "Composite", - className: "ComputeNodeEndpointConfiguration", - modelProperties: { - inboundEndpoints: { - required: true, - serializedName: "inboundEndpoints", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InboundEndpoint" - } - } - } - } - } - } -}; - -export const VirtualMachineInfo: msRest.CompositeMapper = { - serializedName: "VirtualMachineInfo", - type: { - name: "Composite", - className: "VirtualMachineInfo", - modelProperties: { - imageReference: { - serializedName: "imageReference", - type: { - name: "Composite", - className: "ImageReference" - } - } - } - } -}; - -export const ComputeNode: msRest.CompositeMapper = { - serializedName: "ComputeNode", - type: { - name: "Composite", - className: "ComputeNode", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - url: { - serializedName: "url", - type: { - name: "String" - } - }, - state: { - serializedName: "state", - type: { - name: "Enum", - allowedValues: [ - "idle", - "rebooting", - "reimaging", - "running", - "unusable", - "creating", - "starting", - "waitingforstarttask", - "starttaskfailed", - "unknown", - "leavingpool", - "offline", - "preempted" - ] - } - }, - schedulingState: { - serializedName: "schedulingState", - type: { - name: "Enum", - allowedValues: ["enabled", "disabled"] - } - }, - stateTransitionTime: { - serializedName: "stateTransitionTime", - type: { - name: "DateTime" - } - }, - lastBootTime: { - serializedName: "lastBootTime", - type: { - name: "DateTime" - } - }, - allocationTime: { - serializedName: "allocationTime", - type: { - name: "DateTime" - } - }, - ipAddress: { - serializedName: "ipAddress", - type: { - name: "String" - } - }, - affinityId: { - serializedName: "affinityId", - type: { - name: "String" - } - }, - vmSize: { - serializedName: "vmSize", - type: { - name: "String" - } - }, - totalTasksRun: { - serializedName: "totalTasksRun", - type: { - name: "Number" - } - }, - runningTasksCount: { - serializedName: "runningTasksCount", - type: { - name: "Number" - } - }, - runningTaskSlotsCount: { - serializedName: "runningTaskSlotsCount", - type: { - name: "Number" - } - }, - totalTasksSucceeded: { - serializedName: "totalTasksSucceeded", - type: { - name: "Number" - } - }, - recentTasks: { - serializedName: "recentTasks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TaskInformation" - } - } - } - }, - startTask: { - serializedName: "startTask", - type: { - name: "Composite", - className: "StartTask" - } - }, - startTaskInfo: { - serializedName: "startTaskInfo", - type: { - name: "Composite", - className: "StartTaskInformation" - } - }, - certificateReferences: { - serializedName: "certificateReferences", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CertificateReference" - } - } - } - }, - errors: { - serializedName: "errors", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeNodeError" - } - } - } - }, - isDedicated: { - serializedName: "isDedicated", - type: { - name: "Boolean" - } - }, - endpointConfiguration: { - serializedName: "endpointConfiguration", - type: { - name: "Composite", - className: "ComputeNodeEndpointConfiguration" - } - }, - nodeAgentInfo: { - serializedName: "nodeAgentInfo", - type: { - name: "Composite", - className: "NodeAgentInformation" - } - }, - virtualMachineInfo: { - serializedName: "virtualMachineInfo", + className: "NodePlacementConfiguration", + modelProperties: { + policy: { + serializedName: "policy", type: { - name: "Composite", - className: "VirtualMachineInfo" + name: "Enum", + allowedValues: ["regional", "zonal"] } } } } }; -export const ComputeNodeUser: msRest.CompositeMapper = { - serializedName: "ComputeNodeUser", +export const VMExtension: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeUser", + className: "VMExtension", modelProperties: { name: { - required: true, serializedName: "name", + required: true, type: { name: "String" } }, - isAdmin: { - serializedName: "isAdmin", + publisher: { + serializedName: "publisher", + required: true, type: { - name: "Boolean" + name: "String" } }, - expiryTime: { - serializedName: "expiryTime", + type: { + serializedName: "type", + required: true, type: { - name: "DateTime" + name: "String" } }, - password: { - serializedName: "password", + typeHandlerVersion: { + serializedName: "typeHandlerVersion", type: { name: "String" } }, - sshPublicKey: { - serializedName: "sshPublicKey", + autoUpgradeMinorVersion: { + serializedName: "autoUpgradeMinorVersion", type: { - name: "String" + name: "Boolean" + } + }, + settings: { + serializedName: "settings", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + protectedSettings: { + serializedName: "protectedSettings", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + provisionAfterExtensions: { + serializedName: "provisionAfterExtensions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ComputeNodeGetRemoteLoginSettingsResult: msRest.CompositeMapper = { - serializedName: "ComputeNodeGetRemoteLoginSettingsResult", +export const OSDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeGetRemoteLoginSettingsResult", + className: "OSDisk", modelProperties: { - remoteLoginIPAddress: { - required: true, - serializedName: "remoteLoginIPAddress", + ephemeralOSDiskSettings: { + serializedName: "ephemeralOSDiskSettings", + type: { + name: "Composite", + className: "DiffDiskSettings" + } + } + } + } +}; + +export const DiffDiskSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiffDiskSettings", + modelProperties: { + placement: { + defaultValue: "CacheDisk", + isConstant: true, + serializedName: "placement", type: { name: "String" } - }, - remoteLoginPort: { + } + } + } +}; + +export const TaskSchedulingPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TaskSchedulingPolicy", + modelProperties: { + nodeFillType: { + serializedName: "nodeFillType", required: true, - serializedName: "remoteLoginPort", type: { - name: "Number" + name: "Enum", + allowedValues: ["spread", "pack"] } } } } }; -export const JobSchedulePatchParameter: msRest.CompositeMapper = { - serializedName: "JobSchedulePatchParameter", +export const NetworkConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobSchedulePatchParameter", + className: "NetworkConfiguration", modelProperties: { - schedule: { - serializedName: "schedule", + subnetId: { + serializedName: "subnetId", type: { - name: "Composite", - className: "Schedule" + name: "String" } }, - jobSpecification: { - serializedName: "jobSpecification", + dynamicVNetAssignmentScope: { + serializedName: "dynamicVNetAssignmentScope", + type: { + name: "Enum", + allowedValues: ["none", "job"] + } + }, + endpointConfiguration: { + serializedName: "endpointConfiguration", type: { name: "Composite", - className: "JobSpecification" + className: "PoolEndpointConfiguration" } }, - metadata: { - serializedName: "metadata", + publicIPAddressConfiguration: { + serializedName: "publicIPAddressConfiguration", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetadataItem" - } - } + name: "Composite", + className: "PublicIPAddressConfiguration" } } } } }; -export const JobScheduleUpdateParameter: msRest.CompositeMapper = { - serializedName: "JobScheduleUpdateParameter", +export const PoolEndpointConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleUpdateParameter", + className: "PoolEndpointConfiguration", modelProperties: { - schedule: { - required: true, - serializedName: "schedule", - type: { - name: "Composite", - className: "Schedule" - } - }, - jobSpecification: { + inboundNATPools: { + serializedName: "inboundNATPools", required: true, - serializedName: "jobSpecification", - defaultValue: {}, - type: { - name: "Composite", - className: "JobSpecification" - } - }, - metadata: { - serializedName: "metadata", type: { name: "Sequence", element: { type: { name: "Composite", - className: "MetadataItem" + className: "InboundNATPool" } } } @@ -6347,87 +2725,124 @@ export const JobScheduleUpdateParameter: msRest.CompositeMapper = { } }; -export const JobDisableParameter: msRest.CompositeMapper = { - serializedName: "JobDisableParameter", +export const InboundNATPool: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobDisableParameter", + className: "InboundNATPool", modelProperties: { - disableTasks: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + protocol: { + serializedName: "protocol", required: true, - serializedName: "disableTasks", type: { name: "Enum", - allowedValues: ["requeue", "terminate", "wait"] + allowedValues: ["tcp", "udp"] } - } - } - } -}; - -export const JobTerminateParameter: msRest.CompositeMapper = { - serializedName: "JobTerminateParameter", - type: { - name: "Composite", - className: "JobTerminateParameter", - modelProperties: { - terminateReason: { - serializedName: "terminateReason", + }, + backendPort: { + serializedName: "backendPort", + required: true, type: { - name: "String" + name: "Number" + } + }, + frontendPortRangeStart: { + serializedName: "frontendPortRangeStart", + required: true, + type: { + name: "Number" + } + }, + frontendPortRangeEnd: { + serializedName: "frontendPortRangeEnd", + required: true, + type: { + name: "Number" + } + }, + networkSecurityGroupRules: { + serializedName: "networkSecurityGroupRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkSecurityGroupRule" + } + } } } } } }; -export const JobPatchParameter: msRest.CompositeMapper = { - serializedName: "JobPatchParameter", +export const NetworkSecurityGroupRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobPatchParameter", + className: "NetworkSecurityGroupRule", modelProperties: { priority: { serializedName: "priority", + required: true, type: { name: "Number" } }, - maxParallelTasks: { - serializedName: "maxParallelTasks", + access: { + serializedName: "access", + required: true, type: { - name: "Number" + name: "Enum", + allowedValues: ["allow", "deny"] } }, - onAllTasksComplete: { - serializedName: "onAllTasksComplete", + sourceAddressPrefix: { + serializedName: "sourceAddressPrefix", + required: true, type: { - name: "Enum", - allowedValues: ["noaction", "terminatejob"] + name: "String" } }, - constraints: { - serializedName: "constraints", + sourcePortRanges: { + serializedName: "sourcePortRanges", type: { - name: "Composite", - className: "JobConstraints" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - poolInfo: { - serializedName: "poolInfo", + } + } + } +}; + +export const PublicIPAddressConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PublicIPAddressConfiguration", + modelProperties: { + provision: { + serializedName: "provision", type: { - name: "Composite", - className: "PoolInformation" + name: "Enum", + allowedValues: ["batchmanaged", "usermanaged", "nopublicipaddresses"] } }, - metadata: { - serializedName: "metadata", + ipAddressIds: { + serializedName: "ipAddressIds", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "MetadataItem" + name: "String" } } } @@ -6436,392 +2851,453 @@ export const JobPatchParameter: msRest.CompositeMapper = { } }; -export const JobUpdateParameter: msRest.CompositeMapper = { - serializedName: "JobUpdateParameter", +export const StartTask: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobUpdateParameter", + className: "StartTask", modelProperties: { - priority: { - serializedName: "priority", + commandLine: { + serializedName: "commandLine", + required: true, type: { - name: "Number" + name: "String" } }, - constraints: { - serializedName: "constraints", + containerSettings: { + serializedName: "containerSettings", type: { name: "Composite", - className: "JobConstraints" + className: "TaskContainerSettings" } }, - poolInfo: { - required: true, - serializedName: "poolInfo", - defaultValue: {}, + resourceFiles: { + serializedName: "resourceFiles", type: { - name: "Composite", - className: "PoolInformation" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceFile" + } + } } }, - metadata: { - serializedName: "metadata", + environmentSettings: { + serializedName: "environmentSettings", type: { name: "Sequence", element: { type: { name: "Composite", - className: "MetadataItem" + className: "EnvironmentSetting" } } } }, - onAllTasksComplete: { - serializedName: "onAllTasksComplete", + userIdentity: { + serializedName: "userIdentity", type: { - name: "Enum", - allowedValues: ["noaction", "terminatejob"] + name: "Composite", + className: "UserIdentity" } - } - } - } -}; - -export const PoolEnableAutoScaleParameter: msRest.CompositeMapper = { - serializedName: "PoolEnableAutoScaleParameter", - type: { - name: "Composite", - className: "PoolEnableAutoScaleParameter", - modelProperties: { - autoScaleFormula: { - serializedName: "autoScaleFormula", + }, + maxTaskRetryCount: { + serializedName: "maxTaskRetryCount", type: { - name: "String" + name: "Number" } }, - autoScaleEvaluationInterval: { - serializedName: "autoScaleEvaluationInterval", + waitForSuccess: { + serializedName: "waitForSuccess", type: { - name: "TimeSpan" + name: "Boolean" } } } } }; -export const PoolEvaluateAutoScaleParameter: msRest.CompositeMapper = { - serializedName: "PoolEvaluateAutoScaleParameter", +export const CertificateReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolEvaluateAutoScaleParameter", + className: "CertificateReference", modelProperties: { - autoScaleFormula: { + thumbprint: { + serializedName: "thumbprint", required: true, - serializedName: "autoScaleFormula", type: { name: "String" } - } - } - } -}; - -export const PoolResizeParameter: msRest.CompositeMapper = { - serializedName: "PoolResizeParameter", - type: { - name: "Composite", - className: "PoolResizeParameter", - modelProperties: { - targetDedicatedNodes: { - serializedName: "targetDedicatedNodes", + }, + thumbprintAlgorithm: { + serializedName: "thumbprintAlgorithm", + required: true, type: { - name: "Number" + name: "String" } }, - targetLowPriorityNodes: { - serializedName: "targetLowPriorityNodes", + storeLocation: { + serializedName: "storeLocation", type: { - name: "Number" + name: "Enum", + allowedValues: ["currentuser", "localmachine"] } }, - resizeTimeout: { - serializedName: "resizeTimeout", + storeName: { + serializedName: "storeName", type: { - name: "TimeSpan" + name: "String" } }, - nodeDeallocationOption: { - serializedName: "nodeDeallocationOption", + visibility: { + serializedName: "visibility", type: { - name: "Enum", - allowedValues: ["requeue", "terminate", "taskcompletion", "retaineddata"] + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: ["starttask", "task", "remoteuser"] + } + } } } } } }; -export const PoolUpdatePropertiesParameter: msRest.CompositeMapper = { - serializedName: "PoolUpdatePropertiesParameter", +export const UserAccount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolUpdatePropertiesParameter", + className: "UserAccount", modelProperties: { - startTask: { - serializedName: "startTask", + name: { + serializedName: "name", + required: true, type: { - name: "Composite", - className: "StartTask" + name: "String" } }, - certificateReferences: { + password: { + serializedName: "password", required: true, - serializedName: "certificateReferences", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CertificateReference" - } - } + name: "String" } }, - applicationPackageReferences: { - required: true, - serializedName: "applicationPackageReferences", + elevationLevel: { + serializedName: "elevationLevel", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationPackageReference" - } - } + name: "Enum", + allowedValues: ["nonadmin", "admin"] } }, - metadata: { - required: true, - serializedName: "metadata", + linuxUserConfiguration: { + serializedName: "linuxUserConfiguration", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetadataItem" - } - } + name: "Composite", + className: "LinuxUserConfiguration" + } + }, + windowsUserConfiguration: { + serializedName: "windowsUserConfiguration", + type: { + name: "Composite", + className: "WindowsUserConfiguration" } } } } }; -export const PoolPatchParameter: msRest.CompositeMapper = { - serializedName: "PoolPatchParameter", +export const LinuxUserConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolPatchParameter", + className: "LinuxUserConfiguration", modelProperties: { - startTask: { - serializedName: "startTask", + uid: { + serializedName: "uid", type: { - name: "Composite", - className: "StartTask" + name: "Number" } }, - certificateReferences: { - serializedName: "certificateReferences", + gid: { + serializedName: "gid", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CertificateReference" - } - } + name: "Number" } }, - applicationPackageReferences: { - serializedName: "applicationPackageReferences", + sshPrivateKey: { + serializedName: "sshPrivateKey", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationPackageReference" - } - } + name: "String" } - }, - metadata: { - serializedName: "metadata", + } + } + } +}; + +export const WindowsUserConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WindowsUserConfiguration", + modelProperties: { + loginMode: { + serializedName: "loginMode", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetadataItem" - } - } + name: "Enum", + allowedValues: ["batch", "interactive"] } } } } }; -export const TaskUpdateParameter: msRest.CompositeMapper = { - serializedName: "TaskUpdateParameter", +export const MetadataItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskUpdateParameter", + className: "MetadataItem", modelProperties: { - constraints: { - serializedName: "constraints", + name: { + serializedName: "name", + required: true, type: { - name: "Composite", - className: "TaskConstraints" + name: "String" + } + }, + value: { + serializedName: "value", + required: true, + type: { + name: "String" } } } } }; -export const NodeUpdateUserParameter: msRest.CompositeMapper = { - serializedName: "NodeUpdateUserParameter", +export const MountConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeUpdateUserParameter", + className: "MountConfiguration", modelProperties: { - password: { - serializedName: "password", + azureBlobFileSystemConfiguration: { + serializedName: "azureBlobFileSystemConfiguration", type: { - name: "String" + name: "Composite", + className: "AzureBlobFileSystemConfiguration" } }, - expiryTime: { - serializedName: "expiryTime", + nfsMountConfiguration: { + serializedName: "nfsMountConfiguration", type: { - name: "DateTime" + name: "Composite", + className: "NFSMountConfiguration" } }, - sshPublicKey: { - serializedName: "sshPublicKey", + cifsMountConfiguration: { + serializedName: "cifsMountConfiguration", type: { - name: "String" + name: "Composite", + className: "CifsMountConfiguration" + } + }, + azureFileShareConfiguration: { + serializedName: "azureFileShareConfiguration", + type: { + name: "Composite", + className: "AzureFileShareConfiguration" } } } } }; -export const NodeRebootParameter: msRest.CompositeMapper = { - serializedName: "NodeRebootParameter", +export const AzureBlobFileSystemConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeRebootParameter", + className: "AzureBlobFileSystemConfiguration", modelProperties: { - nodeRebootOption: { - serializedName: "nodeRebootOption", + accountName: { + serializedName: "accountName", + required: true, type: { - name: "Enum", - allowedValues: ["requeue", "terminate", "taskcompletion", "retaineddata"] + name: "String" + } + }, + containerName: { + serializedName: "containerName", + required: true, + type: { + name: "String" + } + }, + accountKey: { + serializedName: "accountKey", + type: { + name: "String" + } + }, + sasKey: { + serializedName: "sasKey", + type: { + name: "String" + } + }, + blobfuseOptions: { + serializedName: "blobfuseOptions", + type: { + name: "String" + } + }, + relativeMountPath: { + serializedName: "relativeMountPath", + required: true, + type: { + name: "String" + } + }, + identityReference: { + serializedName: "identityReference", + type: { + name: "Composite", + className: "ComputeNodeIdentityReference" } } } } }; -export const NodeReimageParameter: msRest.CompositeMapper = { - serializedName: "NodeReimageParameter", +export const NFSMountConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeReimageParameter", + className: "NFSMountConfiguration", modelProperties: { - nodeReimageOption: { - serializedName: "nodeReimageOption", + source: { + serializedName: "source", + required: true, type: { - name: "Enum", - allowedValues: ["requeue", "terminate", "taskcompletion", "retaineddata"] + name: "String" + } + }, + relativeMountPath: { + serializedName: "relativeMountPath", + required: true, + type: { + name: "String" + } + }, + mountOptions: { + serializedName: "mountOptions", + type: { + name: "String" } } } } }; -export const NodeDisableSchedulingParameter: msRest.CompositeMapper = { - serializedName: "NodeDisableSchedulingParameter", +export const CifsMountConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeDisableSchedulingParameter", + className: "CifsMountConfiguration", modelProperties: { - nodeDisableSchedulingOption: { - serializedName: "nodeDisableSchedulingOption", + username: { + serializedName: "username", + required: true, type: { - name: "Enum", - allowedValues: ["requeue", "terminate", "taskcompletion"] + name: "String" + } + }, + source: { + serializedName: "source", + required: true, + type: { + name: "String" + } + }, + relativeMountPath: { + serializedName: "relativeMountPath", + required: true, + type: { + name: "String" + } + }, + mountOptions: { + serializedName: "mountOptions", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + required: true, + type: { + name: "String" } } } } }; -export const NodeRemoveParameter: msRest.CompositeMapper = { - serializedName: "NodeRemoveParameter", +export const AzureFileShareConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeRemoveParameter", + className: "AzureFileShareConfiguration", modelProperties: { - nodeList: { + accountName: { + serializedName: "accountName", required: true, - serializedName: "nodeList", - constraints: { - MaxItems: 100 - }, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - resizeTimeout: { - serializedName: "resizeTimeout", + azureFileUrl: { + serializedName: "azureFileUrl", + required: true, type: { - name: "TimeSpan" + name: "String" } }, - nodeDeallocationOption: { - serializedName: "nodeDeallocationOption", + accountKey: { + serializedName: "accountKey", + required: true, type: { - name: "Enum", - allowedValues: ["requeue", "terminate", "taskcompletion", "retaineddata"] + name: "String" + } + }, + relativeMountPath: { + serializedName: "relativeMountPath", + required: true, + type: { + name: "String" + } + }, + mountOptions: { + serializedName: "mountOptions", + type: { + name: "String" } } } } }; -export const UploadBatchServiceLogsConfiguration: msRest.CompositeMapper = { - serializedName: "UploadBatchServiceLogsConfiguration", +export const JobScheduleExecutionInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UploadBatchServiceLogsConfiguration", + className: "JobScheduleExecutionInformation", modelProperties: { - containerUrl: { - required: true, - serializedName: "containerUrl", + nextRunTime: { + serializedName: "nextRunTime", type: { - name: "String" + name: "DateTime" } }, - startTime: { - required: true, - serializedName: "startTime", + recentJob: { + serializedName: "recentJob", type: { - name: "DateTime" + name: "Composite", + className: "RecentJob" } }, endTime: { @@ -6829,3821 +3305,4019 @@ export const UploadBatchServiceLogsConfiguration: msRest.CompositeMapper = { type: { name: "DateTime" } - }, - identityReference: { - serializedName: "identityReference", - type: { - name: "Composite", - className: "ComputeNodeIdentityReference" - } } } } }; -export const UploadBatchServiceLogsResult: msRest.CompositeMapper = { - serializedName: "UploadBatchServiceLogsResult", +export const RecentJob: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UploadBatchServiceLogsResult", + className: "RecentJob", modelProperties: { - virtualDirectoryName: { - required: true, - serializedName: "virtualDirectoryName", + id: { + serializedName: "id", type: { name: "String" } }, - numberOfFilesUploaded: { - required: true, - serializedName: "numberOfFilesUploaded", + url: { + serializedName: "url", type: { - name: "Number" + name: "String" } } } } }; -export const NodeCounts: msRest.CompositeMapper = { - serializedName: "NodeCounts", +export const JobScheduleStatistics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeCounts", + className: "JobScheduleStatistics", modelProperties: { - creating: { + url: { + serializedName: "url", required: true, - serializedName: "creating", type: { - name: "Number" + name: "String" } }, - idle: { + startTime: { + serializedName: "startTime", required: true, - serializedName: "idle", type: { - name: "Number" + name: "DateTime" } }, - offline: { + lastUpdateTime: { + serializedName: "lastUpdateTime", required: true, - serializedName: "offline", type: { - name: "Number" + name: "DateTime" } }, - preempted: { + userCPUTime: { + serializedName: "userCPUTime", required: true, - serializedName: "preempted", type: { - name: "Number" + name: "TimeSpan" } }, - rebooting: { + kernelCPUTime: { + serializedName: "kernelCPUTime", required: true, - serializedName: "rebooting", type: { - name: "Number" + name: "TimeSpan" } }, - reimaging: { + wallClockTime: { + serializedName: "wallClockTime", required: true, - serializedName: "reimaging", type: { - name: "Number" + name: "TimeSpan" } }, - running: { + readIOps: { + serializedName: "readIOps", required: true, - serializedName: "running", type: { name: "Number" } }, - starting: { + writeIOps: { + serializedName: "writeIOps", required: true, - serializedName: "starting", type: { name: "Number" } }, - startTaskFailed: { + readIOGiB: { + serializedName: "readIOGiB", required: true, - serializedName: "startTaskFailed", type: { name: "Number" } }, - leavingPool: { + writeIOGiB: { + serializedName: "writeIOGiB", required: true, - serializedName: "leavingPool", type: { name: "Number" } }, - unknown: { + numSucceededTasks: { + serializedName: "numSucceededTasks", required: true, - serializedName: "unknown", type: { name: "Number" } }, - unusable: { + numFailedTasks: { + serializedName: "numFailedTasks", required: true, - serializedName: "unusable", type: { name: "Number" } }, - waitingForStartTask: { + numTaskRetries: { + serializedName: "numTaskRetries", required: true, - serializedName: "waitingForStartTask", type: { name: "Number" } }, - total: { + waitTime: { + serializedName: "waitTime", required: true, - serializedName: "total", type: { - name: "Number" + name: "TimeSpan" } } } } }; -export const PoolNodeCounts: msRest.CompositeMapper = { - serializedName: "PoolNodeCounts", +export const JobSchedulePatchParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolNodeCounts", + className: "JobSchedulePatchParameter", modelProperties: { - poolId: { - required: true, - serializedName: "poolId", - type: { - name: "String" - } - }, - dedicated: { - serializedName: "dedicated", + schedule: { + serializedName: "schedule", type: { name: "Composite", - className: "NodeCounts" + className: "Schedule" } }, - lowPriority: { - serializedName: "lowPriority", + jobSpecification: { + serializedName: "jobSpecification", type: { name: "Composite", - className: "NodeCounts" - } - } - } - } -}; - -export const ApplicationListOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationListOptions", - modelProperties: { - maxResults: { - defaultValue: 1000, - type: { - name: "Number" - } - }, - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, - type: { - name: "Boolean" + className: "JobSpecification" } }, - ocpDate: { + metadata: { + serializedName: "metadata", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } } } } } }; -export const ApplicationGetOptions: msRest.CompositeMapper = { +export const JobScheduleUpdateParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGetOptions", + className: "JobScheduleUpdateParameter", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { + schedule: { + serializedName: "schedule", type: { - name: "Uuid" + name: "Composite", + className: "Schedule" } }, - returnClientRequestId: { - defaultValue: false, + jobSpecification: { + serializedName: "jobSpecification", type: { - name: "Boolean" + name: "Composite", + className: "JobSpecification" } }, - ocpDate: { + metadata: { + serializedName: "metadata", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } } } } } }; -export const PoolListUsageMetricsOptions: msRest.CompositeMapper = { +export const JobScheduleAddParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolListUsageMetricsOptions", + className: "JobScheduleAddParameter", modelProperties: { - startTime: { - type: { - name: "DateTime" - } - }, - endTime: { - type: { - name: "DateTime" - } - }, - filter: { + id: { + serializedName: "id", + required: true, type: { name: "String" } }, - maxResults: { - defaultValue: 1000, - type: { - name: "Number" - } - }, - timeout: { - defaultValue: 30, + displayName: { + serializedName: "displayName", type: { - name: "Number" + name: "String" } }, - clientRequestId: { + schedule: { + serializedName: "schedule", type: { - name: "Uuid" + name: "Composite", + className: "Schedule" } }, - returnClientRequestId: { - defaultValue: false, + jobSpecification: { + serializedName: "jobSpecification", type: { - name: "Boolean" + name: "Composite", + className: "JobSpecification" } }, - ocpDate: { + metadata: { + serializedName: "metadata", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } } } } } }; -export const PoolGetAllLifetimeStatisticsOptions: msRest.CompositeMapper = { +export const CloudJobScheduleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolGetAllLifetimeStatisticsOptions", + className: "CloudJobScheduleListResult", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, + value: { + serializedName: "value", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudJobSchedule" + } + } } }, - ocpDate: { + odataNextLink: { + serializedName: "odata\\.nextLink", type: { - name: "DateTimeRfc1123" + name: "String" } } } } }; -export const PoolAddOptions: msRest.CompositeMapper = { +export const CloudJob: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolAddOptions", + className: "CloudJob", modelProperties: { - timeout: { - defaultValue: 30, + id: { + serializedName: "id", type: { - name: "Number" + name: "String" } }, - clientRequestId: { + displayName: { + serializedName: "displayName", type: { - name: "Uuid" + name: "String" } }, - returnClientRequestId: { - defaultValue: false, + usesTaskDependencies: { + serializedName: "usesTaskDependencies", type: { name: "Boolean" } }, - ocpDate: { - type: { - name: "DateTimeRfc1123" - } - } - } - } -}; - -export const PoolListOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "PoolListOptions", - modelProperties: { - filter: { - type: { - name: "String" - } - }, - select: { + url: { + serializedName: "url", type: { name: "String" } }, - expand: { + eTag: { + serializedName: "eTag", type: { name: "String" } }, - maxResults: { - defaultValue: 1000, + lastModified: { + serializedName: "lastModified", type: { - name: "Number" + name: "DateTime" } }, - timeout: { - defaultValue: 30, + creationTime: { + serializedName: "creationTime", type: { - name: "Number" + name: "DateTime" } }, - clientRequestId: { + state: { + serializedName: "state", type: { - name: "Uuid" + name: "Enum", + allowedValues: [ + "active", + "disabling", + "disabled", + "enabling", + "terminating", + "completed", + "deleting" + ] } }, - returnClientRequestId: { - defaultValue: false, + stateTransitionTime: { + serializedName: "stateTransitionTime", type: { - name: "Boolean" + name: "DateTime" } }, - ocpDate: { + previousState: { + serializedName: "previousState", type: { - name: "DateTimeRfc1123" - } - } - } - } -}; - -export const PoolDeleteMethodOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "PoolDeleteMethodOptions", - modelProperties: { - timeout: { - defaultValue: 30, + name: "Enum", + allowedValues: [ + "active", + "disabling", + "disabled", + "enabling", + "terminating", + "completed", + "deleting" + ] + } + }, + previousStateTransitionTime: { + serializedName: "previousStateTransitionTime", type: { - name: "Number" + name: "DateTime" } }, - clientRequestId: { + priority: { + serializedName: "priority", type: { - name: "Uuid" + name: "Number" } }, - returnClientRequestId: { - defaultValue: false, + allowTaskPreemption: { + serializedName: "allowTaskPreemption", type: { name: "Boolean" } }, - ocpDate: { + maxParallelTasks: { + defaultValue: -1, + serializedName: "maxParallelTasks", type: { - name: "DateTimeRfc1123" + name: "Number" } }, - ifMatch: { + constraints: { + serializedName: "constraints", type: { - name: "String" + name: "Composite", + className: "JobConstraints" } }, - ifNoneMatch: { + jobManagerTask: { + serializedName: "jobManagerTask", type: { - name: "String" + name: "Composite", + className: "JobManagerTask" } }, - ifModifiedSince: { + jobPreparationTask: { + serializedName: "jobPreparationTask", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "JobPreparationTask" } }, - ifUnmodifiedSince: { + jobReleaseTask: { + serializedName: "jobReleaseTask", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "JobReleaseTask" } - } - } - } -}; - -export const PoolExistsOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "PoolExistsOptions", - modelProperties: { - timeout: { - defaultValue: 30, + }, + commonEnvironmentSettings: { + serializedName: "commonEnvironmentSettings", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentSetting" + } + } } }, - clientRequestId: { + poolInfo: { + serializedName: "poolInfo", type: { - name: "Uuid" + name: "Composite", + className: "PoolInformation" } }, - returnClientRequestId: { - defaultValue: false, + onAllTasksComplete: { + serializedName: "onAllTasksComplete", type: { - name: "Boolean" + name: "Enum", + allowedValues: ["noaction", "terminatejob"] } }, - ocpDate: { + onTaskFailure: { + serializedName: "onTaskFailure", type: { - name: "DateTimeRfc1123" + name: "Enum", + allowedValues: ["noaction", "performexitoptionsjobaction"] } }, - ifMatch: { + networkConfiguration: { + serializedName: "networkConfiguration", type: { - name: "String" + name: "Composite", + className: "JobNetworkConfiguration" } }, - ifNoneMatch: { + metadata: { + serializedName: "metadata", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } } }, - ifModifiedSince: { + executionInfo: { + serializedName: "executionInfo", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "JobExecutionInformation" } }, - ifUnmodifiedSince: { + stats: { + serializedName: "stats", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "JobStatistics" } } } } }; -export const PoolGetOptions: msRest.CompositeMapper = { +export const JobExecutionInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolGetOptions", + className: "JobExecutionInformation", modelProperties: { - select: { + startTime: { + serializedName: "startTime", + required: true, type: { - name: "String" + name: "DateTime" } }, - expand: { + endTime: { + serializedName: "endTime", type: { - name: "String" + name: "DateTime" } }, - timeout: { - defaultValue: 30, + poolId: { + serializedName: "poolId", type: { - name: "Number" + name: "String" } }, - clientRequestId: { + schedulingError: { + serializedName: "schedulingError", type: { - name: "Uuid" + name: "Composite", + className: "JobSchedulingError" } }, - returnClientRequestId: { - defaultValue: false, + terminateReason: { + serializedName: "terminateReason", type: { - name: "Boolean" + name: "String" } - }, - ocpDate: { + } + } + } +}; + +export const JobSchedulingError: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobSchedulingError", + modelProperties: { + category: { + serializedName: "category", + required: true, type: { - name: "DateTimeRfc1123" + name: "Enum", + allowedValues: ["usererror", "servererror"] } }, - ifMatch: { + code: { + serializedName: "code", type: { name: "String" } }, - ifNoneMatch: { + message: { + serializedName: "message", type: { name: "String" } }, - ifModifiedSince: { - type: { - name: "DateTimeRfc1123" - } - }, - ifUnmodifiedSince: { + details: { + serializedName: "details", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NameValuePair" + } + } } } } } }; -export const PoolPatchOptions: msRest.CompositeMapper = { +export const JobPatchParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolPatchOptions", + className: "JobPatchParameter", modelProperties: { - timeout: { - defaultValue: 30, + priority: { + serializedName: "priority", type: { name: "Number" } }, - clientRequestId: { + maxParallelTasks: { + serializedName: "maxParallelTasks", type: { - name: "Uuid" + name: "Number" } }, - returnClientRequestId: { - defaultValue: false, + allowTaskPreemption: { + serializedName: "allowTaskPreemption", type: { name: "Boolean" } }, - ocpDate: { - type: { - name: "DateTimeRfc1123" - } - }, - ifMatch: { + onAllTasksComplete: { + serializedName: "onAllTasksComplete", type: { - name: "String" + name: "Enum", + allowedValues: ["noaction", "terminatejob"] } }, - ifNoneMatch: { + constraints: { + serializedName: "constraints", type: { - name: "String" + name: "Composite", + className: "JobConstraints" } }, - ifModifiedSince: { + poolInfo: { + serializedName: "poolInfo", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "PoolInformation" } }, - ifUnmodifiedSince: { + metadata: { + serializedName: "metadata", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } } } } } }; -export const PoolDisableAutoScaleOptions: msRest.CompositeMapper = { +export const JobUpdateParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolDisableAutoScaleOptions", + className: "JobUpdateParameter", modelProperties: { - timeout: { - defaultValue: 30, + priority: { + serializedName: "priority", type: { name: "Number" } }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, - type: { - name: "Boolean" - } - }, - ocpDate: { - type: { - name: "DateTimeRfc1123" - } - } - } - } -}; - -export const PoolEnableAutoScaleOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "PoolEnableAutoScaleOptions", - modelProperties: { - timeout: { - defaultValue: 30, + maxParallelTasks: { + defaultValue: -1, + serializedName: "maxParallelTasks", type: { name: "Number" } }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, + allowTaskPreemption: { + serializedName: "allowTaskPreemption", type: { name: "Boolean" } }, - ocpDate: { + constraints: { + serializedName: "constraints", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "JobConstraints" } }, - ifMatch: { + poolInfo: { + serializedName: "poolInfo", type: { - name: "String" + name: "Composite", + className: "PoolInformation" } }, - ifNoneMatch: { + metadata: { + serializedName: "metadata", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } } }, - ifModifiedSince: { + onAllTasksComplete: { + serializedName: "onAllTasksComplete", type: { - name: "DateTimeRfc1123" + name: "Enum", + allowedValues: ["noaction", "terminatejob"] } - }, - ifUnmodifiedSince: { + } + } + } +}; + +export const JobDisableParameter: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobDisableParameter", + modelProperties: { + disableTasks: { + serializedName: "disableTasks", + required: true, type: { - name: "DateTimeRfc1123" + name: "Enum", + allowedValues: ["requeue", "terminate", "wait"] } } } } }; -export const PoolEvaluateAutoScaleOptions: msRest.CompositeMapper = { +export const JobTerminateParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolEvaluateAutoScaleOptions", + className: "JobTerminateParameter", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, - type: { - name: "Boolean" - } - }, - ocpDate: { + terminateReason: { + serializedName: "terminateReason", type: { - name: "DateTimeRfc1123" + name: "String" } } } } }; -export const PoolResizeOptions: msRest.CompositeMapper = { +export const JobAddParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolResizeOptions", + className: "JobAddParameter", modelProperties: { - timeout: { - defaultValue: 30, + id: { + serializedName: "id", + required: true, type: { - name: "Number" + name: "String" } }, - clientRequestId: { + displayName: { + serializedName: "displayName", type: { - name: "Uuid" + name: "String" } }, - returnClientRequestId: { - defaultValue: false, + priority: { + serializedName: "priority", type: { - name: "Boolean" + name: "Number" } }, - ocpDate: { + maxParallelTasks: { + defaultValue: -1, + serializedName: "maxParallelTasks", type: { - name: "DateTimeRfc1123" + name: "Number" } }, - ifMatch: { + allowTaskPreemption: { + serializedName: "allowTaskPreemption", type: { - name: "String" + name: "Boolean" } }, - ifNoneMatch: { + constraints: { + serializedName: "constraints", type: { - name: "String" + name: "Composite", + className: "JobConstraints" } }, - ifModifiedSince: { + jobManagerTask: { + serializedName: "jobManagerTask", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "JobManagerTask" } }, - ifUnmodifiedSince: { + jobPreparationTask: { + serializedName: "jobPreparationTask", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "JobPreparationTask" } - } - } - } -}; - -export const PoolStopResizeOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "PoolStopResizeOptions", - modelProperties: { - timeout: { - defaultValue: 30, + }, + jobReleaseTask: { + serializedName: "jobReleaseTask", type: { - name: "Number" + name: "Composite", + className: "JobReleaseTask" } }, - clientRequestId: { + commonEnvironmentSettings: { + serializedName: "commonEnvironmentSettings", type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentSetting" + } + } } }, - returnClientRequestId: { - defaultValue: false, + poolInfo: { + serializedName: "poolInfo", type: { - name: "Boolean" + name: "Composite", + className: "PoolInformation" } }, - ocpDate: { + onAllTasksComplete: { + serializedName: "onAllTasksComplete", type: { - name: "DateTimeRfc1123" + name: "Enum", + allowedValues: ["noaction", "terminatejob"] } }, - ifMatch: { + onTaskFailure: { + serializedName: "onTaskFailure", type: { - name: "String" + name: "Enum", + allowedValues: ["noaction", "performexitoptionsjobaction"] } }, - ifNoneMatch: { + metadata: { + serializedName: "metadata", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } } }, - ifModifiedSince: { + usesTaskDependencies: { + serializedName: "usesTaskDependencies", type: { - name: "DateTimeRfc1123" + name: "Boolean" } }, - ifUnmodifiedSince: { + networkConfiguration: { + serializedName: "networkConfiguration", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "JobNetworkConfiguration" } } } } }; -export const PoolUpdatePropertiesOptions: msRest.CompositeMapper = { +export const CloudJobListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolUpdatePropertiesOptions", + className: "CloudJobListResult", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, + value: { + serializedName: "value", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudJob" + } + } } }, - ocpDate: { + odataNextLink: { + serializedName: "odata\\.nextLink", type: { - name: "DateTimeRfc1123" + name: "String" } } } } }; -export const PoolRemoveNodesOptions: msRest.CompositeMapper = { +export const CloudJobListPreparationAndReleaseTaskStatusResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolRemoveNodesOptions", + className: "CloudJobListPreparationAndReleaseTaskStatusResult", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { + value: { + serializedName: "value", type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobPreparationAndReleaseTaskExecutionInformation" + } + } } }, - returnClientRequestId: { - defaultValue: false, + odataNextLink: { + serializedName: "odata\\.nextLink", type: { - name: "Boolean" + name: "String" } - }, - ocpDate: { + } + } + } +}; + +export const JobPreparationAndReleaseTaskExecutionInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobPreparationAndReleaseTaskExecutionInformation", + modelProperties: { + poolId: { + serializedName: "poolId", type: { - name: "DateTimeRfc1123" + name: "String" } }, - ifMatch: { + nodeId: { + serializedName: "nodeId", type: { name: "String" } }, - ifNoneMatch: { + nodeUrl: { + serializedName: "nodeUrl", type: { name: "String" } }, - ifModifiedSince: { + jobPreparationTaskExecutionInfo: { + serializedName: "jobPreparationTaskExecutionInfo", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "JobPreparationTaskExecutionInformation" } }, - ifUnmodifiedSince: { + jobReleaseTaskExecutionInfo: { + serializedName: "jobReleaseTaskExecutionInfo", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "JobReleaseTaskExecutionInformation" } } } } }; -export const AccountListSupportedImagesOptions: msRest.CompositeMapper = { +export const JobPreparationTaskExecutionInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccountListSupportedImagesOptions", + className: "JobPreparationTaskExecutionInformation", modelProperties: { - filter: { + startTime: { + serializedName: "startTime", + required: true, type: { - name: "String" + name: "DateTime" } }, - maxResults: { - defaultValue: 1000, + endTime: { + serializedName: "endTime", type: { - name: "Number" + name: "DateTime" } }, - timeout: { - defaultValue: 30, + state: { + serializedName: "state", + required: true, type: { - name: "Number" + name: "Enum", + allowedValues: ["running", "completed"] } }, - clientRequestId: { + taskRootDirectory: { + serializedName: "taskRootDirectory", type: { - name: "Uuid" + name: "String" } }, - returnClientRequestId: { - defaultValue: false, + taskRootDirectoryUrl: { + serializedName: "taskRootDirectoryUrl", type: { - name: "Boolean" + name: "String" } }, - ocpDate: { - type: { - name: "DateTimeRfc1123" - } - } - } - } -}; - -export const AccountListPoolNodeCountsOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "AccountListPoolNodeCountsOptions", - modelProperties: { - filter: { + exitCode: { + serializedName: "exitCode", type: { - name: "String" + name: "Number" } }, - maxResults: { - defaultValue: 10, + containerInfo: { + serializedName: "containerInfo", type: { - name: "Number" + name: "Composite", + className: "TaskContainerExecutionInformation" } }, - timeout: { - defaultValue: 30, + failureInfo: { + serializedName: "failureInfo", type: { - name: "Number" + name: "Composite", + className: "TaskFailureInformation" } }, - clientRequestId: { + retryCount: { + serializedName: "retryCount", + required: true, type: { - name: "Uuid" + name: "Number" } }, - returnClientRequestId: { - defaultValue: false, + lastRetryTime: { + serializedName: "lastRetryTime", type: { - name: "Boolean" + name: "DateTime" } }, - ocpDate: { + result: { + serializedName: "result", type: { - name: "DateTimeRfc1123" + name: "Enum", + allowedValues: ["success", "failure"] } } } } }; -export const JobGetAllLifetimeStatisticsOptions: msRest.CompositeMapper = { +export const TaskContainerExecutionInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobGetAllLifetimeStatisticsOptions", + className: "TaskContainerExecutionInformation", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { + containerId: { + serializedName: "containerId", type: { - name: "Uuid" + name: "String" } }, - returnClientRequestId: { - defaultValue: false, + state: { + serializedName: "state", type: { - name: "Boolean" + name: "String" } }, - ocpDate: { + error: { + serializedName: "error", type: { - name: "DateTimeRfc1123" + name: "String" } } } } }; -export const JobDeleteMethodOptions: msRest.CompositeMapper = { +export const TaskFailureInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobDeleteMethodOptions", + className: "TaskFailureInformation", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, - type: { - name: "Boolean" - } - }, - ocpDate: { + category: { + serializedName: "category", + required: true, type: { - name: "DateTimeRfc1123" + name: "Enum", + allowedValues: ["usererror", "servererror"] } }, - ifMatch: { + code: { + serializedName: "code", type: { name: "String" } }, - ifNoneMatch: { + message: { + serializedName: "message", type: { name: "String" } }, - ifModifiedSince: { - type: { - name: "DateTimeRfc1123" - } - }, - ifUnmodifiedSince: { + details: { + serializedName: "details", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NameValuePair" + } + } } } } } }; -export const JobGetOptions: msRest.CompositeMapper = { +export const JobReleaseTaskExecutionInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobGetOptions", + className: "JobReleaseTaskExecutionInformation", modelProperties: { - select: { - type: { - name: "String" - } - }, - expand: { + startTime: { + serializedName: "startTime", + required: true, type: { - name: "String" + name: "DateTime" } }, - timeout: { - defaultValue: 30, + endTime: { + serializedName: "endTime", type: { - name: "Number" + name: "DateTime" } }, - clientRequestId: { + state: { + serializedName: "state", + required: true, type: { - name: "Uuid" + name: "Enum", + allowedValues: ["running", "completed"] } }, - returnClientRequestId: { - defaultValue: false, + taskRootDirectory: { + serializedName: "taskRootDirectory", type: { - name: "Boolean" + name: "String" } }, - ocpDate: { + taskRootDirectoryUrl: { + serializedName: "taskRootDirectoryUrl", type: { - name: "DateTimeRfc1123" + name: "String" } }, - ifMatch: { + exitCode: { + serializedName: "exitCode", type: { - name: "String" + name: "Number" } }, - ifNoneMatch: { + containerInfo: { + serializedName: "containerInfo", type: { - name: "String" + name: "Composite", + className: "TaskContainerExecutionInformation" } }, - ifModifiedSince: { + failureInfo: { + serializedName: "failureInfo", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "TaskFailureInformation" } }, - ifUnmodifiedSince: { + result: { + serializedName: "result", type: { - name: "DateTimeRfc1123" + name: "Enum", + allowedValues: ["success", "failure"] } } } } }; -export const JobPatchOptions: msRest.CompositeMapper = { +export const TaskCountsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobPatchOptions", + className: "TaskCountsResult", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { + taskCounts: { + serializedName: "taskCounts", type: { - name: "Uuid" + name: "Composite", + className: "TaskCounts" } }, - returnClientRequestId: { - defaultValue: false, + taskSlotCounts: { + serializedName: "taskSlotCounts", type: { - name: "Boolean" + name: "Composite", + className: "TaskSlotCounts" } - }, - ocpDate: { + } + } + } +}; + +export const TaskCounts: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TaskCounts", + modelProperties: { + active: { + serializedName: "active", + required: true, type: { - name: "DateTimeRfc1123" + name: "Number" } }, - ifMatch: { + running: { + serializedName: "running", + required: true, type: { - name: "String" + name: "Number" } }, - ifNoneMatch: { + completed: { + serializedName: "completed", + required: true, type: { - name: "String" + name: "Number" } }, - ifModifiedSince: { + succeeded: { + serializedName: "succeeded", + required: true, type: { - name: "DateTimeRfc1123" + name: "Number" } }, - ifUnmodifiedSince: { + failed: { + serializedName: "failed", + required: true, type: { - name: "DateTimeRfc1123" + name: "Number" } } } } }; -export const JobUpdateOptions: msRest.CompositeMapper = { +export const TaskSlotCounts: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobUpdateOptions", + className: "TaskSlotCounts", modelProperties: { - timeout: { - defaultValue: 30, + active: { + serializedName: "active", + required: true, type: { name: "Number" } }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, - type: { - name: "Boolean" - } - }, - ocpDate: { - type: { - name: "DateTimeRfc1123" - } - }, - ifMatch: { + running: { + serializedName: "running", + required: true, type: { - name: "String" + name: "Number" } }, - ifNoneMatch: { + completed: { + serializedName: "completed", + required: true, type: { - name: "String" + name: "Number" } }, - ifModifiedSince: { + succeeded: { + serializedName: "succeeded", + required: true, type: { - name: "DateTimeRfc1123" + name: "Number" } }, - ifUnmodifiedSince: { + failed: { + serializedName: "failed", + required: true, type: { - name: "DateTimeRfc1123" + name: "Number" } } } } }; -export const JobDisableOptions: msRest.CompositeMapper = { +export const PoolAddParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobDisableOptions", + className: "PoolAddParameter", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, + id: { + serializedName: "id", + required: true, type: { - name: "Boolean" + name: "String" } }, - ocpDate: { + displayName: { + serializedName: "displayName", type: { - name: "DateTimeRfc1123" + name: "String" } }, - ifMatch: { + vmSize: { + serializedName: "vmSize", + required: true, type: { name: "String" } }, - ifNoneMatch: { + cloudServiceConfiguration: { + serializedName: "cloudServiceConfiguration", type: { - name: "String" + name: "Composite", + className: "CloudServiceConfiguration" } }, - ifModifiedSince: { + virtualMachineConfiguration: { + serializedName: "virtualMachineConfiguration", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "VirtualMachineConfiguration" } }, - ifUnmodifiedSince: { + resizeTimeout: { + serializedName: "resizeTimeout", type: { - name: "DateTimeRfc1123" + name: "TimeSpan" } - } - } - } -}; - -export const JobEnableOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "JobEnableOptions", - modelProperties: { - timeout: { - defaultValue: 30, + }, + targetDedicatedNodes: { + serializedName: "targetDedicatedNodes", type: { name: "Number" } }, - clientRequestId: { + targetLowPriorityNodes: { + serializedName: "targetLowPriorityNodes", type: { - name: "Uuid" + name: "Number" } }, - returnClientRequestId: { - defaultValue: false, + enableAutoScale: { + serializedName: "enableAutoScale", type: { name: "Boolean" } }, - ocpDate: { + autoScaleFormula: { + serializedName: "autoScaleFormula", type: { - name: "DateTimeRfc1123" + name: "String" } }, - ifMatch: { + autoScaleEvaluationInterval: { + serializedName: "autoScaleEvaluationInterval", type: { - name: "String" + name: "TimeSpan" } }, - ifNoneMatch: { + enableInterNodeCommunication: { + serializedName: "enableInterNodeCommunication", type: { - name: "String" + name: "Boolean" } }, - ifModifiedSince: { + networkConfiguration: { + serializedName: "networkConfiguration", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "NetworkConfiguration" } }, - ifUnmodifiedSince: { + startTask: { + serializedName: "startTask", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "StartTask" } - } - } - } -}; - -export const JobTerminateOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "JobTerminateOptions", - modelProperties: { - timeout: { - defaultValue: 30, + }, + certificateReferences: { + serializedName: "certificateReferences", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateReference" + } + } } }, - clientRequestId: { + applicationPackageReferences: { + serializedName: "applicationPackageReferences", type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationPackageReference" + } + } } }, - returnClientRequestId: { - defaultValue: false, + applicationLicenses: { + serializedName: "applicationLicenses", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - ocpDate: { + taskSlotsPerNode: { + serializedName: "taskSlotsPerNode", type: { - name: "DateTimeRfc1123" + name: "Number" } }, - ifMatch: { + taskSchedulingPolicy: { + serializedName: "taskSchedulingPolicy", type: { - name: "String" + name: "Composite", + className: "TaskSchedulingPolicy" } }, - ifNoneMatch: { + userAccounts: { + serializedName: "userAccounts", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserAccount" + } + } } }, - ifModifiedSince: { + metadata: { + serializedName: "metadata", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } } }, - ifUnmodifiedSince: { + mountConfiguration: { + serializedName: "mountConfiguration", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MountConfiguration" + } + } } } } } }; -export const JobAddOptions: msRest.CompositeMapper = { +export const CloudPoolListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobAddOptions", + className: "CloudPoolListResult", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, + value: { + serializedName: "value", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudPool" + } + } } }, - ocpDate: { + odataNextLink: { + serializedName: "odata\\.nextLink", type: { - name: "DateTimeRfc1123" + name: "String" } } } } }; -export const JobListOptions: msRest.CompositeMapper = { +export const CloudPool: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobListOptions", + className: "CloudPool", modelProperties: { - filter: { + id: { + serializedName: "id", type: { name: "String" } }, - select: { + displayName: { + serializedName: "displayName", type: { name: "String" } }, - expand: { + url: { + serializedName: "url", type: { name: "String" } }, - maxResults: { - defaultValue: 1000, + eTag: { + serializedName: "eTag", type: { - name: "Number" + name: "String" } }, - timeout: { - defaultValue: 30, + lastModified: { + serializedName: "lastModified", type: { - name: "Number" + name: "DateTime" } }, - clientRequestId: { + creationTime: { + serializedName: "creationTime", type: { - name: "Uuid" + name: "DateTime" } }, - returnClientRequestId: { - defaultValue: false, + state: { + serializedName: "state", type: { - name: "Boolean" + name: "Enum", + allowedValues: ["active", "deleting"] } }, - ocpDate: { - type: { - name: "DateTimeRfc1123" - } - } - } - } -}; - -export const JobListFromJobScheduleOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "JobListFromJobScheduleOptions", - modelProperties: { - filter: { + stateTransitionTime: { + serializedName: "stateTransitionTime", type: { - name: "String" + name: "DateTime" } }, - select: { + allocationState: { + serializedName: "allocationState", type: { - name: "String" + name: "Enum", + allowedValues: ["steady", "resizing", "stopping"] } }, - expand: { + allocationStateTransitionTime: { + serializedName: "allocationStateTransitionTime", type: { - name: "String" + name: "DateTime" } }, - maxResults: { - defaultValue: 1000, + vmSize: { + serializedName: "vmSize", type: { - name: "Number" + name: "String" } }, - timeout: { - defaultValue: 30, + cloudServiceConfiguration: { + serializedName: "cloudServiceConfiguration", type: { - name: "Number" + name: "Composite", + className: "CloudServiceConfiguration" } }, - clientRequestId: { + virtualMachineConfiguration: { + serializedName: "virtualMachineConfiguration", type: { - name: "Uuid" + name: "Composite", + className: "VirtualMachineConfiguration" } }, - returnClientRequestId: { - defaultValue: false, + resizeTimeout: { + serializedName: "resizeTimeout", type: { - name: "Boolean" + name: "TimeSpan" } }, - ocpDate: { - type: { - name: "DateTimeRfc1123" - } - } - } - } -}; - -export const JobListPreparationAndReleaseTaskStatusOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "JobListPreparationAndReleaseTaskStatusOptions", - modelProperties: { - filter: { + resizeErrors: { + serializedName: "resizeErrors", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResizeError" + } + } } }, - select: { + currentDedicatedNodes: { + serializedName: "currentDedicatedNodes", type: { - name: "String" + name: "Number" } }, - maxResults: { - defaultValue: 1000, + currentLowPriorityNodes: { + serializedName: "currentLowPriorityNodes", type: { name: "Number" } }, - timeout: { - defaultValue: 30, + targetDedicatedNodes: { + serializedName: "targetDedicatedNodes", type: { name: "Number" } }, - clientRequestId: { + targetLowPriorityNodes: { + serializedName: "targetLowPriorityNodes", type: { - name: "Uuid" + name: "Number" } }, - returnClientRequestId: { - defaultValue: false, + enableAutoScale: { + serializedName: "enableAutoScale", type: { name: "Boolean" } }, - ocpDate: { + autoScaleFormula: { + serializedName: "autoScaleFormula", type: { - name: "DateTimeRfc1123" + name: "String" } - } - } - } -}; - -export const JobGetTaskCountsOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "JobGetTaskCountsOptions", - modelProperties: { - timeout: { - defaultValue: 30, + }, + autoScaleEvaluationInterval: { + serializedName: "autoScaleEvaluationInterval", type: { - name: "Number" + name: "TimeSpan" } }, - clientRequestId: { + autoScaleRun: { + serializedName: "autoScaleRun", type: { - name: "Uuid" + name: "Composite", + className: "AutoScaleRun" } }, - returnClientRequestId: { - defaultValue: false, + enableInterNodeCommunication: { + serializedName: "enableInterNodeCommunication", type: { name: "Boolean" } }, - ocpDate: { + networkConfiguration: { + serializedName: "networkConfiguration", type: { - name: "DateTimeRfc1123" - } - } - } - } -}; - -export const CertificateAddOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "CertificateAddOptions", - modelProperties: { - timeout: { - defaultValue: 30, + name: "Composite", + className: "NetworkConfiguration" + } + }, + startTask: { + serializedName: "startTask", type: { - name: "Number" + name: "Composite", + className: "StartTask" } }, - clientRequestId: { + certificateReferences: { + serializedName: "certificateReferences", type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateReference" + } + } } }, - returnClientRequestId: { - defaultValue: false, + applicationPackageReferences: { + serializedName: "applicationPackageReferences", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationPackageReference" + } + } } }, - ocpDate: { + applicationLicenses: { + serializedName: "applicationLicenses", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const CertificateListOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "CertificateListOptions", - modelProperties: { - filter: { + }, + taskSlotsPerNode: { + serializedName: "taskSlotsPerNode", type: { - name: "String" + name: "Number" } }, - select: { + taskSchedulingPolicy: { + serializedName: "taskSchedulingPolicy", type: { - name: "String" + name: "Composite", + className: "TaskSchedulingPolicy" } }, - maxResults: { - defaultValue: 1000, + userAccounts: { + serializedName: "userAccounts", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserAccount" + } + } } }, - timeout: { - defaultValue: 30, + metadata: { + serializedName: "metadata", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } } }, - clientRequestId: { + stats: { + serializedName: "stats", type: { - name: "Uuid" + name: "Composite", + className: "PoolStatistics" } }, - returnClientRequestId: { - defaultValue: false, + mountConfiguration: { + serializedName: "mountConfiguration", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MountConfiguration" + } + } } }, - ocpDate: { + identity: { + serializedName: "identity", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "BatchPoolIdentity" } } } } }; -export const CertificateCancelDeletionOptions: msRest.CompositeMapper = { +export const ResizeError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateCancelDeletionOptions", + className: "ResizeError", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { + code: { + serializedName: "code", type: { - name: "Uuid" + name: "String" } }, - returnClientRequestId: { - defaultValue: false, + message: { + serializedName: "message", type: { - name: "Boolean" + name: "String" } }, - ocpDate: { + values: { + serializedName: "values", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NameValuePair" + } + } } } } } }; -export const CertificateDeleteMethodOptions: msRest.CompositeMapper = { +export const AutoScaleRun: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateDeleteMethodOptions", + className: "AutoScaleRun", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { + timestamp: { + serializedName: "timestamp", + required: true, type: { - name: "Uuid" + name: "DateTime" } }, - returnClientRequestId: { - defaultValue: false, + results: { + serializedName: "results", type: { - name: "Boolean" + name: "String" } }, - ocpDate: { + error: { + serializedName: "error", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "AutoScaleRunError" } } } } }; -export const CertificateGetOptions: msRest.CompositeMapper = { +export const AutoScaleRunError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateGetOptions", + className: "AutoScaleRunError", modelProperties: { - select: { + code: { + serializedName: "code", type: { name: "String" } }, - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, + message: { + serializedName: "message", type: { - name: "Boolean" + name: "String" } }, - ocpDate: { + values: { + serializedName: "values", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NameValuePair" + } + } } } } } }; -export const FileDeleteFromTaskOptions: msRest.CompositeMapper = { +export const BatchPoolIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileDeleteFromTaskOptions", + className: "BatchPoolIdentity", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, + type: { + serializedName: "type", + required: true, type: { - name: "Boolean" + name: "Enum", + allowedValues: ["UserAssigned", "None"] } }, - ocpDate: { + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserAssignedIdentity" + } + } } } } } }; -export const FileGetFromTaskOptions: msRest.CompositeMapper = { +export const UserAssignedIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileGetFromTaskOptions", + className: "UserAssignedIdentity", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, - type: { - name: "Boolean" - } - }, - ocpDate: { - type: { - name: "DateTimeRfc1123" - } - }, - ocpRange: { + resourceId: { + serializedName: "resourceId", + required: true, type: { name: "String" } }, - ifModifiedSince: { + clientId: { + serializedName: "clientId", + readOnly: true, type: { - name: "DateTimeRfc1123" + name: "String" } }, - ifUnmodifiedSince: { + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "DateTimeRfc1123" + name: "String" } } } } }; -export const FileGetPropertiesFromTaskOptions: msRest.CompositeMapper = { +export const PoolPatchParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileGetPropertiesFromTaskOptions", + className: "PoolPatchParameter", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, + startTask: { + serializedName: "startTask", type: { - name: "Boolean" + name: "Composite", + className: "StartTask" } }, - ocpDate: { + certificateReferences: { + serializedName: "certificateReferences", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateReference" + } + } } }, - ifModifiedSince: { + applicationPackageReferences: { + serializedName: "applicationPackageReferences", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationPackageReference" + } + } } }, - ifUnmodifiedSince: { + metadata: { + serializedName: "metadata", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } } } } } }; -export const FileDeleteFromComputeNodeOptions: msRest.CompositeMapper = { +export const PoolEnableAutoScaleParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileDeleteFromComputeNodeOptions", + className: "PoolEnableAutoScaleParameter", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, + autoScaleFormula: { + serializedName: "autoScaleFormula", type: { - name: "Boolean" + name: "String" } }, - ocpDate: { + autoScaleEvaluationInterval: { + serializedName: "autoScaleEvaluationInterval", type: { - name: "DateTimeRfc1123" + name: "TimeSpan" } } } } }; -export const FileGetFromComputeNodeOptions: msRest.CompositeMapper = { +export const PoolEvaluateAutoScaleParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileGetFromComputeNodeOptions", + className: "PoolEvaluateAutoScaleParameter", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, - type: { - name: "Boolean" - } - }, - ocpDate: { - type: { - name: "DateTimeRfc1123" - } - }, - ocpRange: { + autoScaleFormula: { + serializedName: "autoScaleFormula", + required: true, type: { name: "String" } - }, - ifModifiedSince: { - type: { - name: "DateTimeRfc1123" - } - }, - ifUnmodifiedSince: { - type: { - name: "DateTimeRfc1123" - } } } } }; -export const FileGetPropertiesFromComputeNodeOptions: msRest.CompositeMapper = { +export const PoolResizeParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileGetPropertiesFromComputeNodeOptions", + className: "PoolResizeParameter", modelProperties: { - timeout: { - defaultValue: 30, + targetDedicatedNodes: { + serializedName: "targetDedicatedNodes", type: { name: "Number" } }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, - type: { - name: "Boolean" - } - }, - ocpDate: { + targetLowPriorityNodes: { + serializedName: "targetLowPriorityNodes", type: { - name: "DateTimeRfc1123" + name: "Number" } }, - ifModifiedSince: { + resizeTimeout: { + serializedName: "resizeTimeout", type: { - name: "DateTimeRfc1123" + name: "TimeSpan" } }, - ifUnmodifiedSince: { + nodeDeallocationOption: { + serializedName: "nodeDeallocationOption", type: { - name: "DateTimeRfc1123" + name: "Enum", + allowedValues: [ + "requeue", + "terminate", + "taskcompletion", + "retaineddata" + ] } } } } }; -export const FileListFromTaskOptions: msRest.CompositeMapper = { +export const PoolUpdatePropertiesParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileListFromTaskOptions", + className: "PoolUpdatePropertiesParameter", modelProperties: { - filter: { - type: { - name: "String" - } - }, - maxResults: { - defaultValue: 1000, - type: { - name: "Number" - } - }, - timeout: { - defaultValue: 30, + startTask: { + serializedName: "startTask", type: { - name: "Number" + name: "Composite", + className: "StartTask" } }, - clientRequestId: { + certificateReferences: { + serializedName: "certificateReferences", + required: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateReference" + } + } } }, - returnClientRequestId: { - defaultValue: false, + applicationPackageReferences: { + serializedName: "applicationPackageReferences", + required: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationPackageReference" + } + } } }, - ocpDate: { + metadata: { + serializedName: "metadata", + required: true, type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetadataItem" + } + } } } } } }; -export const FileListFromComputeNodeOptions: msRest.CompositeMapper = { +export const NodeRemoveParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileListFromComputeNodeOptions", + className: "NodeRemoveParameter", modelProperties: { - filter: { - type: { - name: "String" - } - }, - maxResults: { - defaultValue: 1000, - type: { - name: "Number" - } - }, - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { + nodeList: { + constraints: { + MaxItems: 100 + }, + serializedName: "nodeList", + required: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - returnClientRequestId: { - defaultValue: false, + resizeTimeout: { + serializedName: "resizeTimeout", type: { - name: "Boolean" + name: "TimeSpan" } }, - ocpDate: { + nodeDeallocationOption: { + serializedName: "nodeDeallocationOption", type: { - name: "DateTimeRfc1123" + name: "Enum", + allowedValues: [ + "requeue", + "terminate", + "taskcompletion", + "retaineddata" + ] } } } } }; -export const JobScheduleExistsOptions: msRest.CompositeMapper = { +export const TaskAddParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleExistsOptions", + className: "TaskAddParameter", modelProperties: { - timeout: { - defaultValue: 30, + id: { + serializedName: "id", + required: true, type: { - name: "Number" + name: "String" } }, - clientRequestId: { + displayName: { + serializedName: "displayName", type: { - name: "Uuid" + name: "String" } }, - returnClientRequestId: { - defaultValue: false, + commandLine: { + serializedName: "commandLine", + required: true, type: { - name: "Boolean" + name: "String" } }, - ocpDate: { + containerSettings: { + serializedName: "containerSettings", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "TaskContainerSettings" } }, - ifMatch: { + exitConditions: { + serializedName: "exitConditions", type: { - name: "String" + name: "Composite", + className: "ExitConditions" } }, - ifNoneMatch: { + resourceFiles: { + serializedName: "resourceFiles", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceFile" + } + } } }, - ifModifiedSince: { + outputFiles: { + serializedName: "outputFiles", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutputFile" + } + } } }, - ifUnmodifiedSince: { + environmentSettings: { + serializedName: "environmentSettings", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentSetting" + } + } } - } - } - } -}; - -export const JobScheduleDeleteMethodOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "JobScheduleDeleteMethodOptions", - modelProperties: { - timeout: { - defaultValue: 30, + }, + affinityInfo: { + serializedName: "affinityInfo", type: { - name: "Number" + name: "Composite", + className: "AffinityInformation" } }, - clientRequestId: { + constraints: { + serializedName: "constraints", type: { - name: "Uuid" + name: "Composite", + className: "TaskConstraints" } }, - returnClientRequestId: { - defaultValue: false, + requiredSlots: { + serializedName: "requiredSlots", type: { - name: "Boolean" + name: "Number" } }, - ocpDate: { + userIdentity: { + serializedName: "userIdentity", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "UserIdentity" } }, - ifMatch: { + multiInstanceSettings: { + serializedName: "multiInstanceSettings", type: { - name: "String" + name: "Composite", + className: "MultiInstanceSettings" } }, - ifNoneMatch: { + dependsOn: { + serializedName: "dependsOn", type: { - name: "String" + name: "Composite", + className: "TaskDependencies" } }, - ifModifiedSince: { + applicationPackageReferences: { + serializedName: "applicationPackageReferences", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationPackageReference" + } + } } }, - ifUnmodifiedSince: { + authenticationTokenSettings: { + serializedName: "authenticationTokenSettings", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "AuthenticationTokenSettings" } } } } }; -export const JobScheduleGetOptions: msRest.CompositeMapper = { +export const ExitConditions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleGetOptions", + className: "ExitConditions", modelProperties: { - select: { - type: { - name: "String" - } - }, - expand: { + exitCodes: { + serializedName: "exitCodes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExitCodeMapping" + } + } } }, - timeout: { - defaultValue: 30, + exitCodeRanges: { + serializedName: "exitCodeRanges", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExitCodeRangeMapping" + } + } } }, - clientRequestId: { + preProcessingError: { + serializedName: "preProcessingError", type: { - name: "Uuid" + name: "Composite", + className: "ExitOptions" } }, - returnClientRequestId: { - defaultValue: false, + fileUploadError: { + serializedName: "fileUploadError", type: { - name: "Boolean" + name: "Composite", + className: "ExitOptions" } }, - ocpDate: { + default: { + serializedName: "default", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "ExitOptions" } - }, - ifMatch: { + } + } + } +}; + +export const ExitCodeMapping: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExitCodeMapping", + modelProperties: { + code: { + serializedName: "code", + required: true, type: { - name: "String" + name: "Number" } }, - ifNoneMatch: { + exitOptions: { + serializedName: "exitOptions", type: { - name: "String" + name: "Composite", + className: "ExitOptions" } - }, - ifModifiedSince: { + } + } + } +}; + +export const ExitOptions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExitOptions", + modelProperties: { + jobAction: { + serializedName: "jobAction", type: { - name: "DateTimeRfc1123" + name: "Enum", + allowedValues: ["none", "disable", "terminate"] } }, - ifUnmodifiedSince: { + dependencyAction: { + serializedName: "dependencyAction", type: { - name: "DateTimeRfc1123" + name: "Enum", + allowedValues: ["satisfy", "block"] } } } } }; -export const JobSchedulePatchOptions: msRest.CompositeMapper = { +export const ExitCodeRangeMapping: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobSchedulePatchOptions", + className: "ExitCodeRangeMapping", modelProperties: { - timeout: { - defaultValue: 30, + start: { + serializedName: "start", + required: true, type: { name: "Number" } }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, - type: { - name: "Boolean" - } - }, - ocpDate: { + end: { + serializedName: "end", + required: true, type: { - name: "DateTimeRfc1123" + name: "Number" } }, - ifMatch: { + exitOptions: { + serializedName: "exitOptions", type: { - name: "String" + name: "Composite", + className: "ExitOptions" } - }, - ifNoneMatch: { + } + } + } +}; + +export const AffinityInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AffinityInformation", + modelProperties: { + affinityId: { + serializedName: "affinityId", + required: true, type: { name: "String" } - }, - ifModifiedSince: { - type: { - name: "DateTimeRfc1123" - } - }, - ifUnmodifiedSince: { - type: { - name: "DateTimeRfc1123" - } } } } }; -export const JobScheduleUpdateOptions: msRest.CompositeMapper = { +export const MultiInstanceSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleUpdateOptions", + className: "MultiInstanceSettings", modelProperties: { - timeout: { - defaultValue: 30, + numberOfInstances: { + serializedName: "numberOfInstances", type: { name: "Number" } }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, - type: { - name: "Boolean" - } - }, - ocpDate: { - type: { - name: "DateTimeRfc1123" - } - }, - ifMatch: { + coordinationCommandLine: { + serializedName: "coordinationCommandLine", + required: true, type: { name: "String" } }, - ifNoneMatch: { + commonResourceFiles: { + serializedName: "commonResourceFiles", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceFile" + } + } } - }, - ifModifiedSince: { + } + } + } +}; + +export const TaskDependencies: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TaskDependencies", + modelProperties: { + taskIds: { + serializedName: "taskIds", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - ifUnmodifiedSince: { + taskIdRanges: { + serializedName: "taskIdRanges", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TaskIdRange" + } + } } } } } }; -export const JobScheduleDisableOptions: msRest.CompositeMapper = { +export const TaskIdRange: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleDisableOptions", + className: "TaskIdRange", modelProperties: { - timeout: { - defaultValue: 30, + start: { + serializedName: "start", + required: true, type: { name: "Number" } }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, - type: { - name: "Boolean" - } - }, - ocpDate: { + end: { + serializedName: "end", + required: true, type: { - name: "DateTimeRfc1123" + name: "Number" } - }, - ifMatch: { + } + } + } +}; + +export const CloudTaskListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudTaskListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudTask" + } + } } }, - ifNoneMatch: { + odataNextLink: { + serializedName: "odata\\.nextLink", type: { name: "String" } - }, - ifModifiedSince: { - type: { - name: "DateTimeRfc1123" - } - }, - ifUnmodifiedSince: { - type: { - name: "DateTimeRfc1123" - } } } } }; -export const JobScheduleEnableOptions: msRest.CompositeMapper = { +export const CloudTask: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleEnableOptions", + className: "CloudTask", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, + id: { + serializedName: "id", type: { - name: "Boolean" + name: "String" } }, - ocpDate: { + displayName: { + serializedName: "displayName", type: { - name: "DateTimeRfc1123" + name: "String" } }, - ifMatch: { + url: { + serializedName: "url", type: { name: "String" } }, - ifNoneMatch: { + eTag: { + serializedName: "eTag", type: { name: "String" } }, - ifModifiedSince: { + lastModified: { + serializedName: "lastModified", type: { - name: "DateTimeRfc1123" + name: "DateTime" } }, - ifUnmodifiedSince: { - type: { - name: "DateTimeRfc1123" - } - } - } - } -}; - -export const JobScheduleTerminateOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "JobScheduleTerminateOptions", - modelProperties: { - timeout: { - defaultValue: 30, + creationTime: { + serializedName: "creationTime", type: { - name: "Number" + name: "DateTime" } }, - clientRequestId: { + exitConditions: { + serializedName: "exitConditions", type: { - name: "Uuid" + name: "Composite", + className: "ExitConditions" } }, - returnClientRequestId: { - defaultValue: false, + state: { + serializedName: "state", type: { - name: "Boolean" + name: "Enum", + allowedValues: ["active", "preparing", "running", "completed"] } }, - ocpDate: { + stateTransitionTime: { + serializedName: "stateTransitionTime", type: { - name: "DateTimeRfc1123" + name: "DateTime" } }, - ifMatch: { + previousState: { + serializedName: "previousState", type: { - name: "String" + name: "Enum", + allowedValues: ["active", "preparing", "running", "completed"] } }, - ifNoneMatch: { + previousStateTransitionTime: { + serializedName: "previousStateTransitionTime", type: { - name: "String" + name: "DateTime" } }, - ifModifiedSince: { + commandLine: { + serializedName: "commandLine", type: { - name: "DateTimeRfc1123" + name: "String" } }, - ifUnmodifiedSince: { - type: { - name: "DateTimeRfc1123" - } - } - } - } -}; - -export const JobScheduleAddOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "JobScheduleAddOptions", - modelProperties: { - timeout: { - defaultValue: 30, + containerSettings: { + serializedName: "containerSettings", type: { - name: "Number" + name: "Composite", + className: "TaskContainerSettings" } }, - clientRequestId: { + resourceFiles: { + serializedName: "resourceFiles", type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceFile" + } + } } }, - returnClientRequestId: { - defaultValue: false, + outputFiles: { + serializedName: "outputFiles", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutputFile" + } + } } }, - ocpDate: { - type: { - name: "DateTimeRfc1123" - } - } - } - } -}; - -export const JobScheduleListOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "JobScheduleListOptions", - modelProperties: { - filter: { + environmentSettings: { + serializedName: "environmentSettings", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentSetting" + } + } } }, - select: { + affinityInfo: { + serializedName: "affinityInfo", type: { - name: "String" + name: "Composite", + className: "AffinityInformation" } }, - expand: { + constraints: { + serializedName: "constraints", type: { - name: "String" + name: "Composite", + className: "TaskConstraints" } }, - maxResults: { - defaultValue: 1000, + requiredSlots: { + serializedName: "requiredSlots", type: { name: "Number" } }, - timeout: { - defaultValue: 30, + userIdentity: { + serializedName: "userIdentity", type: { - name: "Number" + name: "Composite", + className: "UserIdentity" } }, - clientRequestId: { + executionInfo: { + serializedName: "executionInfo", type: { - name: "Uuid" + name: "Composite", + className: "TaskExecutionInformation" } }, - returnClientRequestId: { - defaultValue: false, + nodeInfo: { + serializedName: "nodeInfo", type: { - name: "Boolean" + name: "Composite", + className: "ComputeNodeInformation" } }, - ocpDate: { + multiInstanceSettings: { + serializedName: "multiInstanceSettings", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "MultiInstanceSettings" } - } - } - } -}; - -export const TaskAddOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "TaskAddOptions", - modelProperties: { - timeout: { - defaultValue: 30, + }, + stats: { + serializedName: "stats", type: { - name: "Number" + name: "Composite", + className: "TaskStatistics" } }, - clientRequestId: { + dependsOn: { + serializedName: "dependsOn", type: { - name: "Uuid" + name: "Composite", + className: "TaskDependencies" } }, - returnClientRequestId: { - defaultValue: false, + applicationPackageReferences: { + serializedName: "applicationPackageReferences", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationPackageReference" + } + } } }, - ocpDate: { + authenticationTokenSettings: { + serializedName: "authenticationTokenSettings", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "AuthenticationTokenSettings" } } } } }; -export const TaskListOptions: msRest.CompositeMapper = { +export const TaskExecutionInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskListOptions", + className: "TaskExecutionInformation", modelProperties: { - filter: { - type: { - name: "String" - } - }, - select: { + startTime: { + serializedName: "startTime", type: { - name: "String" + name: "DateTime" } }, - expand: { + endTime: { + serializedName: "endTime", type: { - name: "String" + name: "DateTime" } }, - maxResults: { - defaultValue: 1000, + exitCode: { + serializedName: "exitCode", type: { name: "Number" } }, - timeout: { - defaultValue: 30, + containerInfo: { + serializedName: "containerInfo", type: { - name: "Number" + name: "Composite", + className: "TaskContainerExecutionInformation" } }, - clientRequestId: { + failureInfo: { + serializedName: "failureInfo", type: { - name: "Uuid" + name: "Composite", + className: "TaskFailureInformation" } }, - returnClientRequestId: { - defaultValue: false, + retryCount: { + serializedName: "retryCount", + required: true, type: { - name: "Boolean" + name: "Number" } }, - ocpDate: { - type: { - name: "DateTimeRfc1123" - } - } - } - } -}; - -export const TaskAddCollectionOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "TaskAddCollectionOptions", - modelProperties: { - timeout: { - defaultValue: 30, + lastRetryTime: { + serializedName: "lastRetryTime", type: { - name: "Number" + name: "DateTime" } }, - clientRequestId: { + requeueCount: { + serializedName: "requeueCount", + required: true, type: { - name: "Uuid" + name: "Number" } }, - returnClientRequestId: { - defaultValue: false, + lastRequeueTime: { + serializedName: "lastRequeueTime", type: { - name: "Boolean" + name: "DateTime" } }, - ocpDate: { + result: { + serializedName: "result", type: { - name: "DateTimeRfc1123" + name: "Enum", + allowedValues: ["success", "failure"] } } } } }; -export const TaskDeleteMethodOptions: msRest.CompositeMapper = { +export const ComputeNodeInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskDeleteMethodOptions", + className: "ComputeNodeInformation", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, + affinityId: { + serializedName: "affinityId", type: { - name: "Boolean" + name: "String" } }, - ocpDate: { + nodeUrl: { + serializedName: "nodeUrl", type: { - name: "DateTimeRfc1123" + name: "String" } }, - ifMatch: { + poolId: { + serializedName: "poolId", type: { name: "String" } }, - ifNoneMatch: { + nodeId: { + serializedName: "nodeId", type: { name: "String" } }, - ifModifiedSince: { + taskRootDirectory: { + serializedName: "taskRootDirectory", type: { - name: "DateTimeRfc1123" + name: "String" } }, - ifUnmodifiedSince: { + taskRootDirectoryUrl: { + serializedName: "taskRootDirectoryUrl", type: { - name: "DateTimeRfc1123" + name: "String" } } } } }; -export const TaskGetOptions: msRest.CompositeMapper = { +export const TaskStatistics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskGetOptions", + className: "TaskStatistics", modelProperties: { - select: { + url: { + serializedName: "url", + required: true, type: { name: "String" } }, - expand: { + startTime: { + serializedName: "startTime", + required: true, type: { - name: "String" + name: "DateTime" } }, - timeout: { - defaultValue: 30, + lastUpdateTime: { + serializedName: "lastUpdateTime", + required: true, type: { - name: "Number" + name: "DateTime" } }, - clientRequestId: { + userCPUTime: { + serializedName: "userCPUTime", + required: true, type: { - name: "Uuid" + name: "TimeSpan" } }, - returnClientRequestId: { - defaultValue: false, + kernelCPUTime: { + serializedName: "kernelCPUTime", + required: true, type: { - name: "Boolean" + name: "TimeSpan" } }, - ocpDate: { + wallClockTime: { + serializedName: "wallClockTime", + required: true, type: { - name: "DateTimeRfc1123" + name: "TimeSpan" } }, - ifMatch: { + readIOps: { + serializedName: "readIOps", + required: true, type: { - name: "String" + name: "Number" } }, - ifNoneMatch: { + writeIOps: { + serializedName: "writeIOps", + required: true, type: { - name: "String" + name: "Number" } }, - ifModifiedSince: { + readIOGiB: { + serializedName: "readIOGiB", + required: true, type: { - name: "DateTimeRfc1123" + name: "Number" } }, - ifUnmodifiedSince: { + writeIOGiB: { + serializedName: "writeIOGiB", + required: true, type: { - name: "DateTimeRfc1123" + name: "Number" + } + }, + waitTime: { + serializedName: "waitTime", + required: true, + type: { + name: "TimeSpan" } } } } }; -export const TaskUpdateOptions: msRest.CompositeMapper = { +export const TaskAddCollectionParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskUpdateOptions", + className: "TaskAddCollectionParameter", modelProperties: { - timeout: { - defaultValue: 30, + value: { + constraints: { + MaxItems: 100 + }, + serializedName: "value", + required: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TaskAddParameter" + } + } } - }, - clientRequestId: { + } + } + } +}; + +export const TaskAddCollectionResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TaskAddCollectionResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TaskAddResult" + } + } } - }, - returnClientRequestId: { - defaultValue: false, + } + } + } +}; + +export const TaskAddResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TaskAddResult", + modelProperties: { + status: { + serializedName: "status", + required: true, type: { - name: "Boolean" + name: "Enum", + allowedValues: ["success", "clienterror", "servererror"] } }, - ocpDate: { + taskId: { + serializedName: "taskId", + required: true, type: { - name: "DateTimeRfc1123" + name: "String" } }, - ifMatch: { + eTag: { + serializedName: "eTag", type: { name: "String" } }, - ifNoneMatch: { + lastModified: { + serializedName: "lastModified", type: { - name: "String" + name: "DateTime" } }, - ifModifiedSince: { + location: { + serializedName: "location", type: { - name: "DateTimeRfc1123" + name: "String" } }, - ifUnmodifiedSince: { + error: { + serializedName: "error", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "BatchError" } } } } }; -export const TaskListSubtasksOptions: msRest.CompositeMapper = { +export const TaskUpdateParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskListSubtasksOptions", + className: "TaskUpdateParameter", modelProperties: { - select: { - type: { - name: "String" - } - }, - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, + constraints: { + serializedName: "constraints", type: { - name: "Boolean" + name: "Composite", + className: "TaskConstraints" } - }, - ocpDate: { + } + } + } +}; + +export const CloudTaskListSubtasksResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudTaskListSubtasksResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubtaskInformation" + } + } } } } } }; -export const TaskTerminateOptions: msRest.CompositeMapper = { +export const SubtaskInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskTerminateOptions", + className: "SubtaskInformation", modelProperties: { - timeout: { - defaultValue: 30, + id: { + serializedName: "id", type: { name: "Number" } }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, - type: { - name: "Boolean" - } - }, - ocpDate: { - type: { - name: "DateTimeRfc1123" - } - }, - ifMatch: { + nodeInfo: { + serializedName: "nodeInfo", type: { - name: "String" + name: "Composite", + className: "ComputeNodeInformation" } }, - ifNoneMatch: { + startTime: { + serializedName: "startTime", type: { - name: "String" + name: "DateTime" } }, - ifModifiedSince: { + endTime: { + serializedName: "endTime", type: { - name: "DateTimeRfc1123" + name: "DateTime" } }, - ifUnmodifiedSince: { - type: { - name: "DateTimeRfc1123" - } - } - } - } -}; - -export const TaskReactivateOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "TaskReactivateOptions", - modelProperties: { - timeout: { - defaultValue: 30, + exitCode: { + serializedName: "exitCode", type: { name: "Number" } }, - clientRequestId: { + containerInfo: { + serializedName: "containerInfo", type: { - name: "Uuid" + name: "Composite", + className: "TaskContainerExecutionInformation" } }, - returnClientRequestId: { - defaultValue: false, + failureInfo: { + serializedName: "failureInfo", type: { - name: "Boolean" + name: "Composite", + className: "TaskFailureInformation" } }, - ocpDate: { + state: { + serializedName: "state", type: { - name: "DateTimeRfc1123" + name: "Enum", + allowedValues: ["preparing", "running", "completed"] } }, - ifMatch: { + stateTransitionTime: { + serializedName: "stateTransitionTime", type: { - name: "String" + name: "DateTime" } }, - ifNoneMatch: { + previousState: { + serializedName: "previousState", type: { - name: "String" + name: "Enum", + allowedValues: ["preparing", "running", "completed"] } }, - ifModifiedSince: { + previousStateTransitionTime: { + serializedName: "previousStateTransitionTime", type: { - name: "DateTimeRfc1123" + name: "DateTime" } }, - ifUnmodifiedSince: { + result: { + serializedName: "result", type: { - name: "DateTimeRfc1123" + name: "Enum", + allowedValues: ["success", "failure"] } } } } }; -export const ComputeNodeAddUserOptions: msRest.CompositeMapper = { +export const ComputeNodeUser: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeAddUserOptions", + className: "ComputeNodeUser", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { + name: { + serializedName: "name", + required: true, type: { - name: "Uuid" + name: "String" } }, - returnClientRequestId: { - defaultValue: false, + isAdmin: { + serializedName: "isAdmin", type: { name: "Boolean" } }, - ocpDate: { - type: { - name: "DateTimeRfc1123" - } - } - } - } -}; - -export const ComputeNodeDeleteUserOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeNodeDeleteUserOptions", - modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { + expiryTime: { + serializedName: "expiryTime", type: { - name: "Uuid" + name: "DateTime" } }, - returnClientRequestId: { - defaultValue: false, + password: { + serializedName: "password", type: { - name: "Boolean" + name: "String" } }, - ocpDate: { + sshPublicKey: { + serializedName: "sshPublicKey", type: { - name: "DateTimeRfc1123" + name: "String" } } } } }; -export const ComputeNodeUpdateUserOptions: msRest.CompositeMapper = { +export const NodeUpdateUserParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeUpdateUserOptions", + className: "NodeUpdateUserParameter", modelProperties: { - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { + password: { + serializedName: "password", type: { - name: "Uuid" + name: "String" } }, - returnClientRequestId: { - defaultValue: false, + expiryTime: { + serializedName: "expiryTime", type: { - name: "Boolean" + name: "DateTime" } }, - ocpDate: { + sshPublicKey: { + serializedName: "sshPublicKey", type: { - name: "DateTimeRfc1123" + name: "String" } } } } }; -export const ComputeNodeGetOptions: msRest.CompositeMapper = { +export const ComputeNode: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeGetOptions", + className: "ComputeNode", modelProperties: { - select: { + id: { + serializedName: "id", type: { name: "String" } }, - timeout: { - defaultValue: 30, + url: { + serializedName: "url", type: { - name: "Number" + name: "String" } }, - clientRequestId: { + state: { + serializedName: "state", type: { - name: "Uuid" + name: "Enum", + allowedValues: [ + "idle", + "rebooting", + "reimaging", + "running", + "unusable", + "creating", + "starting", + "waitingforstarttask", + "starttaskfailed", + "unknown", + "leavingpool", + "offline", + "preempted" + ] } }, - returnClientRequestId: { - defaultValue: false, + schedulingState: { + serializedName: "schedulingState", type: { - name: "Boolean" + name: "Enum", + allowedValues: ["enabled", "disabled"] } }, - ocpDate: { - type: { - name: "DateTimeRfc1123" - } - } - } - } -}; - -export const ComputeNodeRebootOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeNodeRebootOptions", - modelProperties: { - timeout: { - defaultValue: 30, + stateTransitionTime: { + serializedName: "stateTransitionTime", type: { - name: "Number" + name: "DateTime" } }, - clientRequestId: { + lastBootTime: { + serializedName: "lastBootTime", type: { - name: "Uuid" + name: "DateTime" } }, - returnClientRequestId: { - defaultValue: false, + allocationTime: { + serializedName: "allocationTime", type: { - name: "Boolean" + name: "DateTime" } }, - ocpDate: { - type: { - name: "DateTimeRfc1123" - } - } - } - } -}; - -export const ComputeNodeReimageOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeNodeReimageOptions", - modelProperties: { - timeout: { - defaultValue: 30, + ipAddress: { + serializedName: "ipAddress", type: { - name: "Number" + name: "String" } }, - clientRequestId: { + affinityId: { + serializedName: "affinityId", type: { - name: "Uuid" + name: "String" } }, - returnClientRequestId: { - defaultValue: false, + vmSize: { + serializedName: "vmSize", type: { - name: "Boolean" + name: "String" } }, - ocpDate: { + totalTasksRun: { + serializedName: "totalTasksRun", type: { - name: "DateTimeRfc1123" + name: "Number" } - } - } - } -}; - -export const ComputeNodeDisableSchedulingOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeNodeDisableSchedulingOptions", - modelProperties: { - timeout: { - defaultValue: 30, + }, + runningTasksCount: { + serializedName: "runningTasksCount", type: { name: "Number" } }, - clientRequestId: { + runningTaskSlotsCount: { + serializedName: "runningTaskSlotsCount", type: { - name: "Uuid" + name: "Number" } }, - returnClientRequestId: { - defaultValue: false, + totalTasksSucceeded: { + serializedName: "totalTasksSucceeded", type: { - name: "Boolean" + name: "Number" } }, - ocpDate: { + recentTasks: { + serializedName: "recentTasks", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TaskInformation" + } + } } - } - } - } -}; - -export const ComputeNodeEnableSchedulingOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeNodeEnableSchedulingOptions", - modelProperties: { - timeout: { - defaultValue: 30, + }, + startTask: { + serializedName: "startTask", type: { - name: "Number" + name: "Composite", + className: "StartTask" } }, - clientRequestId: { + startTaskInfo: { + serializedName: "startTaskInfo", type: { - name: "Uuid" + name: "Composite", + className: "StartTaskInformation" } }, - returnClientRequestId: { - defaultValue: false, + certificateReferences: { + serializedName: "certificateReferences", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateReference" + } + } } }, - ocpDate: { + errors: { + serializedName: "errors", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeNodeError" + } + } } - } - } - } -}; - -export const ComputeNodeGetRemoteLoginSettingsOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeNodeGetRemoteLoginSettingsOptions", - modelProperties: { - timeout: { - defaultValue: 30, + }, + isDedicated: { + serializedName: "isDedicated", type: { - name: "Number" + name: "Boolean" } }, - clientRequestId: { + endpointConfiguration: { + serializedName: "endpointConfiguration", type: { - name: "Uuid" + name: "Composite", + className: "ComputeNodeEndpointConfiguration" } }, - returnClientRequestId: { - defaultValue: false, + nodeAgentInfo: { + serializedName: "nodeAgentInfo", type: { - name: "Boolean" + name: "Composite", + className: "NodeAgentInformation" } }, - ocpDate: { + virtualMachineInfo: { + serializedName: "virtualMachineInfo", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "VirtualMachineInfo" } } } } }; -export const ComputeNodeGetRemoteDesktopOptions: msRest.CompositeMapper = { +export const TaskInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeGetRemoteDesktopOptions", + className: "TaskInformation", modelProperties: { - timeout: { - defaultValue: 30, + taskUrl: { + serializedName: "taskUrl", type: { - name: "Number" + name: "String" } }, - clientRequestId: { + jobId: { + serializedName: "jobId", type: { - name: "Uuid" + name: "String" } }, - returnClientRequestId: { - defaultValue: false, + taskId: { + serializedName: "taskId", type: { - name: "Boolean" + name: "String" } }, - ocpDate: { - type: { - name: "DateTimeRfc1123" - } - } - } - } -}; - -export const ComputeNodeUploadBatchServiceLogsOptions: msRest.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeNodeUploadBatchServiceLogsOptions", - modelProperties: { - timeout: { - defaultValue: 30, + subtaskId: { + serializedName: "subtaskId", type: { name: "Number" } }, - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, + taskState: { + serializedName: "taskState", + required: true, type: { - name: "Boolean" + name: "Enum", + allowedValues: ["active", "preparing", "running", "completed"] } }, - ocpDate: { + executionInfo: { + serializedName: "executionInfo", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "TaskExecutionInformation" } } } } }; -export const ComputeNodeListOptions: msRest.CompositeMapper = { +export const StartTaskInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeListOptions", + className: "StartTaskInformation", modelProperties: { - filter: { + state: { + serializedName: "state", + required: true, type: { - name: "String" + name: "Enum", + allowedValues: ["running", "completed"] } }, - select: { + startTime: { + serializedName: "startTime", + required: true, type: { - name: "String" + name: "DateTime" } }, - maxResults: { - defaultValue: 1000, + endTime: { + serializedName: "endTime", type: { - name: "Number" + name: "DateTime" } }, - timeout: { - defaultValue: 30, + exitCode: { + serializedName: "exitCode", type: { name: "Number" } }, - clientRequestId: { + containerInfo: { + serializedName: "containerInfo", type: { - name: "Uuid" + name: "Composite", + className: "TaskContainerExecutionInformation" } }, - returnClientRequestId: { - defaultValue: false, + failureInfo: { + serializedName: "failureInfo", type: { - name: "Boolean" + name: "Composite", + className: "TaskFailureInformation" } }, - ocpDate: { + retryCount: { + serializedName: "retryCount", + required: true, type: { - name: "DateTimeRfc1123" + name: "Number" + } + }, + lastRetryTime: { + serializedName: "lastRetryTime", + type: { + name: "DateTime" + } + }, + result: { + serializedName: "result", + type: { + name: "Enum", + allowedValues: ["success", "failure"] } } } } }; -export const ComputeNodeExtensionGetOptions: msRest.CompositeMapper = { +export const ComputeNodeError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeExtensionGetOptions", + className: "ComputeNodeError", modelProperties: { - select: { + code: { + serializedName: "code", type: { name: "String" } }, - timeout: { - defaultValue: 30, - type: { - name: "Number" - } - }, - clientRequestId: { + message: { + serializedName: "message", type: { - name: "Uuid" + name: "String" } }, - returnClientRequestId: { - defaultValue: false, + errorDetails: { + serializedName: "errorDetails", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NameValuePair" + } + } } - }, - ocpDate: { + } + } + } +}; + +export const ComputeNodeEndpointConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeNodeEndpointConfiguration", + modelProperties: { + inboundEndpoints: { + serializedName: "inboundEndpoints", + required: true, type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InboundEndpoint" + } + } } } } } }; -export const ComputeNodeExtensionListOptions: msRest.CompositeMapper = { +export const InboundEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeExtensionListOptions", + className: "InboundEndpoint", modelProperties: { - select: { + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - maxResults: { - defaultValue: 1000, + protocol: { + serializedName: "protocol", + required: true, type: { - name: "Number" + name: "Enum", + allowedValues: ["tcp", "udp"] } }, - timeout: { - defaultValue: 30, + publicIPAddress: { + serializedName: "publicIPAddress", + required: true, type: { - name: "Number" + name: "String" } }, - clientRequestId: { + publicFqdn: { + serializedName: "publicFQDN", + required: true, type: { - name: "Uuid" + name: "String" } }, - returnClientRequestId: { - defaultValue: false, + frontendPort: { + serializedName: "frontendPort", + required: true, type: { - name: "Boolean" + name: "Number" } }, - ocpDate: { + backendPort: { + serializedName: "backendPort", + required: true, type: { - name: "DateTimeRfc1123" + name: "Number" } } } } }; -export const ApplicationListNextOptions: msRest.CompositeMapper = { +export const NodeAgentInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationListNextOptions", + className: "NodeAgentInformation", modelProperties: { - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, + version: { + serializedName: "version", + required: true, type: { - name: "Boolean" + name: "String" } }, - ocpDate: { + lastUpdateTime: { + serializedName: "lastUpdateTime", + required: true, type: { - name: "DateTimeRfc1123" + name: "DateTime" } } } } }; -export const PoolListUsageMetricsNextOptions: msRest.CompositeMapper = { +export const VirtualMachineInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolListUsageMetricsNextOptions", + className: "VirtualMachineInfo", modelProperties: { - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, - type: { - name: "Boolean" - } - }, - ocpDate: { + imageReference: { + serializedName: "imageReference", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "ImageReference" } } } } }; -export const PoolListNextOptions: msRest.CompositeMapper = { +export const NodeRebootParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolListNextOptions", + className: "NodeRebootParameter", modelProperties: { - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, - type: { - name: "Boolean" - } - }, - ocpDate: { + nodeRebootOption: { + serializedName: "nodeRebootOption", type: { - name: "DateTimeRfc1123" + name: "Enum", + allowedValues: [ + "requeue", + "terminate", + "taskcompletion", + "retaineddata" + ] } } } } }; -export const AccountListSupportedImagesNextOptions: msRest.CompositeMapper = { +export const NodeReimageParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccountListSupportedImagesNextOptions", + className: "NodeReimageParameter", modelProperties: { - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, - type: { - name: "Boolean" - } - }, - ocpDate: { + nodeReimageOption: { + serializedName: "nodeReimageOption", type: { - name: "DateTimeRfc1123" + name: "Enum", + allowedValues: [ + "requeue", + "terminate", + "taskcompletion", + "retaineddata" + ] } } } } }; -export const AccountListPoolNodeCountsNextOptions: msRest.CompositeMapper = { +export const NodeDisableSchedulingParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccountListPoolNodeCountsNextOptions", + className: "NodeDisableSchedulingParameter", modelProperties: { - clientRequestId: { + nodeDisableSchedulingOption: { + serializedName: "nodeDisableSchedulingOption", type: { - name: "Uuid" + name: "Enum", + allowedValues: ["requeue", "terminate", "taskcompletion"] } - }, - returnClientRequestId: { - defaultValue: false, + } + } + } +}; + +export const ComputeNodeGetRemoteLoginSettingsResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeNodeGetRemoteLoginSettingsResult", + modelProperties: { + remoteLoginIPAddress: { + serializedName: "remoteLoginIPAddress", + required: true, type: { - name: "Boolean" + name: "String" } }, - ocpDate: { + remoteLoginPort: { + serializedName: "remoteLoginPort", + required: true, type: { - name: "DateTimeRfc1123" + name: "Number" } } } } }; -export const JobListNextOptions: msRest.CompositeMapper = { +export const UploadBatchServiceLogsConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobListNextOptions", + className: "UploadBatchServiceLogsConfiguration", modelProperties: { - clientRequestId: { + containerUrl: { + serializedName: "containerUrl", + required: true, type: { - name: "Uuid" + name: "String" } }, - returnClientRequestId: { - defaultValue: false, + startTime: { + serializedName: "startTime", + required: true, type: { - name: "Boolean" + name: "DateTime" } }, - ocpDate: { + endTime: { + serializedName: "endTime", type: { - name: "DateTimeRfc1123" + name: "DateTime" + } + }, + identityReference: { + serializedName: "identityReference", + type: { + name: "Composite", + className: "ComputeNodeIdentityReference" } } } } }; -export const JobListFromJobScheduleNextOptions: msRest.CompositeMapper = { +export const UploadBatchServiceLogsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobListFromJobScheduleNextOptions", + className: "UploadBatchServiceLogsResult", modelProperties: { - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, + virtualDirectoryName: { + serializedName: "virtualDirectoryName", + required: true, type: { - name: "Boolean" + name: "String" } }, - ocpDate: { + numberOfFilesUploaded: { + serializedName: "numberOfFilesUploaded", + required: true, type: { - name: "DateTimeRfc1123" + name: "Number" } } } } }; -export const JobListPreparationAndReleaseTaskStatusNextOptions: msRest.CompositeMapper = { +export const ComputeNodeListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobListPreparationAndReleaseTaskStatusNextOptions", + className: "ComputeNodeListResult", modelProperties: { - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, + value: { + serializedName: "value", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeNode" + } + } } }, - ocpDate: { + odataNextLink: { + serializedName: "odata\\.nextLink", type: { - name: "DateTimeRfc1123" + name: "String" } } } } }; -export const CertificateListNextOptions: msRest.CompositeMapper = { +export const NodeVMExtension: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateListNextOptions", + className: "NodeVMExtension", modelProperties: { - clientRequestId: { + provisioningState: { + serializedName: "provisioningState", type: { - name: "Uuid" + name: "String" } }, - returnClientRequestId: { - defaultValue: false, + vmExtension: { + serializedName: "vmExtension", type: { - name: "Boolean" + name: "Composite", + className: "VMExtension" } }, - ocpDate: { + instanceView: { + serializedName: "instanceView", type: { - name: "DateTimeRfc1123" + name: "Composite", + className: "VMExtensionInstanceView" } } } } }; -export const FileListFromTaskNextOptions: msRest.CompositeMapper = { +export const VMExtensionInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileListFromTaskNextOptions", + className: "VMExtensionInstanceView", modelProperties: { - clientRequestId: { + name: { + serializedName: "name", type: { - name: "Uuid" + name: "String" } }, - returnClientRequestId: { - defaultValue: false, + statuses: { + serializedName: "statuses", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } } }, - ocpDate: { + subStatuses: { + serializedName: "subStatuses", type: { - name: "DateTimeRfc1123" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } } } } } }; -export const FileListFromComputeNodeNextOptions: msRest.CompositeMapper = { +export const InstanceViewStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileListFromComputeNodeNextOptions", + className: "InstanceViewStatus", modelProperties: { - clientRequestId: { + code: { + serializedName: "code", type: { - name: "Uuid" + name: "String" } }, - returnClientRequestId: { - defaultValue: false, + displayStatus: { + serializedName: "displayStatus", type: { - name: "Boolean" + name: "String" + } + }, + level: { + serializedName: "level", + type: { + name: "Enum", + allowedValues: ["Error", "Info", "Warning"] + } + }, + message: { + serializedName: "message", + type: { + name: "String" } }, - ocpDate: { + time: { + serializedName: "time", type: { - name: "DateTimeRfc1123" + name: "String" } } } } }; -export const JobScheduleListNextOptions: msRest.CompositeMapper = { +export const NodeVMExtensionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleListNextOptions", + className: "NodeVMExtensionList", modelProperties: { - clientRequestId: { - type: { - name: "Uuid" - } - }, - returnClientRequestId: { - defaultValue: false, + value: { + serializedName: "value", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NodeVMExtension" + } + } } }, - ocpDate: { + odataNextLink: { + serializedName: "odata\\.nextLink", type: { - name: "DateTimeRfc1123" + name: "String" } } } } }; -export const TaskListNextOptions: msRest.CompositeMapper = { +export const ApplicationListHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskListNextOptions", + className: "ApplicationListHeaders", modelProperties: { clientRequestId: { + serializedName: "client-request-id", type: { name: "Uuid" } }, - returnClientRequestId: { - defaultValue: false, + requestId: { + serializedName: "request-id", type: { - name: "Boolean" + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" } }, - ocpDate: { + lastModified: { + serializedName: "last-modified", type: { name: "DateTimeRfc1123" } @@ -10652,23 +7326,31 @@ export const TaskListNextOptions: msRest.CompositeMapper = { } }; -export const ComputeNodeListNextOptions: msRest.CompositeMapper = { +export const ApplicationGetHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeListNextOptions", + className: "ApplicationGetHeaders", modelProperties: { clientRequestId: { + serializedName: "client-request-id", type: { name: "Uuid" } }, - returnClientRequestId: { - defaultValue: false, + requestId: { + serializedName: "request-id", type: { - name: "Boolean" + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" } }, - ocpDate: { + lastModified: { + serializedName: "last-modified", type: { name: "DateTimeRfc1123" } @@ -10677,23 +7359,31 @@ export const ComputeNodeListNextOptions: msRest.CompositeMapper = { } }; -export const ComputeNodeExtensionListNextOptions: msRest.CompositeMapper = { +export const ApplicationListNextHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeExtensionListNextOptions", + className: "ApplicationListNextHeaders", modelProperties: { clientRequestId: { + serializedName: "client-request-id", type: { name: "Uuid" } }, - returnClientRequestId: { - defaultValue: false, + requestId: { + serializedName: "request-id", type: { - name: "Boolean" + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" } }, - ocpDate: { + lastModified: { + serializedName: "last-modified", type: { name: "DateTimeRfc1123" } @@ -10702,11 +7392,10 @@ export const ComputeNodeExtensionListNextOptions: msRest.CompositeMapper = { } }; -export const ApplicationListHeaders: msRest.CompositeMapper = { - serializedName: "application-list-headers", +export const PoolListUsageMetricsHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationListHeaders", + className: "PoolListUsageMetricsHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -10736,11 +7425,10 @@ export const ApplicationListHeaders: msRest.CompositeMapper = { } }; -export const ApplicationGetHeaders: msRest.CompositeMapper = { - serializedName: "application-get-headers", +export const PoolGetAllLifetimeStatisticsHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGetHeaders", + className: "PoolGetAllLifetimeStatisticsHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -10770,11 +7458,10 @@ export const ApplicationGetHeaders: msRest.CompositeMapper = { } }; -export const PoolListUsageMetricsHeaders: msRest.CompositeMapper = { - serializedName: "pool-listusagemetrics-headers", +export const PoolAddHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolListUsageMetricsHeaders", + className: "PoolAddHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -10799,16 +7486,21 @@ export const PoolListUsageMetricsHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } + }, + dataServiceId: { + serializedName: "dataserviceid", + type: { + name: "String" + } } } } }; -export const AccountListSupportedImagesHeaders: msRest.CompositeMapper = { - serializedName: "account-listsupportedimages-headers", +export const PoolListHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccountListSupportedImagesHeaders", + className: "PoolListHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -10838,11 +7530,31 @@ export const AccountListSupportedImagesHeaders: msRest.CompositeMapper = { } }; -export const AccountListPoolNodeCountsHeaders: msRest.CompositeMapper = { - serializedName: "account-listpoolnodecounts-headers", +export const PoolDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccountListPoolNodeCountsHeaders", + className: "PoolDeleteHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "String" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "String" + } + } + } + } +}; + +export const PoolExistsHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PoolExistsHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -10855,16 +7567,27 @@ export const AccountListPoolNodeCountsHeaders: msRest.CompositeMapper = { type: { name: "Uuid" } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } } } } }; -export const PoolGetAllLifetimeStatisticsHeaders: msRest.CompositeMapper = { - serializedName: "pool-getalllifetimestatistics-headers", +export const PoolGetHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolGetAllLifetimeStatisticsHeaders", + className: "PoolGetHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -10894,11 +7617,10 @@ export const PoolGetAllLifetimeStatisticsHeaders: msRest.CompositeMapper = { } }; -export const JobGetAllLifetimeStatisticsHeaders: msRest.CompositeMapper = { - serializedName: "job-getalllifetimestatistics-headers", +export const PoolPatchHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobGetAllLifetimeStatisticsHeaders", + className: "PoolPatchHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -10923,16 +7645,21 @@ export const JobGetAllLifetimeStatisticsHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } + }, + dataServiceId: { + serializedName: "dataserviceid", + type: { + name: "String" + } } } } }; -export const CertificateAddHeaders: msRest.CompositeMapper = { - serializedName: "certificate-add-headers", +export const PoolDisableAutoScaleHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateAddHeaders", + className: "PoolDisableAutoScaleHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -10968,11 +7695,10 @@ export const CertificateAddHeaders: msRest.CompositeMapper = { } }; -export const CertificateListHeaders: msRest.CompositeMapper = { - serializedName: "certificate-list-headers", +export const PoolEnableAutoScaleHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateListHeaders", + className: "PoolEnableAutoScaleHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -10995,18 +7721,23 @@ export const CertificateListHeaders: msRest.CompositeMapper = { lastModified: { serializedName: "last-modified", type: { - name: "DateTimeRfc1123" + name: "DateTimeRfc1123" + } + }, + dataServiceId: { + serializedName: "dataserviceid", + type: { + name: "String" } } } } }; -export const CertificateCancelDeletionHeaders: msRest.CompositeMapper = { - serializedName: "certificate-canceldeletion-headers", +export const PoolEvaluateAutoScaleHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateCancelDeletionHeaders", + className: "PoolEvaluateAutoScaleHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11042,11 +7773,10 @@ export const CertificateCancelDeletionHeaders: msRest.CompositeMapper = { } }; -export const CertificateDeleteHeaders: msRest.CompositeMapper = { - serializedName: "certificate-delete-headers", +export const PoolResizeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateDeleteHeaders", + className: "PoolResizeHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11071,16 +7801,21 @@ export const CertificateDeleteHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } + }, + dataServiceId: { + serializedName: "dataserviceid", + type: { + name: "String" + } } } } }; -export const CertificateGetHeaders: msRest.CompositeMapper = { - serializedName: "certificate-get-headers", +export const PoolStopResizeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateGetHeaders", + className: "PoolStopResizeHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11105,25 +7840,9 @@ export const CertificateGetHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } - } - } - } -}; - -export const FileDeleteFromTaskHeaders: msRest.CompositeMapper = { - serializedName: "file-deletefromtask-headers", - type: { - name: "Composite", - className: "FileDeleteFromTaskHeaders", - modelProperties: { - clientRequestId: { - serializedName: "client-request-id", - type: { - name: "String" - } }, - requestId: { - serializedName: "request-id", + dataServiceId: { + serializedName: "dataserviceid", type: { name: "String" } @@ -11132,11 +7851,10 @@ export const FileDeleteFromTaskHeaders: msRest.CompositeMapper = { } }; -export const FileGetFromTaskHeaders: msRest.CompositeMapper = { - serializedName: "file-getfromtask-headers", +export const PoolUpdatePropertiesHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileGetFromTaskHeaders", + className: "PoolUpdatePropertiesHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11162,51 +7880,20 @@ export const FileGetFromTaskHeaders: msRest.CompositeMapper = { name: "DateTimeRfc1123" } }, - ocpCreationTime: { - serializedName: "ocp-creation-time", - type: { - name: "DateTimeRfc1123" - } - }, - ocpBatchFileIsdirectory: { - serializedName: "ocp-batch-file-isdirectory", - type: { - name: "Boolean" - } - }, - ocpBatchFileUrl: { - serializedName: "ocp-batch-file-url", - type: { - name: "String" - } - }, - ocpBatchFileMode: { - serializedName: "ocp-batch-file-mode", - type: { - name: "String" - } - }, - contentType: { - serializedName: "content-type", + dataServiceId: { + serializedName: "dataserviceid", type: { name: "String" } - }, - contentLength: { - serializedName: "content-length", - type: { - name: "Number" - } } } } }; -export const FileGetPropertiesFromTaskHeaders: msRest.CompositeMapper = { - serializedName: "file-getpropertiesfromtask-headers", +export const PoolRemoveNodesHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileGetPropertiesFromTaskHeaders", + className: "PoolRemoveNodesHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11232,73 +7919,53 @@ export const FileGetPropertiesFromTaskHeaders: msRest.CompositeMapper = { name: "DateTimeRfc1123" } }, - ocpCreationTime: { - serializedName: "ocp-creation-time", - type: { - name: "DateTimeRfc1123" - } - }, - ocpBatchFileIsdirectory: { - serializedName: "ocp-batch-file-isdirectory", - type: { - name: "Boolean" - } - }, - ocpBatchFileUrl: { - serializedName: "ocp-batch-file-url", - type: { - name: "String" - } - }, - ocpBatchFileMode: { - serializedName: "ocp-batch-file-mode", - type: { - name: "String" - } - }, - contentType: { - serializedName: "content-type", + dataServiceId: { + serializedName: "dataserviceid", type: { name: "String" } - }, - contentLength: { - serializedName: "content-length", - type: { - name: "Number" - } } } } }; -export const FileDeleteFromComputeNodeHeaders: msRest.CompositeMapper = { - serializedName: "file-deletefromcomputenode-headers", +export const PoolListUsageMetricsNextHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileDeleteFromComputeNodeHeaders", + className: "PoolListUsageMetricsNextHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", type: { - name: "String" + name: "Uuid" } }, requestId: { serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", type: { name: "String" } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } } } } }; -export const FileGetFromComputeNodeHeaders: msRest.CompositeMapper = { - serializedName: "file-getfromcomputenode-headers", +export const PoolListNextHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileGetFromComputeNodeHeaders", + className: "PoolListNextHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11323,52 +7990,15 @@ export const FileGetFromComputeNodeHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } - }, - ocpCreationTime: { - serializedName: "ocp-creation-time", - type: { - name: "DateTimeRfc1123" - } - }, - ocpBatchFileIsdirectory: { - serializedName: "ocp-batch-file-isdirectory", - type: { - name: "Boolean" - } - }, - ocpBatchFileUrl: { - serializedName: "ocp-batch-file-url", - type: { - name: "String" - } - }, - ocpBatchFileMode: { - serializedName: "ocp-batch-file-mode", - type: { - name: "String" - } - }, - contentType: { - serializedName: "content-type", - type: { - name: "String" - } - }, - contentLength: { - serializedName: "content-length", - type: { - name: "Number" - } } } } }; -export const FileGetPropertiesFromComputeNodeHeaders: msRest.CompositeMapper = { - serializedName: "file-getpropertiesfromcomputenode-headers", +export const AccountListSupportedImagesHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileGetPropertiesFromComputeNodeHeaders", + className: "AccountListSupportedImagesHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11393,52 +8023,36 @@ export const FileGetPropertiesFromComputeNodeHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } - }, - ocpCreationTime: { - serializedName: "ocp-creation-time", - type: { - name: "DateTimeRfc1123" - } - }, - ocpBatchFileIsdirectory: { - serializedName: "ocp-batch-file-isdirectory", - type: { - name: "Boolean" - } - }, - ocpBatchFileUrl: { - serializedName: "ocp-batch-file-url", - type: { - name: "String" - } - }, - ocpBatchFileMode: { - serializedName: "ocp-batch-file-mode", - type: { - name: "String" - } - }, - contentType: { - serializedName: "content-type", + } + } + } +}; + +export const AccountListPoolNodeCountsHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccountListPoolNodeCountsHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", type: { - name: "String" + name: "Uuid" } }, - contentLength: { - serializedName: "content-length", + requestId: { + serializedName: "request-id", type: { - name: "Number" + name: "Uuid" } } } } }; -export const FileListFromTaskHeaders: msRest.CompositeMapper = { - serializedName: "file-listfromtask-headers", +export const AccountListSupportedImagesNextHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileListFromTaskHeaders", + className: "AccountListSupportedImagesNextHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11468,11 +8082,10 @@ export const FileListFromTaskHeaders: msRest.CompositeMapper = { } }; -export const FileListFromComputeNodeHeaders: msRest.CompositeMapper = { - serializedName: "file-listfromcomputenode-headers", +export const AccountListPoolNodeCountsNextHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FileListFromComputeNodeHeaders", + className: "AccountListPoolNodeCountsNextHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11485,28 +8098,15 @@ export const FileListFromComputeNodeHeaders: msRest.CompositeMapper = { type: { name: "Uuid" } - }, - eTag: { - serializedName: "etag", - type: { - name: "String" - } - }, - lastModified: { - serializedName: "last-modified", - type: { - name: "DateTimeRfc1123" - } } } } }; -export const JobScheduleExistsHeaders: msRest.CompositeMapper = { - serializedName: "jobschedule-exists-headers", +export const JobGetAllLifetimeStatisticsHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleExistsHeaders", + className: "JobGetAllLifetimeStatisticsHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11536,11 +8136,10 @@ export const JobScheduleExistsHeaders: msRest.CompositeMapper = { } }; -export const JobScheduleDeleteHeaders: msRest.CompositeMapper = { - serializedName: "jobschedule-delete-headers", +export const JobDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleDeleteHeaders", + className: "JobDeleteHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11558,11 +8157,10 @@ export const JobScheduleDeleteHeaders: msRest.CompositeMapper = { } }; -export const JobScheduleGetHeaders: msRest.CompositeMapper = { - serializedName: "jobschedule-get-headers", +export const JobGetHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleGetHeaders", + className: "JobGetHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11576,13 +8174,13 @@ export const JobScheduleGetHeaders: msRest.CompositeMapper = { name: "Uuid" } }, - eTagHeader: { + eTag: { serializedName: "etag", type: { name: "String" } }, - lastModifiedHeader: { + lastModified: { serializedName: "last-modified", type: { name: "DateTimeRfc1123" @@ -11592,11 +8190,10 @@ export const JobScheduleGetHeaders: msRest.CompositeMapper = { } }; -export const JobSchedulePatchHeaders: msRest.CompositeMapper = { - serializedName: "jobschedule-patch-headers", +export const JobPatchHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobSchedulePatchHeaders", + className: "JobPatchHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11632,11 +8229,10 @@ export const JobSchedulePatchHeaders: msRest.CompositeMapper = { } }; -export const JobScheduleUpdateHeaders: msRest.CompositeMapper = { - serializedName: "jobschedule-update-headers", +export const JobUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleUpdateHeaders", + className: "JobUpdateHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11672,11 +8268,10 @@ export const JobScheduleUpdateHeaders: msRest.CompositeMapper = { } }; -export const JobScheduleDisableHeaders: msRest.CompositeMapper = { - serializedName: "jobschedule-disable-headers", +export const JobDisableHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleDisableHeaders", + className: "JobDisableHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11712,11 +8307,10 @@ export const JobScheduleDisableHeaders: msRest.CompositeMapper = { } }; -export const JobScheduleEnableHeaders: msRest.CompositeMapper = { - serializedName: "jobschedule-enable-headers", +export const JobEnableHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleEnableHeaders", + className: "JobEnableHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11752,11 +8346,10 @@ export const JobScheduleEnableHeaders: msRest.CompositeMapper = { } }; -export const JobScheduleTerminateHeaders: msRest.CompositeMapper = { - serializedName: "jobschedule-terminate-headers", +export const JobTerminateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleTerminateHeaders", + className: "JobTerminateHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11792,11 +8385,10 @@ export const JobScheduleTerminateHeaders: msRest.CompositeMapper = { } }; -export const JobScheduleAddHeaders: msRest.CompositeMapper = { - serializedName: "jobschedule-add-headers", +export const JobAddHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleAddHeaders", + className: "JobAddHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11832,11 +8424,10 @@ export const JobScheduleAddHeaders: msRest.CompositeMapper = { } }; -export const JobScheduleListHeaders: msRest.CompositeMapper = { - serializedName: "jobschedule-list-headers", +export const JobListHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleListHeaders", + className: "JobListHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11866,33 +8457,43 @@ export const JobScheduleListHeaders: msRest.CompositeMapper = { } }; -export const JobDeleteHeaders: msRest.CompositeMapper = { - serializedName: "job-delete-headers", +export const JobListFromJobScheduleHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobDeleteHeaders", + className: "JobListFromJobScheduleHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", type: { - name: "String" + name: "Uuid" } }, requestId: { serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", type: { name: "String" } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } } } } }; -export const JobGetHeaders: msRest.CompositeMapper = { - serializedName: "job-get-headers", +export const JobListPreparationAndReleaseTaskStatusHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobGetHeaders", + className: "JobListPreparationAndReleaseTaskStatusHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11906,13 +8507,13 @@ export const JobGetHeaders: msRest.CompositeMapper = { name: "Uuid" } }, - eTagHeader: { + eTag: { serializedName: "etag", type: { name: "String" } }, - lastModifiedHeader: { + lastModified: { serializedName: "last-modified", type: { name: "DateTimeRfc1123" @@ -11922,11 +8523,31 @@ export const JobGetHeaders: msRest.CompositeMapper = { } }; -export const JobPatchHeaders: msRest.CompositeMapper = { - serializedName: "job-patch-headers", +export const JobGetTaskCountsHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobPatchHeaders", + className: "JobGetTaskCountsHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "Uuid" + } + }, + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + } + } + } +}; + +export const JobListNextHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobListNextHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11951,22 +8572,15 @@ export const JobPatchHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } - }, - dataServiceId: { - serializedName: "dataserviceid", - type: { - name: "String" - } } } } }; -export const JobUpdateHeaders: msRest.CompositeMapper = { - serializedName: "job-update-headers", +export const JobListFromJobScheduleNextHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobUpdateHeaders", + className: "JobListFromJobScheduleNextHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -11991,22 +8605,15 @@ export const JobUpdateHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } - }, - dataServiceId: { - serializedName: "dataserviceid", - type: { - name: "String" - } } } } }; -export const JobDisableHeaders: msRest.CompositeMapper = { - serializedName: "job-disable-headers", +export const JobListPreparationAndReleaseTaskStatusNextHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobDisableHeaders", + className: "JobListPreparationAndReleaseTaskStatusNextHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12031,22 +8638,15 @@ export const JobDisableHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } - }, - dataServiceId: { - serializedName: "dataserviceid", - type: { - name: "String" - } } } } }; -export const JobEnableHeaders: msRest.CompositeMapper = { - serializedName: "job-enable-headers", +export const CertificateAddHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobEnableHeaders", + className: "CertificateAddHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12082,11 +8682,10 @@ export const JobEnableHeaders: msRest.CompositeMapper = { } }; -export const JobTerminateHeaders: msRest.CompositeMapper = { - serializedName: "job-terminate-headers", +export const CertificateListHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobTerminateHeaders", + className: "CertificateListHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12111,22 +8710,15 @@ export const JobTerminateHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } - }, - dataServiceId: { - serializedName: "dataserviceid", - type: { - name: "String" - } } } } }; -export const JobAddHeaders: msRest.CompositeMapper = { - serializedName: "job-add-headers", +export const CertificateCancelDeletionHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobAddHeaders", + className: "CertificateCancelDeletionHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12162,11 +8754,10 @@ export const JobAddHeaders: msRest.CompositeMapper = { } }; -export const JobListHeaders: msRest.CompositeMapper = { - serializedName: "job-list-headers", +export const CertificateDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobListHeaders", + className: "CertificateDeleteHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12196,11 +8787,10 @@ export const JobListHeaders: msRest.CompositeMapper = { } }; -export const JobListFromJobScheduleHeaders: msRest.CompositeMapper = { - serializedName: "job-listfromjobschedule-headers", +export const CertificateGetHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobListFromJobScheduleHeaders", + className: "CertificateGetHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12230,11 +8820,10 @@ export const JobListFromJobScheduleHeaders: msRest.CompositeMapper = { } }; -export const JobListPreparationAndReleaseTaskStatusHeaders: msRest.CompositeMapper = { - serializedName: "job-listpreparationandreleasetaskstatus-headers", +export const CertificateListNextHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobListPreparationAndReleaseTaskStatusHeaders", + className: "CertificateListNextHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12264,33 +8853,31 @@ export const JobListPreparationAndReleaseTaskStatusHeaders: msRest.CompositeMapp } }; -export const JobGetTaskCountsHeaders: msRest.CompositeMapper = { - serializedName: "job-gettaskcounts-headers", +export const FileDeleteFromTaskHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobGetTaskCountsHeaders", + className: "FileDeleteFromTaskHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", type: { - name: "Uuid" + name: "String" } }, requestId: { serializedName: "request-id", type: { - name: "Uuid" + name: "String" } } } } }; -export const PoolAddHeaders: msRest.CompositeMapper = { - serializedName: "pool-add-headers", +export const FileGetFromTaskHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolAddHeaders", + className: "FileGetFromTaskHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12316,21 +8903,50 @@ export const PoolAddHeaders: msRest.CompositeMapper = { name: "DateTimeRfc1123" } }, - dataServiceId: { - serializedName: "dataserviceid", + ocpCreationTime: { + serializedName: "ocp-creation-time", + type: { + name: "DateTimeRfc1123" + } + }, + ocpBatchFileIsdirectory: { + serializedName: "ocp-batch-file-isdirectory", + type: { + name: "Boolean" + } + }, + ocpBatchFileUrl: { + serializedName: "ocp-batch-file-url", + type: { + name: "String" + } + }, + ocpBatchFileMode: { + serializedName: "ocp-batch-file-mode", + type: { + name: "String" + } + }, + contentType: { + serializedName: "content-type", type: { name: "String" } + }, + contentLength: { + serializedName: "content-length", + type: { + name: "Number" + } } } } }; -export const PoolListHeaders: msRest.CompositeMapper = { - serializedName: "pool-list-headers", +export const FileGetPropertiesFromTaskHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolListHeaders", + className: "FileGetPropertiesFromTaskHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12355,16 +8971,51 @@ export const PoolListHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } + }, + ocpCreationTime: { + serializedName: "ocp-creation-time", + type: { + name: "DateTimeRfc1123" + } + }, + ocpBatchFileIsdirectory: { + serializedName: "ocp-batch-file-isdirectory", + type: { + name: "Boolean" + } + }, + ocpBatchFileUrl: { + serializedName: "ocp-batch-file-url", + type: { + name: "String" + } + }, + ocpBatchFileMode: { + serializedName: "ocp-batch-file-mode", + type: { + name: "String" + } + }, + contentType: { + serializedName: "content-type", + type: { + name: "String" + } + }, + contentLength: { + serializedName: "content-length", + type: { + name: "Number" + } } } } }; -export const PoolDeleteHeaders: msRest.CompositeMapper = { - serializedName: "pool-delete-headers", +export const FileDeleteFromComputeNodeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolDeleteHeaders", + className: "FileDeleteFromComputeNodeHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12382,11 +9033,10 @@ export const PoolDeleteHeaders: msRest.CompositeMapper = { } }; -export const PoolExistsHeaders: msRest.CompositeMapper = { - serializedName: "pool-exists-headers", +export const FileGetFromComputeNodeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolExistsHeaders", + className: "FileGetFromComputeNodeHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12411,50 +9061,51 @@ export const PoolExistsHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } - } - } - } -}; - -export const PoolGetHeaders: msRest.CompositeMapper = { - serializedName: "pool-get-headers", - type: { - name: "Composite", - className: "PoolGetHeaders", - modelProperties: { - clientRequestId: { - serializedName: "client-request-id", + }, + ocpCreationTime: { + serializedName: "ocp-creation-time", type: { - name: "Uuid" + name: "DateTimeRfc1123" } }, - requestId: { - serializedName: "request-id", + ocpBatchFileIsdirectory: { + serializedName: "ocp-batch-file-isdirectory", type: { - name: "Uuid" + name: "Boolean" } }, - eTagHeader: { - serializedName: "etag", + ocpBatchFileUrl: { + serializedName: "ocp-batch-file-url", type: { name: "String" } }, - lastModifiedHeader: { - serializedName: "last-modified", + ocpBatchFileMode: { + serializedName: "ocp-batch-file-mode", type: { - name: "DateTimeRfc1123" + name: "String" + } + }, + contentType: { + serializedName: "content-type", + type: { + name: "String" + } + }, + contentLength: { + serializedName: "content-length", + type: { + name: "Number" } } } } }; -export const PoolPatchHeaders: msRest.CompositeMapper = { - serializedName: "pool-patch-headers", +export const FileGetPropertiesFromComputeNodeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolPatchHeaders", + className: "FileGetPropertiesFromComputeNodeHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12480,21 +9131,50 @@ export const PoolPatchHeaders: msRest.CompositeMapper = { name: "DateTimeRfc1123" } }, - dataServiceId: { - serializedName: "dataserviceid", + ocpCreationTime: { + serializedName: "ocp-creation-time", + type: { + name: "DateTimeRfc1123" + } + }, + ocpBatchFileIsdirectory: { + serializedName: "ocp-batch-file-isdirectory", + type: { + name: "Boolean" + } + }, + ocpBatchFileUrl: { + serializedName: "ocp-batch-file-url", + type: { + name: "String" + } + }, + ocpBatchFileMode: { + serializedName: "ocp-batch-file-mode", + type: { + name: "String" + } + }, + contentType: { + serializedName: "content-type", type: { name: "String" } + }, + contentLength: { + serializedName: "content-length", + type: { + name: "Number" + } } } } }; -export const PoolDisableAutoScaleHeaders: msRest.CompositeMapper = { - serializedName: "pool-disableautoscale-headers", +export const FileListFromTaskHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolDisableAutoScaleHeaders", + className: "FileListFromTaskHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12519,22 +9199,15 @@ export const PoolDisableAutoScaleHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } - }, - dataServiceId: { - serializedName: "dataserviceid", - type: { - name: "String" - } } } } }; -export const PoolEnableAutoScaleHeaders: msRest.CompositeMapper = { - serializedName: "pool-enableautoscale-headers", +export const FileListFromComputeNodeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolEnableAutoScaleHeaders", + className: "FileListFromComputeNodeHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12559,22 +9232,15 @@ export const PoolEnableAutoScaleHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } - }, - dataServiceId: { - serializedName: "dataserviceid", - type: { - name: "String" - } } } } }; -export const PoolEvaluateAutoScaleHeaders: msRest.CompositeMapper = { - serializedName: "pool-evaluateautoscale-headers", +export const FileListFromTaskNextHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolEvaluateAutoScaleHeaders", + className: "FileListFromTaskNextHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12599,22 +9265,15 @@ export const PoolEvaluateAutoScaleHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } - }, - dataServiceId: { - serializedName: "dataserviceid", - type: { - name: "String" - } } } } }; -export const PoolResizeHeaders: msRest.CompositeMapper = { - serializedName: "pool-resize-headers", +export const FileListFromComputeNodeNextHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolResizeHeaders", + className: "FileListFromComputeNodeNextHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12639,22 +9298,15 @@ export const PoolResizeHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } - }, - dataServiceId: { - serializedName: "dataserviceid", - type: { - name: "String" - } } } } }; -export const PoolStopResizeHeaders: msRest.CompositeMapper = { - serializedName: "pool-stopresize-headers", +export const JobScheduleExistsHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolStopResizeHeaders", + className: "JobScheduleExistsHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12679,9 +9331,24 @@ export const PoolStopResizeHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } + } + } + } +}; + +export const JobScheduleDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobScheduleDeleteHeaders", + modelProperties: { + clientRequestId: { + serializedName: "client-request-id", + type: { + name: "String" + } }, - dataServiceId: { - serializedName: "dataserviceid", + requestId: { + serializedName: "request-id", type: { name: "String" } @@ -12690,11 +9357,10 @@ export const PoolStopResizeHeaders: msRest.CompositeMapper = { } }; -export const PoolUpdatePropertiesHeaders: msRest.CompositeMapper = { - serializedName: "pool-updateproperties-headers", +export const JobScheduleGetHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolUpdatePropertiesHeaders", + className: "JobScheduleGetHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12719,22 +9385,15 @@ export const PoolUpdatePropertiesHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } - }, - dataServiceId: { - serializedName: "dataserviceid", - type: { - name: "String" - } } } } }; -export const PoolRemoveNodesHeaders: msRest.CompositeMapper = { - serializedName: "pool-removenodes-headers", +export const JobSchedulePatchHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolRemoveNodesHeaders", + className: "JobSchedulePatchHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12770,11 +9429,10 @@ export const PoolRemoveNodesHeaders: msRest.CompositeMapper = { } }; -export const TaskAddHeaders: msRest.CompositeMapper = { - serializedName: "task-add-headers", +export const JobScheduleUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskAddHeaders", + className: "JobScheduleUpdateHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12810,11 +9468,10 @@ export const TaskAddHeaders: msRest.CompositeMapper = { } }; -export const TaskListHeaders: msRest.CompositeMapper = { - serializedName: "task-list-headers", +export const JobScheduleDisableHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskListHeaders", + className: "JobScheduleDisableHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12839,47 +9496,48 @@ export const TaskListHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } + }, + dataServiceId: { + serializedName: "dataserviceid", + type: { + name: "String" + } } } } }; -export const TaskAddCollectionHeaders: msRest.CompositeMapper = { - serializedName: "task-addcollection-headers", +export const JobScheduleEnableHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskAddCollectionHeaders", + className: "JobScheduleEnableHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", type: { - name: "String" + name: "Uuid" } }, requestId: { serializedName: "request-id", type: { - name: "String" + name: "Uuid" } - } - } - } -}; - -export const TaskDeleteHeaders: msRest.CompositeMapper = { - serializedName: "task-delete-headers", - type: { - name: "Composite", - className: "TaskDeleteHeaders", - modelProperties: { - clientRequestId: { - serializedName: "client-request-id", + }, + eTag: { + serializedName: "etag", type: { name: "String" } }, - requestId: { - serializedName: "request-id", + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + }, + dataServiceId: { + serializedName: "dataserviceid", type: { name: "String" } @@ -12888,11 +9546,10 @@ export const TaskDeleteHeaders: msRest.CompositeMapper = { } }; -export const TaskGetHeaders: msRest.CompositeMapper = { - serializedName: "task-get-headers", +export const JobScheduleTerminateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskGetHeaders", + className: "JobScheduleTerminateHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12906,13 +9563,13 @@ export const TaskGetHeaders: msRest.CompositeMapper = { name: "Uuid" } }, - eTagHeader: { + eTag: { serializedName: "etag", type: { name: "String" } }, - lastModifiedHeader: { + lastModified: { serializedName: "last-modified", type: { name: "DateTimeRfc1123" @@ -12928,11 +9585,10 @@ export const TaskGetHeaders: msRest.CompositeMapper = { } }; -export const TaskUpdateHeaders: msRest.CompositeMapper = { - serializedName: "task-update-headers", +export const JobScheduleAddHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskUpdateHeaders", + className: "JobScheduleAddHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -12968,11 +9624,10 @@ export const TaskUpdateHeaders: msRest.CompositeMapper = { } }; -export const TaskListSubtasksHeaders: msRest.CompositeMapper = { - serializedName: "task-listsubtasks-headers", +export const JobScheduleListHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskListSubtasksHeaders", + className: "JobScheduleListHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -13002,11 +9657,10 @@ export const TaskListSubtasksHeaders: msRest.CompositeMapper = { } }; -export const TaskTerminateHeaders: msRest.CompositeMapper = { - serializedName: "task-terminate-headers", +export const JobScheduleListNextHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskTerminateHeaders", + className: "JobScheduleListNextHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -13031,22 +9685,15 @@ export const TaskTerminateHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } - }, - dataServiceId: { - serializedName: "dataserviceid", - type: { - name: "String" - } } } } }; -export const TaskReactivateHeaders: msRest.CompositeMapper = { - serializedName: "task-reactivate-headers", +export const TaskAddHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskReactivateHeaders", + className: "TaskAddHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -13082,11 +9729,10 @@ export const TaskReactivateHeaders: msRest.CompositeMapper = { } }; -export const ComputeNodeAddUserHeaders: msRest.CompositeMapper = { - serializedName: "computenode-adduser-headers", +export const TaskListHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeAddUserHeaders", + className: "TaskListHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -13111,22 +9757,15 @@ export const ComputeNodeAddUserHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } - }, - dataServiceId: { - serializedName: "dataserviceid", - type: { - name: "String" - } } } } }; -export const ComputeNodeDeleteUserHeaders: msRest.CompositeMapper = { - serializedName: "computenode-deleteuser-headers", +export const TaskAddCollectionHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeDeleteUserHeaders", + className: "TaskAddCollectionHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -13144,38 +9783,19 @@ export const ComputeNodeDeleteUserHeaders: msRest.CompositeMapper = { } }; -export const ComputeNodeUpdateUserHeaders: msRest.CompositeMapper = { - serializedName: "computenode-updateuser-headers", +export const TaskDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeUpdateUserHeaders", + className: "TaskDeleteHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", type: { - name: "Uuid" + name: "String" } }, requestId: { serializedName: "request-id", - type: { - name: "Uuid" - } - }, - eTag: { - serializedName: "etag", - type: { - name: "String" - } - }, - lastModified: { - serializedName: "last-modified", - type: { - name: "DateTimeRfc1123" - } - }, - dataServiceId: { - serializedName: "dataserviceid", type: { name: "String" } @@ -13184,11 +9804,10 @@ export const ComputeNodeUpdateUserHeaders: msRest.CompositeMapper = { } }; -export const ComputeNodeGetHeaders: msRest.CompositeMapper = { - serializedName: "computenode-get-headers", +export const TaskGetHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeGetHeaders", + className: "TaskGetHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -13213,16 +9832,21 @@ export const ComputeNodeGetHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } + }, + dataServiceId: { + serializedName: "dataserviceid", + type: { + name: "String" + } } } } }; -export const ComputeNodeRebootHeaders: msRest.CompositeMapper = { - serializedName: "computenode-reboot-headers", +export const TaskUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeRebootHeaders", + className: "TaskUpdateHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -13258,11 +9882,10 @@ export const ComputeNodeRebootHeaders: msRest.CompositeMapper = { } }; -export const ComputeNodeReimageHeaders: msRest.CompositeMapper = { - serializedName: "computenode-reimage-headers", +export const TaskListSubtasksHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeReimageHeaders", + className: "TaskListSubtasksHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -13287,22 +9910,15 @@ export const ComputeNodeReimageHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } - }, - dataServiceId: { - serializedName: "dataserviceid", - type: { - name: "String" - } } } } }; -export const ComputeNodeDisableSchedulingHeaders: msRest.CompositeMapper = { - serializedName: "computenode-disablescheduling-headers", +export const TaskTerminateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeDisableSchedulingHeaders", + className: "TaskTerminateHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -13338,11 +9954,10 @@ export const ComputeNodeDisableSchedulingHeaders: msRest.CompositeMapper = { } }; -export const ComputeNodeEnableSchedulingHeaders: msRest.CompositeMapper = { - serializedName: "computenode-enablescheduling-headers", +export const TaskReactivateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeEnableSchedulingHeaders", + className: "TaskReactivateHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -13378,11 +9993,10 @@ export const ComputeNodeEnableSchedulingHeaders: msRest.CompositeMapper = { } }; -export const ComputeNodeGetRemoteLoginSettingsHeaders: msRest.CompositeMapper = { - serializedName: "computenode-getremoteloginsettings-headers", +export const TaskListNextHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeGetRemoteLoginSettingsHeaders", + className: "TaskListNextHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -13412,11 +10026,10 @@ export const ComputeNodeGetRemoteLoginSettingsHeaders: msRest.CompositeMapper = } }; -export const ComputeNodeGetRemoteDesktopHeaders: msRest.CompositeMapper = { - serializedName: "computenode-getremotedesktop-headers", +export const ComputeNodeAddUserHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeGetRemoteDesktopHeaders", + className: "ComputeNodeAddUserHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -13441,38 +10054,42 @@ export const ComputeNodeGetRemoteDesktopHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } + }, + dataServiceId: { + serializedName: "dataserviceid", + type: { + name: "String" + } } } } }; -export const ComputeNodeUploadBatchServiceLogsHeaders: msRest.CompositeMapper = { - serializedName: "computenode-uploadbatchservicelogs-headers", +export const ComputeNodeDeleteUserHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeUploadBatchServiceLogsHeaders", + className: "ComputeNodeDeleteUserHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", type: { - name: "Uuid" + name: "String" } }, requestId: { serializedName: "request-id", type: { - name: "Uuid" + name: "String" } } } } }; -export const ComputeNodeListHeaders: msRest.CompositeMapper = { - serializedName: "computenode-list-headers", +export const ComputeNodeUpdateUserHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeListHeaders", + className: "ComputeNodeUpdateUserHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -13497,16 +10114,21 @@ export const ComputeNodeListHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } + }, + dataServiceId: { + serializedName: "dataserviceid", + type: { + name: "String" + } } } } }; -export const ComputeNodeExtensionGetHeaders: msRest.CompositeMapper = { - serializedName: "computenodeextension-get-headers", +export const ComputeNodeGetHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeExtensionGetHeaders", + className: "ComputeNodeGetHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -13536,11 +10158,10 @@ export const ComputeNodeExtensionGetHeaders: msRest.CompositeMapper = { } }; -export const ComputeNodeExtensionListHeaders: msRest.CompositeMapper = { - serializedName: "computenodeextension-list-headers", +export const ComputeNodeRebootHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeExtensionListHeaders", + className: "ComputeNodeRebootHeaders", modelProperties: { clientRequestId: { serializedName: "client-request-id", @@ -13565,59 +10186,48 @@ export const ComputeNodeExtensionListHeaders: msRest.CompositeMapper = { type: { name: "DateTimeRfc1123" } + }, + dataServiceId: { + serializedName: "dataserviceid", + type: { + name: "String" + } } } } }; -export const ApplicationListResult: msRest.CompositeMapper = { - serializedName: "ApplicationListResult", +export const ComputeNodeReimageHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationListResult", + className: "ComputeNodeReimageHeaders", modelProperties: { - value: { - serializedName: "", + clientRequestId: { + serializedName: "client-request-id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationSummary" - } - } + name: "Uuid" } }, - odatanextLink: { - serializedName: "odata\\.nextLink", + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", type: { name: "String" } - } - } - } -}; - -export const PoolListUsageMetricsResult: msRest.CompositeMapper = { - serializedName: "PoolListUsageMetricsResult", - type: { - name: "Composite", - className: "PoolListUsageMetricsResult", - modelProperties: { - value: { - serializedName: "", + }, + lastModified: { + serializedName: "last-modified", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PoolUsageMetrics" - } - } + name: "DateTimeRfc1123" } }, - odatanextLink: { - serializedName: "odata\\.nextLink", + dataServiceId: { + serializedName: "dataserviceid", type: { name: "String" } @@ -13626,54 +10236,37 @@ export const PoolListUsageMetricsResult: msRest.CompositeMapper = { } }; -export const CloudPoolListResult: msRest.CompositeMapper = { - serializedName: "CloudPoolListResult", +export const ComputeNodeDisableSchedulingHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudPoolListResult", + className: "ComputeNodeDisableSchedulingHeaders", modelProperties: { - value: { - serializedName: "", + clientRequestId: { + serializedName: "client-request-id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CloudPool" - } - } + name: "Uuid" } }, - odatanextLink: { - serializedName: "odata\\.nextLink", + requestId: { + serializedName: "request-id", type: { - name: "String" + name: "Uuid" } - } - } - } -}; - -export const AccountListSupportedImagesResult: msRest.CompositeMapper = { - serializedName: "AccountListSupportedImagesResult", - type: { - name: "Composite", - className: "AccountListSupportedImagesResult", - modelProperties: { - value: { - serializedName: "", + }, + eTag: { + serializedName: "etag", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ImageInformation" - } - } + name: "String" } }, - odatanextLink: { - serializedName: "odata\\.nextLink", + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + }, + dataServiceId: { + serializedName: "dataserviceid", type: { name: "String" } @@ -13682,26 +10275,37 @@ export const AccountListSupportedImagesResult: msRest.CompositeMapper = { } }; -export const PoolNodeCountsListResult: msRest.CompositeMapper = { - serializedName: "PoolNodeCountsListResult", +export const ComputeNodeEnableSchedulingHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PoolNodeCountsListResult", + className: "ComputeNodeEnableSchedulingHeaders", modelProperties: { - value: { - serializedName: "", + clientRequestId: { + serializedName: "client-request-id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PoolNodeCounts" - } - } + name: "Uuid" } }, - odatanextLink: { - serializedName: "odata\\.nextLink", + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + }, + dataServiceId: { + serializedName: "dataserviceid", type: { name: "String" } @@ -13710,225 +10314,253 @@ export const PoolNodeCountsListResult: msRest.CompositeMapper = { } }; -export const CloudJobListResult: msRest.CompositeMapper = { - serializedName: "CloudJobListResult", +export const ComputeNodeGetRemoteLoginSettingsHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudJobListResult", + className: "ComputeNodeGetRemoteLoginSettingsHeaders", modelProperties: { - value: { - serializedName: "", + clientRequestId: { + serializedName: "client-request-id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CloudJob" - } - } + name: "Uuid" } }, - odatanextLink: { - serializedName: "odata\\.nextLink", + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", type: { name: "String" } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } } } } }; -export const CloudJobListPreparationAndReleaseTaskStatusResult: msRest.CompositeMapper = { - serializedName: "CloudJobListPreparationAndReleaseTaskStatusResult", +export const ComputeNodeGetRemoteDesktopHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudJobListPreparationAndReleaseTaskStatusResult", + className: "ComputeNodeGetRemoteDesktopHeaders", modelProperties: { - value: { - serializedName: "", + clientRequestId: { + serializedName: "client-request-id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobPreparationAndReleaseTaskExecutionInformation" - } - } + name: "Uuid" } }, - odatanextLink: { - serializedName: "odata\\.nextLink", + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", type: { name: "String" } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } } } } }; -export const CertificateListResult: msRest.CompositeMapper = { - serializedName: "CertificateListResult", +export const ComputeNodeUploadBatchServiceLogsHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateListResult", + className: "ComputeNodeUploadBatchServiceLogsHeaders", modelProperties: { - value: { - serializedName: "", + clientRequestId: { + serializedName: "client-request-id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Certificate" - } - } + name: "Uuid" } }, - odatanextLink: { - serializedName: "odata\\.nextLink", + requestId: { + serializedName: "request-id", type: { - name: "String" + name: "Uuid" } } } } }; -export const NodeFileListResult: msRest.CompositeMapper = { - serializedName: "NodeFileListResult", +export const ComputeNodeListHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeFileListResult", + className: "ComputeNodeListHeaders", modelProperties: { - value: { - serializedName: "", + clientRequestId: { + serializedName: "client-request-id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NodeFile" - } - } + name: "Uuid" } }, - odatanextLink: { - serializedName: "odata\\.nextLink", + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", type: { name: "String" } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } } } } }; -export const CloudJobScheduleListResult: msRest.CompositeMapper = { - serializedName: "CloudJobScheduleListResult", +export const ComputeNodeListNextHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudJobScheduleListResult", + className: "ComputeNodeListNextHeaders", modelProperties: { - value: { - serializedName: "", + clientRequestId: { + serializedName: "client-request-id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CloudJobSchedule" - } - } + name: "Uuid" } }, - odatanextLink: { - serializedName: "odata\\.nextLink", + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", type: { name: "String" } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } } } } }; -export const CloudTaskListResult: msRest.CompositeMapper = { - serializedName: "CloudTaskListResult", +export const ComputeNodeExtensionGetHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudTaskListResult", + className: "ComputeNodeExtensionGetHeaders", modelProperties: { - value: { - serializedName: "", + clientRequestId: { + serializedName: "client-request-id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CloudTask" - } - } + name: "Uuid" } }, - odatanextLink: { - serializedName: "odata\\.nextLink", + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", type: { name: "String" } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } } } } }; -export const ComputeNodeListResult: msRest.CompositeMapper = { - serializedName: "ComputeNodeListResult", +export const ComputeNodeExtensionListHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeNodeListResult", + className: "ComputeNodeExtensionListHeaders", modelProperties: { - value: { - serializedName: "", + clientRequestId: { + serializedName: "client-request-id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeNode" - } - } + name: "Uuid" } }, - odatanextLink: { - serializedName: "odata\\.nextLink", + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", type: { name: "String" } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } } } } }; -export const NodeVMExtensionList: msRest.CompositeMapper = { - serializedName: "NodeVMExtensionList", +export const ComputeNodeExtensionListNextHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeVMExtensionList", + className: "ComputeNodeExtensionListNextHeaders", modelProperties: { - value: { - serializedName: "", + clientRequestId: { + serializedName: "client-request-id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NodeVMExtension" - } - } + name: "Uuid" } }, - odatanextLink: { - serializedName: "odata\\.nextLink", + requestId: { + serializedName: "request-id", + type: { + name: "Uuid" + } + }, + eTag: { + serializedName: "etag", type: { name: "String" } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } } } } diff --git a/sdk/batch/batch/src/models/parameters.ts b/sdk/batch/batch/src/models/parameters.ts index 43209cc79d79..9841bdd677da 100644 --- a/sdk/batch/batch/src/models/parameters.ts +++ b/sdk/batch/batch/src/models/parameters.ts @@ -3,55 +3,93 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import { + OperationParameter, + OperationURLParameter, + OperationQueryParameter +} from "@azure/core-client"; +import { + PoolAddParameter as PoolAddParameterMapper, + PoolPatchParameter as PoolPatchParameterMapper, + PoolEnableAutoScaleParameter as PoolEnableAutoScaleParameterMapper, + PoolEvaluateAutoScaleParameter as PoolEvaluateAutoScaleParameterMapper, + PoolResizeParameter as PoolResizeParameterMapper, + PoolUpdatePropertiesParameter as PoolUpdatePropertiesParameterMapper, + NodeRemoveParameter as NodeRemoveParameterMapper, + JobPatchParameter as JobPatchParameterMapper, + JobUpdateParameter as JobUpdateParameterMapper, + JobDisableParameter as JobDisableParameterMapper, + JobTerminateParameter as JobTerminateParameterMapper, + JobAddParameter as JobAddParameterMapper, + CertificateAddParameter as CertificateAddParameterMapper, + JobSchedulePatchParameter as JobSchedulePatchParameterMapper, + JobScheduleUpdateParameter as JobScheduleUpdateParameterMapper, + JobScheduleAddParameter as JobScheduleAddParameterMapper, + TaskAddParameter as TaskAddParameterMapper, + TaskAddCollectionParameter as TaskAddCollectionParameterMapper, + TaskUpdateParameter as TaskUpdateParameterMapper, + ComputeNodeUser as ComputeNodeUserMapper, + NodeUpdateUserParameter as NodeUpdateUserParameterMapper, + NodeRebootParameter as NodeRebootParameterMapper, + NodeReimageParameter as NodeReimageParameterMapper, + NodeDisableSchedulingParameter as NodeDisableSchedulingParameterMapper, + UploadBatchServiceLogsConfiguration as UploadBatchServiceLogsConfigurationMapper +} from "../models/mappers"; -export const acceptLanguage: msRest.OperationParameter = { - parameterPath: "acceptLanguage", +export const accept: OperationParameter = { + parameterPath: "accept", mapper: { - serializedName: "accept-language", - defaultValue: "en-US", + defaultValue: "application/json", + isConstant: true, + serializedName: "Accept", type: { name: "String" } } }; -export const apiVersion: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", + +export const batchUrl: OperationURLParameter = { + parameterPath: "batchUrl", mapper: { + serializedName: "batchUrl", required: true, - serializedName: "api-version", type: { name: "String" } - } + }, + skipEncoding: true }; -export const applicationId: msRest.OperationURLParameter = { - parameterPath: "applicationId", + +export const maxResults: OperationQueryParameter = { + parameterPath: ["options", "applicationListOptions", "maxResults"], mapper: { - required: true, - serializedName: "applicationId", + defaultValue: 1000, + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "maxresults", type: { - name: "String" + name: "Number" } } }; -export const batchUrl: msRest.OperationURLParameter = { - parameterPath: "batchUrl", + +export const timeout: OperationQueryParameter = { + parameterPath: ["options", "applicationListOptions", "timeout"], mapper: { - required: true, - serializedName: "batchUrl", - defaultValue: "", + defaultValue: 30, + serializedName: "timeout", type: { - name: "String" + name: "Number" } - }, - skipEncoding: true + } }; -export const clientRequestId0: msRest.OperationParameter = { + +export const clientRequestId: OperationParameter = { parameterPath: ["options", "applicationListOptions", "clientRequestId"], mapper: { serializedName: "client-request-id", @@ -60,53 +98,64 @@ export const clientRequestId0: msRest.OperationParameter = { } } }; -export const clientRequestId1: msRest.OperationParameter = { - parameterPath: ["options", "applicationGetOptions", "clientRequestId"], + +export const returnClientRequestId: OperationParameter = { + parameterPath: ["options", "applicationListOptions", "returnClientRequestId"], mapper: { - serializedName: "client-request-id", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Uuid" + name: "Boolean" } } }; -export const clientRequestId10: msRest.OperationParameter = { - parameterPath: ["options", "poolPatchOptions", "clientRequestId"], + +export const ocpDate: OperationParameter = { + parameterPath: ["options", "applicationListOptions", "ocpDate"], mapper: { - serializedName: "client-request-id", + serializedName: "ocp-date", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId11: msRest.OperationParameter = { - parameterPath: ["options", "poolDisableAutoScaleOptions", "clientRequestId"], + +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "client-request-id", + defaultValue: "2022-01-01.15.0", + isConstant: true, + serializedName: "api-version", type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId12: msRest.OperationParameter = { - parameterPath: ["options", "poolEnableAutoScaleOptions", "clientRequestId"], + +export const applicationId: OperationURLParameter = { + parameterPath: "applicationId", mapper: { - serializedName: "client-request-id", + serializedName: "applicationId", + required: true, type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId13: msRest.OperationParameter = { - parameterPath: ["options", "poolEvaluateAutoScaleOptions", "clientRequestId"], + +export const timeout1: OperationQueryParameter = { + parameterPath: ["options", "applicationGetOptions", "timeout"], mapper: { - serializedName: "client-request-id", + defaultValue: 30, + serializedName: "timeout", type: { - name: "Uuid" + name: "Number" } } }; -export const clientRequestId14: msRest.OperationParameter = { - parameterPath: ["options", "poolResizeOptions", "clientRequestId"], + +export const clientRequestId1: OperationParameter = { + parameterPath: ["options", "applicationGetOptions", "clientRequestId"], mapper: { serializedName: "client-request-id", type: { @@ -114,80 +163,98 @@ export const clientRequestId14: msRest.OperationParameter = { } } }; -export const clientRequestId15: msRest.OperationParameter = { - parameterPath: ["options", "poolStopResizeOptions", "clientRequestId"], + +export const returnClientRequestId1: OperationParameter = { + parameterPath: ["options", "applicationGetOptions", "returnClientRequestId"], mapper: { - serializedName: "client-request-id", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Uuid" + name: "Boolean" } } }; -export const clientRequestId16: msRest.OperationParameter = { - parameterPath: ["options", "poolUpdatePropertiesOptions", "clientRequestId"], + +export const ocpDate1: OperationParameter = { + parameterPath: ["options", "applicationGetOptions", "ocpDate"], mapper: { - serializedName: "client-request-id", + serializedName: "ocp-date", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId17: msRest.OperationParameter = { - parameterPath: ["options", "poolRemoveNodesOptions", "clientRequestId"], + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", mapper: { - serializedName: "client-request-id", + serializedName: "nextLink", + required: true, type: { - name: "Uuid" + name: "String" } - } + }, + skipEncoding: true }; -export const clientRequestId18: msRest.OperationParameter = { - parameterPath: ["options", "poolListUsageMetricsNextOptions", "clientRequestId"], + +export const startTime: OperationQueryParameter = { + parameterPath: ["options", "poolListUsageMetricsOptions", "startTime"], mapper: { - serializedName: "client-request-id", + serializedName: "starttime", type: { - name: "Uuid" + name: "DateTime" } } }; -export const clientRequestId19: msRest.OperationParameter = { - parameterPath: ["options", "poolListNextOptions", "clientRequestId"], + +export const endTime: OperationQueryParameter = { + parameterPath: ["options", "poolListUsageMetricsOptions", "endTime"], mapper: { - serializedName: "client-request-id", + serializedName: "endtime", type: { - name: "Uuid" + name: "DateTime" } } }; -export const clientRequestId2: msRest.OperationParameter = { - parameterPath: ["options", "applicationListNextOptions", "clientRequestId"], + +export const filter: OperationQueryParameter = { + parameterPath: ["options", "poolListUsageMetricsOptions", "filter"], mapper: { - serializedName: "client-request-id", + serializedName: "$filter", type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId20: msRest.OperationParameter = { - parameterPath: ["options", "accountListSupportedImagesOptions", "clientRequestId"], + +export const maxResults1: OperationQueryParameter = { + parameterPath: ["options", "poolListUsageMetricsOptions", "maxResults"], mapper: { - serializedName: "client-request-id", + defaultValue: 1000, + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "maxresults", type: { - name: "Uuid" + name: "Number" } } }; -export const clientRequestId21: msRest.OperationParameter = { - parameterPath: ["options", "accountListPoolNodeCountsOptions", "clientRequestId"], + +export const timeout2: OperationQueryParameter = { + parameterPath: ["options", "poolListUsageMetricsOptions", "timeout"], mapper: { - serializedName: "client-request-id", + defaultValue: 30, + serializedName: "timeout", type: { - name: "Uuid" + name: "Number" } } }; -export const clientRequestId22: msRest.OperationParameter = { - parameterPath: ["options", "accountListSupportedImagesNextOptions", "clientRequestId"], + +export const clientRequestId2: OperationParameter = { + parameterPath: ["options", "poolListUsageMetricsOptions", "clientRequestId"], mapper: { serializedName: "client-request-id", type: { @@ -195,35 +262,49 @@ export const clientRequestId22: msRest.OperationParameter = { } } }; -export const clientRequestId23: msRest.OperationParameter = { - parameterPath: ["options", "accountListPoolNodeCountsNextOptions", "clientRequestId"], + +export const returnClientRequestId2: OperationParameter = { + parameterPath: [ + "options", + "poolListUsageMetricsOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "client-request-id", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Uuid" + name: "Boolean" } } }; -export const clientRequestId24: msRest.OperationParameter = { - parameterPath: ["options", "jobGetAllLifetimeStatisticsOptions", "clientRequestId"], + +export const ocpDate2: OperationParameter = { + parameterPath: ["options", "poolListUsageMetricsOptions", "ocpDate"], mapper: { - serializedName: "client-request-id", + serializedName: "ocp-date", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId25: msRest.OperationParameter = { - parameterPath: ["options", "jobDeleteMethodOptions", "clientRequestId"], + +export const timeout3: OperationQueryParameter = { + parameterPath: ["options", "poolGetAllLifetimeStatisticsOptions", "timeout"], mapper: { - serializedName: "client-request-id", + defaultValue: 30, + serializedName: "timeout", type: { - name: "Uuid" + name: "Number" } } }; -export const clientRequestId26: msRest.OperationParameter = { - parameterPath: ["options", "jobGetOptions", "clientRequestId"], + +export const clientRequestId3: OperationParameter = { + parameterPath: [ + "options", + "poolGetAllLifetimeStatisticsOptions", + "clientRequestId" + ], mapper: { serializedName: "client-request-id", type: { @@ -231,44 +312,62 @@ export const clientRequestId26: msRest.OperationParameter = { } } }; -export const clientRequestId27: msRest.OperationParameter = { - parameterPath: ["options", "jobPatchOptions", "clientRequestId"], + +export const returnClientRequestId3: OperationParameter = { + parameterPath: [ + "options", + "poolGetAllLifetimeStatisticsOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "client-request-id", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Uuid" + name: "Boolean" } } }; -export const clientRequestId28: msRest.OperationParameter = { - parameterPath: ["options", "jobUpdateOptions", "clientRequestId"], + +export const ocpDate3: OperationParameter = { + parameterPath: ["options", "poolGetAllLifetimeStatisticsOptions", "ocpDate"], mapper: { - serializedName: "client-request-id", + serializedName: "ocp-date", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId29: msRest.OperationParameter = { - parameterPath: ["options", "jobDisableOptions", "clientRequestId"], + +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], mapper: { - serializedName: "client-request-id", + defaultValue: "application/json; odata=minimalmetadata", + isConstant: true, + serializedName: "Content-Type", type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId3: msRest.OperationParameter = { - parameterPath: ["options", "poolListUsageMetricsOptions", "clientRequestId"], + +export const pool: OperationParameter = { + parameterPath: "pool", + mapper: PoolAddParameterMapper +}; + +export const timeout4: OperationQueryParameter = { + parameterPath: ["options", "poolAddOptions", "timeout"], mapper: { - serializedName: "client-request-id", + defaultValue: 30, + serializedName: "timeout", type: { - name: "Uuid" + name: "Number" } } }; -export const clientRequestId30: msRest.OperationParameter = { - parameterPath: ["options", "jobEnableOptions", "clientRequestId"], + +export const clientRequestId4: OperationParameter = { + parameterPath: ["options", "poolAddOptions", "clientRequestId"], mapper: { serializedName: "client-request-id", type: { @@ -276,71 +375,86 @@ export const clientRequestId30: msRest.OperationParameter = { } } }; -export const clientRequestId31: msRest.OperationParameter = { - parameterPath: ["options", "jobTerminateOptions", "clientRequestId"], + +export const returnClientRequestId4: OperationParameter = { + parameterPath: ["options", "poolAddOptions", "returnClientRequestId"], mapper: { - serializedName: "client-request-id", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Uuid" + name: "Boolean" } } }; -export const clientRequestId32: msRest.OperationParameter = { - parameterPath: ["options", "jobAddOptions", "clientRequestId"], + +export const ocpDate4: OperationParameter = { + parameterPath: ["options", "poolAddOptions", "ocpDate"], mapper: { - serializedName: "client-request-id", + serializedName: "ocp-date", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId33: msRest.OperationParameter = { - parameterPath: ["options", "jobListOptions", "clientRequestId"], + +export const filter1: OperationQueryParameter = { + parameterPath: ["options", "poolListOptions", "filter"], mapper: { - serializedName: "client-request-id", + serializedName: "$filter", type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId34: msRest.OperationParameter = { - parameterPath: ["options", "jobListFromJobScheduleOptions", "clientRequestId"], + +export const select: OperationQueryParameter = { + parameterPath: ["options", "poolListOptions", "select"], mapper: { - serializedName: "client-request-id", + serializedName: "$select", type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId35: msRest.OperationParameter = { - parameterPath: ["options", "jobListPreparationAndReleaseTaskStatusOptions", "clientRequestId"], + +export const expand: OperationQueryParameter = { + parameterPath: ["options", "poolListOptions", "expand"], mapper: { - serializedName: "client-request-id", + serializedName: "$expand", type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId36: msRest.OperationParameter = { - parameterPath: ["options", "jobGetTaskCountsOptions", "clientRequestId"], + +export const maxResults2: OperationQueryParameter = { + parameterPath: ["options", "poolListOptions", "maxResults"], mapper: { - serializedName: "client-request-id", + defaultValue: 1000, + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "maxresults", type: { - name: "Uuid" + name: "Number" } } }; -export const clientRequestId37: msRest.OperationParameter = { - parameterPath: ["options", "jobListNextOptions", "clientRequestId"], + +export const timeout5: OperationQueryParameter = { + parameterPath: ["options", "poolListOptions", "timeout"], mapper: { - serializedName: "client-request-id", + defaultValue: 30, + serializedName: "timeout", type: { - name: "Uuid" + name: "Number" } } }; -export const clientRequestId38: msRest.OperationParameter = { - parameterPath: ["options", "jobListFromJobScheduleNextOptions", "clientRequestId"], + +export const clientRequestId5: OperationParameter = { + parameterPath: ["options", "poolListOptions", "clientRequestId"], mapper: { serializedName: "client-request-id", type: { @@ -348,48 +462,52 @@ export const clientRequestId38: msRest.OperationParameter = { } } }; -export const clientRequestId39: msRest.OperationParameter = { - parameterPath: [ - "options", - "jobListPreparationAndReleaseTaskStatusNextOptions", - "clientRequestId" - ], + +export const returnClientRequestId5: OperationParameter = { + parameterPath: ["options", "poolListOptions", "returnClientRequestId"], mapper: { - serializedName: "client-request-id", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Uuid" + name: "Boolean" } } }; -export const clientRequestId4: msRest.OperationParameter = { - parameterPath: ["options", "poolGetAllLifetimeStatisticsOptions", "clientRequestId"], + +export const ocpDate5: OperationParameter = { + parameterPath: ["options", "poolListOptions", "ocpDate"], mapper: { - serializedName: "client-request-id", + serializedName: "ocp-date", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId40: msRest.OperationParameter = { - parameterPath: ["options", "certificateAddOptions", "clientRequestId"], + +export const poolId: OperationURLParameter = { + parameterPath: "poolId", mapper: { - serializedName: "client-request-id", + serializedName: "poolId", + required: true, type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId41: msRest.OperationParameter = { - parameterPath: ["options", "certificateListOptions", "clientRequestId"], + +export const timeout6: OperationQueryParameter = { + parameterPath: ["options", "poolDeleteOptions", "timeout"], mapper: { - serializedName: "client-request-id", + defaultValue: 30, + serializedName: "timeout", type: { - name: "Uuid" + name: "Number" } } }; -export const clientRequestId42: msRest.OperationParameter = { - parameterPath: ["options", "certificateCancelDeletionOptions", "clientRequestId"], + +export const clientRequestId6: OperationParameter = { + parameterPath: ["options", "poolDeleteOptions", "clientRequestId"], mapper: { serializedName: "client-request-id", type: { @@ -397,71 +515,81 @@ export const clientRequestId42: msRest.OperationParameter = { } } }; -export const clientRequestId43: msRest.OperationParameter = { - parameterPath: ["options", "certificateDeleteMethodOptions", "clientRequestId"], + +export const returnClientRequestId6: OperationParameter = { + parameterPath: ["options", "poolDeleteOptions", "returnClientRequestId"], mapper: { - serializedName: "client-request-id", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Uuid" + name: "Boolean" } } }; -export const clientRequestId44: msRest.OperationParameter = { - parameterPath: ["options", "certificateGetOptions", "clientRequestId"], + +export const ocpDate6: OperationParameter = { + parameterPath: ["options", "poolDeleteOptions", "ocpDate"], mapper: { - serializedName: "client-request-id", + serializedName: "ocp-date", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId45: msRest.OperationParameter = { - parameterPath: ["options", "certificateListNextOptions", "clientRequestId"], + +export const ifMatch: OperationParameter = { + parameterPath: ["options", "poolDeleteOptions", "ifMatch"], mapper: { - serializedName: "client-request-id", + serializedName: "If-Match", type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId46: msRest.OperationParameter = { - parameterPath: ["options", "fileDeleteFromTaskOptions", "clientRequestId"], + +export const ifNoneMatch: OperationParameter = { + parameterPath: ["options", "poolDeleteOptions", "ifNoneMatch"], mapper: { - serializedName: "client-request-id", + serializedName: "If-None-Match", type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId47: msRest.OperationParameter = { - parameterPath: ["options", "fileGetFromTaskOptions", "clientRequestId"], + +export const ifModifiedSince: OperationParameter = { + parameterPath: ["options", "poolDeleteOptions", "ifModifiedSince"], mapper: { - serializedName: "client-request-id", + serializedName: "If-Modified-Since", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId48: msRest.OperationParameter = { - parameterPath: ["options", "fileGetPropertiesFromTaskOptions", "clientRequestId"], + +export const ifUnmodifiedSince: OperationParameter = { + parameterPath: ["options", "poolDeleteOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "client-request-id", + serializedName: "If-Unmodified-Since", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId49: msRest.OperationParameter = { - parameterPath: ["options", "fileDeleteFromComputeNodeOptions", "clientRequestId"], + +export const timeout7: OperationQueryParameter = { + parameterPath: ["options", "poolExistsOptions", "timeout"], mapper: { - serializedName: "client-request-id", + defaultValue: 30, + serializedName: "timeout", type: { - name: "Uuid" + name: "Number" } } }; -export const clientRequestId5: msRest.OperationParameter = { - parameterPath: ["options", "poolAddOptions", "clientRequestId"], + +export const clientRequestId7: OperationParameter = { + parameterPath: ["options", "poolExistsOptions", "clientRequestId"], mapper: { serializedName: "client-request-id", type: { @@ -469,89 +597,101 @@ export const clientRequestId5: msRest.OperationParameter = { } } }; -export const clientRequestId50: msRest.OperationParameter = { - parameterPath: ["options", "fileGetFromComputeNodeOptions", "clientRequestId"], + +export const returnClientRequestId7: OperationParameter = { + parameterPath: ["options", "poolExistsOptions", "returnClientRequestId"], mapper: { - serializedName: "client-request-id", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Uuid" + name: "Boolean" } } }; -export const clientRequestId51: msRest.OperationParameter = { - parameterPath: ["options", "fileGetPropertiesFromComputeNodeOptions", "clientRequestId"], + +export const ocpDate7: OperationParameter = { + parameterPath: ["options", "poolExistsOptions", "ocpDate"], mapper: { - serializedName: "client-request-id", + serializedName: "ocp-date", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId52: msRest.OperationParameter = { - parameterPath: ["options", "fileListFromTaskOptions", "clientRequestId"], + +export const ifMatch1: OperationParameter = { + parameterPath: ["options", "poolExistsOptions", "ifMatch"], mapper: { - serializedName: "client-request-id", + serializedName: "If-Match", type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId53: msRest.OperationParameter = { - parameterPath: ["options", "fileListFromComputeNodeOptions", "clientRequestId"], + +export const ifNoneMatch1: OperationParameter = { + parameterPath: ["options", "poolExistsOptions", "ifNoneMatch"], mapper: { - serializedName: "client-request-id", + serializedName: "If-None-Match", type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId54: msRest.OperationParameter = { - parameterPath: ["options", "fileListFromTaskNextOptions", "clientRequestId"], + +export const ifModifiedSince1: OperationParameter = { + parameterPath: ["options", "poolExistsOptions", "ifModifiedSince"], mapper: { - serializedName: "client-request-id", + serializedName: "If-Modified-Since", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId55: msRest.OperationParameter = { - parameterPath: ["options", "fileListFromComputeNodeNextOptions", "clientRequestId"], + +export const ifUnmodifiedSince1: OperationParameter = { + parameterPath: ["options", "poolExistsOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "client-request-id", + serializedName: "If-Unmodified-Since", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId56: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleExistsOptions", "clientRequestId"], + +export const select1: OperationQueryParameter = { + parameterPath: ["options", "poolGetOptions", "select"], mapper: { - serializedName: "client-request-id", + serializedName: "$select", type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId57: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleDeleteMethodOptions", "clientRequestId"], + +export const expand1: OperationQueryParameter = { + parameterPath: ["options", "poolGetOptions", "expand"], mapper: { - serializedName: "client-request-id", + serializedName: "$expand", type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId58: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleGetOptions", "clientRequestId"], + +export const timeout8: OperationQueryParameter = { + parameterPath: ["options", "poolGetOptions", "timeout"], mapper: { - serializedName: "client-request-id", + defaultValue: 30, + serializedName: "timeout", type: { - name: "Uuid" + name: "Number" } } }; -export const clientRequestId59: msRest.OperationParameter = { - parameterPath: ["options", "jobSchedulePatchOptions", "clientRequestId"], + +export const clientRequestId8: OperationParameter = { + parameterPath: ["options", "poolGetOptions", "clientRequestId"], mapper: { serializedName: "client-request-id", type: { @@ -559,80 +699,86 @@ export const clientRequestId59: msRest.OperationParameter = { } } }; -export const clientRequestId6: msRest.OperationParameter = { - parameterPath: ["options", "poolListOptions", "clientRequestId"], + +export const returnClientRequestId8: OperationParameter = { + parameterPath: ["options", "poolGetOptions", "returnClientRequestId"], mapper: { - serializedName: "client-request-id", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Uuid" + name: "Boolean" } } }; -export const clientRequestId60: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleUpdateOptions", "clientRequestId"], + +export const ocpDate8: OperationParameter = { + parameterPath: ["options", "poolGetOptions", "ocpDate"], mapper: { - serializedName: "client-request-id", + serializedName: "ocp-date", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId61: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleDisableOptions", "clientRequestId"], + +export const ifMatch2: OperationParameter = { + parameterPath: ["options", "poolGetOptions", "ifMatch"], mapper: { - serializedName: "client-request-id", + serializedName: "If-Match", type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId62: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleEnableOptions", "clientRequestId"], + +export const ifNoneMatch2: OperationParameter = { + parameterPath: ["options", "poolGetOptions", "ifNoneMatch"], mapper: { - serializedName: "client-request-id", + serializedName: "If-None-Match", type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId63: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleTerminateOptions", "clientRequestId"], + +export const ifModifiedSince2: OperationParameter = { + parameterPath: ["options", "poolGetOptions", "ifModifiedSince"], mapper: { - serializedName: "client-request-id", + serializedName: "If-Modified-Since", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId64: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleAddOptions", "clientRequestId"], + +export const ifUnmodifiedSince2: OperationParameter = { + parameterPath: ["options", "poolGetOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "client-request-id", + serializedName: "If-Unmodified-Since", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId65: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleListOptions", "clientRequestId"], - mapper: { - serializedName: "client-request-id", - type: { - name: "Uuid" - } - } + +export const poolPatchParameter: OperationParameter = { + parameterPath: "poolPatchParameter", + mapper: PoolPatchParameterMapper }; -export const clientRequestId66: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleListNextOptions", "clientRequestId"], + +export const timeout9: OperationQueryParameter = { + parameterPath: ["options", "poolPatchOptions", "timeout"], mapper: { - serializedName: "client-request-id", + defaultValue: 30, + serializedName: "timeout", type: { - name: "Uuid" + name: "Number" } } }; -export const clientRequestId67: msRest.OperationParameter = { - parameterPath: ["options", "taskAddOptions", "clientRequestId"], + +export const clientRequestId9: OperationParameter = { + parameterPath: ["options", "poolPatchOptions", "clientRequestId"], mapper: { serializedName: "client-request-id", type: { @@ -640,71 +786,81 @@ export const clientRequestId67: msRest.OperationParameter = { } } }; -export const clientRequestId68: msRest.OperationParameter = { - parameterPath: ["options", "taskListOptions", "clientRequestId"], + +export const returnClientRequestId9: OperationParameter = { + parameterPath: ["options", "poolPatchOptions", "returnClientRequestId"], mapper: { - serializedName: "client-request-id", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Uuid" + name: "Boolean" } } }; -export const clientRequestId69: msRest.OperationParameter = { - parameterPath: ["options", "taskAddCollectionOptions", "clientRequestId"], + +export const ocpDate9: OperationParameter = { + parameterPath: ["options", "poolPatchOptions", "ocpDate"], mapper: { - serializedName: "client-request-id", + serializedName: "ocp-date", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId7: msRest.OperationParameter = { - parameterPath: ["options", "poolDeleteMethodOptions", "clientRequestId"], + +export const ifMatch3: OperationParameter = { + parameterPath: ["options", "poolPatchOptions", "ifMatch"], mapper: { - serializedName: "client-request-id", + serializedName: "If-Match", type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId70: msRest.OperationParameter = { - parameterPath: ["options", "taskDeleteMethodOptions", "clientRequestId"], + +export const ifNoneMatch3: OperationParameter = { + parameterPath: ["options", "poolPatchOptions", "ifNoneMatch"], mapper: { - serializedName: "client-request-id", + serializedName: "If-None-Match", type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId71: msRest.OperationParameter = { - parameterPath: ["options", "taskGetOptions", "clientRequestId"], + +export const ifModifiedSince3: OperationParameter = { + parameterPath: ["options", "poolPatchOptions", "ifModifiedSince"], mapper: { - serializedName: "client-request-id", + serializedName: "If-Modified-Since", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId72: msRest.OperationParameter = { - parameterPath: ["options", "taskUpdateOptions", "clientRequestId"], + +export const ifUnmodifiedSince3: OperationParameter = { + parameterPath: ["options", "poolPatchOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "client-request-id", + serializedName: "If-Unmodified-Since", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId73: msRest.OperationParameter = { - parameterPath: ["options", "taskListSubtasksOptions", "clientRequestId"], + +export const timeout10: OperationQueryParameter = { + parameterPath: ["options", "poolDisableAutoScaleOptions", "timeout"], mapper: { - serializedName: "client-request-id", + defaultValue: 30, + serializedName: "timeout", type: { - name: "Uuid" + name: "Number" } } }; -export const clientRequestId74: msRest.OperationParameter = { - parameterPath: ["options", "taskTerminateOptions", "clientRequestId"], + +export const clientRequestId10: OperationParameter = { + parameterPath: ["options", "poolDisableAutoScaleOptions", "clientRequestId"], mapper: { serializedName: "client-request-id", type: { @@ -712,35 +868,50 @@ export const clientRequestId74: msRest.OperationParameter = { } } }; -export const clientRequestId75: msRest.OperationParameter = { - parameterPath: ["options", "taskReactivateOptions", "clientRequestId"], - mapper: { - serializedName: "client-request-id", + +export const returnClientRequestId10: OperationParameter = { + parameterPath: [ + "options", + "poolDisableAutoScaleOptions", + "returnClientRequestId" + ], + mapper: { + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Uuid" + name: "Boolean" } } }; -export const clientRequestId76: msRest.OperationParameter = { - parameterPath: ["options", "taskListNextOptions", "clientRequestId"], + +export const ocpDate10: OperationParameter = { + parameterPath: ["options", "poolDisableAutoScaleOptions", "ocpDate"], mapper: { - serializedName: "client-request-id", + serializedName: "ocp-date", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId77: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeAddUserOptions", "clientRequestId"], + +export const poolEnableAutoScaleParameter: OperationParameter = { + parameterPath: "poolEnableAutoScaleParameter", + mapper: PoolEnableAutoScaleParameterMapper +}; + +export const timeout11: OperationQueryParameter = { + parameterPath: ["options", "poolEnableAutoScaleOptions", "timeout"], mapper: { - serializedName: "client-request-id", + defaultValue: 30, + serializedName: "timeout", type: { - name: "Uuid" + name: "Number" } } }; -export const clientRequestId78: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeDeleteUserOptions", "clientRequestId"], + +export const clientRequestId11: OperationParameter = { + parameterPath: ["options", "poolEnableAutoScaleOptions", "clientRequestId"], mapper: { serializedName: "client-request-id", type: { @@ -748,71 +919,90 @@ export const clientRequestId78: msRest.OperationParameter = { } } }; -export const clientRequestId79: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeUpdateUserOptions", "clientRequestId"], + +export const returnClientRequestId11: OperationParameter = { + parameterPath: [ + "options", + "poolEnableAutoScaleOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "client-request-id", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Uuid" + name: "Boolean" } } }; -export const clientRequestId8: msRest.OperationParameter = { - parameterPath: ["options", "poolExistsOptions", "clientRequestId"], + +export const ocpDate11: OperationParameter = { + parameterPath: ["options", "poolEnableAutoScaleOptions", "ocpDate"], mapper: { - serializedName: "client-request-id", + serializedName: "ocp-date", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId80: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeGetOptions", "clientRequestId"], + +export const ifMatch4: OperationParameter = { + parameterPath: ["options", "poolEnableAutoScaleOptions", "ifMatch"], mapper: { - serializedName: "client-request-id", + serializedName: "If-Match", type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId81: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeRebootOptions", "clientRequestId"], + +export const ifNoneMatch4: OperationParameter = { + parameterPath: ["options", "poolEnableAutoScaleOptions", "ifNoneMatch"], mapper: { - serializedName: "client-request-id", + serializedName: "If-None-Match", type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId82: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeReimageOptions", "clientRequestId"], + +export const ifModifiedSince4: OperationParameter = { + parameterPath: ["options", "poolEnableAutoScaleOptions", "ifModifiedSince"], mapper: { - serializedName: "client-request-id", + serializedName: "If-Modified-Since", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId83: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeDisableSchedulingOptions", "clientRequestId"], + +export const ifUnmodifiedSince4: OperationParameter = { + parameterPath: ["options", "poolEnableAutoScaleOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "client-request-id", + serializedName: "If-Unmodified-Since", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId84: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeEnableSchedulingOptions", "clientRequestId"], + +export const poolEvaluateAutoScaleParameter: OperationParameter = { + parameterPath: "poolEvaluateAutoScaleParameter", + mapper: PoolEvaluateAutoScaleParameterMapper +}; + +export const timeout12: OperationQueryParameter = { + parameterPath: ["options", "poolEvaluateAutoScaleOptions", "timeout"], mapper: { - serializedName: "client-request-id", + defaultValue: 30, + serializedName: "timeout", type: { - name: "Uuid" + name: "Number" } } }; -export const clientRequestId85: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeGetRemoteLoginSettingsOptions", "clientRequestId"], + +export const clientRequestId12: OperationParameter = { + parameterPath: ["options", "poolEvaluateAutoScaleOptions", "clientRequestId"], mapper: { serializedName: "client-request-id", type: { @@ -820,35 +1010,50 @@ export const clientRequestId85: msRest.OperationParameter = { } } }; -export const clientRequestId86: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeGetRemoteDesktopOptions", "clientRequestId"], + +export const returnClientRequestId12: OperationParameter = { + parameterPath: [ + "options", + "poolEvaluateAutoScaleOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "client-request-id", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Uuid" + name: "Boolean" } } }; -export const clientRequestId87: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeUploadBatchServiceLogsOptions", "clientRequestId"], + +export const ocpDate12: OperationParameter = { + parameterPath: ["options", "poolEvaluateAutoScaleOptions", "ocpDate"], mapper: { - serializedName: "client-request-id", + serializedName: "ocp-date", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId88: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeListOptions", "clientRequestId"], + +export const poolResizeParameter: OperationParameter = { + parameterPath: "poolResizeParameter", + mapper: PoolResizeParameterMapper +}; + +export const timeout13: OperationQueryParameter = { + parameterPath: ["options", "poolResizeOptions", "timeout"], mapper: { - serializedName: "client-request-id", + defaultValue: 30, + serializedName: "timeout", type: { - name: "Uuid" + name: "Number" } } }; -export const clientRequestId89: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeListNextOptions", "clientRequestId"], + +export const clientRequestId13: OperationParameter = { + parameterPath: ["options", "poolResizeOptions", "clientRequestId"], mapper: { serializedName: "client-request-id", type: { @@ -856,244 +1061,290 @@ export const clientRequestId89: msRest.OperationParameter = { } } }; -export const clientRequestId9: msRest.OperationParameter = { - parameterPath: ["options", "poolGetOptions", "clientRequestId"], + +export const returnClientRequestId13: OperationParameter = { + parameterPath: ["options", "poolResizeOptions", "returnClientRequestId"], mapper: { - serializedName: "client-request-id", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Uuid" + name: "Boolean" } } }; -export const clientRequestId90: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeExtensionGetOptions", "clientRequestId"], + +export const ocpDate13: OperationParameter = { + parameterPath: ["options", "poolResizeOptions", "ocpDate"], mapper: { - serializedName: "client-request-id", + serializedName: "ocp-date", type: { - name: "Uuid" + name: "DateTimeRfc1123" } } }; -export const clientRequestId91: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeExtensionListOptions", "clientRequestId"], + +export const ifMatch5: OperationParameter = { + parameterPath: ["options", "poolResizeOptions", "ifMatch"], mapper: { - serializedName: "client-request-id", + serializedName: "If-Match", type: { - name: "Uuid" + name: "String" } } }; -export const clientRequestId92: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeExtensionListNextOptions", "clientRequestId"], + +export const ifNoneMatch5: OperationParameter = { + parameterPath: ["options", "poolResizeOptions", "ifNoneMatch"], mapper: { - serializedName: "client-request-id", + serializedName: "If-None-Match", type: { - name: "Uuid" + name: "String" } } }; -export const endTime: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolListUsageMetricsOptions", "endTime"], + +export const ifModifiedSince5: OperationParameter = { + parameterPath: ["options", "poolResizeOptions", "ifModifiedSince"], mapper: { - serializedName: "endtime", + serializedName: "If-Modified-Since", type: { - name: "DateTime" + name: "DateTimeRfc1123" } } }; -export const expand0: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolListOptions", "expand"], + +export const ifUnmodifiedSince5: OperationParameter = { + parameterPath: ["options", "poolResizeOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "$expand", + serializedName: "If-Unmodified-Since", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const expand1: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolGetOptions", "expand"], + +export const timeout14: OperationQueryParameter = { + parameterPath: ["options", "poolStopResizeOptions", "timeout"], mapper: { - serializedName: "$expand", + defaultValue: 30, + serializedName: "timeout", type: { - name: "String" + name: "Number" } } }; -export const expand2: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobGetOptions", "expand"], + +export const clientRequestId14: OperationParameter = { + parameterPath: ["options", "poolStopResizeOptions", "clientRequestId"], mapper: { - serializedName: "$expand", + serializedName: "client-request-id", type: { - name: "String" + name: "Uuid" } } }; -export const expand3: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobListOptions", "expand"], + +export const returnClientRequestId14: OperationParameter = { + parameterPath: ["options", "poolStopResizeOptions", "returnClientRequestId"], mapper: { - serializedName: "$expand", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "String" + name: "Boolean" } } }; -export const expand4: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobListFromJobScheduleOptions", "expand"], + +export const ocpDate14: OperationParameter = { + parameterPath: ["options", "poolStopResizeOptions", "ocpDate"], mapper: { - serializedName: "$expand", + serializedName: "ocp-date", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const expand5: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobScheduleGetOptions", "expand"], + +export const ifMatch6: OperationParameter = { + parameterPath: ["options", "poolStopResizeOptions", "ifMatch"], mapper: { - serializedName: "$expand", + serializedName: "If-Match", type: { name: "String" } } }; -export const expand6: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobScheduleListOptions", "expand"], + +export const ifNoneMatch6: OperationParameter = { + parameterPath: ["options", "poolStopResizeOptions", "ifNoneMatch"], mapper: { - serializedName: "$expand", + serializedName: "If-None-Match", type: { name: "String" } } }; -export const expand7: msRest.OperationQueryParameter = { - parameterPath: ["options", "taskListOptions", "expand"], + +export const ifModifiedSince6: OperationParameter = { + parameterPath: ["options", "poolStopResizeOptions", "ifModifiedSince"], mapper: { - serializedName: "$expand", + serializedName: "If-Modified-Since", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const expand8: msRest.OperationQueryParameter = { - parameterPath: ["options", "taskGetOptions", "expand"], + +export const ifUnmodifiedSince6: OperationParameter = { + parameterPath: ["options", "poolStopResizeOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "$expand", + serializedName: "If-Unmodified-Since", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const extensionName: msRest.OperationURLParameter = { - parameterPath: "extensionName", + +export const poolUpdatePropertiesParameter: OperationParameter = { + parameterPath: "poolUpdatePropertiesParameter", + mapper: PoolUpdatePropertiesParameterMapper +}; + +export const timeout15: OperationQueryParameter = { + parameterPath: ["options", "poolUpdatePropertiesOptions", "timeout"], mapper: { - required: true, - serializedName: "extensionName", + defaultValue: 30, + serializedName: "timeout", type: { - name: "String" + name: "Number" } } }; -export const filePath: msRest.OperationURLParameter = { - parameterPath: "filePath", + +export const clientRequestId15: OperationParameter = { + parameterPath: ["options", "poolUpdatePropertiesOptions", "clientRequestId"], mapper: { - required: true, - serializedName: "filePath", + serializedName: "client-request-id", type: { - name: "String" + name: "Uuid" } } }; -export const filter0: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolListUsageMetricsOptions", "filter"], + +export const returnClientRequestId15: OperationParameter = { + parameterPath: [ + "options", + "poolUpdatePropertiesOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "$filter", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "String" + name: "Boolean" } } }; -export const filter1: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolListOptions", "filter"], + +export const ocpDate15: OperationParameter = { + parameterPath: ["options", "poolUpdatePropertiesOptions", "ocpDate"], mapper: { - serializedName: "$filter", + serializedName: "ocp-date", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const filter10: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobScheduleListOptions", "filter"], + +export const nodeRemoveParameter: OperationParameter = { + parameterPath: "nodeRemoveParameter", + mapper: NodeRemoveParameterMapper +}; + +export const timeout16: OperationQueryParameter = { + parameterPath: ["options", "poolRemoveNodesOptions", "timeout"], mapper: { - serializedName: "$filter", + defaultValue: 30, + serializedName: "timeout", type: { - name: "String" + name: "Number" } } }; -export const filter11: msRest.OperationQueryParameter = { - parameterPath: ["options", "taskListOptions", "filter"], + +export const clientRequestId16: OperationParameter = { + parameterPath: ["options", "poolRemoveNodesOptions", "clientRequestId"], mapper: { - serializedName: "$filter", + serializedName: "client-request-id", type: { - name: "String" + name: "Uuid" } } }; -export const filter12: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeListOptions", "filter"], + +export const returnClientRequestId16: OperationParameter = { + parameterPath: ["options", "poolRemoveNodesOptions", "returnClientRequestId"], mapper: { - serializedName: "$filter", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "String" + name: "Boolean" } } }; -export const filter2: msRest.OperationQueryParameter = { - parameterPath: ["options", "accountListSupportedImagesOptions", "filter"], + +export const ocpDate16: OperationParameter = { + parameterPath: ["options", "poolRemoveNodesOptions", "ocpDate"], mapper: { - serializedName: "$filter", + serializedName: "ocp-date", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const filter3: msRest.OperationQueryParameter = { - parameterPath: ["options", "accountListPoolNodeCountsOptions", "filter"], + +export const ifMatch7: OperationParameter = { + parameterPath: ["options", "poolRemoveNodesOptions", "ifMatch"], mapper: { - serializedName: "$filter", + serializedName: "If-Match", type: { name: "String" } } }; -export const filter4: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobListOptions", "filter"], + +export const ifNoneMatch7: OperationParameter = { + parameterPath: ["options", "poolRemoveNodesOptions", "ifNoneMatch"], mapper: { - serializedName: "$filter", + serializedName: "If-None-Match", type: { name: "String" } } }; -export const filter5: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobListFromJobScheduleOptions", "filter"], + +export const ifModifiedSince7: OperationParameter = { + parameterPath: ["options", "poolRemoveNodesOptions", "ifModifiedSince"], mapper: { - serializedName: "$filter", + serializedName: "If-Modified-Since", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const filter6: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobListPreparationAndReleaseTaskStatusOptions", "filter"], + +export const ifUnmodifiedSince7: OperationParameter = { + parameterPath: ["options", "poolRemoveNodesOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "$filter", + serializedName: "If-Unmodified-Since", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const filter7: msRest.OperationQueryParameter = { - parameterPath: ["options", "certificateListOptions", "filter"], + +export const filter2: OperationQueryParameter = { + parameterPath: ["options", "accountListSupportedImagesOptions", "filter"], mapper: { serializedName: "$filter", type: { @@ -1101,188 +1352,252 @@ export const filter7: msRest.OperationQueryParameter = { } } }; -export const filter8: msRest.OperationQueryParameter = { - parameterPath: ["options", "fileListFromTaskOptions", "filter"], + +export const maxResults3: OperationQueryParameter = { + parameterPath: ["options", "accountListSupportedImagesOptions", "maxResults"], mapper: { - serializedName: "$filter", + defaultValue: 1000, + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "maxresults", type: { - name: "String" + name: "Number" } } }; -export const filter9: msRest.OperationQueryParameter = { - parameterPath: ["options", "fileListFromComputeNodeOptions", "filter"], + +export const timeout17: OperationQueryParameter = { + parameterPath: ["options", "accountListSupportedImagesOptions", "timeout"], mapper: { - serializedName: "$filter", + defaultValue: 30, + serializedName: "timeout", type: { - name: "String" + name: "Number" } } }; -export const ifMatch0: msRest.OperationParameter = { - parameterPath: ["options", "poolDeleteMethodOptions", "ifMatch"], + +export const clientRequestId17: OperationParameter = { + parameterPath: [ + "options", + "accountListSupportedImagesOptions", + "clientRequestId" + ], mapper: { - serializedName: "If-Match", + serializedName: "client-request-id", type: { - name: "String" + name: "Uuid" } } }; -export const ifMatch1: msRest.OperationParameter = { - parameterPath: ["options", "poolExistsOptions", "ifMatch"], + +export const returnClientRequestId17: OperationParameter = { + parameterPath: [ + "options", + "accountListSupportedImagesOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "If-Match", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "String" + name: "Boolean" } } }; -export const ifMatch10: msRest.OperationParameter = { - parameterPath: ["options", "jobPatchOptions", "ifMatch"], + +export const ocpDate17: OperationParameter = { + parameterPath: ["options", "accountListSupportedImagesOptions", "ocpDate"], mapper: { - serializedName: "If-Match", + serializedName: "ocp-date", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const ifMatch11: msRest.OperationParameter = { - parameterPath: ["options", "jobUpdateOptions", "ifMatch"], + +export const filter3: OperationQueryParameter = { + parameterPath: ["options", "accountListPoolNodeCountsOptions", "filter"], mapper: { - serializedName: "If-Match", + serializedName: "$filter", type: { name: "String" } } }; -export const ifMatch12: msRest.OperationParameter = { - parameterPath: ["options", "jobDisableOptions", "ifMatch"], + +export const maxResults4: OperationQueryParameter = { + parameterPath: ["options", "accountListPoolNodeCountsOptions", "maxResults"], mapper: { - serializedName: "If-Match", + defaultValue: 10, + constraints: { + InclusiveMaximum: 10, + InclusiveMinimum: 1 + }, + serializedName: "maxresults", type: { - name: "String" + name: "Number" } } }; -export const ifMatch13: msRest.OperationParameter = { - parameterPath: ["options", "jobEnableOptions", "ifMatch"], + +export const timeout18: OperationQueryParameter = { + parameterPath: ["options", "accountListPoolNodeCountsOptions", "timeout"], mapper: { - serializedName: "If-Match", + defaultValue: 30, + serializedName: "timeout", type: { - name: "String" + name: "Number" } } }; -export const ifMatch14: msRest.OperationParameter = { - parameterPath: ["options", "jobTerminateOptions", "ifMatch"], + +export const clientRequestId18: OperationParameter = { + parameterPath: [ + "options", + "accountListPoolNodeCountsOptions", + "clientRequestId" + ], mapper: { - serializedName: "If-Match", + serializedName: "client-request-id", type: { - name: "String" + name: "Uuid" } } }; -export const ifMatch15: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleExistsOptions", "ifMatch"], + +export const returnClientRequestId18: OperationParameter = { + parameterPath: [ + "options", + "accountListPoolNodeCountsOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "If-Match", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "String" + name: "Boolean" } } }; -export const ifMatch16: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleDeleteMethodOptions", "ifMatch"], + +export const ocpDate18: OperationParameter = { + parameterPath: ["options", "accountListPoolNodeCountsOptions", "ocpDate"], mapper: { - serializedName: "If-Match", + serializedName: "ocp-date", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const ifMatch17: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleGetOptions", "ifMatch"], + +export const timeout19: OperationQueryParameter = { + parameterPath: ["options", "jobGetAllLifetimeStatisticsOptions", "timeout"], mapper: { - serializedName: "If-Match", + defaultValue: 30, + serializedName: "timeout", type: { - name: "String" + name: "Number" } } }; -export const ifMatch18: msRest.OperationParameter = { - parameterPath: ["options", "jobSchedulePatchOptions", "ifMatch"], + +export const clientRequestId19: OperationParameter = { + parameterPath: [ + "options", + "jobGetAllLifetimeStatisticsOptions", + "clientRequestId" + ], mapper: { - serializedName: "If-Match", + serializedName: "client-request-id", type: { - name: "String" + name: "Uuid" } } }; -export const ifMatch19: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleUpdateOptions", "ifMatch"], + +export const returnClientRequestId19: OperationParameter = { + parameterPath: [ + "options", + "jobGetAllLifetimeStatisticsOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "If-Match", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "String" + name: "Boolean" } } }; -export const ifMatch2: msRest.OperationParameter = { - parameterPath: ["options", "poolGetOptions", "ifMatch"], + +export const ocpDate19: OperationParameter = { + parameterPath: ["options", "jobGetAllLifetimeStatisticsOptions", "ocpDate"], mapper: { - serializedName: "If-Match", + serializedName: "ocp-date", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const ifMatch20: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleDisableOptions", "ifMatch"], + +export const jobId: OperationURLParameter = { + parameterPath: "jobId", mapper: { - serializedName: "If-Match", + serializedName: "jobId", + required: true, type: { name: "String" } } }; -export const ifMatch21: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleEnableOptions", "ifMatch"], + +export const timeout20: OperationQueryParameter = { + parameterPath: ["options", "jobDeleteOptions", "timeout"], mapper: { - serializedName: "If-Match", + defaultValue: 30, + serializedName: "timeout", type: { - name: "String" + name: "Number" } } }; -export const ifMatch22: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleTerminateOptions", "ifMatch"], + +export const clientRequestId20: OperationParameter = { + parameterPath: ["options", "jobDeleteOptions", "clientRequestId"], mapper: { - serializedName: "If-Match", + serializedName: "client-request-id", type: { - name: "String" + name: "Uuid" } } }; -export const ifMatch23: msRest.OperationParameter = { - parameterPath: ["options", "taskDeleteMethodOptions", "ifMatch"], + +export const returnClientRequestId20: OperationParameter = { + parameterPath: ["options", "jobDeleteOptions", "returnClientRequestId"], mapper: { - serializedName: "If-Match", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "String" + name: "Boolean" } } }; -export const ifMatch24: msRest.OperationParameter = { - parameterPath: ["options", "taskGetOptions", "ifMatch"], + +export const ocpDate20: OperationParameter = { + parameterPath: ["options", "jobDeleteOptions", "ocpDate"], mapper: { - serializedName: "If-Match", + serializedName: "ocp-date", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const ifMatch25: msRest.OperationParameter = { - parameterPath: ["options", "taskUpdateOptions", "ifMatch"], + +export const ifMatch8: OperationParameter = { + parameterPath: ["options", "jobDeleteOptions", "ifMatch"], mapper: { serializedName: "If-Match", type: { @@ -1290,107 +1605,121 @@ export const ifMatch25: msRest.OperationParameter = { } } }; -export const ifMatch26: msRest.OperationParameter = { - parameterPath: ["options", "taskTerminateOptions", "ifMatch"], + +export const ifNoneMatch8: OperationParameter = { + parameterPath: ["options", "jobDeleteOptions", "ifNoneMatch"], mapper: { - serializedName: "If-Match", + serializedName: "If-None-Match", type: { name: "String" } } }; -export const ifMatch27: msRest.OperationParameter = { - parameterPath: ["options", "taskReactivateOptions", "ifMatch"], + +export const ifModifiedSince8: OperationParameter = { + parameterPath: ["options", "jobDeleteOptions", "ifModifiedSince"], mapper: { - serializedName: "If-Match", + serializedName: "If-Modified-Since", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const ifMatch3: msRest.OperationParameter = { - parameterPath: ["options", "poolPatchOptions", "ifMatch"], + +export const ifUnmodifiedSince8: OperationParameter = { + parameterPath: ["options", "jobDeleteOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "If-Match", + serializedName: "If-Unmodified-Since", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const ifMatch4: msRest.OperationParameter = { - parameterPath: ["options", "poolEnableAutoScaleOptions", "ifMatch"], + +export const select2: OperationQueryParameter = { + parameterPath: ["options", "jobGetOptions", "select"], mapper: { - serializedName: "If-Match", + serializedName: "$select", type: { name: "String" } } }; -export const ifMatch5: msRest.OperationParameter = { - parameterPath: ["options", "poolResizeOptions", "ifMatch"], + +export const expand2: OperationQueryParameter = { + parameterPath: ["options", "jobGetOptions", "expand"], mapper: { - serializedName: "If-Match", + serializedName: "$expand", type: { name: "String" } } }; -export const ifMatch6: msRest.OperationParameter = { - parameterPath: ["options", "poolStopResizeOptions", "ifMatch"], + +export const timeout21: OperationQueryParameter = { + parameterPath: ["options", "jobGetOptions", "timeout"], mapper: { - serializedName: "If-Match", + defaultValue: 30, + serializedName: "timeout", type: { - name: "String" + name: "Number" } } }; -export const ifMatch7: msRest.OperationParameter = { - parameterPath: ["options", "poolRemoveNodesOptions", "ifMatch"], + +export const clientRequestId21: OperationParameter = { + parameterPath: ["options", "jobGetOptions", "clientRequestId"], mapper: { - serializedName: "If-Match", + serializedName: "client-request-id", type: { - name: "String" + name: "Uuid" } } }; -export const ifMatch8: msRest.OperationParameter = { - parameterPath: ["options", "jobDeleteMethodOptions", "ifMatch"], + +export const returnClientRequestId21: OperationParameter = { + parameterPath: ["options", "jobGetOptions", "returnClientRequestId"], mapper: { - serializedName: "If-Match", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "String" + name: "Boolean" } } }; -export const ifMatch9: msRest.OperationParameter = { - parameterPath: ["options", "jobGetOptions", "ifMatch"], + +export const ocpDate21: OperationParameter = { + parameterPath: ["options", "jobGetOptions", "ocpDate"], mapper: { - serializedName: "If-Match", + serializedName: "ocp-date", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const ifModifiedSince0: msRest.OperationParameter = { - parameterPath: ["options", "poolDeleteMethodOptions", "ifModifiedSince"], + +export const ifMatch9: OperationParameter = { + parameterPath: ["options", "jobGetOptions", "ifMatch"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "If-Match", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ifModifiedSince1: msRest.OperationParameter = { - parameterPath: ["options", "poolExistsOptions", "ifModifiedSince"], + +export const ifNoneMatch9: OperationParameter = { + parameterPath: ["options", "jobGetOptions", "ifNoneMatch"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "If-None-Match", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ifModifiedSince10: msRest.OperationParameter = { - parameterPath: ["options", "jobPatchOptions", "ifModifiedSince"], + +export const ifModifiedSince9: OperationParameter = { + parameterPath: ["options", "jobGetOptions", "ifModifiedSince"], mapper: { serializedName: "If-Modified-Since", type: { @@ -1398,71 +1727,86 @@ export const ifModifiedSince10: msRest.OperationParameter = { } } }; -export const ifModifiedSince11: msRest.OperationParameter = { - parameterPath: ["options", "jobUpdateOptions", "ifModifiedSince"], + +export const ifUnmodifiedSince9: OperationParameter = { + parameterPath: ["options", "jobGetOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "If-Unmodified-Since", type: { name: "DateTimeRfc1123" } } }; -export const ifModifiedSince12: msRest.OperationParameter = { - parameterPath: ["options", "jobDisableOptions", "ifModifiedSince"], + +export const jobPatchParameter: OperationParameter = { + parameterPath: "jobPatchParameter", + mapper: JobPatchParameterMapper +}; + +export const timeout22: OperationQueryParameter = { + parameterPath: ["options", "jobPatchOptions", "timeout"], mapper: { - serializedName: "If-Modified-Since", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ifModifiedSince13: msRest.OperationParameter = { - parameterPath: ["options", "jobEnableOptions", "ifModifiedSince"], + +export const clientRequestId22: OperationParameter = { + parameterPath: ["options", "jobPatchOptions", "clientRequestId"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ifModifiedSince14: msRest.OperationParameter = { - parameterPath: ["options", "jobTerminateOptions", "ifModifiedSince"], + +export const returnClientRequestId22: OperationParameter = { + parameterPath: ["options", "jobPatchOptions", "returnClientRequestId"], mapper: { - serializedName: "If-Modified-Since", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ifModifiedSince15: msRest.OperationParameter = { - parameterPath: ["options", "fileGetFromTaskOptions", "ifModifiedSince"], + +export const ocpDate22: OperationParameter = { + parameterPath: ["options", "jobPatchOptions", "ocpDate"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "ocp-date", type: { name: "DateTimeRfc1123" } } }; -export const ifModifiedSince16: msRest.OperationParameter = { - parameterPath: ["options", "fileGetPropertiesFromTaskOptions", "ifModifiedSince"], + +export const ifMatch10: OperationParameter = { + parameterPath: ["options", "jobPatchOptions", "ifMatch"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "If-Match", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ifModifiedSince17: msRest.OperationParameter = { - parameterPath: ["options", "fileGetFromComputeNodeOptions", "ifModifiedSince"], + +export const ifNoneMatch10: OperationParameter = { + parameterPath: ["options", "jobPatchOptions", "ifNoneMatch"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "If-None-Match", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ifModifiedSince18: msRest.OperationParameter = { - parameterPath: ["options", "fileGetPropertiesFromComputeNodeOptions", "ifModifiedSince"], + +export const ifModifiedSince10: OperationParameter = { + parameterPath: ["options", "jobPatchOptions", "ifModifiedSince"], mapper: { serializedName: "If-Modified-Since", type: { @@ -1470,71 +1814,86 @@ export const ifModifiedSince18: msRest.OperationParameter = { } } }; -export const ifModifiedSince19: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleExistsOptions", "ifModifiedSince"], + +export const ifUnmodifiedSince10: OperationParameter = { + parameterPath: ["options", "jobPatchOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "If-Unmodified-Since", type: { name: "DateTimeRfc1123" } } }; -export const ifModifiedSince2: msRest.OperationParameter = { - parameterPath: ["options", "poolGetOptions", "ifModifiedSince"], + +export const jobUpdateParameter: OperationParameter = { + parameterPath: "jobUpdateParameter", + mapper: JobUpdateParameterMapper +}; + +export const timeout23: OperationQueryParameter = { + parameterPath: ["options", "jobUpdateOptions", "timeout"], mapper: { - serializedName: "If-Modified-Since", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ifModifiedSince20: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleDeleteMethodOptions", "ifModifiedSince"], + +export const clientRequestId23: OperationParameter = { + parameterPath: ["options", "jobUpdateOptions", "clientRequestId"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ifModifiedSince21: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleGetOptions", "ifModifiedSince"], + +export const returnClientRequestId23: OperationParameter = { + parameterPath: ["options", "jobUpdateOptions", "returnClientRequestId"], mapper: { - serializedName: "If-Modified-Since", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ifModifiedSince22: msRest.OperationParameter = { - parameterPath: ["options", "jobSchedulePatchOptions", "ifModifiedSince"], + +export const ocpDate23: OperationParameter = { + parameterPath: ["options", "jobUpdateOptions", "ocpDate"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "ocp-date", type: { name: "DateTimeRfc1123" } } }; -export const ifModifiedSince23: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleUpdateOptions", "ifModifiedSince"], + +export const ifMatch11: OperationParameter = { + parameterPath: ["options", "jobUpdateOptions", "ifMatch"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "If-Match", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ifModifiedSince24: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleDisableOptions", "ifModifiedSince"], + +export const ifNoneMatch11: OperationParameter = { + parameterPath: ["options", "jobUpdateOptions", "ifNoneMatch"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "If-None-Match", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ifModifiedSince25: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleEnableOptions", "ifModifiedSince"], + +export const ifModifiedSince11: OperationParameter = { + parameterPath: ["options", "jobUpdateOptions", "ifModifiedSince"], mapper: { serializedName: "If-Modified-Since", type: { @@ -1542,71 +1901,86 @@ export const ifModifiedSince25: msRest.OperationParameter = { } } }; -export const ifModifiedSince26: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleTerminateOptions", "ifModifiedSince"], + +export const ifUnmodifiedSince11: OperationParameter = { + parameterPath: ["options", "jobUpdateOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "If-Unmodified-Since", type: { name: "DateTimeRfc1123" } } }; -export const ifModifiedSince27: msRest.OperationParameter = { - parameterPath: ["options", "taskDeleteMethodOptions", "ifModifiedSince"], + +export const jobDisableParameter: OperationParameter = { + parameterPath: "jobDisableParameter", + mapper: JobDisableParameterMapper +}; + +export const timeout24: OperationQueryParameter = { + parameterPath: ["options", "jobDisableOptions", "timeout"], mapper: { - serializedName: "If-Modified-Since", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ifModifiedSince28: msRest.OperationParameter = { - parameterPath: ["options", "taskGetOptions", "ifModifiedSince"], + +export const clientRequestId24: OperationParameter = { + parameterPath: ["options", "jobDisableOptions", "clientRequestId"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ifModifiedSince29: msRest.OperationParameter = { - parameterPath: ["options", "taskUpdateOptions", "ifModifiedSince"], + +export const returnClientRequestId24: OperationParameter = { + parameterPath: ["options", "jobDisableOptions", "returnClientRequestId"], mapper: { - serializedName: "If-Modified-Since", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ifModifiedSince3: msRest.OperationParameter = { - parameterPath: ["options", "poolPatchOptions", "ifModifiedSince"], + +export const ocpDate24: OperationParameter = { + parameterPath: ["options", "jobDisableOptions", "ocpDate"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "ocp-date", type: { name: "DateTimeRfc1123" } } }; -export const ifModifiedSince30: msRest.OperationParameter = { - parameterPath: ["options", "taskTerminateOptions", "ifModifiedSince"], + +export const ifMatch12: OperationParameter = { + parameterPath: ["options", "jobDisableOptions", "ifMatch"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "If-Match", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ifModifiedSince31: msRest.OperationParameter = { - parameterPath: ["options", "taskReactivateOptions", "ifModifiedSince"], + +export const ifNoneMatch12: OperationParameter = { + parameterPath: ["options", "jobDisableOptions", "ifNoneMatch"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "If-None-Match", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ifModifiedSince4: msRest.OperationParameter = { - parameterPath: ["options", "poolEnableAutoScaleOptions", "ifModifiedSince"], + +export const ifModifiedSince12: OperationParameter = { + parameterPath: ["options", "jobDisableOptions", "ifModifiedSince"], mapper: { serializedName: "If-Modified-Since", type: { @@ -1614,62 +1988,71 @@ export const ifModifiedSince4: msRest.OperationParameter = { } } }; -export const ifModifiedSince5: msRest.OperationParameter = { - parameterPath: ["options", "poolResizeOptions", "ifModifiedSince"], + +export const ifUnmodifiedSince12: OperationParameter = { + parameterPath: ["options", "jobDisableOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "If-Unmodified-Since", type: { name: "DateTimeRfc1123" } } }; -export const ifModifiedSince6: msRest.OperationParameter = { - parameterPath: ["options", "poolStopResizeOptions", "ifModifiedSince"], + +export const timeout25: OperationQueryParameter = { + parameterPath: ["options", "jobEnableOptions", "timeout"], mapper: { - serializedName: "If-Modified-Since", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ifModifiedSince7: msRest.OperationParameter = { - parameterPath: ["options", "poolRemoveNodesOptions", "ifModifiedSince"], + +export const clientRequestId25: OperationParameter = { + parameterPath: ["options", "jobEnableOptions", "clientRequestId"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ifModifiedSince8: msRest.OperationParameter = { - parameterPath: ["options", "jobDeleteMethodOptions", "ifModifiedSince"], + +export const returnClientRequestId25: OperationParameter = { + parameterPath: ["options", "jobEnableOptions", "returnClientRequestId"], mapper: { - serializedName: "If-Modified-Since", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ifModifiedSince9: msRest.OperationParameter = { - parameterPath: ["options", "jobGetOptions", "ifModifiedSince"], + +export const ocpDate25: OperationParameter = { + parameterPath: ["options", "jobEnableOptions", "ocpDate"], mapper: { - serializedName: "If-Modified-Since", + serializedName: "ocp-date", type: { name: "DateTimeRfc1123" } } }; -export const ifNoneMatch0: msRest.OperationParameter = { - parameterPath: ["options", "poolDeleteMethodOptions", "ifNoneMatch"], + +export const ifMatch13: OperationParameter = { + parameterPath: ["options", "jobEnableOptions", "ifMatch"], mapper: { - serializedName: "If-None-Match", + serializedName: "If-Match", type: { name: "String" } } }; -export const ifNoneMatch1: msRest.OperationParameter = { - parameterPath: ["options", "poolExistsOptions", "ifNoneMatch"], + +export const ifNoneMatch13: OperationParameter = { + parameterPath: ["options", "jobEnableOptions", "ifNoneMatch"], mapper: { serializedName: "If-None-Match", type: { @@ -1677,71 +2060,86 @@ export const ifNoneMatch1: msRest.OperationParameter = { } } }; -export const ifNoneMatch10: msRest.OperationParameter = { - parameterPath: ["options", "jobPatchOptions", "ifNoneMatch"], + +export const ifModifiedSince13: OperationParameter = { + parameterPath: ["options", "jobEnableOptions", "ifModifiedSince"], mapper: { - serializedName: "If-None-Match", + serializedName: "If-Modified-Since", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const ifNoneMatch11: msRest.OperationParameter = { - parameterPath: ["options", "jobUpdateOptions", "ifNoneMatch"], + +export const ifUnmodifiedSince13: OperationParameter = { + parameterPath: ["options", "jobEnableOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "If-None-Match", + serializedName: "If-Unmodified-Since", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const ifNoneMatch12: msRest.OperationParameter = { - parameterPath: ["options", "jobDisableOptions", "ifNoneMatch"], + +export const jobTerminateParameter: OperationParameter = { + parameterPath: ["options", "jobTerminateParameter"], + mapper: JobTerminateParameterMapper +}; + +export const timeout26: OperationQueryParameter = { + parameterPath: ["options", "jobTerminateOptions", "timeout"], mapper: { - serializedName: "If-None-Match", + defaultValue: 30, + serializedName: "timeout", type: { - name: "String" + name: "Number" } } }; -export const ifNoneMatch13: msRest.OperationParameter = { - parameterPath: ["options", "jobEnableOptions", "ifNoneMatch"], + +export const clientRequestId26: OperationParameter = { + parameterPath: ["options", "jobTerminateOptions", "clientRequestId"], mapper: { - serializedName: "If-None-Match", + serializedName: "client-request-id", type: { - name: "String" + name: "Uuid" } } }; -export const ifNoneMatch14: msRest.OperationParameter = { - parameterPath: ["options", "jobTerminateOptions", "ifNoneMatch"], + +export const returnClientRequestId26: OperationParameter = { + parameterPath: ["options", "jobTerminateOptions", "returnClientRequestId"], mapper: { - serializedName: "If-None-Match", - type: { - name: "String" + defaultValue: false, + serializedName: "return-client-request-id", + type: { + name: "Boolean" } } }; -export const ifNoneMatch15: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleExistsOptions", "ifNoneMatch"], + +export const ocpDate26: OperationParameter = { + parameterPath: ["options", "jobTerminateOptions", "ocpDate"], mapper: { - serializedName: "If-None-Match", + serializedName: "ocp-date", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const ifNoneMatch16: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleDeleteMethodOptions", "ifNoneMatch"], + +export const ifMatch14: OperationParameter = { + parameterPath: ["options", "jobTerminateOptions", "ifMatch"], mapper: { - serializedName: "If-None-Match", + serializedName: "If-Match", type: { name: "String" } } }; -export const ifNoneMatch17: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleGetOptions", "ifNoneMatch"], + +export const ifNoneMatch14: OperationParameter = { + parameterPath: ["options", "jobTerminateOptions", "ifNoneMatch"], mapper: { serializedName: "If-None-Match", type: { @@ -1749,889 +2147,606 @@ export const ifNoneMatch17: msRest.OperationParameter = { } } }; -export const ifNoneMatch18: msRest.OperationParameter = { - parameterPath: ["options", "jobSchedulePatchOptions", "ifNoneMatch"], + +export const ifModifiedSince14: OperationParameter = { + parameterPath: ["options", "jobTerminateOptions", "ifModifiedSince"], mapper: { - serializedName: "If-None-Match", + serializedName: "If-Modified-Since", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const ifNoneMatch19: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleUpdateOptions", "ifNoneMatch"], + +export const ifUnmodifiedSince14: OperationParameter = { + parameterPath: ["options", "jobTerminateOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "If-None-Match", + serializedName: "If-Unmodified-Since", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const ifNoneMatch2: msRest.OperationParameter = { - parameterPath: ["options", "poolGetOptions", "ifNoneMatch"], + +export const job: OperationParameter = { + parameterPath: "job", + mapper: JobAddParameterMapper +}; + +export const timeout27: OperationQueryParameter = { + parameterPath: ["options", "jobAddOptions", "timeout"], mapper: { - serializedName: "If-None-Match", + defaultValue: 30, + serializedName: "timeout", type: { - name: "String" + name: "Number" } } }; -export const ifNoneMatch20: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleDisableOptions", "ifNoneMatch"], + +export const clientRequestId27: OperationParameter = { + parameterPath: ["options", "jobAddOptions", "clientRequestId"], mapper: { - serializedName: "If-None-Match", + serializedName: "client-request-id", type: { - name: "String" + name: "Uuid" } } }; -export const ifNoneMatch21: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleEnableOptions", "ifNoneMatch"], + +export const returnClientRequestId27: OperationParameter = { + parameterPath: ["options", "jobAddOptions", "returnClientRequestId"], mapper: { - serializedName: "If-None-Match", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "String" + name: "Boolean" } } }; -export const ifNoneMatch22: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleTerminateOptions", "ifNoneMatch"], + +export const ocpDate27: OperationParameter = { + parameterPath: ["options", "jobAddOptions", "ocpDate"], mapper: { - serializedName: "If-None-Match", + serializedName: "ocp-date", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const ifNoneMatch23: msRest.OperationParameter = { - parameterPath: ["options", "taskDeleteMethodOptions", "ifNoneMatch"], + +export const filter4: OperationQueryParameter = { + parameterPath: ["options", "jobListOptions", "filter"], mapper: { - serializedName: "If-None-Match", + serializedName: "$filter", type: { name: "String" } } }; -export const ifNoneMatch24: msRest.OperationParameter = { - parameterPath: ["options", "taskGetOptions", "ifNoneMatch"], + +export const select3: OperationQueryParameter = { + parameterPath: ["options", "jobListOptions", "select"], mapper: { - serializedName: "If-None-Match", + serializedName: "$select", type: { name: "String" } } }; -export const ifNoneMatch25: msRest.OperationParameter = { - parameterPath: ["options", "taskUpdateOptions", "ifNoneMatch"], + +export const expand3: OperationQueryParameter = { + parameterPath: ["options", "jobListOptions", "expand"], mapper: { - serializedName: "If-None-Match", + serializedName: "$expand", type: { name: "String" } } }; -export const ifNoneMatch26: msRest.OperationParameter = { - parameterPath: ["options", "taskTerminateOptions", "ifNoneMatch"], + +export const maxResults5: OperationQueryParameter = { + parameterPath: ["options", "jobListOptions", "maxResults"], mapper: { - serializedName: "If-None-Match", + defaultValue: 1000, + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "maxresults", type: { - name: "String" + name: "Number" } } }; -export const ifNoneMatch27: msRest.OperationParameter = { - parameterPath: ["options", "taskReactivateOptions", "ifNoneMatch"], + +export const timeout28: OperationQueryParameter = { + parameterPath: ["options", "jobListOptions", "timeout"], mapper: { - serializedName: "If-None-Match", + defaultValue: 30, + serializedName: "timeout", type: { - name: "String" + name: "Number" } } }; -export const ifNoneMatch3: msRest.OperationParameter = { - parameterPath: ["options", "poolPatchOptions", "ifNoneMatch"], + +export const clientRequestId28: OperationParameter = { + parameterPath: ["options", "jobListOptions", "clientRequestId"], mapper: { - serializedName: "If-None-Match", + serializedName: "client-request-id", type: { - name: "String" + name: "Uuid" } } }; -export const ifNoneMatch4: msRest.OperationParameter = { - parameterPath: ["options", "poolEnableAutoScaleOptions", "ifNoneMatch"], + +export const returnClientRequestId28: OperationParameter = { + parameterPath: ["options", "jobListOptions", "returnClientRequestId"], mapper: { - serializedName: "If-None-Match", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "String" + name: "Boolean" } } }; -export const ifNoneMatch5: msRest.OperationParameter = { - parameterPath: ["options", "poolResizeOptions", "ifNoneMatch"], + +export const ocpDate28: OperationParameter = { + parameterPath: ["options", "jobListOptions", "ocpDate"], mapper: { - serializedName: "If-None-Match", + serializedName: "ocp-date", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const ifNoneMatch6: msRest.OperationParameter = { - parameterPath: ["options", "poolStopResizeOptions", "ifNoneMatch"], + +export const jobScheduleId: OperationURLParameter = { + parameterPath: "jobScheduleId", mapper: { - serializedName: "If-None-Match", + serializedName: "jobScheduleId", + required: true, type: { name: "String" } } }; -export const ifNoneMatch7: msRest.OperationParameter = { - parameterPath: ["options", "poolRemoveNodesOptions", "ifNoneMatch"], + +export const filter5: OperationQueryParameter = { + parameterPath: ["options", "jobListFromJobScheduleOptions", "filter"], mapper: { - serializedName: "If-None-Match", + serializedName: "$filter", type: { name: "String" } } }; -export const ifNoneMatch8: msRest.OperationParameter = { - parameterPath: ["options", "jobDeleteMethodOptions", "ifNoneMatch"], + +export const select4: OperationQueryParameter = { + parameterPath: ["options", "jobListFromJobScheduleOptions", "select"], mapper: { - serializedName: "If-None-Match", + serializedName: "$select", type: { name: "String" } } }; -export const ifNoneMatch9: msRest.OperationParameter = { - parameterPath: ["options", "jobGetOptions", "ifNoneMatch"], + +export const expand4: OperationQueryParameter = { + parameterPath: ["options", "jobListFromJobScheduleOptions", "expand"], mapper: { - serializedName: "If-None-Match", + serializedName: "$expand", type: { name: "String" } } }; -export const ifUnmodifiedSince0: msRest.OperationParameter = { - parameterPath: ["options", "poolDeleteMethodOptions", "ifUnmodifiedSince"], + +export const maxResults6: OperationQueryParameter = { + parameterPath: ["options", "jobListFromJobScheduleOptions", "maxResults"], mapper: { - serializedName: "If-Unmodified-Since", + defaultValue: 1000, + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "maxresults", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ifUnmodifiedSince1: msRest.OperationParameter = { - parameterPath: ["options", "poolExistsOptions", "ifUnmodifiedSince"], + +export const timeout29: OperationQueryParameter = { + parameterPath: ["options", "jobListFromJobScheduleOptions", "timeout"], mapper: { - serializedName: "If-Unmodified-Since", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ifUnmodifiedSince10: msRest.OperationParameter = { - parameterPath: ["options", "jobPatchOptions", "ifUnmodifiedSince"], + +export const clientRequestId29: OperationParameter = { + parameterPath: [ + "options", + "jobListFromJobScheduleOptions", + "clientRequestId" + ], mapper: { - serializedName: "If-Unmodified-Since", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ifUnmodifiedSince11: msRest.OperationParameter = { - parameterPath: ["options", "jobUpdateOptions", "ifUnmodifiedSince"], + +export const returnClientRequestId29: OperationParameter = { + parameterPath: [ + "options", + "jobListFromJobScheduleOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "If-Unmodified-Since", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ifUnmodifiedSince12: msRest.OperationParameter = { - parameterPath: ["options", "jobDisableOptions", "ifUnmodifiedSince"], + +export const ocpDate29: OperationParameter = { + parameterPath: ["options", "jobListFromJobScheduleOptions", "ocpDate"], mapper: { - serializedName: "If-Unmodified-Since", + serializedName: "ocp-date", type: { name: "DateTimeRfc1123" } } }; -export const ifUnmodifiedSince13: msRest.OperationParameter = { - parameterPath: ["options", "jobEnableOptions", "ifUnmodifiedSince"], + +export const filter6: OperationQueryParameter = { + parameterPath: [ + "options", + "jobListPreparationAndReleaseTaskStatusOptions", + "filter" + ], mapper: { - serializedName: "If-Unmodified-Since", + serializedName: "$filter", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ifUnmodifiedSince14: msRest.OperationParameter = { - parameterPath: ["options", "jobTerminateOptions", "ifUnmodifiedSince"], + +export const select5: OperationQueryParameter = { + parameterPath: [ + "options", + "jobListPreparationAndReleaseTaskStatusOptions", + "select" + ], mapper: { - serializedName: "If-Unmodified-Since", + serializedName: "$select", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ifUnmodifiedSince15: msRest.OperationParameter = { - parameterPath: ["options", "fileGetFromTaskOptions", "ifUnmodifiedSince"], + +export const maxResults7: OperationQueryParameter = { + parameterPath: [ + "options", + "jobListPreparationAndReleaseTaskStatusOptions", + "maxResults" + ], mapper: { - serializedName: "If-Unmodified-Since", + defaultValue: 1000, + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "maxresults", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ifUnmodifiedSince16: msRest.OperationParameter = { - parameterPath: ["options", "fileGetPropertiesFromTaskOptions", "ifUnmodifiedSince"], + +export const timeout30: OperationQueryParameter = { + parameterPath: [ + "options", + "jobListPreparationAndReleaseTaskStatusOptions", + "timeout" + ], mapper: { - serializedName: "If-Unmodified-Since", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ifUnmodifiedSince17: msRest.OperationParameter = { - parameterPath: ["options", "fileGetFromComputeNodeOptions", "ifUnmodifiedSince"], + +export const clientRequestId30: OperationParameter = { + parameterPath: [ + "options", + "jobListPreparationAndReleaseTaskStatusOptions", + "clientRequestId" + ], mapper: { - serializedName: "If-Unmodified-Since", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ifUnmodifiedSince18: msRest.OperationParameter = { - parameterPath: ["options", "fileGetPropertiesFromComputeNodeOptions", "ifUnmodifiedSince"], + +export const returnClientRequestId30: OperationParameter = { + parameterPath: [ + "options", + "jobListPreparationAndReleaseTaskStatusOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "If-Unmodified-Since", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ifUnmodifiedSince19: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleExistsOptions", "ifUnmodifiedSince"], - mapper: { - serializedName: "If-Unmodified-Since", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ifUnmodifiedSince2: msRest.OperationParameter = { - parameterPath: ["options", "poolGetOptions", "ifUnmodifiedSince"], - mapper: { - serializedName: "If-Unmodified-Since", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ifUnmodifiedSince20: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleDeleteMethodOptions", "ifUnmodifiedSince"], - mapper: { - serializedName: "If-Unmodified-Since", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ifUnmodifiedSince21: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleGetOptions", "ifUnmodifiedSince"], - mapper: { - serializedName: "If-Unmodified-Since", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ifUnmodifiedSince22: msRest.OperationParameter = { - parameterPath: ["options", "jobSchedulePatchOptions", "ifUnmodifiedSince"], + +export const ocpDate30: OperationParameter = { + parameterPath: [ + "options", + "jobListPreparationAndReleaseTaskStatusOptions", + "ocpDate" + ], mapper: { - serializedName: "If-Unmodified-Since", + serializedName: "ocp-date", type: { name: "DateTimeRfc1123" } } }; -export const ifUnmodifiedSince23: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleUpdateOptions", "ifUnmodifiedSince"], + +export const timeout31: OperationQueryParameter = { + parameterPath: ["options", "jobGetTaskCountsOptions", "timeout"], mapper: { - serializedName: "If-Unmodified-Since", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ifUnmodifiedSince24: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleDisableOptions", "ifUnmodifiedSince"], + +export const clientRequestId31: OperationParameter = { + parameterPath: ["options", "jobGetTaskCountsOptions", "clientRequestId"], mapper: { - serializedName: "If-Unmodified-Since", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ifUnmodifiedSince25: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleEnableOptions", "ifUnmodifiedSince"], + +export const returnClientRequestId31: OperationParameter = { + parameterPath: [ + "options", + "jobGetTaskCountsOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "If-Unmodified-Since", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ifUnmodifiedSince26: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleTerminateOptions", "ifUnmodifiedSince"], + +export const ocpDate31: OperationParameter = { + parameterPath: ["options", "jobGetTaskCountsOptions", "ocpDate"], mapper: { - serializedName: "If-Unmodified-Since", + serializedName: "ocp-date", type: { name: "DateTimeRfc1123" } } }; -export const ifUnmodifiedSince27: msRest.OperationParameter = { - parameterPath: ["options", "taskDeleteMethodOptions", "ifUnmodifiedSince"], - mapper: { - serializedName: "If-Unmodified-Since", - type: { - name: "DateTimeRfc1123" - } - } + +export const certificate: OperationParameter = { + parameterPath: "certificate", + mapper: CertificateAddParameterMapper }; -export const ifUnmodifiedSince28: msRest.OperationParameter = { - parameterPath: ["options", "taskGetOptions", "ifUnmodifiedSince"], + +export const timeout32: OperationQueryParameter = { + parameterPath: ["options", "certificateAddOptions", "timeout"], mapper: { - serializedName: "If-Unmodified-Since", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ifUnmodifiedSince29: msRest.OperationParameter = { - parameterPath: ["options", "taskUpdateOptions", "ifUnmodifiedSince"], + +export const clientRequestId32: OperationParameter = { + parameterPath: ["options", "certificateAddOptions", "clientRequestId"], mapper: { - serializedName: "If-Unmodified-Since", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ifUnmodifiedSince3: msRest.OperationParameter = { - parameterPath: ["options", "poolPatchOptions", "ifUnmodifiedSince"], + +export const returnClientRequestId32: OperationParameter = { + parameterPath: ["options", "certificateAddOptions", "returnClientRequestId"], mapper: { - serializedName: "If-Unmodified-Since", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ifUnmodifiedSince30: msRest.OperationParameter = { - parameterPath: ["options", "taskTerminateOptions", "ifUnmodifiedSince"], + +export const ocpDate32: OperationParameter = { + parameterPath: ["options", "certificateAddOptions", "ocpDate"], mapper: { - serializedName: "If-Unmodified-Since", + serializedName: "ocp-date", type: { name: "DateTimeRfc1123" } } }; -export const ifUnmodifiedSince31: msRest.OperationParameter = { - parameterPath: ["options", "taskReactivateOptions", "ifUnmodifiedSince"], + +export const filter7: OperationQueryParameter = { + parameterPath: ["options", "certificateListOptions", "filter"], mapper: { - serializedName: "If-Unmodified-Since", + serializedName: "$filter", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ifUnmodifiedSince4: msRest.OperationParameter = { - parameterPath: ["options", "poolEnableAutoScaleOptions", "ifUnmodifiedSince"], + +export const select6: OperationQueryParameter = { + parameterPath: ["options", "certificateListOptions", "select"], mapper: { - serializedName: "If-Unmodified-Since", + serializedName: "$select", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ifUnmodifiedSince5: msRest.OperationParameter = { - parameterPath: ["options", "poolResizeOptions", "ifUnmodifiedSince"], + +export const maxResults8: OperationQueryParameter = { + parameterPath: ["options", "certificateListOptions", "maxResults"], mapper: { - serializedName: "If-Unmodified-Since", + defaultValue: 1000, + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "maxresults", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ifUnmodifiedSince6: msRest.OperationParameter = { - parameterPath: ["options", "poolStopResizeOptions", "ifUnmodifiedSince"], + +export const timeout33: OperationQueryParameter = { + parameterPath: ["options", "certificateListOptions", "timeout"], mapper: { - serializedName: "If-Unmodified-Since", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ifUnmodifiedSince7: msRest.OperationParameter = { - parameterPath: ["options", "poolRemoveNodesOptions", "ifUnmodifiedSince"], + +export const clientRequestId33: OperationParameter = { + parameterPath: ["options", "certificateListOptions", "clientRequestId"], mapper: { - serializedName: "If-Unmodified-Since", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ifUnmodifiedSince8: msRest.OperationParameter = { - parameterPath: ["options", "jobDeleteMethodOptions", "ifUnmodifiedSince"], + +export const returnClientRequestId33: OperationParameter = { + parameterPath: ["options", "certificateListOptions", "returnClientRequestId"], mapper: { - serializedName: "If-Unmodified-Since", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ifUnmodifiedSince9: msRest.OperationParameter = { - parameterPath: ["options", "jobGetOptions", "ifUnmodifiedSince"], + +export const ocpDate33: OperationParameter = { + parameterPath: ["options", "certificateListOptions", "ocpDate"], mapper: { - serializedName: "If-Unmodified-Since", + serializedName: "ocp-date", type: { name: "DateTimeRfc1123" } } }; -export const jobId: msRest.OperationURLParameter = { - parameterPath: "jobId", + +export const thumbprintAlgorithm: OperationURLParameter = { + parameterPath: "thumbprintAlgorithm", mapper: { + serializedName: "thumbprintAlgorithm", required: true, - serializedName: "jobId", type: { name: "String" } } }; -export const jobScheduleId: msRest.OperationURLParameter = { - parameterPath: "jobScheduleId", + +export const thumbprint: OperationURLParameter = { + parameterPath: "thumbprint", mapper: { + serializedName: "thumbprint", required: true, - serializedName: "jobScheduleId", type: { name: "String" } } }; -export const maxResults0: msRest.OperationQueryParameter = { - parameterPath: ["options", "applicationListOptions", "maxResults"], - mapper: { - serializedName: "maxresults", - defaultValue: 1000, - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - } -}; -export const maxResults1: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolListUsageMetricsOptions", "maxResults"], - mapper: { - serializedName: "maxresults", - defaultValue: 1000, - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - } -}; -export const maxResults10: msRest.OperationQueryParameter = { - parameterPath: ["options", "fileListFromComputeNodeOptions", "maxResults"], - mapper: { - serializedName: "maxresults", - defaultValue: 1000, - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - } -}; -export const maxResults11: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobScheduleListOptions", "maxResults"], - mapper: { - serializedName: "maxresults", - defaultValue: 1000, - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - } -}; -export const maxResults12: msRest.OperationQueryParameter = { - parameterPath: ["options", "taskListOptions", "maxResults"], + +export const timeout34: OperationQueryParameter = { + parameterPath: ["options", "certificateCancelDeletionOptions", "timeout"], mapper: { - serializedName: "maxresults", - defaultValue: 1000, - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, + defaultValue: 30, + serializedName: "timeout", type: { name: "Number" } } }; -export const maxResults13: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeListOptions", "maxResults"], + +export const clientRequestId34: OperationParameter = { + parameterPath: [ + "options", + "certificateCancelDeletionOptions", + "clientRequestId" + ], mapper: { - serializedName: "maxresults", - defaultValue: 1000, - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, + serializedName: "client-request-id", type: { - name: "Number" + name: "Uuid" } } }; -export const maxResults14: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeExtensionListOptions", "maxResults"], + +export const returnClientRequestId34: OperationParameter = { + parameterPath: [ + "options", + "certificateCancelDeletionOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "maxresults", - defaultValue: 1000, - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - } -}; -export const maxResults2: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolListOptions", "maxResults"], - mapper: { - serializedName: "maxresults", - defaultValue: 1000, - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - } -}; -export const maxResults3: msRest.OperationQueryParameter = { - parameterPath: ["options", "accountListSupportedImagesOptions", "maxResults"], - mapper: { - serializedName: "maxresults", - defaultValue: 1000, - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - } -}; -export const maxResults4: msRest.OperationQueryParameter = { - parameterPath: ["options", "accountListPoolNodeCountsOptions", "maxResults"], - mapper: { - serializedName: "maxresults", - defaultValue: 10, - constraints: { - InclusiveMaximum: 10, - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - } -}; -export const maxResults5: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobListOptions", "maxResults"], - mapper: { - serializedName: "maxresults", - defaultValue: 1000, - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - } -}; -export const maxResults6: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobListFromJobScheduleOptions", "maxResults"], - mapper: { - serializedName: "maxresults", - defaultValue: 1000, - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - } -}; -export const maxResults7: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobListPreparationAndReleaseTaskStatusOptions", "maxResults"], - mapper: { - serializedName: "maxresults", - defaultValue: 1000, - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - } -}; -export const maxResults8: msRest.OperationQueryParameter = { - parameterPath: ["options", "certificateListOptions", "maxResults"], - mapper: { - serializedName: "maxresults", - defaultValue: 1000, - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - } -}; -export const maxResults9: msRest.OperationQueryParameter = { - parameterPath: ["options", "fileListFromTaskOptions", "maxResults"], - mapper: { - serializedName: "maxresults", - defaultValue: 1000, - constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - } -}; -export const nextPageLink: msRest.OperationURLParameter = { - parameterPath: "nextPageLink", - mapper: { - required: true, - serializedName: "nextLink", - type: { - name: "String" - } - }, - skipEncoding: true -}; -export const nodeId: msRest.OperationURLParameter = { - parameterPath: "nodeId", - mapper: { - required: true, - serializedName: "nodeId", - type: { - name: "String" - } - } -}; -export const ocpDate0: msRest.OperationParameter = { - parameterPath: ["options", "applicationListOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ocpDate1: msRest.OperationParameter = { - parameterPath: ["options", "applicationGetOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ocpDate10: msRest.OperationParameter = { - parameterPath: ["options", "poolPatchOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ocpDate11: msRest.OperationParameter = { - parameterPath: ["options", "poolDisableAutoScaleOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ocpDate12: msRest.OperationParameter = { - parameterPath: ["options", "poolEnableAutoScaleOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ocpDate13: msRest.OperationParameter = { - parameterPath: ["options", "poolEvaluateAutoScaleOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ocpDate14: msRest.OperationParameter = { - parameterPath: ["options", "poolResizeOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ocpDate15: msRest.OperationParameter = { - parameterPath: ["options", "poolStopResizeOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ocpDate16: msRest.OperationParameter = { - parameterPath: ["options", "poolUpdatePropertiesOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ocpDate17: msRest.OperationParameter = { - parameterPath: ["options", "poolRemoveNodesOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ocpDate18: msRest.OperationParameter = { - parameterPath: ["options", "poolListUsageMetricsNextOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ocpDate19: msRest.OperationParameter = { - parameterPath: ["options", "poolListNextOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ocpDate2: msRest.OperationParameter = { - parameterPath: ["options", "applicationListNextOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ocpDate20: msRest.OperationParameter = { - parameterPath: ["options", "accountListSupportedImagesOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ocpDate21: msRest.OperationParameter = { - parameterPath: ["options", "accountListPoolNodeCountsOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ocpDate22: msRest.OperationParameter = { - parameterPath: ["options", "accountListSupportedImagesNextOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ocpDate23: msRest.OperationParameter = { - parameterPath: ["options", "accountListPoolNodeCountsNextOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ocpDate24: msRest.OperationParameter = { - parameterPath: ["options", "jobGetAllLifetimeStatisticsOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ocpDate25: msRest.OperationParameter = { - parameterPath: ["options", "jobDeleteMethodOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", - type: { - name: "DateTimeRfc1123" - } - } -}; -export const ocpDate26: msRest.OperationParameter = { - parameterPath: ["options", "jobGetOptions", "ocpDate"], - mapper: { - serializedName: "ocp-date", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ocpDate27: msRest.OperationParameter = { - parameterPath: ["options", "jobPatchOptions", "ocpDate"], + +export const ocpDate34: OperationParameter = { + parameterPath: ["options", "certificateCancelDeletionOptions", "ocpDate"], mapper: { serializedName: "ocp-date", type: { @@ -2639,35 +2754,45 @@ export const ocpDate27: msRest.OperationParameter = { } } }; -export const ocpDate28: msRest.OperationParameter = { - parameterPath: ["options", "jobUpdateOptions", "ocpDate"], + +export const timeout35: OperationQueryParameter = { + parameterPath: ["options", "certificateDeleteOptions", "timeout"], mapper: { - serializedName: "ocp-date", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ocpDate29: msRest.OperationParameter = { - parameterPath: ["options", "jobDisableOptions", "ocpDate"], + +export const clientRequestId35: OperationParameter = { + parameterPath: ["options", "certificateDeleteOptions", "clientRequestId"], mapper: { - serializedName: "ocp-date", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ocpDate3: msRest.OperationParameter = { - parameterPath: ["options", "poolListUsageMetricsOptions", "ocpDate"], + +export const returnClientRequestId35: OperationParameter = { + parameterPath: [ + "options", + "certificateDeleteOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "ocp-date", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ocpDate30: msRest.OperationParameter = { - parameterPath: ["options", "jobEnableOptions", "ocpDate"], + +export const ocpDate35: OperationParameter = { + parameterPath: ["options", "certificateDeleteOptions", "ocpDate"], mapper: { serializedName: "ocp-date", type: { @@ -2675,44 +2800,51 @@ export const ocpDate30: msRest.OperationParameter = { } } }; -export const ocpDate31: msRest.OperationParameter = { - parameterPath: ["options", "jobTerminateOptions", "ocpDate"], + +export const select7: OperationQueryParameter = { + parameterPath: ["options", "certificateGetOptions", "select"], mapper: { - serializedName: "ocp-date", + serializedName: "$select", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ocpDate32: msRest.OperationParameter = { - parameterPath: ["options", "jobAddOptions", "ocpDate"], + +export const timeout36: OperationQueryParameter = { + parameterPath: ["options", "certificateGetOptions", "timeout"], mapper: { - serializedName: "ocp-date", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ocpDate33: msRest.OperationParameter = { - parameterPath: ["options", "jobListOptions", "ocpDate"], + +export const clientRequestId36: OperationParameter = { + parameterPath: ["options", "certificateGetOptions", "clientRequestId"], mapper: { - serializedName: "ocp-date", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ocpDate34: msRest.OperationParameter = { - parameterPath: ["options", "jobListFromJobScheduleOptions", "ocpDate"], + +export const returnClientRequestId36: OperationParameter = { + parameterPath: ["options", "certificateGetOptions", "returnClientRequestId"], mapper: { - serializedName: "ocp-date", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ocpDate35: msRest.OperationParameter = { - parameterPath: ["options", "jobListPreparationAndReleaseTaskStatusOptions", "ocpDate"], + +export const ocpDate36: OperationParameter = { + parameterPath: ["options", "certificateGetOptions", "ocpDate"], mapper: { serializedName: "ocp-date", type: { @@ -2720,62 +2852,77 @@ export const ocpDate35: msRest.OperationParameter = { } } }; -export const ocpDate36: msRest.OperationParameter = { - parameterPath: ["options", "jobGetTaskCountsOptions", "ocpDate"], + +export const taskId: OperationURLParameter = { + parameterPath: "taskId", mapper: { - serializedName: "ocp-date", + serializedName: "taskId", + required: true, type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ocpDate37: msRest.OperationParameter = { - parameterPath: ["options", "jobListNextOptions", "ocpDate"], + +export const filePath: OperationURLParameter = { + parameterPath: "filePath", mapper: { - serializedName: "ocp-date", + serializedName: "filePath", + required: true, type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ocpDate38: msRest.OperationParameter = { - parameterPath: ["options", "jobListFromJobScheduleNextOptions", "ocpDate"], + +export const recursive: OperationQueryParameter = { + parameterPath: ["options", "recursive"], mapper: { - serializedName: "ocp-date", + serializedName: "recursive", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ocpDate39: msRest.OperationParameter = { - parameterPath: ["options", "jobListPreparationAndReleaseTaskStatusNextOptions", "ocpDate"], + +export const timeout37: OperationQueryParameter = { + parameterPath: ["options", "fileDeleteFromTaskOptions", "timeout"], mapper: { - serializedName: "ocp-date", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ocpDate4: msRest.OperationParameter = { - parameterPath: ["options", "poolGetAllLifetimeStatisticsOptions", "ocpDate"], + +export const clientRequestId37: OperationParameter = { + parameterPath: ["options", "fileDeleteFromTaskOptions", "clientRequestId"], mapper: { - serializedName: "ocp-date", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ocpDate40: msRest.OperationParameter = { - parameterPath: ["options", "certificateAddOptions", "ocpDate"], + +export const returnClientRequestId37: OperationParameter = { + parameterPath: [ + "options", + "fileDeleteFromTaskOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "ocp-date", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ocpDate41: msRest.OperationParameter = { - parameterPath: ["options", "certificateListOptions", "ocpDate"], + +export const ocpDate37: OperationParameter = { + parameterPath: ["options", "fileDeleteFromTaskOptions", "ocpDate"], mapper: { serializedName: "ocp-date", type: { @@ -2783,44 +2930,53 @@ export const ocpDate41: msRest.OperationParameter = { } } }; -export const ocpDate42: msRest.OperationParameter = { - parameterPath: ["options", "certificateCancelDeletionOptions", "ocpDate"], + +export const accept1: OperationParameter = { + parameterPath: "accept", mapper: { - serializedName: "ocp-date", + defaultValue: "application/json, application/octet-stream", + isConstant: true, + serializedName: "Accept", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ocpDate43: msRest.OperationParameter = { - parameterPath: ["options", "certificateDeleteMethodOptions", "ocpDate"], + +export const timeout38: OperationQueryParameter = { + parameterPath: ["options", "fileGetFromTaskOptions", "timeout"], mapper: { - serializedName: "ocp-date", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ocpDate44: msRest.OperationParameter = { - parameterPath: ["options", "certificateGetOptions", "ocpDate"], + +export const clientRequestId38: OperationParameter = { + parameterPath: ["options", "fileGetFromTaskOptions", "clientRequestId"], mapper: { - serializedName: "ocp-date", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ocpDate45: msRest.OperationParameter = { - parameterPath: ["options", "certificateListNextOptions", "ocpDate"], + +export const returnClientRequestId38: OperationParameter = { + parameterPath: ["options", "fileGetFromTaskOptions", "returnClientRequestId"], mapper: { - serializedName: "ocp-date", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ocpDate46: msRest.OperationParameter = { - parameterPath: ["options", "fileDeleteFromTaskOptions", "ocpDate"], + +export const ocpDate38: OperationParameter = { + parameterPath: ["options", "fileGetFromTaskOptions", "ocpDate"], mapper: { serializedName: "ocp-date", type: { @@ -2828,62 +2984,79 @@ export const ocpDate46: msRest.OperationParameter = { } } }; -export const ocpDate47: msRest.OperationParameter = { - parameterPath: ["options", "fileGetFromTaskOptions", "ocpDate"], + +export const ocpRange: OperationParameter = { + parameterPath: ["options", "fileGetFromTaskOptions", "ocpRange"], mapper: { - serializedName: "ocp-date", + serializedName: "ocp-range", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ocpDate48: msRest.OperationParameter = { - parameterPath: ["options", "fileGetPropertiesFromTaskOptions", "ocpDate"], + +export const ifModifiedSince15: OperationParameter = { + parameterPath: ["options", "fileGetFromTaskOptions", "ifModifiedSince"], mapper: { - serializedName: "ocp-date", + serializedName: "If-Modified-Since", type: { name: "DateTimeRfc1123" } } }; -export const ocpDate49: msRest.OperationParameter = { - parameterPath: ["options", "fileDeleteFromComputeNodeOptions", "ocpDate"], + +export const ifUnmodifiedSince15: OperationParameter = { + parameterPath: ["options", "fileGetFromTaskOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "ocp-date", + serializedName: "If-Unmodified-Since", type: { name: "DateTimeRfc1123" } } }; -export const ocpDate5: msRest.OperationParameter = { - parameterPath: ["options", "poolAddOptions", "ocpDate"], + +export const timeout39: OperationQueryParameter = { + parameterPath: ["options", "fileGetPropertiesFromTaskOptions", "timeout"], mapper: { - serializedName: "ocp-date", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ocpDate50: msRest.OperationParameter = { - parameterPath: ["options", "fileGetFromComputeNodeOptions", "ocpDate"], + +export const clientRequestId39: OperationParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromTaskOptions", + "clientRequestId" + ], mapper: { - serializedName: "ocp-date", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ocpDate51: msRest.OperationParameter = { - parameterPath: ["options", "fileGetPropertiesFromComputeNodeOptions", "ocpDate"], + +export const returnClientRequestId39: OperationParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromTaskOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "ocp-date", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ocpDate52: msRest.OperationParameter = { - parameterPath: ["options", "fileListFromTaskOptions", "ocpDate"], + +export const ocpDate39: OperationParameter = { + parameterPath: ["options", "fileGetPropertiesFromTaskOptions", "ocpDate"], mapper: { serializedName: "ocp-date", type: { @@ -2891,62 +3064,88 @@ export const ocpDate52: msRest.OperationParameter = { } } }; -export const ocpDate53: msRest.OperationParameter = { - parameterPath: ["options", "fileListFromComputeNodeOptions", "ocpDate"], + +export const ifModifiedSince16: OperationParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromTaskOptions", + "ifModifiedSince" + ], mapper: { - serializedName: "ocp-date", + serializedName: "If-Modified-Since", type: { name: "DateTimeRfc1123" } } }; -export const ocpDate54: msRest.OperationParameter = { - parameterPath: ["options", "fileListFromTaskNextOptions", "ocpDate"], + +export const ifUnmodifiedSince16: OperationParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromTaskOptions", + "ifUnmodifiedSince" + ], mapper: { - serializedName: "ocp-date", + serializedName: "If-Unmodified-Since", type: { name: "DateTimeRfc1123" } } }; -export const ocpDate55: msRest.OperationParameter = { - parameterPath: ["options", "fileListFromComputeNodeNextOptions", "ocpDate"], + +export const nodeId: OperationURLParameter = { + parameterPath: "nodeId", mapper: { - serializedName: "ocp-date", + serializedName: "nodeId", + required: true, type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ocpDate56: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleExistsOptions", "ocpDate"], + +export const timeout40: OperationQueryParameter = { + parameterPath: ["options", "fileDeleteFromComputeNodeOptions", "timeout"], mapper: { - serializedName: "ocp-date", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ocpDate57: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleDeleteMethodOptions", "ocpDate"], + +export const clientRequestId40: OperationParameter = { + parameterPath: [ + "options", + "fileDeleteFromComputeNodeOptions", + "clientRequestId" + ], mapper: { - serializedName: "ocp-date", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ocpDate58: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleGetOptions", "ocpDate"], + +export const returnClientRequestId40: OperationParameter = { + parameterPath: [ + "options", + "fileDeleteFromComputeNodeOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "ocp-date", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ocpDate59: msRest.OperationParameter = { - parameterPath: ["options", "jobSchedulePatchOptions", "ocpDate"], + +export const ocpDate40: OperationParameter = { + parameterPath: ["options", "fileDeleteFromComputeNodeOptions", "ocpDate"], mapper: { serializedName: "ocp-date", type: { @@ -2954,35 +3153,49 @@ export const ocpDate59: msRest.OperationParameter = { } } }; -export const ocpDate6: msRest.OperationParameter = { - parameterPath: ["options", "poolListOptions", "ocpDate"], + +export const timeout41: OperationQueryParameter = { + parameterPath: ["options", "fileGetFromComputeNodeOptions", "timeout"], mapper: { - serializedName: "ocp-date", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ocpDate60: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleUpdateOptions", "ocpDate"], + +export const clientRequestId41: OperationParameter = { + parameterPath: [ + "options", + "fileGetFromComputeNodeOptions", + "clientRequestId" + ], mapper: { - serializedName: "ocp-date", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ocpDate61: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleDisableOptions", "ocpDate"], + +export const returnClientRequestId41: OperationParameter = { + parameterPath: [ + "options", + "fileGetFromComputeNodeOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "ocp-date", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ocpDate62: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleEnableOptions", "ocpDate"], + +export const ocpDate41: OperationParameter = { + parameterPath: ["options", "fileGetFromComputeNodeOptions", "ocpDate"], mapper: { serializedName: "ocp-date", type: { @@ -2990,62 +3203,95 @@ export const ocpDate62: msRest.OperationParameter = { } } }; -export const ocpDate63: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleTerminateOptions", "ocpDate"], + +export const ocpRange1: OperationParameter = { + parameterPath: ["options", "fileGetFromComputeNodeOptions", "ocpRange"], mapper: { - serializedName: "ocp-date", + serializedName: "ocp-range", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ocpDate64: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleAddOptions", "ocpDate"], + +export const ifModifiedSince17: OperationParameter = { + parameterPath: [ + "options", + "fileGetFromComputeNodeOptions", + "ifModifiedSince" + ], mapper: { - serializedName: "ocp-date", + serializedName: "If-Modified-Since", type: { name: "DateTimeRfc1123" } } }; -export const ocpDate65: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleListOptions", "ocpDate"], + +export const ifUnmodifiedSince17: OperationParameter = { + parameterPath: [ + "options", + "fileGetFromComputeNodeOptions", + "ifUnmodifiedSince" + ], mapper: { - serializedName: "ocp-date", + serializedName: "If-Unmodified-Since", type: { name: "DateTimeRfc1123" } } }; -export const ocpDate66: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleListNextOptions", "ocpDate"], + +export const timeout42: OperationQueryParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromComputeNodeOptions", + "timeout" + ], mapper: { - serializedName: "ocp-date", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ocpDate67: msRest.OperationParameter = { - parameterPath: ["options", "taskAddOptions", "ocpDate"], + +export const clientRequestId42: OperationParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromComputeNodeOptions", + "clientRequestId" + ], mapper: { - serializedName: "ocp-date", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ocpDate68: msRest.OperationParameter = { - parameterPath: ["options", "taskListOptions", "ocpDate"], + +export const returnClientRequestId42: OperationParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromComputeNodeOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "ocp-date", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ocpDate69: msRest.OperationParameter = { - parameterPath: ["options", "taskAddCollectionOptions", "ocpDate"], + +export const ocpDate42: OperationParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromComputeNodeOptions", + "ocpDate" + ], mapper: { serializedName: "ocp-date", type: { @@ -3053,71 +3299,98 @@ export const ocpDate69: msRest.OperationParameter = { } } }; -export const ocpDate7: msRest.OperationParameter = { - parameterPath: ["options", "poolDeleteMethodOptions", "ocpDate"], + +export const ifModifiedSince18: OperationParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromComputeNodeOptions", + "ifModifiedSince" + ], mapper: { - serializedName: "ocp-date", + serializedName: "If-Modified-Since", type: { name: "DateTimeRfc1123" } } }; -export const ocpDate70: msRest.OperationParameter = { - parameterPath: ["options", "taskDeleteMethodOptions", "ocpDate"], + +export const ifUnmodifiedSince18: OperationParameter = { + parameterPath: [ + "options", + "fileGetPropertiesFromComputeNodeOptions", + "ifUnmodifiedSince" + ], mapper: { - serializedName: "ocp-date", + serializedName: "If-Unmodified-Since", type: { name: "DateTimeRfc1123" } } }; -export const ocpDate71: msRest.OperationParameter = { - parameterPath: ["options", "taskGetOptions", "ocpDate"], + +export const filter8: OperationQueryParameter = { + parameterPath: ["options", "fileListFromTaskOptions", "filter"], mapper: { - serializedName: "ocp-date", + serializedName: "$filter", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ocpDate72: msRest.OperationParameter = { - parameterPath: ["options", "taskUpdateOptions", "ocpDate"], + +export const maxResults9: OperationQueryParameter = { + parameterPath: ["options", "fileListFromTaskOptions", "maxResults"], mapper: { - serializedName: "ocp-date", + defaultValue: 1000, + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "maxresults", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ocpDate73: msRest.OperationParameter = { - parameterPath: ["options", "taskListSubtasksOptions", "ocpDate"], + +export const timeout43: OperationQueryParameter = { + parameterPath: ["options", "fileListFromTaskOptions", "timeout"], mapper: { - serializedName: "ocp-date", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ocpDate74: msRest.OperationParameter = { - parameterPath: ["options", "taskTerminateOptions", "ocpDate"], + +export const clientRequestId43: OperationParameter = { + parameterPath: ["options", "fileListFromTaskOptions", "clientRequestId"], mapper: { - serializedName: "ocp-date", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ocpDate75: msRest.OperationParameter = { - parameterPath: ["options", "taskReactivateOptions", "ocpDate"], + +export const returnClientRequestId43: OperationParameter = { + parameterPath: [ + "options", + "fileListFromTaskOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "ocp-date", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ocpDate76: msRest.OperationParameter = { - parameterPath: ["options", "taskListNextOptions", "ocpDate"], + +export const ocpDate43: OperationParameter = { + parameterPath: ["options", "fileListFromTaskOptions", "ocpDate"], mapper: { serializedName: "ocp-date", type: { @@ -3125,53 +3398,74 @@ export const ocpDate76: msRest.OperationParameter = { } } }; -export const ocpDate77: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeAddUserOptions", "ocpDate"], + +export const filter9: OperationQueryParameter = { + parameterPath: ["options", "fileListFromComputeNodeOptions", "filter"], mapper: { - serializedName: "ocp-date", + serializedName: "$filter", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ocpDate78: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeDeleteUserOptions", "ocpDate"], + +export const maxResults10: OperationQueryParameter = { + parameterPath: ["options", "fileListFromComputeNodeOptions", "maxResults"], mapper: { - serializedName: "ocp-date", + defaultValue: 1000, + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "maxresults", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ocpDate79: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeUpdateUserOptions", "ocpDate"], + +export const timeout44: OperationQueryParameter = { + parameterPath: ["options", "fileListFromComputeNodeOptions", "timeout"], mapper: { - serializedName: "ocp-date", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ocpDate8: msRest.OperationParameter = { - parameterPath: ["options", "poolExistsOptions", "ocpDate"], + +export const clientRequestId44: OperationParameter = { + parameterPath: [ + "options", + "fileListFromComputeNodeOptions", + "clientRequestId" + ], mapper: { - serializedName: "ocp-date", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ocpDate80: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeGetOptions", "ocpDate"], + +export const returnClientRequestId44: OperationParameter = { + parameterPath: [ + "options", + "fileListFromComputeNodeOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "ocp-date", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ocpDate81: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeRebootOptions", "ocpDate"], + +export const ocpDate44: OperationParameter = { + parameterPath: ["options", "fileListFromComputeNodeOptions", "ocpDate"], mapper: { serializedName: "ocp-date", type: { @@ -3179,35 +3473,45 @@ export const ocpDate81: msRest.OperationParameter = { } } }; -export const ocpDate82: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeReimageOptions", "ocpDate"], + +export const timeout45: OperationQueryParameter = { + parameterPath: ["options", "jobScheduleExistsOptions", "timeout"], mapper: { - serializedName: "ocp-date", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ocpDate83: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeDisableSchedulingOptions", "ocpDate"], + +export const clientRequestId45: OperationParameter = { + parameterPath: ["options", "jobScheduleExistsOptions", "clientRequestId"], mapper: { - serializedName: "ocp-date", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ocpDate84: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeEnableSchedulingOptions", "ocpDate"], + +export const returnClientRequestId45: OperationParameter = { + parameterPath: [ + "options", + "jobScheduleExistsOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "ocp-date", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ocpDate85: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeGetRemoteLoginSettingsOptions", "ocpDate"], + +export const ocpDate45: OperationParameter = { + parameterPath: ["options", "jobScheduleExistsOptions", "ocpDate"], mapper: { serializedName: "ocp-date", type: { @@ -3215,71 +3519,85 @@ export const ocpDate85: msRest.OperationParameter = { } } }; -export const ocpDate86: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeGetRemoteDesktopOptions", "ocpDate"], + +export const ifMatch15: OperationParameter = { + parameterPath: ["options", "jobScheduleExistsOptions", "ifMatch"], mapper: { - serializedName: "ocp-date", + serializedName: "If-Match", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ocpDate87: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeUploadBatchServiceLogsOptions", "ocpDate"], + +export const ifNoneMatch15: OperationParameter = { + parameterPath: ["options", "jobScheduleExistsOptions", "ifNoneMatch"], mapper: { - serializedName: "ocp-date", + serializedName: "If-None-Match", type: { - name: "DateTimeRfc1123" + name: "String" } } }; -export const ocpDate88: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeListOptions", "ocpDate"], + +export const ifModifiedSince19: OperationParameter = { + parameterPath: ["options", "jobScheduleExistsOptions", "ifModifiedSince"], mapper: { - serializedName: "ocp-date", + serializedName: "If-Modified-Since", type: { name: "DateTimeRfc1123" } } }; -export const ocpDate89: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeListNextOptions", "ocpDate"], + +export const ifUnmodifiedSince19: OperationParameter = { + parameterPath: ["options", "jobScheduleExistsOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "ocp-date", + serializedName: "If-Unmodified-Since", type: { name: "DateTimeRfc1123" } } }; -export const ocpDate9: msRest.OperationParameter = { - parameterPath: ["options", "poolGetOptions", "ocpDate"], + +export const timeout46: OperationQueryParameter = { + parameterPath: ["options", "jobScheduleDeleteOptions", "timeout"], mapper: { - serializedName: "ocp-date", + defaultValue: 30, + serializedName: "timeout", type: { - name: "DateTimeRfc1123" + name: "Number" } } }; -export const ocpDate90: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeExtensionGetOptions", "ocpDate"], + +export const clientRequestId46: OperationParameter = { + parameterPath: ["options", "jobScheduleDeleteOptions", "clientRequestId"], mapper: { - serializedName: "ocp-date", + serializedName: "client-request-id", type: { - name: "DateTimeRfc1123" + name: "Uuid" } } }; -export const ocpDate91: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeExtensionListOptions", "ocpDate"], + +export const returnClientRequestId46: OperationParameter = { + parameterPath: [ + "options", + "jobScheduleDeleteOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "ocp-date", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTimeRfc1123" + name: "Boolean" } } }; -export const ocpDate92: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeExtensionListNextOptions", "ocpDate"], + +export const ocpDate46: OperationParameter = { + parameterPath: ["options", "jobScheduleDeleteOptions", "ocpDate"], mapper: { serializedName: "ocp-date", type: { @@ -3287,1109 +3605,1185 @@ export const ocpDate92: msRest.OperationParameter = { } } }; -export const ocpRange0: msRest.OperationParameter = { - parameterPath: ["options", "fileGetFromTaskOptions", "ocpRange"], + +export const ifMatch16: OperationParameter = { + parameterPath: ["options", "jobScheduleDeleteOptions", "ifMatch"], mapper: { - serializedName: "ocp-range", + serializedName: "If-Match", type: { name: "String" } } }; -export const ocpRange1: msRest.OperationParameter = { - parameterPath: ["options", "fileGetFromComputeNodeOptions", "ocpRange"], + +export const ifNoneMatch16: OperationParameter = { + parameterPath: ["options", "jobScheduleDeleteOptions", "ifNoneMatch"], mapper: { - serializedName: "ocp-range", + serializedName: "If-None-Match", type: { name: "String" } } }; -export const poolId: msRest.OperationURLParameter = { - parameterPath: "poolId", + +export const ifModifiedSince20: OperationParameter = { + parameterPath: ["options", "jobScheduleDeleteOptions", "ifModifiedSince"], mapper: { - required: true, - serializedName: "poolId", + serializedName: "If-Modified-Since", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const recursive: msRest.OperationQueryParameter = { - parameterPath: ["options", "recursive"], + +export const ifUnmodifiedSince20: OperationParameter = { + parameterPath: ["options", "jobScheduleDeleteOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "recursive", + serializedName: "If-Unmodified-Since", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId0: msRest.OperationParameter = { - parameterPath: ["options", "applicationListOptions", "returnClientRequestId"], + +export const select8: OperationQueryParameter = { + parameterPath: ["options", "jobScheduleGetOptions", "select"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "$select", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId1: msRest.OperationParameter = { - parameterPath: ["options", "applicationGetOptions", "returnClientRequestId"], + +export const expand5: OperationQueryParameter = { + parameterPath: ["options", "jobScheduleGetOptions", "expand"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "$expand", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId10: msRest.OperationParameter = { - parameterPath: ["options", "poolPatchOptions", "returnClientRequestId"], + +export const timeout47: OperationQueryParameter = { + parameterPath: ["options", "jobScheduleGetOptions", "timeout"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + defaultValue: 30, + serializedName: "timeout", type: { - name: "Boolean" + name: "Number" } } }; -export const returnClientRequestId11: msRest.OperationParameter = { - parameterPath: ["options", "poolDisableAutoScaleOptions", "returnClientRequestId"], + +export const clientRequestId47: OperationParameter = { + parameterPath: ["options", "jobScheduleGetOptions", "clientRequestId"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "client-request-id", type: { - name: "Boolean" + name: "Uuid" } } }; -export const returnClientRequestId12: msRest.OperationParameter = { - parameterPath: ["options", "poolEnableAutoScaleOptions", "returnClientRequestId"], + +export const returnClientRequestId47: OperationParameter = { + parameterPath: ["options", "jobScheduleGetOptions", "returnClientRequestId"], mapper: { - serializedName: "return-client-request-id", defaultValue: false, - type: { - name: "Boolean" - } - } -}; -export const returnClientRequestId13: msRest.OperationParameter = { - parameterPath: ["options", "poolEvaluateAutoScaleOptions", "returnClientRequestId"], - mapper: { serializedName: "return-client-request-id", - defaultValue: false, type: { name: "Boolean" } } }; -export const returnClientRequestId14: msRest.OperationParameter = { - parameterPath: ["options", "poolResizeOptions", "returnClientRequestId"], + +export const ocpDate47: OperationParameter = { + parameterPath: ["options", "jobScheduleGetOptions", "ocpDate"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "ocp-date", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId15: msRest.OperationParameter = { - parameterPath: ["options", "poolStopResizeOptions", "returnClientRequestId"], + +export const ifMatch17: OperationParameter = { + parameterPath: ["options", "jobScheduleGetOptions", "ifMatch"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Match", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId16: msRest.OperationParameter = { - parameterPath: ["options", "poolUpdatePropertiesOptions", "returnClientRequestId"], + +export const ifNoneMatch17: OperationParameter = { + parameterPath: ["options", "jobScheduleGetOptions", "ifNoneMatch"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-None-Match", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId17: msRest.OperationParameter = { - parameterPath: ["options", "poolRemoveNodesOptions", "returnClientRequestId"], + +export const ifModifiedSince21: OperationParameter = { + parameterPath: ["options", "jobScheduleGetOptions", "ifModifiedSince"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Modified-Since", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId18: msRest.OperationParameter = { - parameterPath: ["options", "poolListUsageMetricsNextOptions", "returnClientRequestId"], + +export const ifUnmodifiedSince21: OperationParameter = { + parameterPath: ["options", "jobScheduleGetOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Unmodified-Since", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId19: msRest.OperationParameter = { - parameterPath: ["options", "poolListNextOptions", "returnClientRequestId"], + +export const jobSchedulePatchParameter: OperationParameter = { + parameterPath: "jobSchedulePatchParameter", + mapper: JobSchedulePatchParameterMapper +}; + +export const timeout48: OperationQueryParameter = { + parameterPath: ["options", "jobSchedulePatchOptions", "timeout"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + defaultValue: 30, + serializedName: "timeout", type: { - name: "Boolean" + name: "Number" } } }; -export const returnClientRequestId2: msRest.OperationParameter = { - parameterPath: ["options", "applicationListNextOptions", "returnClientRequestId"], + +export const clientRequestId48: OperationParameter = { + parameterPath: ["options", "jobSchedulePatchOptions", "clientRequestId"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "client-request-id", type: { - name: "Boolean" + name: "Uuid" } } }; -export const returnClientRequestId20: msRest.OperationParameter = { - parameterPath: ["options", "accountListSupportedImagesOptions", "returnClientRequestId"], + +export const returnClientRequestId48: OperationParameter = { + parameterPath: [ + "options", + "jobSchedulePatchOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "return-client-request-id", defaultValue: false, + serializedName: "return-client-request-id", type: { name: "Boolean" } } }; -export const returnClientRequestId21: msRest.OperationParameter = { - parameterPath: ["options", "accountListPoolNodeCountsOptions", "returnClientRequestId"], + +export const ocpDate48: OperationParameter = { + parameterPath: ["options", "jobSchedulePatchOptions", "ocpDate"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "ocp-date", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId22: msRest.OperationParameter = { - parameterPath: ["options", "accountListSupportedImagesNextOptions", "returnClientRequestId"], + +export const ifMatch18: OperationParameter = { + parameterPath: ["options", "jobSchedulePatchOptions", "ifMatch"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Match", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId23: msRest.OperationParameter = { - parameterPath: ["options", "accountListPoolNodeCountsNextOptions", "returnClientRequestId"], + +export const ifNoneMatch18: OperationParameter = { + parameterPath: ["options", "jobSchedulePatchOptions", "ifNoneMatch"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-None-Match", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId24: msRest.OperationParameter = { - parameterPath: ["options", "jobGetAllLifetimeStatisticsOptions", "returnClientRequestId"], + +export const ifModifiedSince22: OperationParameter = { + parameterPath: ["options", "jobSchedulePatchOptions", "ifModifiedSince"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Modified-Since", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId25: msRest.OperationParameter = { - parameterPath: ["options", "jobDeleteMethodOptions", "returnClientRequestId"], + +export const ifUnmodifiedSince22: OperationParameter = { + parameterPath: ["options", "jobSchedulePatchOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Unmodified-Since", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId26: msRest.OperationParameter = { - parameterPath: ["options", "jobGetOptions", "returnClientRequestId"], + +export const jobScheduleUpdateParameter: OperationParameter = { + parameterPath: "jobScheduleUpdateParameter", + mapper: JobScheduleUpdateParameterMapper +}; + +export const timeout49: OperationQueryParameter = { + parameterPath: ["options", "jobScheduleUpdateOptions", "timeout"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + defaultValue: 30, + serializedName: "timeout", type: { - name: "Boolean" + name: "Number" } } }; -export const returnClientRequestId27: msRest.OperationParameter = { - parameterPath: ["options", "jobPatchOptions", "returnClientRequestId"], + +export const clientRequestId49: OperationParameter = { + parameterPath: ["options", "jobScheduleUpdateOptions", "clientRequestId"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "client-request-id", type: { - name: "Boolean" + name: "Uuid" } } }; -export const returnClientRequestId28: msRest.OperationParameter = { - parameterPath: ["options", "jobUpdateOptions", "returnClientRequestId"], + +export const returnClientRequestId49: OperationParameter = { + parameterPath: [ + "options", + "jobScheduleUpdateOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "return-client-request-id", defaultValue: false, + serializedName: "return-client-request-id", type: { name: "Boolean" } } }; -export const returnClientRequestId29: msRest.OperationParameter = { - parameterPath: ["options", "jobDisableOptions", "returnClientRequestId"], + +export const ocpDate49: OperationParameter = { + parameterPath: ["options", "jobScheduleUpdateOptions", "ocpDate"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "ocp-date", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId3: msRest.OperationParameter = { - parameterPath: ["options", "poolListUsageMetricsOptions", "returnClientRequestId"], + +export const ifMatch19: OperationParameter = { + parameterPath: ["options", "jobScheduleUpdateOptions", "ifMatch"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Match", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId30: msRest.OperationParameter = { - parameterPath: ["options", "jobEnableOptions", "returnClientRequestId"], + +export const ifNoneMatch19: OperationParameter = { + parameterPath: ["options", "jobScheduleUpdateOptions", "ifNoneMatch"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-None-Match", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId31: msRest.OperationParameter = { - parameterPath: ["options", "jobTerminateOptions", "returnClientRequestId"], + +export const ifModifiedSince23: OperationParameter = { + parameterPath: ["options", "jobScheduleUpdateOptions", "ifModifiedSince"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Modified-Since", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId32: msRest.OperationParameter = { - parameterPath: ["options", "jobAddOptions", "returnClientRequestId"], + +export const ifUnmodifiedSince23: OperationParameter = { + parameterPath: ["options", "jobScheduleUpdateOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Unmodified-Since", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId33: msRest.OperationParameter = { - parameterPath: ["options", "jobListOptions", "returnClientRequestId"], + +export const timeout50: OperationQueryParameter = { + parameterPath: ["options", "jobScheduleDisableOptions", "timeout"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + defaultValue: 30, + serializedName: "timeout", type: { - name: "Boolean" + name: "Number" } } }; -export const returnClientRequestId34: msRest.OperationParameter = { - parameterPath: ["options", "jobListFromJobScheduleOptions", "returnClientRequestId"], + +export const clientRequestId50: OperationParameter = { + parameterPath: ["options", "jobScheduleDisableOptions", "clientRequestId"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "client-request-id", type: { - name: "Boolean" + name: "Uuid" } } }; -export const returnClientRequestId35: msRest.OperationParameter = { + +export const returnClientRequestId50: OperationParameter = { parameterPath: [ "options", - "jobListPreparationAndReleaseTaskStatusOptions", + "jobScheduleDisableOptions", "returnClientRequestId" ], mapper: { - serializedName: "return-client-request-id", defaultValue: false, - type: { - name: "Boolean" - } - } -}; -export const returnClientRequestId36: msRest.OperationParameter = { - parameterPath: ["options", "jobGetTaskCountsOptions", "returnClientRequestId"], - mapper: { serializedName: "return-client-request-id", - defaultValue: false, type: { name: "Boolean" } } }; -export const returnClientRequestId37: msRest.OperationParameter = { - parameterPath: ["options", "jobListNextOptions", "returnClientRequestId"], + +export const ocpDate50: OperationParameter = { + parameterPath: ["options", "jobScheduleDisableOptions", "ocpDate"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "ocp-date", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId38: msRest.OperationParameter = { - parameterPath: ["options", "jobListFromJobScheduleNextOptions", "returnClientRequestId"], + +export const ifMatch20: OperationParameter = { + parameterPath: ["options", "jobScheduleDisableOptions", "ifMatch"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Match", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId39: msRest.OperationParameter = { - parameterPath: [ - "options", - "jobListPreparationAndReleaseTaskStatusNextOptions", - "returnClientRequestId" - ], + +export const ifNoneMatch20: OperationParameter = { + parameterPath: ["options", "jobScheduleDisableOptions", "ifNoneMatch"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-None-Match", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId4: msRest.OperationParameter = { - parameterPath: ["options", "poolGetAllLifetimeStatisticsOptions", "returnClientRequestId"], + +export const ifModifiedSince24: OperationParameter = { + parameterPath: ["options", "jobScheduleDisableOptions", "ifModifiedSince"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Modified-Since", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId40: msRest.OperationParameter = { - parameterPath: ["options", "certificateAddOptions", "returnClientRequestId"], + +export const ifUnmodifiedSince24: OperationParameter = { + parameterPath: ["options", "jobScheduleDisableOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Unmodified-Since", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId41: msRest.OperationParameter = { - parameterPath: ["options", "certificateListOptions", "returnClientRequestId"], + +export const timeout51: OperationQueryParameter = { + parameterPath: ["options", "jobScheduleEnableOptions", "timeout"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + defaultValue: 30, + serializedName: "timeout", type: { - name: "Boolean" + name: "Number" } } }; -export const returnClientRequestId42: msRest.OperationParameter = { - parameterPath: ["options", "certificateCancelDeletionOptions", "returnClientRequestId"], + +export const clientRequestId51: OperationParameter = { + parameterPath: ["options", "jobScheduleEnableOptions", "clientRequestId"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "client-request-id", type: { - name: "Boolean" + name: "Uuid" } } }; -export const returnClientRequestId43: msRest.OperationParameter = { - parameterPath: ["options", "certificateDeleteMethodOptions", "returnClientRequestId"], + +export const returnClientRequestId51: OperationParameter = { + parameterPath: [ + "options", + "jobScheduleEnableOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "return-client-request-id", defaultValue: false, + serializedName: "return-client-request-id", type: { name: "Boolean" } } }; -export const returnClientRequestId44: msRest.OperationParameter = { - parameterPath: ["options", "certificateGetOptions", "returnClientRequestId"], + +export const ocpDate51: OperationParameter = { + parameterPath: ["options", "jobScheduleEnableOptions", "ocpDate"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "ocp-date", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId45: msRest.OperationParameter = { - parameterPath: ["options", "certificateListNextOptions", "returnClientRequestId"], + +export const ifMatch21: OperationParameter = { + parameterPath: ["options", "jobScheduleEnableOptions", "ifMatch"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Match", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId46: msRest.OperationParameter = { - parameterPath: ["options", "fileDeleteFromTaskOptions", "returnClientRequestId"], + +export const ifNoneMatch21: OperationParameter = { + parameterPath: ["options", "jobScheduleEnableOptions", "ifNoneMatch"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-None-Match", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId47: msRest.OperationParameter = { - parameterPath: ["options", "fileGetFromTaskOptions", "returnClientRequestId"], + +export const ifModifiedSince25: OperationParameter = { + parameterPath: ["options", "jobScheduleEnableOptions", "ifModifiedSince"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Modified-Since", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId48: msRest.OperationParameter = { - parameterPath: ["options", "fileGetPropertiesFromTaskOptions", "returnClientRequestId"], + +export const ifUnmodifiedSince25: OperationParameter = { + parameterPath: ["options", "jobScheduleEnableOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Unmodified-Since", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId49: msRest.OperationParameter = { - parameterPath: ["options", "fileDeleteFromComputeNodeOptions", "returnClientRequestId"], + +export const timeout52: OperationQueryParameter = { + parameterPath: ["options", "jobScheduleTerminateOptions", "timeout"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + defaultValue: 30, + serializedName: "timeout", type: { - name: "Boolean" + name: "Number" } } }; -export const returnClientRequestId5: msRest.OperationParameter = { - parameterPath: ["options", "poolAddOptions", "returnClientRequestId"], + +export const clientRequestId52: OperationParameter = { + parameterPath: ["options", "jobScheduleTerminateOptions", "clientRequestId"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "client-request-id", type: { - name: "Boolean" + name: "Uuid" } } }; -export const returnClientRequestId50: msRest.OperationParameter = { - parameterPath: ["options", "fileGetFromComputeNodeOptions", "returnClientRequestId"], + +export const returnClientRequestId52: OperationParameter = { + parameterPath: [ + "options", + "jobScheduleTerminateOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "return-client-request-id", defaultValue: false, + serializedName: "return-client-request-id", type: { name: "Boolean" } } }; -export const returnClientRequestId51: msRest.OperationParameter = { - parameterPath: ["options", "fileGetPropertiesFromComputeNodeOptions", "returnClientRequestId"], + +export const ocpDate52: OperationParameter = { + parameterPath: ["options", "jobScheduleTerminateOptions", "ocpDate"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "ocp-date", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId52: msRest.OperationParameter = { - parameterPath: ["options", "fileListFromTaskOptions", "returnClientRequestId"], + +export const ifMatch22: OperationParameter = { + parameterPath: ["options", "jobScheduleTerminateOptions", "ifMatch"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Match", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId53: msRest.OperationParameter = { - parameterPath: ["options", "fileListFromComputeNodeOptions", "returnClientRequestId"], + +export const ifNoneMatch22: OperationParameter = { + parameterPath: ["options", "jobScheduleTerminateOptions", "ifNoneMatch"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-None-Match", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId54: msRest.OperationParameter = { - parameterPath: ["options", "fileListFromTaskNextOptions", "returnClientRequestId"], + +export const ifModifiedSince26: OperationParameter = { + parameterPath: ["options", "jobScheduleTerminateOptions", "ifModifiedSince"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Modified-Since", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId55: msRest.OperationParameter = { - parameterPath: ["options", "fileListFromComputeNodeNextOptions", "returnClientRequestId"], + +export const ifUnmodifiedSince26: OperationParameter = { + parameterPath: [ + "options", + "jobScheduleTerminateOptions", + "ifUnmodifiedSince" + ], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Unmodified-Since", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId56: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleExistsOptions", "returnClientRequestId"], + +export const cloudJobSchedule: OperationParameter = { + parameterPath: "cloudJobSchedule", + mapper: JobScheduleAddParameterMapper +}; + +export const timeout53: OperationQueryParameter = { + parameterPath: ["options", "jobScheduleAddOptions", "timeout"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + defaultValue: 30, + serializedName: "timeout", type: { - name: "Boolean" + name: "Number" } } }; -export const returnClientRequestId57: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleDeleteMethodOptions", "returnClientRequestId"], + +export const clientRequestId53: OperationParameter = { + parameterPath: ["options", "jobScheduleAddOptions", "clientRequestId"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "client-request-id", type: { - name: "Boolean" + name: "Uuid" } } }; -export const returnClientRequestId58: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleGetOptions", "returnClientRequestId"], + +export const returnClientRequestId53: OperationParameter = { + parameterPath: ["options", "jobScheduleAddOptions", "returnClientRequestId"], mapper: { - serializedName: "return-client-request-id", defaultValue: false, + serializedName: "return-client-request-id", type: { name: "Boolean" } } }; -export const returnClientRequestId59: msRest.OperationParameter = { - parameterPath: ["options", "jobSchedulePatchOptions", "returnClientRequestId"], + +export const ocpDate53: OperationParameter = { + parameterPath: ["options", "jobScheduleAddOptions", "ocpDate"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "ocp-date", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId6: msRest.OperationParameter = { - parameterPath: ["options", "poolListOptions", "returnClientRequestId"], + +export const filter10: OperationQueryParameter = { + parameterPath: ["options", "jobScheduleListOptions", "filter"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "$filter", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId60: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleUpdateOptions", "returnClientRequestId"], + +export const select9: OperationQueryParameter = { + parameterPath: ["options", "jobScheduleListOptions", "select"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "$select", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId61: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleDisableOptions", "returnClientRequestId"], + +export const expand6: OperationQueryParameter = { + parameterPath: ["options", "jobScheduleListOptions", "expand"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "$expand", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId62: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleEnableOptions", "returnClientRequestId"], + +export const maxResults11: OperationQueryParameter = { + parameterPath: ["options", "jobScheduleListOptions", "maxResults"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + defaultValue: 1000, + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "maxresults", type: { - name: "Boolean" + name: "Number" } } }; -export const returnClientRequestId63: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleTerminateOptions", "returnClientRequestId"], + +export const timeout54: OperationQueryParameter = { + parameterPath: ["options", "jobScheduleListOptions", "timeout"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + defaultValue: 30, + serializedName: "timeout", type: { - name: "Boolean" + name: "Number" } } }; -export const returnClientRequestId64: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleAddOptions", "returnClientRequestId"], + +export const clientRequestId54: OperationParameter = { + parameterPath: ["options", "jobScheduleListOptions", "clientRequestId"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "client-request-id", type: { - name: "Boolean" + name: "Uuid" } } }; -export const returnClientRequestId65: msRest.OperationParameter = { + +export const returnClientRequestId54: OperationParameter = { parameterPath: ["options", "jobScheduleListOptions", "returnClientRequestId"], mapper: { - serializedName: "return-client-request-id", defaultValue: false, + serializedName: "return-client-request-id", type: { name: "Boolean" } } }; -export const returnClientRequestId66: msRest.OperationParameter = { - parameterPath: ["options", "jobScheduleListNextOptions", "returnClientRequestId"], + +export const ocpDate54: OperationParameter = { + parameterPath: ["options", "jobScheduleListOptions", "ocpDate"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "ocp-date", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId67: msRest.OperationParameter = { - parameterPath: ["options", "taskAddOptions", "returnClientRequestId"], - mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + +export const task: OperationParameter = { + parameterPath: "task", + mapper: TaskAddParameterMapper +}; + +export const timeout55: OperationQueryParameter = { + parameterPath: ["options", "taskAddOptions", "timeout"], + mapper: { + defaultValue: 30, + serializedName: "timeout", type: { - name: "Boolean" + name: "Number" } } }; -export const returnClientRequestId68: msRest.OperationParameter = { - parameterPath: ["options", "taskListOptions", "returnClientRequestId"], + +export const clientRequestId55: OperationParameter = { + parameterPath: ["options", "taskAddOptions", "clientRequestId"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "client-request-id", type: { - name: "Boolean" + name: "Uuid" } } }; -export const returnClientRequestId69: msRest.OperationParameter = { - parameterPath: ["options", "taskAddCollectionOptions", "returnClientRequestId"], + +export const returnClientRequestId55: OperationParameter = { + parameterPath: ["options", "taskAddOptions", "returnClientRequestId"], mapper: { - serializedName: "return-client-request-id", defaultValue: false, + serializedName: "return-client-request-id", type: { name: "Boolean" } } }; -export const returnClientRequestId7: msRest.OperationParameter = { - parameterPath: ["options", "poolDeleteMethodOptions", "returnClientRequestId"], + +export const ocpDate55: OperationParameter = { + parameterPath: ["options", "taskAddOptions", "ocpDate"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "ocp-date", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId70: msRest.OperationParameter = { - parameterPath: ["options", "taskDeleteMethodOptions", "returnClientRequestId"], + +export const filter11: OperationQueryParameter = { + parameterPath: ["options", "taskListOptions", "filter"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "$filter", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId71: msRest.OperationParameter = { - parameterPath: ["options", "taskGetOptions", "returnClientRequestId"], + +export const select10: OperationQueryParameter = { + parameterPath: ["options", "taskListOptions", "select"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "$select", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId72: msRest.OperationParameter = { - parameterPath: ["options", "taskUpdateOptions", "returnClientRequestId"], + +export const expand7: OperationQueryParameter = { + parameterPath: ["options", "taskListOptions", "expand"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "$expand", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId73: msRest.OperationParameter = { - parameterPath: ["options", "taskListSubtasksOptions", "returnClientRequestId"], + +export const maxResults12: OperationQueryParameter = { + parameterPath: ["options", "taskListOptions", "maxResults"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + defaultValue: 1000, + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "maxresults", type: { - name: "Boolean" + name: "Number" } } }; -export const returnClientRequestId74: msRest.OperationParameter = { - parameterPath: ["options", "taskTerminateOptions", "returnClientRequestId"], + +export const timeout56: OperationQueryParameter = { + parameterPath: ["options", "taskListOptions", "timeout"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + defaultValue: 30, + serializedName: "timeout", type: { - name: "Boolean" + name: "Number" } } }; -export const returnClientRequestId75: msRest.OperationParameter = { - parameterPath: ["options", "taskReactivateOptions", "returnClientRequestId"], + +export const clientRequestId56: OperationParameter = { + parameterPath: ["options", "taskListOptions", "clientRequestId"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "client-request-id", type: { - name: "Boolean" + name: "Uuid" } } }; -export const returnClientRequestId76: msRest.OperationParameter = { - parameterPath: ["options", "taskListNextOptions", "returnClientRequestId"], + +export const returnClientRequestId56: OperationParameter = { + parameterPath: ["options", "taskListOptions", "returnClientRequestId"], mapper: { - serializedName: "return-client-request-id", defaultValue: false, + serializedName: "return-client-request-id", type: { name: "Boolean" } } }; -export const returnClientRequestId77: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeAddUserOptions", "returnClientRequestId"], + +export const ocpDate56: OperationParameter = { + parameterPath: ["options", "taskListOptions", "ocpDate"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "ocp-date", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId78: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeDeleteUserOptions", "returnClientRequestId"], + +export const taskCollection: OperationParameter = { + parameterPath: "taskCollection", + mapper: TaskAddCollectionParameterMapper +}; + +export const timeout57: OperationQueryParameter = { + parameterPath: ["options", "taskAddCollectionOptions", "timeout"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + defaultValue: 30, + serializedName: "timeout", type: { - name: "Boolean" + name: "Number" } } }; -export const returnClientRequestId79: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeUpdateUserOptions", "returnClientRequestId"], + +export const clientRequestId57: OperationParameter = { + parameterPath: ["options", "taskAddCollectionOptions", "clientRequestId"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "client-request-id", type: { - name: "Boolean" + name: "Uuid" } } }; -export const returnClientRequestId8: msRest.OperationParameter = { - parameterPath: ["options", "poolExistsOptions", "returnClientRequestId"], + +export const returnClientRequestId57: OperationParameter = { + parameterPath: [ + "options", + "taskAddCollectionOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "return-client-request-id", defaultValue: false, + serializedName: "return-client-request-id", type: { name: "Boolean" } } }; -export const returnClientRequestId80: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeGetOptions", "returnClientRequestId"], + +export const ocpDate57: OperationParameter = { + parameterPath: ["options", "taskAddCollectionOptions", "ocpDate"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "ocp-date", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId81: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeRebootOptions", "returnClientRequestId"], + +export const timeout58: OperationQueryParameter = { + parameterPath: ["options", "taskDeleteOptions", "timeout"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + defaultValue: 30, + serializedName: "timeout", type: { - name: "Boolean" + name: "Number" } } }; -export const returnClientRequestId82: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeReimageOptions", "returnClientRequestId"], + +export const clientRequestId58: OperationParameter = { + parameterPath: ["options", "taskDeleteOptions", "clientRequestId"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "client-request-id", type: { - name: "Boolean" + name: "Uuid" } } }; -export const returnClientRequestId83: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeDisableSchedulingOptions", "returnClientRequestId"], + +export const returnClientRequestId58: OperationParameter = { + parameterPath: ["options", "taskDeleteOptions", "returnClientRequestId"], mapper: { - serializedName: "return-client-request-id", defaultValue: false, + serializedName: "return-client-request-id", type: { name: "Boolean" } } }; -export const returnClientRequestId84: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeEnableSchedulingOptions", "returnClientRequestId"], + +export const ocpDate58: OperationParameter = { + parameterPath: ["options", "taskDeleteOptions", "ocpDate"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "ocp-date", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId85: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeGetRemoteLoginSettingsOptions", "returnClientRequestId"], + +export const ifMatch23: OperationParameter = { + parameterPath: ["options", "taskDeleteOptions", "ifMatch"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Match", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId86: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeGetRemoteDesktopOptions", "returnClientRequestId"], + +export const ifNoneMatch23: OperationParameter = { + parameterPath: ["options", "taskDeleteOptions", "ifNoneMatch"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-None-Match", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId87: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeUploadBatchServiceLogsOptions", "returnClientRequestId"], + +export const ifModifiedSince27: OperationParameter = { + parameterPath: ["options", "taskDeleteOptions", "ifModifiedSince"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Modified-Since", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId88: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeListOptions", "returnClientRequestId"], + +export const ifUnmodifiedSince27: OperationParameter = { + parameterPath: ["options", "taskDeleteOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "If-Unmodified-Since", type: { - name: "Boolean" + name: "DateTimeRfc1123" } } }; -export const returnClientRequestId89: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeListNextOptions", "returnClientRequestId"], + +export const select11: OperationQueryParameter = { + parameterPath: ["options", "taskGetOptions", "select"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "$select", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId9: msRest.OperationParameter = { - parameterPath: ["options", "poolGetOptions", "returnClientRequestId"], + +export const expand8: OperationQueryParameter = { + parameterPath: ["options", "taskGetOptions", "expand"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "$expand", type: { - name: "Boolean" + name: "String" } } }; -export const returnClientRequestId90: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeExtensionGetOptions", "returnClientRequestId"], + +export const timeout59: OperationQueryParameter = { + parameterPath: ["options", "taskGetOptions", "timeout"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + defaultValue: 30, + serializedName: "timeout", type: { - name: "Boolean" + name: "Number" } } }; -export const returnClientRequestId91: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeExtensionListOptions", "returnClientRequestId"], + +export const clientRequestId59: OperationParameter = { + parameterPath: ["options", "taskGetOptions", "clientRequestId"], mapper: { - serializedName: "return-client-request-id", - defaultValue: false, + serializedName: "client-request-id", type: { - name: "Boolean" + name: "Uuid" } } }; -export const returnClientRequestId92: msRest.OperationParameter = { - parameterPath: ["options", "computeNodeExtensionListNextOptions", "returnClientRequestId"], + +export const returnClientRequestId59: OperationParameter = { + parameterPath: ["options", "taskGetOptions", "returnClientRequestId"], mapper: { - serializedName: "return-client-request-id", defaultValue: false, + serializedName: "return-client-request-id", type: { name: "Boolean" } } }; -export const select0: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolListOptions", "select"], + +export const ocpDate59: OperationParameter = { + parameterPath: ["options", "taskGetOptions", "ocpDate"], mapper: { - serializedName: "$select", + serializedName: "ocp-date", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const select1: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolGetOptions", "select"], + +export const ifMatch24: OperationParameter = { + parameterPath: ["options", "taskGetOptions", "ifMatch"], mapper: { - serializedName: "$select", + serializedName: "If-Match", type: { name: "String" } } }; -export const select10: msRest.OperationQueryParameter = { - parameterPath: ["options", "taskListOptions", "select"], + +export const ifNoneMatch24: OperationParameter = { + parameterPath: ["options", "taskGetOptions", "ifNoneMatch"], mapper: { - serializedName: "$select", + serializedName: "If-None-Match", type: { name: "String" } } }; -export const select11: msRest.OperationQueryParameter = { - parameterPath: ["options", "taskGetOptions", "select"], + +export const ifModifiedSince28: OperationParameter = { + parameterPath: ["options", "taskGetOptions", "ifModifiedSince"], mapper: { - serializedName: "$select", + serializedName: "If-Modified-Since", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const select12: msRest.OperationQueryParameter = { - parameterPath: ["options", "taskListSubtasksOptions", "select"], + +export const ifUnmodifiedSince28: OperationParameter = { + parameterPath: ["options", "taskGetOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "$select", + serializedName: "If-Unmodified-Since", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const select13: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeGetOptions", "select"], - mapper: { - serializedName: "$select", - type: { - name: "String" - } - } + +export const taskUpdateParameter: OperationParameter = { + parameterPath: "taskUpdateParameter", + mapper: TaskUpdateParameterMapper }; -export const select14: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeListOptions", "select"], + +export const timeout60: OperationQueryParameter = { + parameterPath: ["options", "taskUpdateOptions", "timeout"], mapper: { - serializedName: "$select", + defaultValue: 30, + serializedName: "timeout", type: { - name: "String" + name: "Number" } } }; -export const select15: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeExtensionGetOptions", "select"], + +export const clientRequestId60: OperationParameter = { + parameterPath: ["options", "taskUpdateOptions", "clientRequestId"], mapper: { - serializedName: "$select", + serializedName: "client-request-id", type: { - name: "String" + name: "Uuid" } } }; -export const select16: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeExtensionListOptions", "select"], + +export const returnClientRequestId60: OperationParameter = { + parameterPath: ["options", "taskUpdateOptions", "returnClientRequestId"], mapper: { - serializedName: "$select", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "String" + name: "Boolean" } } }; -export const select2: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobGetOptions", "select"], + +export const ocpDate60: OperationParameter = { + parameterPath: ["options", "taskUpdateOptions", "ocpDate"], mapper: { - serializedName: "$select", + serializedName: "ocp-date", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const select3: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobListOptions", "select"], + +export const ifMatch25: OperationParameter = { + parameterPath: ["options", "taskUpdateOptions", "ifMatch"], mapper: { - serializedName: "$select", + serializedName: "If-Match", type: { name: "String" } } }; -export const select4: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobListFromJobScheduleOptions", "select"], + +export const ifNoneMatch25: OperationParameter = { + parameterPath: ["options", "taskUpdateOptions", "ifNoneMatch"], mapper: { - serializedName: "$select", + serializedName: "If-None-Match", type: { name: "String" } } }; -export const select5: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobListPreparationAndReleaseTaskStatusOptions", "select"], + +export const ifModifiedSince29: OperationParameter = { + parameterPath: ["options", "taskUpdateOptions", "ifModifiedSince"], mapper: { - serializedName: "$select", + serializedName: "If-Modified-Since", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const select6: msRest.OperationQueryParameter = { - parameterPath: ["options", "certificateListOptions", "select"], + +export const ifUnmodifiedSince29: OperationParameter = { + parameterPath: ["options", "taskUpdateOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "$select", + serializedName: "If-Unmodified-Since", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const select7: msRest.OperationQueryParameter = { - parameterPath: ["options", "certificateGetOptions", "select"], + +export const select12: OperationQueryParameter = { + parameterPath: ["options", "taskListSubtasksOptions", "select"], mapper: { serializedName: "$select", type: { @@ -4397,850 +4791,1025 @@ export const select7: msRest.OperationQueryParameter = { } } }; -export const select8: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobScheduleGetOptions", "select"], + +export const timeout61: OperationQueryParameter = { + parameterPath: ["options", "taskListSubtasksOptions", "timeout"], mapper: { - serializedName: "$select", + defaultValue: 30, + serializedName: "timeout", type: { - name: "String" + name: "Number" } } }; -export const select9: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobScheduleListOptions", "select"], + +export const clientRequestId61: OperationParameter = { + parameterPath: ["options", "taskListSubtasksOptions", "clientRequestId"], mapper: { - serializedName: "$select", + serializedName: "client-request-id", type: { - name: "String" + name: "Uuid" } } }; -export const startTime: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolListUsageMetricsOptions", "startTime"], + +export const returnClientRequestId61: OperationParameter = { + parameterPath: [ + "options", + "taskListSubtasksOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "starttime", + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "DateTime" + name: "Boolean" } } }; -export const taskId: msRest.OperationURLParameter = { - parameterPath: "taskId", + +export const ocpDate61: OperationParameter = { + parameterPath: ["options", "taskListSubtasksOptions", "ocpDate"], mapper: { - required: true, - serializedName: "taskId", + serializedName: "ocp-date", type: { - name: "String" + name: "DateTimeRfc1123" } } }; -export const thumbprint: msRest.OperationURLParameter = { - parameterPath: "thumbprint", + +export const timeout62: OperationQueryParameter = { + parameterPath: ["options", "taskTerminateOptions", "timeout"], mapper: { - required: true, - serializedName: "thumbprint", + defaultValue: 30, + serializedName: "timeout", type: { - name: "String" + name: "Number" } } }; -export const thumbprintAlgorithm: msRest.OperationURLParameter = { - parameterPath: "thumbprintAlgorithm", + +export const clientRequestId62: OperationParameter = { + parameterPath: ["options", "taskTerminateOptions", "clientRequestId"], mapper: { - required: true, - serializedName: "thumbprintAlgorithm", + serializedName: "client-request-id", type: { - name: "String" + name: "Uuid" } } }; -export const timeout0: msRest.OperationQueryParameter = { - parameterPath: ["options", "applicationListOptions", "timeout"], + +export const returnClientRequestId62: OperationParameter = { + parameterPath: ["options", "taskTerminateOptions", "returnClientRequestId"], mapper: { - serializedName: "timeout", - defaultValue: 30, + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Number" + name: "Boolean" } } }; -export const timeout1: msRest.OperationQueryParameter = { - parameterPath: ["options", "applicationGetOptions", "timeout"], + +export const ocpDate62: OperationParameter = { + parameterPath: ["options", "taskTerminateOptions", "ocpDate"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "ocp-date", type: { - name: "Number" + name: "DateTimeRfc1123" } } }; -export const timeout10: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolDisableAutoScaleOptions", "timeout"], + +export const ifMatch26: OperationParameter = { + parameterPath: ["options", "taskTerminateOptions", "ifMatch"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "If-Match", type: { - name: "Number" + name: "String" } } }; -export const timeout11: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolEnableAutoScaleOptions", "timeout"], + +export const ifNoneMatch26: OperationParameter = { + parameterPath: ["options", "taskTerminateOptions", "ifNoneMatch"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "If-None-Match", type: { - name: "Number" + name: "String" } } }; -export const timeout12: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolEvaluateAutoScaleOptions", "timeout"], + +export const ifModifiedSince30: OperationParameter = { + parameterPath: ["options", "taskTerminateOptions", "ifModifiedSince"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "If-Modified-Since", type: { - name: "Number" + name: "DateTimeRfc1123" } } }; -export const timeout13: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolResizeOptions", "timeout"], + +export const ifUnmodifiedSince30: OperationParameter = { + parameterPath: ["options", "taskTerminateOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "If-Unmodified-Since", type: { - name: "Number" + name: "DateTimeRfc1123" } } }; -export const timeout14: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolStopResizeOptions", "timeout"], + +export const timeout63: OperationQueryParameter = { + parameterPath: ["options", "taskReactivateOptions", "timeout"], mapper: { - serializedName: "timeout", defaultValue: 30, + serializedName: "timeout", type: { name: "Number" } } }; -export const timeout15: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolUpdatePropertiesOptions", "timeout"], + +export const clientRequestId63: OperationParameter = { + parameterPath: ["options", "taskReactivateOptions", "clientRequestId"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "client-request-id", type: { - name: "Number" + name: "Uuid" } } }; -export const timeout16: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolRemoveNodesOptions", "timeout"], + +export const returnClientRequestId63: OperationParameter = { + parameterPath: ["options", "taskReactivateOptions", "returnClientRequestId"], mapper: { - serializedName: "timeout", - defaultValue: 30, + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Number" + name: "Boolean" } } }; -export const timeout17: msRest.OperationQueryParameter = { - parameterPath: ["options", "accountListSupportedImagesOptions", "timeout"], + +export const ocpDate63: OperationParameter = { + parameterPath: ["options", "taskReactivateOptions", "ocpDate"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "ocp-date", type: { - name: "Number" + name: "DateTimeRfc1123" } } }; -export const timeout18: msRest.OperationQueryParameter = { - parameterPath: ["options", "accountListPoolNodeCountsOptions", "timeout"], + +export const ifMatch27: OperationParameter = { + parameterPath: ["options", "taskReactivateOptions", "ifMatch"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "If-Match", type: { - name: "Number" + name: "String" } } }; -export const timeout19: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobGetAllLifetimeStatisticsOptions", "timeout"], + +export const ifNoneMatch27: OperationParameter = { + parameterPath: ["options", "taskReactivateOptions", "ifNoneMatch"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "If-None-Match", type: { - name: "Number" + name: "String" } } }; -export const timeout2: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolListUsageMetricsOptions", "timeout"], + +export const ifModifiedSince31: OperationParameter = { + parameterPath: ["options", "taskReactivateOptions", "ifModifiedSince"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "If-Modified-Since", type: { - name: "Number" + name: "DateTimeRfc1123" } } }; -export const timeout20: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobDeleteMethodOptions", "timeout"], + +export const ifUnmodifiedSince31: OperationParameter = { + parameterPath: ["options", "taskReactivateOptions", "ifUnmodifiedSince"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "If-Unmodified-Since", type: { - name: "Number" + name: "DateTimeRfc1123" } } }; -export const timeout21: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobGetOptions", "timeout"], + +export const user: OperationParameter = { + parameterPath: "user", + mapper: ComputeNodeUserMapper +}; + +export const timeout64: OperationQueryParameter = { + parameterPath: ["options", "computeNodeAddUserOptions", "timeout"], mapper: { - serializedName: "timeout", defaultValue: 30, + serializedName: "timeout", type: { name: "Number" } } }; -export const timeout22: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobPatchOptions", "timeout"], + +export const clientRequestId64: OperationParameter = { + parameterPath: ["options", "computeNodeAddUserOptions", "clientRequestId"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "client-request-id", type: { - name: "Number" + name: "Uuid" } } }; -export const timeout23: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobUpdateOptions", "timeout"], + +export const returnClientRequestId64: OperationParameter = { + parameterPath: [ + "options", + "computeNodeAddUserOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Number" + name: "Boolean" } } }; -export const timeout24: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobDisableOptions", "timeout"], + +export const ocpDate64: OperationParameter = { + parameterPath: ["options", "computeNodeAddUserOptions", "ocpDate"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "ocp-date", type: { - name: "Number" + name: "DateTimeRfc1123" } } }; -export const timeout25: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobEnableOptions", "timeout"], + +export const userName: OperationURLParameter = { + parameterPath: "userName", mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "userName", + required: true, type: { - name: "Number" + name: "String" } } }; -export const timeout26: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobTerminateOptions", "timeout"], + +export const timeout65: OperationQueryParameter = { + parameterPath: ["options", "computeNodeDeleteUserOptions", "timeout"], mapper: { - serializedName: "timeout", defaultValue: 30, + serializedName: "timeout", type: { name: "Number" } } }; -export const timeout27: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobAddOptions", "timeout"], + +export const clientRequestId65: OperationParameter = { + parameterPath: ["options", "computeNodeDeleteUserOptions", "clientRequestId"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "client-request-id", type: { - name: "Number" + name: "Uuid" } } }; -export const timeout28: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobListOptions", "timeout"], + +export const returnClientRequestId65: OperationParameter = { + parameterPath: [ + "options", + "computeNodeDeleteUserOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Number" + name: "Boolean" } } }; -export const timeout29: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobListFromJobScheduleOptions", "timeout"], + +export const ocpDate65: OperationParameter = { + parameterPath: ["options", "computeNodeDeleteUserOptions", "ocpDate"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "ocp-date", type: { - name: "Number" + name: "DateTimeRfc1123" } } }; -export const timeout3: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolGetAllLifetimeStatisticsOptions", "timeout"], + +export const nodeUpdateUserParameter: OperationParameter = { + parameterPath: "nodeUpdateUserParameter", + mapper: NodeUpdateUserParameterMapper +}; + +export const timeout66: OperationQueryParameter = { + parameterPath: ["options", "computeNodeUpdateUserOptions", "timeout"], mapper: { - serializedName: "timeout", defaultValue: 30, + serializedName: "timeout", type: { name: "Number" } } }; -export const timeout30: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobListPreparationAndReleaseTaskStatusOptions", "timeout"], + +export const clientRequestId66: OperationParameter = { + parameterPath: ["options", "computeNodeUpdateUserOptions", "clientRequestId"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "client-request-id", type: { - name: "Number" + name: "Uuid" } } }; -export const timeout31: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobGetTaskCountsOptions", "timeout"], + +export const returnClientRequestId66: OperationParameter = { + parameterPath: [ + "options", + "computeNodeUpdateUserOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Number" + name: "Boolean" } } }; -export const timeout32: msRest.OperationQueryParameter = { - parameterPath: ["options", "certificateAddOptions", "timeout"], + +export const ocpDate66: OperationParameter = { + parameterPath: ["options", "computeNodeUpdateUserOptions", "ocpDate"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "ocp-date", type: { - name: "Number" + name: "DateTimeRfc1123" } } }; -export const timeout33: msRest.OperationQueryParameter = { - parameterPath: ["options", "certificateListOptions", "timeout"], + +export const select13: OperationQueryParameter = { + parameterPath: ["options", "computeNodeGetOptions", "select"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "$select", type: { - name: "Number" + name: "String" } } }; -export const timeout34: msRest.OperationQueryParameter = { - parameterPath: ["options", "certificateCancelDeletionOptions", "timeout"], + +export const timeout67: OperationQueryParameter = { + parameterPath: ["options", "computeNodeGetOptions", "timeout"], mapper: { - serializedName: "timeout", defaultValue: 30, + serializedName: "timeout", type: { name: "Number" } } }; -export const timeout35: msRest.OperationQueryParameter = { - parameterPath: ["options", "certificateDeleteMethodOptions", "timeout"], + +export const clientRequestId67: OperationParameter = { + parameterPath: ["options", "computeNodeGetOptions", "clientRequestId"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "client-request-id", type: { - name: "Number" + name: "Uuid" } } }; -export const timeout36: msRest.OperationQueryParameter = { - parameterPath: ["options", "certificateGetOptions", "timeout"], + +export const returnClientRequestId67: OperationParameter = { + parameterPath: ["options", "computeNodeGetOptions", "returnClientRequestId"], mapper: { - serializedName: "timeout", - defaultValue: 30, + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Number" + name: "Boolean" } } }; -export const timeout37: msRest.OperationQueryParameter = { - parameterPath: ["options", "fileDeleteFromTaskOptions", "timeout"], + +export const ocpDate67: OperationParameter = { + parameterPath: ["options", "computeNodeGetOptions", "ocpDate"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "ocp-date", type: { - name: "Number" + name: "DateTimeRfc1123" } } }; -export const timeout38: msRest.OperationQueryParameter = { - parameterPath: ["options", "fileGetFromTaskOptions", "timeout"], + +export const nodeRebootParameter: OperationParameter = { + parameterPath: ["options", "nodeRebootParameter"], + mapper: NodeRebootParameterMapper +}; + +export const timeout68: OperationQueryParameter = { + parameterPath: ["options", "computeNodeRebootOptions", "timeout"], mapper: { - serializedName: "timeout", defaultValue: 30, + serializedName: "timeout", type: { name: "Number" } } }; -export const timeout39: msRest.OperationQueryParameter = { - parameterPath: ["options", "fileGetPropertiesFromTaskOptions", "timeout"], + +export const clientRequestId68: OperationParameter = { + parameterPath: ["options", "computeNodeRebootOptions", "clientRequestId"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "client-request-id", type: { - name: "Number" + name: "Uuid" } } }; -export const timeout4: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolAddOptions", "timeout"], + +export const returnClientRequestId68: OperationParameter = { + parameterPath: [ + "options", + "computeNodeRebootOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Number" + name: "Boolean" } } }; -export const timeout40: msRest.OperationQueryParameter = { - parameterPath: ["options", "fileDeleteFromComputeNodeOptions", "timeout"], + +export const ocpDate68: OperationParameter = { + parameterPath: ["options", "computeNodeRebootOptions", "ocpDate"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "ocp-date", type: { - name: "Number" + name: "DateTimeRfc1123" } } }; -export const timeout41: msRest.OperationQueryParameter = { - parameterPath: ["options", "fileGetFromComputeNodeOptions", "timeout"], + +export const nodeReimageParameter: OperationParameter = { + parameterPath: ["options", "nodeReimageParameter"], + mapper: NodeReimageParameterMapper +}; + +export const timeout69: OperationQueryParameter = { + parameterPath: ["options", "computeNodeReimageOptions", "timeout"], mapper: { - serializedName: "timeout", defaultValue: 30, + serializedName: "timeout", type: { name: "Number" } } }; -export const timeout42: msRest.OperationQueryParameter = { - parameterPath: ["options", "fileGetPropertiesFromComputeNodeOptions", "timeout"], + +export const clientRequestId69: OperationParameter = { + parameterPath: ["options", "computeNodeReimageOptions", "clientRequestId"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "client-request-id", type: { - name: "Number" + name: "Uuid" } } }; -export const timeout43: msRest.OperationQueryParameter = { - parameterPath: ["options", "fileListFromTaskOptions", "timeout"], + +export const returnClientRequestId69: OperationParameter = { + parameterPath: [ + "options", + "computeNodeReimageOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Number" + name: "Boolean" } } }; -export const timeout44: msRest.OperationQueryParameter = { - parameterPath: ["options", "fileListFromComputeNodeOptions", "timeout"], + +export const ocpDate69: OperationParameter = { + parameterPath: ["options", "computeNodeReimageOptions", "ocpDate"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "ocp-date", type: { - name: "Number" + name: "DateTimeRfc1123" } } }; -export const timeout45: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobScheduleExistsOptions", "timeout"], + +export const nodeDisableSchedulingParameter: OperationParameter = { + parameterPath: ["options", "nodeDisableSchedulingParameter"], + mapper: NodeDisableSchedulingParameterMapper +}; + +export const timeout70: OperationQueryParameter = { + parameterPath: ["options", "computeNodeDisableSchedulingOptions", "timeout"], mapper: { - serializedName: "timeout", defaultValue: 30, + serializedName: "timeout", type: { name: "Number" } } }; -export const timeout46: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobScheduleDeleteMethodOptions", "timeout"], + +export const clientRequestId70: OperationParameter = { + parameterPath: [ + "options", + "computeNodeDisableSchedulingOptions", + "clientRequestId" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "client-request-id", type: { - name: "Number" + name: "Uuid" } } }; -export const timeout47: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobScheduleGetOptions", "timeout"], + +export const returnClientRequestId70: OperationParameter = { + parameterPath: [ + "options", + "computeNodeDisableSchedulingOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Number" + name: "Boolean" } } }; -export const timeout48: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobSchedulePatchOptions", "timeout"], + +export const ocpDate70: OperationParameter = { + parameterPath: ["options", "computeNodeDisableSchedulingOptions", "ocpDate"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "ocp-date", type: { - name: "Number" + name: "DateTimeRfc1123" } } }; -export const timeout49: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobScheduleUpdateOptions", "timeout"], + +export const timeout71: OperationQueryParameter = { + parameterPath: ["options", "computeNodeEnableSchedulingOptions", "timeout"], mapper: { - serializedName: "timeout", defaultValue: 30, + serializedName: "timeout", type: { name: "Number" } } }; -export const timeout5: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolListOptions", "timeout"], + +export const clientRequestId71: OperationParameter = { + parameterPath: [ + "options", + "computeNodeEnableSchedulingOptions", + "clientRequestId" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "client-request-id", type: { - name: "Number" + name: "Uuid" } } }; -export const timeout50: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobScheduleDisableOptions", "timeout"], + +export const returnClientRequestId71: OperationParameter = { + parameterPath: [ + "options", + "computeNodeEnableSchedulingOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Number" + name: "Boolean" } } }; -export const timeout51: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobScheduleEnableOptions", "timeout"], + +export const ocpDate71: OperationParameter = { + parameterPath: ["options", "computeNodeEnableSchedulingOptions", "ocpDate"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "ocp-date", type: { - name: "Number" + name: "DateTimeRfc1123" } } }; -export const timeout52: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobScheduleTerminateOptions", "timeout"], + +export const timeout72: OperationQueryParameter = { + parameterPath: [ + "options", + "computeNodeGetRemoteLoginSettingsOptions", + "timeout" + ], mapper: { - serializedName: "timeout", defaultValue: 30, + serializedName: "timeout", type: { name: "Number" } } }; -export const timeout53: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobScheduleAddOptions", "timeout"], + +export const clientRequestId72: OperationParameter = { + parameterPath: [ + "options", + "computeNodeGetRemoteLoginSettingsOptions", + "clientRequestId" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "client-request-id", type: { - name: "Number" + name: "Uuid" } } }; -export const timeout54: msRest.OperationQueryParameter = { - parameterPath: ["options", "jobScheduleListOptions", "timeout"], + +export const returnClientRequestId72: OperationParameter = { + parameterPath: [ + "options", + "computeNodeGetRemoteLoginSettingsOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Number" + name: "Boolean" } } }; -export const timeout55: msRest.OperationQueryParameter = { - parameterPath: ["options", "taskAddOptions", "timeout"], + +export const ocpDate72: OperationParameter = { + parameterPath: [ + "options", + "computeNodeGetRemoteLoginSettingsOptions", + "ocpDate" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "ocp-date", type: { - name: "Number" + name: "DateTimeRfc1123" } } }; -export const timeout56: msRest.OperationQueryParameter = { - parameterPath: ["options", "taskListOptions", "timeout"], + +export const timeout73: OperationQueryParameter = { + parameterPath: ["options", "computeNodeGetRemoteDesktopOptions", "timeout"], mapper: { - serializedName: "timeout", defaultValue: 30, + serializedName: "timeout", type: { name: "Number" } } }; -export const timeout57: msRest.OperationQueryParameter = { - parameterPath: ["options", "taskAddCollectionOptions", "timeout"], + +export const clientRequestId73: OperationParameter = { + parameterPath: [ + "options", + "computeNodeGetRemoteDesktopOptions", + "clientRequestId" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "client-request-id", type: { - name: "Number" + name: "Uuid" } } }; -export const timeout58: msRest.OperationQueryParameter = { - parameterPath: ["options", "taskDeleteMethodOptions", "timeout"], + +export const returnClientRequestId73: OperationParameter = { + parameterPath: [ + "options", + "computeNodeGetRemoteDesktopOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Number" + name: "Boolean" } } }; -export const timeout59: msRest.OperationQueryParameter = { - parameterPath: ["options", "taskGetOptions", "timeout"], + +export const ocpDate73: OperationParameter = { + parameterPath: ["options", "computeNodeGetRemoteDesktopOptions", "ocpDate"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "ocp-date", type: { - name: "Number" + name: "DateTimeRfc1123" } } }; -export const timeout6: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolDeleteMethodOptions", "timeout"], + +export const uploadBatchServiceLogsConfiguration: OperationParameter = { + parameterPath: "uploadBatchServiceLogsConfiguration", + mapper: UploadBatchServiceLogsConfigurationMapper +}; + +export const timeout74: OperationQueryParameter = { + parameterPath: [ + "options", + "computeNodeUploadBatchServiceLogsOptions", + "timeout" + ], mapper: { - serializedName: "timeout", defaultValue: 30, + serializedName: "timeout", type: { name: "Number" } } }; -export const timeout60: msRest.OperationQueryParameter = { - parameterPath: ["options", "taskUpdateOptions", "timeout"], + +export const clientRequestId74: OperationParameter = { + parameterPath: [ + "options", + "computeNodeUploadBatchServiceLogsOptions", + "clientRequestId" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "client-request-id", type: { - name: "Number" + name: "Uuid" } } }; -export const timeout61: msRest.OperationQueryParameter = { - parameterPath: ["options", "taskListSubtasksOptions", "timeout"], + +export const returnClientRequestId74: OperationParameter = { + parameterPath: [ + "options", + "computeNodeUploadBatchServiceLogsOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Number" + name: "Boolean" } } }; -export const timeout62: msRest.OperationQueryParameter = { - parameterPath: ["options", "taskTerminateOptions", "timeout"], + +export const ocpDate74: OperationParameter = { + parameterPath: [ + "options", + "computeNodeUploadBatchServiceLogsOptions", + "ocpDate" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "ocp-date", type: { - name: "Number" + name: "DateTimeRfc1123" } } }; -export const timeout63: msRest.OperationQueryParameter = { - parameterPath: ["options", "taskReactivateOptions", "timeout"], + +export const filter12: OperationQueryParameter = { + parameterPath: ["options", "computeNodeListOptions", "filter"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "$filter", type: { - name: "Number" + name: "String" } } }; -export const timeout64: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeAddUserOptions", "timeout"], + +export const select14: OperationQueryParameter = { + parameterPath: ["options", "computeNodeListOptions", "select"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "$select", type: { - name: "Number" + name: "String" } } }; -export const timeout65: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeDeleteUserOptions", "timeout"], + +export const maxResults13: OperationQueryParameter = { + parameterPath: ["options", "computeNodeListOptions", "maxResults"], mapper: { - serializedName: "timeout", - defaultValue: 30, + defaultValue: 1000, + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "maxresults", type: { name: "Number" } } }; -export const timeout66: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeUpdateUserOptions", "timeout"], + +export const timeout75: OperationQueryParameter = { + parameterPath: ["options", "computeNodeListOptions", "timeout"], mapper: { - serializedName: "timeout", defaultValue: 30, + serializedName: "timeout", type: { name: "Number" } } }; -export const timeout67: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeGetOptions", "timeout"], + +export const clientRequestId75: OperationParameter = { + parameterPath: ["options", "computeNodeListOptions", "clientRequestId"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "client-request-id", type: { - name: "Number" + name: "Uuid" } } }; -export const timeout68: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeRebootOptions", "timeout"], + +export const returnClientRequestId75: OperationParameter = { + parameterPath: ["options", "computeNodeListOptions", "returnClientRequestId"], mapper: { - serializedName: "timeout", - defaultValue: 30, + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Number" + name: "Boolean" } } }; -export const timeout69: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeReimageOptions", "timeout"], + +export const ocpDate75: OperationParameter = { + parameterPath: ["options", "computeNodeListOptions", "ocpDate"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "ocp-date", type: { - name: "Number" + name: "DateTimeRfc1123" } } }; -export const timeout7: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolExistsOptions", "timeout"], + +export const extensionName: OperationURLParameter = { + parameterPath: "extensionName", mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "extensionName", + required: true, type: { - name: "Number" + name: "String" } } }; -export const timeout70: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeDisableSchedulingOptions", "timeout"], + +export const select15: OperationQueryParameter = { + parameterPath: ["options", "computeNodeExtensionGetOptions", "select"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "$select", type: { - name: "Number" + name: "String" } } }; -export const timeout71: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeEnableSchedulingOptions", "timeout"], + +export const timeout76: OperationQueryParameter = { + parameterPath: ["options", "computeNodeExtensionGetOptions", "timeout"], mapper: { - serializedName: "timeout", defaultValue: 30, + serializedName: "timeout", type: { name: "Number" } } }; -export const timeout72: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeGetRemoteLoginSettingsOptions", "timeout"], + +export const clientRequestId76: OperationParameter = { + parameterPath: [ + "options", + "computeNodeExtensionGetOptions", + "clientRequestId" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "client-request-id", type: { - name: "Number" + name: "Uuid" } } }; -export const timeout73: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeGetRemoteDesktopOptions", "timeout"], + +export const returnClientRequestId76: OperationParameter = { + parameterPath: [ + "options", + "computeNodeExtensionGetOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Number" + name: "Boolean" } } }; -export const timeout74: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeUploadBatchServiceLogsOptions", "timeout"], + +export const ocpDate76: OperationParameter = { + parameterPath: ["options", "computeNodeExtensionGetOptions", "ocpDate"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "ocp-date", type: { - name: "Number" + name: "DateTimeRfc1123" } } }; -export const timeout75: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeListOptions", "timeout"], + +export const select16: OperationQueryParameter = { + parameterPath: ["options", "computeNodeExtensionListOptions", "select"], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "$select", type: { - name: "Number" + name: "String" } } }; -export const timeout76: msRest.OperationQueryParameter = { - parameterPath: ["options", "computeNodeExtensionGetOptions", "timeout"], + +export const maxResults14: OperationQueryParameter = { + parameterPath: ["options", "computeNodeExtensionListOptions", "maxResults"], mapper: { - serializedName: "timeout", - defaultValue: 30, + defaultValue: 1000, + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1 + }, + serializedName: "maxresults", type: { name: "Number" } } }; -export const timeout77: msRest.OperationQueryParameter = { + +export const timeout77: OperationQueryParameter = { parameterPath: ["options", "computeNodeExtensionListOptions", "timeout"], mapper: { - serializedName: "timeout", defaultValue: 30, + serializedName: "timeout", type: { name: "Number" } } }; -export const timeout8: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolGetOptions", "timeout"], + +export const clientRequestId77: OperationParameter = { + parameterPath: [ + "options", + "computeNodeExtensionListOptions", + "clientRequestId" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + serializedName: "client-request-id", type: { - name: "Number" + name: "Uuid" } } }; -export const timeout9: msRest.OperationQueryParameter = { - parameterPath: ["options", "poolPatchOptions", "timeout"], + +export const returnClientRequestId77: OperationParameter = { + parameterPath: [ + "options", + "computeNodeExtensionListOptions", + "returnClientRequestId" + ], mapper: { - serializedName: "timeout", - defaultValue: 30, + defaultValue: false, + serializedName: "return-client-request-id", type: { - name: "Number" + name: "Boolean" } } }; -export const userName: msRest.OperationURLParameter = { - parameterPath: "userName", + +export const ocpDate77: OperationParameter = { + parameterPath: ["options", "computeNodeExtensionListOptions", "ocpDate"], mapper: { - required: true, - serializedName: "userName", + serializedName: "ocp-date", type: { - name: "String" + name: "DateTimeRfc1123" } } }; diff --git a/sdk/batch/batch/src/models/poolMappers.ts b/sdk/batch/batch/src/models/poolMappers.ts deleted file mode 100644 index ee378c127465..000000000000 --- a/sdk/batch/batch/src/models/poolMappers.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - ApplicationPackageReference, - AutoScaleRun, - AutoScaleRunError, - AutoUserSpecification, - AzureBlobFileSystemConfiguration, - AzureFileShareConfiguration, - BatchError, - BatchErrorDetail, - BatchPoolIdentity, - CertificateReference, - CIFSMountConfiguration, - CloudPool, - CloudPoolListResult, - CloudServiceConfiguration, - ComputeNodeIdentityReference, - ContainerConfiguration, - ContainerRegistry, - DataDisk, - DiffDiskSettings, - DiskEncryptionConfiguration, - EnvironmentSetting, - ErrorMessage, - ImageReference, - InboundNATPool, - LinuxUserConfiguration, - MetadataItem, - MountConfiguration, - NameValuePair, - NetworkConfiguration, - NetworkSecurityGroupRule, - NFSMountConfiguration, - NodePlacementConfiguration, - NodeRemoveParameter, - OSDisk, - PoolAddHeaders, - PoolAddParameter, - PoolDeleteHeaders, - PoolDisableAutoScaleHeaders, - PoolEnableAutoScaleHeaders, - PoolEnableAutoScaleParameter, - PoolEndpointConfiguration, - PoolEvaluateAutoScaleHeaders, - PoolEvaluateAutoScaleParameter, - PoolExistsHeaders, - PoolGetAllLifetimeStatisticsHeaders, - PoolGetHeaders, - PoolListHeaders, - PoolListUsageMetricsHeaders, - PoolListUsageMetricsResult, - PoolPatchHeaders, - PoolPatchParameter, - PoolRemoveNodesHeaders, - PoolResizeHeaders, - PoolResizeParameter, - PoolStatistics, - PoolStopResizeHeaders, - PoolUpdatePropertiesHeaders, - PoolUpdatePropertiesParameter, - PoolUsageMetrics, - PublicIPAddressConfiguration, - ResizeError, - ResourceFile, - ResourceStatistics, - StartTask, - TaskContainerSettings, - TaskSchedulingPolicy, - UsageStatistics, - UserAccount, - UserAssignedIdentity, - UserIdentity, - VirtualMachineConfiguration, - VMExtension, - WindowsConfiguration, - WindowsUserConfiguration -} from "../models/mappers"; diff --git a/sdk/batch/batch/src/models/taskMappers.ts b/sdk/batch/batch/src/models/taskMappers.ts deleted file mode 100644 index 57a4376103f5..000000000000 --- a/sdk/batch/batch/src/models/taskMappers.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AffinityInformation, - ApplicationPackageReference, - AuthenticationTokenSettings, - AutoUserSpecification, - BatchError, - BatchErrorDetail, - CloudTask, - CloudTaskListResult, - CloudTaskListSubtasksResult, - ComputeNodeIdentityReference, - ComputeNodeInformation, - ContainerRegistry, - EnvironmentSetting, - ErrorMessage, - ExitCodeMapping, - ExitCodeRangeMapping, - ExitConditions, - ExitOptions, - MultiInstanceSettings, - NameValuePair, - OutputFile, - OutputFileBlobContainerDestination, - OutputFileDestination, - OutputFileUploadOptions, - ResourceFile, - SubtaskInformation, - TaskAddCollectionHeaders, - TaskAddCollectionParameter, - TaskAddCollectionResult, - TaskAddHeaders, - TaskAddParameter, - TaskAddResult, - TaskConstraints, - TaskContainerExecutionInformation, - TaskContainerSettings, - TaskDeleteHeaders, - TaskDependencies, - TaskExecutionInformation, - TaskFailureInformation, - TaskGetHeaders, - TaskIdRange, - TaskListHeaders, - TaskListSubtasksHeaders, - TaskReactivateHeaders, - TaskStatistics, - TaskTerminateHeaders, - TaskUpdateHeaders, - TaskUpdateParameter, - UserIdentity -} from "../models/mappers"; diff --git a/sdk/batch/batch/src/operations/account.ts b/sdk/batch/batch/src/operations/account.ts index 35b6f499d904..83c51dbec4a2 100644 --- a/sdk/batch/batch/src/operations/account.ts +++ b/sdk/batch/batch/src/operations/account.ts @@ -3,299 +3,291 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/accountMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Account } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { BatchServiceClientContext } from "../batchServiceClientContext"; +import { BatchServiceClient } from "../batchServiceClient"; +import { + ImageInformation, + AccountListSupportedImagesNextOptionalParams, + AccountListSupportedImagesOptionalParams, + PoolNodeCounts, + AccountListPoolNodeCountsNextOptionalParams, + AccountListPoolNodeCountsOptionalParams, + AccountListSupportedImagesResponse, + AccountListPoolNodeCountsResponse, + AccountListSupportedImagesNextResponse, + AccountListPoolNodeCountsNextResponse +} from "../models"; -/** Class representing a Account. */ -export class Account { - private readonly client: BatchServiceClientContext; +/// +/** Class containing Account operations. */ +export class AccountImpl implements Account { + private readonly client: BatchServiceClient; /** - * Create a Account. - * @param {BatchServiceClientContext} client Reference to the service client. + * Initialize a new instance of the class Account class. + * @param client Reference to the service client */ - constructor(client: BatchServiceClientContext) { + constructor(client: BatchServiceClient) { this.client = client; } /** - * @summary Lists all Virtual Machine Images supported by the Azure Batch service. - * @param [options] The optional parameters - * @returns Promise + * Lists all Virtual Machine Images supported by the Azure Batch service. + * @param options The options parameters. */ - listSupportedImages( - options?: Models.AccountListSupportedImagesOptionalParams - ): Promise; - /** - * @param callback The callback - */ - listSupportedImages( - callback: msRest.ServiceCallback - ): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - listSupportedImages( - options: Models.AccountListSupportedImagesOptionalParams, - callback: msRest.ServiceCallback - ): void; - listSupportedImages( - options?: - | Models.AccountListSupportedImagesOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - options + public listSupportedImages( + options?: AccountListSupportedImagesOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listSupportedImagesPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; }, - listSupportedImagesOperationSpec, - callback - ) as Promise; + byPage: () => { + return this.listSupportedImagesPagingPage(options); + } + }; + } + + private async *listSupportedImagesPagingPage( + options?: AccountListSupportedImagesOptionalParams + ): AsyncIterableIterator { + let result = await this._listSupportedImages(options); + yield result.value || []; + let continuationToken = result.odataNextLink; + while (continuationToken) { + result = await this._listSupportedImagesNext(continuationToken, options); + continuationToken = result.odataNextLink; + yield result.value || []; + } + } + + private async *listSupportedImagesPagingAll( + options?: AccountListSupportedImagesOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listSupportedImagesPagingPage(options)) { + yield* page; + } } /** - * Gets the number of Compute Nodes in each state, grouped by Pool. Note that the numbers returned - * may not always be up to date. If you need exact node counts, use a list query. - * @param [options] The optional parameters - * @returns Promise - */ - listPoolNodeCounts( - options?: Models.AccountListPoolNodeCountsOptionalParams - ): Promise; - /** - * @param callback The callback - */ - listPoolNodeCounts(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback + * Gets the number of Compute Nodes in each state, grouped by Pool. Note that the numbers returned may + * not always be up to date. If you need exact node counts, use a list query. + * @param options The options parameters. */ - listPoolNodeCounts( - options: Models.AccountListPoolNodeCountsOptionalParams, - callback: msRest.ServiceCallback - ): void; - listPoolNodeCounts( - options?: - | Models.AccountListPoolNodeCountsOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - options + public listPoolNodeCounts( + options?: AccountListPoolNodeCountsOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPoolNodeCountsPagingAll(options); + return { + next() { + return iter.next(); }, - listPoolNodeCountsOperationSpec, - callback - ) as Promise; + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPoolNodeCountsPagingPage(options); + } + }; + } + + private async *listPoolNodeCountsPagingPage( + options?: AccountListPoolNodeCountsOptionalParams + ): AsyncIterableIterator { + let result = await this._listPoolNodeCounts(options); + yield result.value || []; + let continuationToken = result.odataNextLink; + while (continuationToken) { + result = await this._listPoolNodeCountsNext(continuationToken, options); + continuationToken = result.odataNextLink; + yield result.value || []; + } + } + + private async *listPoolNodeCountsPagingAll( + options?: AccountListPoolNodeCountsOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPoolNodeCountsPagingPage(options)) { + yield* page; + } } /** - * @summary Lists all Virtual Machine Images supported by the Azure Batch service. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listSupportedImagesNext( - nextPageLink: string, - options?: Models.AccountListSupportedImagesNextOptionalParams - ): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listSupportedImagesNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * Lists all Virtual Machine Images supported by the Azure Batch service. + * @param options The options parameters. */ - listSupportedImagesNext( - nextPageLink: string, - options: Models.AccountListSupportedImagesNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listSupportedImagesNext( - nextPageLink: string, - options?: - | Models.AccountListSupportedImagesNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + private _listSupportedImages( + options?: AccountListSupportedImagesOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listSupportedImagesNextOperationSpec, - callback - ) as Promise; + { options }, + listSupportedImagesOperationSpec + ); } /** - * Gets the number of Compute Nodes in each state, grouped by Pool. Note that the numbers returned - * may not always be up to date. If you need exact node counts, use a list query. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise + * Gets the number of Compute Nodes in each state, grouped by Pool. Note that the numbers returned may + * not always be up to date. If you need exact node counts, use a list query. + * @param options The options parameters. */ - listPoolNodeCountsNext( - nextPageLink: string, - options?: Models.AccountListPoolNodeCountsNextOptionalParams - ): Promise; + private _listPoolNodeCounts( + options?: AccountListPoolNodeCountsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listPoolNodeCountsOperationSpec + ); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * ListSupportedImagesNext + * @param nextLink The nextLink from the previous successful call to the ListSupportedImages method. + * @param options The options parameters. */ - listPoolNodeCountsNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + private _listSupportedImagesNext( + nextLink: string, + options?: AccountListSupportedImagesNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listSupportedImagesNextOperationSpec + ); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListPoolNodeCountsNext + * @param nextLink The nextLink from the previous successful call to the ListPoolNodeCounts method. + * @param options The options parameters. */ - listPoolNodeCountsNext( - nextPageLink: string, - options: Models.AccountListPoolNodeCountsNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listPoolNodeCountsNext( - nextPageLink: string, - options?: - | Models.AccountListPoolNodeCountsNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + private _listPoolNodeCountsNext( + nextLink: string, + options?: AccountListPoolNodeCountsNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listPoolNodeCountsNextOperationSpec, - callback - ) as Promise; + { nextLink, options }, + listPoolNodeCountsNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listSupportedImagesOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listSupportedImagesOperationSpec: coreClient.OperationSpec = { + path: "/supportedimages", httpMethod: "GET", - path: "supportedimages", - urlParameters: [Parameters.batchUrl], + responses: { + 200: { + bodyMapper: Mappers.AccountListSupportedImagesResult, + headersMapper: Mappers.AccountListSupportedImagesHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, queryParameters: [ Parameters.apiVersion, Parameters.filter2, Parameters.maxResults3, Parameters.timeout17 ], + urlParameters: [Parameters.batchUrl], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId20, - Parameters.returnClientRequestId20, - Parameters.ocpDate20 + Parameters.accept, + Parameters.clientRequestId17, + Parameters.returnClientRequestId17, + Parameters.ocpDate17 ], + serializer +}; +const listPoolNodeCountsOperationSpec: coreClient.OperationSpec = { + path: "/nodecounts", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccountListSupportedImagesResult, - headersMapper: Mappers.AccountListSupportedImagesHeaders + bodyMapper: Mappers.PoolNodeCountsListResult, + headersMapper: Mappers.AccountListPoolNodeCountsHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.AccountListSupportedImagesHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const listPoolNodeCountsOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "nodecounts", - urlParameters: [Parameters.batchUrl], queryParameters: [ Parameters.apiVersion, Parameters.filter3, Parameters.maxResults4, Parameters.timeout18 ], + urlParameters: [Parameters.batchUrl], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId21, - Parameters.returnClientRequestId21, - Parameters.ocpDate21 + Parameters.accept, + Parameters.clientRequestId18, + Parameters.returnClientRequestId18, + Parameters.ocpDate18 ], - responses: { - 200: { - bodyMapper: Mappers.PoolNodeCountsListResult, - headersMapper: Mappers.AccountListPoolNodeCountsHeaders - }, - default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.AccountListPoolNodeCountsHeaders - } - }, serializer }; - -const listSupportedImagesNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "{batchUrl}", +const listSupportedImagesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId22, - Parameters.returnClientRequestId22, - Parameters.ocpDate22 - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.AccountListSupportedImagesResult, - headersMapper: Mappers.AccountListSupportedImagesHeaders + headersMapper: Mappers.AccountListSupportedImagesNextHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.AccountListSupportedImagesHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter2, + Parameters.maxResults3, + Parameters.timeout17 + ], + urlParameters: [Parameters.batchUrl, Parameters.nextLink], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId17, + Parameters.returnClientRequestId17, + Parameters.ocpDate17 + ], serializer }; - -const listPoolNodeCountsNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "{batchUrl}", +const listPoolNodeCountsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId23, - Parameters.returnClientRequestId23, - Parameters.ocpDate23 - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PoolNodeCountsListResult, - headersMapper: Mappers.AccountListPoolNodeCountsHeaders + headersMapper: Mappers.AccountListPoolNodeCountsNextHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.AccountListPoolNodeCountsHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter3, + Parameters.maxResults4, + Parameters.timeout18 + ], + urlParameters: [Parameters.batchUrl, Parameters.nextLink], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId18, + Parameters.returnClientRequestId18, + Parameters.ocpDate18 + ], serializer }; diff --git a/sdk/batch/batch/src/operations/application.ts b/sdk/batch/batch/src/operations/application.ts index 113c0b25bd6b..60cb7bebe141 100644 --- a/sdk/batch/batch/src/operations/application.ts +++ b/sdk/batch/batch/src/operations/application.ts @@ -3,232 +3,203 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/applicationMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Application } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { BatchServiceClientContext } from "../batchServiceClientContext"; +import { BatchServiceClient } from "../batchServiceClient"; +import { + ApplicationSummary, + ApplicationListNextOptionalParams, + ApplicationListOptionalParams, + ApplicationListResponse, + ApplicationGetOptionalParams, + ApplicationGetResponse, + ApplicationListNextResponse +} from "../models"; -/** Class representing a Application. */ -export class Application { - private readonly client: BatchServiceClientContext; +/// +/** Class containing Application operations. */ +export class ApplicationImpl implements Application { + private readonly client: BatchServiceClient; /** - * Create a Application. - * @param {BatchServiceClientContext} client Reference to the service client. + * Initialize a new instance of the class Application class. + * @param client Reference to the service client */ - constructor(client: BatchServiceClientContext) { + constructor(client: BatchServiceClient) { this.client = client; } /** - * This operation returns only Applications and versions that are available for use on Compute - * Nodes; that is, that can be used in an Package reference. For administrator information about - * applications and versions that are not yet available to Compute Nodes, use the Azure portal or - * the Azure Resource Manager API. - * @summary Lists all of the applications available in the specified Account. - * @param [options] The optional parameters - * @returns Promise + * This operation returns only Applications and versions that are available for use on Compute Nodes; + * that is, that can be used in an Package reference. For administrator information about applications + * and versions that are not yet available to Compute Nodes, use the Azure portal or the Azure Resource + * Manager API. + * @param options The options parameters. */ - list(options?: Models.ApplicationListOptionalParams): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list( - options: Models.ApplicationListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - options?: - | Models.ApplicationListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - options + public list( + options?: ApplicationListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; }, - listOperationSpec, - callback - ) as Promise; + byPage: () => { + return this.listPagingPage(options); + } + }; + } + + private async *listPagingPage( + options?: ApplicationListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(options); + yield result.value || []; + let continuationToken = result.odataNextLink; + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.odataNextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + options?: ApplicationListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } } /** - * This operation returns only Applications and versions that are available for use on Compute - * Nodes; that is, that can be used in an Package reference. For administrator information about - * Applications and versions that are not yet available to Compute Nodes, use the Azure portal or - * the Azure Resource Manager API. - * @summary Gets information about the specified Application. - * @param applicationId The ID of the Application. - * @param [options] The optional parameters - * @returns Promise - */ - get( - applicationId: string, - options?: Models.ApplicationGetOptionalParams - ): Promise; - /** - * @param applicationId The ID of the Application. - * @param callback The callback + * This operation returns only Applications and versions that are available for use on Compute Nodes; + * that is, that can be used in an Package reference. For administrator information about applications + * and versions that are not yet available to Compute Nodes, use the Azure portal or the Azure Resource + * Manager API. + * @param options The options parameters. */ - get(applicationId: string, callback: msRest.ServiceCallback): void; + private _list( + options?: ApplicationListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + /** + * This operation returns only Applications and versions that are available for use on Compute Nodes; + * that is, that can be used in an Package reference. For administrator information about Applications + * and versions that are not yet available to Compute Nodes, use the Azure portal or the Azure Resource + * Manager API. * @param applicationId The ID of the Application. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ get( applicationId: string, - options: Models.ApplicationGetOptionalParams, - callback: msRest.ServiceCallback - ): void; - get( - applicationId: string, - options?: - | Models.ApplicationGetOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: ApplicationGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - applicationId, - options - }, - getOperationSpec, - callback - ) as Promise; + { applicationId, options }, + getOperationSpec + ); } /** - * This operation returns only Applications and versions that are available for use on Compute - * Nodes; that is, that can be used in an Package reference. For administrator information about - * applications and versions that are not yet available to Compute Nodes, use the Azure portal or - * the Azure Resource Manager API. - * @summary Lists all of the applications available in the specified Account. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext( - nextPageLink: string, - options?: Models.ApplicationListNextOptionalParams - ): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext( - nextPageLink: string, - options: Models.ApplicationListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.ApplicationListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + private _listNext( + nextLink: string, + options?: ApplicationListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback - ) as Promise; + { nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/applications", httpMethod: "GET", - path: "applications", - urlParameters: [Parameters.batchUrl], - queryParameters: [Parameters.apiVersion, Parameters.maxResults0, Parameters.timeout0], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId0, - Parameters.returnClientRequestId0, - Parameters.ocpDate0 - ], responses: { 200: { bodyMapper: Mappers.ApplicationListResult, headersMapper: Mappers.ApplicationListHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.ApplicationListHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.maxResults, + Parameters.timeout, + Parameters.apiVersion + ], + urlParameters: [Parameters.batchUrl], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId, + Parameters.returnClientRequestId, + Parameters.ocpDate + ], serializer }; - -const getOperationSpec: msRest.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { + path: "/applications/{applicationId}", httpMethod: "GET", - path: "applications/{applicationId}", - urlParameters: [Parameters.batchUrl, Parameters.applicationId], - queryParameters: [Parameters.apiVersion, Parameters.timeout1], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId1, - Parameters.returnClientRequestId1, - Parameters.ocpDate1 - ], responses: { 200: { bodyMapper: Mappers.ApplicationSummary, headersMapper: Mappers.ApplicationGetHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.ApplicationGetHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [Parameters.apiVersion, Parameters.timeout1], + urlParameters: [Parameters.batchUrl, Parameters.applicationId], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId1, + Parameters.returnClientRequestId1, + Parameters.ocpDate1 + ], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "{batchUrl}", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId2, - Parameters.returnClientRequestId2, - Parameters.ocpDate2 - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ApplicationListResult, - headersMapper: Mappers.ApplicationListHeaders + headersMapper: Mappers.ApplicationListNextHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.ApplicationListHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.maxResults, + Parameters.timeout, + Parameters.apiVersion + ], + urlParameters: [Parameters.batchUrl, Parameters.nextLink], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId, + Parameters.returnClientRequestId, + Parameters.ocpDate + ], serializer }; diff --git a/sdk/batch/batch/src/operations/certificateOperations.ts b/sdk/batch/batch/src/operations/certificateOperations.ts index 2fc787965565..a39a02efb550 100644 --- a/sdk/batch/batch/src/operations/certificateOperations.ts +++ b/sdk/batch/batch/src/operations/certificateOperations.ts @@ -3,360 +3,229 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/certificateOperationsMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { CertificateOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { BatchServiceClientContext } from "../batchServiceClientContext"; +import { BatchServiceClient } from "../batchServiceClient"; +import { + Certificate, + CertificateListNextOptionalParams, + CertificateListOptionalParams, + CertificateAddParameter, + CertificateAddOptionalParams, + CertificateAddResponse, + CertificateListResponse, + CertificateCancelDeletionOptionalParams, + CertificateCancelDeletionResponse, + CertificateDeleteOptionalParams, + CertificateDeleteResponse, + CertificateGetOptionalParams, + CertificateGetResponse, + CertificateListNextResponse +} from "../models"; -/** Class representing a CertificateOperations. */ -export class CertificateOperations { - private readonly client: BatchServiceClientContext; +/// +/** Class containing CertificateOperations operations. */ +export class CertificateOperationsImpl implements CertificateOperations { + private readonly client: BatchServiceClient; /** - * Create a CertificateOperations. - * @param {BatchServiceClientContext} client Reference to the service client. + * Initialize a new instance of the class CertificateOperations class. + * @param client Reference to the service client */ - constructor(client: BatchServiceClientContext) { + constructor(client: BatchServiceClient) { this.client = client; } /** - * @summary Adds a Certificate to the specified Account. - * @param certificate The Certificate to be added. - * @param [options] The optional parameters - * @returns Promise - */ - add( - certificate: Models.CertificateAddParameter, - options?: Models.CertificateAddOptionalParams - ): Promise; - /** - * @param certificate The Certificate to be added. - * @param callback The callback + * Lists all of the Certificates that have been added to the specified Account. + * @param options The options parameters. */ - add(certificate: Models.CertificateAddParameter, callback: msRest.ServiceCallback): void; + public list( + options?: CertificateListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(options); + } + }; + } + + private async *listPagingPage( + options?: CertificateListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(options); + yield result.value || []; + let continuationToken = result.odataNextLink; + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.odataNextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + options?: CertificateListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + /** + * Adds a Certificate to the specified Account. * @param certificate The Certificate to be added. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ add( - certificate: Models.CertificateAddParameter, - options: Models.CertificateAddOptionalParams, - callback: msRest.ServiceCallback - ): void; - add( - certificate: Models.CertificateAddParameter, - options?: Models.CertificateAddOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + certificate: CertificateAddParameter, + options?: CertificateAddOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - certificate, - options - }, - addOperationSpec, - callback - ) as Promise; + { certificate, options }, + addOperationSpec + ); } /** - * @summary Lists all of the Certificates that have been added to the specified Account. - * @param [options] The optional parameters - * @returns Promise + * Lists all of the Certificates that have been added to the specified Account. + * @param options The options parameters. */ - list(options?: Models.CertificateListOptionalParams): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list( - options: Models.CertificateListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - options?: - | Models.CertificateListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback - ) as Promise; + private _list( + options?: CertificateListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); } /** - * 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. - * @summary Cancels a failed deletion of a Certificate from the specified Account. - * @param thumbprintAlgorithm The algorithm used to derive the thumbprint parameter. This must be - * sha1. - * @param thumbprint The thumbprint of the Certificate being deleted. - * @param [options] The optional parameters - * @returns Promise - */ - cancelDeletion( - thumbprintAlgorithm: string, - thumbprint: string, - options?: Models.CertificateCancelDeletionOptionalParams - ): Promise; - /** - * @param thumbprintAlgorithm The algorithm used to derive the thumbprint parameter. This must be - * sha1. + * 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. + * @param thumbprintAlgorithm The algorithm used to derive the thumbprint parameter. This must be sha1. * @param thumbprint The thumbprint of the Certificate being deleted. - * @param callback The callback + * @param options The options parameters. */ cancelDeletion( thumbprintAlgorithm: string, thumbprint: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param thumbprintAlgorithm The algorithm used to derive the thumbprint parameter. This must be - * sha1. - * @param thumbprint The thumbprint of the Certificate being deleted. - * @param options The optional parameters - * @param callback The callback - */ - cancelDeletion( - thumbprintAlgorithm: string, - thumbprint: string, - options: Models.CertificateCancelDeletionOptionalParams, - callback: msRest.ServiceCallback - ): void; - cancelDeletion( - thumbprintAlgorithm: string, - thumbprint: string, - options?: Models.CertificateCancelDeletionOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: CertificateCancelDeletionOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - thumbprintAlgorithm, - thumbprint, - options - }, - cancelDeletionOperationSpec, - callback - ) as Promise; + { thumbprintAlgorithm, thumbprint, options }, + cancelDeletionOperationSpec + ); } /** * 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. - * @summary Deletes a Certificate from the specified Account. - * @param thumbprintAlgorithm The algorithm used to derive the thumbprint parameter. This must be - * sha1. + * 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. + * @param thumbprintAlgorithm The algorithm used to derive the thumbprint parameter. This must be sha1. * @param thumbprint The thumbprint of the Certificate to be deleted. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - deleteMethod( + delete( thumbprintAlgorithm: string, thumbprint: string, - options?: Models.CertificateDeleteMethodOptionalParams - ): Promise; - /** - * @param thumbprintAlgorithm The algorithm used to derive the thumbprint parameter. This must be - * sha1. - * @param thumbprint The thumbprint of the Certificate to be deleted. - * @param callback The callback - */ - deleteMethod( - thumbprintAlgorithm: string, - thumbprint: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param thumbprintAlgorithm The algorithm used to derive the thumbprint parameter. This must be - * sha1. - * @param thumbprint The thumbprint of the Certificate to be deleted. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod( - thumbprintAlgorithm: string, - thumbprint: string, - options: Models.CertificateDeleteMethodOptionalParams, - callback: msRest.ServiceCallback - ): void; - deleteMethod( - thumbprintAlgorithm: string, - thumbprint: string, - options?: Models.CertificateDeleteMethodOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: CertificateDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - thumbprintAlgorithm, - thumbprint, - options - }, - deleteMethodOperationSpec, - callback - ) as Promise; + { thumbprintAlgorithm, thumbprint, options }, + deleteOperationSpec + ); } /** * Gets information about the specified Certificate. - * @param thumbprintAlgorithm The algorithm used to derive the thumbprint parameter. This must be - * sha1. - * @param thumbprint The thumbprint of the Certificate to get. - * @param [options] The optional parameters - * @returns Promise - */ - get( - thumbprintAlgorithm: string, - thumbprint: string, - options?: Models.CertificateGetOptionalParams - ): Promise; - /** - * @param thumbprintAlgorithm The algorithm used to derive the thumbprint parameter. This must be - * sha1. + * @param thumbprintAlgorithm The algorithm used to derive the thumbprint parameter. This must be sha1. * @param thumbprint The thumbprint of the Certificate to get. - * @param callback The callback + * @param options The options parameters. */ get( thumbprintAlgorithm: string, thumbprint: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param thumbprintAlgorithm The algorithm used to derive the thumbprint parameter. This must be - * sha1. - * @param thumbprint The thumbprint of the Certificate to get. - * @param options The optional parameters - * @param callback The callback - */ - get( - thumbprintAlgorithm: string, - thumbprint: string, - options: Models.CertificateGetOptionalParams, - callback: msRest.ServiceCallback - ): void; - get( - thumbprintAlgorithm: string, - thumbprint: string, - options?: Models.CertificateGetOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: CertificateGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - thumbprintAlgorithm, - thumbprint, - options - }, - getOperationSpec, - callback - ) as Promise; + { thumbprintAlgorithm, thumbprint, options }, + getOperationSpec + ); } /** - * @summary Lists all of the Certificates that have been added to the specified Account. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext( - nextPageLink: string, - options?: Models.CertificateListNextOptionalParams - ): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listNext( - nextPageLink: string, - options: Models.CertificateListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.CertificateListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + private _listNext( + nextLink: string, + options?: CertificateListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback - ) as Promise; + { nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const addOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const addOperationSpec: coreClient.OperationSpec = { + path: "/certificates", httpMethod: "POST", - path: "certificates", - urlParameters: [Parameters.batchUrl], - queryParameters: [Parameters.apiVersion, Parameters.timeout32], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId40, - Parameters.returnClientRequestId40, - Parameters.ocpDate40 - ], - requestBody: { - parameterPath: "certificate", - mapper: { - ...Mappers.CertificateAddParameter, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", responses: { 201: { headersMapper: Mappers.CertificateAddHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.CertificateAddHeaders + bodyMapper: Mappers.BatchError } }, + requestBody: Parameters.certificate, + queryParameters: [Parameters.apiVersion, Parameters.timeout32], + urlParameters: [Parameters.batchUrl], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId32, + Parameters.returnClientRequestId32, + Parameters.ocpDate32 + ], + mediaType: "json", serializer }; - -const listOperationSpec: msRest.OperationSpec = { +const listOperationSpec: coreClient.OperationSpec = { + path: "/certificates", httpMethod: "GET", - path: "certificates", - urlParameters: [Parameters.batchUrl], + responses: { + 200: { + bodyMapper: Mappers.CertificateListResult, + headersMapper: Mappers.CertificateListHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, queryParameters: [ Parameters.apiVersion, Parameters.filter7, @@ -364,117 +233,123 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.maxResults8, Parameters.timeout33 ], + urlParameters: [Parameters.batchUrl], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId41, - Parameters.returnClientRequestId41, - Parameters.ocpDate41 + Parameters.accept, + Parameters.clientRequestId33, + Parameters.returnClientRequestId33, + Parameters.ocpDate33 ], - responses: { - 200: { - bodyMapper: Mappers.CertificateListResult, - headersMapper: Mappers.CertificateListHeaders - }, - default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.CertificateListHeaders - } - }, serializer }; - -const cancelDeletionOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", +const cancelDeletionOperationSpec: coreClient.OperationSpec = { path: - "certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})/canceldelete", - urlParameters: [Parameters.batchUrl, Parameters.thumbprintAlgorithm, Parameters.thumbprint], - queryParameters: [Parameters.apiVersion, Parameters.timeout34], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId42, - Parameters.returnClientRequestId42, - Parameters.ocpDate42 - ], + "/certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})/canceldelete", + httpMethod: "POST", responses: { 204: { headersMapper: Mappers.CertificateCancelDeletionHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.CertificateCancelDeletionHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [Parameters.apiVersion, Parameters.timeout34], + urlParameters: [ + Parameters.batchUrl, + Parameters.thumbprintAlgorithm, + Parameters.thumbprint + ], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId34, + Parameters.returnClientRequestId34, + Parameters.ocpDate34 + ], serializer }; - -const deleteMethodOperationSpec: msRest.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})", httpMethod: "DELETE", - path: "certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})", - urlParameters: [Parameters.batchUrl, Parameters.thumbprintAlgorithm, Parameters.thumbprint], - queryParameters: [Parameters.apiVersion, Parameters.timeout35], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId43, - Parameters.returnClientRequestId43, - Parameters.ocpDate43 - ], responses: { 202: { headersMapper: Mappers.CertificateDeleteHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.CertificateDeleteHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [Parameters.apiVersion, Parameters.timeout35], + urlParameters: [ + Parameters.batchUrl, + Parameters.thumbprintAlgorithm, + Parameters.thumbprint + ], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId35, + Parameters.returnClientRequestId35, + Parameters.ocpDate35 + ], serializer }; - -const getOperationSpec: msRest.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { + path: + "/certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})", httpMethod: "GET", - path: "certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})", - urlParameters: [Parameters.batchUrl, Parameters.thumbprintAlgorithm, Parameters.thumbprint], - queryParameters: [Parameters.apiVersion, Parameters.select7, Parameters.timeout36], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId44, - Parameters.returnClientRequestId44, - Parameters.ocpDate44 - ], responses: { 200: { bodyMapper: Mappers.Certificate, headersMapper: Mappers.CertificateGetHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.CertificateGetHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.apiVersion, + Parameters.select7, + Parameters.timeout36 + ], + urlParameters: [ + Parameters.batchUrl, + Parameters.thumbprintAlgorithm, + Parameters.thumbprint + ], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId36, + Parameters.returnClientRequestId36, + Parameters.ocpDate36 + ], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "{batchUrl}", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId45, - Parameters.returnClientRequestId45, - Parameters.ocpDate45 - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.CertificateListResult, - headersMapper: Mappers.CertificateListHeaders + headersMapper: Mappers.CertificateListNextHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.CertificateListHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter7, + Parameters.select6, + Parameters.maxResults8, + Parameters.timeout33 + ], + urlParameters: [Parameters.batchUrl, Parameters.nextLink], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId33, + Parameters.returnClientRequestId33, + Parameters.ocpDate33 + ], serializer }; diff --git a/sdk/batch/batch/src/operations/computeNodeExtension.ts b/sdk/batch/batch/src/operations/computeNodeExtension.ts index a71422207707..72946782f445 100644 --- a/sdk/batch/batch/src/operations/computeNodeExtension.ts +++ b/sdk/batch/batch/src/operations/computeNodeExtension.ts @@ -3,272 +3,234 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/computeNodeExtensionMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { ComputeNodeExtension } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { BatchServiceClientContext } from "../batchServiceClientContext"; +import { BatchServiceClient } from "../batchServiceClient"; +import { + NodeVMExtension, + ComputeNodeExtensionListNextOptionalParams, + ComputeNodeExtensionListOptionalParams, + ComputeNodeExtensionGetOptionalParams, + ComputeNodeExtensionGetResponse, + ComputeNodeExtensionListResponse, + ComputeNodeExtensionListNextResponse +} from "../models"; -/** Class representing a ComputeNodeExtension. */ -export class ComputeNodeExtension { - private readonly client: BatchServiceClientContext; +/// +/** Class containing ComputeNodeExtension operations. */ +export class ComputeNodeExtensionImpl implements ComputeNodeExtension { + private readonly client: BatchServiceClient; /** - * Create a ComputeNodeExtension. - * @param {BatchServiceClientContext} client Reference to the service client. + * Initialize a new instance of the class ComputeNodeExtension class. + * @param client Reference to the service client */ - constructor(client: BatchServiceClientContext) { + constructor(client: BatchServiceClient) { this.client = client; } /** - * @summary Gets information about the specified Compute Node Extension. - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node that contains the extensions. - * @param extensionName The name of the of the Compute Node Extension that you want to get - * information about. - * @param [options] The optional parameters - * @returns Promise + * Lists the Compute Nodes Extensions in the specified Pool. + * @param poolId The ID of the Pool that contains Compute Node. + * @param nodeId The ID of the Compute Node that you want to list extensions. + * @param options The options parameters. */ - get( + public list( poolId: string, nodeId: string, - extensionName: string, - options?: Models.ComputeNodeExtensionGetOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node that contains the extensions. - * @param extensionName The name of the of the Compute Node Extension that you want to get - * information about. - * @param callback The callback - */ - get( + options?: ComputeNodeExtensionListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(poolId, nodeId, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(poolId, nodeId, options); + } + }; + } + + private async *listPagingPage( poolId: string, nodeId: string, - extensionName: string, - callback: msRest.ServiceCallback - ): void; + options?: ComputeNodeExtensionListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(poolId, nodeId, options); + yield result.value || []; + let continuationToken = result.odataNextLink; + while (continuationToken) { + result = await this._listNext(poolId, nodeId, continuationToken, options); + continuationToken = result.odataNextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + poolId: string, + nodeId: string, + options?: ComputeNodeExtensionListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(poolId, nodeId, options)) { + yield* page; + } + } + /** + * Gets information about the specified Compute Node Extension. * @param poolId The ID of the Pool that contains the Compute Node. * @param nodeId The ID of the Compute Node that contains the extensions. - * @param extensionName The name of the of the Compute Node Extension that you want to get - * information about. - * @param options The optional parameters - * @param callback The callback + * @param extensionName The name of the of the Compute Node Extension that you want to get information + * about. + * @param options The options parameters. */ get( poolId: string, nodeId: string, extensionName: string, - options: Models.ComputeNodeExtensionGetOptionalParams, - callback: msRest.ServiceCallback - ): void; - get( - poolId: string, - nodeId: string, - extensionName: string, - options?: - | Models.ComputeNodeExtensionGetOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: ComputeNodeExtensionGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - nodeId, - extensionName, - options - }, - getOperationSpec, - callback - ) as Promise; + { poolId, nodeId, extensionName, options }, + getOperationSpec + ); } /** - * @summary Lists the Compute Nodes Extensions in the specified Pool. + * Lists the Compute Nodes Extensions in the specified Pool. * @param poolId The ID of the Pool that contains Compute Node. * @param nodeId The ID of the Compute Node that you want to list extensions. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list( + private _list( poolId: string, nodeId: string, - options?: Models.ComputeNodeExtensionListOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool that contains Compute Node. - * @param nodeId The ID of the Compute Node that you want to list extensions. - * @param callback The callback - */ - list( - poolId: string, - nodeId: string, - callback: msRest.ServiceCallback - ): void; + options?: ComputeNodeExtensionListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { poolId, nodeId, options }, + listOperationSpec + ); + } + /** + * ListNext * @param poolId The ID of the Pool that contains Compute Node. * @param nodeId The ID of the Compute Node that you want to list extensions. - * @param options The optional parameters - * @param callback The callback + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - list( - poolId: string, - nodeId: string, - options: Models.ComputeNodeExtensionListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( + private _listNext( poolId: string, nodeId: string, - options?: - | Models.ComputeNodeExtensionListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + nextLink: string, + options?: ComputeNodeExtensionListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - nodeId, - options - }, - listOperationSpec, - callback - ) as Promise; - } - - /** - * @summary Lists the Compute Nodes Extensions in the specified Pool. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext( - nextPageLink: string, - options?: Models.ComputeNodeExtensionListNextOptionalParams - ): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listNext( - nextPageLink: string, - options: Models.ComputeNodeExtensionListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.ComputeNodeExtensionListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback - ) as Promise; + { poolId, nodeId, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/nodes/{nodeId}/extensions/{extensionName}", httpMethod: "GET", - path: "pools/{poolId}/nodes/{nodeId}/extensions/{extensionName}", + responses: { + 200: { + bodyMapper: Mappers.NodeVMExtension, + headersMapper: Mappers.ComputeNodeExtensionGetHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.select15, + Parameters.timeout76 + ], urlParameters: [ Parameters.batchUrl, Parameters.poolId, Parameters.nodeId, Parameters.extensionName ], - queryParameters: [Parameters.apiVersion, Parameters.select15, Parameters.timeout76], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId90, - Parameters.returnClientRequestId90, - Parameters.ocpDate90 + Parameters.accept, + Parameters.clientRequestId76, + Parameters.returnClientRequestId76, + Parameters.ocpDate76 ], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/nodes/{nodeId}/extensions", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NodeVMExtension, - headersMapper: Mappers.ComputeNodeExtensionGetHeaders + bodyMapper: Mappers.NodeVMExtensionList, + headersMapper: Mappers.ComputeNodeExtensionListHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.ComputeNodeExtensionGetHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "pools/{poolId}/nodes/{nodeId}/extensions", - urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId], queryParameters: [ Parameters.apiVersion, Parameters.select16, Parameters.maxResults14, Parameters.timeout77 ], + urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId91, - Parameters.returnClientRequestId91, - Parameters.ocpDate91 + Parameters.accept, + Parameters.clientRequestId77, + Parameters.returnClientRequestId77, + Parameters.ocpDate77 ], - responses: { - 200: { - bodyMapper: Mappers.NodeVMExtensionList, - headersMapper: Mappers.ComputeNodeExtensionListHeaders - }, - default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.ComputeNodeExtensionListHeaders - } - }, serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "{batchUrl}", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId92, - Parameters.returnClientRequestId92, - Parameters.ocpDate92 - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.NodeVMExtensionList, - headersMapper: Mappers.ComputeNodeExtensionListHeaders + headersMapper: Mappers.ComputeNodeExtensionListNextHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.ComputeNodeExtensionListHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.apiVersion, + Parameters.select16, + Parameters.maxResults14, + Parameters.timeout77 + ], + urlParameters: [ + Parameters.batchUrl, + Parameters.nextLink, + Parameters.poolId, + Parameters.nodeId + ], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId77, + Parameters.returnClientRequestId77, + Parameters.ocpDate77 + ], serializer }; diff --git a/sdk/batch/batch/src/operations/computeNodeOperations.ts b/sdk/batch/batch/src/operations/computeNodeOperations.ts index 7c971df40e9a..59cf324df43a 100644 --- a/sdk/batch/batch/src/operations/computeNodeOperations.ts +++ b/sdk/batch/batch/src/operations/computeNodeOperations.ts @@ -3,1046 +3,633 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/computeNodeOperationsMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { ComputeNodeOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { BatchServiceClientContext } from "../batchServiceClientContext"; +import { BatchServiceClient } from "../batchServiceClient"; +import { + ComputeNode, + ComputeNodeListNextOptionalParams, + ComputeNodeListOptionalParams, + ComputeNodeUser, + ComputeNodeAddUserOptionalParams, + ComputeNodeAddUserResponse, + ComputeNodeDeleteUserOptionalParams, + ComputeNodeDeleteUserResponse, + NodeUpdateUserParameter, + ComputeNodeUpdateUserOptionalParams, + ComputeNodeUpdateUserResponse, + ComputeNodeGetOptionalParams, + ComputeNodeGetResponse, + ComputeNodeRebootOptionalParams, + ComputeNodeRebootResponse, + ComputeNodeReimageOptionalParams, + ComputeNodeReimageResponse, + ComputeNodeDisableSchedulingOptionalParams, + ComputeNodeDisableSchedulingResponse, + ComputeNodeEnableSchedulingOptionalParams, + ComputeNodeEnableSchedulingResponse, + ComputeNodeGetRemoteLoginSettingsOptionalParams, + ComputeNodeGetRemoteLoginSettingsResponse, + ComputeNodeGetRemoteDesktopOptionalParams, + ComputeNodeGetRemoteDesktopResponse, + UploadBatchServiceLogsConfiguration, + ComputeNodeUploadBatchServiceLogsOptionalParams, + ComputeNodeUploadBatchServiceLogsResponse, + ComputeNodeListResponse, + ComputeNodeListNextResponse +} from "../models"; -/** Class representing a ComputeNodeOperations. */ -export class ComputeNodeOperations { - private readonly client: BatchServiceClientContext; +/// +/** Class containing ComputeNodeOperations operations. */ +export class ComputeNodeOperationsImpl implements ComputeNodeOperations { + private readonly client: BatchServiceClient; /** - * Create a ComputeNodeOperations. - * @param {BatchServiceClientContext} client Reference to the service client. + * Initialize a new instance of the class ComputeNodeOperations class. + * @param client Reference to the service client */ - constructor(client: BatchServiceClientContext) { + constructor(client: BatchServiceClient) { this.client = client; } /** - * You can add a user Account to a Compute Node only when it is in the idle or running state. - * @summary Adds a user Account to the specified Compute Node. - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the machine on which you want to create a user Account. - * @param user The user Account to be created. - * @param [options] The optional parameters - * @returns Promise + * Lists the Compute Nodes in the specified Pool. + * @param poolId The ID of the Pool from which you want to list Compute Nodes. + * @param options The options parameters. */ - addUser( + public list( poolId: string, - nodeId: string, - user: Models.ComputeNodeUser, - options?: Models.ComputeNodeAddUserOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the machine on which you want to create a user Account. - * @param user The user Account to be created. - * @param callback The callback - */ - addUser( + options?: ComputeNodeListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(poolId, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(poolId, options); + } + }; + } + + private async *listPagingPage( + poolId: string, + options?: ComputeNodeListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(poolId, options); + yield result.value || []; + let continuationToken = result.odataNextLink; + while (continuationToken) { + result = await this._listNext(poolId, continuationToken, options); + continuationToken = result.odataNextLink; + yield result.value || []; + } + } + + private async *listPagingAll( poolId: string, - nodeId: string, - user: Models.ComputeNodeUser, - callback: msRest.ServiceCallback - ): void; + options?: ComputeNodeListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(poolId, options)) { + yield* page; + } + } + /** + * You can add a user Account to a Compute Node only when it is in the idle or running state. * @param poolId The ID of the Pool that contains the Compute Node. * @param nodeId The ID of the machine on which you want to create a user Account. * @param user The user Account to be created. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ addUser( poolId: string, nodeId: string, - user: Models.ComputeNodeUser, - options: Models.ComputeNodeAddUserOptionalParams, - callback: msRest.ServiceCallback - ): void; - addUser( - poolId: string, - nodeId: string, - user: Models.ComputeNodeUser, - options?: Models.ComputeNodeAddUserOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + user: ComputeNodeUser, + options?: ComputeNodeAddUserOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - nodeId, - user, - options - }, - addUserOperationSpec, - callback - ) as Promise; + { poolId, nodeId, user, options }, + addUserOperationSpec + ); } /** * You can delete a user Account to a Compute Node only when it is in the idle or running state. - * @summary Deletes a user Account from the specified Compute Node. - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the machine on which you want to delete a user Account. - * @param userName The name of the user Account to delete. - * @param [options] The optional parameters - * @returns Promise - */ - deleteUser( - poolId: string, - nodeId: string, - userName: string, - options?: Models.ComputeNodeDeleteUserOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the machine on which you want to delete a user Account. - * @param userName The name of the user Account to delete. - * @param callback The callback - */ - deleteUser( - poolId: string, - nodeId: string, - userName: string, - callback: msRest.ServiceCallback - ): void; - /** * @param poolId The ID of the Pool that contains the Compute Node. * @param nodeId The ID of the machine on which you want to delete a user Account. * @param userName The name of the user Account to delete. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ deleteUser( poolId: string, nodeId: string, userName: string, - options: Models.ComputeNodeDeleteUserOptionalParams, - callback: msRest.ServiceCallback - ): void; - deleteUser( - poolId: string, - nodeId: string, - userName: string, - options?: Models.ComputeNodeDeleteUserOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: ComputeNodeDeleteUserOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - nodeId, - userName, - options - }, - deleteUserOperationSpec, - callback - ) as Promise; + { poolId, nodeId, userName, options }, + deleteUserOperationSpec + ); } /** * This operation replaces of all the updatable properties of the Account. For example, if the - * expiryTime element is not specified, the current value is replaced with the default value, not - * left unmodified. You can update a user Account on a Compute Node only when it is in the idle or - * running state. - * @summary Updates the password and expiration time of a user Account on the specified Compute - * Node. - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the machine on which you want to update a user Account. - * @param userName The name of the user Account to update. - * @param nodeUpdateUserParameter The parameters for the request. - * @param [options] The optional parameters - * @returns Promise - */ - updateUser( - poolId: string, - nodeId: string, - userName: string, - nodeUpdateUserParameter: Models.NodeUpdateUserParameter, - options?: Models.ComputeNodeUpdateUserOptionalParams - ): Promise; - /** + * expiryTime element is not specified, the current value is replaced with the default value, not left + * unmodified. You can update a user Account on a Compute Node only when it is in the idle or running + * state. * @param poolId The ID of the Pool that contains the Compute Node. * @param nodeId The ID of the machine on which you want to update a user Account. * @param userName The name of the user Account to update. * @param nodeUpdateUserParameter The parameters for the request. - * @param callback The callback + * @param options The options parameters. */ updateUser( poolId: string, nodeId: string, userName: string, - nodeUpdateUserParameter: Models.NodeUpdateUserParameter, - callback: msRest.ServiceCallback - ): void; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the machine on which you want to update a user Account. - * @param userName The name of the user Account to update. - * @param nodeUpdateUserParameter The parameters for the request. - * @param options The optional parameters - * @param callback The callback - */ - updateUser( - poolId: string, - nodeId: string, - userName: string, - nodeUpdateUserParameter: Models.NodeUpdateUserParameter, - options: Models.ComputeNodeUpdateUserOptionalParams, - callback: msRest.ServiceCallback - ): void; - updateUser( - poolId: string, - nodeId: string, - userName: string, - nodeUpdateUserParameter: Models.NodeUpdateUserParameter, - options?: Models.ComputeNodeUpdateUserOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + nodeUpdateUserParameter: NodeUpdateUserParameter, + options?: ComputeNodeUpdateUserOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - nodeId, - userName, - nodeUpdateUserParameter, - options - }, - updateUserOperationSpec, - callback - ) as Promise; + { poolId, nodeId, userName, nodeUpdateUserParameter, options }, + updateUserOperationSpec + ); } /** - * @summary Gets information about the specified Compute Node. + * Gets information about the specified Compute Node. * @param poolId The ID of the Pool that contains the Compute Node. * @param nodeId The ID of the Compute Node that you want to get information about. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ get( poolId: string, nodeId: string, - options?: Models.ComputeNodeGetOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node that you want to get information about. - * @param callback The callback - */ - get(poolId: string, nodeId: string, callback: msRest.ServiceCallback): void; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node that you want to get information about. - * @param options The optional parameters - * @param callback The callback - */ - get( - poolId: string, - nodeId: string, - options: Models.ComputeNodeGetOptionalParams, - callback: msRest.ServiceCallback - ): void; - get( - poolId: string, - nodeId: string, - options?: Models.ComputeNodeGetOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: ComputeNodeGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - nodeId, - options - }, - getOperationSpec, - callback - ) as Promise; + { poolId, nodeId, options }, + getOperationSpec + ); } /** * You can restart a Compute Node only if it is in an idle or running state. - * @summary Restarts the specified Compute Node. * @param poolId The ID of the Pool that contains the Compute Node. * @param nodeId The ID of the Compute Node that you want to restart. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ reboot( poolId: string, nodeId: string, - options?: Models.ComputeNodeRebootOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node that you want to restart. - * @param callback The callback - */ - reboot(poolId: string, nodeId: string, callback: msRest.ServiceCallback): void; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node that you want to restart. - * @param options The optional parameters - * @param callback The callback - */ - reboot( - poolId: string, - nodeId: string, - options: Models.ComputeNodeRebootOptionalParams, - callback: msRest.ServiceCallback - ): void; - reboot( - poolId: string, - nodeId: string, - options?: Models.ComputeNodeRebootOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: ComputeNodeRebootOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - nodeId, - options - }, - rebootOperationSpec, - callback - ) as Promise; + { poolId, nodeId, options }, + rebootOperationSpec + ); } /** - * 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. - * @summary Reinstalls the operating system on the specified Compute Node. - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node that you want to restart. - * @param [options] The optional parameters - * @returns Promise - */ - reimage( - poolId: string, - nodeId: string, - options?: Models.ComputeNodeReimageOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node that you want to restart. - * @param callback The callback - */ - reimage(poolId: string, nodeId: string, callback: msRest.ServiceCallback): void; - /** + * 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. * @param poolId The ID of the Pool that contains the Compute Node. * @param nodeId The ID of the Compute Node that you want to restart. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ reimage( poolId: string, nodeId: string, - options: Models.ComputeNodeReimageOptionalParams, - callback: msRest.ServiceCallback - ): void; - reimage( - poolId: string, - nodeId: string, - options?: Models.ComputeNodeReimageOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: ComputeNodeReimageOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - nodeId, - options - }, - reimageOperationSpec, - callback - ) as Promise; + { poolId, nodeId, options }, + reimageOperationSpec + ); } /** - * You can disable Task scheduling on a Compute Node only if its current scheduling state is - * enabled. - * @summary Disables Task scheduling on the specified Compute Node. + * You can disable Task scheduling on a Compute Node only if its current scheduling state is enabled. * @param poolId The ID of the Pool that contains the Compute Node. * @param nodeId The ID of the Compute Node on which you want to disable Task scheduling. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ disableScheduling( poolId: string, nodeId: string, - options?: Models.ComputeNodeDisableSchedulingOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node on which you want to disable Task scheduling. - * @param callback The callback - */ - disableScheduling(poolId: string, nodeId: string, callback: msRest.ServiceCallback): void; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node on which you want to disable Task scheduling. - * @param options The optional parameters - * @param callback The callback - */ - disableScheduling( - poolId: string, - nodeId: string, - options: Models.ComputeNodeDisableSchedulingOptionalParams, - callback: msRest.ServiceCallback - ): void; - disableScheduling( - poolId: string, - nodeId: string, - options?: Models.ComputeNodeDisableSchedulingOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: ComputeNodeDisableSchedulingOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - nodeId, - options - }, - disableSchedulingOperationSpec, - callback - ) as Promise; + { poolId, nodeId, options }, + disableSchedulingOperationSpec + ); } /** - * You can enable Task scheduling on a Compute Node only if its current scheduling state is - * disabled - * @summary Enables Task scheduling on the specified Compute Node. + * You can enable Task scheduling on a Compute Node only if its current scheduling state is disabled * @param poolId The ID of the Pool that contains the Compute Node. * @param nodeId The ID of the Compute Node on which you want to enable Task scheduling. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ enableScheduling( poolId: string, nodeId: string, - options?: Models.ComputeNodeEnableSchedulingOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node on which you want to enable Task scheduling. - * @param callback The callback - */ - enableScheduling(poolId: string, nodeId: string, callback: msRest.ServiceCallback): void; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node on which you want to enable Task scheduling. - * @param options The optional parameters - * @param callback The callback - */ - enableScheduling( - poolId: string, - nodeId: string, - options: Models.ComputeNodeEnableSchedulingOptionalParams, - callback: msRest.ServiceCallback - ): void; - enableScheduling( - poolId: string, - nodeId: string, - options?: Models.ComputeNodeEnableSchedulingOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: ComputeNodeEnableSchedulingOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - nodeId, - options - }, - enableSchedulingOperationSpec, - callback - ) as Promise; + { poolId, nodeId, options }, + enableSchedulingOperationSpec + ); } /** - * 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. - * @summary Gets the settings required for remote login to a Compute Node. - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node for which to obtain the remote login settings. - * @param [options] The optional parameters - * @returns Promise - */ - getRemoteLoginSettings( - poolId: string, - nodeId: string, - options?: Models.ComputeNodeGetRemoteLoginSettingsOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node for which to obtain the remote login settings. - * @param callback The callback - */ - getRemoteLoginSettings( - poolId: string, - nodeId: string, - callback: msRest.ServiceCallback - ): void; - /** + * 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. * @param poolId The ID of the Pool that contains the Compute Node. * @param nodeId The ID of the Compute Node for which to obtain the remote login settings. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ getRemoteLoginSettings( poolId: string, nodeId: string, - options: Models.ComputeNodeGetRemoteLoginSettingsOptionalParams, - callback: msRest.ServiceCallback - ): void; - getRemoteLoginSettings( - poolId: string, - nodeId: string, - options?: - | Models.ComputeNodeGetRemoteLoginSettingsOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: ComputeNodeGetRemoteLoginSettingsOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - nodeId, - options - }, - getRemoteLoginSettingsOperationSpec, - callback - ) as Promise; + { poolId, nodeId, options }, + getRemoteLoginSettingsOperationSpec + ); } /** - * 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. - * @summary Gets the Remote Desktop Protocol file for the specified Compute Node. + * 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. * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node for which you want to get the Remote Desktop Protocol - * file. - * @param [options] The optional parameters - * @returns Promise + * @param nodeId The ID of the Compute Node for which you want to get the Remote Desktop Protocol file. + * @param options The options parameters. */ getRemoteDesktop( poolId: string, nodeId: string, - options?: Models.ComputeNodeGetRemoteDesktopOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node for which you want to get the Remote Desktop Protocol - * file. - * @param callback The callback - */ - getRemoteDesktop(poolId: string, nodeId: string, callback: msRest.ServiceCallback): void; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node for which you want to get the Remote Desktop Protocol - * file. - * @param options The optional parameters - * @param callback The callback - */ - getRemoteDesktop( - poolId: string, - nodeId: string, - options: Models.ComputeNodeGetRemoteDesktopOptionalParams, - callback: msRest.ServiceCallback - ): void; - getRemoteDesktop( - poolId: string, - nodeId: string, - options?: Models.ComputeNodeGetRemoteDesktopOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: ComputeNodeGetRemoteDesktopOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - nodeId, - options - }, - getRemoteDesktopOperationSpec, - callback - ) as Promise; + { poolId, nodeId, options }, + getRemoteDesktopOperationSpec + ); } /** - * This is for gathering Azure Batch service log files in an automated fashion from Compute Nodes - * if you are experiencing an error and wish to escalate to Azure support. The Azure Batch service - * log files should be shared with Azure support to aid in debugging issues with the Batch service. - * @summary Upload Azure Batch service log files from the specified Compute Node to Azure Blob - * Storage. + * This is for gathering Azure Batch service log files in an automated fashion from Compute Nodes if + * you are experiencing an error and wish to escalate to Azure support. The Azure Batch service log + * files should be shared with Azure support to aid in debugging issues with the Batch service. * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node from which you want to upload the Azure Batch service - * log files. - * @param uploadBatchServiceLogsConfiguration The Azure Batch service log files upload - * configuration. - * @param [options] The optional parameters - * @returns Promise + * @param nodeId The ID of the Compute Node from which you want to upload the Azure Batch service log + * files. + * @param uploadBatchServiceLogsConfiguration The Azure Batch service log files upload configuration. + * @param options The options parameters. */ uploadBatchServiceLogs( poolId: string, nodeId: string, - uploadBatchServiceLogsConfiguration: Models.UploadBatchServiceLogsConfiguration, - options?: Models.ComputeNodeUploadBatchServiceLogsOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node from which you want to upload the Azure Batch service - * log files. - * @param uploadBatchServiceLogsConfiguration The Azure Batch service log files upload - * configuration. - * @param callback The callback - */ - uploadBatchServiceLogs( - poolId: string, - nodeId: string, - uploadBatchServiceLogsConfiguration: Models.UploadBatchServiceLogsConfiguration, - callback: msRest.ServiceCallback - ): void; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node from which you want to upload the Azure Batch service - * log files. - * @param uploadBatchServiceLogsConfiguration The Azure Batch service log files upload - * configuration. - * @param options The optional parameters - * @param callback The callback - */ - uploadBatchServiceLogs( - poolId: string, - nodeId: string, - uploadBatchServiceLogsConfiguration: Models.UploadBatchServiceLogsConfiguration, - options: Models.ComputeNodeUploadBatchServiceLogsOptionalParams, - callback: msRest.ServiceCallback - ): void; - uploadBatchServiceLogs( - poolId: string, - nodeId: string, - uploadBatchServiceLogsConfiguration: Models.UploadBatchServiceLogsConfiguration, - options?: - | Models.ComputeNodeUploadBatchServiceLogsOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + uploadBatchServiceLogsConfiguration: UploadBatchServiceLogsConfiguration, + options?: ComputeNodeUploadBatchServiceLogsOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - nodeId, - uploadBatchServiceLogsConfiguration, - options - }, - uploadBatchServiceLogsOperationSpec, - callback - ) as Promise; + { poolId, nodeId, uploadBatchServiceLogsConfiguration, options }, + uploadBatchServiceLogsOperationSpec + ); } /** - * @summary Lists the Compute Nodes in the specified Pool. + * Lists the Compute Nodes in the specified Pool. * @param poolId The ID of the Pool from which you want to list Compute Nodes. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list( + private _list( poolId: string, - options?: Models.ComputeNodeListOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool from which you want to list Compute Nodes. - * @param callback The callback - */ - list(poolId: string, callback: msRest.ServiceCallback): void; - /** - * @param poolId The ID of the Pool from which you want to list Compute Nodes. - * @param options The optional parameters - * @param callback The callback - */ - list( - poolId: string, - options: Models.ComputeNodeListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - poolId: string, - options?: - | Models.ComputeNodeListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: ComputeNodeListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - options - }, - listOperationSpec, - callback - ) as Promise; + { poolId, options }, + listOperationSpec + ); } /** - * @summary Lists the Compute Nodes in the specified Pool. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext( - nextPageLink: string, - options?: Models.ComputeNodeListNextOptionalParams - ): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param poolId The ID of the Pool from which you want to list Compute Nodes. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext( - nextPageLink: string, - options: Models.ComputeNodeListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.ComputeNodeListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + private _listNext( + poolId: string, + nextLink: string, + options?: ComputeNodeListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback - ) as Promise; + { poolId, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const addUserOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const addUserOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/nodes/{nodeId}/users", httpMethod: "POST", - path: "pools/{poolId}/nodes/{nodeId}/users", - urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId], - queryParameters: [Parameters.apiVersion, Parameters.timeout64], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId77, - Parameters.returnClientRequestId77, - Parameters.ocpDate77 - ], - requestBody: { - parameterPath: "user", - mapper: { - ...Mappers.ComputeNodeUser, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", responses: { 201: { headersMapper: Mappers.ComputeNodeAddUserHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.ComputeNodeAddUserHeaders + bodyMapper: Mappers.BatchError } }, + requestBody: Parameters.user, + queryParameters: [Parameters.apiVersion, Parameters.timeout64], + urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId64, + Parameters.returnClientRequestId64, + Parameters.ocpDate64 + ], + mediaType: "json", serializer }; - -const deleteUserOperationSpec: msRest.OperationSpec = { +const deleteUserOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/nodes/{nodeId}/users/{userName}", httpMethod: "DELETE", - path: "pools/{poolId}/nodes/{nodeId}/users/{userName}", - urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId, Parameters.userName], - queryParameters: [Parameters.apiVersion, Parameters.timeout65], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId78, - Parameters.returnClientRequestId78, - Parameters.ocpDate78 - ], responses: { 200: { headersMapper: Mappers.ComputeNodeDeleteUserHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.ComputeNodeDeleteUserHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [Parameters.apiVersion, Parameters.timeout65], + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId, + Parameters.nodeId, + Parameters.userName + ], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId65, + Parameters.returnClientRequestId65, + Parameters.ocpDate65 + ], serializer }; - -const updateUserOperationSpec: msRest.OperationSpec = { +const updateUserOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/nodes/{nodeId}/users/{userName}", httpMethod: "PUT", - path: "pools/{poolId}/nodes/{nodeId}/users/{userName}", - urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId, Parameters.userName], - queryParameters: [Parameters.apiVersion, Parameters.timeout66], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId79, - Parameters.returnClientRequestId79, - Parameters.ocpDate79 - ], - requestBody: { - parameterPath: "nodeUpdateUserParameter", - mapper: { - ...Mappers.NodeUpdateUserParameter, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", responses: { 200: { headersMapper: Mappers.ComputeNodeUpdateUserHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.ComputeNodeUpdateUserHeaders + bodyMapper: Mappers.BatchError } }, + requestBody: Parameters.nodeUpdateUserParameter, + queryParameters: [Parameters.apiVersion, Parameters.timeout66], + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId, + Parameters.nodeId, + Parameters.userName + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId66, + Parameters.returnClientRequestId66, + Parameters.ocpDate66 + ], + mediaType: "json", serializer }; - -const getOperationSpec: msRest.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/nodes/{nodeId}", httpMethod: "GET", - path: "pools/{poolId}/nodes/{nodeId}", - urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId], - queryParameters: [Parameters.apiVersion, Parameters.select13, Parameters.timeout67], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId80, - Parameters.returnClientRequestId80, - Parameters.ocpDate80 - ], responses: { 200: { bodyMapper: Mappers.ComputeNode, headersMapper: Mappers.ComputeNodeGetHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.ComputeNodeGetHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const rebootOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "pools/{poolId}/nodes/{nodeId}/reboot", + queryParameters: [ + Parameters.apiVersion, + Parameters.select13, + Parameters.timeout67 + ], urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId], - queryParameters: [Parameters.apiVersion, Parameters.timeout68], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId81, - Parameters.returnClientRequestId81, - Parameters.ocpDate81 + Parameters.accept, + Parameters.clientRequestId67, + Parameters.returnClientRequestId67, + Parameters.ocpDate67 ], - requestBody: { - parameterPath: { - nodeRebootOption: ["options", "nodeRebootOption"] - }, - mapper: Mappers.NodeRebootParameter - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", + serializer +}; +const rebootOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/nodes/{nodeId}/reboot", + httpMethod: "POST", responses: { 202: { headersMapper: Mappers.ComputeNodeRebootHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.ComputeNodeRebootHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const reimageOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "pools/{poolId}/nodes/{nodeId}/reimage", + requestBody: Parameters.nodeRebootParameter, + queryParameters: [Parameters.apiVersion, Parameters.timeout68], urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId], - queryParameters: [Parameters.apiVersion, Parameters.timeout69], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId82, - Parameters.returnClientRequestId82, - Parameters.ocpDate82 + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId68, + Parameters.returnClientRequestId68, + Parameters.ocpDate68 ], - requestBody: { - parameterPath: { - nodeReimageOption: ["options", "nodeReimageOption"] - }, - mapper: Mappers.NodeReimageParameter - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", + mediaType: "json", + serializer +}; +const reimageOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/nodes/{nodeId}/reimage", + httpMethod: "POST", responses: { 202: { headersMapper: Mappers.ComputeNodeReimageHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.ComputeNodeReimageHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const disableSchedulingOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "pools/{poolId}/nodes/{nodeId}/disablescheduling", + requestBody: Parameters.nodeReimageParameter, + queryParameters: [Parameters.apiVersion, Parameters.timeout69], urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId], - queryParameters: [Parameters.apiVersion, Parameters.timeout70], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId83, - Parameters.returnClientRequestId83, - Parameters.ocpDate83 + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId69, + Parameters.returnClientRequestId69, + Parameters.ocpDate69 ], - requestBody: { - parameterPath: { - nodeDisableSchedulingOption: ["options", "nodeDisableSchedulingOption"] - }, - mapper: Mappers.NodeDisableSchedulingParameter - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", + mediaType: "json", + serializer +}; +const disableSchedulingOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/nodes/{nodeId}/disablescheduling", + httpMethod: "POST", responses: { 200: { headersMapper: Mappers.ComputeNodeDisableSchedulingHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.ComputeNodeDisableSchedulingHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const enableSchedulingOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "pools/{poolId}/nodes/{nodeId}/enablescheduling", + requestBody: Parameters.nodeDisableSchedulingParameter, + queryParameters: [Parameters.apiVersion, Parameters.timeout70], urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId], - queryParameters: [Parameters.apiVersion, Parameters.timeout71], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId84, - Parameters.returnClientRequestId84, - Parameters.ocpDate84 + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId70, + Parameters.returnClientRequestId70, + Parameters.ocpDate70 ], + mediaType: "json", + serializer +}; +const enableSchedulingOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/nodes/{nodeId}/enablescheduling", + httpMethod: "POST", responses: { 200: { headersMapper: Mappers.ComputeNodeEnableSchedulingHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.ComputeNodeEnableSchedulingHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const getRemoteLoginSettingsOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "pools/{poolId}/nodes/{nodeId}/remoteloginsettings", + queryParameters: [Parameters.apiVersion, Parameters.timeout71], urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId], - queryParameters: [Parameters.apiVersion, Parameters.timeout72], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId85, - Parameters.returnClientRequestId85, - Parameters.ocpDate85 + Parameters.accept, + Parameters.clientRequestId71, + Parameters.returnClientRequestId71, + Parameters.ocpDate71 ], + serializer +}; +const getRemoteLoginSettingsOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/nodes/{nodeId}/remoteloginsettings", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ComputeNodeGetRemoteLoginSettingsResult, headersMapper: Mappers.ComputeNodeGetRemoteLoginSettingsHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.ComputeNodeGetRemoteLoginSettingsHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const getRemoteDesktopOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "pools/{poolId}/nodes/{nodeId}/rdp", + queryParameters: [Parameters.apiVersion, Parameters.timeout72], urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId], - queryParameters: [Parameters.apiVersion, Parameters.timeout73], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId86, - Parameters.returnClientRequestId86, - Parameters.ocpDate86 + Parameters.accept, + Parameters.clientRequestId72, + Parameters.returnClientRequestId72, + Parameters.ocpDate72 ], + serializer +}; +const getRemoteDesktopOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/nodes/{nodeId}/rdp", + httpMethod: "GET", responses: { 200: { bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Stream" - } + type: { name: "Stream" }, + serializedName: "parsedResponse" }, headersMapper: Mappers.ComputeNodeGetRemoteDesktopHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.ComputeNodeGetRemoteDesktopHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const uploadBatchServiceLogsOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "pools/{poolId}/nodes/{nodeId}/uploadbatchservicelogs", + queryParameters: [Parameters.apiVersion, Parameters.timeout73], urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId], - queryParameters: [Parameters.apiVersion, Parameters.timeout74], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId87, - Parameters.returnClientRequestId87, - Parameters.ocpDate87 + Parameters.accept1, + Parameters.clientRequestId73, + Parameters.returnClientRequestId73, + Parameters.ocpDate73 ], - requestBody: { - parameterPath: "uploadBatchServiceLogsConfiguration", - mapper: { - ...Mappers.UploadBatchServiceLogsConfiguration, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", + serializer +}; +const uploadBatchServiceLogsOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/nodes/{nodeId}/uploadbatchservicelogs", + httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.UploadBatchServiceLogsResult, headersMapper: Mappers.ComputeNodeUploadBatchServiceLogsHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.ComputeNodeUploadBatchServiceLogsHeaders + bodyMapper: Mappers.BatchError } }, + requestBody: Parameters.uploadBatchServiceLogsConfiguration, + queryParameters: [Parameters.apiVersion, Parameters.timeout74], + urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId74, + Parameters.returnClientRequestId74, + Parameters.ocpDate74 + ], + mediaType: "json", serializer }; - -const listOperationSpec: msRest.OperationSpec = { +const listOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/nodes", httpMethod: "GET", - path: "pools/{poolId}/nodes", - urlParameters: [Parameters.batchUrl, Parameters.poolId], + responses: { + 200: { + bodyMapper: Mappers.ComputeNodeListResult, + headersMapper: Mappers.ComputeNodeListHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, queryParameters: [ Parameters.apiVersion, Parameters.filter12, @@ -1050,46 +637,40 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.maxResults13, Parameters.timeout75 ], + urlParameters: [Parameters.batchUrl, Parameters.poolId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId88, - Parameters.returnClientRequestId88, - Parameters.ocpDate88 + Parameters.accept, + Parameters.clientRequestId75, + Parameters.returnClientRequestId75, + Parameters.ocpDate75 ], - responses: { - 200: { - bodyMapper: Mappers.ComputeNodeListResult, - headersMapper: Mappers.ComputeNodeListHeaders - }, - default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.ComputeNodeListHeaders - } - }, serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "{batchUrl}", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId89, - Parameters.returnClientRequestId89, - Parameters.ocpDate89 - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ComputeNodeListResult, - headersMapper: Mappers.ComputeNodeListHeaders + headersMapper: Mappers.ComputeNodeListNextHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.ComputeNodeListHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter12, + Parameters.select14, + Parameters.maxResults13, + Parameters.timeout75 + ], + urlParameters: [Parameters.batchUrl, Parameters.nextLink, Parameters.poolId], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId75, + Parameters.returnClientRequestId75, + Parameters.ocpDate75 + ], serializer }; diff --git a/sdk/batch/batch/src/operations/file.ts b/sdk/batch/batch/src/operations/file.ts index e2785cf4df95..485862114f56 100644 --- a/sdk/batch/batch/src/operations/file.ts +++ b/sdk/batch/batch/src/operations/file.ts @@ -3,144 +3,206 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/fileMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { File } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { BatchServiceClientContext } from "../batchServiceClientContext"; +import { BatchServiceClient } from "../batchServiceClient"; +import { + NodeFile, + FileListFromTaskNextOptionalParams, + FileListFromTaskOptionalParams, + FileListFromComputeNodeNextOptionalParams, + FileListFromComputeNodeOptionalParams, + FileDeleteFromTaskOptionalParams, + FileDeleteFromTaskResponse, + FileGetFromTaskOptionalParams, + FileGetFromTaskResponse, + FileGetPropertiesFromTaskOptionalParams, + FileGetPropertiesFromTaskResponse, + FileDeleteFromComputeNodeOptionalParams, + FileDeleteFromComputeNodeResponse, + FileGetFromComputeNodeOptionalParams, + FileGetFromComputeNodeResponse, + FileGetPropertiesFromComputeNodeOptionalParams, + FileGetPropertiesFromComputeNodeResponse, + FileListFromTaskResponse, + FileListFromComputeNodeResponse, + FileListFromTaskNextResponse, + FileListFromComputeNodeNextResponse +} from "../models"; -/** Class representing a File. */ -export class File { - private readonly client: BatchServiceClientContext; +/// +/** Class containing File operations. */ +export class FileImpl implements File { + private readonly client: BatchServiceClient; /** - * Create a File. - * @param {BatchServiceClientContext} client Reference to the service client. + * Initialize a new instance of the class File class. + * @param client Reference to the service client */ - constructor(client: BatchServiceClientContext) { + constructor(client: BatchServiceClient) { this.client = client; } /** - * @summary Deletes the specified Task file from the Compute Node where the Task ran. + * Lists the files in a Task's directory on its Compute Node. * @param jobId The ID of the Job that contains the Task. - * @param taskId The ID of the Task whose file you want to delete. - * @param filePath The path to the Task file or directory that you want to delete. - * @param [options] The optional parameters - * @returns Promise - */ - deleteFromTask( - jobId: string, - taskId: string, - filePath: string, - options?: Models.FileDeleteFromTaskOptionalParams - ): Promise; - /** - * @param jobId The ID of the Job that contains the Task. - * @param taskId The ID of the Task whose file you want to delete. - * @param filePath The path to the Task file or directory that you want to delete. - * @param callback The callback - */ - deleteFromTask( - jobId: string, - taskId: string, - filePath: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param jobId The ID of the Job that contains the Task. - * @param taskId The ID of the Task whose file you want to delete. - * @param filePath The path to the Task file or directory that you want to delete. - * @param options The optional parameters - * @param callback The callback + * @param taskId The ID of the Task whose files you want to list. + * @param options The options parameters. */ - deleteFromTask( + public listFromTask( jobId: string, taskId: string, - filePath: string, - options: Models.FileDeleteFromTaskOptionalParams, - callback: msRest.ServiceCallback - ): void; - deleteFromTask( + options?: FileListFromTaskOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listFromTaskPagingAll(jobId, taskId, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listFromTaskPagingPage(jobId, taskId, options); + } + }; + } + + private async *listFromTaskPagingPage( jobId: string, taskId: string, - filePath: string, - options?: Models.FileDeleteFromTaskOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { + options?: FileListFromTaskOptionalParams + ): AsyncIterableIterator { + let result = await this._listFromTask(jobId, taskId, options); + yield result.value || []; + let continuationToken = result.odataNextLink; + while (continuationToken) { + result = await this._listFromTaskNext( jobId, taskId, - filePath, + continuationToken, options - }, - deleteFromTaskOperationSpec, - callback - ) as Promise; + ); + continuationToken = result.odataNextLink; + yield result.value || []; + } } - /** - * Returns the content of the specified Task file. - * @param jobId The ID of the Job that contains the Task. - * @param taskId The ID of the Task whose file you want to retrieve. - * @param filePath The path to the Task file that you want to get the content of. - * @param [options] The optional parameters - * @returns Promise - */ - getFromTask( + private async *listFromTaskPagingAll( jobId: string, taskId: string, - filePath: string, - options?: Models.FileGetFromTaskOptionalParams - ): Promise; + options?: FileListFromTaskOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listFromTaskPagingPage( + jobId, + taskId, + options + )) { + yield* page; + } + } + + /** + * Lists all of the files in Task directories on the specified Compute Node. + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node whose files you want to list. + * @param options The options parameters. + */ + public listFromComputeNode( + poolId: string, + nodeId: string, + options?: FileListFromComputeNodeOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listFromComputeNodePagingAll(poolId, nodeId, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listFromComputeNodePagingPage(poolId, nodeId, options); + } + }; + } + + private async *listFromComputeNodePagingPage( + poolId: string, + nodeId: string, + options?: FileListFromComputeNodeOptionalParams + ): AsyncIterableIterator { + let result = await this._listFromComputeNode(poolId, nodeId, options); + yield result.value || []; + let continuationToken = result.odataNextLink; + while (continuationToken) { + result = await this._listFromComputeNodeNext( + poolId, + nodeId, + continuationToken, + options + ); + continuationToken = result.odataNextLink; + yield result.value || []; + } + } + + private async *listFromComputeNodePagingAll( + poolId: string, + nodeId: string, + options?: FileListFromComputeNodeOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listFromComputeNodePagingPage( + poolId, + nodeId, + options + )) { + yield* page; + } + } + /** + * Deletes the specified Task file from the Compute Node where the Task ran. * @param jobId The ID of the Job that contains the Task. - * @param taskId The ID of the Task whose file you want to retrieve. - * @param filePath The path to the Task file that you want to get the content of. - * @param callback The callback + * @param taskId The ID of the Task whose file you want to delete. + * @param filePath The path to the Task file or directory that you want to delete. + * @param options The options parameters. */ - getFromTask( + deleteFromTask( jobId: string, taskId: string, filePath: string, - callback: msRest.ServiceCallback - ): void; + options?: FileDeleteFromTaskOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { jobId, taskId, filePath, options }, + deleteFromTaskOperationSpec + ); + } + /** + * Returns the content of the specified Task file. * @param jobId The ID of the Job that contains the Task. * @param taskId The ID of the Task whose file you want to retrieve. * @param filePath The path to the Task file that you want to get the content of. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ getFromTask( jobId: string, taskId: string, filePath: string, - options: Models.FileGetFromTaskOptionalParams, - callback: msRest.ServiceCallback - ): void; - getFromTask( - jobId: string, - taskId: string, - filePath: string, - options?: Models.FileGetFromTaskOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: FileGetFromTaskOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobId, - taskId, - filePath, - options - }, - getFromTaskOperationSpec, - callback - ) as Promise; + { jobId, taskId, filePath, options }, + getFromTaskOperationSpec + ); } /** @@ -148,117 +210,37 @@ export class File { * @param jobId The ID of the Job that contains the Task. * @param taskId The ID of the Task whose file you want to get the properties of. * @param filePath The path to the Task file that you want to get the properties of. - * @param [options] The optional parameters - * @returns Promise - */ - getPropertiesFromTask( - jobId: string, - taskId: string, - filePath: string, - options?: Models.FileGetPropertiesFromTaskOptionalParams - ): Promise; - /** - * @param jobId The ID of the Job that contains the Task. - * @param taskId The ID of the Task whose file you want to get the properties of. - * @param filePath The path to the Task file that you want to get the properties of. - * @param callback The callback + * @param options The options parameters. */ getPropertiesFromTask( jobId: string, taskId: string, filePath: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param jobId The ID of the Job that contains the Task. - * @param taskId The ID of the Task whose file you want to get the properties of. - * @param filePath The path to the Task file that you want to get the properties of. - * @param options The optional parameters - * @param callback The callback - */ - getPropertiesFromTask( - jobId: string, - taskId: string, - filePath: string, - options: Models.FileGetPropertiesFromTaskOptionalParams, - callback: msRest.ServiceCallback - ): void; - getPropertiesFromTask( - jobId: string, - taskId: string, - filePath: string, - options?: Models.FileGetPropertiesFromTaskOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: FileGetPropertiesFromTaskOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobId, - taskId, - filePath, - options - }, - getPropertiesFromTaskOperationSpec, - callback - ) as Promise; + { jobId, taskId, filePath, options }, + getPropertiesFromTaskOperationSpec + ); } /** - * @summary Deletes the specified file from the Compute Node. + * Deletes the specified file from the Compute Node. * @param poolId The ID of the Pool that contains the Compute Node. * @param nodeId The ID of the Compute Node from which you want to delete the file. * @param filePath The path to the file or directory that you want to delete. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ deleteFromComputeNode( poolId: string, nodeId: string, filePath: string, - options?: Models.FileDeleteFromComputeNodeOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node from which you want to delete the file. - * @param filePath The path to the file or directory that you want to delete. - * @param callback The callback - */ - deleteFromComputeNode( - poolId: string, - nodeId: string, - filePath: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node from which you want to delete the file. - * @param filePath The path to the file or directory that you want to delete. - * @param options The optional parameters - * @param callback The callback - */ - deleteFromComputeNode( - poolId: string, - nodeId: string, - filePath: string, - options: Models.FileDeleteFromComputeNodeOptionalParams, - callback: msRest.ServiceCallback - ): void; - deleteFromComputeNode( - poolId: string, - nodeId: string, - filePath: string, - options?: Models.FileDeleteFromComputeNodeOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: FileDeleteFromComputeNodeOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - nodeId, - filePath, - options - }, - deleteFromComputeNodeOperationSpec, - callback - ) as Promise; + { poolId, nodeId, filePath, options }, + deleteFromComputeNodeOperationSpec + ); } /** @@ -266,58 +248,18 @@ export class File { * @param poolId The ID of the Pool that contains the Compute Node. * @param nodeId The ID of the Compute Node that contains the file. * @param filePath The path to the Compute Node file that you want to get the content of. - * @param [options] The optional parameters - * @returns Promise - */ - getFromComputeNode( - poolId: string, - nodeId: string, - filePath: string, - options?: Models.FileGetFromComputeNodeOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node that contains the file. - * @param filePath The path to the Compute Node file that you want to get the content of. - * @param callback The callback + * @param options The options parameters. */ getFromComputeNode( poolId: string, nodeId: string, filePath: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node that contains the file. - * @param filePath The path to the Compute Node file that you want to get the content of. - * @param options The optional parameters - * @param callback The callback - */ - getFromComputeNode( - poolId: string, - nodeId: string, - filePath: string, - options: Models.FileGetFromComputeNodeOptionalParams, - callback: msRest.ServiceCallback - ): void; - getFromComputeNode( - poolId: string, - nodeId: string, - filePath: string, - options?: Models.FileGetFromComputeNodeOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: FileGetFromComputeNodeOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - nodeId, - filePath, - options - }, - getFromComputeNodeOperationSpec, - callback - ) as Promise; + { poolId, nodeId, filePath, options }, + getFromComputeNodeOperationSpec + ); } /** @@ -325,525 +267,396 @@ export class File { * @param poolId The ID of the Pool that contains the Compute Node. * @param nodeId The ID of the Compute Node that contains the file. * @param filePath The path to the Compute Node file that you want to get the properties of. - * @param [options] The optional parameters - * @returns Promise - */ - getPropertiesFromComputeNode( - poolId: string, - nodeId: string, - filePath: string, - options?: Models.FileGetPropertiesFromComputeNodeOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node that contains the file. - * @param filePath The path to the Compute Node file that you want to get the properties of. - * @param callback The callback + * @param options The options parameters. */ getPropertiesFromComputeNode( poolId: string, nodeId: string, filePath: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node that contains the file. - * @param filePath The path to the Compute Node file that you want to get the properties of. - * @param options The optional parameters - * @param callback The callback - */ - getPropertiesFromComputeNode( - poolId: string, - nodeId: string, - filePath: string, - options: Models.FileGetPropertiesFromComputeNodeOptionalParams, - callback: msRest.ServiceCallback - ): void; - getPropertiesFromComputeNode( - poolId: string, - nodeId: string, - filePath: string, - options?: Models.FileGetPropertiesFromComputeNodeOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: FileGetPropertiesFromComputeNodeOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - nodeId, - filePath, - options - }, - getPropertiesFromComputeNodeOperationSpec, - callback - ) as Promise; + { poolId, nodeId, filePath, options }, + getPropertiesFromComputeNodeOperationSpec + ); } /** - * @summary Lists the files in a Task's directory on its Compute Node. - * @param jobId The ID of the Job that contains the Task. - * @param taskId The ID of the Task whose files you want to list. - * @param [options] The optional parameters - * @returns Promise - */ - listFromTask( - jobId: string, - taskId: string, - options?: Models.FileListFromTaskOptionalParams - ): Promise; - /** + * Lists the files in a Task's directory on its Compute Node. * @param jobId The ID of the Job that contains the Task. * @param taskId The ID of the Task whose files you want to list. - * @param callback The callback + * @param options The options parameters. */ - listFromTask( + private _listFromTask( jobId: string, taskId: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param jobId The ID of the Job that contains the Task. - * @param taskId The ID of the Task whose files you want to list. - * @param options The optional parameters - * @param callback The callback - */ - listFromTask( - jobId: string, - taskId: string, - options: Models.FileListFromTaskOptionalParams, - callback: msRest.ServiceCallback - ): void; - listFromTask( - jobId: string, - taskId: string, - options?: - | Models.FileListFromTaskOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: FileListFromTaskOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobId, - taskId, - options - }, - listFromTaskOperationSpec, - callback - ) as Promise; + { jobId, taskId, options }, + listFromTaskOperationSpec + ); } /** - * @summary Lists all of the files in Task directories on the specified Compute Node. + * Lists all of the files in Task directories on the specified Compute Node. * @param poolId The ID of the Pool that contains the Compute Node. * @param nodeId The ID of the Compute Node whose files you want to list. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - listFromComputeNode( - poolId: string, - nodeId: string, - options?: Models.FileListFromComputeNodeOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node whose files you want to list. - * @param callback The callback - */ - listFromComputeNode( - poolId: string, - nodeId: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node whose files you want to list. - * @param options The optional parameters - * @param callback The callback - */ - listFromComputeNode( - poolId: string, - nodeId: string, - options: Models.FileListFromComputeNodeOptionalParams, - callback: msRest.ServiceCallback - ): void; - listFromComputeNode( + private _listFromComputeNode( poolId: string, nodeId: string, - options?: - | Models.FileListFromComputeNodeOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: FileListFromComputeNodeOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - nodeId, - options - }, - listFromComputeNodeOperationSpec, - callback - ) as Promise; + { poolId, nodeId, options }, + listFromComputeNodeOperationSpec + ); } /** - * @summary Lists the files in a Task's directory on its Compute Node. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listFromTaskNext( - nextPageLink: string, - options?: Models.FileListFromTaskNextOptionalParams - ): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listFromTaskNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListFromTaskNext + * @param jobId The ID of the Job that contains the Task. + * @param taskId The ID of the Task whose files you want to list. + * @param nextLink The nextLink from the previous successful call to the ListFromTask method. + * @param options The options parameters. */ - listFromTaskNext( - nextPageLink: string, - options: Models.FileListFromTaskNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listFromTaskNext( - nextPageLink: string, - options?: - | Models.FileListFromTaskNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + private _listFromTaskNext( + jobId: string, + taskId: string, + nextLink: string, + options?: FileListFromTaskNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listFromTaskNextOperationSpec, - callback - ) as Promise; + { jobId, taskId, nextLink, options }, + listFromTaskNextOperationSpec + ); } /** - * @summary Lists all of the files in Task directories on the specified Compute Node. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listFromComputeNodeNext( - nextPageLink: string, - options?: Models.FileListFromComputeNodeNextOptionalParams - ): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listFromComputeNodeNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListFromComputeNodeNext + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node whose files you want to list. + * @param nextLink The nextLink from the previous successful call to the ListFromComputeNode method. + * @param options The options parameters. */ - listFromComputeNodeNext( - nextPageLink: string, - options: Models.FileListFromComputeNodeNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listFromComputeNodeNext( - nextPageLink: string, - options?: - | Models.FileListFromComputeNodeNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + private _listFromComputeNodeNext( + poolId: string, + nodeId: string, + nextLink: string, + options?: FileListFromComputeNodeNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listFromComputeNodeNextOperationSpec, - callback - ) as Promise; + { poolId, nodeId, nextLink, options }, + listFromComputeNodeNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const deleteFromTaskOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const deleteFromTaskOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}/tasks/{taskId}/files/{filePath}", httpMethod: "DELETE", - path: "jobs/{jobId}/tasks/{taskId}/files/{filePath}", - urlParameters: [Parameters.batchUrl, Parameters.jobId, Parameters.taskId, Parameters.filePath], - queryParameters: [Parameters.recursive, Parameters.apiVersion, Parameters.timeout37], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId46, - Parameters.returnClientRequestId46, - Parameters.ocpDate46 - ], responses: { 200: { headersMapper: Mappers.FileDeleteFromTaskHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.FileDeleteFromTaskHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.apiVersion, + Parameters.recursive, + Parameters.timeout37 + ], + urlParameters: [ + Parameters.batchUrl, + Parameters.jobId, + Parameters.taskId, + Parameters.filePath + ], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId37, + Parameters.returnClientRequestId37, + Parameters.ocpDate37 + ], serializer }; - -const getFromTaskOperationSpec: msRest.OperationSpec = { +const getFromTaskOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}/tasks/{taskId}/files/{filePath}", httpMethod: "GET", - path: "jobs/{jobId}/tasks/{taskId}/files/{filePath}", - urlParameters: [Parameters.batchUrl, Parameters.jobId, Parameters.taskId, Parameters.filePath], - queryParameters: [Parameters.apiVersion, Parameters.timeout38], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId47, - Parameters.returnClientRequestId47, - Parameters.ocpDate47, - Parameters.ocpRange0, - Parameters.ifModifiedSince15, - Parameters.ifUnmodifiedSince15 - ], responses: { 200: { bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Stream" - } + type: { name: "Stream" }, + serializedName: "parsedResponse" }, headersMapper: Mappers.FileGetFromTaskHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.FileGetFromTaskHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [Parameters.apiVersion, Parameters.timeout38], + urlParameters: [ + Parameters.batchUrl, + Parameters.jobId, + Parameters.taskId, + Parameters.filePath + ], + headerParameters: [ + Parameters.accept1, + Parameters.clientRequestId38, + Parameters.returnClientRequestId38, + Parameters.ocpDate38, + Parameters.ocpRange, + Parameters.ifModifiedSince15, + Parameters.ifUnmodifiedSince15 + ], serializer }; - -const getPropertiesFromTaskOperationSpec: msRest.OperationSpec = { +const getPropertiesFromTaskOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}/tasks/{taskId}/files/{filePath}", httpMethod: "HEAD", - path: "jobs/{jobId}/tasks/{taskId}/files/{filePath}", - urlParameters: [Parameters.batchUrl, Parameters.jobId, Parameters.taskId, Parameters.filePath], - queryParameters: [Parameters.apiVersion, Parameters.timeout39], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId48, - Parameters.returnClientRequestId48, - Parameters.ocpDate48, - Parameters.ifModifiedSince16, - Parameters.ifUnmodifiedSince16 - ], responses: { 200: { headersMapper: Mappers.FileGetPropertiesFromTaskHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.FileGetPropertiesFromTaskHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [Parameters.apiVersion, Parameters.timeout39], + urlParameters: [ + Parameters.batchUrl, + Parameters.jobId, + Parameters.taskId, + Parameters.filePath + ], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId39, + Parameters.returnClientRequestId39, + Parameters.ocpDate39, + Parameters.ifModifiedSince16, + Parameters.ifUnmodifiedSince16 + ], serializer }; - -const deleteFromComputeNodeOperationSpec: msRest.OperationSpec = { +const deleteFromComputeNodeOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/nodes/{nodeId}/files/{filePath}", httpMethod: "DELETE", - path: "pools/{poolId}/nodes/{nodeId}/files/{filePath}", - urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId, Parameters.filePath], - queryParameters: [Parameters.recursive, Parameters.apiVersion, Parameters.timeout40], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId49, - Parameters.returnClientRequestId49, - Parameters.ocpDate49 - ], responses: { 200: { headersMapper: Mappers.FileDeleteFromComputeNodeHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.FileDeleteFromComputeNodeHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.apiVersion, + Parameters.recursive, + Parameters.timeout40 + ], + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId, + Parameters.filePath, + Parameters.nodeId + ], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId40, + Parameters.returnClientRequestId40, + Parameters.ocpDate40 + ], serializer }; - -const getFromComputeNodeOperationSpec: msRest.OperationSpec = { +const getFromComputeNodeOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/nodes/{nodeId}/files/{filePath}", httpMethod: "GET", - path: "pools/{poolId}/nodes/{nodeId}/files/{filePath}", - urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId, Parameters.filePath], - queryParameters: [Parameters.apiVersion, Parameters.timeout41], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId50, - Parameters.returnClientRequestId50, - Parameters.ocpDate50, - Parameters.ocpRange1, - Parameters.ifModifiedSince17, - Parameters.ifUnmodifiedSince17 - ], responses: { 200: { bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Stream" - } + type: { name: "Stream" }, + serializedName: "parsedResponse" }, headersMapper: Mappers.FileGetFromComputeNodeHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.FileGetFromComputeNodeHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [Parameters.apiVersion, Parameters.timeout41], + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId, + Parameters.filePath, + Parameters.nodeId + ], + headerParameters: [ + Parameters.accept1, + Parameters.clientRequestId41, + Parameters.returnClientRequestId41, + Parameters.ocpDate41, + Parameters.ocpRange1, + Parameters.ifModifiedSince17, + Parameters.ifUnmodifiedSince17 + ], serializer }; - -const getPropertiesFromComputeNodeOperationSpec: msRest.OperationSpec = { +const getPropertiesFromComputeNodeOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/nodes/{nodeId}/files/{filePath}", httpMethod: "HEAD", - path: "pools/{poolId}/nodes/{nodeId}/files/{filePath}", - urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId, Parameters.filePath], + responses: { + 200: { + headersMapper: Mappers.FileGetPropertiesFromComputeNodeHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, queryParameters: [Parameters.apiVersion, Parameters.timeout42], + urlParameters: [ + Parameters.batchUrl, + Parameters.poolId, + Parameters.filePath, + Parameters.nodeId + ], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId51, - Parameters.returnClientRequestId51, - Parameters.ocpDate51, + Parameters.accept, + Parameters.clientRequestId42, + Parameters.returnClientRequestId42, + Parameters.ocpDate42, Parameters.ifModifiedSince18, Parameters.ifUnmodifiedSince18 ], + serializer +}; +const listFromTaskOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}/tasks/{taskId}/files", + httpMethod: "GET", responses: { 200: { - headersMapper: Mappers.FileGetPropertiesFromComputeNodeHeaders + bodyMapper: Mappers.NodeFileListResult, + headersMapper: Mappers.FileListFromTaskHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.FileGetPropertiesFromComputeNodeHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const listFromTaskOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "jobs/{jobId}/tasks/{taskId}/files", - urlParameters: [Parameters.batchUrl, Parameters.jobId, Parameters.taskId], queryParameters: [ - Parameters.recursive, Parameters.apiVersion, + Parameters.recursive, Parameters.filter8, Parameters.maxResults9, Parameters.timeout43 ], + urlParameters: [Parameters.batchUrl, Parameters.jobId, Parameters.taskId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId52, - Parameters.returnClientRequestId52, - Parameters.ocpDate52 + Parameters.accept, + Parameters.clientRequestId43, + Parameters.returnClientRequestId43, + Parameters.ocpDate43 ], + serializer +}; +const listFromComputeNodeOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/nodes/{nodeId}/files", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.NodeFileListResult, - headersMapper: Mappers.FileListFromTaskHeaders + headersMapper: Mappers.FileListFromComputeNodeHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.FileListFromTaskHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const listFromComputeNodeOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "pools/{poolId}/nodes/{nodeId}/files", - urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId], queryParameters: [ - Parameters.recursive, Parameters.apiVersion, + Parameters.recursive, Parameters.filter9, Parameters.maxResults10, Parameters.timeout44 ], + urlParameters: [Parameters.batchUrl, Parameters.poolId, Parameters.nodeId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId53, - Parameters.returnClientRequestId53, - Parameters.ocpDate53 + Parameters.accept, + Parameters.clientRequestId44, + Parameters.returnClientRequestId44, + Parameters.ocpDate44 ], - responses: { - 200: { - bodyMapper: Mappers.NodeFileListResult, - headersMapper: Mappers.FileListFromComputeNodeHeaders - }, - default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.FileListFromComputeNodeHeaders - } - }, serializer }; - -const listFromTaskNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "{batchUrl}", +const listFromTaskNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.recursive, Parameters.apiVersion], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId54, - Parameters.returnClientRequestId54, - Parameters.ocpDate54 - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.NodeFileListResult, - headersMapper: Mappers.FileListFromTaskHeaders + headersMapper: Mappers.FileListFromTaskNextHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.FileListFromTaskHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.apiVersion, + Parameters.recursive, + Parameters.filter8, + Parameters.maxResults9, + Parameters.timeout43 + ], + urlParameters: [ + Parameters.batchUrl, + Parameters.nextLink, + Parameters.jobId, + Parameters.taskId + ], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId43, + Parameters.returnClientRequestId43, + Parameters.ocpDate43 + ], serializer }; - -const listFromComputeNodeNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "{batchUrl}", +const listFromComputeNodeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.recursive, Parameters.apiVersion], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId55, - Parameters.returnClientRequestId55, - Parameters.ocpDate55 - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.NodeFileListResult, - headersMapper: Mappers.FileListFromComputeNodeHeaders + headersMapper: Mappers.FileListFromComputeNodeNextHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.FileListFromComputeNodeHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.apiVersion, + Parameters.recursive, + Parameters.filter9, + Parameters.maxResults10, + Parameters.timeout44 + ], + urlParameters: [ + Parameters.batchUrl, + Parameters.nextLink, + Parameters.poolId, + Parameters.nodeId + ], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId44, + Parameters.returnClientRequestId44, + Parameters.ocpDate44 + ], serializer }; diff --git a/sdk/batch/batch/src/operations/index.ts b/sdk/batch/batch/src/operations/index.ts index f1694b24ac5f..0357871372f3 100644 --- a/sdk/batch/batch/src/operations/index.ts +++ b/sdk/batch/batch/src/operations/index.ts @@ -3,8 +3,7 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export * from "./application"; diff --git a/sdk/batch/batch/src/operations/job.ts b/sdk/batch/batch/src/operations/job.ts index e9f4f9fe66da..303d6374f56d 100644 --- a/sdk/batch/batch/src/operations/job.ts +++ b/sdk/batch/batch/src/operations/job.ts @@ -3,1056 +3,758 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/jobMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Job } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { BatchServiceClientContext } from "../batchServiceClientContext"; - -/** Class representing a Job. */ -export class Job { - private readonly client: BatchServiceClientContext; - - /** - * Create a Job. - * @param {BatchServiceClientContext} client Reference to the service client. - */ - constructor(client: BatchServiceClientContext) { +import { BatchServiceClient } from "../batchServiceClient"; +import { + CloudJob, + JobListNextOptionalParams, + JobListOptionalParams, + JobListFromJobScheduleNextOptionalParams, + JobListFromJobScheduleOptionalParams, + JobPreparationAndReleaseTaskExecutionInformation, + JobListPreparationAndReleaseTaskStatusNextOptionalParams, + JobListPreparationAndReleaseTaskStatusOptionalParams, + JobGetAllLifetimeStatisticsOptionalParams, + JobGetAllLifetimeStatisticsResponse, + JobDeleteOptionalParams, + JobDeleteResponse, + JobGetOptionalParams, + JobGetResponse, + JobPatchParameter, + JobPatchOptionalParams, + JobPatchResponse, + JobUpdateParameter, + JobUpdateOptionalParams, + JobUpdateResponse, + JobDisableParameter, + JobDisableOptionalParams, + JobDisableResponse, + JobEnableOptionalParams, + JobEnableResponse, + JobTerminateOptionalParams, + JobTerminateResponse, + JobAddParameter, + JobAddOptionalParams, + JobAddResponse, + JobListResponse, + JobListFromJobScheduleResponse, + JobListPreparationAndReleaseTaskStatusResponse, + JobGetTaskCountsOptionalParams, + JobGetTaskCountsResponse, + JobListNextResponse, + JobListFromJobScheduleNextResponse, + JobListPreparationAndReleaseTaskStatusNextResponse +} from "../models"; + +/// +/** Class containing Job operations. */ +export class JobImpl implements Job { + private readonly client: BatchServiceClient; + + /** + * Initialize a new instance of the class Job class. + * @param client Reference to the service client + */ + constructor(client: BatchServiceClient) { this.client = client; } /** - * Statistics are aggregated across all Jobs that have ever existed in the Account, from Account - * creation to the last update time of the statistics. The statistics may not be immediately - * available. The Batch service performs periodic roll-up of statistics. The typical delay is about - * 30 minutes. - * @summary Gets lifetime summary statistics for all of the Jobs in the specified Account. - * @param [options] The optional parameters - * @returns Promise - */ - getAllLifetimeStatistics( - options?: Models.JobGetAllLifetimeStatisticsOptionalParams - ): Promise; - /** - * @param callback The callback + * Lists all of the Jobs in the specified Account. + * @param options The options parameters. */ - getAllLifetimeStatistics(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - getAllLifetimeStatistics( - options: Models.JobGetAllLifetimeStatisticsOptionalParams, - callback: msRest.ServiceCallback - ): void; - getAllLifetimeStatistics( - options?: - | Models.JobGetAllLifetimeStatisticsOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - options + public list( + options?: JobListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); }, - getAllLifetimeStatisticsOperationSpec, - callback - ) as Promise; + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(options); + } + }; + } + + private async *listPagingPage( + options?: JobListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(options); + yield result.value || []; + let continuationToken = result.odataNextLink; + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.odataNextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + options?: JobListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } } /** - * Deleting a Job also deletes all Tasks that are part of that Job, and all Job statistics. This - * also overrides the retention period for Task data; that is, if the Job contains Tasks which are - * still retained on Compute Nodes, the Batch services deletes those Tasks' working directories and - * all their contents. When a Delete Job request is received, the Batch service sets the Job to - * the deleting state. All update operations on a Job that is in deleting state will fail with - * status code 409 (Conflict), with additional information indicating that the Job is being - * deleted. - * @summary Deletes a Job. - * @param jobId The ID of the Job to delete. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod( - jobId: string, - options?: Models.JobDeleteMethodOptionalParams - ): Promise; - /** - * @param jobId The ID of the Job to delete. - * @param callback The callback + * Lists the Jobs that have been created under the specified Job Schedule. + * @param jobScheduleId The ID of the Job Schedule from which you want to get a list of Jobs. + * @param options The options parameters. */ - deleteMethod(jobId: string, callback: msRest.ServiceCallback): void; + public listFromJobSchedule( + jobScheduleId: string, + options?: JobListFromJobScheduleOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listFromJobSchedulePagingAll(jobScheduleId, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listFromJobSchedulePagingPage(jobScheduleId, options); + } + }; + } + + private async *listFromJobSchedulePagingPage( + jobScheduleId: string, + options?: JobListFromJobScheduleOptionalParams + ): AsyncIterableIterator { + let result = await this._listFromJobSchedule(jobScheduleId, options); + yield result.value || []; + let continuationToken = result.odataNextLink; + while (continuationToken) { + result = await this._listFromJobScheduleNext( + jobScheduleId, + continuationToken, + options + ); + continuationToken = result.odataNextLink; + yield result.value || []; + } + } + + private async *listFromJobSchedulePagingAll( + jobScheduleId: string, + options?: JobListFromJobScheduleOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listFromJobSchedulePagingPage( + jobScheduleId, + options + )) { + yield* page; + } + } + /** - * @param jobId The ID of the Job to delete. - * @param options The optional parameters - * @param callback The callback + * This API returns the Job Preparation and Job Release Task status on all Compute Nodes that have run + * the Job Preparation or Job Release Task. This includes Compute Nodes which have since been removed + * from the Pool. If this API is invoked on a Job which has no Job Preparation or Job Release Task, the + * Batch service returns HTTP status code 409 (Conflict) with an error code of + * JobPreparationTaskNotSpecified. + * @param jobId The ID of the Job. + * @param options The options parameters. */ - deleteMethod( + public listPreparationAndReleaseTaskStatus( jobId: string, - options: Models.JobDeleteMethodOptionalParams, - callback: msRest.ServiceCallback - ): void; - deleteMethod( + options?: JobListPreparationAndReleaseTaskStatusOptionalParams + ): PagedAsyncIterableIterator< + JobPreparationAndReleaseTaskExecutionInformation + > { + const iter = this.listPreparationAndReleaseTaskStatusPagingAll( + jobId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPreparationAndReleaseTaskStatusPagingPage( + jobId, + options + ); + } + }; + } + + private async *listPreparationAndReleaseTaskStatusPagingPage( jobId: string, - options?: Models.JobDeleteMethodOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { + options?: JobListPreparationAndReleaseTaskStatusOptionalParams + ): AsyncIterableIterator { + let result = await this._listPreparationAndReleaseTaskStatus( + jobId, + options + ); + yield result.value || []; + let continuationToken = result.odataNextLink; + while (continuationToken) { + result = await this._listPreparationAndReleaseTaskStatusNext( jobId, + continuationToken, options - }, - deleteMethodOperationSpec, - callback - ) as Promise; + ); + continuationToken = result.odataNextLink; + yield result.value || []; + } + } + + private async *listPreparationAndReleaseTaskStatusPagingAll( + jobId: string, + options?: JobListPreparationAndReleaseTaskStatusOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPreparationAndReleaseTaskStatusPagingPage( + jobId, + options + )) { + yield* page; + } } /** - * @summary Gets information about the specified Job. - * @param jobId The ID of the Job. - * @param [options] The optional parameters - * @returns Promise + * Statistics are aggregated across all Jobs that have ever existed in the Account, from Account + * creation to the last update time of the statistics. The statistics may not be immediately available. + * The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes. + * @param options The options parameters. */ - get(jobId: string, options?: Models.JobGetOptionalParams): Promise; + getAllLifetimeStatistics( + options?: JobGetAllLifetimeStatisticsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + getAllLifetimeStatisticsOperationSpec + ); + } + /** - * @param jobId The ID of the Job. - * @param callback The callback + * Deleting a Job also deletes all Tasks that are part of that Job, and all Job statistics. This also + * overrides the retention period for Task data; that is, if the Job contains Tasks which are still + * retained on Compute Nodes, the Batch services deletes those Tasks' working directories and all their + * contents. When a Delete Job request is received, the Batch service sets the Job to the deleting + * state. All update operations on a Job that is in deleting state will fail with status code 409 + * (Conflict), with additional information indicating that the Job is being deleted. + * @param jobId The ID of the Job to delete. + * @param options The options parameters. */ - get(jobId: string, callback: msRest.ServiceCallback): void; + delete( + jobId: string, + options?: JobDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { jobId, options }, + deleteOperationSpec + ); + } + /** + * Gets information about the specified Job. * @param jobId The ID of the Job. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - get( - jobId: string, - options: Models.JobGetOptionalParams, - callback: msRest.ServiceCallback - ): void; - get( - jobId: string, - options?: Models.JobGetOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(jobId: string, options?: JobGetOptionalParams): Promise { return this.client.sendOperationRequest( - { - jobId, - options - }, - getOperationSpec, - callback - ) as Promise; + { jobId, options }, + getOperationSpec + ); } /** * This replaces only the Job properties specified in the request. For example, if the Job has - * constraints, and a request does not specify the constraints element, then the Job keeps the - * existing constraints. - * @summary Updates the properties of the specified Job. - * @param jobId The ID of the Job whose properties you want to update. - * @param jobPatchParameter The parameters for the request. - * @param [options] The optional parameters - * @returns Promise - */ - patch( - jobId: string, - jobPatchParameter: Models.JobPatchParameter, - options?: Models.JobPatchOptionalParams - ): Promise; - /** + * constraints, and a request does not specify the constraints element, then the Job keeps the existing + * constraints. * @param jobId The ID of the Job whose properties you want to update. * @param jobPatchParameter The parameters for the request. - * @param callback The callback + * @param options The options parameters. */ patch( jobId: string, - jobPatchParameter: Models.JobPatchParameter, - callback: msRest.ServiceCallback - ): void; - /** - * @param jobId The ID of the Job whose properties you want to update. - * @param jobPatchParameter The parameters for the request. - * @param options The optional parameters - * @param callback The callback - */ - patch( - jobId: string, - jobPatchParameter: Models.JobPatchParameter, - options: Models.JobPatchOptionalParams, - callback: msRest.ServiceCallback - ): void; - patch( - jobId: string, - jobPatchParameter: Models.JobPatchParameter, - options?: Models.JobPatchOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + jobPatchParameter: JobPatchParameter, + options?: JobPatchOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobId, - jobPatchParameter, - options - }, - patchOperationSpec, - callback - ) as Promise; + { jobId, jobPatchParameter, options }, + patchOperationSpec + ); } /** - * This fully replaces all the updatable properties of the Job. For example, if the Job has - * constraints associated with it and if constraints is not specified with this request, then the - * Batch service will remove the existing constraints. - * @summary Updates the properties of the specified Job. + * This fully replaces all the updatable properties of the Job. For example, if the Job has constraints + * associated with it and if constraints is not specified with this request, then the Batch service + * will remove the existing constraints. * @param jobId The ID of the Job whose properties you want to update. * @param jobUpdateParameter The parameters for the request. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ update( jobId: string, - jobUpdateParameter: Models.JobUpdateParameter, - options?: Models.JobUpdateOptionalParams - ): Promise; - /** - * @param jobId The ID of the Job whose properties you want to update. - * @param jobUpdateParameter The parameters for the request. - * @param callback The callback - */ - update( - jobId: string, - jobUpdateParameter: Models.JobUpdateParameter, - callback: msRest.ServiceCallback - ): void; - /** - * @param jobId The ID of the Job whose properties you want to update. - * @param jobUpdateParameter The parameters for the request. - * @param options The optional parameters - * @param callback The callback - */ - update( - jobId: string, - jobUpdateParameter: Models.JobUpdateParameter, - options: Models.JobUpdateOptionalParams, - callback: msRest.ServiceCallback - ): void; - update( - jobId: string, - jobUpdateParameter: Models.JobUpdateParameter, - options?: Models.JobUpdateOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + jobUpdateParameter: JobUpdateParameter, + options?: JobUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobId, - jobUpdateParameter, - options - }, - updateOperationSpec, - callback - ) as Promise; + { jobId, jobUpdateParameter, options }, + updateOperationSpec + ); } /** - * The Batch Service immediately moves the Job to the disabling state. Batch then uses the - * disableTasks parameter to determine what to do with the currently running Tasks of the Job. The - * Job remains in the disabling state until the disable operation is completed and all Tasks have - * been dealt with according to the disableTasks option; the Job then moves to the disabled state. - * No new Tasks are started under the Job until it moves back to active state. If you try to - * disable a Job that is in any state other than active, disabling, or disabled, the request fails - * with status code 409. - * @summary Disables the specified Job, preventing new Tasks from running. + * The Batch Service immediately moves the Job to the disabling state. Batch then uses the disableTasks + * parameter to determine what to do with the currently running Tasks of the Job. The Job remains in + * the disabling state until the disable operation is completed and all Tasks have been dealt with + * according to the disableTasks option; the Job then moves to the disabled state. No new Tasks are + * started under the Job until it moves back to active state. If you try to disable a Job that is in + * any state other than active, disabling, or disabled, the request fails with status code 409. * @param jobId The ID of the Job to disable. - * @param disableTasks What to do with active Tasks associated with the Job. Possible values - * include: 'requeue', 'terminate', 'wait' - * @param [options] The optional parameters - * @returns Promise + * @param jobDisableParameter The parameters for the request. + * @param options The options parameters. */ disable( jobId: string, - disableTasks: Models.DisableJobOption, - options?: Models.JobDisableOptionalParams - ): Promise; - /** - * @param jobId The ID of the Job to disable. - * @param disableTasks What to do with active Tasks associated with the Job. Possible values - * include: 'requeue', 'terminate', 'wait' - * @param callback The callback - */ - disable( - jobId: string, - disableTasks: Models.DisableJobOption, - callback: msRest.ServiceCallback - ): void; - /** - * @param jobId The ID of the Job to disable. - * @param disableTasks What to do with active Tasks associated with the Job. Possible values - * include: 'requeue', 'terminate', 'wait' - * @param options The optional parameters - * @param callback The callback - */ - disable( - jobId: string, - disableTasks: Models.DisableJobOption, - options: Models.JobDisableOptionalParams, - callback: msRest.ServiceCallback - ): void; - disable( - jobId: string, - disableTasks: Models.DisableJobOption, - options?: Models.JobDisableOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + jobDisableParameter: JobDisableParameter, + options?: JobDisableOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobId, - disableTasks, - options - }, - disableOperationSpec, - callback - ) as Promise; + { jobId, jobDisableParameter, options }, + disableOperationSpec + ); } /** - * When you call this API, the Batch service sets a disabled Job to the enabling state. After the - * this operation is completed, the Job moves to the active state, and scheduling of new Tasks - * under the Job resumes. The Batch service does not allow a Task to remain in the active state for - * more than 180 days. Therefore, if you enable a Job containing active Tasks which were added more - * than 180 days ago, those Tasks will not run. - * @summary Enables the specified Job, allowing new Tasks to run. - * @param jobId The ID of the Job to enable. - * @param [options] The optional parameters - * @returns Promise - */ - enable( - jobId: string, - options?: Models.JobEnableOptionalParams - ): Promise; - /** - * @param jobId The ID of the Job to enable. - * @param callback The callback - */ - enable(jobId: string, callback: msRest.ServiceCallback): void; - /** + * When you call this API, the Batch service sets a disabled Job to the enabling state. After the this + * operation is completed, the Job moves to the active state, and scheduling of new Tasks under the Job + * resumes. The Batch service does not allow a Task to remain in the active state for more than 180 + * days. Therefore, if you enable a Job containing active Tasks which were added more than 180 days + * ago, those Tasks will not run. * @param jobId The ID of the Job to enable. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ enable( jobId: string, - options: Models.JobEnableOptionalParams, - callback: msRest.ServiceCallback - ): void; - enable( - jobId: string, - options?: Models.JobEnableOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: JobEnableOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobId, - options - }, - enableOperationSpec, - callback - ) as Promise; + { jobId, options }, + enableOperationSpec + ); } /** - * When a Terminate Job request is received, the Batch service sets the Job to the terminating - * state. The Batch service then terminates any running Tasks associated with the Job and runs any - * required Job release Tasks. Then the Job moves into the completed state. If there are any Tasks - * in the Job in the active state, they will remain in the active state. Once a Job is terminated, - * new Tasks cannot be added and any remaining active Tasks will not be scheduled. - * @summary Terminates the specified Job, marking it as completed. - * @param jobId The ID of the Job to terminate. - * @param [options] The optional parameters - * @returns Promise - */ - terminate( - jobId: string, - options?: Models.JobTerminateOptionalParams - ): Promise; - /** - * @param jobId The ID of the Job to terminate. - * @param callback The callback - */ - terminate(jobId: string, callback: msRest.ServiceCallback): void; - /** + * When a Terminate Job request is received, the Batch service sets the Job to the terminating state. + * The Batch service then terminates any running Tasks associated with the Job and runs any required + * Job release Tasks. Then the Job moves into the completed state. If there are any Tasks in the Job in + * the active state, they will remain in the active state. Once a Job is terminated, new Tasks cannot + * be added and any remaining active Tasks will not be scheduled. * @param jobId The ID of the Job to terminate. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ terminate( jobId: string, - options: Models.JobTerminateOptionalParams, - callback: msRest.ServiceCallback - ): void; - terminate( - jobId: string, - options?: Models.JobTerminateOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: JobTerminateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobId, - options - }, - terminateOperationSpec, - callback - ) as Promise; + { jobId, options }, + terminateOperationSpec + ); } /** * The Batch service supports two ways to control the work done as part of a Job. In the first * approach, the user specifies a Job Manager Task. The Batch service launches this Task when it is - * ready to start the Job. The Job Manager Task controls all other Tasks that run under this Job, - * by using the Task APIs. In the second approach, the user directly controls the execution of - * Tasks under an active Job, by using the Task APIs. Also note: when naming Jobs, avoid including - * sensitive information such as user names or secret project names. This information may appear in - * telemetry logs accessible to Microsoft Support engineers. - * @summary Adds a Job to the specified Account. - * @param job The Job to be added. - * @param [options] The optional parameters - * @returns Promise - */ - add( - job: Models.JobAddParameter, - options?: Models.JobAddOptionalParams - ): Promise; - /** - * @param job The Job to be added. - * @param callback The callback - */ - add(job: Models.JobAddParameter, callback: msRest.ServiceCallback): void; - /** + * ready to start the Job. The Job Manager Task controls all other Tasks that run under this Job, by + * using the Task APIs. In the second approach, the user directly controls the execution of Tasks under + * an active Job, by using the Task APIs. Also note: when naming Jobs, avoid including sensitive + * information such as user names or secret project names. This information may appear in telemetry + * logs accessible to Microsoft Support engineers. * @param job The Job to be added. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ add( - job: Models.JobAddParameter, - options: Models.JobAddOptionalParams, - callback: msRest.ServiceCallback - ): void; - add( - job: Models.JobAddParameter, - options?: Models.JobAddOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - job, - options - }, - addOperationSpec, - callback - ) as Promise; + job: JobAddParameter, + options?: JobAddOptionalParams + ): Promise { + return this.client.sendOperationRequest({ job, options }, addOperationSpec); } /** - * @summary Lists all of the Jobs in the specified Account. - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: Models.JobListOptionalParams): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback + * Lists all of the Jobs in the specified Account. + * @param options The options parameters. */ - list( - options: Models.JobListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - options?: Models.JobListOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback - ) as Promise; + private _list(options?: JobListOptionalParams): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); } /** - * @summary Lists the Jobs that have been created under the specified Job Schedule. - * @param jobScheduleId The ID of the Job Schedule from which you want to get a list of Jobs. - * @param [options] The optional parameters - * @returns Promise - */ - listFromJobSchedule( - jobScheduleId: string, - options?: Models.JobListFromJobScheduleOptionalParams - ): Promise; - /** - * @param jobScheduleId The ID of the Job Schedule from which you want to get a list of Jobs. - * @param callback The callback - */ - listFromJobSchedule( - jobScheduleId: string, - callback: msRest.ServiceCallback - ): void; - /** + * Lists the Jobs that have been created under the specified Job Schedule. * @param jobScheduleId The ID of the Job Schedule from which you want to get a list of Jobs. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - listFromJobSchedule( + private _listFromJobSchedule( jobScheduleId: string, - options: Models.JobListFromJobScheduleOptionalParams, - callback: msRest.ServiceCallback - ): void; - listFromJobSchedule( - jobScheduleId: string, - options?: - | Models.JobListFromJobScheduleOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: JobListFromJobScheduleOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobScheduleId, - options - }, - listFromJobScheduleOperationSpec, - callback - ) as Promise; + { jobScheduleId, options }, + listFromJobScheduleOperationSpec + ); } /** - * This API returns the Job Preparation and Job Release Task status on all Compute Nodes that have - * run the Job Preparation or Job Release Task. This includes Compute Nodes which have since been - * removed from the Pool. If this API is invoked on a Job which has no Job Preparation or Job - * Release Task, the Batch service returns HTTP status code 409 (Conflict) with an error code of + * This API returns the Job Preparation and Job Release Task status on all Compute Nodes that have run + * the Job Preparation or Job Release Task. This includes Compute Nodes which have since been removed + * from the Pool. If this API is invoked on a Job which has no Job Preparation or Job Release Task, the + * Batch service returns HTTP status code 409 (Conflict) with an error code of * JobPreparationTaskNotSpecified. - * @summary Lists the execution status of the Job Preparation and Job Release Task for the - * specified Job across the Compute Nodes where the Job has run. - * @param jobId The ID of the Job. - * @param [options] The optional parameters - * @returns Promise - */ - listPreparationAndReleaseTaskStatus( - jobId: string, - options?: Models.JobListPreparationAndReleaseTaskStatusOptionalParams - ): Promise; - /** * @param jobId The ID of the Job. - * @param callback The callback + * @param options The options parameters. */ - listPreparationAndReleaseTaskStatus( + private _listPreparationAndReleaseTaskStatus( jobId: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param jobId The ID of the Job. - * @param options The optional parameters - * @param callback The callback - */ - listPreparationAndReleaseTaskStatus( - jobId: string, - options: Models.JobListPreparationAndReleaseTaskStatusOptionalParams, - callback: msRest.ServiceCallback - ): void; - listPreparationAndReleaseTaskStatus( - jobId: string, - options?: - | Models.JobListPreparationAndReleaseTaskStatusOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: JobListPreparationAndReleaseTaskStatusOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobId, - options - }, - listPreparationAndReleaseTaskStatusOperationSpec, - callback - ) as Promise; + { jobId, options }, + listPreparationAndReleaseTaskStatusOperationSpec + ); } /** - * Task counts provide a count of the Tasks by active, running or completed Task state, and a count - * of Tasks which succeeded or failed. Tasks in the preparing state are counted as running. Note - * that the numbers returned may not always be up to date. If you need exact task counts, use a - * list query. - * @summary Gets the Task counts for the specified Job. - * @param jobId The ID of the Job. - * @param [options] The optional parameters - * @returns Promise - */ - getTaskCounts( - jobId: string, - options?: Models.JobGetTaskCountsOptionalParams - ): Promise; - /** - * @param jobId The ID of the Job. - * @param callback The callback - */ - getTaskCounts(jobId: string, callback: msRest.ServiceCallback): void; - /** + * Task counts provide a count of the Tasks by active, running or completed Task state, and a count of + * Tasks which succeeded or failed. Tasks in the preparing state are counted as running. Note that the + * numbers returned may not always be up to date. If you need exact task counts, use a list query. * @param jobId The ID of the Job. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ getTaskCounts( jobId: string, - options: Models.JobGetTaskCountsOptionalParams, - callback: msRest.ServiceCallback - ): void; - getTaskCounts( - jobId: string, - options?: - | Models.JobGetTaskCountsOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: JobGetTaskCountsOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobId, - options - }, - getTaskCountsOperationSpec, - callback - ) as Promise; + { jobId, options }, + getTaskCountsOperationSpec + ); } /** - * @summary Lists all of the Jobs in the specified Account. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext( - nextPageLink: string, - options?: Models.JobListNextOptionalParams - ): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listNext( - nextPageLink: string, - options: Models.JobListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: Models.JobListNextOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + private _listNext( + nextLink: string, + options?: JobListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback - ) as Promise; + { nextLink, options }, + listNextOperationSpec + ); } /** - * @summary Lists the Jobs that have been created under the specified Job Schedule. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listFromJobScheduleNext( - nextPageLink: string, - options?: Models.JobListFromJobScheduleNextOptionalParams - ): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listFromJobScheduleNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListFromJobScheduleNext + * @param jobScheduleId The ID of the Job Schedule from which you want to get a list of Jobs. + * @param nextLink The nextLink from the previous successful call to the ListFromJobSchedule method. + * @param options The options parameters. */ - listFromJobScheduleNext( - nextPageLink: string, - options: Models.JobListFromJobScheduleNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listFromJobScheduleNext( - nextPageLink: string, - options?: - | Models.JobListFromJobScheduleNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + private _listFromJobScheduleNext( + jobScheduleId: string, + nextLink: string, + options?: JobListFromJobScheduleNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listFromJobScheduleNextOperationSpec, - callback - ) as Promise; + { jobScheduleId, nextLink, options }, + listFromJobScheduleNextOperationSpec + ); } /** - * This API returns the Job Preparation and Job Release Task status on all Compute Nodes that have - * run the Job Preparation or Job Release Task. This includes Compute Nodes which have since been - * removed from the Pool. If this API is invoked on a Job which has no Job Preparation or Job - * Release Task, the Batch service returns HTTP status code 409 (Conflict) with an error code of - * JobPreparationTaskNotSpecified. - * @summary Lists the execution status of the Job Preparation and Job Release Task for the - * specified Job across the Compute Nodes where the Job has run. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listPreparationAndReleaseTaskStatusNext( - nextPageLink: string, - options?: Models.JobListPreparationAndReleaseTaskStatusNextOptionalParams - ): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listPreparationAndReleaseTaskStatusNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListPreparationAndReleaseTaskStatusNext + * @param jobId The ID of the Job. + * @param nextLink The nextLink from the previous successful call to the + * ListPreparationAndReleaseTaskStatus method. + * @param options The options parameters. */ - listPreparationAndReleaseTaskStatusNext( - nextPageLink: string, - options: Models.JobListPreparationAndReleaseTaskStatusNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listPreparationAndReleaseTaskStatusNext( - nextPageLink: string, - options?: - | Models.JobListPreparationAndReleaseTaskStatusNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + private _listPreparationAndReleaseTaskStatusNext( + jobId: string, + nextLink: string, + options?: JobListPreparationAndReleaseTaskStatusNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listPreparationAndReleaseTaskStatusNextOperationSpec, - callback - ) as Promise; + { jobId, nextLink, options }, + listPreparationAndReleaseTaskStatusNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getAllLifetimeStatisticsOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getAllLifetimeStatisticsOperationSpec: coreClient.OperationSpec = { + path: "/lifetimejobstats", httpMethod: "GET", - path: "lifetimejobstats", - urlParameters: [Parameters.batchUrl], - queryParameters: [Parameters.apiVersion, Parameters.timeout19], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId24, - Parameters.returnClientRequestId24, - Parameters.ocpDate24 - ], responses: { 200: { bodyMapper: Mappers.JobStatistics, headersMapper: Mappers.JobGetAllLifetimeStatisticsHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobGetAllLifetimeStatisticsHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [Parameters.apiVersion, Parameters.timeout19], + urlParameters: [Parameters.batchUrl], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId19, + Parameters.returnClientRequestId19, + Parameters.ocpDate19 + ], serializer }; - -const deleteMethodOperationSpec: msRest.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}", httpMethod: "DELETE", - path: "jobs/{jobId}", - urlParameters: [Parameters.batchUrl, Parameters.jobId], + responses: { + 202: { + headersMapper: Mappers.JobDeleteHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, queryParameters: [Parameters.apiVersion, Parameters.timeout20], + urlParameters: [Parameters.batchUrl, Parameters.jobId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId25, - Parameters.returnClientRequestId25, - Parameters.ocpDate25, + Parameters.accept, + Parameters.clientRequestId20, + Parameters.returnClientRequestId20, + Parameters.ocpDate20, Parameters.ifMatch8, Parameters.ifNoneMatch8, Parameters.ifModifiedSince8, Parameters.ifUnmodifiedSince8 ], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}", + httpMethod: "GET", responses: { - 202: { - headersMapper: Mappers.JobDeleteHeaders + 200: { + bodyMapper: Mappers.CloudJob, + headersMapper: Mappers.JobGetHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobDeleteHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "jobs/{jobId}", - urlParameters: [Parameters.batchUrl, Parameters.jobId], queryParameters: [ Parameters.apiVersion, Parameters.select2, Parameters.expand2, Parameters.timeout21 ], + urlParameters: [Parameters.batchUrl, Parameters.jobId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId26, - Parameters.returnClientRequestId26, - Parameters.ocpDate26, + Parameters.accept, + Parameters.clientRequestId21, + Parameters.returnClientRequestId21, + Parameters.ocpDate21, Parameters.ifMatch9, Parameters.ifNoneMatch9, Parameters.ifModifiedSince9, Parameters.ifUnmodifiedSince9 ], + serializer +}; +const patchOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}", + httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.CloudJob, - headersMapper: Mappers.JobGetHeaders + headersMapper: Mappers.JobPatchHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobGetHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const patchOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "jobs/{jobId}", - urlParameters: [Parameters.batchUrl, Parameters.jobId], + requestBody: Parameters.jobPatchParameter, queryParameters: [Parameters.apiVersion, Parameters.timeout22], + urlParameters: [Parameters.batchUrl, Parameters.jobId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId27, - Parameters.returnClientRequestId27, - Parameters.ocpDate27, + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId22, + Parameters.returnClientRequestId22, + Parameters.ocpDate22, Parameters.ifMatch10, Parameters.ifNoneMatch10, Parameters.ifModifiedSince10, Parameters.ifUnmodifiedSince10 ], - requestBody: { - parameterPath: "jobPatchParameter", - mapper: { - ...Mappers.JobPatchParameter, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}", + httpMethod: "PUT", responses: { 200: { - headersMapper: Mappers.JobPatchHeaders + headersMapper: Mappers.JobUpdateHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobPatchHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "jobs/{jobId}", - urlParameters: [Parameters.batchUrl, Parameters.jobId], + requestBody: Parameters.jobUpdateParameter, queryParameters: [Parameters.apiVersion, Parameters.timeout23], + urlParameters: [Parameters.batchUrl, Parameters.jobId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId28, - Parameters.returnClientRequestId28, - Parameters.ocpDate28, + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId23, + Parameters.returnClientRequestId23, + Parameters.ocpDate23, Parameters.ifMatch11, Parameters.ifNoneMatch11, Parameters.ifModifiedSince11, Parameters.ifUnmodifiedSince11 ], - requestBody: { - parameterPath: "jobUpdateParameter", - mapper: { - ...Mappers.JobUpdateParameter, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", + mediaType: "json", + serializer +}; +const disableOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}/disable", + httpMethod: "POST", responses: { - 200: { - headersMapper: Mappers.JobUpdateHeaders + 202: { + headersMapper: Mappers.JobDisableHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobUpdateHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const disableOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "jobs/{jobId}/disable", - urlParameters: [Parameters.batchUrl, Parameters.jobId], + requestBody: Parameters.jobDisableParameter, queryParameters: [Parameters.apiVersion, Parameters.timeout24], + urlParameters: [Parameters.batchUrl, Parameters.jobId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId29, - Parameters.returnClientRequestId29, - Parameters.ocpDate29, + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId24, + Parameters.returnClientRequestId24, + Parameters.ocpDate24, Parameters.ifMatch12, Parameters.ifNoneMatch12, Parameters.ifModifiedSince12, Parameters.ifUnmodifiedSince12 ], - requestBody: { - parameterPath: { - disableTasks: "disableTasks" - }, - mapper: { - ...Mappers.JobDisableParameter, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", + mediaType: "json", + serializer +}; +const enableOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}/enable", + httpMethod: "POST", responses: { 202: { - headersMapper: Mappers.JobDisableHeaders + headersMapper: Mappers.JobEnableHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobDisableHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const enableOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "jobs/{jobId}/enable", - urlParameters: [Parameters.batchUrl, Parameters.jobId], queryParameters: [Parameters.apiVersion, Parameters.timeout25], + urlParameters: [Parameters.batchUrl, Parameters.jobId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId30, - Parameters.returnClientRequestId30, - Parameters.ocpDate30, + Parameters.accept, + Parameters.clientRequestId25, + Parameters.returnClientRequestId25, + Parameters.ocpDate25, Parameters.ifMatch13, Parameters.ifNoneMatch13, Parameters.ifModifiedSince13, Parameters.ifUnmodifiedSince13 ], + serializer +}; +const terminateOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}/terminate", + httpMethod: "POST", responses: { 202: { - headersMapper: Mappers.JobEnableHeaders + headersMapper: Mappers.JobTerminateHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobEnableHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const terminateOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "jobs/{jobId}/terminate", - urlParameters: [Parameters.batchUrl, Parameters.jobId], + requestBody: Parameters.jobTerminateParameter, queryParameters: [Parameters.apiVersion, Parameters.timeout26], + urlParameters: [Parameters.batchUrl, Parameters.jobId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId31, - Parameters.returnClientRequestId31, - Parameters.ocpDate31, + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId26, + Parameters.returnClientRequestId26, + Parameters.ocpDate26, Parameters.ifMatch14, Parameters.ifNoneMatch14, Parameters.ifModifiedSince14, Parameters.ifUnmodifiedSince14 ], - requestBody: { - parameterPath: { - terminateReason: ["options", "terminateReason"] - }, - mapper: Mappers.JobTerminateParameter - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", - responses: { - 202: { - headersMapper: Mappers.JobTerminateHeaders - }, - default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobTerminateHeaders - } - }, + mediaType: "json", serializer }; - -const addOperationSpec: msRest.OperationSpec = { +const addOperationSpec: coreClient.OperationSpec = { + path: "/jobs", httpMethod: "POST", - path: "jobs", - urlParameters: [Parameters.batchUrl], - queryParameters: [Parameters.apiVersion, Parameters.timeout27], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId32, - Parameters.returnClientRequestId32, - Parameters.ocpDate32 - ], - requestBody: { - parameterPath: "job", - mapper: { - ...Mappers.JobAddParameter, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", responses: { 201: { headersMapper: Mappers.JobAddHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobAddHeaders + bodyMapper: Mappers.BatchError } }, + requestBody: Parameters.job, + queryParameters: [Parameters.apiVersion, Parameters.timeout27], + urlParameters: [Parameters.batchUrl], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId27, + Parameters.returnClientRequestId27, + Parameters.ocpDate27 + ], + mediaType: "json", serializer }; - -const listOperationSpec: msRest.OperationSpec = { +const listOperationSpec: coreClient.OperationSpec = { + path: "/jobs", httpMethod: "GET", - path: "jobs", - urlParameters: [Parameters.batchUrl], + responses: { + 200: { + bodyMapper: Mappers.CloudJobListResult, + headersMapper: Mappers.JobListHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, queryParameters: [ Parameters.apiVersion, Parameters.filter4, @@ -1061,29 +763,27 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.maxResults5, Parameters.timeout28 ], + urlParameters: [Parameters.batchUrl], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId33, - Parameters.returnClientRequestId33, - Parameters.ocpDate33 + Parameters.accept, + Parameters.clientRequestId28, + Parameters.returnClientRequestId28, + Parameters.ocpDate28 ], + serializer +}; +const listFromJobScheduleOperationSpec: coreClient.OperationSpec = { + path: "/jobschedules/{jobScheduleId}/jobs", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.CloudJobListResult, - headersMapper: Mappers.JobListHeaders + headersMapper: Mappers.JobListFromJobScheduleHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobListHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const listFromJobScheduleOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "jobschedules/{jobScheduleId}/jobs", - urlParameters: [Parameters.batchUrl, Parameters.jobScheduleId], queryParameters: [ Parameters.apiVersion, Parameters.filter5, @@ -1092,29 +792,27 @@ const listFromJobScheduleOperationSpec: msRest.OperationSpec = { Parameters.maxResults6, Parameters.timeout29 ], + urlParameters: [Parameters.batchUrl, Parameters.jobScheduleId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId34, - Parameters.returnClientRequestId34, - Parameters.ocpDate34 + Parameters.accept, + Parameters.clientRequestId29, + Parameters.returnClientRequestId29, + Parameters.ocpDate29 ], + serializer +}; +const listPreparationAndReleaseTaskStatusOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}/jobpreparationandreleasetaskstatus", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudJobListResult, - headersMapper: Mappers.JobListFromJobScheduleHeaders + bodyMapper: Mappers.CloudJobListPreparationAndReleaseTaskStatusResult, + headersMapper: Mappers.JobListPreparationAndReleaseTaskStatusHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobListFromJobScheduleHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const listPreparationAndReleaseTaskStatusOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "jobs/{jobId}/jobpreparationandreleasetaskstatus", - urlParameters: [Parameters.batchUrl, Parameters.jobId], queryParameters: [ Parameters.apiVersion, Parameters.filter6, @@ -1122,120 +820,124 @@ const listPreparationAndReleaseTaskStatusOperationSpec: msRest.OperationSpec = { Parameters.maxResults7, Parameters.timeout30 ], + urlParameters: [Parameters.batchUrl, Parameters.jobId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId35, - Parameters.returnClientRequestId35, - Parameters.ocpDate35 + Parameters.accept, + Parameters.clientRequestId30, + Parameters.returnClientRequestId30, + Parameters.ocpDate30 ], - responses: { - 200: { - bodyMapper: Mappers.CloudJobListPreparationAndReleaseTaskStatusResult, - headersMapper: Mappers.JobListPreparationAndReleaseTaskStatusHeaders - }, - default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobListPreparationAndReleaseTaskStatusHeaders - } - }, serializer }; - -const getTaskCountsOperationSpec: msRest.OperationSpec = { +const getTaskCountsOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}/taskcounts", httpMethod: "GET", - path: "jobs/{jobId}/taskcounts", - urlParameters: [Parameters.batchUrl, Parameters.jobId], - queryParameters: [Parameters.apiVersion, Parameters.timeout31], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId36, - Parameters.returnClientRequestId36, - Parameters.ocpDate36 - ], responses: { 200: { bodyMapper: Mappers.TaskCountsResult, headersMapper: Mappers.JobGetTaskCountsHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobGetTaskCountsHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [Parameters.apiVersion, Parameters.timeout31], + urlParameters: [Parameters.batchUrl, Parameters.jobId], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId31, + Parameters.returnClientRequestId31, + Parameters.ocpDate31 + ], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "{batchUrl}", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId37, - Parameters.returnClientRequestId37, - Parameters.ocpDate37 - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.CloudJobListResult, - headersMapper: Mappers.JobListHeaders + headersMapper: Mappers.JobListNextHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobListHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter4, + Parameters.select3, + Parameters.expand3, + Parameters.maxResults5, + Parameters.timeout28 + ], + urlParameters: [Parameters.batchUrl, Parameters.nextLink], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId28, + Parameters.returnClientRequestId28, + Parameters.ocpDate28 + ], serializer }; - -const listFromJobScheduleNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "{batchUrl}", +const listFromJobScheduleNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId38, - Parameters.returnClientRequestId38, - Parameters.ocpDate38 - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.CloudJobListResult, - headersMapper: Mappers.JobListFromJobScheduleHeaders + headersMapper: Mappers.JobListFromJobScheduleNextHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobListFromJobScheduleHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter5, + Parameters.select4, + Parameters.expand4, + Parameters.maxResults6, + Parameters.timeout29 + ], + urlParameters: [ + Parameters.batchUrl, + Parameters.nextLink, + Parameters.jobScheduleId + ], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId29, + Parameters.returnClientRequestId29, + Parameters.ocpDate29 + ], serializer }; - -const listPreparationAndReleaseTaskStatusNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "{batchUrl}", +const listPreparationAndReleaseTaskStatusNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId39, - Parameters.returnClientRequestId39, - Parameters.ocpDate39 - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.CloudJobListPreparationAndReleaseTaskStatusResult, - headersMapper: Mappers.JobListPreparationAndReleaseTaskStatusHeaders + headersMapper: Mappers.JobListPreparationAndReleaseTaskStatusNextHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobListPreparationAndReleaseTaskStatusHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter6, + Parameters.select5, + Parameters.maxResults7, + Parameters.timeout30 + ], + urlParameters: [Parameters.batchUrl, Parameters.nextLink, Parameters.jobId], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId30, + Parameters.returnClientRequestId30, + Parameters.ocpDate30 + ], serializer }; diff --git a/sdk/batch/batch/src/operations/jobSchedule.ts b/sdk/batch/batch/src/operations/jobSchedule.ts index f47154504ddd..d915c1391ff6 100644 --- a/sdk/batch/batch/src/operations/jobSchedule.ts +++ b/sdk/batch/batch/src/operations/jobSchedule.ts @@ -3,784 +3,524 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/jobScheduleMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { JobSchedule } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { BatchServiceClientContext } from "../batchServiceClientContext"; +import { BatchServiceClient } from "../batchServiceClient"; +import { + CloudJobSchedule, + JobScheduleListNextOptionalParams, + JobScheduleListOptionalParams, + JobScheduleExistsOptionalParams, + JobScheduleExistsResponse, + JobScheduleDeleteOptionalParams, + JobScheduleDeleteResponse, + JobScheduleGetOptionalParams, + JobScheduleGetResponse, + JobSchedulePatchParameter, + JobSchedulePatchOptionalParams, + JobSchedulePatchResponse, + JobScheduleUpdateParameter, + JobScheduleUpdateOptionalParams, + JobScheduleUpdateResponse, + JobScheduleDisableOptionalParams, + JobScheduleDisableResponse, + JobScheduleEnableOptionalParams, + JobScheduleEnableResponse, + JobScheduleTerminateOptionalParams, + JobScheduleTerminateResponse, + JobScheduleAddParameter, + JobScheduleAddOptionalParams, + JobScheduleAddResponse, + JobScheduleListResponse, + JobScheduleListNextResponse +} from "../models"; -/** Class representing a JobSchedule. */ -export class JobSchedule { - private readonly client: BatchServiceClientContext; +/// +/** Class containing JobSchedule operations. */ +export class JobScheduleImpl implements JobSchedule { + private readonly client: BatchServiceClient; /** - * Create a JobSchedule. - * @param {BatchServiceClientContext} client Reference to the service client. + * Initialize a new instance of the class JobSchedule class. + * @param client Reference to the service client */ - constructor(client: BatchServiceClientContext) { + constructor(client: BatchServiceClient) { this.client = client; } /** - * @summary Checks the specified Job Schedule exists. - * @param jobScheduleId The ID of the Job Schedule which you want to check. - * @param [options] The optional parameters - * @returns Promise - */ - exists( - jobScheduleId: string, - options?: Models.JobScheduleExistsOptionalParams - ): Promise; - /** - * @param jobScheduleId The ID of the Job Schedule which you want to check. - * @param callback The callback + * Lists all of the Job Schedules in the specified Account. + * @param options The options parameters. */ - exists(jobScheduleId: string, callback: msRest.ServiceCallback): void; + public list( + options?: JobScheduleListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(options); + } + }; + } + + private async *listPagingPage( + options?: JobScheduleListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(options); + yield result.value || []; + let continuationToken = result.odataNextLink; + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.odataNextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + options?: JobScheduleListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + /** + * Checks the specified Job Schedule exists. * @param jobScheduleId The ID of the Job Schedule which you want to check. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ exists( jobScheduleId: string, - options: Models.JobScheduleExistsOptionalParams, - callback: msRest.ServiceCallback - ): void; - exists( - jobScheduleId: string, - options?: Models.JobScheduleExistsOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: JobScheduleExistsOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobScheduleId, - options - }, - existsOperationSpec, - callback - ) as Promise; + { jobScheduleId, options }, + existsOperationSpec + ); } /** - * When you delete a Job Schedule, this also deletes all Jobs and Tasks under that schedule. When - * Tasks are deleted, all the files in their working directories on the Compute Nodes are also - * deleted (the retention period is ignored). The Job Schedule statistics are no longer accessible - * once the Job Schedule is deleted, though they are still counted towards Account lifetime - * statistics. - * @summary Deletes a Job Schedule from the specified Account. + * When you delete a Job Schedule, this also deletes all Jobs and Tasks under that schedule. When Tasks + * are deleted, all the files in their working directories on the Compute Nodes are also deleted (the + * retention period is ignored). The Job Schedule statistics are no longer accessible once the Job + * Schedule is deleted, though they are still counted towards Account lifetime statistics. * @param jobScheduleId The ID of the Job Schedule to delete. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - deleteMethod( + delete( jobScheduleId: string, - options?: Models.JobScheduleDeleteMethodOptionalParams - ): Promise; - /** - * @param jobScheduleId The ID of the Job Schedule to delete. - * @param callback The callback - */ - deleteMethod(jobScheduleId: string, callback: msRest.ServiceCallback): void; - /** - * @param jobScheduleId The ID of the Job Schedule to delete. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod( - jobScheduleId: string, - options: Models.JobScheduleDeleteMethodOptionalParams, - callback: msRest.ServiceCallback - ): void; - deleteMethod( - jobScheduleId: string, - options?: Models.JobScheduleDeleteMethodOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: JobScheduleDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobScheduleId, - options - }, - deleteMethodOperationSpec, - callback - ) as Promise; + { jobScheduleId, options }, + deleteOperationSpec + ); } /** * Gets information about the specified Job Schedule. * @param jobScheduleId The ID of the Job Schedule to get. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ get( jobScheduleId: string, - options?: Models.JobScheduleGetOptionalParams - ): Promise; - /** - * @param jobScheduleId The ID of the Job Schedule to get. - * @param callback The callback - */ - get(jobScheduleId: string, callback: msRest.ServiceCallback): void; - /** - * @param jobScheduleId The ID of the Job Schedule to get. - * @param options The optional parameters - * @param callback The callback - */ - get( - jobScheduleId: string, - options: Models.JobScheduleGetOptionalParams, - callback: msRest.ServiceCallback - ): void; - get( - jobScheduleId: string, - options?: Models.JobScheduleGetOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: JobScheduleGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobScheduleId, - options - }, - getOperationSpec, - callback - ) as Promise; + { jobScheduleId, options }, + getOperationSpec + ); } /** * This replaces only the Job Schedule properties specified in the request. For example, if the - * schedule property is not specified with this request, then the Batch service will keep the - * existing schedule. Changes to a Job Schedule only impact Jobs created by the schedule after the - * update has taken place; currently running Jobs are unaffected. - * @summary Updates the properties of the specified Job Schedule. - * @param jobScheduleId The ID of the Job Schedule to update. - * @param jobSchedulePatchParameter The parameters for the request. - * @param [options] The optional parameters - * @returns Promise - */ - patch( - jobScheduleId: string, - jobSchedulePatchParameter: Models.JobSchedulePatchParameter, - options?: Models.JobSchedulePatchOptionalParams - ): Promise; - /** - * @param jobScheduleId The ID of the Job Schedule to update. - * @param jobSchedulePatchParameter The parameters for the request. - * @param callback The callback - */ - patch( - jobScheduleId: string, - jobSchedulePatchParameter: Models.JobSchedulePatchParameter, - callback: msRest.ServiceCallback - ): void; - /** + * schedule property is not specified with this request, then the Batch service will keep the existing + * schedule. Changes to a Job Schedule only impact Jobs created by the schedule after the update has + * taken place; currently running Jobs are unaffected. * @param jobScheduleId The ID of the Job Schedule to update. * @param jobSchedulePatchParameter The parameters for the request. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ patch( jobScheduleId: string, - jobSchedulePatchParameter: Models.JobSchedulePatchParameter, - options: Models.JobSchedulePatchOptionalParams, - callback: msRest.ServiceCallback - ): void; - patch( - jobScheduleId: string, - jobSchedulePatchParameter: Models.JobSchedulePatchParameter, - options?: Models.JobSchedulePatchOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + jobSchedulePatchParameter: JobSchedulePatchParameter, + options?: JobSchedulePatchOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobScheduleId, - jobSchedulePatchParameter, - options - }, - patchOperationSpec, - callback - ) as Promise; + { jobScheduleId, jobSchedulePatchParameter, options }, + patchOperationSpec + ); } /** - * This fully replaces all the updatable properties of the Job Schedule. For example, if the - * schedule property is not specified with this request, then the Batch service will remove the - * existing schedule. Changes to a Job Schedule only impact Jobs created by the schedule after the - * update has taken place; currently running Jobs are unaffected. - * @summary Updates the properties of the specified Job Schedule. - * @param jobScheduleId The ID of the Job Schedule to update. - * @param jobScheduleUpdateParameter The parameters for the request. - * @param [options] The optional parameters - * @returns Promise - */ - update( - jobScheduleId: string, - jobScheduleUpdateParameter: Models.JobScheduleUpdateParameter, - options?: Models.JobScheduleUpdateOptionalParams - ): Promise; - /** - * @param jobScheduleId The ID of the Job Schedule to update. - * @param jobScheduleUpdateParameter The parameters for the request. - * @param callback The callback - */ - update( - jobScheduleId: string, - jobScheduleUpdateParameter: Models.JobScheduleUpdateParameter, - callback: msRest.ServiceCallback - ): void; - /** + * This fully replaces all the updatable properties of the Job Schedule. For example, if the schedule + * property is not specified with this request, then the Batch service will remove the existing + * schedule. Changes to a Job Schedule only impact Jobs created by the schedule after the update has + * taken place; currently running Jobs are unaffected. * @param jobScheduleId The ID of the Job Schedule to update. * @param jobScheduleUpdateParameter The parameters for the request. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ update( jobScheduleId: string, - jobScheduleUpdateParameter: Models.JobScheduleUpdateParameter, - options: Models.JobScheduleUpdateOptionalParams, - callback: msRest.ServiceCallback - ): void; - update( - jobScheduleId: string, - jobScheduleUpdateParameter: Models.JobScheduleUpdateParameter, - options?: Models.JobScheduleUpdateOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + jobScheduleUpdateParameter: JobScheduleUpdateParameter, + options?: JobScheduleUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobScheduleId, - jobScheduleUpdateParameter, - options - }, - updateOperationSpec, - callback - ) as Promise; + { jobScheduleId, jobScheduleUpdateParameter, options }, + updateOperationSpec + ); } /** * No new Jobs will be created until the Job Schedule is enabled again. - * @summary Disables a Job Schedule. - * @param jobScheduleId The ID of the Job Schedule to disable. - * @param [options] The optional parameters - * @returns Promise - */ - disable( - jobScheduleId: string, - options?: Models.JobScheduleDisableOptionalParams - ): Promise; - /** * @param jobScheduleId The ID of the Job Schedule to disable. - * @param callback The callback + * @param options The options parameters. */ - disable(jobScheduleId: string, callback: msRest.ServiceCallback): void; - /** - * @param jobScheduleId The ID of the Job Schedule to disable. - * @param options The optional parameters - * @param callback The callback - */ - disable( - jobScheduleId: string, - options: Models.JobScheduleDisableOptionalParams, - callback: msRest.ServiceCallback - ): void; disable( jobScheduleId: string, - options?: Models.JobScheduleDisableOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: JobScheduleDisableOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobScheduleId, - options - }, - disableOperationSpec, - callback - ) as Promise; + { jobScheduleId, options }, + disableOperationSpec + ); } /** - * @summary Enables a Job Schedule. + * Enables a Job Schedule. * @param jobScheduleId The ID of the Job Schedule to enable. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ enable( jobScheduleId: string, - options?: Models.JobScheduleEnableOptionalParams - ): Promise; - /** - * @param jobScheduleId The ID of the Job Schedule to enable. - * @param callback The callback - */ - enable(jobScheduleId: string, callback: msRest.ServiceCallback): void; - /** - * @param jobScheduleId The ID of the Job Schedule to enable. - * @param options The optional parameters - * @param callback The callback - */ - enable( - jobScheduleId: string, - options: Models.JobScheduleEnableOptionalParams, - callback: msRest.ServiceCallback - ): void; - enable( - jobScheduleId: string, - options?: Models.JobScheduleEnableOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: JobScheduleEnableOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobScheduleId, - options - }, - enableOperationSpec, - callback - ) as Promise; + { jobScheduleId, options }, + enableOperationSpec + ); } /** - * @summary Terminates a Job Schedule. + * Terminates a Job Schedule. * @param jobScheduleId The ID of the Job Schedule to terminates. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ terminate( jobScheduleId: string, - options?: Models.JobScheduleTerminateOptionalParams - ): Promise; - /** - * @param jobScheduleId The ID of the Job Schedule to terminates. - * @param callback The callback - */ - terminate(jobScheduleId: string, callback: msRest.ServiceCallback): void; - /** - * @param jobScheduleId The ID of the Job Schedule to terminates. - * @param options The optional parameters - * @param callback The callback - */ - terminate( - jobScheduleId: string, - options: Models.JobScheduleTerminateOptionalParams, - callback: msRest.ServiceCallback - ): void; - terminate( - jobScheduleId: string, - options?: Models.JobScheduleTerminateOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: JobScheduleTerminateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobScheduleId, - options - }, - terminateOperationSpec, - callback - ) as Promise; + { jobScheduleId, options }, + terminateOperationSpec + ); } /** - * @summary Adds a Job Schedule to the specified Account. - * @param cloudJobSchedule The Job Schedule to be added. - * @param [options] The optional parameters - * @returns Promise - */ - add( - cloudJobSchedule: Models.JobScheduleAddParameter, - options?: Models.JobScheduleAddOptionalParams - ): Promise; - /** - * @param cloudJobSchedule The Job Schedule to be added. - * @param callback The callback - */ - add( - cloudJobSchedule: Models.JobScheduleAddParameter, - callback: msRest.ServiceCallback - ): void; - /** + * Adds a Job Schedule to the specified Account. * @param cloudJobSchedule The Job Schedule to be added. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ add( - cloudJobSchedule: Models.JobScheduleAddParameter, - options: Models.JobScheduleAddOptionalParams, - callback: msRest.ServiceCallback - ): void; - add( - cloudJobSchedule: Models.JobScheduleAddParameter, - options?: Models.JobScheduleAddOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + cloudJobSchedule: JobScheduleAddParameter, + options?: JobScheduleAddOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - cloudJobSchedule, - options - }, - addOperationSpec, - callback - ) as Promise; + { cloudJobSchedule, options }, + addOperationSpec + ); } /** - * @summary Lists all of the Job Schedules in the specified Account. - * @param [options] The optional parameters - * @returns Promise + * Lists all of the Job Schedules in the specified Account. + * @param options The options parameters. */ - list(options?: Models.JobScheduleListOptionalParams): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list( - options: Models.JobScheduleListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - options?: - | Models.JobScheduleListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback - ) as Promise; + private _list( + options?: JobScheduleListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); } /** - * @summary Lists all of the Job Schedules in the specified Account. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext( - nextPageLink: string, - options?: Models.JobScheduleListNextOptionalParams - ): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext( - nextPageLink: string, - options: Models.JobScheduleListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.JobScheduleListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + private _listNext( + nextLink: string, + options?: JobScheduleListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback - ) as Promise; + { nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const existsOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const existsOperationSpec: coreClient.OperationSpec = { + path: "/jobschedules/{jobScheduleId}", httpMethod: "HEAD", - path: "jobschedules/{jobScheduleId}", - urlParameters: [Parameters.batchUrl, Parameters.jobScheduleId], + responses: { + 200: { + headersMapper: Mappers.JobScheduleExistsHeaders + }, + 404: {}, + default: { + bodyMapper: Mappers.BatchError + } + }, queryParameters: [Parameters.apiVersion, Parameters.timeout45], + urlParameters: [Parameters.batchUrl, Parameters.jobScheduleId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId56, - Parameters.returnClientRequestId56, - Parameters.ocpDate56, + Parameters.accept, + Parameters.clientRequestId45, + Parameters.returnClientRequestId45, + Parameters.ocpDate45, Parameters.ifMatch15, Parameters.ifNoneMatch15, Parameters.ifModifiedSince19, Parameters.ifUnmodifiedSince19 ], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/jobschedules/{jobScheduleId}", + httpMethod: "DELETE", responses: { - 200: { - headersMapper: Mappers.JobScheduleExistsHeaders - }, - 404: { - headersMapper: Mappers.JobScheduleExistsHeaders + 202: { + headersMapper: Mappers.JobScheduleDeleteHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobScheduleExistsHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "jobschedules/{jobScheduleId}", - urlParameters: [Parameters.batchUrl, Parameters.jobScheduleId], queryParameters: [Parameters.apiVersion, Parameters.timeout46], + urlParameters: [Parameters.batchUrl, Parameters.jobScheduleId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId57, - Parameters.returnClientRequestId57, - Parameters.ocpDate57, + Parameters.accept, + Parameters.clientRequestId46, + Parameters.returnClientRequestId46, + Parameters.ocpDate46, Parameters.ifMatch16, Parameters.ifNoneMatch16, Parameters.ifModifiedSince20, Parameters.ifUnmodifiedSince20 ], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/jobschedules/{jobScheduleId}", + httpMethod: "GET", responses: { - 202: { - headersMapper: Mappers.JobScheduleDeleteHeaders + 200: { + bodyMapper: Mappers.CloudJobSchedule, + headersMapper: Mappers.JobScheduleGetHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobScheduleDeleteHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "jobschedules/{jobScheduleId}", - urlParameters: [Parameters.batchUrl, Parameters.jobScheduleId], queryParameters: [ Parameters.apiVersion, Parameters.select8, Parameters.expand5, Parameters.timeout47 ], + urlParameters: [Parameters.batchUrl, Parameters.jobScheduleId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId58, - Parameters.returnClientRequestId58, - Parameters.ocpDate58, + Parameters.accept, + Parameters.clientRequestId47, + Parameters.returnClientRequestId47, + Parameters.ocpDate47, Parameters.ifMatch17, Parameters.ifNoneMatch17, Parameters.ifModifiedSince21, Parameters.ifUnmodifiedSince21 ], + serializer +}; +const patchOperationSpec: coreClient.OperationSpec = { + path: "/jobschedules/{jobScheduleId}", + httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.CloudJobSchedule, - headersMapper: Mappers.JobScheduleGetHeaders + headersMapper: Mappers.JobSchedulePatchHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobScheduleGetHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const patchOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "jobschedules/{jobScheduleId}", - urlParameters: [Parameters.batchUrl, Parameters.jobScheduleId], + requestBody: Parameters.jobSchedulePatchParameter, queryParameters: [Parameters.apiVersion, Parameters.timeout48], + urlParameters: [Parameters.batchUrl, Parameters.jobScheduleId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId59, - Parameters.returnClientRequestId59, - Parameters.ocpDate59, + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId48, + Parameters.returnClientRequestId48, + Parameters.ocpDate48, Parameters.ifMatch18, Parameters.ifNoneMatch18, Parameters.ifModifiedSince22, Parameters.ifUnmodifiedSince22 ], - requestBody: { - parameterPath: "jobSchedulePatchParameter", - mapper: { - ...Mappers.JobSchedulePatchParameter, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/jobschedules/{jobScheduleId}", + httpMethod: "PUT", responses: { 200: { - headersMapper: Mappers.JobSchedulePatchHeaders + headersMapper: Mappers.JobScheduleUpdateHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobSchedulePatchHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "jobschedules/{jobScheduleId}", - urlParameters: [Parameters.batchUrl, Parameters.jobScheduleId], + requestBody: Parameters.jobScheduleUpdateParameter, queryParameters: [Parameters.apiVersion, Parameters.timeout49], + urlParameters: [Parameters.batchUrl, Parameters.jobScheduleId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId60, - Parameters.returnClientRequestId60, - Parameters.ocpDate60, + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId49, + Parameters.returnClientRequestId49, + Parameters.ocpDate49, Parameters.ifMatch19, Parameters.ifNoneMatch19, Parameters.ifModifiedSince23, Parameters.ifUnmodifiedSince23 ], - requestBody: { - parameterPath: "jobScheduleUpdateParameter", - mapper: { - ...Mappers.JobScheduleUpdateParameter, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", + mediaType: "json", + serializer +}; +const disableOperationSpec: coreClient.OperationSpec = { + path: "/jobschedules/{jobScheduleId}/disable", + httpMethod: "POST", responses: { - 200: { - headersMapper: Mappers.JobScheduleUpdateHeaders + 204: { + headersMapper: Mappers.JobScheduleDisableHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobScheduleUpdateHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const disableOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "jobschedules/{jobScheduleId}/disable", - urlParameters: [Parameters.batchUrl, Parameters.jobScheduleId], queryParameters: [Parameters.apiVersion, Parameters.timeout50], + urlParameters: [Parameters.batchUrl, Parameters.jobScheduleId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId61, - Parameters.returnClientRequestId61, - Parameters.ocpDate61, + Parameters.accept, + Parameters.clientRequestId50, + Parameters.returnClientRequestId50, + Parameters.ocpDate50, Parameters.ifMatch20, Parameters.ifNoneMatch20, Parameters.ifModifiedSince24, Parameters.ifUnmodifiedSince24 ], + serializer +}; +const enableOperationSpec: coreClient.OperationSpec = { + path: "/jobschedules/{jobScheduleId}/enable", + httpMethod: "POST", responses: { 204: { - headersMapper: Mappers.JobScheduleDisableHeaders + headersMapper: Mappers.JobScheduleEnableHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobScheduleDisableHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const enableOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "jobschedules/{jobScheduleId}/enable", - urlParameters: [Parameters.batchUrl, Parameters.jobScheduleId], queryParameters: [Parameters.apiVersion, Parameters.timeout51], + urlParameters: [Parameters.batchUrl, Parameters.jobScheduleId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId62, - Parameters.returnClientRequestId62, - Parameters.ocpDate62, + Parameters.accept, + Parameters.clientRequestId51, + Parameters.returnClientRequestId51, + Parameters.ocpDate51, Parameters.ifMatch21, Parameters.ifNoneMatch21, Parameters.ifModifiedSince25, Parameters.ifUnmodifiedSince25 ], + serializer +}; +const terminateOperationSpec: coreClient.OperationSpec = { + path: "/jobschedules/{jobScheduleId}/terminate", + httpMethod: "POST", responses: { - 204: { - headersMapper: Mappers.JobScheduleEnableHeaders + 202: { + headersMapper: Mappers.JobScheduleTerminateHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobScheduleEnableHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const terminateOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "jobschedules/{jobScheduleId}/terminate", - urlParameters: [Parameters.batchUrl, Parameters.jobScheduleId], queryParameters: [Parameters.apiVersion, Parameters.timeout52], + urlParameters: [Parameters.batchUrl, Parameters.jobScheduleId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId63, - Parameters.returnClientRequestId63, - Parameters.ocpDate63, + Parameters.accept, + Parameters.clientRequestId52, + Parameters.returnClientRequestId52, + Parameters.ocpDate52, Parameters.ifMatch22, Parameters.ifNoneMatch22, Parameters.ifModifiedSince26, Parameters.ifUnmodifiedSince26 ], - responses: { - 202: { - headersMapper: Mappers.JobScheduleTerminateHeaders - }, - default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobScheduleTerminateHeaders - } - }, serializer }; - -const addOperationSpec: msRest.OperationSpec = { +const addOperationSpec: coreClient.OperationSpec = { + path: "/jobschedules", httpMethod: "POST", - path: "jobschedules", - urlParameters: [Parameters.batchUrl], - queryParameters: [Parameters.apiVersion, Parameters.timeout53], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId64, - Parameters.returnClientRequestId64, - Parameters.ocpDate64 - ], - requestBody: { - parameterPath: "cloudJobSchedule", - mapper: { - ...Mappers.JobScheduleAddParameter, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", responses: { 201: { headersMapper: Mappers.JobScheduleAddHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobScheduleAddHeaders + bodyMapper: Mappers.BatchError } }, + requestBody: Parameters.cloudJobSchedule, + queryParameters: [Parameters.apiVersion, Parameters.timeout53], + urlParameters: [Parameters.batchUrl], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId53, + Parameters.returnClientRequestId53, + Parameters.ocpDate53 + ], + mediaType: "json", serializer }; - -const listOperationSpec: msRest.OperationSpec = { +const listOperationSpec: coreClient.OperationSpec = { + path: "/jobschedules", httpMethod: "GET", - path: "jobschedules", - urlParameters: [Parameters.batchUrl], + responses: { + 200: { + bodyMapper: Mappers.CloudJobScheduleListResult, + headersMapper: Mappers.JobScheduleListHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, queryParameters: [ Parameters.apiVersion, Parameters.filter10, @@ -789,46 +529,41 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.maxResults11, Parameters.timeout54 ], + urlParameters: [Parameters.batchUrl], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId65, - Parameters.returnClientRequestId65, - Parameters.ocpDate65 + Parameters.accept, + Parameters.clientRequestId54, + Parameters.returnClientRequestId54, + Parameters.ocpDate54 ], - responses: { - 200: { - bodyMapper: Mappers.CloudJobScheduleListResult, - headersMapper: Mappers.JobScheduleListHeaders - }, - default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobScheduleListHeaders - } - }, serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "{batchUrl}", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId66, - Parameters.returnClientRequestId66, - Parameters.ocpDate66 - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.CloudJobScheduleListResult, - headersMapper: Mappers.JobScheduleListHeaders + headersMapper: Mappers.JobScheduleListNextHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.JobScheduleListHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter10, + Parameters.select9, + Parameters.expand6, + Parameters.maxResults11, + Parameters.timeout54 + ], + urlParameters: [Parameters.batchUrl, Parameters.nextLink], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId54, + Parameters.returnClientRequestId54, + Parameters.ocpDate54 + ], serializer }; diff --git a/sdk/batch/batch/src/operations/pool.ts b/sdk/batch/batch/src/operations/pool.ts index 2b46a4374718..9770a0a0e6b7 100644 --- a/sdk/batch/batch/src/operations/pool.ts +++ b/sdk/batch/batch/src/operations/pool.ts @@ -3,1344 +3,906 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/poolMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Pool } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { BatchServiceClientContext } from "../batchServiceClientContext"; - -/** Class representing a Pool. */ -export class Pool { - private readonly client: BatchServiceClientContext; - - /** - * Create a Pool. - * @param {BatchServiceClientContext} client Reference to the service client. - */ - constructor(client: BatchServiceClientContext) { +import { BatchServiceClient } from "../batchServiceClient"; +import { + PoolUsageMetrics, + PoolListUsageMetricsNextOptionalParams, + PoolListUsageMetricsOptionalParams, + CloudPool, + PoolListNextOptionalParams, + PoolListOptionalParams, + PoolListUsageMetricsResponse, + PoolGetAllLifetimeStatisticsOptionalParams, + PoolGetAllLifetimeStatisticsResponse, + PoolAddParameter, + PoolAddOptionalParams, + PoolAddResponse, + PoolListResponse, + PoolDeleteOptionalParams, + PoolDeleteResponse, + PoolExistsOptionalParams, + PoolExistsResponse, + PoolGetOptionalParams, + PoolGetResponse, + PoolPatchParameter, + PoolPatchOptionalParams, + PoolPatchResponse, + PoolDisableAutoScaleOptionalParams, + PoolDisableAutoScaleResponse, + PoolEnableAutoScaleParameter, + PoolEnableAutoScaleOptionalParams, + PoolEnableAutoScaleResponse, + PoolEvaluateAutoScaleParameter, + PoolEvaluateAutoScaleOptionalParams, + PoolEvaluateAutoScaleResponse, + PoolResizeParameter, + PoolResizeOptionalParams, + PoolResizeResponse, + PoolStopResizeOptionalParams, + PoolStopResizeResponse, + PoolUpdatePropertiesParameter, + PoolUpdatePropertiesOptionalParams, + PoolUpdatePropertiesResponse, + NodeRemoveParameter, + PoolRemoveNodesOptionalParams, + PoolRemoveNodesResponse, + PoolListUsageMetricsNextResponse, + PoolListNextResponse +} from "../models"; + +/// +/** Class containing Pool operations. */ +export class PoolImpl implements Pool { + private readonly client: BatchServiceClient; + + /** + * Initialize a new instance of the class Pool class. + * @param client Reference to the service client + */ + constructor(client: BatchServiceClient) { this.client = client; } /** * If you do not specify a $filter clause including a poolId, the response includes all Pools that * existed in the Account in the time range of the returned aggregation intervals. If you do not - * specify a $filter clause including a startTime or endTime these filters default to the start and - * end times of the last aggregation interval currently available; that is, only the last - * aggregation interval is returned. - * @summary Lists the usage metrics, aggregated by Pool across individual time intervals, for the - * specified Account. - * @param [options] The optional parameters - * @returns Promise - */ - listUsageMetrics( - options?: Models.PoolListUsageMetricsOptionalParams - ): Promise; + * specify a $filter clause including a startTime or endTime these filters default to the start and end + * times of the last aggregation interval currently available; that is, only the last aggregation + * interval is returned. + * @param options The options parameters. + */ + public listUsageMetrics( + options?: PoolListUsageMetricsOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listUsageMetricsPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listUsageMetricsPagingPage(options); + } + }; + } + + private async *listUsageMetricsPagingPage( + options?: PoolListUsageMetricsOptionalParams + ): AsyncIterableIterator { + let result = await this._listUsageMetrics(options); + yield result.value || []; + let continuationToken = result.odataNextLink; + while (continuationToken) { + result = await this._listUsageMetricsNext(continuationToken, options); + continuationToken = result.odataNextLink; + yield result.value || []; + } + } + + private async *listUsageMetricsPagingAll( + options?: PoolListUsageMetricsOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listUsageMetricsPagingPage(options)) { + yield* page; + } + } + /** - * @param callback The callback + * Lists all of the Pools in the specified Account. + * @param options The options parameters. */ - listUsageMetrics(callback: msRest.ServiceCallback): void; + public list( + options?: PoolListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(options); + } + }; + } + + private async *listPagingPage( + options?: PoolListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(options); + yield result.value || []; + let continuationToken = result.odataNextLink; + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.odataNextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + options?: PoolListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + /** - * @param options The optional parameters - * @param callback The callback - */ - listUsageMetrics( - options: Models.PoolListUsageMetricsOptionalParams, - callback: msRest.ServiceCallback - ): void; - listUsageMetrics( - options?: - | Models.PoolListUsageMetricsOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + * If you do not specify a $filter clause including a poolId, the response includes all Pools that + * existed in the Account in the time range of the returned aggregation intervals. If you do not + * specify a $filter clause including a startTime or endTime these filters default to the start and end + * times of the last aggregation interval currently available; that is, only the last aggregation + * interval is returned. + * @param options The options parameters. + */ + private _listUsageMetrics( + options?: PoolListUsageMetricsOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - options - }, - listUsageMetricsOperationSpec, - callback - ) as Promise; + { options }, + listUsageMetricsOperationSpec + ); } /** * Statistics are aggregated across all Pools that have ever existed in the Account, from Account - * creation to the last update time of the statistics. The statistics may not be immediately - * available. The Batch service performs periodic roll-up of statistics. The typical delay is about - * 30 minutes. - * @summary Gets lifetime summary statistics for all of the Pools in the specified Account. - * @param [options] The optional parameters - * @returns Promise - */ - getAllLifetimeStatistics( - options?: Models.PoolGetAllLifetimeStatisticsOptionalParams - ): Promise; - /** - * @param callback The callback - */ - getAllLifetimeStatistics(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback + * creation to the last update time of the statistics. The statistics may not be immediately available. + * The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes. + * @param options The options parameters. */ getAllLifetimeStatistics( - options: Models.PoolGetAllLifetimeStatisticsOptionalParams, - callback: msRest.ServiceCallback - ): void; - getAllLifetimeStatistics( - options?: - | Models.PoolGetAllLifetimeStatisticsOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: PoolGetAllLifetimeStatisticsOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - options - }, - getAllLifetimeStatisticsOperationSpec, - callback - ) as Promise; + { options }, + getAllLifetimeStatisticsOperationSpec + ); } /** - * When naming Pools, avoid including sensitive information such as user names or secret project - * names. This information may appear in telemetry logs accessible to Microsoft Support engineers. - * @summary Adds a Pool to the specified Account. - * @param pool The Pool to be added. - * @param [options] The optional parameters - * @returns Promise - */ - add( - pool: Models.PoolAddParameter, - options?: Models.PoolAddOptionalParams - ): Promise; - /** + * When naming Pools, avoid including sensitive information such as user names or secret project names. + * This information may appear in telemetry logs accessible to Microsoft Support engineers. * @param pool The Pool to be added. - * @param callback The callback + * @param options The options parameters. */ - add(pool: Models.PoolAddParameter, callback: msRest.ServiceCallback): void; - /** - * @param pool The Pool to be added. - * @param options The optional parameters - * @param callback The callback - */ - add( - pool: Models.PoolAddParameter, - options: Models.PoolAddOptionalParams, - callback: msRest.ServiceCallback - ): void; add( - pool: Models.PoolAddParameter, - options?: Models.PoolAddOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + pool: PoolAddParameter, + options?: PoolAddOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - pool, - options - }, - addOperationSpec, - callback - ) as Promise; + { pool, options }, + addOperationSpec + ); } /** - * @summary Lists all of the Pools in the specified Account. - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: Models.PoolListOptionalParams): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback + * Lists all of the Pools in the specified Account. + * @param options The options parameters. */ - list( - options: Models.PoolListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - options?: Models.PoolListOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback - ) as Promise; + private _list(options?: PoolListOptionalParams): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); } /** * When you request that a Pool be deleted, the following actions occur: the Pool state is set to - * deleting; any ongoing resize operation on the Pool are stopped; the Batch service starts - * resizing the Pool to zero Compute Nodes; any Tasks running on existing Compute Nodes are - * terminated and requeued (as if a resize Pool operation had been requested with the default - * requeue option); finally, the Pool is removed from the system. Because running Tasks are - * requeued, the user can rerun these Tasks by updating their Job to target a different Pool. The - * Tasks can then run on the new Pool. If you want to override the requeue behavior, then you - * should call resize Pool explicitly to shrink the Pool to zero size before deleting the Pool. If - * you call an Update, Patch or Delete API on a Pool in the deleting state, it will fail with HTTP - * status code 409 with error code PoolBeingDeleted. - * @summary Deletes a Pool from the specified Account. - * @param poolId The ID of the Pool to delete. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod( - poolId: string, - options?: Models.PoolDeleteMethodOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool to delete. - * @param callback The callback - */ - deleteMethod(poolId: string, callback: msRest.ServiceCallback): void; - /** + * deleting; any ongoing resize operation on the Pool are stopped; the Batch service starts resizing + * the Pool to zero Compute Nodes; any Tasks running on existing Compute Nodes are terminated and + * requeued (as if a resize Pool operation had been requested with the default requeue option); + * finally, the Pool is removed from the system. Because running Tasks are requeued, the user can rerun + * these Tasks by updating their Job to target a different Pool. The Tasks can then run on the new + * Pool. If you want to override the requeue behavior, then you should call resize Pool explicitly to + * shrink the Pool to zero size before deleting the Pool. If you call an Update, Patch or Delete API on + * a Pool in the deleting state, it will fail with HTTP status code 409 with error code + * PoolBeingDeleted. * @param poolId The ID of the Pool to delete. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - deleteMethod( + delete( poolId: string, - options: Models.PoolDeleteMethodOptionalParams, - callback: msRest.ServiceCallback - ): void; - deleteMethod( - poolId: string, - options?: Models.PoolDeleteMethodOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: PoolDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - options - }, - deleteMethodOperationSpec, - callback - ) as Promise; + { poolId, options }, + deleteOperationSpec + ); } /** * Gets basic properties of a Pool. * @param poolId The ID of the Pool to get. - * @param [options] The optional parameters - * @returns Promise - */ - exists( - poolId: string, - options?: Models.PoolExistsOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool to get. - * @param callback The callback - */ - exists(poolId: string, callback: msRest.ServiceCallback): void; - /** - * @param poolId The ID of the Pool to get. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ exists( poolId: string, - options: Models.PoolExistsOptionalParams, - callback: msRest.ServiceCallback - ): void; - exists( - poolId: string, - options?: Models.PoolExistsOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: PoolExistsOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - options - }, - existsOperationSpec, - callback - ) as Promise; + { poolId, options }, + existsOperationSpec + ); } /** * Gets information about the specified Pool. * @param poolId The ID of the Pool to get. - * @param [options] The optional parameters - * @returns Promise - */ - get(poolId: string, options?: Models.PoolGetOptionalParams): Promise; - /** - * @param poolId The ID of the Pool to get. - * @param callback The callback - */ - get(poolId: string, callback: msRest.ServiceCallback): void; - /** - * @param poolId The ID of the Pool to get. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ get( poolId: string, - options: Models.PoolGetOptionalParams, - callback: msRest.ServiceCallback - ): void; - get( - poolId: string, - options?: Models.PoolGetOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: PoolGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - options - }, - getOperationSpec, - callback - ) as Promise; + { poolId, options }, + getOperationSpec + ); } /** * This only replaces the Pool properties specified in the request. For example, if the Pool has a * StartTask associated with it, and a request does not specify a StartTask element, then the Pool * keeps the existing StartTask. - * @summary Updates the properties of the specified Pool. * @param poolId The ID of the Pool to update. * @param poolPatchParameter The parameters for the request. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ patch( poolId: string, - poolPatchParameter: Models.PoolPatchParameter, - options?: Models.PoolPatchOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool to update. - * @param poolPatchParameter The parameters for the request. - * @param callback The callback - */ - patch( - poolId: string, - poolPatchParameter: Models.PoolPatchParameter, - callback: msRest.ServiceCallback - ): void; - /** - * @param poolId The ID of the Pool to update. - * @param poolPatchParameter The parameters for the request. - * @param options The optional parameters - * @param callback The callback - */ - patch( - poolId: string, - poolPatchParameter: Models.PoolPatchParameter, - options: Models.PoolPatchOptionalParams, - callback: msRest.ServiceCallback - ): void; - patch( - poolId: string, - poolPatchParameter: Models.PoolPatchParameter, - options?: Models.PoolPatchOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + poolPatchParameter: PoolPatchParameter, + options?: PoolPatchOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - poolPatchParameter, - options - }, - patchOperationSpec, - callback - ) as Promise; + { poolId, poolPatchParameter, options }, + patchOperationSpec + ); } /** - * @summary Disables automatic scaling for a Pool. - * @param poolId The ID of the Pool on which to disable automatic scaling. - * @param [options] The optional parameters - * @returns Promise - */ - disableAutoScale( - poolId: string, - options?: Models.PoolDisableAutoScaleOptionalParams - ): Promise; - /** + * Disables automatic scaling for a Pool. * @param poolId The ID of the Pool on which to disable automatic scaling. - * @param callback The callback + * @param options The options parameters. */ - disableAutoScale(poolId: string, callback: msRest.ServiceCallback): void; - /** - * @param poolId The ID of the Pool on which to disable automatic scaling. - * @param options The optional parameters - * @param callback The callback - */ - disableAutoScale( - poolId: string, - options: Models.PoolDisableAutoScaleOptionalParams, - callback: msRest.ServiceCallback - ): void; disableAutoScale( poolId: string, - options?: Models.PoolDisableAutoScaleOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: PoolDisableAutoScaleOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - options - }, - disableAutoScaleOperationSpec, - callback - ) as Promise; + { poolId, options }, + disableAutoScaleOperationSpec + ); } /** - * You cannot enable automatic scaling on a Pool if a resize operation is in progress on the Pool. - * If automatic scaling of the Pool is currently disabled, you must specify a valid autoscale - * formula as part of the request. If automatic scaling of the Pool is already enabled, you may - * specify a new autoscale formula and/or a new evaluation interval. You cannot call this API for - * the same Pool more than once every 30 seconds. - * @summary Enables automatic scaling for a Pool. - * @param poolId The ID of the Pool on which to enable automatic scaling. - * @param poolEnableAutoScaleParameter The parameters for the request. - * @param [options] The optional parameters - * @returns Promise - */ - enableAutoScale( - poolId: string, - poolEnableAutoScaleParameter: Models.PoolEnableAutoScaleParameter, - options?: Models.PoolEnableAutoScaleOptionalParams - ): Promise; - /** + * You cannot enable automatic scaling on a Pool if a resize operation is in progress on the Pool. If + * automatic scaling of the Pool is currently disabled, you must specify a valid autoscale formula as + * part of the request. If automatic scaling of the Pool is already enabled, you may specify a new + * autoscale formula and/or a new evaluation interval. You cannot call this API for the same Pool more + * than once every 30 seconds. * @param poolId The ID of the Pool on which to enable automatic scaling. * @param poolEnableAutoScaleParameter The parameters for the request. - * @param callback The callback + * @param options The options parameters. */ enableAutoScale( poolId: string, - poolEnableAutoScaleParameter: Models.PoolEnableAutoScaleParameter, - callback: msRest.ServiceCallback - ): void; - /** - * @param poolId The ID of the Pool on which to enable automatic scaling. - * @param poolEnableAutoScaleParameter The parameters for the request. - * @param options The optional parameters - * @param callback The callback - */ - enableAutoScale( - poolId: string, - poolEnableAutoScaleParameter: Models.PoolEnableAutoScaleParameter, - options: Models.PoolEnableAutoScaleOptionalParams, - callback: msRest.ServiceCallback - ): void; - enableAutoScale( - poolId: string, - poolEnableAutoScaleParameter: Models.PoolEnableAutoScaleParameter, - options?: Models.PoolEnableAutoScaleOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + poolEnableAutoScaleParameter: PoolEnableAutoScaleParameter, + options?: PoolEnableAutoScaleOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - poolEnableAutoScaleParameter, - options - }, - enableAutoScaleOperationSpec, - callback - ) as Promise; + { poolId, poolEnableAutoScaleParameter, options }, + enableAutoScaleOperationSpec + ); } /** - * This API is primarily for validating an autoscale formula, as it simply returns the result - * without applying the formula to the Pool. The Pool must have auto scaling enabled in order to - * evaluate a formula. - * @summary Gets the result of evaluating an automatic scaling formula on the Pool. - * @param poolId The ID of the Pool on which to evaluate the automatic scaling formula. - * @param autoScaleFormula 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). - * @param [options] The optional parameters - * @returns Promise - */ - evaluateAutoScale( - poolId: string, - autoScaleFormula: string, - options?: Models.PoolEvaluateAutoScaleOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool on which to evaluate the automatic scaling formula. - * @param autoScaleFormula 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). - * @param callback The callback - */ - evaluateAutoScale( - poolId: string, - autoScaleFormula: string, - callback: msRest.ServiceCallback - ): void; - /** + * This API is primarily for validating an autoscale formula, as it simply returns the result without + * applying the formula to the Pool. The Pool must have auto scaling enabled in order to evaluate a + * formula. * @param poolId The ID of the Pool on which to evaluate the automatic scaling formula. - * @param autoScaleFormula 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). - * @param options The optional parameters - * @param callback The callback + * @param poolEvaluateAutoScaleParameter The parameters for the request. + * @param options The options parameters. */ evaluateAutoScale( poolId: string, - autoScaleFormula: string, - options: Models.PoolEvaluateAutoScaleOptionalParams, - callback: msRest.ServiceCallback - ): void; - evaluateAutoScale( - poolId: string, - autoScaleFormula: string, - options?: - | Models.PoolEvaluateAutoScaleOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + poolEvaluateAutoScaleParameter: PoolEvaluateAutoScaleParameter, + options?: PoolEvaluateAutoScaleOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - autoScaleFormula, - options - }, - evaluateAutoScaleOperationSpec, - callback - ) as Promise; + { poolId, poolEvaluateAutoScaleParameter, options }, + evaluateAutoScaleOperationSpec + ); } /** - * You can only resize a Pool when its allocation state is steady. If the Pool is already resizing, - * the request fails with status code 409. When you resize a Pool, the Pool's allocation state - * changes from steady to resizing. You cannot resize Pools which are configured for automatic - * scaling. If you try to do this, the Batch service returns an error 409. If you resize a Pool - * downwards, the Batch service chooses which Compute Nodes to remove. To remove specific Compute - * Nodes, use the Pool remove Compute Nodes API instead. - * @summary Changes the number of Compute Nodes that are assigned to a Pool. - * @param poolId The ID of the Pool to resize. - * @param poolResizeParameter The parameters for the request. - * @param [options] The optional parameters - * @returns Promise - */ - resize( - poolId: string, - poolResizeParameter: Models.PoolResizeParameter, - options?: Models.PoolResizeOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool to resize. - * @param poolResizeParameter The parameters for the request. - * @param callback The callback - */ - resize( - poolId: string, - poolResizeParameter: Models.PoolResizeParameter, - callback: msRest.ServiceCallback - ): void; - /** + * You can only resize a Pool when its allocation state is steady. If the Pool is already resizing, the + * request fails with status code 409. When you resize a Pool, the Pool's allocation state changes from + * steady to resizing. You cannot resize Pools which are configured for automatic scaling. If you try + * to do this, the Batch service returns an error 409. If you resize a Pool downwards, the Batch + * service chooses which Compute Nodes to remove. To remove specific Compute Nodes, use the Pool remove + * Compute Nodes API instead. * @param poolId The ID of the Pool to resize. * @param poolResizeParameter The parameters for the request. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ resize( poolId: string, - poolResizeParameter: Models.PoolResizeParameter, - options: Models.PoolResizeOptionalParams, - callback: msRest.ServiceCallback - ): void; - resize( - poolId: string, - poolResizeParameter: Models.PoolResizeParameter, - options?: Models.PoolResizeOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + poolResizeParameter: PoolResizeParameter, + options?: PoolResizeOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - poolResizeParameter, - options - }, - resizeOperationSpec, - callback - ) as Promise; + { poolId, poolResizeParameter, options }, + resizeOperationSpec + ); } /** - * This does not restore the Pool to its previous state before the resize operation: it only stops - * any further changes being made, and the Pool maintains its current state. After stopping, the - * Pool stabilizes at the number of Compute Nodes it was at when the stop operation was done. - * During the stop operation, the Pool allocation state changes first to stopping and then to - * steady. A resize operation need not be an explicit resize Pool request; this API can also be - * used to halt the initial sizing of the Pool when it is created. - * @summary Stops an ongoing resize operation on the Pool. - * @param poolId The ID of the Pool whose resizing you want to stop. - * @param [options] The optional parameters - * @returns Promise - */ - stopResize( - poolId: string, - options?: Models.PoolStopResizeOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool whose resizing you want to stop. - * @param callback The callback - */ - stopResize(poolId: string, callback: msRest.ServiceCallback): void; - /** + * This does not restore the Pool to its previous state before the resize operation: it only stops any + * further changes being made, and the Pool maintains its current state. After stopping, the Pool + * stabilizes at the number of Compute Nodes it was at when the stop operation was done. During the + * stop operation, the Pool allocation state changes first to stopping and then to steady. A resize + * operation need not be an explicit resize Pool request; this API can also be used to halt the initial + * sizing of the Pool when it is created. * @param poolId The ID of the Pool whose resizing you want to stop. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ stopResize( poolId: string, - options: Models.PoolStopResizeOptionalParams, - callback: msRest.ServiceCallback - ): void; - stopResize( - poolId: string, - options?: Models.PoolStopResizeOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: PoolStopResizeOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - options - }, - stopResizeOperationSpec, - callback - ) as Promise; + { poolId, options }, + stopResizeOperationSpec + ); } /** * This fully replaces all the updatable properties of the Pool. For example, if the Pool has a * StartTask associated with it and if StartTask is not specified with this request, then the Batch * service will remove the existing StartTask. - * @summary Updates the properties of the specified Pool. * @param poolId The ID of the Pool to update. * @param poolUpdatePropertiesParameter The parameters for the request. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ updateProperties( poolId: string, - poolUpdatePropertiesParameter: Models.PoolUpdatePropertiesParameter, - options?: Models.PoolUpdatePropertiesOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool to update. - * @param poolUpdatePropertiesParameter The parameters for the request. - * @param callback The callback - */ - updateProperties( - poolId: string, - poolUpdatePropertiesParameter: Models.PoolUpdatePropertiesParameter, - callback: msRest.ServiceCallback - ): void; - /** - * @param poolId The ID of the Pool to update. - * @param poolUpdatePropertiesParameter The parameters for the request. - * @param options The optional parameters - * @param callback The callback - */ - updateProperties( - poolId: string, - poolUpdatePropertiesParameter: Models.PoolUpdatePropertiesParameter, - options: Models.PoolUpdatePropertiesOptionalParams, - callback: msRest.ServiceCallback - ): void; - updateProperties( - poolId: string, - poolUpdatePropertiesParameter: Models.PoolUpdatePropertiesParameter, - options?: Models.PoolUpdatePropertiesOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + poolUpdatePropertiesParameter: PoolUpdatePropertiesParameter, + options?: PoolUpdatePropertiesOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - poolUpdatePropertiesParameter, - options - }, - updatePropertiesOperationSpec, - callback - ) as Promise; + { poolId, poolUpdatePropertiesParameter, options }, + updatePropertiesOperationSpec + ); } /** * This operation can only run when the allocation state of the Pool is steady. When this operation - * runs, the allocation state changes from steady to resizing. Each request may remove up to 100 - * nodes. - * @summary Removes Compute Nodes from the specified Pool. - * @param poolId The ID of the Pool from which you want to remove Compute Nodes. - * @param nodeRemoveParameter The parameters for the request. - * @param [options] The optional parameters - * @returns Promise - */ - removeNodes( - poolId: string, - nodeRemoveParameter: Models.NodeRemoveParameter, - options?: Models.PoolRemoveNodesOptionalParams - ): Promise; - /** - * @param poolId The ID of the Pool from which you want to remove Compute Nodes. - * @param nodeRemoveParameter The parameters for the request. - * @param callback The callback - */ - removeNodes( - poolId: string, - nodeRemoveParameter: Models.NodeRemoveParameter, - callback: msRest.ServiceCallback - ): void; - /** + * runs, the allocation state changes from steady to resizing. Each request may remove up to 100 nodes. * @param poolId The ID of the Pool from which you want to remove Compute Nodes. * @param nodeRemoveParameter The parameters for the request. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ removeNodes( poolId: string, - nodeRemoveParameter: Models.NodeRemoveParameter, - options: Models.PoolRemoveNodesOptionalParams, - callback: msRest.ServiceCallback - ): void; - removeNodes( - poolId: string, - nodeRemoveParameter: Models.NodeRemoveParameter, - options?: Models.PoolRemoveNodesOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + nodeRemoveParameter: NodeRemoveParameter, + options?: PoolRemoveNodesOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - poolId, - nodeRemoveParameter, - options - }, - removeNodesOperationSpec, - callback - ) as Promise; + { poolId, nodeRemoveParameter, options }, + removeNodesOperationSpec + ); } /** - * If you do not specify a $filter clause including a poolId, the response includes all Pools that - * existed in the Account in the time range of the returned aggregation intervals. If you do not - * specify a $filter clause including a startTime or endTime these filters default to the start and - * end times of the last aggregation interval currently available; that is, only the last - * aggregation interval is returned. - * @summary Lists the usage metrics, aggregated by Pool across individual time intervals, for the - * specified Account. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listUsageMetricsNext( - nextPageLink: string, - options?: Models.PoolListUsageMetricsNextOptionalParams - ): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listUsageMetricsNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListUsageMetricsNext + * @param nextLink The nextLink from the previous successful call to the ListUsageMetrics method. + * @param options The options parameters. */ - listUsageMetricsNext( - nextPageLink: string, - options: Models.PoolListUsageMetricsNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listUsageMetricsNext( - nextPageLink: string, - options?: - | Models.PoolListUsageMetricsNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + private _listUsageMetricsNext( + nextLink: string, + options?: PoolListUsageMetricsNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listUsageMetricsNextOperationSpec, - callback - ) as Promise; + { nextLink, options }, + listUsageMetricsNextOperationSpec + ); } /** - * @summary Lists all of the Pools in the specified Account. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext( - nextPageLink: string, - options?: Models.PoolListNextOptionalParams - ): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext( - nextPageLink: string, - options: Models.PoolListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.PoolListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + private _listNext( + nextLink: string, + options?: PoolListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback - ) as Promise; + { nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listUsageMetricsOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listUsageMetricsOperationSpec: coreClient.OperationSpec = { + path: "/poolusagemetrics", httpMethod: "GET", - path: "poolusagemetrics", - urlParameters: [Parameters.batchUrl], + responses: { + 200: { + bodyMapper: Mappers.PoolListUsageMetricsResult, + headersMapper: Mappers.PoolListUsageMetricsHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, queryParameters: [ Parameters.apiVersion, Parameters.startTime, Parameters.endTime, - Parameters.filter0, + Parameters.filter, Parameters.maxResults1, Parameters.timeout2 ], + urlParameters: [Parameters.batchUrl], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId3, - Parameters.returnClientRequestId3, - Parameters.ocpDate3 + Parameters.accept, + Parameters.clientRequestId2, + Parameters.returnClientRequestId2, + Parameters.ocpDate2 ], - responses: { - 200: { - bodyMapper: Mappers.PoolListUsageMetricsResult, - headersMapper: Mappers.PoolListUsageMetricsHeaders - }, - default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.PoolListUsageMetricsHeaders - } - }, serializer }; - -const getAllLifetimeStatisticsOperationSpec: msRest.OperationSpec = { +const getAllLifetimeStatisticsOperationSpec: coreClient.OperationSpec = { + path: "/lifetimepoolstats", httpMethod: "GET", - path: "lifetimepoolstats", - urlParameters: [Parameters.batchUrl], - queryParameters: [Parameters.apiVersion, Parameters.timeout3], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId4, - Parameters.returnClientRequestId4, - Parameters.ocpDate4 - ], responses: { 200: { bodyMapper: Mappers.PoolStatistics, headersMapper: Mappers.PoolGetAllLifetimeStatisticsHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.PoolGetAllLifetimeStatisticsHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const addOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "pools", + queryParameters: [Parameters.apiVersion, Parameters.timeout3], urlParameters: [Parameters.batchUrl], - queryParameters: [Parameters.apiVersion, Parameters.timeout4], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId5, - Parameters.returnClientRequestId5, - Parameters.ocpDate5 + Parameters.accept, + Parameters.clientRequestId3, + Parameters.returnClientRequestId3, + Parameters.ocpDate3 ], - requestBody: { - parameterPath: "pool", - mapper: { - ...Mappers.PoolAddParameter, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", + serializer +}; +const addOperationSpec: coreClient.OperationSpec = { + path: "/pools", + httpMethod: "POST", responses: { 201: { headersMapper: Mappers.PoolAddHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.PoolAddHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "pools", + requestBody: Parameters.pool, + queryParameters: [Parameters.apiVersion, Parameters.timeout4], urlParameters: [Parameters.batchUrl], - queryParameters: [ - Parameters.apiVersion, - Parameters.filter1, - Parameters.select0, - Parameters.expand0, - Parameters.maxResults2, - Parameters.timeout5 - ], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId6, - Parameters.returnClientRequestId6, - Parameters.ocpDate6 + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId4, + Parameters.returnClientRequestId4, + Parameters.ocpDate4 ], + mediaType: "json", + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/pools", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.CloudPoolListResult, headersMapper: Mappers.PoolListHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.PoolListHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter1, + Parameters.select, + Parameters.expand, + Parameters.maxResults2, + Parameters.timeout5 + ], + urlParameters: [Parameters.batchUrl], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId5, + Parameters.returnClientRequestId5, + Parameters.ocpDate5 + ], serializer }; - -const deleteMethodOperationSpec: msRest.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}", httpMethod: "DELETE", - path: "pools/{poolId}", - urlParameters: [Parameters.batchUrl, Parameters.poolId], - queryParameters: [Parameters.apiVersion, Parameters.timeout6], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId7, - Parameters.returnClientRequestId7, - Parameters.ocpDate7, - Parameters.ifMatch0, - Parameters.ifNoneMatch0, - Parameters.ifModifiedSince0, - Parameters.ifUnmodifiedSince0 - ], responses: { 202: { headersMapper: Mappers.PoolDeleteHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.PoolDeleteHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [Parameters.apiVersion, Parameters.timeout6], + urlParameters: [Parameters.batchUrl, Parameters.poolId], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId6, + Parameters.returnClientRequestId6, + Parameters.ocpDate6, + Parameters.ifMatch, + Parameters.ifNoneMatch, + Parameters.ifModifiedSince, + Parameters.ifUnmodifiedSince + ], serializer }; - -const existsOperationSpec: msRest.OperationSpec = { +const existsOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}", httpMethod: "HEAD", - path: "pools/{poolId}", - urlParameters: [Parameters.batchUrl, Parameters.poolId], + responses: { + 200: { + headersMapper: Mappers.PoolExistsHeaders + }, + 404: {}, + default: { + bodyMapper: Mappers.BatchError + } + }, queryParameters: [Parameters.apiVersion, Parameters.timeout7], + urlParameters: [Parameters.batchUrl, Parameters.poolId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId8, - Parameters.returnClientRequestId8, - Parameters.ocpDate8, + Parameters.accept, + Parameters.clientRequestId7, + Parameters.returnClientRequestId7, + Parameters.ocpDate7, Parameters.ifMatch1, Parameters.ifNoneMatch1, Parameters.ifModifiedSince1, Parameters.ifUnmodifiedSince1 ], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}", + httpMethod: "GET", responses: { 200: { - headersMapper: Mappers.PoolExistsHeaders - }, - 404: { - headersMapper: Mappers.PoolExistsHeaders + bodyMapper: Mappers.CloudPool, + headersMapper: Mappers.PoolGetHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.PoolExistsHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "pools/{poolId}", - urlParameters: [Parameters.batchUrl, Parameters.poolId], queryParameters: [ Parameters.apiVersion, Parameters.select1, Parameters.expand1, Parameters.timeout8 ], + urlParameters: [Parameters.batchUrl, Parameters.poolId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId9, - Parameters.returnClientRequestId9, - Parameters.ocpDate9, + Parameters.accept, + Parameters.clientRequestId8, + Parameters.returnClientRequestId8, + Parameters.ocpDate8, Parameters.ifMatch2, Parameters.ifNoneMatch2, Parameters.ifModifiedSince2, Parameters.ifUnmodifiedSince2 ], + serializer +}; +const patchOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}", + httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.CloudPool, - headersMapper: Mappers.PoolGetHeaders + headersMapper: Mappers.PoolPatchHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.PoolGetHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const patchOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "pools/{poolId}", - urlParameters: [Parameters.batchUrl, Parameters.poolId], + requestBody: Parameters.poolPatchParameter, queryParameters: [Parameters.apiVersion, Parameters.timeout9], + urlParameters: [Parameters.batchUrl, Parameters.poolId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId10, - Parameters.returnClientRequestId10, - Parameters.ocpDate10, + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId9, + Parameters.returnClientRequestId9, + Parameters.ocpDate9, Parameters.ifMatch3, Parameters.ifNoneMatch3, Parameters.ifModifiedSince3, Parameters.ifUnmodifiedSince3 ], - requestBody: { - parameterPath: "poolPatchParameter", - mapper: { - ...Mappers.PoolPatchParameter, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", + mediaType: "json", + serializer +}; +const disableAutoScaleOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/disableautoscale", + httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.PoolPatchHeaders + headersMapper: Mappers.PoolDisableAutoScaleHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.PoolPatchHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const disableAutoScaleOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "pools/{poolId}/disableautoscale", - urlParameters: [Parameters.batchUrl, Parameters.poolId], queryParameters: [Parameters.apiVersion, Parameters.timeout10], + urlParameters: [Parameters.batchUrl, Parameters.poolId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId11, - Parameters.returnClientRequestId11, - Parameters.ocpDate11 + Parameters.accept, + Parameters.clientRequestId10, + Parameters.returnClientRequestId10, + Parameters.ocpDate10 ], + serializer +}; +const enableAutoScaleOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/enableautoscale", + httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.PoolDisableAutoScaleHeaders + headersMapper: Mappers.PoolEnableAutoScaleHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.PoolDisableAutoScaleHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const enableAutoScaleOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "pools/{poolId}/enableautoscale", - urlParameters: [Parameters.batchUrl, Parameters.poolId], + requestBody: Parameters.poolEnableAutoScaleParameter, queryParameters: [Parameters.apiVersion, Parameters.timeout11], + urlParameters: [Parameters.batchUrl, Parameters.poolId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId12, - Parameters.returnClientRequestId12, - Parameters.ocpDate12, + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId11, + Parameters.returnClientRequestId11, + Parameters.ocpDate11, Parameters.ifMatch4, Parameters.ifNoneMatch4, Parameters.ifModifiedSince4, Parameters.ifUnmodifiedSince4 ], - requestBody: { - parameterPath: "poolEnableAutoScaleParameter", - mapper: { - ...Mappers.PoolEnableAutoScaleParameter, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", - responses: { - 200: { - headersMapper: Mappers.PoolEnableAutoScaleHeaders - }, - default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.PoolEnableAutoScaleHeaders - } - }, + mediaType: "json", serializer }; - -const evaluateAutoScaleOperationSpec: msRest.OperationSpec = { +const evaluateAutoScaleOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/evaluateautoscale", httpMethod: "POST", - path: "pools/{poolId}/evaluateautoscale", - urlParameters: [Parameters.batchUrl, Parameters.poolId], - queryParameters: [Parameters.apiVersion, Parameters.timeout12], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId13, - Parameters.returnClientRequestId13, - Parameters.ocpDate13 - ], - requestBody: { - parameterPath: { - autoScaleFormula: "autoScaleFormula" - }, - mapper: { - ...Mappers.PoolEvaluateAutoScaleParameter, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", responses: { 200: { bodyMapper: Mappers.AutoScaleRun, headersMapper: Mappers.PoolEvaluateAutoScaleHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.PoolEvaluateAutoScaleHeaders + bodyMapper: Mappers.BatchError } }, + requestBody: Parameters.poolEvaluateAutoScaleParameter, + queryParameters: [Parameters.apiVersion, Parameters.timeout12], + urlParameters: [Parameters.batchUrl, Parameters.poolId], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId12, + Parameters.returnClientRequestId12, + Parameters.ocpDate12 + ], + mediaType: "json", serializer }; - -const resizeOperationSpec: msRest.OperationSpec = { +const resizeOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/resize", httpMethod: "POST", - path: "pools/{poolId}/resize", - urlParameters: [Parameters.batchUrl, Parameters.poolId], + responses: { + 202: { + headersMapper: Mappers.PoolResizeHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, + requestBody: Parameters.poolResizeParameter, queryParameters: [Parameters.apiVersion, Parameters.timeout13], + urlParameters: [Parameters.batchUrl, Parameters.poolId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId14, - Parameters.returnClientRequestId14, - Parameters.ocpDate14, + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId13, + Parameters.returnClientRequestId13, + Parameters.ocpDate13, Parameters.ifMatch5, Parameters.ifNoneMatch5, Parameters.ifModifiedSince5, Parameters.ifUnmodifiedSince5 ], - requestBody: { - parameterPath: "poolResizeParameter", - mapper: { - ...Mappers.PoolResizeParameter, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", + mediaType: "json", + serializer +}; +const stopResizeOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/stopresize", + httpMethod: "POST", responses: { 202: { - headersMapper: Mappers.PoolResizeHeaders + headersMapper: Mappers.PoolStopResizeHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.PoolResizeHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const stopResizeOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "pools/{poolId}/stopresize", - urlParameters: [Parameters.batchUrl, Parameters.poolId], queryParameters: [Parameters.apiVersion, Parameters.timeout14], + urlParameters: [Parameters.batchUrl, Parameters.poolId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId15, - Parameters.returnClientRequestId15, - Parameters.ocpDate15, + Parameters.accept, + Parameters.clientRequestId14, + Parameters.returnClientRequestId14, + Parameters.ocpDate14, Parameters.ifMatch6, Parameters.ifNoneMatch6, Parameters.ifModifiedSince6, Parameters.ifUnmodifiedSince6 ], - responses: { - 202: { - headersMapper: Mappers.PoolStopResizeHeaders - }, - default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.PoolStopResizeHeaders - } - }, serializer }; - -const updatePropertiesOperationSpec: msRest.OperationSpec = { +const updatePropertiesOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/updateproperties", httpMethod: "POST", - path: "pools/{poolId}/updateproperties", - urlParameters: [Parameters.batchUrl, Parameters.poolId], - queryParameters: [Parameters.apiVersion, Parameters.timeout15], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId16, - Parameters.returnClientRequestId16, - Parameters.ocpDate16 - ], - requestBody: { - parameterPath: "poolUpdatePropertiesParameter", - mapper: { - ...Mappers.PoolUpdatePropertiesParameter, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", responses: { 204: { headersMapper: Mappers.PoolUpdatePropertiesHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.PoolUpdatePropertiesHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const removeNodesOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "pools/{poolId}/removenodes", + requestBody: Parameters.poolUpdatePropertiesParameter, + queryParameters: [Parameters.apiVersion, Parameters.timeout15], urlParameters: [Parameters.batchUrl, Parameters.poolId], - queryParameters: [Parameters.apiVersion, Parameters.timeout16], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId17, - Parameters.returnClientRequestId17, - Parameters.ocpDate17, - Parameters.ifMatch7, - Parameters.ifNoneMatch7, - Parameters.ifModifiedSince7, - Parameters.ifUnmodifiedSince7 + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId15, + Parameters.returnClientRequestId15, + Parameters.ocpDate15 ], - requestBody: { - parameterPath: "nodeRemoveParameter", - mapper: { - ...Mappers.NodeRemoveParameter, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", + mediaType: "json", + serializer +}; +const removeNodesOperationSpec: coreClient.OperationSpec = { + path: "/pools/{poolId}/removenodes", + httpMethod: "POST", responses: { 202: { headersMapper: Mappers.PoolRemoveNodesHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.PoolRemoveNodesHeaders + bodyMapper: Mappers.BatchError } }, + requestBody: Parameters.nodeRemoveParameter, + queryParameters: [Parameters.apiVersion, Parameters.timeout16], + urlParameters: [Parameters.batchUrl, Parameters.poolId], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId16, + Parameters.returnClientRequestId16, + Parameters.ocpDate16, + Parameters.ifMatch7, + Parameters.ifNoneMatch7, + Parameters.ifModifiedSince7, + Parameters.ifUnmodifiedSince7 + ], + mediaType: "json", serializer }; - -const listUsageMetricsNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "{batchUrl}", +const listUsageMetricsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId18, - Parameters.returnClientRequestId18, - Parameters.ocpDate18 - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PoolListUsageMetricsResult, - headersMapper: Mappers.PoolListUsageMetricsHeaders + headersMapper: Mappers.PoolListUsageMetricsNextHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.PoolListUsageMetricsHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.apiVersion, + Parameters.startTime, + Parameters.endTime, + Parameters.filter, + Parameters.maxResults1, + Parameters.timeout2 + ], + urlParameters: [Parameters.batchUrl, Parameters.nextLink], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId2, + Parameters.returnClientRequestId2, + Parameters.ocpDate2 + ], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "{batchUrl}", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId19, - Parameters.returnClientRequestId19, - Parameters.ocpDate19 - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.CloudPoolListResult, - headersMapper: Mappers.PoolListHeaders + headersMapper: Mappers.PoolListNextHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.PoolListHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter1, + Parameters.select, + Parameters.expand, + Parameters.maxResults2, + Parameters.timeout5 + ], + urlParameters: [Parameters.batchUrl, Parameters.nextLink], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId5, + Parameters.returnClientRequestId5, + Parameters.ocpDate5 + ], serializer }; diff --git a/sdk/batch/batch/src/operations/task.ts b/sdk/batch/batch/src/operations/task.ts index 54e3f70a9a03..5eb49d311a59 100644 --- a/sdk/batch/batch/src/operations/task.ts +++ b/sdk/batch/batch/src/operations/task.ts @@ -3,581 +3,335 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/taskMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Task } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { BatchServiceClientContext } from "../batchServiceClientContext"; +import { BatchServiceClient } from "../batchServiceClient"; +import { + CloudTask, + TaskListNextOptionalParams, + TaskListOptionalParams, + TaskAddParameter, + TaskAddOptionalParams, + TaskAddResponse, + TaskListResponse, + TaskAddCollectionParameter, + TaskAddCollectionOptionalParams, + TaskAddCollectionResponse, + TaskDeleteOptionalParams, + TaskDeleteResponse, + TaskGetOptionalParams, + TaskGetResponse, + TaskUpdateParameter, + TaskUpdateOptionalParams, + TaskUpdateResponse, + TaskListSubtasksOptionalParams, + TaskListSubtasksResponse, + TaskTerminateOptionalParams, + TaskTerminateResponse, + TaskReactivateOptionalParams, + TaskReactivateResponse, + TaskListNextResponse +} from "../models"; -/** Class representing a Task. */ -export class Task { - private readonly client: BatchServiceClientContext; +/// +/** Class containing Task operations. */ +export class TaskImpl implements Task { + private readonly client: BatchServiceClient; /** - * Create a Task. - * @param {BatchServiceClientContext} client Reference to the service client. + * Initialize a new instance of the class Task class. + * @param client Reference to the service client */ - constructor(client: BatchServiceClientContext) { + constructor(client: BatchServiceClient) { this.client = client; } /** - * The maximum lifetime of a Task from addition to completion is 180 days. If a Task has not - * completed within 180 days of being added it will be terminated by the Batch service and left in - * whatever state it was in at that time. - * @summary Adds a Task to the specified Job. - * @param jobId The ID of the Job to which the Task is to be added. - * @param task The Task to be added. - * @param [options] The optional parameters - * @returns Promise + * For multi-instance Tasks, information such as affinityId, executionInfo and nodeInfo refer to the + * primary Task. Use the list subtasks API to retrieve information about subtasks. + * @param jobId The ID of the Job. + * @param options The options parameters. */ - add( + public list( jobId: string, - task: Models.TaskAddParameter, - options?: Models.TaskAddOptionalParams - ): Promise; - /** - * @param jobId The ID of the Job to which the Task is to be added. - * @param task The Task to be added. - * @param callback The callback - */ - add(jobId: string, task: Models.TaskAddParameter, callback: msRest.ServiceCallback): void; + options?: TaskListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(jobId, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(jobId, options); + } + }; + } + + private async *listPagingPage( + jobId: string, + options?: TaskListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(jobId, options); + yield result.value || []; + let continuationToken = result.odataNextLink; + while (continuationToken) { + result = await this._listNext(jobId, continuationToken, options); + continuationToken = result.odataNextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + jobId: string, + options?: TaskListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(jobId, options)) { + yield* page; + } + } + /** + * The maximum lifetime of a Task from addition to completion is 180 days. If a Task has not completed + * within 180 days of being added it will be terminated by the Batch service and left in whatever state + * it was in at that time. * @param jobId The ID of the Job to which the Task is to be added. * @param task The Task to be added. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ add( jobId: string, - task: Models.TaskAddParameter, - options: Models.TaskAddOptionalParams, - callback: msRest.ServiceCallback - ): void; - add( - jobId: string, - task: Models.TaskAddParameter, - options?: Models.TaskAddOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + task: TaskAddParameter, + options?: TaskAddOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobId, - task, - options - }, - addOperationSpec, - callback - ) as Promise; + { jobId, task, options }, + addOperationSpec + ); } /** - * For multi-instance Tasks, information such as affinityId, executionInfo and nodeInfo refer to - * the primary Task. Use the list subtasks API to retrieve information about subtasks. - * @summary Lists all of the Tasks that are associated with the specified Job. - * @param jobId The ID of the Job. - * @param [options] The optional parameters - * @returns Promise - */ - list(jobId: string, options?: Models.TaskListOptionalParams): Promise; - /** - * @param jobId The ID of the Job. - * @param callback The callback - */ - list(jobId: string, callback: msRest.ServiceCallback): void; - /** + * For multi-instance Tasks, information such as affinityId, executionInfo and nodeInfo refer to the + * primary Task. Use the list subtasks API to retrieve information about subtasks. * @param jobId The ID of the Job. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - list( - jobId: string, - options: Models.TaskListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( + private _list( jobId: string, - options?: Models.TaskListOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: TaskListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobId, - options - }, - listOperationSpec, - callback - ) as Promise; + { jobId, options }, + listOperationSpec + ); } /** * Note that each Task must have a unique ID. The Batch service may not return the results for each * Task in the same order the Tasks were submitted in this request. If the server times out or the - * connection is closed during the request, the request may have been partially or fully processed, - * or not at all. In such cases, the user should re-issue the request. Note that it is up to the - * user to correctly handle failures when re-issuing a request. For example, you should use the - * same Task IDs during a retry so that if the prior operation succeeded, the retry will not create - * extra Tasks unexpectedly. If the response contains any Tasks which failed to add, a client can - * retry the request. In a retry, it is most efficient to resubmit only Tasks that failed to add, - * and to omit Tasks that were successfully added on the first attempt. The maximum lifetime of a - * Task from addition to completion is 180 days. If a Task has not completed within 180 days of - * being added it will be terminated by the Batch service and left in whatever state it was in at - * that time. - * @summary Adds a collection of Tasks to the specified Job. - * @param jobId The ID of the Job to which the Task collection is to be added. - * @param value 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. - * @param [options] The optional parameters - * @returns Promise - */ - addCollection( - jobId: string, - value: Models.TaskAddParameter[], - options?: Models.TaskAddCollectionOptionalParams - ): Promise; - /** - * @param jobId The ID of the Job to which the Task collection is to be added. - * @param value 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. - * @param callback The callback - */ - addCollection( - jobId: string, - value: Models.TaskAddParameter[], - callback: msRest.ServiceCallback - ): void; - /** + * connection is closed during the request, the request may have been partially or fully processed, or + * not at all. In such cases, the user should re-issue the request. Note that it is up to the user to + * correctly handle failures when re-issuing a request. For example, you should use the same Task IDs + * during a retry so that if the prior operation succeeded, the retry will not create extra Tasks + * unexpectedly. If the response contains any Tasks which failed to add, a client can retry the + * request. In a retry, it is most efficient to resubmit only Tasks that failed to add, and to omit + * Tasks that were successfully added on the first attempt. The maximum lifetime of a Task from + * addition to completion is 180 days. If a Task has not completed within 180 days of being added it + * will be terminated by the Batch service and left in whatever state it was in at that time. * @param jobId The ID of the Job to which the Task collection is to be added. - * @param value 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. - * @param options The optional parameters - * @param callback The callback + * @param taskCollection The Tasks to be added. + * @param options The options parameters. */ addCollection( jobId: string, - value: Models.TaskAddParameter[], - options: Models.TaskAddCollectionOptionalParams, - callback: msRest.ServiceCallback - ): void; - addCollection( - jobId: string, - value: Models.TaskAddParameter[], - options?: - | Models.TaskAddCollectionOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + taskCollection: TaskAddCollectionParameter, + options?: TaskAddCollectionOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobId, - value, - options - }, - addCollectionOperationSpec, - callback - ) as Promise; + { jobId, taskCollection, options }, + addCollectionOperationSpec + ); } /** - * When a Task is deleted, all of the files in its directory on the Compute Node where it ran are - * also deleted (regardless of the retention time). For multi-instance Tasks, the delete Task - * operation applies synchronously to the primary task; subtasks and their files are then deleted - * asynchronously in the background. - * @summary Deletes a Task from the specified Job. + * When a Task is deleted, all of the files in its directory on the Compute Node where it ran are also + * deleted (regardless of the retention time). For multi-instance Tasks, the delete Task operation + * applies synchronously to the primary task; subtasks and their files are then deleted asynchronously + * in the background. * @param jobId The ID of the Job from which to delete the Task. * @param taskId The ID of the Task to delete. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - deleteMethod( + delete( jobId: string, taskId: string, - options?: Models.TaskDeleteMethodOptionalParams - ): Promise; - /** - * @param jobId The ID of the Job from which to delete the Task. - * @param taskId The ID of the Task to delete. - * @param callback The callback - */ - deleteMethod(jobId: string, taskId: string, callback: msRest.ServiceCallback): void; - /** - * @param jobId The ID of the Job from which to delete the Task. - * @param taskId The ID of the Task to delete. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod( - jobId: string, - taskId: string, - options: Models.TaskDeleteMethodOptionalParams, - callback: msRest.ServiceCallback - ): void; - deleteMethod( - jobId: string, - taskId: string, - options?: Models.TaskDeleteMethodOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: TaskDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobId, - taskId, - options - }, - deleteMethodOperationSpec, - callback - ) as Promise; + { jobId, taskId, options }, + deleteOperationSpec + ); } /** - * For multi-instance Tasks, information such as affinityId, executionInfo and nodeInfo refer to - * the primary Task. Use the list subtasks API to retrieve information about subtasks. - * @summary Gets information about the specified Task. - * @param jobId The ID of the Job that contains the Task. - * @param taskId The ID of the Task to get information about. - * @param [options] The optional parameters - * @returns Promise - */ - get( - jobId: string, - taskId: string, - options?: Models.TaskGetOptionalParams - ): Promise; - /** + * For multi-instance Tasks, information such as affinityId, executionInfo and nodeInfo refer to the + * primary Task. Use the list subtasks API to retrieve information about subtasks. * @param jobId The ID of the Job that contains the Task. * @param taskId The ID of the Task to get information about. - * @param callback The callback - */ - get(jobId: string, taskId: string, callback: msRest.ServiceCallback): void; - /** - * @param jobId The ID of the Job that contains the Task. - * @param taskId The ID of the Task to get information about. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ get( jobId: string, taskId: string, - options: Models.TaskGetOptionalParams, - callback: msRest.ServiceCallback - ): void; - get( - jobId: string, - taskId: string, - options?: Models.TaskGetOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: TaskGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobId, - taskId, - options - }, - getOperationSpec, - callback - ) as Promise; + { jobId, taskId, options }, + getOperationSpec + ); } /** * Updates the properties of the specified Task. * @param jobId The ID of the Job containing the Task. * @param taskId The ID of the Task to update. - * @param [options] The optional parameters - * @returns Promise + * @param taskUpdateParameter The parameters for the request. + * @param options The options parameters. */ update( jobId: string, taskId: string, - options?: Models.TaskUpdateOptionalParams - ): Promise; - /** - * @param jobId The ID of the Job containing the Task. - * @param taskId The ID of the Task to update. - * @param callback The callback - */ - update(jobId: string, taskId: string, callback: msRest.ServiceCallback): void; - /** - * @param jobId The ID of the Job containing the Task. - * @param taskId The ID of the Task to update. - * @param options The optional parameters - * @param callback The callback - */ - update( - jobId: string, - taskId: string, - options: Models.TaskUpdateOptionalParams, - callback: msRest.ServiceCallback - ): void; - update( - jobId: string, - taskId: string, - options?: Models.TaskUpdateOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + taskUpdateParameter: TaskUpdateParameter, + options?: TaskUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobId, - taskId, - options - }, - updateOperationSpec, - callback - ) as Promise; + { jobId, taskId, taskUpdateParameter, options }, + updateOperationSpec + ); } /** * If the Task is not a multi-instance Task then this returns an empty collection. - * @summary Lists all of the subtasks that are associated with the specified multi-instance Task. * @param jobId The ID of the Job. * @param taskId The ID of the Task. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ listSubtasks( jobId: string, taskId: string, - options?: Models.TaskListSubtasksOptionalParams - ): Promise; - /** - * @param jobId The ID of the Job. - * @param taskId The ID of the Task. - * @param callback The callback - */ - listSubtasks( - jobId: string, - taskId: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param jobId The ID of the Job. - * @param taskId The ID of the Task. - * @param options The optional parameters - * @param callback The callback - */ - listSubtasks( - jobId: string, - taskId: string, - options: Models.TaskListSubtasksOptionalParams, - callback: msRest.ServiceCallback - ): void; - listSubtasks( - jobId: string, - taskId: string, - options?: - | Models.TaskListSubtasksOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: TaskListSubtasksOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobId, - taskId, - options - }, - listSubtasksOperationSpec, - callback - ) as Promise; + { jobId, taskId, options }, + listSubtasksOperationSpec + ); } /** - * When the Task has been terminated, it moves to the completed state. For multi-instance Tasks, - * the terminate Task operation applies synchronously to the primary task; subtasks are then - * terminated asynchronously in the background. - * @summary Terminates the specified Task. - * @param jobId The ID of the Job containing the Task. - * @param taskId The ID of the Task to terminate. - * @param [options] The optional parameters - * @returns Promise - */ - terminate( - jobId: string, - taskId: string, - options?: Models.TaskTerminateOptionalParams - ): Promise; - /** - * @param jobId The ID of the Job containing the Task. - * @param taskId The ID of the Task to terminate. - * @param callback The callback - */ - terminate(jobId: string, taskId: string, callback: msRest.ServiceCallback): void; - /** + * When the Task has been terminated, it moves to the completed state. For multi-instance Tasks, the + * terminate Task operation applies synchronously to the primary task; subtasks are then terminated + * asynchronously in the background. * @param jobId The ID of the Job containing the Task. * @param taskId The ID of the Task to terminate. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ terminate( jobId: string, taskId: string, - options: Models.TaskTerminateOptionalParams, - callback: msRest.ServiceCallback - ): void; - terminate( - jobId: string, - taskId: string, - options?: Models.TaskTerminateOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: TaskTerminateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobId, - taskId, - options - }, - terminateOperationSpec, - callback - ) as Promise; + { jobId, taskId, options }, + terminateOperationSpec + ); } /** * Reactivation makes a Task eligible to be retried again up to its maximum retry count. The Task's - * state is changed to active. As the Task is no longer in the completed state, any previous exit - * code or failure information is no longer available after reactivation. Each time a Task is - * reactivated, its retry count is reset to 0. Reactivation will fail for Tasks that are not - * completed or that previously completed successfully (with an exit code of 0). Additionally, it - * will fail if the Job has completed (or is terminating or deleting). - * @summary Reactivates a Task, allowing it to run again even if its retry count has been - * exhausted. - * @param jobId The ID of the Job containing the Task. - * @param taskId The ID of the Task to reactivate. - * @param [options] The optional parameters - * @returns Promise - */ - reactivate( - jobId: string, - taskId: string, - options?: Models.TaskReactivateOptionalParams - ): Promise; - /** + * state is changed to active. As the Task is no longer in the completed state, any previous exit code + * or failure information is no longer available after reactivation. Each time a Task is reactivated, + * its retry count is reset to 0. Reactivation will fail for Tasks that are not completed or that + * previously completed successfully (with an exit code of 0). Additionally, it will fail if the Job + * has completed (or is terminating or deleting). * @param jobId The ID of the Job containing the Task. * @param taskId The ID of the Task to reactivate. - * @param callback The callback - */ - reactivate(jobId: string, taskId: string, callback: msRest.ServiceCallback): void; - /** - * @param jobId The ID of the Job containing the Task. - * @param taskId The ID of the Task to reactivate. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ reactivate( jobId: string, taskId: string, - options: Models.TaskReactivateOptionalParams, - callback: msRest.ServiceCallback - ): void; - reactivate( - jobId: string, - taskId: string, - options?: Models.TaskReactivateOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + options?: TaskReactivateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - jobId, - taskId, - options - }, - reactivateOperationSpec, - callback - ) as Promise; + { jobId, taskId, options }, + reactivateOperationSpec + ); } /** - * For multi-instance Tasks, information such as affinityId, executionInfo and nodeInfo refer to - * the primary Task. Use the list subtasks API to retrieve information about subtasks. - * @summary Lists all of the Tasks that are associated with the specified Job. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext( - nextPageLink: string, - options?: Models.TaskListNextOptionalParams - ): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param jobId The ID of the Job. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext( - nextPageLink: string, - options: Models.TaskListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.TaskListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + private _listNext( + jobId: string, + nextLink: string, + options?: TaskListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback - ) as Promise; + { jobId, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const addOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const addOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}/tasks", httpMethod: "POST", - path: "jobs/{jobId}/tasks", - urlParameters: [Parameters.batchUrl, Parameters.jobId], - queryParameters: [Parameters.apiVersion, Parameters.timeout55], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId67, - Parameters.returnClientRequestId67, - Parameters.ocpDate67 - ], - requestBody: { - parameterPath: "task", - mapper: { - ...Mappers.TaskAddParameter, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", responses: { 201: { headersMapper: Mappers.TaskAddHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.TaskAddHeaders + bodyMapper: Mappers.BatchError } }, + requestBody: Parameters.task, + queryParameters: [Parameters.apiVersion, Parameters.timeout55], + urlParameters: [Parameters.batchUrl, Parameters.jobId], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId55, + Parameters.returnClientRequestId55, + Parameters.ocpDate55 + ], + mediaType: "json", serializer }; - -const listOperationSpec: msRest.OperationSpec = { +const listOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}/tasks", httpMethod: "GET", - path: "jobs/{jobId}/tasks", - urlParameters: [Parameters.batchUrl, Parameters.jobId], + responses: { + 200: { + bodyMapper: Mappers.CloudTaskListResult, + headersMapper: Mappers.TaskListHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, queryParameters: [ Parameters.apiVersion, Parameters.filter11, @@ -586,255 +340,226 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.maxResults12, Parameters.timeout56 ], + urlParameters: [Parameters.batchUrl, Parameters.jobId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId68, - Parameters.returnClientRequestId68, - Parameters.ocpDate68 + Parameters.accept, + Parameters.clientRequestId56, + Parameters.returnClientRequestId56, + Parameters.ocpDate56 ], + serializer +}; +const addCollectionOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}/addtaskcollection", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CloudTaskListResult, - headersMapper: Mappers.TaskListHeaders + bodyMapper: Mappers.TaskAddCollectionResult, + headersMapper: Mappers.TaskAddCollectionHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.TaskListHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const addCollectionOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "jobs/{jobId}/addtaskcollection", - urlParameters: [Parameters.batchUrl, Parameters.jobId], + requestBody: Parameters.taskCollection, queryParameters: [Parameters.apiVersion, Parameters.timeout57], + urlParameters: [Parameters.batchUrl, Parameters.jobId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId69, - Parameters.returnClientRequestId69, - Parameters.ocpDate69 + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId57, + Parameters.returnClientRequestId57, + Parameters.ocpDate57 ], - requestBody: { - parameterPath: { - value: "value" - }, - mapper: { - ...Mappers.TaskAddCollectionParameter, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}/tasks/{taskId}", + httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.TaskAddCollectionResult, - headersMapper: Mappers.TaskAddCollectionHeaders + headersMapper: Mappers.TaskDeleteHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.TaskAddCollectionHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "jobs/{jobId}/tasks/{taskId}", - urlParameters: [Parameters.batchUrl, Parameters.jobId, Parameters.taskId], queryParameters: [Parameters.apiVersion, Parameters.timeout58], + urlParameters: [Parameters.batchUrl, Parameters.jobId, Parameters.taskId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId70, - Parameters.returnClientRequestId70, - Parameters.ocpDate70, + Parameters.accept, + Parameters.clientRequestId58, + Parameters.returnClientRequestId58, + Parameters.ocpDate58, Parameters.ifMatch23, Parameters.ifNoneMatch23, Parameters.ifModifiedSince27, Parameters.ifUnmodifiedSince27 ], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}/tasks/{taskId}", + httpMethod: "GET", responses: { 200: { - headersMapper: Mappers.TaskDeleteHeaders + bodyMapper: Mappers.CloudTask, + headersMapper: Mappers.TaskGetHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.TaskDeleteHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "jobs/{jobId}/tasks/{taskId}", - urlParameters: [Parameters.batchUrl, Parameters.jobId, Parameters.taskId], queryParameters: [ Parameters.apiVersion, Parameters.select11, Parameters.expand8, Parameters.timeout59 ], + urlParameters: [Parameters.batchUrl, Parameters.jobId, Parameters.taskId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId71, - Parameters.returnClientRequestId71, - Parameters.ocpDate71, + Parameters.accept, + Parameters.clientRequestId59, + Parameters.returnClientRequestId59, + Parameters.ocpDate59, Parameters.ifMatch24, Parameters.ifNoneMatch24, Parameters.ifModifiedSince28, Parameters.ifUnmodifiedSince28 ], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}/tasks/{taskId}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CloudTask, - headersMapper: Mappers.TaskGetHeaders + headersMapper: Mappers.TaskUpdateHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.TaskGetHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "jobs/{jobId}/tasks/{taskId}", - urlParameters: [Parameters.batchUrl, Parameters.jobId, Parameters.taskId], + requestBody: Parameters.taskUpdateParameter, queryParameters: [Parameters.apiVersion, Parameters.timeout60], + urlParameters: [Parameters.batchUrl, Parameters.jobId, Parameters.taskId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId72, - Parameters.returnClientRequestId72, - Parameters.ocpDate72, + Parameters.accept, + Parameters.contentType, + Parameters.clientRequestId60, + Parameters.returnClientRequestId60, + Parameters.ocpDate60, Parameters.ifMatch25, Parameters.ifNoneMatch25, Parameters.ifModifiedSince29, Parameters.ifUnmodifiedSince29 ], - requestBody: { - parameterPath: { - constraints: ["options", "constraints"] - }, - mapper: { - ...Mappers.TaskUpdateParameter, - required: true - } - }, - contentType: "application/json; odata=minimalmetadata; charset=utf-8", - responses: { - 200: { - headersMapper: Mappers.TaskUpdateHeaders - }, - default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.TaskUpdateHeaders - } - }, + mediaType: "json", serializer }; - -const listSubtasksOperationSpec: msRest.OperationSpec = { +const listSubtasksOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}/tasks/{taskId}/subtasksinfo", httpMethod: "GET", - path: "jobs/{jobId}/tasks/{taskId}/subtasksinfo", - urlParameters: [Parameters.batchUrl, Parameters.jobId, Parameters.taskId], - queryParameters: [Parameters.apiVersion, Parameters.select12, Parameters.timeout61], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId73, - Parameters.returnClientRequestId73, - Parameters.ocpDate73 - ], responses: { 200: { bodyMapper: Mappers.CloudTaskListSubtasksResult, headersMapper: Mappers.TaskListSubtasksHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.TaskListSubtasksHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.apiVersion, + Parameters.select12, + Parameters.timeout61 + ], + urlParameters: [Parameters.batchUrl, Parameters.jobId, Parameters.taskId], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId61, + Parameters.returnClientRequestId61, + Parameters.ocpDate61 + ], serializer }; - -const terminateOperationSpec: msRest.OperationSpec = { +const terminateOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}/tasks/{taskId}/terminate", httpMethod: "POST", - path: "jobs/{jobId}/tasks/{taskId}/terminate", - urlParameters: [Parameters.batchUrl, Parameters.jobId, Parameters.taskId], + responses: { + 204: { + headersMapper: Mappers.TaskTerminateHeaders + }, + default: { + bodyMapper: Mappers.BatchError + } + }, queryParameters: [Parameters.apiVersion, Parameters.timeout62], + urlParameters: [Parameters.batchUrl, Parameters.jobId, Parameters.taskId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId74, - Parameters.returnClientRequestId74, - Parameters.ocpDate74, + Parameters.accept, + Parameters.clientRequestId62, + Parameters.returnClientRequestId62, + Parameters.ocpDate62, Parameters.ifMatch26, Parameters.ifNoneMatch26, Parameters.ifModifiedSince30, Parameters.ifUnmodifiedSince30 ], + serializer +}; +const reactivateOperationSpec: coreClient.OperationSpec = { + path: "/jobs/{jobId}/tasks/{taskId}/reactivate", + httpMethod: "POST", responses: { 204: { - headersMapper: Mappers.TaskTerminateHeaders + headersMapper: Mappers.TaskReactivateHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.TaskTerminateHeaders + bodyMapper: Mappers.BatchError } }, - serializer -}; - -const reactivateOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "jobs/{jobId}/tasks/{taskId}/reactivate", - urlParameters: [Parameters.batchUrl, Parameters.jobId, Parameters.taskId], queryParameters: [Parameters.apiVersion, Parameters.timeout63], + urlParameters: [Parameters.batchUrl, Parameters.jobId, Parameters.taskId], headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId75, - Parameters.returnClientRequestId75, - Parameters.ocpDate75, + Parameters.accept, + Parameters.clientRequestId63, + Parameters.returnClientRequestId63, + Parameters.ocpDate63, Parameters.ifMatch27, Parameters.ifNoneMatch27, Parameters.ifModifiedSince31, Parameters.ifUnmodifiedSince31 ], - responses: { - 204: { - headersMapper: Mappers.TaskReactivateHeaders - }, - default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.TaskReactivateHeaders - } - }, serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "{batchUrl}", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [ - Parameters.acceptLanguage, - Parameters.clientRequestId76, - Parameters.returnClientRequestId76, - Parameters.ocpDate76 - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.CloudTaskListResult, - headersMapper: Mappers.TaskListHeaders + headersMapper: Mappers.TaskListNextHeaders }, default: { - bodyMapper: Mappers.BatchError, - headersMapper: Mappers.TaskListHeaders + bodyMapper: Mappers.BatchError } }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter11, + Parameters.select10, + Parameters.expand7, + Parameters.maxResults12, + Parameters.timeout56 + ], + urlParameters: [Parameters.batchUrl, Parameters.nextLink, Parameters.jobId], + headerParameters: [ + Parameters.accept, + Parameters.clientRequestId56, + Parameters.returnClientRequestId56, + Parameters.ocpDate56 + ], serializer }; diff --git a/sdk/batch/batch/src/operationsInterfaces/account.ts b/sdk/batch/batch/src/operationsInterfaces/account.ts new file mode 100644 index 000000000000..81702f497b70 --- /dev/null +++ b/sdk/batch/batch/src/operationsInterfaces/account.ts @@ -0,0 +1,35 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ImageInformation, + AccountListSupportedImagesOptionalParams, + PoolNodeCounts, + AccountListPoolNodeCountsOptionalParams +} from "../models"; + +/// +/** Interface representing a Account. */ +export interface Account { + /** + * Lists all Virtual Machine Images supported by the Azure Batch service. + * @param options The options parameters. + */ + listSupportedImages( + options?: AccountListSupportedImagesOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the number of Compute Nodes in each state, grouped by Pool. Note that the numbers returned may + * not always be up to date. If you need exact node counts, use a list query. + * @param options The options parameters. + */ + listPoolNodeCounts( + options?: AccountListPoolNodeCountsOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/batch/batch/src/operationsInterfaces/application.ts b/sdk/batch/batch/src/operationsInterfaces/application.ts new file mode 100644 index 000000000000..4ef178098594 --- /dev/null +++ b/sdk/batch/batch/src/operationsInterfaces/application.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ApplicationSummary, + ApplicationListOptionalParams, + ApplicationGetOptionalParams, + ApplicationGetResponse +} from "../models"; + +/// +/** Interface representing a Application. */ +export interface Application { + /** + * This operation returns only Applications and versions that are available for use on Compute Nodes; + * that is, that can be used in an Package reference. For administrator information about applications + * and versions that are not yet available to Compute Nodes, use the Azure portal or the Azure Resource + * Manager API. + * @param options The options parameters. + */ + list( + options?: ApplicationListOptionalParams + ): PagedAsyncIterableIterator; + /** + * This operation returns only Applications and versions that are available for use on Compute Nodes; + * that is, that can be used in an Package reference. For administrator information about Applications + * and versions that are not yet available to Compute Nodes, use the Azure portal or the Azure Resource + * Manager API. + * @param applicationId The ID of the Application. + * @param options The options parameters. + */ + get( + applicationId: string, + options?: ApplicationGetOptionalParams + ): Promise; +} diff --git a/sdk/batch/batch/src/operationsInterfaces/certificateOperations.ts b/sdk/batch/batch/src/operationsInterfaces/certificateOperations.ts new file mode 100644 index 000000000000..05abb8fff2ec --- /dev/null +++ b/sdk/batch/batch/src/operationsInterfaces/certificateOperations.ts @@ -0,0 +1,88 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + Certificate, + CertificateListOptionalParams, + CertificateAddParameter, + CertificateAddOptionalParams, + CertificateAddResponse, + CertificateCancelDeletionOptionalParams, + CertificateCancelDeletionResponse, + CertificateDeleteOptionalParams, + CertificateDeleteResponse, + CertificateGetOptionalParams, + CertificateGetResponse +} from "../models"; + +/// +/** Interface representing a CertificateOperations. */ +export interface CertificateOperations { + /** + * Lists all of the Certificates that have been added to the specified Account. + * @param options The options parameters. + */ + list( + options?: CertificateListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Adds a Certificate to the specified Account. + * @param certificate The Certificate to be added. + * @param options The options parameters. + */ + add( + certificate: CertificateAddParameter, + options?: CertificateAddOptionalParams + ): Promise; + /** + * 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. + * @param thumbprintAlgorithm The algorithm used to derive the thumbprint parameter. This must be sha1. + * @param thumbprint The thumbprint of the Certificate being deleted. + * @param options The options parameters. + */ + cancelDeletion( + thumbprintAlgorithm: string, + thumbprint: string, + options?: CertificateCancelDeletionOptionalParams + ): Promise; + /** + * 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. + * @param thumbprintAlgorithm The algorithm used to derive the thumbprint parameter. This must be sha1. + * @param thumbprint The thumbprint of the Certificate to be deleted. + * @param options The options parameters. + */ + delete( + thumbprintAlgorithm: string, + thumbprint: string, + options?: CertificateDeleteOptionalParams + ): Promise; + /** + * Gets information about the specified Certificate. + * @param thumbprintAlgorithm The algorithm used to derive the thumbprint parameter. This must be sha1. + * @param thumbprint The thumbprint of the Certificate to get. + * @param options The options parameters. + */ + get( + thumbprintAlgorithm: string, + thumbprint: string, + options?: CertificateGetOptionalParams + ): Promise; +} diff --git a/sdk/batch/batch/src/operationsInterfaces/computeNodeExtension.ts b/sdk/batch/batch/src/operationsInterfaces/computeNodeExtension.ts new file mode 100644 index 000000000000..44d472722d8b --- /dev/null +++ b/sdk/batch/batch/src/operationsInterfaces/computeNodeExtension.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + NodeVMExtension, + ComputeNodeExtensionListOptionalParams, + ComputeNodeExtensionGetOptionalParams, + ComputeNodeExtensionGetResponse +} from "../models"; + +/// +/** Interface representing a ComputeNodeExtension. */ +export interface ComputeNodeExtension { + /** + * Lists the Compute Nodes Extensions in the specified Pool. + * @param poolId The ID of the Pool that contains Compute Node. + * @param nodeId The ID of the Compute Node that you want to list extensions. + * @param options The options parameters. + */ + list( + poolId: string, + nodeId: string, + options?: ComputeNodeExtensionListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets information about the specified Compute Node Extension. + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that contains the extensions. + * @param extensionName The name of the of the Compute Node Extension that you want to get information + * about. + * @param options The options parameters. + */ + get( + poolId: string, + nodeId: string, + extensionName: string, + options?: ComputeNodeExtensionGetOptionalParams + ): Promise; +} diff --git a/sdk/batch/batch/src/operationsInterfaces/computeNodeOperations.ts b/sdk/batch/batch/src/operationsInterfaces/computeNodeOperations.ts new file mode 100644 index 000000000000..c676a05c6a35 --- /dev/null +++ b/sdk/batch/batch/src/operationsInterfaces/computeNodeOperations.ts @@ -0,0 +1,195 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ComputeNode, + ComputeNodeListOptionalParams, + ComputeNodeUser, + ComputeNodeAddUserOptionalParams, + ComputeNodeAddUserResponse, + ComputeNodeDeleteUserOptionalParams, + ComputeNodeDeleteUserResponse, + NodeUpdateUserParameter, + ComputeNodeUpdateUserOptionalParams, + ComputeNodeUpdateUserResponse, + ComputeNodeGetOptionalParams, + ComputeNodeGetResponse, + ComputeNodeRebootOptionalParams, + ComputeNodeRebootResponse, + ComputeNodeReimageOptionalParams, + ComputeNodeReimageResponse, + ComputeNodeDisableSchedulingOptionalParams, + ComputeNodeDisableSchedulingResponse, + ComputeNodeEnableSchedulingOptionalParams, + ComputeNodeEnableSchedulingResponse, + ComputeNodeGetRemoteLoginSettingsOptionalParams, + ComputeNodeGetRemoteLoginSettingsResponse, + ComputeNodeGetRemoteDesktopOptionalParams, + ComputeNodeGetRemoteDesktopResponse, + UploadBatchServiceLogsConfiguration, + ComputeNodeUploadBatchServiceLogsOptionalParams, + ComputeNodeUploadBatchServiceLogsResponse +} from "../models"; + +/// +/** Interface representing a ComputeNodeOperations. */ +export interface ComputeNodeOperations { + /** + * Lists the Compute Nodes in the specified Pool. + * @param poolId The ID of the Pool from which you want to list Compute Nodes. + * @param options The options parameters. + */ + list( + poolId: string, + options?: ComputeNodeListOptionalParams + ): PagedAsyncIterableIterator; + /** + * You can add a user Account to a Compute Node only when it is in the idle or running state. + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the machine on which you want to create a user Account. + * @param user The user Account to be created. + * @param options The options parameters. + */ + addUser( + poolId: string, + nodeId: string, + user: ComputeNodeUser, + options?: ComputeNodeAddUserOptionalParams + ): Promise; + /** + * You can delete a user Account to a Compute Node only when it is in the idle or running state. + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the machine on which you want to delete a user Account. + * @param userName The name of the user Account to delete. + * @param options The options parameters. + */ + deleteUser( + poolId: string, + nodeId: string, + userName: string, + options?: ComputeNodeDeleteUserOptionalParams + ): Promise; + /** + * This operation replaces of all the updatable properties of the Account. For example, if the + * expiryTime element is not specified, the current value is replaced with the default value, not left + * unmodified. You can update a user Account on a Compute Node only when it is in the idle or running + * state. + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the machine on which you want to update a user Account. + * @param userName The name of the user Account to update. + * @param nodeUpdateUserParameter The parameters for the request. + * @param options The options parameters. + */ + updateUser( + poolId: string, + nodeId: string, + userName: string, + nodeUpdateUserParameter: NodeUpdateUserParameter, + options?: ComputeNodeUpdateUserOptionalParams + ): Promise; + /** + * Gets information about the specified Compute Node. + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to get information about. + * @param options The options parameters. + */ + get( + poolId: string, + nodeId: string, + options?: ComputeNodeGetOptionalParams + ): Promise; + /** + * You can restart a Compute Node only if it is in an idle or running state. + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @param options The options parameters. + */ + reboot( + poolId: string, + nodeId: string, + options?: ComputeNodeRebootOptionalParams + ): Promise; + /** + * 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. + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @param options The options parameters. + */ + reimage( + poolId: string, + nodeId: string, + options?: ComputeNodeReimageOptionalParams + ): Promise; + /** + * You can disable Task scheduling on a Compute Node only if its current scheduling state is enabled. + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node on which you want to disable Task scheduling. + * @param options The options parameters. + */ + disableScheduling( + poolId: string, + nodeId: string, + options?: ComputeNodeDisableSchedulingOptionalParams + ): Promise; + /** + * You can enable Task scheduling on a Compute Node only if its current scheduling state is disabled + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node on which you want to enable Task scheduling. + * @param options The options parameters. + */ + enableScheduling( + poolId: string, + nodeId: string, + options?: ComputeNodeEnableSchedulingOptionalParams + ): Promise; + /** + * 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. + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node for which to obtain the remote login settings. + * @param options The options parameters. + */ + getRemoteLoginSettings( + poolId: string, + nodeId: string, + options?: ComputeNodeGetRemoteLoginSettingsOptionalParams + ): Promise; + /** + * 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. + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node for which you want to get the Remote Desktop Protocol file. + * @param options The options parameters. + */ + getRemoteDesktop( + poolId: string, + nodeId: string, + options?: ComputeNodeGetRemoteDesktopOptionalParams + ): Promise; + /** + * This is for gathering Azure Batch service log files in an automated fashion from Compute Nodes if + * you are experiencing an error and wish to escalate to Azure support. The Azure Batch service log + * files should be shared with Azure support to aid in debugging issues with the Batch service. + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node from which you want to upload the Azure Batch service log + * files. + * @param uploadBatchServiceLogsConfiguration The Azure Batch service log files upload configuration. + * @param options The options parameters. + */ + uploadBatchServiceLogs( + poolId: string, + nodeId: string, + uploadBatchServiceLogsConfiguration: UploadBatchServiceLogsConfiguration, + options?: ComputeNodeUploadBatchServiceLogsOptionalParams + ): Promise; +} diff --git a/sdk/batch/batch/src/operationsInterfaces/file.ts b/sdk/batch/batch/src/operationsInterfaces/file.ts new file mode 100644 index 000000000000..14fc605db87f --- /dev/null +++ b/sdk/batch/batch/src/operationsInterfaces/file.ts @@ -0,0 +1,131 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + NodeFile, + FileListFromTaskOptionalParams, + FileListFromComputeNodeOptionalParams, + FileDeleteFromTaskOptionalParams, + FileDeleteFromTaskResponse, + FileGetFromTaskOptionalParams, + FileGetFromTaskResponse, + FileGetPropertiesFromTaskOptionalParams, + FileGetPropertiesFromTaskResponse, + FileDeleteFromComputeNodeOptionalParams, + FileDeleteFromComputeNodeResponse, + FileGetFromComputeNodeOptionalParams, + FileGetFromComputeNodeResponse, + FileGetPropertiesFromComputeNodeOptionalParams, + FileGetPropertiesFromComputeNodeResponse +} from "../models"; + +/// +/** Interface representing a File. */ +export interface File { + /** + * Lists the files in a Task's directory on its Compute Node. + * @param jobId The ID of the Job that contains the Task. + * @param taskId The ID of the Task whose files you want to list. + * @param options The options parameters. + */ + listFromTask( + jobId: string, + taskId: string, + options?: FileListFromTaskOptionalParams + ): PagedAsyncIterableIterator; + /** + * Lists all of the files in Task directories on the specified Compute Node. + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node whose files you want to list. + * @param options The options parameters. + */ + listFromComputeNode( + poolId: string, + nodeId: string, + options?: FileListFromComputeNodeOptionalParams + ): PagedAsyncIterableIterator; + /** + * Deletes the specified Task file from the Compute Node where the Task ran. + * @param jobId The ID of the Job that contains the Task. + * @param taskId The ID of the Task whose file you want to delete. + * @param filePath The path to the Task file or directory that you want to delete. + * @param options The options parameters. + */ + deleteFromTask( + jobId: string, + taskId: string, + filePath: string, + options?: FileDeleteFromTaskOptionalParams + ): Promise; + /** + * Returns the content of the specified Task file. + * @param jobId The ID of the Job that contains the Task. + * @param taskId The ID of the Task whose file you want to retrieve. + * @param filePath The path to the Task file that you want to get the content of. + * @param options The options parameters. + */ + getFromTask( + jobId: string, + taskId: string, + filePath: string, + options?: FileGetFromTaskOptionalParams + ): Promise; + /** + * Gets the properties of the specified Task file. + * @param jobId The ID of the Job that contains the Task. + * @param taskId The ID of the Task whose file you want to get the properties of. + * @param filePath The path to the Task file that you want to get the properties of. + * @param options The options parameters. + */ + getPropertiesFromTask( + jobId: string, + taskId: string, + filePath: string, + options?: FileGetPropertiesFromTaskOptionalParams + ): Promise; + /** + * Deletes the specified file from the Compute Node. + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node from which you want to delete the file. + * @param filePath The path to the file or directory that you want to delete. + * @param options The options parameters. + */ + deleteFromComputeNode( + poolId: string, + nodeId: string, + filePath: string, + options?: FileDeleteFromComputeNodeOptionalParams + ): Promise; + /** + * Returns the content of the specified Compute Node file. + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that contains the file. + * @param filePath The path to the Compute Node file that you want to get the content of. + * @param options The options parameters. + */ + getFromComputeNode( + poolId: string, + nodeId: string, + filePath: string, + options?: FileGetFromComputeNodeOptionalParams + ): Promise; + /** + * Gets the properties of the specified Compute Node file. + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that contains the file. + * @param filePath The path to the Compute Node file that you want to get the properties of. + * @param options The options parameters. + */ + getPropertiesFromComputeNode( + poolId: string, + nodeId: string, + filePath: string, + options?: FileGetPropertiesFromComputeNodeOptionalParams + ): Promise; +} diff --git a/sdk/batch/batch/src/operationsInterfaces/index.ts b/sdk/batch/batch/src/operationsInterfaces/index.ts new file mode 100644 index 000000000000..0357871372f3 --- /dev/null +++ b/sdk/batch/batch/src/operationsInterfaces/index.ts @@ -0,0 +1,18 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export * from "./application"; +export * from "./pool"; +export * from "./account"; +export * from "./job"; +export * from "./certificateOperations"; +export * from "./file"; +export * from "./jobSchedule"; +export * from "./task"; +export * from "./computeNodeOperations"; +export * from "./computeNodeExtension"; diff --git a/sdk/batch/batch/src/operationsInterfaces/job.ts b/sdk/batch/batch/src/operationsInterfaces/job.ts new file mode 100644 index 000000000000..fb53a4e0dfd3 --- /dev/null +++ b/sdk/batch/batch/src/operationsInterfaces/job.ts @@ -0,0 +1,197 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + CloudJob, + JobListOptionalParams, + JobListFromJobScheduleOptionalParams, + JobPreparationAndReleaseTaskExecutionInformation, + JobListPreparationAndReleaseTaskStatusOptionalParams, + JobGetAllLifetimeStatisticsOptionalParams, + JobGetAllLifetimeStatisticsResponse, + JobDeleteOptionalParams, + JobDeleteResponse, + JobGetOptionalParams, + JobGetResponse, + JobPatchParameter, + JobPatchOptionalParams, + JobPatchResponse, + JobUpdateParameter, + JobUpdateOptionalParams, + JobUpdateResponse, + JobDisableParameter, + JobDisableOptionalParams, + JobDisableResponse, + JobEnableOptionalParams, + JobEnableResponse, + JobTerminateOptionalParams, + JobTerminateResponse, + JobAddParameter, + JobAddOptionalParams, + JobAddResponse, + JobGetTaskCountsOptionalParams, + JobGetTaskCountsResponse +} from "../models"; + +/// +/** Interface representing a Job. */ +export interface Job { + /** + * Lists all of the Jobs in the specified Account. + * @param options The options parameters. + */ + list(options?: JobListOptionalParams): PagedAsyncIterableIterator; + /** + * Lists the Jobs that have been created under the specified Job Schedule. + * @param jobScheduleId The ID of the Job Schedule from which you want to get a list of Jobs. + * @param options The options parameters. + */ + listFromJobSchedule( + jobScheduleId: string, + options?: JobListFromJobScheduleOptionalParams + ): PagedAsyncIterableIterator; + /** + * This API returns the Job Preparation and Job Release Task status on all Compute Nodes that have run + * the Job Preparation or Job Release Task. This includes Compute Nodes which have since been removed + * from the Pool. If this API is invoked on a Job which has no Job Preparation or Job Release Task, the + * Batch service returns HTTP status code 409 (Conflict) with an error code of + * JobPreparationTaskNotSpecified. + * @param jobId The ID of the Job. + * @param options The options parameters. + */ + listPreparationAndReleaseTaskStatus( + jobId: string, + options?: JobListPreparationAndReleaseTaskStatusOptionalParams + ): PagedAsyncIterableIterator< + JobPreparationAndReleaseTaskExecutionInformation + >; + /** + * Statistics are aggregated across all Jobs that have ever existed in the Account, from Account + * creation to the last update time of the statistics. The statistics may not be immediately available. + * The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes. + * @param options The options parameters. + */ + getAllLifetimeStatistics( + options?: JobGetAllLifetimeStatisticsOptionalParams + ): Promise; + /** + * Deleting a Job also deletes all Tasks that are part of that Job, and all Job statistics. This also + * overrides the retention period for Task data; that is, if the Job contains Tasks which are still + * retained on Compute Nodes, the Batch services deletes those Tasks' working directories and all their + * contents. When a Delete Job request is received, the Batch service sets the Job to the deleting + * state. All update operations on a Job that is in deleting state will fail with status code 409 + * (Conflict), with additional information indicating that the Job is being deleted. + * @param jobId The ID of the Job to delete. + * @param options The options parameters. + */ + delete( + jobId: string, + options?: JobDeleteOptionalParams + ): Promise; + /** + * Gets information about the specified Job. + * @param jobId The ID of the Job. + * @param options The options parameters. + */ + get(jobId: string, options?: JobGetOptionalParams): Promise; + /** + * This replaces only the Job properties specified in the request. For example, if the Job has + * constraints, and a request does not specify the constraints element, then the Job keeps the existing + * constraints. + * @param jobId The ID of the Job whose properties you want to update. + * @param jobPatchParameter The parameters for the request. + * @param options The options parameters. + */ + patch( + jobId: string, + jobPatchParameter: JobPatchParameter, + options?: JobPatchOptionalParams + ): Promise; + /** + * This fully replaces all the updatable properties of the Job. For example, if the Job has constraints + * associated with it and if constraints is not specified with this request, then the Batch service + * will remove the existing constraints. + * @param jobId The ID of the Job whose properties you want to update. + * @param jobUpdateParameter The parameters for the request. + * @param options The options parameters. + */ + update( + jobId: string, + jobUpdateParameter: JobUpdateParameter, + options?: JobUpdateOptionalParams + ): Promise; + /** + * The Batch Service immediately moves the Job to the disabling state. Batch then uses the disableTasks + * parameter to determine what to do with the currently running Tasks of the Job. The Job remains in + * the disabling state until the disable operation is completed and all Tasks have been dealt with + * according to the disableTasks option; the Job then moves to the disabled state. No new Tasks are + * started under the Job until it moves back to active state. If you try to disable a Job that is in + * any state other than active, disabling, or disabled, the request fails with status code 409. + * @param jobId The ID of the Job to disable. + * @param jobDisableParameter The parameters for the request. + * @param options The options parameters. + */ + disable( + jobId: string, + jobDisableParameter: JobDisableParameter, + options?: JobDisableOptionalParams + ): Promise; + /** + * When you call this API, the Batch service sets a disabled Job to the enabling state. After the this + * operation is completed, the Job moves to the active state, and scheduling of new Tasks under the Job + * resumes. The Batch service does not allow a Task to remain in the active state for more than 180 + * days. Therefore, if you enable a Job containing active Tasks which were added more than 180 days + * ago, those Tasks will not run. + * @param jobId The ID of the Job to enable. + * @param options The options parameters. + */ + enable( + jobId: string, + options?: JobEnableOptionalParams + ): Promise; + /** + * When a Terminate Job request is received, the Batch service sets the Job to the terminating state. + * The Batch service then terminates any running Tasks associated with the Job and runs any required + * Job release Tasks. Then the Job moves into the completed state. If there are any Tasks in the Job in + * the active state, they will remain in the active state. Once a Job is terminated, new Tasks cannot + * be added and any remaining active Tasks will not be scheduled. + * @param jobId The ID of the Job to terminate. + * @param options The options parameters. + */ + terminate( + jobId: string, + options?: JobTerminateOptionalParams + ): Promise; + /** + * The Batch service supports two ways to control the work done as part of a Job. In the first + * approach, the user specifies a Job Manager Task. The Batch service launches this Task when it is + * ready to start the Job. The Job Manager Task controls all other Tasks that run under this Job, by + * using the Task APIs. In the second approach, the user directly controls the execution of Tasks under + * an active Job, by using the Task APIs. Also note: when naming Jobs, avoid including sensitive + * information such as user names or secret project names. This information may appear in telemetry + * logs accessible to Microsoft Support engineers. + * @param job The Job to be added. + * @param options The options parameters. + */ + add( + job: JobAddParameter, + options?: JobAddOptionalParams + ): Promise; + /** + * Task counts provide a count of the Tasks by active, running or completed Task state, and a count of + * Tasks which succeeded or failed. Tasks in the preparing state are counted as running. Note that the + * numbers returned may not always be up to date. If you need exact task counts, use a list query. + * @param jobId The ID of the Job. + * @param options The options parameters. + */ + getTaskCounts( + jobId: string, + options?: JobGetTaskCountsOptionalParams + ): Promise; +} diff --git a/sdk/batch/batch/src/operationsInterfaces/jobSchedule.ts b/sdk/batch/batch/src/operationsInterfaces/jobSchedule.ts new file mode 100644 index 000000000000..77f079c87523 --- /dev/null +++ b/sdk/batch/batch/src/operationsInterfaces/jobSchedule.ts @@ -0,0 +1,140 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + CloudJobSchedule, + JobScheduleListOptionalParams, + JobScheduleExistsOptionalParams, + JobScheduleExistsResponse, + JobScheduleDeleteOptionalParams, + JobScheduleDeleteResponse, + JobScheduleGetOptionalParams, + JobScheduleGetResponse, + JobSchedulePatchParameter, + JobSchedulePatchOptionalParams, + JobSchedulePatchResponse, + JobScheduleUpdateParameter, + JobScheduleUpdateOptionalParams, + JobScheduleUpdateResponse, + JobScheduleDisableOptionalParams, + JobScheduleDisableResponse, + JobScheduleEnableOptionalParams, + JobScheduleEnableResponse, + JobScheduleTerminateOptionalParams, + JobScheduleTerminateResponse, + JobScheduleAddParameter, + JobScheduleAddOptionalParams, + JobScheduleAddResponse +} from "../models"; + +/// +/** Interface representing a JobSchedule. */ +export interface JobSchedule { + /** + * Lists all of the Job Schedules in the specified Account. + * @param options The options parameters. + */ + list( + options?: JobScheduleListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Checks the specified Job Schedule exists. + * @param jobScheduleId The ID of the Job Schedule which you want to check. + * @param options The options parameters. + */ + exists( + jobScheduleId: string, + options?: JobScheduleExistsOptionalParams + ): Promise; + /** + * When you delete a Job Schedule, this also deletes all Jobs and Tasks under that schedule. When Tasks + * are deleted, all the files in their working directories on the Compute Nodes are also deleted (the + * retention period is ignored). The Job Schedule statistics are no longer accessible once the Job + * Schedule is deleted, though they are still counted towards Account lifetime statistics. + * @param jobScheduleId The ID of the Job Schedule to delete. + * @param options The options parameters. + */ + delete( + jobScheduleId: string, + options?: JobScheduleDeleteOptionalParams + ): Promise; + /** + * Gets information about the specified Job Schedule. + * @param jobScheduleId The ID of the Job Schedule to get. + * @param options The options parameters. + */ + get( + jobScheduleId: string, + options?: JobScheduleGetOptionalParams + ): Promise; + /** + * This replaces only the Job Schedule properties specified in the request. For example, if the + * schedule property is not specified with this request, then the Batch service will keep the existing + * schedule. Changes to a Job Schedule only impact Jobs created by the schedule after the update has + * taken place; currently running Jobs are unaffected. + * @param jobScheduleId The ID of the Job Schedule to update. + * @param jobSchedulePatchParameter The parameters for the request. + * @param options The options parameters. + */ + patch( + jobScheduleId: string, + jobSchedulePatchParameter: JobSchedulePatchParameter, + options?: JobSchedulePatchOptionalParams + ): Promise; + /** + * This fully replaces all the updatable properties of the Job Schedule. For example, if the schedule + * property is not specified with this request, then the Batch service will remove the existing + * schedule. Changes to a Job Schedule only impact Jobs created by the schedule after the update has + * taken place; currently running Jobs are unaffected. + * @param jobScheduleId The ID of the Job Schedule to update. + * @param jobScheduleUpdateParameter The parameters for the request. + * @param options The options parameters. + */ + update( + jobScheduleId: string, + jobScheduleUpdateParameter: JobScheduleUpdateParameter, + options?: JobScheduleUpdateOptionalParams + ): Promise; + /** + * No new Jobs will be created until the Job Schedule is enabled again. + * @param jobScheduleId The ID of the Job Schedule to disable. + * @param options The options parameters. + */ + disable( + jobScheduleId: string, + options?: JobScheduleDisableOptionalParams + ): Promise; + /** + * Enables a Job Schedule. + * @param jobScheduleId The ID of the Job Schedule to enable. + * @param options The options parameters. + */ + enable( + jobScheduleId: string, + options?: JobScheduleEnableOptionalParams + ): Promise; + /** + * Terminates a Job Schedule. + * @param jobScheduleId The ID of the Job Schedule to terminates. + * @param options The options parameters. + */ + terminate( + jobScheduleId: string, + options?: JobScheduleTerminateOptionalParams + ): Promise; + /** + * Adds a Job Schedule to the specified Account. + * @param cloudJobSchedule The Job Schedule to be added. + * @param options The options parameters. + */ + add( + cloudJobSchedule: JobScheduleAddParameter, + options?: JobScheduleAddOptionalParams + ): Promise; +} diff --git a/sdk/batch/batch/src/operationsInterfaces/pool.ts b/sdk/batch/batch/src/operationsInterfaces/pool.ts new file mode 100644 index 000000000000..349857fa4d95 --- /dev/null +++ b/sdk/batch/batch/src/operationsInterfaces/pool.ts @@ -0,0 +1,229 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PoolUsageMetrics, + PoolListUsageMetricsOptionalParams, + CloudPool, + PoolListOptionalParams, + PoolGetAllLifetimeStatisticsOptionalParams, + PoolGetAllLifetimeStatisticsResponse, + PoolAddParameter, + PoolAddOptionalParams, + PoolAddResponse, + PoolDeleteOptionalParams, + PoolDeleteResponse, + PoolExistsOptionalParams, + PoolExistsResponse, + PoolGetOptionalParams, + PoolGetResponse, + PoolPatchParameter, + PoolPatchOptionalParams, + PoolPatchResponse, + PoolDisableAutoScaleOptionalParams, + PoolDisableAutoScaleResponse, + PoolEnableAutoScaleParameter, + PoolEnableAutoScaleOptionalParams, + PoolEnableAutoScaleResponse, + PoolEvaluateAutoScaleParameter, + PoolEvaluateAutoScaleOptionalParams, + PoolEvaluateAutoScaleResponse, + PoolResizeParameter, + PoolResizeOptionalParams, + PoolResizeResponse, + PoolStopResizeOptionalParams, + PoolStopResizeResponse, + PoolUpdatePropertiesParameter, + PoolUpdatePropertiesOptionalParams, + PoolUpdatePropertiesResponse, + NodeRemoveParameter, + PoolRemoveNodesOptionalParams, + PoolRemoveNodesResponse +} from "../models"; + +/// +/** Interface representing a Pool. */ +export interface Pool { + /** + * If you do not specify a $filter clause including a poolId, the response includes all Pools that + * existed in the Account in the time range of the returned aggregation intervals. If you do not + * specify a $filter clause including a startTime or endTime these filters default to the start and end + * times of the last aggregation interval currently available; that is, only the last aggregation + * interval is returned. + * @param options The options parameters. + */ + listUsageMetrics( + options?: PoolListUsageMetricsOptionalParams + ): PagedAsyncIterableIterator; + /** + * Lists all of the Pools in the specified Account. + * @param options The options parameters. + */ + list(options?: PoolListOptionalParams): PagedAsyncIterableIterator; + /** + * Statistics are aggregated across all Pools that have ever existed in the Account, from Account + * creation to the last update time of the statistics. The statistics may not be immediately available. + * The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes. + * @param options The options parameters. + */ + getAllLifetimeStatistics( + options?: PoolGetAllLifetimeStatisticsOptionalParams + ): Promise; + /** + * When naming Pools, avoid including sensitive information such as user names or secret project names. + * This information may appear in telemetry logs accessible to Microsoft Support engineers. + * @param pool The Pool to be added. + * @param options The options parameters. + */ + add( + pool: PoolAddParameter, + options?: PoolAddOptionalParams + ): Promise; + /** + * When you request that a Pool be deleted, the following actions occur: the Pool state is set to + * deleting; any ongoing resize operation on the Pool are stopped; the Batch service starts resizing + * the Pool to zero Compute Nodes; any Tasks running on existing Compute Nodes are terminated and + * requeued (as if a resize Pool operation had been requested with the default requeue option); + * finally, the Pool is removed from the system. Because running Tasks are requeued, the user can rerun + * these Tasks by updating their Job to target a different Pool. The Tasks can then run on the new + * Pool. If you want to override the requeue behavior, then you should call resize Pool explicitly to + * shrink the Pool to zero size before deleting the Pool. If you call an Update, Patch or Delete API on + * a Pool in the deleting state, it will fail with HTTP status code 409 with error code + * PoolBeingDeleted. + * @param poolId The ID of the Pool to delete. + * @param options The options parameters. + */ + delete( + poolId: string, + options?: PoolDeleteOptionalParams + ): Promise; + /** + * Gets basic properties of a Pool. + * @param poolId The ID of the Pool to get. + * @param options The options parameters. + */ + exists( + poolId: string, + options?: PoolExistsOptionalParams + ): Promise; + /** + * Gets information about the specified Pool. + * @param poolId The ID of the Pool to get. + * @param options The options parameters. + */ + get( + poolId: string, + options?: PoolGetOptionalParams + ): Promise; + /** + * This only replaces the Pool properties specified in the request. For example, if the Pool has a + * StartTask associated with it, and a request does not specify a StartTask element, then the Pool + * keeps the existing StartTask. + * @param poolId The ID of the Pool to update. + * @param poolPatchParameter The parameters for the request. + * @param options The options parameters. + */ + patch( + poolId: string, + poolPatchParameter: PoolPatchParameter, + options?: PoolPatchOptionalParams + ): Promise; + /** + * Disables automatic scaling for a Pool. + * @param poolId The ID of the Pool on which to disable automatic scaling. + * @param options The options parameters. + */ + disableAutoScale( + poolId: string, + options?: PoolDisableAutoScaleOptionalParams + ): Promise; + /** + * You cannot enable automatic scaling on a Pool if a resize operation is in progress on the Pool. If + * automatic scaling of the Pool is currently disabled, you must specify a valid autoscale formula as + * part of the request. If automatic scaling of the Pool is already enabled, you may specify a new + * autoscale formula and/or a new evaluation interval. You cannot call this API for the same Pool more + * than once every 30 seconds. + * @param poolId The ID of the Pool on which to enable automatic scaling. + * @param poolEnableAutoScaleParameter The parameters for the request. + * @param options The options parameters. + */ + enableAutoScale( + poolId: string, + poolEnableAutoScaleParameter: PoolEnableAutoScaleParameter, + options?: PoolEnableAutoScaleOptionalParams + ): Promise; + /** + * This API is primarily for validating an autoscale formula, as it simply returns the result without + * applying the formula to the Pool. The Pool must have auto scaling enabled in order to evaluate a + * formula. + * @param poolId The ID of the Pool on which to evaluate the automatic scaling formula. + * @param poolEvaluateAutoScaleParameter The parameters for the request. + * @param options The options parameters. + */ + evaluateAutoScale( + poolId: string, + poolEvaluateAutoScaleParameter: PoolEvaluateAutoScaleParameter, + options?: PoolEvaluateAutoScaleOptionalParams + ): Promise; + /** + * You can only resize a Pool when its allocation state is steady. If the Pool is already resizing, the + * request fails with status code 409. When you resize a Pool, the Pool's allocation state changes from + * steady to resizing. You cannot resize Pools which are configured for automatic scaling. If you try + * to do this, the Batch service returns an error 409. If you resize a Pool downwards, the Batch + * service chooses which Compute Nodes to remove. To remove specific Compute Nodes, use the Pool remove + * Compute Nodes API instead. + * @param poolId The ID of the Pool to resize. + * @param poolResizeParameter The parameters for the request. + * @param options The options parameters. + */ + resize( + poolId: string, + poolResizeParameter: PoolResizeParameter, + options?: PoolResizeOptionalParams + ): Promise; + /** + * This does not restore the Pool to its previous state before the resize operation: it only stops any + * further changes being made, and the Pool maintains its current state. After stopping, the Pool + * stabilizes at the number of Compute Nodes it was at when the stop operation was done. During the + * stop operation, the Pool allocation state changes first to stopping and then to steady. A resize + * operation need not be an explicit resize Pool request; this API can also be used to halt the initial + * sizing of the Pool when it is created. + * @param poolId The ID of the Pool whose resizing you want to stop. + * @param options The options parameters. + */ + stopResize( + poolId: string, + options?: PoolStopResizeOptionalParams + ): Promise; + /** + * This fully replaces all the updatable properties of the Pool. For example, if the Pool has a + * StartTask associated with it and if StartTask is not specified with this request, then the Batch + * service will remove the existing StartTask. + * @param poolId The ID of the Pool to update. + * @param poolUpdatePropertiesParameter The parameters for the request. + * @param options The options parameters. + */ + updateProperties( + poolId: string, + poolUpdatePropertiesParameter: PoolUpdatePropertiesParameter, + options?: PoolUpdatePropertiesOptionalParams + ): Promise; + /** + * This operation can only run when the allocation state of the Pool is steady. When this operation + * runs, the allocation state changes from steady to resizing. Each request may remove up to 100 nodes. + * @param poolId The ID of the Pool from which you want to remove Compute Nodes. + * @param nodeRemoveParameter The parameters for the request. + * @param options The options parameters. + */ + removeNodes( + poolId: string, + nodeRemoveParameter: NodeRemoveParameter, + options?: PoolRemoveNodesOptionalParams + ): Promise; +} diff --git a/sdk/batch/batch/src/operationsInterfaces/task.ts b/sdk/batch/batch/src/operationsInterfaces/task.ts new file mode 100644 index 000000000000..410b457d15c4 --- /dev/null +++ b/sdk/batch/batch/src/operationsInterfaces/task.ts @@ -0,0 +1,160 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + CloudTask, + TaskListOptionalParams, + TaskAddParameter, + TaskAddOptionalParams, + TaskAddResponse, + TaskAddCollectionParameter, + TaskAddCollectionOptionalParams, + TaskAddCollectionResponse, + TaskDeleteOptionalParams, + TaskDeleteResponse, + TaskGetOptionalParams, + TaskGetResponse, + TaskUpdateParameter, + TaskUpdateOptionalParams, + TaskUpdateResponse, + TaskListSubtasksOptionalParams, + TaskListSubtasksResponse, + TaskTerminateOptionalParams, + TaskTerminateResponse, + TaskReactivateOptionalParams, + TaskReactivateResponse +} from "../models"; + +/// +/** Interface representing a Task. */ +export interface Task { + /** + * For multi-instance Tasks, information such as affinityId, executionInfo and nodeInfo refer to the + * primary Task. Use the list subtasks API to retrieve information about subtasks. + * @param jobId The ID of the Job. + * @param options The options parameters. + */ + list( + jobId: string, + options?: TaskListOptionalParams + ): PagedAsyncIterableIterator; + /** + * The maximum lifetime of a Task from addition to completion is 180 days. If a Task has not completed + * within 180 days of being added it will be terminated by the Batch service and left in whatever state + * it was in at that time. + * @param jobId The ID of the Job to which the Task is to be added. + * @param task The Task to be added. + * @param options The options parameters. + */ + add( + jobId: string, + task: TaskAddParameter, + options?: TaskAddOptionalParams + ): Promise; + /** + * Note that each Task must have a unique ID. The Batch service may not return the results for each + * Task in the same order the Tasks were submitted in this request. If the server times out or the + * connection is closed during the request, the request may have been partially or fully processed, or + * not at all. In such cases, the user should re-issue the request. Note that it is up to the user to + * correctly handle failures when re-issuing a request. For example, you should use the same Task IDs + * during a retry so that if the prior operation succeeded, the retry will not create extra Tasks + * unexpectedly. If the response contains any Tasks which failed to add, a client can retry the + * request. In a retry, it is most efficient to resubmit only Tasks that failed to add, and to omit + * Tasks that were successfully added on the first attempt. The maximum lifetime of a Task from + * addition to completion is 180 days. If a Task has not completed within 180 days of being added it + * will be terminated by the Batch service and left in whatever state it was in at that time. + * @param jobId The ID of the Job to which the Task collection is to be added. + * @param taskCollection The Tasks to be added. + * @param options The options parameters. + */ + addCollection( + jobId: string, + taskCollection: TaskAddCollectionParameter, + options?: TaskAddCollectionOptionalParams + ): Promise; + /** + * When a Task is deleted, all of the files in its directory on the Compute Node where it ran are also + * deleted (regardless of the retention time). For multi-instance Tasks, the delete Task operation + * applies synchronously to the primary task; subtasks and their files are then deleted asynchronously + * in the background. + * @param jobId The ID of the Job from which to delete the Task. + * @param taskId The ID of the Task to delete. + * @param options The options parameters. + */ + delete( + jobId: string, + taskId: string, + options?: TaskDeleteOptionalParams + ): Promise; + /** + * For multi-instance Tasks, information such as affinityId, executionInfo and nodeInfo refer to the + * primary Task. Use the list subtasks API to retrieve information about subtasks. + * @param jobId The ID of the Job that contains the Task. + * @param taskId The ID of the Task to get information about. + * @param options The options parameters. + */ + get( + jobId: string, + taskId: string, + options?: TaskGetOptionalParams + ): Promise; + /** + * Updates the properties of the specified Task. + * @param jobId The ID of the Job containing the Task. + * @param taskId The ID of the Task to update. + * @param taskUpdateParameter The parameters for the request. + * @param options The options parameters. + */ + update( + jobId: string, + taskId: string, + taskUpdateParameter: TaskUpdateParameter, + options?: TaskUpdateOptionalParams + ): Promise; + /** + * If the Task is not a multi-instance Task then this returns an empty collection. + * @param jobId The ID of the Job. + * @param taskId The ID of the Task. + * @param options The options parameters. + */ + listSubtasks( + jobId: string, + taskId: string, + options?: TaskListSubtasksOptionalParams + ): Promise; + /** + * When the Task has been terminated, it moves to the completed state. For multi-instance Tasks, the + * terminate Task operation applies synchronously to the primary task; subtasks are then terminated + * asynchronously in the background. + * @param jobId The ID of the Job containing the Task. + * @param taskId The ID of the Task to terminate. + * @param options The options parameters. + */ + terminate( + jobId: string, + taskId: string, + options?: TaskTerminateOptionalParams + ): Promise; + /** + * Reactivation makes a Task eligible to be retried again up to its maximum retry count. The Task's + * state is changed to active. As the Task is no longer in the completed state, any previous exit code + * or failure information is no longer available after reactivation. Each time a Task is reactivated, + * its retry count is reset to 0. Reactivation will fail for Tasks that are not completed or that + * previously completed successfully (with an exit code of 0). Additionally, it will fail if the Job + * has completed (or is terminating or deleting). + * @param jobId The ID of the Job containing the Task. + * @param taskId The ID of the Task to reactivate. + * @param options The options parameters. + */ + reactivate( + jobId: string, + taskId: string, + options?: TaskReactivateOptionalParams + ): Promise; +} diff --git a/sdk/batch/batch/test/sampleTest.ts b/sdk/batch/batch/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/batch/batch/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/batch/batch/tsconfig.json b/sdk/batch/batch/tsconfig.json index e7e3cee33511..6e3251194117 100644 --- a/sdk/batch/batch/tsconfig.json +++ b/sdk/batch/batch/tsconfig.json @@ -1,8 +1,19 @@ { - "extends": "../../../tsconfig.package", "compilerOptions": { + "module": "es6", + "moduleResolution": "node", + "strict": true, + "target": "es6", + "sourceMap": true, + "declarationMap": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "lib": ["es6", "dom"], + "declaration": true, "outDir": "./dist-esm", - "declarationDir": "./types" + "importHelpers": true }, - "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"] + "include": ["./src/**/*.ts", "./test/**/*.ts"], + "exclude": ["node_modules"] }